Update target_stop's documentation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9a6cf368
GB
12014-09-22 Gary Benson <gbenson@redhat.com>
2
3 * target.c (target_stop): Updated comment.
4
03f4463b
GB
52014-09-22 Gary Benson <gbenson@redhat.com>
6
7 * target/target.h (target_stop_ptid): Renamed as...
8 (target_stop_and_wait): New function. Updated comment.
9 All uses updated.
10 (target_continue_ptid): Renamed as...
11 (target_continue_no_signal): New function. Updated comment.
12 All uses updated.
13
a25a5a45
PA
142014-09-22 Pedro Alves <palves@redhat.com>
15
16 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
17 and "auto" merged.
18 * breakpoint.c (enum ugll_insert_mode): New enum.
19 (always_inserted_mode): Now a plain boolean.
20 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
21 (breakpoints_always_inserted_mode): Delete.
22 (breakpoints_should_be_inserted_now): New function.
23 (insert_breakpoints): Pass UGLL_INSERT to
24 update_global_location_list instead of calling
25 insert_breakpoint_locations manually.
26 (create_solib_event_breakpoint_1): New, factored out from ...
27 (create_solib_event_breakpoint): ... this.
28 (create_and_insert_solib_event_breakpoint): Use
29 create_solib_event_breakpoint_1 instead of calling
30 insert_breakpoint_locations manually.
31 (update_global_location_list): Change parameter type from boolean
32 to enum ugll_insert_mode. All callers adjusted. Adjust to use
33 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
34 (update_global_location_list_nothrow): Change parameter type from
35 boolean to enum ugll_insert_mode.
36 (_initialize_breakpoint): "breakpoint always-inserted" option is
37 now a boolean command. Update help text.
38 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
39 (breakpoints_should_be_inserted_now): New declaration.
40 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
41 Remove breakpoints_always_inserted_mode check.
42 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
43 * remote.c (remote_start_remote): Likewise.
44
04086b45
PA
452014-09-22 Pedro Alves <palves@redhat.com>
46
47 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
48 (insert_breakpoints): Don't call insert_breakpoint_locations here.
49 Instead, pass UGLL_INSERT to update_global_location_list.
50 (update_global_location_list): Change parameter type from boolean
51 to enum ugll_insert_mode. All callers adjusted. Adjust to use
52 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
53 (create_solib_event_breakpoint_1): New, factored out from ...
54 (create_solib_event_breakpoint): ... this.
55 (create_and_insert_solib_event_breakpoint): Use
56 create_solib_event_breakpoint_1 instead of calling
57 insert_breakpoint_locations manually.
58 (update_global_location_list): Handle UGLL_INSERT.
59
44702360
PA
602014-09-22 Pedro Alves <palves@redhat.com>
61
62 * breakpoint.c (enum ugll_insert_mode): New enum.
63 (update_global_location_list)
64 (update_global_location_list_nothrow): Change parameter type from
65 boolean to enum ugll_insert_mode. All callers adjusted.
66
93c6145a
JB
672014-09-19 Joel Brobecker <brobecker@adacore.com>
68
69 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
70 SystemTap support in GDB.
71
89a5711c
DB
722014-09-19 Don Breazeal <donb@codesourcery.com>
73
74 * linux-nat.c (linux_handle_extended_wait): Call
75 linux_ptrace_get_extended_event.
76 (wait_lwp): Call linux_is_extended_waitstatus.
77 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
78 and linux_is_extended_waitstatus.
79 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
80 linux_ptrace_get_extended_event.
81 (linux_ptrace_get_extended_event): New function.
82 (linux_is_extended_waitstatus): New function.
83 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
84 (linux_is_extended_waitstatus): New declarations.
85
c3b7b696
YQ
862014-09-19 Yao Qi <yao@codesourcery.com>
87
88 * dwarf2read.c (dwarf_decode_lines): Update declaration.
89 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
90 comments. Callers update.
91 (dwarf_decode_lines): Likewise.
92 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
93 comments. Skip the line table if 'lowpc' is greater than
94 'address'. Don't check
95 dwarf2_per_objfile->has_section_at_zero.
96
2b4fd423
DE
972014-09-18 Doug Evans <dje@google.com>
98
99 * NEWS: Mention new "producer" attribute of gdb.Symtab.
100 * python/py-symtab.c (stpy_get_producer): New function.
101 (symtab_object_getset): Add "producer" attribute.
102
5e43d467
UW
1032014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
104
105 PR gdb/17384
106 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
107 (do_captured_read_memory_integer): Remove.
108 (safe_read_memory_integer): Use target_read_memory directly instead
109 of catching errors in do_captured_read_memory_integer.
110
04e79979
MR
1112014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
112
113 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
114 not gdb/doc.
115
76aeec5b
SDJ
1162014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
117
118 * objc-lang.c (find_implementation_from_class): Remove dead code.
119
2f693f9d
SDJ
1202014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
121
122 PR cli/7233
123 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
124 "fprintf_unfiltered (gdb_stdlog...)".
125
bb9d5f81
PP
1262014-09-16 Patrick Palka <patrick@parcs.ath.cx>
127
128 PR breakpoints/12526
129 * breakpoint.h (struct watchpoint): New fields val_bitpos and
130 val_bitsize.
131 * breakpoint.c (watch_command_1): Use these fields to retain
132 bitfield information.
133 (extract_bitfield_from_watchpoint_value): New function.
134 (watchpoint_check): Use it.
135 (update_watchpoint): Use it. Optimize the address and length of a
136 HW watchpoint pointing to a bitfield.
137 * value.h (unpack_value_bitfield): New prototype.
138 * value.c (unpack_value_bitfield): Make extern.
139
05db5edd
ST
1402014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
141
142 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
143 x86-dregs.o.
144 * gnu-nat.c (inf_threads): New function.
145 * gnu-nat.h (inf_threads_ftype): New typedef.
146 (inf_threads): New declaration.
147 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
148 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
149 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
150 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
151 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
152 (i386_gnu_dr_get_control): New functions.
153 (reg_addr): New structure.
154 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
155 i386 debugging register hooks.
156 * NEWS: Mention this.
157
5a578da5
OJ
1582014-08-13 Omair Javaid <omair.javaid@linaro.org>
159
160 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
161 vector data transfer instructions.
162 (arm_record_coproc_data_proc): Updated.
163
f20f80dd
OJ
1642014-08-13 Omair Javaid <omair.javaid@linaro.org>
165
166 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
167 arm_record_exreg_ld_st_insn.
168 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
169 load/store insns.
170
851f26ae
OJ
1712014-08-13 Omair Javaid <omair.javaid@linaro.org>
172
173 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
174 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
175 processing instructions.
176
1e1b6563
OJ
1772014-08-13 Omair Javaid <omair.javaid@linaro.org>
178
179 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
180 for advance SIMD struct ld/st insn.
181 (thumb2_record_decode_insn_handler): Replace stub handler with
182 thumb2_record_asimd_struct_ld_st.
183
60cc5e93
OJ
1842014-08-13 Omair Javaid <omair.javaid@linaro.org>
185
186 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
187 for asimd, vfp and coprocessor insns.
188 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
189 and coprocessor insns.
190 (thumb2_record_coproc_insn): New function.
191 (thumb2_record_decode_insn_handler): Update coprocessor insns record
192 handlers.
193 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
194 opcode 110 insns.
195
81219e53
DE
1962014-09-13 Doug Evans <xdje42@gmail.com>
197
198 * NEWS: Mention new "queue-signal" command.
199 * infcmd.c (queue_signal_command): New function.
200 (_initialize_infcmd): Add new queue-signal command.
201
d36bf488
DE
2022014-09-13 Doug Evans <xdje42@gmail.com>
203
204 * linux-nat.c (wait_lwp): Add debugging printf.
205 (linux_nat_wait_1): Ditto.
206
f37f681c
PA
2072014-09-12 Pedro Alves <palves@redhat.com>
208
209 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
210 (create_and_insert_solib_event_breakpoint): New functions.
211 * breakpoint.h (create_and_insert_solib_event_breakpoint)
212 (remove_solib_event_breakpoints_at_next_stop): New declarations.
213 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
214 (remove_dbx_link_breakpoint): Delete function.
215 (insert_dbx_link_bpt_in_file): Use
216 create_and_insert_solib_event_breakpoint instead of
217 deprecated_insert_raw_breakpoint.
218 (procfs_wait): Don't check whether we hit __dbx_link here.
219 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
220 here.
221 * solib-irix.c (base_breakpoint): Delete global.
222 (disable_break): Delete function.
223 (enable_break): Use create_solib_event_breakpoint
224 instead of deprecated_insert_raw_breakpoint.
225 (irix_solib_handle_event): New function.
226 (irix_solib_create_inferior_hook): Don't run the target or disable
227 the mapping-complete breakpoint here.
228 (_initialize_irix_solib): Install irix_solib_handle_event as
229 so_ops->handle_event hook.
230
9d9bf2df
EBM
2312014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
232 Ulrich Weigand  <uweigand@de.ibm.com>
233
234 PR tdep/17379
235 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
236 instead of read_memory_unsigned_integer.
237
b006a80e
GB
2382014-09-12 Gary Benson <gbenson@redhat.com>
239
240 * nat/linux-waitpid.c: Include common-defs.h.
241 [GDBSERVER]: Add FIXME comment.
242 [!GDBSERVER]: Don't include defs.h or signal.h.
243 (linux_debug) [!GDBSERVER]: Remove empty block.
244
296b1496
GB
2452014-09-12 Gary Benson <gbenson@redhat.com>
246
247 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
248 Don't include defs.h or server.h.
249
53f81362
GB
2502014-09-12 Gary Benson <gbenson@redhat.com>
251
252 * nat/linux-btrace.c: Include common-defs.h.
253 Don't include defs.h, server.h or gdbthread.h.
254 * nat/linux-btrace.h (struct target_ops): New forward declaration.
255
727605ca
GB
2562014-09-12 Gary Benson <gbenson@redhat.com>
257
258 * common/agent.c: Include common-defs.h.
259 Don't include defs.h or server.h.
260 * common/buffer.c: Likewise.
261 * common/common-debug.c: Likewise.
262 * common/common-utils.c: Likewise.
263 * common/errors.c: Likewise.
264 * common/filestuff.c: Likewise.
265 * common/format.c: Likewise.
266 * common/gdb_vecs.c: Likewise.
267 * common/print-utils.c: Likewise.
268 * common/ptid.c: Likewise.
269 * common/rsp-low.c: Likewise.
270 * common/signals.c: Likewise.
271 * common/vec.c: Likewise.
272 * common/xml-utils.c: Likewise.
273 * nat/linux-osdata.c: Likewise.
274 * nat/linux-procfs.c: Likewise.
275 * nat/linux-ptrace.c: Likewise.
276 * nat/mips-linux-watch.c: Likewise.
277 * target/waitstatus.c: Likewise.
278
361c8ade
GB
2792014-09-12 Tom Tromey <tromey@redhat.com>
280 Gary Benson <gbenson@redhat.com>
281
282 * common/common-regcache.h: New file.
283 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
284 * regcache.h: Include common-regcache.h.
285 (regcache_read_pc): Don't declare.
286 * regcache.c (get_thread_regcache_for_ptid): New function.
287 * nat/linux-btrace.c: Don't include regcache.h.
288 Include common-regcache.h.
289 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
290
a01cbb49
TS
2912014-09-11 Thomas Schwinge <thomas@codesourcery.com>
292
293 * regcache.h (struct regset): Declare.
294
98880d46
PA
2952014-09-11 Pedro Alves <palves@redhat.com>
296
297 PR gdb/17347
298 * main.c: Include "infrun.h".
299 (catch_command_errors, catch_command_errors_const): Wait for the
300 foreground command to complete.
301 * top.c (maybe_wait_sync_command_done): New function, factored out
302 from ...
303 (maybe_wait_sync_command_done): ... here.
304 * top.h (maybe_wait_sync_command_done): New declaration.
305
bd9269f7
GB
3062014-09-11 Tom Tromey <tromey@redhat.com>
307 Gary Benson <gbenson@redhat.com>
308
309 * common/symbol.h: New file.
310 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
311 * minsyms.c (find_minimal_symbol_address): New function.
312 * common/agent.c: Include common/symbol.h.
313 [!GDBSERVER]: Don't include objfiles.h.
314 (agent_look_up_symbols): Use find_minimal_symbol_address.
315
f8c1d06b
GB
3162014-09-11 Gary Benson <gbenson@redhat.com>
317
318 * target/target.h (target_stop_ptid, target_continue_ptid):
319 Declare.
320 * target.c (target_stop_ptid, target_continue_ptid): New
321 functions.
322 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
323 (agent_run_command): Always use target_stop_ptid and
324 target_continue_ptid.
325
721ec300
GB
3262014-09-11 Tom Tromey <tromey@redhat.com>
327 Gary Benson <gbenson@redhat.com>
328
329 * target/target.h: New file.
330 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
331 * target.h: Include target/target.h.
332 (target_read_memory, target_write_memory): Don't declare.
333 * target.c (target_read_uint32): New function.
334 * common/agent.c: Include target/target.h.
335 [!GDBSERVER]: Don't include target.h.
336 (helper_thread_id): Type changed to uint32_t.
337 (agent_get_helper_thread_id): Use target_read_uint32.
338 (agent_run_command): Always use target_read_memory and
339 target_write_memory.
340 (agent_capability): Type changed to uint32_t.
341 (agent_capability_check): Use target_read_uint32.
342
c5e92cca
GB
3432014-09-11 Gary Benson <gbenson@redhat.com>
344
345 * common/common-debug.h (show_debug_regs): Declare.
346 * common/common-debug.c (show_debug_regs): Define.
347 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
348 all uses with show_debug_regs. Replace all uses that considered
349 debug_hw_points as a multi-value integer with straight boolean
350 uses.
351 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
352 with show_debug_regs.
353 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
354 all uses with show_debug_regs.
355 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
356 uses with show_debug_regs.
357
eeef931a
UW
3582014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
359
360 * findvar.c (address_from_register): Handle targets requiring
361 a special conversion routine even for plain pointer types.
362
8efa9855
UW
3632014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
364
365 * rs6000-nat.c (exec_one_dummy_insn): Remove.
366 (store_register): Do not call exec_one_dummy_insn.
367
eb479039
JB
3682014-09-10 Joel Brobecker <brobecker@adacore.com>
369
370 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
371 dereference it first. Use value_enclosing_type instead of
372 value_type.
373 (ada_array_length): Likewise.
374
deede10c
JB
3752014-09-10 Joel Brobecker <brobecker@adacore.com>
376
377 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
378 Adjust function implementation and documentation accordingly.
379 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
380 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
381 Update call to ada_value_ptr_subscript.
382
7828a5f5
JB
3832014-09-10 Joel Brobecker <brobecker@adacore.com>
384
385 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
386 instead of VAL's type.
387
35782f14
JB
3882014-09-10 Joel Brobecker <brobecker@adacore.com>
389
390 * amd64-linux-nat.c: Add <sys/uio.h> #include.
391
d342a0da
DE
3922014-09-09 Doug Evans <xdje42@gmail.com>
393
394 PR guile/17367
395 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
396 last parameter to pkg-config, not first.
397 * configure.ac: Pass --with-guile provided pkg-config path to
398 GDB_GUILE_PROGRAM_NAMES.
399 * configure: Regenerate.
400
b4a3d263
GKB
4012014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
402
403 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
404 Bertazi".
405
6e466374
MR
4062014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
407
408 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
409 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
410 the list of sections determining GDB_OSABI_IRIX.
411
a1ada89a
JH
4122014-09-09 James Hogan <james.hogan@imgtec.com>
413
414 * MAINTAINERS (Write After Approval): Add "James Hogan".
415
86db008d
JH
4162014-09-09 James Hogan <james.hogan@imgtec.com>
417
418 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
419
72fde3df
JB
4202014-09-09 Joel Brobecker <brobecker@adacore.com>
421
422 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
423
92d8d229
DE
4242014-09-08 Doug Evans <xdje42@gmail.com>
425
426 PR 17247
427 * guile.c: #include <signal.h>.
428 (_initialize_guile): Block SIGCHLD while initializing Guile.
429
430 Replaces the following, which is reverted.
431
432 2014-07-26 Doug Evans <xdje42@gmail.com>
433
434 PR 17185
435 * configure.ac: Add check for header gc/gc.h.
436 Add check for function setenv.
437 * configure: Regenerate.
438 * config.in: Regenerate.
439 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
440
d81412aa
DE
4412014-09-08 Doug Evans <xdje42@gmail.com>
442
443 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
444 with named constant. Fix style of pointer comparison.
445 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
446
a9f116cb
GKB
4472014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
448
449 PR gdb/17035
450 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
451 decide whether we display the command on "show user".
452 * cli/cli-script.c (show_user_1): Only verify cmdlines after
453 printing command name.
454 * cli/cli-decode.h (cli_user_command_p): Declare new function.
455 * cli/cli-decode.c (cli_user_command_p): Create helper function
456 to verify whether cmd_list_element is a user-defined command.
457
c75bd3a2
JK
4582014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 PR python/17355
461 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
462 Fix goto out of TRY_CATCH.
463
faa42425 4642014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 465 Tom Tromey <tromey@redhat.com>
faa42425
DE
466
467 PR 15276
468 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
469 $_any_caller_matches.
470 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
471 * python/lib/gdb/function/caller_is.py: New file.
472
0d41ba00
DE
4732014-09-06 Doug Evans <xdje42@gmail.com>
474
475 * infcmd.c (program_info): Fix typo.
476
474ca4f6
SDJ
4772014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
478
479 PR gdb/17235
480 * stap-probe.c (stap_parse_single_operand): Delete unused variable
481 'number'. New variable 'has_digit'. Rewrite code to deal with
482 subexpressions on SDT probes.
483
ebf13736
PA
4842014-09-04 Pedro Alves <palves@redhat.com>
485
486 * c-exp.y (parse_number): Skip handling base-switching prefixes if
487 the input is only one character long.
488
eb0b0463
SDJ
4892014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
490
491 PR fortran/17237
492 * f-valprint.c (f_val_print): Specify the correct print option to
493 use when printing integer values.
494
5ee44bfa
GB
4952014-09-04 Gary Benson <gbenson@redhat.com>
496
497 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
498 Remove code to cope with LWPs wrapped as PIDs.
499 Add assertions to ensure no wrapped LWPs are passed.
500
4875ffdb
PA
5012014-09-04 Pedro Alves <palves@redhat.com>
502
503 * value.c (value_ranges_copy_adjusted): New function, factored out
504 from ...
505 (value_contents_copy_raw): ... here.
506 (unpack_value_bits_as_long_1): Rename back to ...
507 (unpack_bits_as_long): ... this. Remove 'original_value' and
508 'result' parameters. Change return type to LONGEST.
509 (unpack_value_bits_as_long): Delete.
510 (unpack_value_field_as_long_1): Delete.
511 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
512 (unpack_value_bitfield): New function.
513 (value_field_bitfield): Reimplement using unpack_value_bitfield.
514 (value_fetch_lazy): Use unpack_value_bitfield.
515 * value.h (unpack_value_bits_as_long): Delete declaration.
516
5f3b99cf
SS
5172014-09-03 Sasha Smundak <asmundak@google.com>
518
519 * python/py-frame.c (frapy_read_register): New function.
520
ac740bc7
JH
5212014-09-03 James Hogan <james.hogan@imgtec.com>
522
523 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
524 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
525
7d793aa9
SDJ
5262014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
527
528 PR python/16699
529 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
530 function.
531 (add_cmd): Set "completer_handle_brkchars" to NULL.
532 * cli/cli-decode.h (struct cmd_list_element)
533 <completer_handle_brkchars>: New field.
534 * command.h (completer_ftype_void): New typedef.
535 (set_cmd_completer_handle_brkchars): New prototype.
536 * completer.c (set_gdb_completion_word_break_characters): New
537 function.
538 (complete_line_internal): Call "completer_handle_brkchars"
539 callback from command.
540 * completer.h: Include "command.h".
541 (set_gdb_completion_word_break_characters): New prototype.
542 * python/py-cmd.c (cmdpy_completer_helper): New function.
543 (cmdpy_completer_handle_brkchars): New function.
544 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
545 (cmdpy_init): Set completer_handle_brkchars to
546 cmdpy_completer_handle_brkchars.
547
97ea6506
GB
5482014-09-03 Gary Benson <gbenson@redhat.com>
549
550 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
551 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
552 Loop conditions changed to equivalent form.
553 (struct x86_debug_reg_state): Updated dr_ref_count comment.
554 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
555 ALL_DEBUG_ADDRESS_REGISTERS.
556
d1437815
JB
5572014-09-03 Joel Brobecker <brobecker@adacore.com>
558
559 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
560 description fix.
561
9b94fcf1
DE
5622014-09-02 Doug Evans <dje@google.com>
563
564 * typeprint.c (find_global_typedef): Fix comment.
565
df7e5265
GB
5662014-09-02 Gary Benson <gbenson@redhat.com>
567
568 * i386-nat.h: Renamed as...
569 * x86-nat.h: New file. All type, function and variable name
570 prefixes changed from "i386_" to "x86_". All references updated.
571 * i386-nat.c: Renamed as...
572 * x86-nat.c: New file. All type, function and variable name
573 prefixes changed from "i386_" to "x86_". All references updated.
574 * common/i386-xstate.h: Renamed as...
575 * common/x86-xstate.h: New file. All type, function and variable
576 name prefixes changed from "i386_" to "x86_". All references
577 updated.
578 * nat/i386-cpuid.h: Renamed as...
579 * nat/x86-cpuid.h: New file. All type, function and variable name
580 prefixes changed from "i386_" to "x86_". All references updated.
581 * nat/i386-gcc-cpuid.h: Renamed as...
582 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
583 name prefixes changed from "i386_" to "x86_". All references
584 updated.
585 * nat/i386-dregs.h: Renamed as...
586 * nat/x86-dregs.h: New file. All type, function and variable name
587 prefixes changed from "i386_" to "x86_". All references updated.
588 * nat/i386-dregs.c: Renamed as...
589 * nat/x86-dregs.c: New file. All type, function and variable name
590 prefixes changed from "i386_" to "x86_". All references updated.
591
1c3569d4
MR
5922014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
593
594 * varobj.c (_initialize_varobj): Move to the end of file.
595
ff55e1b5
GB
5962014-08-29 Gary Benson <gbenson@redhat.com>
597
598 * common/common-exceptions.h: New file.
599 * common/common-exceptions.c: Likewise.
600 * Makefile.in (SFILES): Add common/common-exceptions.c.
601 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
602 (COMMON_OBS): Add common-exceptions.o.
603 (common-exceptions.o): New rule.
604 * exceptions.h (common-exceptions.h): Include.
605 (gdb_setjmp.h): Do not include.
606 (return_reason): Moved to common-exceptions.h.
607 (enum return_reason): Likewise.
608 (RETURN_MASK): Likewise.
609 (typedef return_mask): Likewise.
610 (enum errors): Likewise.
611 (struct gdb_exception): Likewise.
612 (exceptions_state_mc_init): Likewise.
613 (exceptions_state_mc_action_iter): Likewise.
614 (exceptions_state_mc_action_iter_1): Likewise.
615 (TRY_CATCH): Likewise.
616 (throw_exception): Likewise.
617 (throw_verror): Likewise.
618 (throw_vquit): Likewise.
619 (throw_error): Likewise.
620 (throw_quit): Likewise.
621 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
622 (enum catcher_action): Likewise.
623 (struct catcher): Likewise.
624 (current_catcher): Likewise.
625 (catcher_list_size): Likewise.
626 (exceptions_state_mc_init): Likewise.
627 (catcher_pop): Likewise.
628 (exceptions_state_mc): Likewise.
629 (exceptions_state_mc_action_iter): Likewise.
630 (exceptions_state_mc_action_iter_1): Likewise.
631 (throw_exception): Likewise.
632 (exception_messages): Likewise.
633 (exception_messages_size): Likewise.
634 (throw_it): Likewise.
635 (throw_verror): Likewise.
636 (throw_vquit): Likewise.
637 (throw_error): Likewise.
638 (throw_quit): Likewise.
639 (prepare_to_throw_exception): New function.
640
e9bcb658
GB
6412014-08-29 Gary Benson <gbenson@redhat.com>
642
643 * common/gdb_setjmp.h: New file.
644 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
645 * configure.ac: Move sigsetjmp check...
646 * common/common.m4: ...here.
647 * configure: Regenerate.
648 * cp-support.c (SIGJMP_BUF): Delete.
649 (SIGSETJMP): Likewise.
650 (SIGLONGJMP): Likewise.
651 * exceptions.h (gdb_setjmp.h): Include.
652 (setjmp.h): Do not include.
653 (EXCEPTIONS_SIGJMP_BUF): Delete.
654 (EXCEPTIONS_SIGSETJMP): Likewise.
655 (EXCEPTIONS_SIGLONGJMP): Likewise.
656 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
657 from gdb_setjmp.h.
658 * exceptions.c: Likewise.
659
e3180625
GB
6602014-08-29 Gary Benson <gbenson@redhat.com>
661
662 * cleanups.h: Moved to...
663 * common/cleanups.h: New file.
664 * cleanups.c: Moved to...
665 * common/cleanups.c: New file. Include common-defs.h and
666 cleanups.h. Do not include defs.h.
667 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
668 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
669 (cleanups.o): New rule.
670
e3d6ba5d
GB
6712014-08-29 Gary Benson <gbenson@redhat.com>
672
673 * common/errors.h (internal_warning): New declaration.
674 (internal_vwarning): Likewise.
675 * common/errors.c (internal_warning): New function.
676 * utils.h (internal_warning): Don't declare.
677 (internal_vwarning): Likewise.
678 * utils.c (internal_warning): Removed.
679
075c7033
GB
6802014-08-29 Gary Benson <gbenson@redhat.com>
681
682 * main.c (captured_main): Use warning during startup.
683 Prefix startup warning messages with command name.
684
91b35fd0
GB
6852014-08-29 Gary Benson <gbenson@redhat.com>
686
687 * main.c (captured_main): Handle usage errors with error.
688
b1ec390e
GB
6892014-08-29 Gary Benson <gbenson@redhat.com>
690
691 * go32-nat.c (go32_create_inferior): Replace a fprintf/
692 exit pair with a call to error. Wrap the message with _().
693
fd0ef3dd
GB
6942014-08-29 Gary Benson <gbenson@redhat.com>
695
696 * main.c (captured_main): Replace a fprintf/exit
697 pair with a call to error. Wrap the message with _().
698
e0e6bcab
GB
6992014-08-29 Gary Benson <gbenson@redhat.com>
700
701 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
702 pairs with calls to error. Wrap the message with _().
703
0d2f5c07
GB
7042014-08-29 Gary Benson <gbenson@redhat.com>
705
706 * utils.c (vwarning): Protect calls to target_terminal_ours
707 and wrap_here.
708
5df43998
GB
7092014-08-29 Gary Benson <gbenson@redhat.com>
710
711 * exceptions.c (print_flush): Protect calls to
712 target_terminal_ours and wrap_here.
713
2437fd32
GB
7142014-08-29 Gary Benson <gbenson@redhat.com>
715
716 * utils.h (filtered_printing_initialized): New declaration.
717 * utils.c (abort_with_message): New function.
718 (internal_vproblem): Use abort_with_message for first level
719 recursive internal problems, and if gdb_stderr is not set up.
720 Protect calls to target_terminal_ours, begin_line and query.
721
f1f58506
DE
7222014-08-28 Doug Evans <dje@google.com>
723
724 * symtab.c (in_prologue): Move definition to better spot.
725 (skip_prologue_using_sal): Ditto.
726
aab2f208
DE
7272014-08-28 Doug Evans <dje@google.com>
728
729 * symtab.c (find_function_start_sal): Move definition to better spot.
730
6b65d1b6
YQ
7312014-08-28 Yao Qi <yao@codesourcery.com>
732
733 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
734 found_stack_adjust in forward scan. Remove condition check
735 on found_stack_adjust which is always true. Indent the code.
736
a1b34d15
YQ
7372014-08-28 Yao Qi <yao@codesourcery.com>
738
739 * dwarf2read.c (dwarf_decode_lines): Update declaration.
740 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
741 (dwarf_decode_lines): Remove argument
742 want_line_info. Remove condition check on want_line_info.
743 Callers update.
744
d5962de5
DE
7452014-08-27 Doug Evans <dje@google.com>
746
747 * dwarf2read.c (dwarf_record_line): Fix typo.
748
9b139002
SDJ
7492014-08-27 Patrick Palka <patrick@parcs.ath.cx>
750
751 * target.h (struct target_ops::to_terminal_save_ours): Remove
752 declaration.
753 (target_terminal_save_ours): Remove macro.
754 * target-delegates.c: Regenerate.
755 * inf-child.c (inf_child_target): Don't set the nonexistent
756 field to_terminal_save_ours.
757 * inferior.h (child_terminal_save_ours): Remove declaration.
758 * terminal.h (gdb_save_tty_state): New declaration.
759 * inflow.c (child_terminal_save_ours): Rename to ...
760 (gdb_save_tty_state): ... this.
761 * tui/tui.c: Include terminal.h.
762 (tui_enable): Use gdb_save_tty_state instead of
763 target_terminal_save_ours.
764 (tui_disable): Likewise.
765
9debeba0
DE
7662014-08-25 Doug Evans <dje@google.com>
767
768 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
769 Pass NULL instead of 0 for context pointer.
770
428fc5fc
YQ
7712014-08-25 Yao Qi <yao@codesourcery.com>
772
773 * dwarf2read.c: Fix grammatical error.
774
cdc07690
YQ
7752014-08-24 Yao Qi <yao@codesourcery.com>
776
777 * dwarf2read.c (scan_partial_symbols): Update comments.
778 Rename argument 'need_pc' with 'set_addrmap'.
779 (add_partial_namespace): Rename argument 'need_pc' with
780 'set_addrmap'.
781 (add_partial_module): Likewise.
782 (add_partial_subprogram): Likewise. Update comments.
783 (dwarf2_name): Fix typo.
784
a05a36a5
DE
7852014-08-22 Doug Evans <dje@google.com>
786
787 PR 17276
788 * dwarf2read.c (dwarf_record_line_p): New function.
789 (dwarf_decode_lines_1): Ignore subsequent line number entries
790 for the same line if any entry had a non-zero discriminator.
791
252a6764
DE
7922014-08-22 Doug Evans <dje@google.com>
793
794 * buildsym.h (record_line_ftype): New typedef.
795 (record_line): Use it.
796 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
797 (dwarf_decode_lines_1): Call them.
798
510db052
YQ
7992014-08-22 Yao Qi <yao@codesourcery.com>
800
801 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
802 (ctf_end): Remove code.
803
22fd09ae
JK
8042014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
807 (linux_make_corefile_notes): call update_thread_list, protected against
808 exceptions.
809
656e8868
PA
8102014-08-21 Pedro Alves <palves@redhat.com>
811
812 * infcmd.c (attach_command): Remove comment.
813
de589d04
WN
8142014-08-21 Bin Cheng <bin.cheng@arm.com>
815
816 * aarch64-linux-nat.c (dr_changed_t): Change the type from
817 unsigned LONGEST to ULONGEST.
818
2a31c623
PA
8192014-08-20 Pedro Alves <palves@redhat.com>
820
821 * Makefile.in (check-read1): New rule.
822
d36430db
JB
8232014-08-20 Joel Brobecker <brobecker@adacore.com>
824
825 * value.c (value_from_contents_and_address): Strip resolved_type's
826 typedef layers before checking its TYPE_DATA_LOCATION.
827
000339af
PA
8282014-08-20 Pedro Alves <palves@redhat.com>
829
830 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
831
5f52445b
YQ
8322014-08-20 Yao Qi <yao@codesourcery.com>
833
834 * amd64-tdep.c (amd64_classify): Add a blank line after the
835 example. Move "*/" to a new line.
836 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
837 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
838 * dwarf2read.c (psymtab_include_file_name): Likewise.
839
9a0dc9e3
PA
8402014-08-19 Andrew Burgess <aburgess@broadcom.com>
841 Pedro Alves <palves@redhat.com>
842
843 PR symtab/14604
844 PR symtab/14605
845 * ada-lang.c (coerce_unspec_val_to_type): Use
846 value_contents_copy_raw.
847 * ada-valprint.c (val_print_packed_array_elements): Adjust.
848 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
849 * cp-valprint.c (cp_print_value_fields): Let the common printing
850 code handle optimized out values.
851 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
852 * d-valprint.c (dynamic_array_type): Use
853 value_bits_any_optimized_out.
854 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
855 check_any_valid fields.
856 (check_pieced_value_bits): Delete and inline ...
857 (check_pieced_synthetic_pointer): ... here.
858 (check_pieced_value_validity): Delete.
859 (check_pieced_value_invalid): Delete.
860 (pieced_value_funcs): Remove check_validity and check_any_valid
861 fields.
862 (read_pieced_value): Use mark_value_bits_optimized_out.
863 (write_pieced_value): Switch to use
864 mark_value_bytes_optimized_out.
865 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
866 of assuming the whole value is optimized out.
867 * findvar.c (read_frame_register_value): Remove special handling
868 of optimized out registers.
869 (value_from_register): Use mark_value_bytes_optimized_out.
870 * frame-unwind.c (frame_unwind_got_optimized): Use
871 mark_value_bytes_optimized_out.
872 * jv-valprint.c (java_value_print): Adjust.
873 (java_print_value_fields): Let the common printing code handle
874 optimized out values.
875 * mips-tdep.c (mips_print_register): Remove special handling of
876 optimized out registers.
877 * opencl-lang.c (lval_func_check_validity): Delete.
878 (lval_func_check_any_valid): Delete.
879 (opencl_value_funcs): Remove check_validity and check_any_valid
880 fields.
881 * p-valprint.c (pascal_object_print_value_fields): Let the common
882 printing code handle optimized out values.
883 * stack.c (read_frame_arg): Remove special handling of optimized
884 out values. Fetch both VAL and ENTRYVAL before comparing
885 contents. Adjust to value_available_contents_eq rename.
886 * valprint.c (valprint_check_validity)
887 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
888 (val_print_array_elements): Adjust.
889 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
890 (value_bits_any_optimized_out): New function.
891 (value_entirely_covered_by_range_vector): New function, factored
892 out from value_entirely_unavailable.
893 (value_entirely_unavailable): Reimplement.
894 (value_entirely_optimized_out): New function.
895 (insert_into_bit_range_vector): New function, factored out from
896 mark_value_bits_unavailable.
897 (mark_value_bits_unavailable): Reimplement.
898 (struct ranges_and_idx): New struct.
899 (find_first_range_overlap_and_match): New function, factored out
900 from value_available_contents_bits_eq.
901 (value_available_contents_bits_eq): Rename to ...
902 (value_contents_bits_eq): ... this. Check both unavailable
903 contents and optimized out contents.
904 (value_available_contents_eq): Rename to ...
905 (value_contents_eq): ... this.
906 (allocate_value_lazy): Remove reference to the old optimized_out
907 boolean.
908 (allocate_optimized_out_value): Use
909 mark_value_bytes_optimized_out.
910 (require_not_optimized_out): Adjust to check whether the
911 optimized_out vec is empty.
912 (ranges_copy_adjusted): New function, factored out from
913 value_contents_copy_raw.
914 (value_contents_copy_raw): Also copy the optimized out ranges.
915 Assert the destination ranges aren't optimized out.
916 (value_contents_copy): Update comment, remove call to
917 require_not_optimized_out.
918 (value_contents_equal): Adjust to check whether the optimized_out
919 vec is empty.
920 (set_value_optimized_out, value_optimized_out_const): Delete.
921 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
922 New functions.
923 (value_entirely_optimized_out, value_bits_valid): Delete.
924 (value_copy): Take a VEC copy of the 'optimized_out' field.
925 (value_primitive_field): Remove special handling of optimized out.
926 (value_fetch_lazy): Assert that lazy values have no unavailable
927 regions. Use value_bits_any_optimized_out. Remove some special
928 handling for optimized out values.
929 * value.h: Add intro comment about <optimized out> and
930 <unavailable>.
931 (struct lval_funcs): Remove check_validity and check_any_valid
932 fields.
933 (set_value_optimized_out, value_optimized_out_const): Remove.
934 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
935 New declarations.
936 (value_bits_any_optimized_out): New declaration.
937 (value_bits_valid): Delete declaration.
938 (value_available_contents_eq): Rename to ...
939 (value_contents_eq): ... this, and extend comments.
940
6694c411
JK
9412014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 Fix -fsanitize=address on unreadable inferior strings.
944 * valprint.c (val_print_string): Fix access before BUFFER.
945
89a1c21a
SM
9462014-08-19 Simon Marchi <simon.marchi@ericsson.com>
947
948 * target.c (target_struct_size): Remove.
949 (target_struct_allocsize): Remove.
950 (DEFAULT_ALLOCSIZE): Remove.
951 (target_ops_p): New typedef.
952 (DEF_VEC_P (target_ops_p)): New vector type.
953 (target_structs): Change type to VEC (target_ops_p).
954 (add_target_with_completer): Replace "push" code by VEC_safe_push.
955 (find_default_run_target): Rewrite for loop following changes to
956 target_structs.
957
cb417230
JB
9582014-08-19 Joel Brobecker <brobecker@adacore.com>
959
960 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
961 Adjust code accordingly. Adjust function description comment.
962
817e0957
YQ
9632014-08-19 Yao Qi <yao@codesourcery.com>
964
965 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
966 types.
967
2974be62
AM
9682014-08-19 Alan Modra <amodra@gmail.com>
969
970 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
971 * config.in: Regenerate.
972 * configure: Regenerate.
973
34abf635
GB
9742014-08-19 Tom Tromey <tromey@redhat.com>
975 Gary Benson <gbenson@redhat.com>
976
977 * common/common-debug.h: New file.
978 * common/common-debug.c: Likewise.
979 * debug.c: Likewise.
980 * Makefile.in (SFILES): Add common/common-debug.c.
981 (HFILES_NO_SRCDIR): Add common/common-debug.h.
982 (COMMON_OBS): Add common-debug.o and debug.o.
983 (common-debug.o): New rule.
984 * common/common-defs.h: Include common-debug.h.
985 * common/agent.c (debug_agent_printf): New function.
986 (DEBUG_AGENT): Redefine.
987 * nat/i386-dregs.c (debug_printf): Undefine.
988
f6e94d78
GB
9892014-08-19 Gary Benson <gbenson@redhat.com>
990
991 * common/common-defs.h: Include print-utils.h.
992 * utils.h: Do not include print-utils.h.
993
9239eeab
GB
9942014-08-19 Tom Tromey <tromey@redhat.com>
995 Gary Benson <gbenson@redhat.com>
996
997 * common/common-types.h: New file.
998 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
999 * common/common-defs.h: Include common-types.h.
1000 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1001 (ULONGEST): Remove.
1002
ef87c8bb
GB
10032014-08-19 Tom Tromey <tromey@redhat.com>
1004 Gary Benson <gbenson@redhat.com>
1005
1006 * common/errors.h: New file.
1007 * common/errors.c: Likewise.
1008 * Makefile.in (SFILES): Add common/errors.c.
1009 (HFILES_NO_SRCDIR): Add common/errors.h.
1010 (COMMON_OBS): Add errors.o.
1011 (errors.o): New rule.
1012 * common/common-defs.h: Include errors.h.
1013 * utils.h (perror_with_name, error, verror, warning, vwarning):
1014 Don't declare.
1015 * common/common-utils.h: (malloc_failure, internal_error):
1016 Likewise.
1017
196a707b
GB
10182014-08-19 Gary Benson <gbenson@redhat.com>
1019
1020 * utils.c (internal_vproblem): Always print the message.
1021
ded4fc8f
DE
10222014-08-18 Doug Evans <dje@google.com>
1023
1024 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1025
950c97d8
JB
10262014-08-18 Joel Brobecker <brobecker@adacore.com>
1027
1028 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1029 Return 0 if TYPE is dynamic.
1030 (print_range): Add handling of dynamic ranges.
1031
3cdcd0ce
JB
10322014-08-18 Keven Boell <keven.boell@intel.com>
1033 Joel Brobecker <brobecker@adacore.com>
1034
1035 * gdbtypes.h (struct main_type): Add field "data_location".
1036 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1037 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1038 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1039 a dynamic data location.
1040 (resolve_dynamic_type): Add DW_AT_data_location handling.
1041 (copy_recursive, copy_type): Copy the data_location information
1042 when present.
1043 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1044 * value.c (value_from_contents_and_address): Add
1045 DW_AT_data_location handling.
1046
08412b07
JB
10472014-08-18 Keven Boell <keven.boell@intel.com>
1048 Joel Brobecker <brobecker@adacore.com>
1049
1050 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1051 field "get_object_address".
1052 * dwarf2expr.c (execute_stack_op): Add handling for
1053 DW_OP_push_object_address.
1054 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1055 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1056 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1057 (dwarf_expr_get_obj_addr): New function.
1058 (dwarf_expr_ctx_funcs): Add get_object_address field.
1059 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1060 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1061 (dwarf2_evaluate_property): Add parameter "address". Use it.
1062 (needs_get_obj_addr): New function.
1063 (needs_frame_ctx_funcs): Add get_object_address field.
1064 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1065 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1066 (resolve_dynamic_array): Likewise.
1067
84754697
JB
10682014-08-18 Joel Brobecker <brobecker@adacore.com>
1069
1070 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1071 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1072 fixed value for records and unions for which some GNAT encodings
1073 are present.
1074
da5c522f
JB
10752014-08-18 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1078 rewrite to avoid "else if" and "else" constructs. Should be
1079 a no-op in practice.
1080
0d72a7c3
JB
10812014-08-18 Joel Brobecker <brobecker@adacore.com>
1082
1083 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1084 of lexical block.
1085
e66d4446
SC
10862014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1087
1088 PR c++/17132
1089 * eval.c: Update all calls to find_overload_match.
1090 * valarith.c: Likewise.
1091 (value_user_defined_cpp_op, value_user_defined_op): New
1092 argument NOSIDE. Update all callers.
1093 * valops.c (find_overload_match): New argument NOSIDE.
1094 * value.h (find_overload_match): Update signature.
1095
940df408
SC
10962014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1097
1098 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1099 'items' methods instead of 'iteritems' method on dictionaries.
1100
699ca60a
DE
11012014-08-15 Doug Evans <dje@google.com>
1102
1103 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1104 closer to use.
1105
37780ee5
DE
11062014-08-15 Doug Evans <dje@google.com>
1107
1108 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1109
0ad93d4f
DE
11102014-08-15 Doug Evans <dje@google.com>
1111
1112 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1113
20d8c372
DE
11142014-08-15 Doug Evans <dje@google.com>
1115
1116 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1117 unused.
1118
cb039ba4
EZ
11192014-08-15 Eli Zaretskii <eliz@gnu.org>
1120
1121 * dcache.h: Include target.h, to avoid compile time warnings.
1122
eb7a547a
JB
11232014-08-15 Joel Brobecker <brobecker@adacore.com>
1124
1125 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1126 frame_info" partial declaration.
1127 * gdbarch.h: Regenerate.
1128
783cecc8
YQ
11292014-08-15 Yao Qi <yao@codesourcery.com>
1130
1131 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1132 Add parameter 'decode_for_pst_p'. Callers update.
1133
65c749e7
YQ
11342014-08-13 Yao Qi <yao@codesourcery.com>
1135
1136 PR build/17104
1137 * configure.ac: Use local variable 'pos'.
1138 * configure: Regenerated.
1139
d769e349
DE
11402014-08-11 Doug Evans <dje@google.com>
1141
1142 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1143 message, it is redundant with "Reading symbols from ..." message.
1144
24f1235e
DE
11452014-08-10 Doug Evans <xdje42@gmail.com>
1146
1147 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1148
dcd2e6ef
YQ
11492014-08-09 Yao Qi <yao@codesourcery.com>
1150
1151 PR remote/9053
1152 * remote.c (remote_xfer_partial): Remove dead code.
1153
070bdf0b
AA
11542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1155
1156 * ia64-linux-tdep.c: Include "regset.h".
1157 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1158 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1159 (ia64_linux_supply_fpregset): New function.
1160 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1161 (ia64_linux_regset_from_core_section): New function.
1162 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1163 method.
1164
08f9f542
AA
11652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166
1167 * m68klinux-tdep.c: Include "regset.h".
1168 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1169 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1170 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1171 (m68k_linux_regset_from_core_section): New function.
1172 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1173 method.
1174
8f1cee41
AA
11752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1176
1177 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1178 function. Move logic to...
1179 (tilegx_linux_regmap): ... this new register map.
1180 (tilegx_linux_regset): Refer to register map, replace supply
1181 method by regcache_supply_regset, and add collect method.
1182 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1183 TILEGX_FIRST_EASY_REGNUM.
1184
c5741217
AA
11852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1186
1187 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1188 that calls regcache_supply_regset and handles the EPC register
1189 separately. Move main logic to...
1190 (score7_linux_gregmap): ... this new register map.
1191 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1192 (score7_linux_gregset): Refer to register map. Add collect method.
1193 (score7_linux_regset_from_core_section): Replace
1194 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1195 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1196 (struct regset): Delete unused forward declaraction.
1197 (struct pt_regs): Delete structure definition.
1198 (elf_gregset_t): Delete typedef.
1199
81580573
AA
12002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1201
1202 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1203 (nios2_core_regset): Add collect method.
1204
ba199d7d
AA
12052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206
1207 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1208 platform-independent and don't write to read-only input buffer.
1209 (m32r_linux_collect_gregset): New function.
1210 (m32r_linux_gregset): Add collect method.
1211
0006a9da
AA
12122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1213
1214 * hppa-linux-tdep.c (greg_map): Rename to...
1215 (hppa_linux_gregmap): ... this. Also convert to
1216 regcache_map_entry format.
1217 (hppa_linux_supply_regset): Delete function.
1218 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1219 (hppa_linux_fpregmap): ... this new register map.
1220 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1221 register map, replace supply method by regcache_supply_regset, and
1222 add collect method regcache_collect_regset.
1223
901e1b23
AA
12242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1225
1226 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1227 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1228 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1229 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1230 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1231 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1232 (frv_linux_supply_gregset): Replace main logic by call to
1233 regcache_supply_regset, but keep clearing gr32-gr63.
1234 (frv_linux_supply_fpregset): Delete function.
1235 (frv_linux_gregset): Refer to appropriate register map and add
1236 regcache_collect_regset as the collect method.
1237 (frv_linux_fpregset): Likewise. Also exchange the supply method
1238 by regcache_supply_regset.
1239
1d6e7555
AA
12402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1241
1242 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1243 by call to alpha_supply_int_regs.
1244 (alpha_linux_collect_gregset): New function.
1245 (alpha_linux_supply_fpregset): Replace logic by call to
1246 alpha_supply_fp_regs.
1247 (alpha_linux_collect_fpregset): New function.
1248 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1249
d4d793bf
AA
12502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1251
1252 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1253 by call to regcache_collect_regset.
1254 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1255 instead of aarch64_linux_supply_gregset/_fpregset.
1256 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1257 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1258 header file instead.
1259 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1260 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1261 functions. Move logic to ...
1262 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1263 register maps.
1264 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1265 refer to new register maps, replace *_regset_from_core by
1266 regcache_supply_regset, and also use regcache_collect_regset.
1267 * aarch64-linux-tdep.h: Include "regset.h".
1268 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1269 Delete prototypes.
1270 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1271 macros, moved from C source file.
1272 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1273 variable declarations.
1274
99b7da5d
AA
12752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1276
1277 * s390-linux-nat.c: Include "regset.h".
1278 (regmap_gregset): Delete macro.
1279 (s390_64_regmap_gregset): New register map for
1280 regcache_supply/_collect_regset.
1281 (s390_64_gregset): New regset.
1282 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1283 (regmap_fpregset): Delete macro.
1284 (s390_native_supply, s390_native_collect): Delete functions.
1285 (supply_gregset, fill_gregset): Replace s390-specific regmap
1286 handling by a call to regcache_supply/_collect_regset.
1287 (supply_fpregset, fill_fpregset): Call regcache_supply/
1288 _collect_regset instead of s390_native_supply/_collect.
1289 (fetch_regset, store_regset): Likewise. Also change the last
1290 parameter to a regset instead of a regmap.
1291 (s390_linux_fetch_inferior_registers)
1292 (390_linux_store_inferior_registers): Adjust last parameter in
1293 calls to fetch_regset and store_regset.
1294 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1295 (s390_gregmap): ... this. Also make static const and convert to
1296 regcache_map_entry format.
1297 (s390x_regmap_gregset): Delete.
1298 (s390_regmap_fpregset): Rename to...
1299 (s390_fpregmap): ... this. Make static const and convert to
1300 regcache_map_entry format.
1301 (s390_regmap_upper, s390_regmap_last_break)
1302 (s390x_regmap_last_break, s390_regmap_system_call)
1303 (s390_regmap_tdb): Likewise.
1304 (s390_supply_regset, s390_collect_regset): Remove functions.
1305 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1306 s390_supply_regset.
1307 (s390_gregset, s390_fpregset, s390_upper_regset)
1308 (s390_last_break_regset, s390x_last_break_regset)
1309 (s390_system_call_regset, s390_tdb_regset): Make global and
1310 replace s390_supply/_collect_regset by regcache_supply/
1311 _collect_regset.
1312 (s390x_gregset): Delete.
1313 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1314 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1315 (s390_regmap_fpregset, s390_regmap_last_break)
1316 (s390x_regmap_last_break, s390_regmap_system_call)
1317 (s390_regmap_tdb): Delete global variable declarations.
1318 (s390_gregset, s390_fpregset, s390_last_break_regset)
1319 (s390x_last_break_regset, s390_system_call_regset)
1320 (s390_tdb_regset): New global variable declarations.
1321
0b309272
AA
13222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1323
1324 * regcache.c: Include "regset.h".
1325 (regcache_transfer_regset): New local function.
1326 (regcache_supply_regset, regcache_collect_regset): New functions.
1327 * regcache.h (struct regcache_map_entry): New structure.
1328 (REGCACHE_MAP_SKIP): New enum value.
1329 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1330
7fefa8d7
AA
13312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1332
1333 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1334 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1335 (ppc_linux_collect_gregset ): Likewise.
1336 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1337 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1338 (ppc_collect_vrregset): Likewise.
1339 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1340 Likewise.
1341
96c4f946
YQ
13422014-08-07 Yao Qi <yao@codesourcery.com>
1343
1344 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1345 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1346 * remote.c (remote_read_bytes): Likewise.
1347
fffbe6a8
YQ
13482014-08-07 Yao Qi <yao@codesourcery.com>
1349
1350 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1351
5ee8a82c
YQ
13522014-08-07 Yao Qi <yao@codesourcery.com>
1353
1354 PR remote/17230
1355 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1356 TARGET_XFER_OK instead of 0.
1357
bb974a24
GB
13582014-08-07 Gary Benson <gbenson@redhat.com>
1359
1360 * common/common-defs.h: Include errno.h.
1361 * defs.h: Do not include errno.h.
1362 * ada-typeprint.c: Likewise.
1363 * c-typeprint.c: Likewise.
1364 * core-regset.c: Likewise.
1365 * corefile.c: Likewise.
1366 * corelow.c: Likewise.
1367 * event-loop.c: Likewise.
1368 * f-typeprint.c: Likewise.
1369 * gnu-nat.c: Likewise.
1370 * go32-nat.c: Likewise.
1371 * i386gnu-nat.c: Likewise.
1372 * m2-typeprint.c: Likewise.
1373 * nat/linux-btrace.c: Likewise.
1374 * p-typeprint.c: Likewise.
1375 * procfs.c: Likewise.
1376 * remote-sim.c: Likewise.
1377 * rs6000-nat.c: Likewise.
1378 * target.c: Likewise.
1379 * typeprint.c: Likewise.
1380 * ui-file.c: Likewise.
1381 * valops.c: Likewise.
1382 * valprint.c: Likewise.
1383
6d3d12eb
GB
13842014-08-07 Gary Benson <gbenson@redhat.com>
1385
1386 * common/common-defs.h: Include string.h.
1387 * aarch64-tdep.c: Do not include string.h.
1388 * ada-exp.y: Likewise.
1389 * ada-lang.c: Likewise.
1390 * ada-lex.l: Likewise.
1391 * ada-typeprint.c: Likewise.
1392 * ada-valprint.c: Likewise.
1393 * aix-thread.c: Likewise.
1394 * alpha-linux-tdep.c: Likewise.
1395 * alpha-mdebug-tdep.c: Likewise.
1396 * alpha-nat.c: Likewise.
1397 * alpha-osf1-tdep.c: Likewise.
1398 * alpha-tdep.c: Likewise.
1399 * alphanbsd-tdep.c: Likewise.
1400 * amd64-dicos-tdep.c: Likewise.
1401 * amd64-linux-tdep.c: Likewise.
1402 * amd64-nat.c: Likewise.
1403 * amd64-sol2-tdep.c: Likewise.
1404 * amd64fbsd-tdep.c: Likewise.
1405 * amd64obsd-tdep.c: Likewise.
1406 * arch-utils.c: Likewise.
1407 * arm-linux-nat.c: Likewise.
1408 * arm-linux-tdep.c: Likewise.
1409 * arm-tdep.c: Likewise.
1410 * arm-wince-tdep.c: Likewise.
1411 * armbsd-tdep.c: Likewise.
1412 * armnbsd-nat.c: Likewise.
1413 * armnbsd-tdep.c: Likewise.
1414 * armobsd-tdep.c: Likewise.
1415 * avr-tdep.c: Likewise.
1416 * ax-gdb.c: Likewise.
1417 * ax-general.c: Likewise.
1418 * bcache.c: Likewise.
1419 * bfin-tdep.c: Likewise.
1420 * breakpoint.c: Likewise.
1421 * build-id.c: Likewise.
1422 * buildsym.c: Likewise.
1423 * c-exp.y: Likewise.
1424 * c-lang.c: Likewise.
1425 * c-typeprint.c: Likewise.
1426 * c-valprint.c: Likewise.
1427 * charset.c: Likewise.
1428 * cli-out.c: Likewise.
1429 * cli/cli-cmds.c: Likewise.
1430 * cli/cli-decode.c: Likewise.
1431 * cli/cli-dump.c: Likewise.
1432 * cli/cli-interp.c: Likewise.
1433 * cli/cli-logging.c: Likewise.
1434 * cli/cli-script.c: Likewise.
1435 * cli/cli-setshow.c: Likewise.
1436 * cli/cli-utils.c: Likewise.
1437 * coffread.c: Likewise.
1438 * common/agent.c: Likewise.
1439 * common/buffer.c: Likewise.
1440 * common/buffer.h: Likewise.
1441 * common/common-utils.c: Likewise.
1442 * common/filestuff.c: Likewise.
1443 * common/filestuff.c: Likewise.
1444 * common/format.c: Likewise.
1445 * common/print-utils.c: Likewise.
1446 * common/rsp-low.c: Likewise.
1447 * common/signals.c: Likewise.
1448 * common/vec.h: Likewise.
1449 * common/xml-utils.c: Likewise.
1450 * core-regset.c: Likewise.
1451 * corefile.c: Likewise.
1452 * corelow.c: Likewise.
1453 * cp-abi.c: Likewise.
1454 * cp-name-parser.y: Likewise.
1455 * cp-support.c: Likewise.
1456 * cp-valprint.c: Likewise.
1457 * cris-tdep.c: Likewise.
1458 * d-exp.y: Likewise.
1459 * darwin-nat.c: Likewise.
1460 * dbxread.c: Likewise.
1461 * dcache.c: Likewise.
1462 * demangle.c: Likewise.
1463 * dicos-tdep.c: Likewise.
1464 * disasm.c: Likewise.
1465 * doublest.c: Likewise.
1466 * dsrec.c: Likewise.
1467 * dummy-frame.c: Likewise.
1468 * dwarf2-frame.c: Likewise.
1469 * dwarf2loc.c: Likewise.
1470 * dwarf2read.c: Likewise.
1471 * elfread.c: Likewise.
1472 * environ.c: Likewise.
1473 * eval.c: Likewise.
1474 * event-loop.c: Likewise.
1475 * exceptions.c: Likewise.
1476 * exec.c: Likewise.
1477 * expprint.c: Likewise.
1478 * f-exp.y: Likewise.
1479 * f-lang.c: Likewise.
1480 * f-typeprint.c: Likewise.
1481 * f-valprint.c: Likewise.
1482 * fbsd-nat.c: Likewise.
1483 * findcmd.c: Likewise.
1484 * findvar.c: Likewise.
1485 * fork-child.c: Likewise.
1486 * frame.c: Likewise.
1487 * frv-linux-tdep.c: Likewise.
1488 * frv-tdep.c: Likewise.
1489 * gdb.c: Likewise.
1490 * gdb_bfd.c: Likewise.
1491 * gdbarch.c: Likewise.
1492 * gdbarch.sh: Likewise.
1493 * gdbtypes.c: Likewise.
1494 * gnu-nat.c: Likewise.
1495 * gnu-v2-abi.c: Likewise.
1496 * gnu-v3-abi.c: Likewise.
1497 * go-exp.y: Likewise.
1498 * go-lang.c: Likewise.
1499 * go32-nat.c: Likewise.
1500 * guile/guile.c: Likewise.
1501 * guile/scm-auto-load.c: Likewise.
1502 * hppa-hpux-tdep.c: Likewise.
1503 * hppa-linux-nat.c: Likewise.
1504 * hppanbsd-tdep.c: Likewise.
1505 * hppaobsd-tdep.c: Likewise.
1506 * i386-cygwin-tdep.c: Likewise.
1507 * i386-dicos-tdep.c: Likewise.
1508 * i386-linux-tdep.c: Likewise.
1509 * i386-nto-tdep.c: Likewise.
1510 * i386-sol2-tdep.c: Likewise.
1511 * i386-tdep.c: Likewise.
1512 * i386bsd-tdep.c: Likewise.
1513 * i386gnu-nat.c: Likewise.
1514 * i386nbsd-tdep.c: Likewise.
1515 * i386obsd-tdep.c: Likewise.
1516 * i387-tdep.c: Likewise.
1517 * ia64-libunwind-tdep.c: Likewise.
1518 * ia64-linux-nat.c: Likewise.
1519 * inf-child.c: Likewise.
1520 * inf-ptrace.c: Likewise.
1521 * inf-ttrace.c: Likewise.
1522 * infcall.c: Likewise.
1523 * infcmd.c: Likewise.
1524 * inflow.c: Likewise.
1525 * infrun.c: Likewise.
1526 * interps.c: Likewise.
1527 * iq2000-tdep.c: Likewise.
1528 * irix5-nat.c: Likewise.
1529 * jv-exp.y: Likewise.
1530 * jv-lang.c: Likewise.
1531 * jv-typeprint.c: Likewise.
1532 * jv-valprint.c: Likewise.
1533 * language.c: Likewise.
1534 * linux-fork.c: Likewise.
1535 * linux-nat.c: Likewise.
1536 * lm32-tdep.c: Likewise.
1537 * m2-exp.y: Likewise.
1538 * m2-typeprint.c: Likewise.
1539 * m32c-tdep.c: Likewise.
1540 * m32r-linux-nat.c: Likewise.
1541 * m32r-linux-tdep.c: Likewise.
1542 * m32r-rom.c: Likewise.
1543 * m32r-tdep.c: Likewise.
1544 * m68hc11-tdep.c: Likewise.
1545 * m68k-tdep.c: Likewise.
1546 * m68kbsd-tdep.c: Likewise.
1547 * m68klinux-nat.c: Likewise.
1548 * m68klinux-tdep.c: Likewise.
1549 * m88k-tdep.c: Likewise.
1550 * machoread.c: Likewise.
1551 * macrocmd.c: Likewise.
1552 * main.c: Likewise.
1553 * mdebugread.c: Likewise.
1554 * mem-break.c: Likewise.
1555 * memattr.c: Likewise.
1556 * memory-map.c: Likewise.
1557 * mep-tdep.c: Likewise.
1558 * mi/mi-cmd-break.c: Likewise.
1559 * mi/mi-cmd-disas.c: Likewise.
1560 * mi/mi-cmd-env.c: Likewise.
1561 * mi/mi-cmd-stack.c: Likewise.
1562 * mi/mi-cmd-var.c: Likewise.
1563 * mi/mi-cmds.c: Likewise.
1564 * mi/mi-console.c: Likewise.
1565 * mi/mi-getopt.c: Likewise.
1566 * mi/mi-interp.c: Likewise.
1567 * mi/mi-main.c: Likewise.
1568 * mi/mi-parse.c: Likewise.
1569 * microblaze-rom.c: Likewise.
1570 * microblaze-tdep.c: Likewise.
1571 * mingw-hdep.c: Likewise.
1572 * minidebug.c: Likewise.
1573 * minsyms.c: Likewise.
1574 * mips-irix-tdep.c: Likewise.
1575 * mips-linux-tdep.c: Likewise.
1576 * mips-tdep.c: Likewise.
1577 * mips64obsd-tdep.c: Likewise.
1578 * mipsnbsd-tdep.c: Likewise.
1579 * mipsread.c: Likewise.
1580 * mn10300-linux-tdep.c: Likewise.
1581 * mn10300-tdep.c: Likewise.
1582 * monitor.c: Likewise.
1583 * moxie-tdep.c: Likewise.
1584 * mt-tdep.c: Likewise.
1585 * nat/linux-btrace.c: Likewise.
1586 * nat/linux-osdata.c: Likewise.
1587 * nat/linux-procfs.c: Likewise.
1588 * nat/linux-ptrace.c: Likewise.
1589 * nat/linux-waitpid.c: Likewise.
1590 * nbsd-tdep.c: Likewise.
1591 * nios2-linux-tdep.c: Likewise.
1592 * nto-procfs.c: Likewise.
1593 * nto-tdep.c: Likewise.
1594 * objc-lang.c: Likewise.
1595 * objfiles.c: Likewise.
1596 * opencl-lang.c: Likewise.
1597 * osabi.c: Likewise.
1598 * osdata.c: Likewise.
1599 * p-exp.y: Likewise.
1600 * p-lang.c: Likewise.
1601 * p-typeprint.c: Likewise.
1602 * parse.c: Likewise.
1603 * posix-hdep.c: Likewise.
1604 * ppc-linux-nat.c: Likewise.
1605 * ppc-sysv-tdep.c: Likewise.
1606 * ppcfbsd-tdep.c: Likewise.
1607 * ppcnbsd-tdep.c: Likewise.
1608 * ppcobsd-tdep.c: Likewise.
1609 * printcmd.c: Likewise.
1610 * procfs.c: Likewise.
1611 * prologue-value.c: Likewise.
1612 * python/py-auto-load.c: Likewise.
1613 * python/py-gdb-readline.c: Likewise.
1614 * ravenscar-thread.c: Likewise.
1615 * regcache.c: Likewise.
1616 * registry.c: Likewise.
1617 * remote-fileio.c: Likewise.
1618 * remote-m32r-sdi.c: Likewise.
1619 * remote-mips.c: Likewise.
1620 * remote-notif.c: Likewise.
1621 * remote-sim.c: Likewise.
1622 * remote.c: Likewise.
1623 * reverse.c: Likewise.
1624 * rs6000-aix-tdep.c: Likewise.
1625 * ser-base.c: Likewise.
1626 * ser-go32.c: Likewise.
1627 * ser-mingw.c: Likewise.
1628 * ser-pipe.c: Likewise.
1629 * ser-tcp.c: Likewise.
1630 * ser-unix.c: Likewise.
1631 * serial.c: Likewise.
1632 * sh-tdep.c: Likewise.
1633 * sh64-tdep.c: Likewise.
1634 * shnbsd-tdep.c: Likewise.
1635 * skip.c: Likewise.
1636 * sol-thread.c: Likewise.
1637 * solib-dsbt.c: Likewise.
1638 * solib-frv.c: Likewise.
1639 * solib-osf.c: Likewise.
1640 * solib-som.c: Likewise.
1641 * solib-spu.c: Likewise.
1642 * solib-target.c: Likewise.
1643 * solib.c: Likewise.
1644 * somread.c: Likewise.
1645 * source.c: Likewise.
1646 * sparc-nat.c: Likewise.
1647 * sparc-sol2-tdep.c: Likewise.
1648 * sparc-tdep.c: Likewise.
1649 * sparc64-tdep.c: Likewise.
1650 * sparc64fbsd-tdep.c: Likewise.
1651 * sparc64nbsd-tdep.c: Likewise.
1652 * sparcnbsd-tdep.c: Likewise.
1653 * spu-linux-nat.c: Likewise.
1654 * spu-multiarch.c: Likewise.
1655 * spu-tdep.c: Likewise.
1656 * stabsread.c: Likewise.
1657 * stack.c: Likewise.
1658 * std-regs.c: Likewise.
1659 * symfile.c: Likewise.
1660 * symmisc.c: Likewise.
1661 * symtab.c: Likewise.
1662 * target.c: Likewise.
1663 * thread.c: Likewise.
1664 * tilegx-linux-nat.c: Likewise.
1665 * tilegx-tdep.c: Likewise.
1666 * top.c: Likewise.
1667 * tracepoint.c: Likewise.
1668 * tui/tui-command.c: Likewise.
1669 * tui/tui-data.c: Likewise.
1670 * tui/tui-disasm.c: Likewise.
1671 * tui/tui-file.c: Likewise.
1672 * tui/tui-layout.c: Likewise.
1673 * tui/tui-out.c: Likewise.
1674 * tui/tui-regs.c: Likewise.
1675 * tui/tui-source.c: Likewise.
1676 * tui/tui-stack.c: Likewise.
1677 * tui/tui-win.c: Likewise.
1678 * tui/tui-windata.c: Likewise.
1679 * tui/tui-winsource.c: Likewise.
1680 * typeprint.c: Likewise.
1681 * ui-file.c: Likewise.
1682 * ui-out.c: Likewise.
1683 * user-regs.c: Likewise.
1684 * utils.c: Likewise.
1685 * v850-tdep.c: Likewise.
1686 * valarith.c: Likewise.
1687 * valops.c: Likewise.
1688 * valprint.c: Likewise.
1689 * value.c: Likewise.
1690 * varobj.c: Likewise.
1691 * vax-tdep.c: Likewise.
1692 * vaxnbsd-tdep.c: Likewise.
1693 * vaxobsd-tdep.c: Likewise.
1694 * windows-nat.c: Likewise.
1695 * xcoffread.c: Likewise.
1696 * xml-support.c: Likewise.
1697 * xstormy16-tdep.c: Likewise.
1698 * xtensa-linux-nat.c: Likewise.
1699
dccbb609
GB
17002014-08-07 Gary Benson <gbenson@redhat.com>
1701
1702 * common/common-defs.h: Include gdb_assert.h.
1703 * aarch64-tdep.c: Do not include gdb_assert.h.
1704 * addrmap.c: Likewise.
1705 * aix-thread.c: Likewise.
1706 * alpha-linux-tdep.c: Likewise.
1707 * alpha-mdebug-tdep.c: Likewise.
1708 * alphanbsd-tdep.c: Likewise.
1709 * amd64-nat.c: Likewise.
1710 * amd64-tdep.c: Likewise.
1711 * amd64bsd-nat.c: Likewise.
1712 * amd64fbsd-nat.c: Likewise.
1713 * amd64fbsd-tdep.c: Likewise.
1714 * amd64nbsd-nat.c: Likewise.
1715 * amd64nbsd-tdep.c: Likewise.
1716 * amd64obsd-nat.c: Likewise.
1717 * amd64obsd-tdep.c: Likewise.
1718 * arch-utils.c: Likewise.
1719 * arm-tdep.c: Likewise.
1720 * armbsd-tdep.c: Likewise.
1721 * auxv.c: Likewise.
1722 * bcache.c: Likewise.
1723 * bfin-tdep.c: Likewise.
1724 * blockframe.c: Likewise.
1725 * breakpoint.c: Likewise.
1726 * bsd-kvm.c: Likewise.
1727 * bsd-uthread.c: Likewise.
1728 * buildsym.c: Likewise.
1729 * c-exp.y: Likewise.
1730 * c-lang.c: Likewise.
1731 * charset.c: Likewise.
1732 * cleanups.c: Likewise.
1733 * cli-out.c: Likewise.
1734 * cli/cli-decode.c: Likewise.
1735 * cli/cli-dump.c: Likewise.
1736 * cli/cli-logging.c: Likewise.
1737 * cli/cli-script.c: Likewise.
1738 * cli/cli-utils.c: Likewise.
1739 * coffread.c: Likewise.
1740 * common/common-utils.c: Likewise.
1741 * common/queue.h: Likewise.
1742 * common/signals.c: Likewise.
1743 * common/vec.h: Likewise.
1744 * complaints.c: Likewise.
1745 * completer.c: Likewise.
1746 * corelow.c: Likewise.
1747 * cp-abi.c: Likewise.
1748 * cp-name-parser.y: Likewise.
1749 * cp-namespace.c: Likewise.
1750 * cp-support.c: Likewise.
1751 * cris-tdep.c: Likewise.
1752 * dbxread.c: Likewise.
1753 * dictionary.c: Likewise.
1754 * doublest.c: Likewise.
1755 * dsrec.c: Likewise.
1756 * dummy-frame.c: Likewise.
1757 * dwarf2-frame-tailcall.c: Likewise.
1758 * dwarf2-frame.c: Likewise.
1759 * dwarf2expr.c: Likewise.
1760 * dwarf2loc.c: Likewise.
1761 * dwarf2read.c: Likewise.
1762 * eval.c: Likewise.
1763 * event-loop.c: Likewise.
1764 * exceptions.c: Likewise.
1765 * expprint.c: Likewise.
1766 * f-valprint.c: Likewise.
1767 * fbsd-nat.c: Likewise.
1768 * findvar.c: Likewise.
1769 * frame-unwind.c: Likewise.
1770 * frame.c: Likewise.
1771 * frv-tdep.c: Likewise.
1772 * gcore.c: Likewise.
1773 * gdb-dlfcn.c: Likewise.
1774 * gdb_bfd.c: Likewise.
1775 * gdbarch.c: Likewise.
1776 * gdbarch.sh: Likewise.
1777 * gdbtypes.c: Likewise.
1778 * gnu-nat.c: Likewise.
1779 * gnu-v3-abi.c: Likewise.
1780 * go-lang.c: Likewise.
1781 * guile/scm-exception.c: Likewise.
1782 * guile/scm-gsmob.c: Likewise.
1783 * guile/scm-lazy-string.c: Likewise.
1784 * guile/scm-math.c: Likewise.
1785 * guile/scm-pretty-print.c: Likewise.
1786 * guile/scm-safe-call.c: Likewise.
1787 * guile/scm-utils.c: Likewise.
1788 * guile/scm-value.c: Likewise.
1789 * h8300-tdep.c: Likewise.
1790 * hppa-hpux-nat.c: Likewise.
1791 * hppa-tdep.c: Likewise.
1792 * hppanbsd-tdep.c: Likewise.
1793 * hppaobsd-tdep.c: Likewise.
1794 * i386-darwin-nat.c: Likewise.
1795 * i386-darwin-tdep.c: Likewise.
1796 * i386-nto-tdep.c: Likewise.
1797 * i386-tdep.c: Likewise.
1798 * i386bsd-nat.c: Likewise.
1799 * i386fbsd-tdep.c: Likewise.
1800 * i386gnu-nat.c: Likewise.
1801 * i386nbsd-tdep.c: Likewise.
1802 * i386obsd-tdep.c: Likewise.
1803 * i387-tdep.c: Likewise.
1804 * ia64-libunwind-tdep.c: Likewise.
1805 * ia64-tdep.c: Likewise.
1806 * inf-ptrace.c: Likewise.
1807 * inf-ttrace.c: Likewise.
1808 * infcall.c: Likewise.
1809 * infcmd.c: Likewise.
1810 * infrun.c: Likewise.
1811 * inline-frame.c: Likewise.
1812 * interps.c: Likewise.
1813 * jv-lang.c: Likewise.
1814 * jv-typeprint.c: Likewise.
1815 * linux-fork.c: Likewise.
1816 * linux-nat.c: Likewise.
1817 * linux-thread-db.c: Likewise.
1818 * m32c-tdep.c: Likewise.
1819 * m32r-linux-nat.c: Likewise.
1820 * m32r-tdep.c: Likewise.
1821 * m68k-tdep.c: Likewise.
1822 * m68kbsd-nat.c: Likewise.
1823 * m68kbsd-tdep.c: Likewise.
1824 * m88k-tdep.c: Likewise.
1825 * machoread.c: Likewise.
1826 * macroexp.c: Likewise.
1827 * macrotab.c: Likewise.
1828 * maint.c: Likewise.
1829 * mdebugread.c: Likewise.
1830 * memory-map.c: Likewise.
1831 * mep-tdep.c: Likewise.
1832 * mi/mi-common.c: Likewise.
1833 * microblaze-tdep.c: Likewise.
1834 * mingw-hdep.c: Likewise.
1835 * mips-linux-nat.c: Likewise.
1836 * mips-linux-tdep.c: Likewise.
1837 * mips-tdep.c: Likewise.
1838 * mips64obsd-tdep.c: Likewise.
1839 * mipsnbsd-tdep.c: Likewise.
1840 * mn10300-linux-tdep.c: Likewise.
1841 * mn10300-tdep.c: Likewise.
1842 * moxie-tdep.c: Likewise.
1843 * mt-tdep.c: Likewise.
1844 * nat/linux-btrace.c: Likewise.
1845 * nat/linux-osdata.c: Likewise.
1846 * nat/linux-ptrace.c: Likewise.
1847 * nat/mips-linux-watch.c: Likewise.
1848 * nios2-linux-tdep.c: Likewise.
1849 * nios2-tdep.c: Likewise.
1850 * objc-lang.c: Likewise.
1851 * objfiles.c: Likewise.
1852 * obsd-nat.c: Likewise.
1853 * opencl-lang.c: Likewise.
1854 * osabi.c: Likewise.
1855 * parse.c: Likewise.
1856 * ppc-linux-nat.c: Likewise.
1857 * ppc-sysv-tdep.c: Likewise.
1858 * ppcfbsd-nat.c: Likewise.
1859 * ppcfbsd-tdep.c: Likewise.
1860 * ppcnbsd-nat.c: Likewise.
1861 * ppcnbsd-tdep.c: Likewise.
1862 * ppcobsd-nat.c: Likewise.
1863 * ppcobsd-tdep.c: Likewise.
1864 * printcmd.c: Likewise.
1865 * procfs.c: Likewise.
1866 * prologue-value.c: Likewise.
1867 * psymtab.c: Likewise.
1868 * python/py-lazy-string.c: Likewise.
1869 * python/py-value.c: Likewise.
1870 * regcache.c: Likewise.
1871 * reggroups.c: Likewise.
1872 * registry.c: Likewise.
1873 * remote-sim.c: Likewise.
1874 * remote.c: Likewise.
1875 * rs6000-aix-tdep.c: Likewise.
1876 * rs6000-tdep.c: Likewise.
1877 * s390-linux-tdep.c: Likewise.
1878 * score-tdep.c: Likewise.
1879 * ser-base.c: Likewise.
1880 * ser-mingw.c: Likewise.
1881 * sh-tdep.c: Likewise.
1882 * sh64-tdep.c: Likewise.
1883 * solib-darwin.c: Likewise.
1884 * solib-spu.c: Likewise.
1885 * solib-svr4.c: Likewise.
1886 * source.c: Likewise.
1887 * sparc-nat.c: Likewise.
1888 * sparc-sol2-tdep.c: Likewise.
1889 * sparc-tdep.c: Likewise.
1890 * sparc64-sol2-tdep.c: Likewise.
1891 * sparc64-tdep.c: Likewise.
1892 * sparc64fbsd-tdep.c: Likewise.
1893 * sparc64nbsd-tdep.c: Likewise.
1894 * sparc64obsd-tdep.c: Likewise.
1895 * sparcnbsd-tdep.c: Likewise.
1896 * sparcobsd-tdep.c: Likewise.
1897 * spu-multiarch.c: Likewise.
1898 * spu-tdep.c: Likewise.
1899 * stabsread.c: Likewise.
1900 * stack.c: Likewise.
1901 * symfile.c: Likewise.
1902 * symtab.c: Likewise.
1903 * target-descriptions.c: Likewise.
1904 * target-memory.c: Likewise.
1905 * target.c: Likewise.
1906 * tic6x-linux-tdep.c: Likewise.
1907 * tic6x-tdep.c: Likewise.
1908 * tilegx-linux-nat.c: Likewise.
1909 * tilegx-tdep.c: Likewise.
1910 * top.c: Likewise.
1911 * tramp-frame.c: Likewise.
1912 * tui/tui-out.c: Likewise.
1913 * tui/tui-winsource.c: Likewise.
1914 * ui-out.c: Likewise.
1915 * user-regs.c: Likewise.
1916 * utils.c: Likewise.
1917 * v850-tdep.c: Likewise.
1918 * valops.c: Likewise.
1919 * value.c: Likewise.
1920 * varobj.c: Likewise.
1921 * vax-nat.c: Likewise.
1922 * xml-syscall.c: Likewise.
1923 * xml-tdesc.c: Likewise.
1924 * xstormy16-tdep.c: Likewise.
1925 * xtensa-linux-nat.c: Likewise.
1926 * xtensa-tdep.c: Likewise.
1927
e76df0d0
GB
19282014-08-07 Gary Benson <gbenson@redhat.com>
1929
1930 * common/common-defs.h: Include common-utils.h.
1931 * defs.h: Do not include common-utils.h.
1932 * common/gdb_assert.h: Likewise.
1933 * darwin-nat.h: Likewise.
1934 * nat/linux-btrace.c: Likewise.
1935 * target/waitstatus.h: Likewise.
1936
4cb9c816
GB
19372014-08-07 Gary Benson <gbenson@redhat.com>
1938
1939 * common/common-defs.h: Include ptid.h.
1940 * defs.h: Do not include ptid.h.
1941 * inferior.h: Likewise.
1942 * infrun.h: Likewise.
1943 * nat/linux-btrace.h: Likewise.
1944 * nat/linux-osdata.h: Likewise.
1945 * target/waitstatus.h: Likewise.
1946
3995eeee
GB
19472014-08-07 Gary Benson <gbenson@redhat.com>
1948
1949 * common/common-defs.h: Include gdb_locale.h.
1950 * defs.h: Do not include gdb_locale.h.
1951
cb9f1a9b
GB
19522014-08-07 Gary Benson <gbenson@redhat.com>
1953
1954 * common/common-defs.h: Include gdb/signals.h.
1955 * defs.h: Do not include gdb/signals.h.
1956
a5fceff8
GB
19572014-08-07 Gary Benson <gbenson@redhat.com>
1958
1959 * common/common-defs.h: Include pathmax.h.
1960 * defs.h: Do not include pathmax.h.
1961
b9391142
GB
19622014-08-07 Gary Benson <gbenson@redhat.com>
1963
1964 * common/common-defs.h: Include libiberty.h.
1965 * defs.h: Do not include libiberty.h.
1966 * common/queue.h: Likewise.
1967 * cp-name-parser.y: Likewise.
1968 * mi/mi-cmd-catch.c: Likewise.
1969 * python/python.c: Likewise.
1970
0e443c87
GB
19712014-08-07 Gary Benson <gbenson@redhat.com>
1972
1973 * common/common-defs.h: Include ansidecl.h.
1974 * defs.h: Do not include ansidecl.h.
1975 * common/buffer.h: Likewise.
1976 * common/common-utils.h: Likewise.
1977
8ebb3f56
GB
19782014-08-07 Gary Benson <gbenson@redhat.com>
1979
1980 * common/common-defs.h: Include stddef.h.
1981 * defs.h: Do not include stddef.h.
1982 * common/common-utils.h: Likewise.
1983 * amd64fbsd-nat.c: Likewise.
1984 * bcache.c: Likewise.
1985 * charset.c: Likewise.
1986 * common/buffer.h: Likewise.
1987 * common/vec.h: Likewise.
1988 * i386bsd-nat.c: Likewise.
1989 * nat/linux-btrace.h: Likewise.
1990 * ppcfbsd-nat.c: Likewise.
1991 * ppcnbsd-tdep.h: Likewise.
1992 * ppcobsd-nat.c: Likewise.
1993 * ppcobsd-tdep.h: Likewise.
1994 * python/py-gdb-readline.c: Likewise.
1995
8980bdf6
GB
19962014-08-07 Gary Benson <gbenson@redhat.com>
1997
1998 * common/common-defs.h: Include stdarg.h.
1999 * defs.h: Do not include stdarg.h.
2000 * ada-lang.c: Likewise.
2001 * common/common-utils.h: Likewise.
2002 * guile/scm-string.c: Likewise.
2003 * guile/scm-utils.c: Likewise.
2004 * m32c-tdep.c: Likewise.
2005
d7096f71
GB
20062014-08-07 Gary Benson <gbenson@redhat.com>
2007
2008 * common/common-defs.h: Include stdlib.h.
2009 * defs.h: Do not include stdlib.h.
2010 * addrmap.c: Likewise.
2011 * bcache.c: Likewise.
2012 * common/buffer.c: Likewise.
2013 * common/common-utils.c: Likewise.
2014 * cp-name-parser.y: Likewise.
2015 * go32-nat.c: Likewise.
2016 * mn10300-linux-tdep.c: Likewise.
2017 * nat/linux-osdata.c: Likewise.
2018 * tui/tui.c: Likewise.
2019 * windows-nat.c: Likewise.
2020
d02f550d
GB
20212014-08-07 Gary Benson <gbenson@redhat.com>
2022
2023 * common/common-defs.h: Include stdio.h.
2024 * defs.h: Do not include stdio.h.
2025 * ada-lang.c: Likewise.
2026 * common/buffer.c: Likewise.
2027 * common/common-utils.c: Likewise.
2028 * cp-name-parser.y: Likewise.
2029 * gnu-nat.c: Likewise.
2030 * go32-nat.c: Likewise.
2031 * i386gnu-nat.c: Likewise.
2032 * proc-api.c: Likewise.
2033 * proc-events.c: Likewise.
2034 * proc-flags.c: Likewise.
2035 * proc-why.c: Likewise.
2036 * python/python-internal.h: Likewise.
2037 * target-memory.c: Likewise.
2038 * tui/tui-io.c: Likewise.
2039 * tui/tui.c: Likewise.
2040
b6d7a4bf
SM
20412014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2042
2043 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2044 (scan_dyntag_auxv): Same.
2045
af19829b
YQ
20462014-08-06 Yao Qi <yao@codesourcery.com>
2047
2048 * amd64-linux-nat.c: Remove duplicated include
2049 "x86-linux-nat.h".
2050 * i386-linux-nat.c: Likewise.
2051
8e07a239
YQ
20522014-08-06 Yao Qi <yao@codesourcery.com>
2053
2054 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2055 operand" with "Special opcode" in comments.
2056
7bfe8241
GB
20572014-08-05 Gary Benson <gbenson@redhat.com>
2058
2059 * interps.c (initialize_interps): Remove prototype.
2060 (interpreter_initialized): Remove static global.
2061 (interp_add): Do not call initialize_interps.
2062 (initialize_interps): Remove function.
2063
d6c95504
GB
20642014-08-05 Gary Benson <gbenson@redhat.com>
2065
2066 * utils.c (vwarning): Remove spurious va_end.
2067
241fd515
AM
20682014-08-05 Alan Modra <amodra@gmail.com>
2069
2070 * charset.c (convert_between_encodings): Cast result of obstack_base.
2071 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2072 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2073 (read_unwind_info): Use size_t for some locals.
2074 * jit.c (finalize_symtab): Likewise.
2075 * utils.c (hashtab_obstack_allocate): Likewise.
2076 * symmisc.c (print_objfile_statistics): Update format strings.
2077
dc304a94
JK
20782014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2079
2080 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2081 (Changes in GDB 7.8): ... here.
2082
3cecbbbe
TT
20832014-08-04 Tom Tromey <tromey@redhat.com>
2084
2085 * target.c (set_targetdebug): New function.
2086 (initialize_targets): Pass set_targetdebug when creating "set
2087 debug target".
2088
6908c509
JB
20892014-08-01 Joel Brobecker <brobecker@adacore.com>
2090
2091 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2092 if detecting a variable-sized field that is not the last field.
2093 Fix struct type length computation.
2094
53e8f97d
JB
20952014-08-01 Joel Brobecker <brobecker@adacore.com>
2096
2097 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2098 Add debug trace.
2099
e068c55d
JB
21002014-08-01 Joel Brobecker <brobecker@adacore.com>
2101
2102 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2103 Remove "+ 8" offset in computation of CHAIN_VMA.
2104
4d4ca2a1
DE
21052014-07-31 Doug Evans <dje@google.com>
2106
2107 * inflow.c (child_terminal_inferior): Add comment.
2108 (child_terminal_ours_for_output): Add comment.
2109 (child_terminal_ours): Add comment.
2110 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2111 (linux_nat_terminal_ours): Add comment.
2112
462f517e
GB
21132014-07-31 Gary Benson <gbenson@redhat.com>
2114
2115 * common/btrace-common.h: Do not include defs.h or server.h.
2116 * nat/mips-linux-watch.h: Likewise.
2117 * gdb-dlfcn.h: Do not include defs.h.
2118 * tracefile.h: Likewise.
2119
74228e77
RM
21202014-07-30 Roland McGrath <mcgrathr@google.com>
2121
2122 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2123
014f9477
TT
21242014-07-30 Tom Tromey <tromey@redhat.com>
2125
2126 * bsd-kvm.c (bsd_kvm_open): Constify.
2127 * corelow.c (core_open): Constify.
2128 * ctf.c (ctf_open): Constify.
2129 * dbug-rom.c (dbug_open): Constify.
2130 * exec.c (exec_open): Constify.
2131 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2132 * microblaze-rom.c (picobug_open): Constify.
2133 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2134 Constify.
2135 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2136 * record-btrace.c (record_btrace_open): Constify.
2137 * record-full.c (record_full_core_open_1, record_full_open_1)
2138 (record_full_open): Constify.
2139 * remote-m32r-sdi.c (m32r_open): Constify.
2140 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2141 (rockhopper_open, lsi_open): Constify.
2142 * remote-sim.c (gdbsim_open): Constify.
2143 * remote.c (remote_open, extended_remote_open, remote_open_1):
2144 Constify.
2145 * target.h (struct target_ops) <to_open>: Make "arg" const.
2146 * tracefile-tfile.c (tfile_open): Constify.
2147
e799154c
TT
21482014-07-30 Tom Tromey <tromey@redhat.com>
2149
2150 * breakpoint.c (map_breakpoint_numbers): Update.
2151 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2152 (get_number_const): New function.
2153 (get_number): Rewrite using get_number_const.
2154 (init_number_or_range): Make "string" const.
2155 (number_is_in_list): Make "list" const.
2156 * cli/cli-utils.h (get_number_const): Declare.
2157 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2158 (init_number_or_range, number_is_in_list): Update.
2159 * printcmd.c (map_display_numbers): Update.
2160 * value.c (value_from_history_ref): Constify.
2161 * value.h (value_from_history_ref): Update.
2162
5f08566b
TT
21632014-07-30 Tom Tromey <tromey@redhat.com>
2164
2165 * corefile.c (hook_type, call_extra_exec_file_hooks)
2166 (specify_exec_file_hook): Constify.
2167 * exec.c (exec_file_attach): Make "filename" const.
2168 * gdbcore.h (deprecated_exec_file_display_hook)
2169 (specify_exec_file_hook, exec_file_attach): Constify.
2170 * main.c (captured_main): Use catch_command_errors_const.
2171
8981c758
TT
21722014-07-30 Tom Tromey <tromey@redhat.com>
2173
2174 * target.c (open_target): New function.
2175 (add_target_with_completer, add_deprecated_target_alias): Use
2176 set_cmd_sfunc, set_cmd_context.
2177 (debug_to_open): Remove.
2178 (setup_target_debug): Update.
2179
a1c7835a
YQ
21802014-07-30 Yao Qi <yao@codesourcery.com>
2181
2182 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2183 comments.
2184 * parse.c (exp_iterate): Update comments.
2185
976411d6
GB
21862014-07-30 Gary Benson <gbenson@redhat.com>
2187
2188 * common/common-defs.h: New file.
2189 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2190 * defs.h: Include common-defs.h.
2191 Do not include config.h or build-gnulib/config.h.
2192
5d4848a4
GB
21932014-07-30 Gary Benson <gbenson@redhat.com>
2194
2195 * common/common-utils.h: Do not include config.h.
2196 * nat/linux-btrace.h: Likewise.
2197
d41f6d8e
GB
21982014-07-30 Gary Benson <gbenson@redhat.com>
2199
2200 * btrace.c: Include defs.h.
2201 * common/ptid.c: Include defs.h or server.h as appropriate.
2202 * nat/mips-linux-watch.c: Likewise.
2203
84202f9c
TT
22042014-07-29 Tom Tromey <tromey@redhat.com>
2205
2206 * target.c (target_is_pushed): Simplify.
2207
2530441c
JB
22082014-07-29 Joel Brobecker <brobecker@adacore.com>
2209
2210 GDB 7.8 released.
2211
7e09a223
YQ
22122014-07-29 Yao Qi <yao@codesourcery.com>
2213
2214 PR gdb/17206
2215 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2216
7ebdbe92
DE
22172014-07-28 Doug Evans <xdje42@gmail.com>
2218
2219 PR guile/17203
2220 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2221 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2222 parameters.
2223
f347ffc9
WN
22242014-07-28 Will Newton <will.newton@linaro.org>
2225
2226 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2227 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2228 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2229 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2230 (THUMB2_EABI_SYSCALL): Likewise.
2231 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2232 struct tramp_frame.
2233 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2234 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2235
37c5f1f7
DE
22362014-07-27 Doug Evans <xdje42@gmail.com>
2237
2238 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2239
0c3abbc7
DE
22402014-07-27 Doug Evans <xdje42@gmail.com>
2241
2242 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2243
e76c5d17
DE
22442014-07-26 Ludovic Courtès <ludo@gnu.org>
2245 Doug Evans <xdje42@gmail.com>
2246
2247 PR guile/17146
2248 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2249 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2250 * configure.ac: Try to use guild to compile an scm file, if it fails
2251 then disable guile support.
2252 * configure: Regenerate.
2253 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2254 GUILE_FILE_LIST.
2255 (GUILE_COMPILED_FILES): New variable.
2256 (GUILE_FILES) Update.
2257 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2258 (stamp-guile): Compile scm files.
2259 * guile/guile.c (boot_guile_support): New function.
2260 (standard_throw_args_p): New function.
2261 (print_standard_throw_error, print_throw_error): New functions.
2262 (handle_boot_error): New function.
2263 (initialize_scheme_side): Rewrite to call boot_guile_support.
2264 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2265 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2266
186fcde0
DE
22672014-07-26 Ludovic Courtès <ludo@gnu.org>
2268 Doug Evans <xdje42@gmail.com>
2269
2270 PR guile/17146
2271 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2272 * guile/lib/gdb/support.scm: New file.
2273 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2274 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2275 All uses updated.
2276 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2277 All uses updated.
2278 (%assert-type): Ditto, and renamed to assert-type.
2279 (%exception-print-style): Delete.
2280
4df42755
DE
22812014-07-26 Doug Evans <xdje42@gmail.com>
2282
2283 PR build/17105
2284 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2285 * configure: Regenerate.
2286 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2287 PYTHON_FILES.
2288 (PYTHON_FILES): New variable.
2289 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2290 (GUILE_FILES): New variable.
2291 (stamp-python, install-python, uninstall-python): Handle empty
2292 file list.
2293 (stamp-guile, install-guile, uninstall-guile): Ditto.
2294
ee7333ae
DE
22952014-07-26 Doug Evans <xdje42@gmail.com>
2296
2297 PR guile/17177
2298 * guile/lib/gdb.scm (pretty-printers): Export.
2299 (set-pretty-printers!): Export.
2300 * guile/lib/gdb/printing.scm (gdb module): Update.
2301 (prepend-pretty-printer!, append-pretty-printer!): Update.
2302 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2303 (pretty_printer_list_var): Delete.
2304 (pretty_printer_list): New static global.
2305 (gdbscm_pretty_printers): New function.
2306 (gdbscm_set_pretty_printers_x): New function.
2307 (ppscm_find_pretty_printer_from_gdb): Update.
2308 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2309 (gdbscm_initialize_pretty_printers): Update.
2310
74edf516
DE
23112014-07-26 Doug Evans <xdje42@gmail.com>
2312
2313 PR 17185
2314 * configure.ac: Add check for header gc/gc.h.
2315 Add check for function setenv.
2316 * configure: Regenerate.
2317 * config.in: Regenerate.
2318 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2319
d54398a7
MR
23202014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2321
2322 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2323 variation in gdbarch matching.
2324
ab16fce8
TT
23252014-07-25 Tom Tromey <tromey@redhat.com>
2326
2327 * exec.c (using_exec_ops): Remove.
2328 (exec_close_1): Update. Remove extraneous block, reindent.
2329 (add_target_sections): Use target_is_pushed.
2330
88056fbb
PA
23312014-07-25 Pedro Alves <palves@redhat.com>
2332
2333 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2334 * monitor.c (monitor_create_inferior): Likewise.
2335 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2336 * remote-sim.c (gdbsim_create_inferior): Likewise.
2337 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2338 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2339 * windows-nat.c (do_initial_windows_stuff): Likewise.
2340
70509625
PA
23412014-07-25 Pedro Alves <palves@redhat.com>
2342
2343 * NEWS: Mention signal passing and "signal" command changes.
2344 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2345 comment.
2346 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2347 call.
2348 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2349 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2350 (jump_command): Adjust clear_proceed_status call.
2351 (signal_command): Warn if other thread that are resumed have
2352 signals that will be delivered. Adjust clear_proceed_status call.
2353 (until_next_command, finish_command)
2354 (proceed_after_attach_callback, attach_command_post_wait)
2355 (attach_command): Adjust clear_proceed_status call.
2356 * infrun.c (proceed_after_vfork_done): Likewise.
2357 (proceed_after_attach_callback): Adjust comment.
2358 (clear_proceed_status_thread): Clear stop_signal if not in pass
2359 state.
2360 (clear_proceed_status_callback): Delete.
2361 (clear_proceed_status): New 'step' parameter. Only clear the
2362 proceed status of threads the command being prepared is about to
2363 resume.
2364 (proceed): If passed in an explicit signal, override stop_signal
2365 with it. Don't pass the last stop signal to the thread we're
2366 resuming.
2367 (init_wait_for_inferior): Adjust clear_proceed_status call.
2368 (switch_back_to_stepped_thread): Clear the signal if it should not
2369 be passed.
2370 * infrun.h (clear_proceed_status): New 'step' parameter.
2371 (user_visible_resume_ptid): Add comment.
2372 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2373 signal is in pass state.
2374 * remote.c (append_pending_thread_resumptions): Likewise.
2375 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2376
d8be2939
TT
23772014-07-25 Tom Tromey <tromey@redhat.com>
2378
2379 * target.h (target_stopped_data_address)
2380 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2381 parentheses.
2382
7d0d9d2b
PL
23832014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2384
2385 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2386 comments.
2387 (avr_pointer_to_address): Likewise.
2388
e9e7f724
TT
23892014-07-24 Tom Tromey <tromey@redhat.com>
2390
2391 * monitor.c (compile_pattern): Update.
2392 * target.h (struct target_ops) <to_shortname, to_longname,
2393 to_doc>: Now const.
2394
1947513d
TT
23952014-07-24 Tom Tromey <tromey@redhat.com>
2396
2397 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2398 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2399 (add_info_alias, add_com): Make "doc" const.
2400 (print_doc_line): Make "str" const.
2401 (delete_cmd): Update.
2402 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2403 (print_doc_line): Update.
2404 * cli/cli-script.c (document_command): Update.
2405 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2406 (add_com, add_info, add_info_alias): Update.
2407 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2408 * python/py-cmd.c (cmdpy_destroyer): Update.
2409
64e61d29
TT
24102014-07-24 Tom Tromey <tromey@redhat.com>
2411
2412 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2413 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2414 (help_cmd_list): Constify.
2415 (lookup_cmd): Update.
2416 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2417 const.
2418 (help_cmd_list, apropos_cmd): Update.
2419 * cli/cli-script.c (show_user): Update.
2420 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2421 * cli/cli-setshow.h (cmd_show_list): Update.
2422 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2423 (cmd_show_list): Update.
2424 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2425 * python/py-cmd.c (cmdpy_destroyer): Update.
2426
429e55ea
TT
24272014-07-24 Tom Tromey <tromey@redhat.com>
2428
2429 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2430 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2431 const.
2432 * command.h (deprecate_cmd): Update.
2433 * maint.c (maintenance_do_deprecate): Add casts.
2434
64669f3b
TT
24352014-07-24 Tom Tromey <tromey@redhat.com>
2436
2437 * cli/cli-decode.c (help_cmd): Make parameter "const".
2438 * cli/cli-decode.h (help_cmd): Update.
2439
d3d3328b
TT
24402014-07-24 Tom Tromey <tromey@redhat.com>
2441
2442 * stack.c (up_silently_base, down_silently_base): Make argument
2443 const.
2444
414842dc
TT
24452014-07-24 Tom Tromey <tromey@redhat.com>
2446
2447 * solib.c (solib_add): Make "pattern" const.
2448 * solib.h (solib_add): Update.
2449
baa336ce
TT
24502014-07-24 Tom Tromey <tromey@redhat.com>
2451
2452 * remote.c (remote_serial_open, print_packet, putpkt)
2453 (putpkt_binary): Constify.
2454 * remote.h (putpkt): Update.
2455
5a19e2d0
TT
24562014-07-24 Tom Tromey <tromey@redhat.com>
2457
2458 * monitor.c (monitor_open): Make "args" const.
2459 * monitor.h (monitor_open): Update.
2460
fc4baa5e
TT
24612014-07-24 Tom Tromey <tromey@redhat.com>
2462
2463 * maint.c (match_bfd_flags): Make "string" const.
2464 (print_bfd_section_info): Remove casts.
2465 (print_objfile_section_info): Make "string" const.
2466
0d5f0dbe
TT
24672014-07-24 Tom Tromey <tromey@redhat.com>
2468
2469 * inf-child.c (inf_child_open_target): Make "arg" const.
2470 * inf-child.h (inf_child_open_target): Update.
2471
41c77899
TT
24722014-07-24 Tom Tromey <tromey@redhat.com>
2473
2474 * environ.c (unset_in_environ): Make "var" const.
2475 * environ.h (unset_in_environ): Update.
2476
93db0d79
TT
24772014-07-24 Tom Tromey <tromey@redhat.com>
2478
2479 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2480 Make "cmd" const.
2481 (scan_filename_with_cleanup): Likewise.
2482 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2483 Make arguments const.
2484 (restore_command): Update.
2485
36d6eb95
PA
24862014-07-24 Pedro Alves <palves@redhat.com>
2487
2488 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2489
8009206a
TT
24902014-07-24 Tom Tromey <tromey@redhat.com>
2491 Gary Benson <gbenson@redhat.com>
2492
2493 * nat/linux-ptrace.c (additional_flags): New global.
2494 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2495 additional_flags; don't check GDBSERVER.
2496 (linux_ptrace_set_additional_flags): New function.
2497 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2498 Declare.
2499 * linux-nat.c (_initialize_linux_nat): Call
2500 linux_ptrace_set_additional_flags.
2501
a7068b60
TT
25022014-07-24 Tom Tromey <tromey@redhat.com>
2503
2504 * make-target-delegates (munge_type, write_debugmethod): New
2505 functions.
2506 (debug_names): New global.
2507 ($TARGET_DEBUG_PRINTER): New global.
2508 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2509 name.
2510 Write debug methods. Generate init_debug_target.
2511 * target-debug.h: New file.
2512 * target-delegates.c: Rebuild.
2513 * target.c: Include target-debug.h.
2514 (debug_target): Hoist definition.
2515 (target_kill, target_get_section_table, target_memory_map)
2516 (target_flash_erase, target_flash_done, target_detach)
2517 (target_disconnect, target_wait, target_resume)
2518 (target_pass_signals, target_program_signals, target_follow_fork)
2519 (target_mourn_inferior, target_search_memory)
2520 (target_thread_address_space, target_close)
2521 (target_find_new_threads, target_core_of_thread)
2522 (target_verify_memory, target_insert_mask_watchpoint)
2523 (target_remove_mask_watchpoint): Remove targetdebug code.
2524 (debug_to_post_attach, debug_to_prepare_to_store)
2525 (debug_to_files_info, debug_to_insert_breakpoint)
2526 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2527 (debug_to_region_ok_for_hw_watchpoint)
2528 (debug_to_can_accel_watchpoint_condition)
2529 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2530 (debug_to_watchpoint_addr_within_range)
2531 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2532 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2533 (debug_to_terminal_init, debug_to_terminal_inferior)
2534 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2535 (debug_to_terminal_save_ours, debug_to_terminal_info)
2536 (debug_to_load, debug_to_post_startup_inferior)
2537 (debug_to_insert_fork_catchpoint)
2538 (debug_to_remove_fork_catchpoint)
2539 (debug_to_insert_vfork_catchpoint)
2540 (debug_to_remove_vfork_catchpoint)
2541 (debug_to_insert_exec_catchpoint)
2542 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2543 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2544 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2545 (setup_target_debug): Call init_debug_target.
2546 * target.h (TARGET_DEBUG_PRINTER): New macro.
2547 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2548 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2549
2c51604d
GB
25502014-07-24 Gary Benson <gbenson@redhat.com>
2551
2552 * exceptions.h (throw_vfatal): Renamed to...
2553 (throw_vquit): New declaration.
2554 (throw_quit): Likewise.
2555 * exceptions.c (throw_vfatal): Renamed to...
2556 (throw_vquit): New function.
2557 (throw_quit): Likewise.
2558 (throw_error): Call throw_verror rather than throw_it.
2559 * utils.h (vfatal): Removed.
2560 (fatal): Likewise.
2561 * utils.c (vfatal): Removed.
2562 (fatal): Likewise.
2563 (internal_verror): Replaced call to fatal with call to throw_quit.
2564 (quit): Replaced calls to fatal with calls to throw_quit.
2565
34211963
ME
25662014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2567
2568 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2569 target_read_code.
2570
a52b4d3e
ME
25712014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2572
2573 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2574 less than zero in conditional expression.
2575
a8bdc56b
TT
25762014-07-23 Tom Tromey <tromey@redhat.com>
2577
2578 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2579 ($INTRO_PART): Don't match whitespace.
2580 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2581 argument matching.
2582 ($METHOD): Add $METHOD_TRAILER.
2583 (trim): Rewrite.
2584 (scan_target_h): New sub.
2585 Change main loop not to collect state.
2586 * target-delegates.c: Rebuild.
2587
91b52240
GB
25882014-07-23 Gary Benson <gbenson@redhat.com>
2589
2590 * cp-support.c (gdb_demangle): Fix build on systems without
2591 sigaltstack.
2592
45326f6f
JK
25932014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2596 for reference entry value target data value.
2597
e214cf6c
JK
25982014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2601 value_available_contents_eq.
2602
bddbbedd
PA
26032014-07-22 Pedro Alves <palves@redhat.com>
2604
2605 * value.c (allocate_optimized_out_value): Don't mark value as
2606 non-lazy.
2607
45c71484
JW
26082014-07-22 Jiong Wang <jiong.wang@arm.com>
2609
2610 * MAINTAINERS (Write After Approval): Update my email address.
2611
9597b22a
DE
26122014-07-20 Doug Evans <dje@google.com>
2613
2614 PR server/17147
2615 * remote.c (putpkt_binary): Add text to error message.
2616
91101fe5
YQ
26172014-07-20 Yao Qi <yao@codesourcery.com>
2618
2619 * eval.c: Remove "Chill" from comments.
2620 * gdbtypes.h: Likewise.
2621 * symtab.h: Likewise.
2622
c9402c95
YQ
26232014-07-20 Yao Qi <yao@codesourcery.com>
2624
2625 * std-operator.def: Update comments to TERNOP_SLICE.
2626
ae8fddda
YQ
26272014-07-20 Yao Qi <yao@codesourcery.com>
2628
2629 * std-operator.def: Remove BINOP_RANGE.
2630 * breakpoint.c (watchpoint_exp_is_const): Update.
2631 * expprint.c (dump_subexp_body_standard): Likewise.
2632 * eval.c (init_array_element): Remove dead code.
2633 (evaluate_subexp_standard): Likewise.
2634
9c816640
YQ
26352014-07-20 Yao Qi <yao@codesourcery.com>
2636
2637 * std-operator.def: Remove BINOP_IN.
2638 * breakpoint.c (watchpoint_exp_is_const): Update.
2639 * eval.c (evaluate_subexp_standard): Likewise.
2640 * expprint.c (dump_subexp_body_standard): Likewise.
2641
164224e9
ME
26422014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2643
2644 * microblaze-tdep.c (microblaze_register_names): Add
2645 the rshr and rslr register names.
2646 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2647 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2648 Use of tdesc_numbered_register. Use of
2649 microblaze_register_g_packet_guesses. Use of
2650 tdesc_use_registers. Use of set_gdbarch_register_type.
2651 (microblaze_register_g_packet_guesses): New.
2652 * microblaze-tdep.h (microblaze_reg_num): Add
2653 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2654 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2655 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2656 * features/microblaze-core.xml: New file.
2657 * features/microblaze-stack-protect.xml: New file.
2658 * features/microblaze-with-stack-protect.c: New file.
2659 * features/microblaze-with-stack-protect.xml: New file.
2660 * features/microblaze.xml: New file.
2661 * features/microblaze.c: New file.
2662 * features/Makefile (microblaze-with-stack-protect): Add
2663 microblaze-with-stack-protect microblaze and microblaze-expedite.
2664 * regformats/microblaze-with-stack-protect.dat: New file.
2665 * regformats/microblaze.dat: New file.
2666 * doc/gdb.texinfo (MicroBlaze Features): Added.
2667
e8b2341c
TT
26682014-07-18 Tom Tromey <tromey@redhat.com>
2669
2670 * exec.c (exec_ops): Now static.
2671 * exec.h (exec_ops): Don't declare.
2672
44e89118
TT
26732014-07-18 Tom Tromey <tromey@redhat.com>
2674
2675 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2676 to find_target_beneath.
2677 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2678 find_target_beneath.
2679 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2680
b0ed115f
TT
26812014-07-18 Tom Tromey <tromey@redhat.com>
2682
2683 PR gdb/17130:
2684 * utils.c (quit): Use target_supports_terminal_ours.
2685 * target.h (target_supports_terminal_ours): Declare.
2686 * target.c (target_supports_delete_record): Don't check
2687 to_delete_record against NULL.
2688 (target_supports_terminal_ours): New function.
2689
e75fdfca
TT
26902014-07-18 Tom Tromey <tromey@redhat.com>
2691
2692 PR gdb/17130:
2693 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2694 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2695 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2696 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2697 * windows-nat.c (windows_xfer_partial): Always delegate.
2698 * record-btrace.c (record_btrace_xfer_partial): Simplify
2699 delegation.
2700 (record_btrace_fetch_registers, record_btrace_store_registers)
2701 (record_btrace_prepare_to_store, record_btrace_resume)
2702 (record_btrace_wait, record_btrace_find_new_threads)
2703 (record_btrace_thread_alive): Likewise.
2704 * procfs.c (procfs_xfer_partial): Always delegate.
2705 * corelow.c (core_xfer_partial): Always delegate.
2706 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2707
83814951
TT
27082014-07-18 Tom Tromey <tromey@redhat.com>
2709
2710 * exec.c (exec_make_note_section): Move earlier.
2711
b8b8facf
DE
27122014-07-17 Doug Evans <dje@google.com>
2713
74b49205 2714 PR gdb/17170
b8b8facf
DE
2715 * maint.c (count_symtabs_and_blocks): Handle NULL
2716 current_program_space.
2717 (report_command_stats): Check global enabled flag in addition to
2718 recorded enabled flag.
2719 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2720
69ff6be5
PA
27212014-07-16 Pedro Alves <palves@redhat.com>
2722
2723 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2724
252db1b5
TT
27252014-07-16 Tom Tromey <tromey@redhat.com>
2726
2727 * target.h (struct target_ops) <to_delete_record>: Reformat
2728 comment.
2729
a432721e
TT
27302014-07-16 Tom Tromey <tromey@redhat.com>
2731
2732 * target-delegates.c: Rebuild.
2733
487d9753
PL
27342014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2735
2736 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2737 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2738 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2739 (avr_pointer_to_address): Likewise.
2740 (avr_address_class_type_flags): New function.
2741 (avr_address_class_type_flags_to_name): Likewise.
2742 (avr_address_class_name_to_type_flags): Likewise.
2743 (avr_gdbarch_init): Set address_class_type_flags,
2744 address_class_type_flags_to_name and
2745 address_class_name_to_type_flags.
2746
57745c90
PA
27472014-07-15 Pedro Alves <palves@redhat.com>
2748
2749 * linux-nat.c (kill_callback): Save errno and work with saved
2750 copy.
2751
2d40be18
SM
27522014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2753
2754 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2755
572f6555
EBM
27562014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2757
2758 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2759 breakpoint support correctly.
2760
cc1c52ad
PA
27612014-07-14 Pedro Alves <palves@redhat.com>
2762
2763 * utils.c (prompt_for_continue): Call target_terminal_ours.
2764
1e973570
PA
27652014-07-14 Pedro Alves <palves@redhat.com>
2766
2767 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2768 catch_errors. Don't re-enable stdin or notify observers where,
2769 and rethrow error.
2770 (fetch_inferior_event_wrapper): Delete.
2771
93d6eb10
PA
27722014-07-14 Pedro Alves <palves@redhat.com>
2773
2774 PR gdb/17072
2775 * top.c: Include "inf-loop.h".
2776 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2777 field.
2778 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2779 was async before.
2780 (gdb_readline_wrapper): Store whether the target is async, and
2781 make it sync.
2782
0017922d
PA
27832014-07-14 Pedro Alves <palves@redhat.com>
2784
2785 PR gdb/17072
2786 * top.c (gdb_readline_wrapper_line): Tweak comment.
2787 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2788 the input handler callback.
2789
94696ad3
PA
27902014-07-14 Pedro Alves <palves@redhat.com>
2791
2792 PR gdb/17072
2793 * main.c: Include event-top.h.
2794 (handle_command_errors): New function.
2795 (catch_command_errors, catch_command_errors_const): Use it.
2796
9d1e69a2
PA
27972014-07-14 Pedro Alves <palves@redhat.com>
2798
2799 * exceptions.c (catch_command_errors, catch_command_errors_const):
2800 Moved to main.c.
2801 * exceptions.h (catch_command_errors_ftype)
2802 (catch_command_errors_const_ftype): Moved to main.c.
2803 (catch_command_errors, catch_command_errors_const): Delete
2804 declarations.
2805 * main.c (catch_command_errors_ftype)
2806 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2807 (catch_command_errors, catch_command_errors_const)): Moved here
2808 from exceptions.c and make static.
2809
feefc97b
PA
28102014-07-14 Pedro Alves <palves@redhat.com>
2811
2812 * exceptions.c (print_any_exception): Delete.
2813 (catch_exceptions_with_msg): Use exception_print instead of
2814 print_any_exception.
2815 (catch_errors): Use exception_fprintf instead of
2816 print_any_exception.
2817 (catch_command_errors, catch_command_errors_const): Use
2818 exception_print instead of print_any_exception.
2819
c933f875
PA
28202014-07-14 Pedro Alves <palves@redhat.com>
2821
2822 * infcall.c (run_inferior_call): Set 'sync_execution' while
2823 running the inferior call.
2824
feb6f816
PA
28252014-07-14 Pedro Alves <palves@redhat.com>
2826
2827 * value.c (value_contents_equal): Delete function.
2828 * value.h (value_contents_equal): Delete declaration.
2829
d98b7a16
TT
28302014-07-14 Tom Tromey <tromey@redhat.com>
2831
2832 PR exp/17106:
2833 * gdbtypes.c (is_dynamic_type_internal): New function, from
2834 is_dynamic_type.
2835 (is_dynamic_type): Rewrite.
2836 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2837 (resolve_dynamic_struct): Likewise.
2838 (resolve_dynamic_type_internal): New function, from
2839 resolve_dynamic_type.
2840 (resolve_dynamic_type): Rewrite.
2841
548740d6
TT
28422014-07-14 Tom Tromey <tromey@redhat.com>
2843
2844 * target.c (target_require_runnable): Also check record_stratum.
2845 Update comment.
2846
808f7ab1
YQ
28472014-07-11 Yao Qi <yao@codesourcery.com>
2848
2849 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2850 thumb_instruction_restores_sp return true.
2851
540314bd
YQ
28522014-07-11 Yao Qi <yao@codesourcery.com>
2853
2854 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2855 (thumb_in_function_epilogue_p): Call
2856 thumb_instruction_restores_sp.
2857
1db01f22
YQ
28582014-07-11 Yao Qi <yao@codesourcery.com>
2859
2860 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2861 'add sp, #imm'.
2862 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2863
3116063b
GB
28642014-07-11 Gary Benson <gbenson@redhat.com>
2865
2866 * amd64-linux-nat.c (gdbcore.h): Remove include.
2867 (regset.h): Likewise.
2868 (nat/linux-btrace.h): Likewise.
2869 (btrace.h): Likewise.
2870 (gdb_assert.h): Likewise.
2871 (string.h): Likewise.
2872 (sys/uio.h): Likewise.
2873 (sys/debugreg.h): Likewise.
2874 (sys/syscall.h): Likewise.
2875 (sys/procfs.h): Likewise.
2876 (sys/user.h): Likewise.
2877 (asm/ptrace.h): Likewise.
2878 (i386-nat.h): Likewise.
2879 * i386-linux-nat.c (i386-nat.h): Likewise.
2880 (regset.h): Likewise.
2881 (target.h): Likewise.
2882 (linux-nat.h): Likewise.
2883 (nat/linux-btrace.h): Likewise.
2884 (btrace.h): Likewise.
2885 (gdb_assert.h): Likewise.
2886 (string.h): Likewise.
2887 (sys/uio.h): Likewise.
2888 (sys/user.h): Likewise.
2889 (sys/procfs.h): Likewise.
2890 (sys/reg.h): Likewise.
2891 (sys/debugreg.h): Likewise.
2892 (ORIG_EAX): Remove definition.
2893
040baaf6
GB
28942014-07-11 Gary Benson <gbenson@redhat.com>
2895
2896 * i386-linux-nat.h: New file.
2897 * x86-linux-nat.h: Likewise.
2898 * x86-linux-nat.c: Likewise.
2899 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2900 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2901 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2902 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2903 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2904 (PTRACE_SETREGSET): Likewise.
2905 (arch_lwp_info): Now in x86-linux-nat.c.
2906 (have_ptrace_getregset): Now in x86-linux-nat.h.
2907 (x86_linux_dr_get): Now in x86-linux-nat.c.
2908 (x86_linux_dr_set): Likewise.
2909 (x86_linux_dr_get_addr): Likewise.
2910 (x86_linux_dr_get_control): Likewise.
2911 (x86_linux_dr_get_status): Likewise.
2912 (update_debug_registers_callback): Likewise.
2913 (x86_linux_dr_set_control): Likewise.
2914 (x86_linux_dr_set_addr): Likewise.
2915 (x86_linux_prepare_to_resume): Likewise.
2916 (x86_linux_new_thread): Likewise.
2917 (x86_linux_new_fork): Likewise.
2918 (x86_linux_get_thread_area): Likewise.
2919 (super_post_startup_inferior): Likewise.
2920 (x86_linux_child_post_startup_inferior): Likewise.
2921 (AMD64_LINUX_USER64_CS): Likewise.
2922 (AMD64_LINUX_X32_DS): Likewise.
2923 (x86_linux_read_description): Likewise.
2924 (x86_linux_enable_btrace): Likewise.
2925 (x86_linux_disable_btrace): Likewise.
2926 (x86_linux_teardown_btrace): Likewise.
2927 (x86_linux_read_btrace): Likewise.
2928 (x86_linux_create_target): Likewise.
2929 (x86_linux_add_target): Likewise.
2930 * i386-linux-nat.c (x86-linux-nat.h): New include.
2931 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2932 (PTRACE_SETREGSET): Likewise.
2933 (arch_lwp_info): Now in x86-linux-nat.c.
2934 (have_ptrace_getregset): Now in x86-linux-nat.h.
2935 (x86_linux_dr_get): Now in x86-linux-nat.c.
2936 (x86_linux_dr_set): Likewise.
2937 (x86_linux_dr_get_addr): Likewise.
2938 (x86_linux_dr_get_control): Likewise.
2939 (x86_linux_dr_get_status): Likewise.
2940 (update_debug_registers_callback): Likewise.
2941 (x86_linux_dr_set_control): Likewise.
2942 (x86_linux_dr_set_addr): Likewise.
2943 (x86_linux_prepare_to_resume): Likewise.
2944 (x86_linux_new_thread): Likewise.
2945 (x86_linux_new_fork): Likewise.
2946 (x86_linux_get_thread_area): Likewise.
2947 (super_post_startup_inferior): Likewise.
2948 (x86_linux_child_post_startup_inferior): Likewise.
2949 (AMD64_LINUX_USER64_CS): Likewise.
2950 (AMD64_LINUX_X32_DS): Likewise.
2951 (x86_linux_read_description): Likewise.
2952 (x86_linux_enable_btrace): Likewise.
2953 (x86_linux_disable_btrace): Likewise.
2954 (x86_linux_teardown_btrace): Likewise.
2955 (x86_linux_read_btrace): Likewise.
2956 (x86_linux_create_target): Likewise.
2957 (x86_linux_add_target): Likewise.
2958
1aa7e42c
GB
29592014-07-11 Gary Benson <gbenson@redhat.com>
2960
2961 * amd64-linux-nat.c: Comment and whitespace changes.
2962 * i386-linux-nat.c: Comment and whitespace changes.
2963
c1e246a0
GB
29642014-07-11 Gary Benson <gbenson@redhat.com>
2965
2966 * amd64-linux-nat.c (x86_linux_create_target): New function.
2967 (x86_linux_add_target): Likewise.
2968 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2969 * i386-linux-nat.c (x86_linux_create_target): New function.
2970 (x86_linux_add_target): Likewise.
2971 (_initialize_i386_linux_nat): Delegate to the above new functions.
2972
8c420b8d
GB
29732014-07-11 Gary Benson <gbenson@redhat.com>
2974
2975 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2976 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2977 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2978 (ps_get_thread_area): Delegate to the above.
2979
cb1da100
GB
29802014-07-11 Gary Benson <gbenson@redhat.com>
2981
2982 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2983 x86_linux_read_description. All uses updated. amd64-specific
2984 code conditionalized. Conditionalized i386-specific code added.
2985 Redundant cast removed.
2986 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2987 x86_linux_read_description. All uses updated. i386-specific
2988 code conditionalized. Conditionalized amd64-specific code added.
2989 One sizeof replaced with the actual type it is describing.
2990
2acf3cd0
GB
29912014-07-11 Gary Benson <gbenson@redhat.com>
2992
2993 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2994 x86_linux_dr_get. All uses updated.
2995 (amd64_linux_dr_set): Renamed to
2996 x86_linux_dr_set. All uses updated.
2997 (amd64_linux_dr_get_addr): Renamed to
2998 x86_linux_dr_get_addr. All uses updated.
2999 (amd64_linux_dr_get_control): Renamed to
3000 x86_linux_dr_get_control. All uses updated.
3001 (amd64_linux_dr_get_status): Renamed to
3002 x86_linux_dr_get_status. All uses updated.
3003 (amd64_linux_dr_set_control): Renamed to
3004 x86_linux_dr_set_control. All uses updated.
3005 (amd64_linux_dr_set_addr): Renamed to
3006 x86_linux_dr_set_addr. All uses updated.
3007 (amd64_linux_prepare_to_resume): Renamed to
3008 x86_linux_prepare_to_resume. All uses updated.
3009 (amd64_linux_new_thread): Renamed to
3010 x86_linux_new_thread. All uses updated.
3011 (amd64_linux_new_fork): Renamed to
3012 x86_linux_new_fork. All uses updated.
3013 (amd64_linux_child_post_startup_inferior): Renamed to
3014 x86_linux_child_post_startup_inferior. All uses updated.
3015 (amd64_linux_enable_btrace): Renamed to
3016 x86_linux_enable_btrace. All uses updated.
3017 (amd64_linux_disable_btrace): Renamed to
3018 x86_linux_disable_btrace. All uses updated.
3019 (amd64_linux_teardown_btrace): Renamed to
3020 x86_linux_teardown_btrace. All uses updated.
3021 (amd64_linux_read_btrace): Renamed to
3022 x86_linux_read_btrace. All uses updated.
3023 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3024 x86_linux_dr_get. All uses updated.
3025 (i386_linux_dr_set): Renamed to
3026 x86_linux_dr_set. All uses updated.
3027 (i386_linux_dr_get_addr): Renamed to
3028 x86_linux_dr_get_addr. All uses updated.
3029 (i386_linux_dr_get_control): Renamed to
3030 x86_linux_dr_get_control. All uses updated.
3031 (i386_linux_dr_get_status): Renamed to
3032 x86_linux_dr_get_status. All uses updated.
3033 (i386_linux_dr_set_control): Renamed to
3034 x86_linux_dr_set_control. All uses updated.
3035 (i386_linux_dr_set_addr): Renamed to
3036 x86_linux_dr_set_addr. All uses updated.
3037 (i386_linux_prepare_to_resume): Renamed to
3038 x86_linux_prepare_to_resume. All uses updated.
3039 (i386_linux_new_thread): Renamed to
3040 x86_linux_new_thread. All uses updated.
3041 (i386_linux_new_fork): Renamed to
3042 x86_linux_new_fork. All uses updated.
3043 (i386_linux_child_post_startup_inferior): Renamed to
3044 x86_linux_child_post_startup_inferior. All uses updated.
3045 (i386_linux_enable_btrace): Renamed to
3046 x86_linux_enable_btrace. All uses updated.
3047 (i386_linux_disable_btrace): Renamed to
3048 x86_linux_disable_btrace. All uses updated.
3049 (i386_linux_teardown_btrace): Renamed to
3050 x86_linux_teardown_btrace. All uses updated.
3051 (i386_linux_read_btrace): Renamed to
3052 x86_linux_read_btrace. All uses updated.
3053
b9c1d481
AS
30542014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3055
3056 * remote.c (extended_remote_post_attach): New function.
3057 (init_extended_remote_ops): Install it as to_post_attach method.
3058
7180e04a
PA
30592014-07-09 Pedro Alves <palves@redhat.com>
3060
3061 * infcmd.c (attach_command_post_wait): Don't call
3062 target_terminal_inferior here.
3063 (attach_command): Call it here instead.
3064
9a9a7608
AB
30652014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3068 field.
3069 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3070 from varobj.c, with additional checks.
3071 (c_varobj_ops): Fill in is_path_expr_parent field.
3072 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3073 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3074 field.
3075 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3076 ops method.
3077 (varobj_default_is_path_expr_parent): New function.
3078 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3079 (varobj_default_is_path_expr_parent): Declare new function.
3080
1f267ae3
MM
30812014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3082
3083 * infcmd.c (finish_backward): Turn internal error into normal error.
3084
b2ee242b
PA
30852014-07-07 Pedro Alves <palves@redhat.com>
3086
8a869bca 3087 PR gdb/17096
b2ee242b
PA
3088 * remote.c (async_handle_remote_sigint)
3089 (async_handle_remote_sigint_twice): Call
3090 gdb_call_async_signal_handler instead of
3091 mark_async_signal_handler.
3092
38e229b2
TT
30932014-07-07 Tom Tromey <tromey@redhat.com>
3094
3095 * target-delegates.c: Rebuild.
3096 * target.c (target_info_record): Remove.
3097 * record.c (info_record_command): Unconditionally call
3098 to_info_record.
3099 * target.h (struct target_ops) <to_info_record>: Use
3100 TARGET_DEFAULT_IGNORE.
3101 (target_info_record): Remove.
3102
f0f9ff95
TT
31032014-07-07 Tom Tromey <tromey@redhat.com>
3104
3105 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3106 TARGET_DEFAULT_NORETURN.
3107 * target.c (generic_tls_error): New function.
3108 (target_translate_tls_address): Don't search target stack.
3109 * target-delegates.c: Rebuild.
3110 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3111 stack.
3112 * linux-thread-db.c (thread_db_get_thread_local_address):
3113 Unconditionally call beneath target.
3114
4a5be5ee
MK
31152014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3116
3117 * cli/cli-logging.c (pop_output_files): Assign targerr to
3118 gdb_stdtargerr.
3119
92c3b204
AB
31202014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * MAINTAINERS (Write After Approval): Update my email address.
3123
9b11e3a7
GB
31242014-07-02 Gary Benson <gbenson@redhat.com>
3125
3126 * proc-service.c (ps_xfer_memory): Update comment.
3127 (ps_pstop): Remove unused function.
3128 (ps_pcontinue): Likewise.
3129 (ps_lstop): Likewise.
3130 (ps_lcontinue): Likewise.
3131 (ps_lgetxregsize): Likewise.
3132 (ps_lgetxregs): Likewise.
3133 (ps_lsetxregs): Likewise.
3134 (ps_plog): Likewise.
3135 (ps_ptread): Likewise.
3136 (ps_ptwrite): Likewise.
3137
cf363f18
MW
31382014-07-01 Mark Wielaard <mjw@redhat.com>
3139
3140 * dwarf2read.c (add_array_cv_type): New function.
3141 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3142 (read_tag_volatile_type): Likewise.
3143
82ae6c8d
TT
31442014-07-01 Tom Tromey <tromey@redhat.com>
3145
3146 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3147 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3148 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3149 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3150 * command.h (cmd_cfunc_ftype): Move earlier.
3151 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3152 (add_com, add_info): Use cmd_cfunc_ftype.
3153
96142726
TT
31542014-06-30 Tom Tromey <tromey@redhat.com>
3155
3156 * symtab.c (operator_chars): Make parameters and return type
3157 const.
3158 (file_matches): Make "files" const.
3159 (struct search_symbols_data) <files>: Now const.
3160 (search_symbols): Make "regexp" and "files" parameters const.
3161 Update.
3162 (symtab_symbol_info): Remove cast.
3163 (rbreak_command): Update.
3164 * symtab.h (search_symbols): Update.
3165
b67a2c6f
YQ
31662014-06-27 Yao Qi <yao@codesourcery.com>
3167
3168 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3169 Change parameter type to 'struct thread_info *'. Caller
3170 updated.
3171 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3172 Update declaration.
3173 * dummy-frame.c (struct dummy_frame_id): New.
3174 (dummy_frame_id_eq): New function.
3175 (struct dummy_frame) <id>: Change its type to 'struct
3176 dummy_frame_id'.
3177 (dummy_frame_push): Add parameter ptid and save it in
3178 dummy_frame_id.
3179 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3180 inferior_ptid.
3181 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3182 to inferior_ptid.
3183 (lookup_dummy_frame): Change parameter type to 'struct
3184 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3185 instead of frame_id_eq.
3186 (dummy_frame_pop): Add parameter ptid. Callers updated.
3187 Update comments. Compose dummy_frame_id and pass it to
3188 lookup_dummy_frame.
3189 (dummy_frame_discard): Add parameter ptid.
3190 (dummy_frame_sniffer): Compose dummy_frame_id and call
3191 dummy_frame_id_eq instead of frame_id_eq.
3192 (fprint_dummy_frames): Print ptid.
3193 * dummy-frame.h: Remove comments.
3194 (dummy_frame_push): Add ptid in declaration.
3195 (dummy_frame_pop, dummy_frame_discard): Likewise.
3196
5b10184c
TT
31972014-06-26 Tom Tromey <tromey@redhat.com>
3198
3199 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3200 * command.h (error_no_arg): Update.
3201
06900326
TT
32022014-06-26 Tom Tromey <tromey@redhat.com>
3203
3204 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3205 (do_show_command): Make "arg" const.
3206 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3207
c2bcbb1d
TT
32082014-06-26 Tom Tromey <tromey@redhat.com>
3209
3210 * record-full.c (record_full_get_bookmark): Make "args" const.
3211 (record_full_goto_bookmark): Make "raw_bookmark" const.
3212 * record.c (record_goto): New function.
3213 (cmd_record_goto): Use it. Now static.
3214 * record.h (record_goto): Declare.
3215 (cmd_record_goto): Remove declaration.
3216 * target-delegates.c: Rebuild.
3217 * target.h (struct target_ops) <to_get_bookmark,
3218 to_goto_bookmark>: Make parameter const.
3219
9cbe5fff
TT
32202014-06-26 Tom Tromey <tromey@redhat.com>
3221
3222 * defs.h (generic_load): Update.
3223 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3224 * monitor.c (monitor_load): Make "args" const.
3225 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3226 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3227 const.
3228 (mips_load): Make "file" const.
3229 * remote-sim.c (gdbsim_load): Make "args" const.
3230 * remote.c (remote_load): Make "name" const.
3231 * symfile.c (generic_load): Make "args" const.
3232 * target-delegates.c: Rebuild.
3233 * target.c (target_load): Make "arg" const.
3234 (debug_to_load): Make "args" const.
3235 * target.h (struct target_ops) <to_load>: Make parameter const.
3236 (target_load): Update.
3237
34a68019
TT
32382014-06-26 Tom Tromey <tromey@redhat.com>
3239
3240 PR symtab/16902:
3241 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3242 (dwarf2_physname, read_partial_die)
3243 (guess_partial_die_structure_name, fixup_partial_die)
3244 (guess_full_die_structure_name, anonymous_struct_prefix)
3245 (dwarf2_name): Use per-BFD obstack.
3246
efc889c1
YQ
32472014-06-26 Yao Qi <yao@codesourcery.com>
3248
3249 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3250 dummyframe and this_id into inner block below.
3251
4395285e
YQ
32522014-06-26 Yao Qi <yao@codesourcery.com>
3253
3254 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3255 with "signal_pass[0]" in the initialization of signal_pass.
3256
aef92902
MM
32572014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3258
3259 * record-btrace.c (record_btrace_generating_corefile)
3260 (record_btrace_prepare_to_generate_core)
3261 (record_btrace_done_generating_core): New.
3262 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3263 (record_btrace_store_registers, record_btrace_prepare_to_store):
3264 Forward request when generating a core file.
3265 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3266 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3267 to_done_generating_core.
3268
5fff78c4
MM
32692014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3270
3271 * target.h (target_ops) <to_prepare_to_generate_core>
3272 <to_done_generating_core>: New.
3273 (target_prepare_to_generate_core, target_done_generating_core): New.
3274 * target.c (target_prepare_to_generate_core)
3275 (target_done_generating_core): New.
3276 * target-delegates.c: Regenerate.
3277 * gcore.c: (write_gcore_file): Rename to ...
3278 (write_gcore_file_1): ...this.
3279 (write_gcore_file): Call target_prepare_to_generate_core
3280 and target_done_generating_core.
3281
1d1f1ccb
MM
32822014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3283
3284 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3285 * gcore.c (write_gcore_file): Free memory returned from
3286 make_corefile_notes.
3287 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3288 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3289
3343ef86
YQ
32902014-06-24 Yao Qi <yao@codesourcery.com>
3291
3292 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3293 (arm_linux_init_abi): Set skip_trampoline_code with
3294 gdbarch_skip_trampoline_code instead of
3295 find_solib_trampoline_target.
3296
18d18ac8
YQ
32972014-06-24 Yao Qi <yao@codesourcery.com>
3298
3299 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3300 arm_skip_bx_reg returns non-zero.
3301
80d8d390
YQ
33022014-06-24 Yao Qi <yao@codesourcery.com>
3303
3304 * arm-tdep.c (arm_skip_bx_reg): New function.
3305 (arm_skip_stub): Call arm_skip_bx_reg.
3306
6a18a01c
DB
33072014-06-23 Don Breazeal <donb@codesourcery.com>
3308
3309 * MAINTAINERS: Add myself as write-after-approval maintainer.
3310
8e9db26e
PA
33112014-06-23 Pedro Alves <palves@redhat.com>
3312
3313 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3314 DR_CONTROL before setting DR0..DR3.
3315 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3316 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3317 bits of DR_CONTROL related to the debug register slot being
3318 disabled. If all slots are vacant, clear local slowdown as well,
3319 and assert DR_CONTROL is 0.
3320
70afc5b7
SC
33212014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3322
3323 * python/lib/gdb/command/xmethods.py
3324 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3325 current progspace only if the string "progspace" matches LOCUS_RE.
3326
840ed64d
JK
33272014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3328
3329 Fix --with-system-readline with readline-6.3 patch 5.
3330 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3331 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3332 types.
3333
26f2dc30
TT
33342014-06-20 Tom Tromey <tromey@redhat.com>
3335
3336 * dwarf2read.c (dw2_get_real_path): Use correct type in
3337 OBSTACK_CALLOC.
3338 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3339
125f8a3d
GB
33402014-06-20 Gary Benson <gbenson@redhat.com>
3341
3342 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3343 * common/glibc_thread_db.h: Likewise.
3344 * common/i386-cpuid.h: Likewise.
3345 * common/i386-gcc-cpuid.h: Likewise.
3346 * common/linux-btrace.h: Likewise.
3347 * common/linux-osdata.h: Likewise.
3348 * common/linux-procfs.h: Likewise.
3349 * common/linux-ptrace.h: Likewise.
3350 * common/mips-linux-watch.h: Likewise.
3351 * common/linux-btrace.c: Moved to nat.
3352 * common/linux-osdata.c: Likewise.
3353 * common/linux-procfs.c: Likewise.
3354 * common/linux-ptrace.c: Likewise.
3355 * common/mips-linux-watch.c: Likewise.
3356 * nat/gdb_thread_db.h: Moved from common.
3357 * nat/glibc_thread_db.h: Likewise.
3358 * nat/i386-cpuid.h: Likewise.
3359 * nat/i386-gcc-cpuid.h: Likewise.
3360 * nat/linux-btrace.c: Likewise.
3361 * nat/linux-btrace.h: Likewise.
3362 * nat/linux-osdata.c: Likewise.
3363 * nat/linux-osdata.h: Likewise.
3364 * nat/linux-procfs.c: Likewise.
3365 * nat/linux-procfs.h: Likewise.
3366 * nat/linux-ptrace.c: Likewise.
3367 * nat/linux-ptrace.h: Likewise.
3368 * nat/mips-linux-watch.c: Likewise.
3369 * nat/mips-linux-watch.h: Likewise.
3370 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3371 (object file files): Reordered.
3372 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3373 of glibc_thread_db.h.
3374
42995dbd
GB
33752014-06-20 Gary Benson <gbenson@redhat.com>
3376
3377 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3378 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3379 (i386_dr_low): Likewise.
3380 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3381 (i386_dr_low_set_addr): Likewise.
3382 (i386_dr_low_get_addr): Likewise.
3383 (i386_dr_low_can_set_control): Likewise.
3384 (i386_dr_low_set_control): Likewise.
3385 (i386_dr_low_get_control): Likewise.
3386 (i386_dr_low_get_status): Likewise.
3387 (i386_get_debug_register_length): Likewise.
3388 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3389 (i386_dr_low): Likewise.
3390 * nat/i386-dregs.c (i386-low.h): Remove include.
3391 (i386-nat.h): Likewise.
3392 (nat/i386-dregs.h): New include.
3393 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3394 (i386_dr_low_set_addr): Likewise.
3395 (i386_dr_low_get_addr): Likewise.
3396 (i386_dr_low_can_set_control): Likewise.
3397 (i386_dr_low_set_control): Likewise.
3398 (i386_dr_low_get_control): Likewise.
3399 (i386_dr_low_get_status): Likewise.
3400 (i386_get_debug_register_length): Likewise.
3401 (debug_hw_points): Likewise.
3402
3ed9baed
IB
34032014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3404
3405 * Makefile.in (SFILES): Add d-exp.y.
3406 (YYFILES): Add d-exp.c.
3407 (YYOBJ): Add d-exp.o.
3408 (local-maintainer-clean): Delete d-exp.c.
3409 * d-exp.y: New file.
3410 * d-lang.h (d_parse): New declaration.
3411 (d_error): New declaration.
3412 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3413 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3414 PREC_ORDER operators.
3415 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3416
78c164b0
YQ
34172014-06-19 Yao Qi <yao@codesourcery.com>
3418
3419 * gdbthread.h (any_running): Remove the declaration.
3420 * thread.c (any_running): Remove.
3421
f6e29b6e
YQ
34222014-06-19 Yao Qi <yao@codesourcery.com>
3423
3424 * gdbthread.h (struct thread_info) <state>: Change its type to
3425 'enum thread_state'. Update comments.
3426
034f788c
PA
34272014-06-19 Pedro Alves <palves@redhat.com>
3428
3429 * gdbthread.h (ALL_THREADS): Delete.
3430 (ALL_NON_EXITED_THREADS): New macro.
3431 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3432 instead of ALL_THREADS.
3433 * infrun.c (find_thread_needs_step_over)
3434 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3435 instead of ALL_THREADS.
3436 * record-btrace.c (record_btrace_open)
3437 (record_btrace_stop_recording, record_btrace_close)
3438 (record_btrace_is_replaying, record_btrace_resume)
3439 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3440 * remote.c (append_pending_thread_resumptions): Likewise.
3441 * thread.c (thread_apply_all_command): Likewise.
3442
46e33252
GB
34432014-06-19 Gary Benson <gbenson@redhat.com>
3444
3445 * i386-nat.c (i386_stopped_by_watchpoint):
3446 Use i386_dr_stopped_by_watchpoint.
3447 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3448 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3449
3a8ee006
GB
34502014-06-19 Gary Benson <gbenson@redhat.com>
3451
3452 * nat/i386-dregs.c: New file.
3453 * Makefile.in (i386-dregs.o): New rule.
3454 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3455 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3456 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3457 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3458 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3459 * config/i386/go32.mh (NATDEPFILES): Likewise.
3460 * config/i386/linux.mh (NATDEPFILES): Likewise.
3461 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3462 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3463 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3464 * i386-nat.h (debug_hw_points): New declaration.
3465 * i386-nat.c (breakpoint.h): Remove include.
3466 (command.h): Likewise.
3467 (target.h): Likewise.
3468 (gdb_assert.h): Likewise.
3469 (debug_hw_points): Made nonstatic.
3470 (debug_printf): Now in i386-dregs.c.
3471 (TARGET_HAS_DR_LEN_8): Likewise.
3472 (DR_CONTROL_SHIFT): Likewise.
3473 (DR_CONTROL_SIZE): Likewise.
3474 (DR_RW_EXECUTE): Likewise.
3475 (DR_RW_WRITE): Likewise.
3476 (DR_RW_READ): Likewise.
3477 (DR_RW_IORW): Likewise.
3478 (DR_LEN_1): Likewise.
3479 (DR_LEN_2): Likewise.
3480 (DR_LEN_4): Likewise.
3481 (DR_LEN_8): Likewise.
3482 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3483 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3484 (DR_ENABLE_SIZE): Likewise.
3485 (DR_LOCAL_SLOWDOWN): Likewise.
3486 (DR_GLOBAL_SLOWDOWN): Likewise.
3487 (DR_CONTROL_RESERVED): Likewise.
3488 (I386_DR_CONTROL_MASK): Likewise.
3489 (I386_DR_VACANT): Likewise.
3490 (I386_DR_LOCAL_ENABLE): Likewise.
3491 (I386_DR_GLOBAL_ENABLE): Likewise.
3492 (I386_DR_DISABLE): Likewise.
3493 (I386_DR_SET_RW_LEN): Likewise.
3494 (I386_DR_GET_RW_LEN): Likewise.
3495 (I386_DR_WATCH_HIT): Likewise.
3496 (i386_wp_op_t): Likewise.
3497 (i386_show_dr): Likewise.
3498 (i386_length_and_rw_bits): Likewise.
3499 (i386_insert_aligned_watchpoint): Likewise.
3500 (i386_remove_aligned_watchpoint): Likewise.
3501 (i386_handle_nonaligned_watchpoint): Likewise.
3502 (i386_update_inferior_debug_regs): Likewise.
3503 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3504 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3505 (i386_region_ok_for_watchpoint):
3506 Use i386_dr_region_ok_for_watchpoint.
3507 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3508
322a8e06
GB
35092014-06-19 Gary Benson <gbenson@redhat.com>
3510
3511 * i386-nat.c (i386_insert_hw_breakpoint): Use
3512 i386_insert_watchpoint.
3513 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3514
8f26655c
GB
35152014-06-19 Gary Benson <gbenson@redhat.com>
3516
3517 * i386-nat.c (i386_dr_show): Renamed to
3518 i386_show_dr and made static. All uses updated.
3519 (i386_dr_length_and_rw_bits): Renamed to
3520 i386_length_and_rw_bits and made static.
3521 All uses updated.
3522 (i386_dr_insert_aligned_watchpoint): Renamed to
3523 i386_insert_aligned_watchpoint and made static.
3524 All uses updated.
3525 (i386_dr_remove_aligned_watchpoint): Renamed to
3526 i386_remove_aligned_watchpoint and made static.
3527 All uses updated.
3528 (i386_dr_update_inferior_debug_regs): Renamed to
3529 i386_update_inferior_debug_regs and made static.
3530 All uses updated.
3531 * nat/i386-dregs.h (i386_dr_show): Removed.
3532 (i386_dr_length_and_rw_bits): Likewise.
3533 (i386_dr_insert_aligned_watchpoint): Likewise.
3534 (i386_dr_remove_aligned_watchpoint): Likewise.
3535 (i386_dr_update_inferior_debug_regs): Likewise.
3536
992c7d70
GB
35372014-06-19 Gary Benson <gbenson@redhat.com>
3538
3539 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3540 * configure: Regenerate.
3541 * config.in: Likewise.
3542 * main.c (signal.h): New include.
3543 (setup_alternate_signal_stack): New function.
3544 (captured_main): Call the above.
3545 * cp-support.c (signal.h): New include.
3546 (catch_demangler_crashes): New flag.
3547 (SIGJMP_BUF): New define.
3548 (SIGSETJMP): Likewise.
3549 (SIGLONGJMP): Likewise.
3550 (gdb_demangle_jmp_buf): New static global.
3551 (gdb_demangle_attempt_core_dump): Likewise.
3552 (gdb_demangle_signal_handler): New function.
3553 (gdb_demangle): If catch_demangler_crashes is set, install the
3554 above signal handler before calling bfd_demangle, and restore
3555 the original signal handler afterwards. Display the offending
3556 symbol and call demangler_warning the first time a segmentation
3557 fault is caught.
3558 (_initialize_cp_support): New maint set/show command.
3559
eae7090b
GB
35602014-06-19 Gary Benson <gbenson@redhat.com>
3561
3562 * utils.h (resource_limit_kind): New enum.
3563 (can_dump_core): New declaration.
3564 (warn_cant_dump_core): Likewise.
3565 (dump_core): Likewise.
3566 * utils.c (dump_core): Made nonstatic. Added new
3567 parameter "limit_kind".
3568 (can_dump_core): Made nonstatic. Moved printing code to...
3569 (warn_cant_dump_core): New function.
3570 (can_dump_core_warn): Likewise.
3571 (internal_vproblem): Replace calls to can_dump_core with
3572 calls to can_dump_core_warn. Supply new argument to each.
3573
57fcfb1b
GB
35742014-06-19 Gary Benson <gbenson@redhat.com>
3575
3576 * utils.h (demangler_vwarning): New declaration.
3577 (demangler_warning): Likewise.
3578 * utils.c (struct internal_problem)
3579 <user_settable_should_quit>: New field.
3580 <user_settable_should_dump_core>: Likewise
3581 (internal_error_problem): Add values for above new fields.
3582 (internal_warning_problem): Likewise.
3583 (demangler_warning_problem): New static global.
3584 (demangler_vwarning): New function.
3585 (demangler_warning): Likewise.
3586 (add_internal_problem_command): Selectively add commands.
3587 (_initialize_utils): New internal problem command.
3588 * maint.c (maintenance_demangler_warning): New function.
3589 (_initialize_maint_cmds): New command.
3590
17a40b44
TT
35912014-06-18 Tom Tromey <tromey@redhat.com>
3592
3593 * f-valprint.c (info_common_command_for_block): Update.
3594 * symtab.h (struct general_symbol_info) <common_block>: Now
3595 const.
3596
346d1dfe
TT
35972014-06-18 Tom Tromey <tromey@redhat.com>
3598
3599 * symtab.h (struct symtab) <blockvector>: Now const.
3600 * ada-lang.c (ada_add_global_exceptions): Update.
3601 * buildsym.c (augment_type_symtab): Update.
3602 * dwarf2read.c (dw2_lookup_symbol): Update.
3603 * jit.c (finalize_symtab): Update.
3604 * jv-lang.c (add_class_symtab_symbol): Update.
3605 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3606 Update.
3607 * objfiles.c (objfile_relocate1): Update.
3608 * psymtab.c (lookup_symbol_aux_psymtabs)
3609 (maintenance_check_psymtabs): Update.
3610 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3611 Update.
3612 * spu-tdep.c (spu_catch_start): Update.
3613 * symmisc.c (dump_symtab_1): Update.
3614 * symtab.c (lookup_global_symbol_from_objfile)
3615 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3616 (basic_lookup_transparent_type_quick)
3617 (basic_lookup_transparent_type, find_pc_sect_symtab)
3618 (find_pc_sect_line, search_symbols): Update.
3619 * block.c (find_block_in_blockvector): Make "bl" const.
3620 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3621 const.
3622 (blockvector_contains_pc): Make "bv" const.
3623 (block_for_pc_sect): Update.
3624 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3625 (blockvector_contains_pc): Update.
3626 * breakpoint.c (resolve_sal_pc): Update.
3627 * inline-frame.c (block_starting_point_at): Update.
3628
1834676b
TT
36292014-06-18 Tom Tromey <tromey@redhat.com>
3630
3631 * completer.c (complete_line): Make "line_buffer" const.
3632 * completer.h (complete_line): Update.
3633
ac1a991b
TT
36342014-06-18 Tom Tromey <tromey@redhat.com>
3635
3636 * symtab.c (add_macro_name): Remove unneeded cast.
3637
5bc98e52
TT
36382014-06-18 Tom Tromey <tromey@redhat.com>
3639
3640 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3641 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3642
8236def8
TT
36432014-06-18 Tom Tromey <tromey@redhat.com>
3644
3645 * probe.c (info_probes_for_ops): Make "arg" const.
3646 * probe.h (info_probes_for_ops): Update.
3647
3977b71f
TT
36482014-06-18 Tom Tromey <tromey@redhat.com>
3649
3650 * varobj.c (varobj_create): Update.
3651 * valops.c (value_of_this): Update.
3652 * tracepoint.c (add_local_symbols, scope_info): Update.
3653 * symtab.h (struct general_symbol_info) <block>: Now const.
3654 * symtab.c (skip_prologue_sal)
3655 (default_make_symbol_completion_list_break_on)
3656 (skip_prologue_using_sal): Update.
3657 * stack.h (iterate_over_block_locals)
3658 (iterate_over_block_local_vars): Update.
3659 * stack.c (print_frame_args): Update.
3660 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3661 parameter const.
3662 (get_selected_block): Make return type const.
3663 * python/py-frame.c (frapy_block): Update.
3664 * python/py-block.c (gdbpy_block_for_pc): Update.
3665 * p-exp.y (%union) <bval>: Now const.
3666 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3667 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3668 * m2-exp.y (%union) <bval>: Now const.
3669 * linespec.c (get_current_search_block): Make return type const.
3670 (create_sals_line_offset, find_label_symbols): Update.
3671 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3672 Update.
3673 (block_starting_point_at): Make "block" const.
3674 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3675 (check_exception_resume): Update.
3676 * guile/scm-frame.c (gdbscm_frame_block): Update.
3677 * guile/scm-block.c (gdbscm_lookup_block): Update.
3678 * frame.h (get_frame_block): Update.
3679 (get_selected_block): Make return type const.
3680 * frame.c (frame_id_inner): Update.
3681 * f-valprint.c (info_common_command_for_block)
3682 (info_common_command): Update.
3683 * dwarf2loc.c (dwarf2_find_location_expression)
3684 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3685 (locexpr_describe_location_piece): Update.
3686 * c-exp.y (%union) <bval>: Now const.
3687 * breakpoint.c (resolve_sal_pc): Update.
3688 * blockframe.c (get_frame_block):Make return type const.
3689 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3690 (block_innermost_frame): Update.
3691 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3692 (block_for_pc, block_for_pc_sect): Update.
3693 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3694 'pblock' const.
3695 (block_for_pc_sect, block_for_pc): Make return type const.
3696 * ax-gdb.c (gen_expr): Update.
3697 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3698 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3699 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3700 (ada_read_var_value): Update.
3701 * ada-exp.y (struct name_info) <block>: Now const.
3702 (%union): Likewise.
3703 (block_lookup): Constify.
3704
b9228891
GB
37052014-06-18 Gary Benson <gbenson@redhat.com>
3706
3707 * nat/i386-dregs.h: New file.
3708 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3709 * i386-nat.h (i386-dregs.h): New include.
3710 (DR_FIRSTADDR): Now in i386-dregs.h.
3711 (DR_LASTADDR): Likewise.
3712 (DR_NADDR): Likewise.
3713 (DR_STATUS): Likewise.
3714 (DR_CONTROL): Likewise.
3715 (i386_debug_reg_state): Likewise.
3716 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3717
a1aa2221
LM
37182014-06-18 Don Breazeal <donb@codesourcery.com>
3719
3720 * breakpoint.c (set_longjmp_breakpoint): Call
3721 momentary_breakpoint_from_master with additional argument.
3722 (set_longjmp_breakpoint_for_call_dummy): Call
3723 momentary_breakpoint_from_master with additional argument.
3724 (set_std_terminate_breakpoint): Call
3725 momentary_breakpoint_from_master with additional argument.
3726 (momentary_breakpoint_from_master): Add argument to function
3727 definition and use it to initialize structure member flag.
74228e77 3728 (clone_momentary_breakpoint): Call
a1aa2221
LM
3729 momentary_breakpoint_from_master with additional argument.
3730 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3731 member flags set in momentary_breakpoint_from_master.
3732
4be83cc2
GB
37332014-06-18 Gary Benson <gbenson@redhat.com>
3734
3735 * i386-nat.c (i386_show_dr): Renamed to
3736 i386_dr_show and made nonstatic. All uses updated.
3737 (i386_length_and_rw_bits): Renamed to
3738 i386_dr_length_and_rw_bits and made nonstatic.
3739 All uses updated.
3740 (i386_insert_aligned_watchpoint): Renamed to
3741 i386_dr_insert_aligned_watchpoint and made nonstatic.
3742 All uses updated.
3743 (i386_remove_aligned_watchpoint): Renamed to
3744 i386_dr_remove_aligned_watchpoint and made nonstatic.
3745 All uses updated.
3746 (i386_update_inferior_debug_regs): Renamed to
3747 i386_dr_update_inferior_debug_regs and made nonstatic.
3748 All uses updated.
3749
131aa0d4
GB
37502014-06-18 Gary Benson <gbenson@redhat.com>
3751
3752 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3753 (i386_dr_low_can_set_control): Likewise.
3754 (i386_dr_low_set_addr): Likewise.
3755 (i386_dr_low_set_control): Likewise.
3756 (i386_dr_low_get_addr): Likewise.
3757 (i386_dr_low_get_status): Likewise.
3758 (i386_dr_low_get_control): Likewise.
3759 (i386_insert_aligned_watchpoint): Use new macros.
3760 (i386_update_inferior_debug_regs): Likewise.
3761 (i386_stopped_data_address): Likewise.
3762
d9305f7f
GB
37632014-06-18 Gary Benson <gbenson@redhat.com>
3764
3765 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3766 New parameter. All uses updated.
3767
ea008da4
GB
37682014-06-18 Gary Benson <gbenson@redhat.com>
3769
3770 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3771 All uses updated.
3772
1b6d4134
GB
37732014-06-18 Gary Benson <gbenson@redhat.com>
3774
3775 * i386-nat.c (debug_printf): New macro.
3776 (i386_get_debug_register_length): Likewise.
3777 (TARGET_HAS_DR_LEN_8): Use above macro.
3778 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3779 and printf_unfiltered. Use phex to format values.
3780
9b4550ef
GB
37812014-06-18 Gary Benson <gbenson@redhat.com>
3782
3783 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3784 Make const.
3785
6e62758f
GB
37862014-06-18 Gary Benson <gbenson@redhat.com>
3787
3788 * i386-nat.c: Comment changes.
3789
51c79e94
GB
37902014-06-18 Gary Benson <gbenson@redhat.com>
3791
3792 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3793
3e11889a
GB
37942014-06-18 Gary Benson <gbenson@redhat.com>
3795
3796 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3797 (i386_insert_aligned_watchpoint): Likewise.
3798 (i386_remove_aligned_watchpoint): Likewise.
3799 (i386_handle_nonaligned_watchpoint): Likewise.
3800
fc6e2f03
GB
38012014-06-18 Gary Benson <gbenson@redhat.com>
3802
3803 * i386-nat.c: Whitespace changes.
3804
2afe7d50
SB
38052014-06-17 Samuel Bronson <naesten@gmail.com>
3806
3807 * MAINTAINERS: Update Roland McGrath's email address.
3808 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3809 Red Hat a while ago, and giving me a current address.
2afe7d50 3810
3bca49ee
TT
38112014-06-17 Tom Tromey <tromey@redhat.com>
3812
3813 * utils.h (savestring): Remove declaration.
3814
6e366df1
TT
38152014-06-17 Tom Tromey <tromey@redhat.com>
3816
3817 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3818
6be47f0c
KS
38192014-06-16 Keith Seitz <keiths@redhat.com>
3820
3821 PR mi/15863
3822 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3823 to update the varobj if inferior_ptid is null_ptid.
3824
7bc112c1
TT
38252014-06-16 Tom Tromey <tromey@redhat.com>
3826
3827 * target.h (struct target_ops) <to_info_proc>: Make parameter
3828 const.
3829 (target_info_proc): Update.
3830 * target.c (target_info_proc): Make "args" const.
3831 * procfs.c (procfs_info_proc): Update.
3832 * linux-tdep.c (linux_info_proc): Update.
3833 (linux_core_info_proc_mappings): Make "args" const.
3834 (linux_core_info_proc): Update.
3835 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3836 * gdbarch.c: Rebuild.
3837 * gdbarch.h: Rebuild.
3838 * corelow.c (core_info_proc): Update.
3839
fee354ee
TT
38402014-06-16 Tom Tromey <tromey@redhat.com>
3841
3842 * target.h (struct target_ops) <to_disconnect>: Make parameter
3843 const.
3844 (target_disconnect): Update.
3845 * target.c (target_disconnect): Make "args" const.
3846 * target-delegates.c: Rebuild.
3847 * remote.c (remote_disconnect): Update.
3848 * record.h (record_disconnect): Update.
3849 * record.c (record_disconnect): Update.
3850 * inf-child.c (inf_child_disconnect): Update.
3851
a30bf1f1
TT
38522014-06-16 Tom Tromey <tromey@redhat.com>
3853
3854 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3855 * target.c (debug_to_rcmd, default_rcmd): Update.
3856 * target-delegates.c: Rebuild.
3857 * remote.c (remote_rcmd): Update.
3858 * monitor.c (monitor_rcmd): Update.
3859
d03de421
PA
38602014-06-16 Pedro Alves <palves@redhat.com>
3861
3862 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3863 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3864 have OBJF_SHARED set.
3865 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3866 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3867 instead of OBJF_USERLOADED.
3868 * objfiles.h (OBJF_SHARED): Update comment.
3869 (userloaded_objfile_contains_address_p): Rename to ...
3870 (shared_objfile_contains_address_p): ... this, and update
3871 comments.
3872 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3873 new objfile.
3874 (remove_symbol_file_command): Skip objfiles that don't have
3875 OBJF_SHARED set.
3876
99f4262f
TT
38772014-06-16 Tom Tromey <tromey@redhat.com>
3878
3879 * minsyms.h (prim_record_minimal_symbol)
3880 (prim_record_minimal_symbol_and_info): Update comments.
3881
97d66cc6
EZ
38822014-06-14 Eli Zaretskii <eliz@gnu.org>
3883
3884 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3885 or --without-guile, according to how GDB was built.
3886
635c7e8a
TT
38872014-06-13 Tom Tromey <tromey@redhat.com>
3888
3889 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3890 to help_list.
3891 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3892 to help_list.
3893 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3894 help_list.
3895 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3896 help_list.Pass all_commands, not -1, to help_list.
3897 * cli/cli-dump.c (dump_command, append_command)
3898 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3899 (binary_dump_command, binary_append_command): Pass all_commands,
3900 not -1, to help_list.
3901 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3902 -1, to help_list.
3903 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3904 -1, to help_list.
3905 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3906 help_list.
3907 * top.c (set_history): Pass all_commands, not -1, to help_list.
3908 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3909 all_commands, not -1, to help_list.
3910 * symfile.c (overlay_command): Pass all_commands, not -1, to
3911 help_list.
3912 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3913 help_list.
3914 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3915 help_list.
3916 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3917 -1, to help_list.
3918 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3919 not -1, to help_list.
3920 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3921 not -1, to help_list.
3922 * maint.c (maintenance_command, maintenance_info_command)
3923 (maintenance_print_command, maintenance_set_cmd): Pass
3924 all_commands, not -1, to help_list.
3925 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3926 help_list.
3927 * language.c (set_check): Pass all_commands, not -1, to help_list.
3928 * infcmd.c (unset_command): Pass all_commands, not -1, to
3929 help_list.
3930 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3931 help_list.
3932 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3933 help_list.
3934 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3935 help_list.
3936 * breakpoint.c (save_command): Pass all_commands, not -1, to
3937 help_list.
3938 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3939 all_commands, not -1, to help_list.
3940
b94ade42
PL
39412014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3942
3943 * regcache.c (struct register_to_invalidate): New structure.
3944 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3945 functions.
3946 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3947
31f628ae
YQ
39482014-06-12 Yao Qi <yao@codesourcery.com>
3949
3950 * varobj.c (varobj_get_num_children): Call
3951 varobj_is_dynamic_p.
3952 (varobj_list_children): Likewise.
3953 (varobj_update): Likewise. Update comments.
3954
cde5ef40
YQ
39552014-06-12 Yao Qi <yao@codesourcery.com>
3956
3957 * varobj.c (varobj_pretty_printed_p): Rename to ...
3958 (varobj_is_dynamic_p): ... this. New function.
3959 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3960 (varobj_is_dynamic_p): Declare.
3961 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3962 (mi_print_value_p, varobj_update_one): Likewise.
3963
576ea091
YQ
39642014-06-12 Pedro Alves <pedro@codesourcery.com>
3965 Yao Qi <yao@codesourcery.com>
3966
3967 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3968 (varobj_get_iterator): Wrap up code for pretty-printer by
3969 "#if HAVE_PYTHON" and "#endif".
3970 (update_dynamic_varobj_children): Likewise.
3971
827f100c
YQ
39722014-06-12 Pedro Alves <pedro@codesourcery.com>
3973 Yao Qi <yao@codesourcery.com>
3974
3975 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3976 gdb_python_initialized is false. Move some code from varobj.c.
3977 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3978 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3979 (struct varobj_item): Moved to varobj-iter.h".
3980 (varobj_clear_saved_item): New function.
3981 (update_dynamic_varobj_children): Move python-related code to
3982 py-varobj.c.
3983 (free_variable): Call varobj_clear_saved_item and
3984 varobj_iter_delete.
3985
e5250216
YQ
39862014-06-12 Pedro Alves <pedro@codesourcery.com>
3987 Yao Qi <yao@codesourcery.com>
3988
3989 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3990 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3991 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3992 (py-varobj.o): New rule.
3993 * python/py-varobj.c: New file.
3994 * python/python-internal.h (py_varobj_get_iterator): Declare.
3995 * varobj-iter.h: New file.
3996 * varobj.c: Include "varobj-iter.h"
3997 (struct varobj) <child_iter>: Change its type from "PyObject *"
3998 to "struct varobj_iter *".
3999 <saved_item>: Likewise.
4000 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4001 [HAVE_PYTHON] (varobj_get_iterator): New function.
4002 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4003 python-specific code to python/py-varobj.c.
4004 (install_visualizer): Call varobj_iter_delete instead of
4005 Py_XDECREF.
4006 * varobj.h (varobj_ensure_python_env): Declare.
4007
5a2e0d6e
YQ
40082014-06-12 Yao Qi <yao@codesourcery.com>
4009
4010 * varobj.c (struct varobj_item): New structure.
4011 (create_child_with_value): Update declaration.
4012 (varobj_add_child): Replace arguments 'name' and 'value' with
4013 'item'. All callers updated.
4014 (install_dynamic_child): Likewise.
4015 (update_dynamic_varobj_children): Likewise.
4016 (varobj_add_child): Likewise.
4017 (create_child_with_value): Likewise.
4018
919b9a93
JB
40192014-06-11 Joel Brobecker <brobecker@adacore.com>
4020
4021 * NEWS: Create a new section for the next release branch.
4022 Rename the section of the current branch, now that it has
4023 been cut.
4024
71a55bdf
JB
40252014-06-11 Joel Brobecker <brobecker@adacore.com>
4026
4027 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4028 * version.in: Bump version to 7.8.50.DATE-cvs.
4029
364fe1f7
PA
40302014-06-11 Pedro Alves <palves@redhat.com>
4031
4032 PR remote/17028
4033 * ser-mingw.c (net_windows_socket_check_pending): New function.
4034 (net_windows_select_thread): Ignore spurious wakeups. Use
4035 net_windows_socket_check_pending.
4036 (net_windows_wait_handle): Check for pending events with
4037 ioctlsocket, through net_windows_socket_check_pending, instead of
4038 checking the socket's event.
4039
5a6c7709
SC
40402014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4041
4042 * python/python-internal.h (gdb_PyObject_GetAttrString)
4043 (gdb_PyObject_HasAttrString): New inline function definitions.
4044 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4045 char * of the second argument to PyObject_GetAttrString.
74228e77 4046
0e58ee40
JB
40472014-06-10 Joel Brobecker <brobecker@adacore.com>
4048
4049 * serial.c (serial_write): Fix index of character to be printed
4050 in call to serial_logchar when serial debug traces are enabled.
4051
d190df30
JB
40522014-06-10 Joel Brobecker <brobecker@adacore.com>
4053
4054 * gdbtypes (resolve_dynamic_range): Add function description.
4055
b4b01d36
PA
40562014-06-09 Pedro Alves <palves@redhat.com>
4057
4058 * linux-nat.c (linux_child_follow_fork): Initialize status with
4059 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4060 inner block. Only pass the signal to PTRACE_DETACH if in pass
4061 state.
4062
3657956b
GB
40632014-06-09 Gary Benson <gbenson@redhat.com>
4064
4065 * common/signals.c (gdb_signal_from_host): Reorder to separate
4066 the always-available ANSI-standard signals from the signals that
4067 require checking.
4068 (do_gdb_signal_to_host): Likewise.
4069 * proc-events.c (signal_table): Likewise.
4070
c077881a
HZ
40712014-06-08 Hui Zhu <hui@codesourcery.com>
4072
4073 * common/linux-ptrace.c (linux_disable_event_reporting): New
4074 function.
4075 * common/linux-ptrace.h (linux_disable_event_reporting): New
4076 declaration.
4077 * linux-nat.c (linux_child_follow_fork): Do a single step before
4078 detach.
4079
4186eb54
KS
40802014-06-07 Keith Seitz <keiths@redhat.com>
4081
4082 Revert:
4083 PR c++/16253
4084 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4085 from symbol_matches_domain in symtab.c. All local callers
4086 of symbol_matches_domain updated.
4087 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4088 search STRUCT_DOMAIN.
4089 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4090 independently. standard_lookup will do that automatically.
4091 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4092 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4093 (cp_lookup_symbol_in_namespace): Likewise.
4094 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4095 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4096 may return a STRUCT_DOMAIN match.
4097 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4098 * cp-support.c: Include language.h.
4099 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4100 VAR_DOMAIN.
4101 * psymtab.c (match_partial_symbol): Compare the requested
4102 domain with the symbol's domain directly.
4103 (lookup_partial_symbol): Likewise.
4104 * symtab.c (lookup_symbol_in_language): Explain when/why
4105 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4106 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4107 appropriate languages.
4108 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4109 and moved to ada-lang.c
4110 (lookup_block_symbol): Explain that this function only returns
4111 symbol matching the requested DOMAIN.
4112 Compare the requested domain with the symbol's domain directly.
4113 (iterate_over_symbols): Compare the requested domain with the
4114 symbol's domain directly.
4115 * symtab.h (symbol_matches_domain): Remove.
4116
25326a28 41172014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4118
4119 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4120 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4121 (gdbscm_guile_version_is_at_least): Declare.
4122 (gdbscm_scm_string_to_int): Declare.
4123 * guile/guile.c (gdbscm_guile_major_version): New global.
4124 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4125 (guile_datadir): New static global.
4126 (gdbscm_guile_data_directory): New function.
4127 (initialize_scheme_side): Update.
4128 (misc_guile_functions): Add guile-data-directory.
4129 (initialize_gdb_module): Fetch guile version number.
4130 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4131 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4132 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4133 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4134 comments.
4135 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4136 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4137 * guile/scm-value.c (gdbscm_value_to_string): Only call
4138 scm_port_conversion_strategy if Guile version >= 2.0.6.
4139
0a770bb2 41402014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4141
4142 * main.c (print_gdb_help): Add -q and --silent.
4143
73ba372c
GB
41442014-06-06 Gary Benson <gbenson@redhat.com>
4145
4146 * common/signals.c: Remove preprocessor conditionals for
4147 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4148 SIGSEGV and SIGTERM.
4149 * proc-events.c: Likewise.
4150
c33b2f12
MM
41512014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4152
4153 * symfile.c (symfile_free_objfile): Remove restriction to
4154 OBJF_USERLOADED.
4155 * symfile-mem.c (symbol_file_add_from_memory): Call
4156 add_target_sections_of_objfile.
4157
fb934770
LC
41582014-06-05 Ludovic Courtès <ludo@gnu.org>
4159
4160 * guile/scm-value.c (gdbscm_history_append_x): Use
4161 'vlscm_get_value_smob_arg_unsafe' instead of
4162 'vlscm_scm_to_value'.
4163
6ef284bd
SM
41642014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4165
4166 PR mi/15806
4167 * utils.c (printchar): Don't escape at all if quoter is NUL.
4168 Update function documentation to clarify effect of parameter
4169 QUOTER.
4170 * remote.c (escape_buffer): Pass '\\' as the quoter to
4171 fputstrn_unfiltered.
4172 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4173 generate the output.
4174 (mi_solib_unloaded): Same.
4175
270c9937
JB
41762014-06-05 Joel Brobecker <brobecker@adacore.com>
4177
4178 * development.sh: Delete.
4179 * Makefile.in (config.status): Adjust dependency on development.sh.
4180 * configure.ac: Adjust development.sh source call.
4181 * configure: Regenerate.
4182
16f691fb
DE
41832014-06-04 Doug Evans <xdje42@gmail.com>
4184
4185 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4186 is_scheme_bkpt, spec.
4187 (bpscm_make_breakpoint_smob): Initialize new members.
4188 (gdbscm_create_breakpoint_x): Split into two ...
4189 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4190 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4191 (scheme_function breakpoint_functions): Update.
4192 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4193 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4194 register-breakpoint!.
4195
ef7cab6b
JB
41962014-06-04 Joel Brobecker <brobecker@adacorer.com>
4197
4198 PR server/17023
4199 * mem-break.c (z_type_supported): Return zero if
4200 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4201
012370f6
TT
42022014-06-04 Tom Tromey <tromey@redhat.com>
4203
4204 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4205 value_from_contents_and_address_unresolved.
4206 (ada_template_to_fixed_record_type_1): Likewise.
4207 (ada_which_variant_applies): Likewise.
4208 * value.h (value_from_contents_and_address_unresolved): Declare.
4209 * value.c (value_from_contents_and_address_unresolved): New
4210 function.
4211 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4212 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4213 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4214
92e2a17f
TT
42152014-06-04 Tom Tromey <tromey@redhat.com>
4216
4217 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4218
c0939df1
TT
42192014-06-04 Tom Tromey <tromey@redhat.com>
4220
4221 * procfs.c (procfs_attach): Make "args" const.
4222 * windows-nat.c (windows_attach): Make "args" const.
4223 * nto-procfs.c (procfs_attach): Make "args" const.
4224 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4225 * go32-nat.c (go32_attach): Make "args" const.
4226 * gnu-nat.c (gnu_attach): Make "args" const.
4227 * darwin-nat.c (darwin_attach): Make "args" const.
4228 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4229 * linux-nat.c (linux_nat_attach): Make "args" const.
4230 * remote.c (extended_remote_attach_1, extended_remote_attach):
4231 Make "args" const.
4232 * target.h (struct target_ops) <to_attach>: Make "args" const.
4233 (find_default_attach): Likewise.
4234 * utils.c (parse_pid_to_attach): Make "args" const.
4235 * utils.h (parse_pid_to_attach): Update.
4236
8eaff7cd
TT
42372014-06-04 Tom Tromey <tromey@redhat.com>
4238
4239 * target-delegates.c: Rebuild.
4240 * target.c (default_thread_address_space): New function.
4241 (target_thread_address_space): Simplify.
4242 * target.h (struct target_ops) <to_thread_address_space>: Add
4243 TARGET_DEFAULT_FUNC.
4244
1913f160
DE
42452014-06-04 Doug Evans <xdje42@gmail.com>
4246
4247 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4248
70ad5bff
MM
42492014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4250
4251 * record-btrace.c: Include event-loop.h and inf-loop.h.
4252 (record_btrace_resume_exec_dir)
4253 (record_btrace_async_inferior_event_handler)
4254 (record_btrace_handle_async_inferior_event): New.
4255 (record_btrace_open): Create async event handler.
4256 (record_btrace_close): Delete async event handler.
4257 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4258 Mark async event handler.
4259 (record_btrace_execution_direction): New.
4260 (init_record_btrace_ops): Initialize to_execution_direction.
4261
b6210538
DE
42622014-06-03 Doug Evans <xdje42@gmail.com>
4263
4264 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4265 (gdbscm_make_parameter): Ditto.
4266
a5b1fd27
DE
42672014-06-03 Doug Evans <dje@google.com>
4268
4269 * exec.c (exec_close_1): Call clear_section_table instead of
4270 resize_section_table.
4271 (clear_section_table): New function.
4272 (resize_section_table): Make static. Rename arg num_added to
4273 adjustment.
4274 * exec.h (clear_section_table): Declare.
4275 (resize_section_table): Delete.
4276 * progspace.c (release_program_space): Call clear_section_table
4277 instead of resize_section_table.
4278
0c6e92a5
SC
42792014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4280
4281 * NEWS (Python Scripting): Add entry about the new xmethods
4282 feature.
4283
883964a7
SC
42842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4285
4286 * python/py-xmethods.c: New file.
4287 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4288 (objfpy_dealloc): XDECREF on the new xmethods field.
4289 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4290 field.
4291 (objfpy_get_xmethods): New function.
4292 (objfile_getset): New entry 'xmethods'.
4293 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4294 (pspy_dealloc): XDECREF on the new xmethods field.
4295 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4296 field.
4297 (pspy_get_xmethods): New function.
4298 (pspace_getset): New entry 'xmethods'.
4299 * python/python-internal.h: Add declarations for new functions.
4300 * python/python.c (_initialize_python): Invoke
4301 gdbpy_initialize_xmethods.
4302 * python/lib/gdb/__init__.py (xmethods): New
4303 attribute.
4304 * python/lib/gdb/xmethod.py: New file.
4305 * python/lib/gdb/command/xmethods.py: New file.
4306
58992dc5
SC
43072014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4308
4309 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4310 best match method returned by find_overload_match is an xmethod.
4311 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4312 the best matching operator returned by find_overload_match is an
4313 xmethod.
4314 * valops.c: #include "extension.h".
4315 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4316 Return void. The list of matching source methods is returned in
4317 "fn_list" and a vector of matching debug method workers is
4318 returned in "xm_worker_vec". Update all callers.
4319 (value_find_oload_method_list): Likewise.
4320 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4321 non-NULL, then the index of the best matching method in this
4322 vector is returned. Update all callers.
4323 (find_overload_match): Include xmethods while performing overload
4324 resolution.
4325
e81e7f5e
SC
43262014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4327
4328 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4329 * extension-priv.h (struct extension_language_ops): Add the
4330 xmethod interface.
4331 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4332 get_matching_xmethod_workers, get_xmethod_argtypes,
4333 invoke_xmethod, free_xmethod_worker,
4334 free_xmethod_worker_vec): New functions.
4335 * extension.h: #include "common/vec.h".
4336 New function declarations.
4337 (struct xmethod_worker): New struct.
4338 (VEC (xmethod_worker_ptr)): New vector type.
4339 (xmethod_worker_ptr): New typedef.
4340 (xmethod_worker_vec): Likewise.
4341 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4342 builtin_type.
4343 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4344 (struct builtin_type): New field "xmethod".
4345 * valarith.c (value_ptradd): Assert that the value argument is not
4346 lval_xcallable.
4347 * valops.c (value_must_coerce_to_target): Return 0 for
4348 lval_xcallable values.
4349 * value.c (struct value): New field XM_WORKER in the field
4350 LOCATION.
4351 (value_address, value_raw_address): Return 0 for lval_xcallable
4352 values.
4353 (set_value_address): Assert that the value is not an
4354 lval_xcallable.
4355 (value_free): Free the associated xmethod worker when freeing
4356 lval_xcallable values.
4357 (set_value_component_location): Assert that the WHOLE value is not
4358 lval_xcallable.
4359 (value_of_xmethod, call_xmethod): New functions.
4360 * value.h: Declare "struct xmethod_worker".
4361 Declare new functions value_of_xmethod, call_xmethod.
4362
ef370185
JB
43632014-06-03 Joel Brobecker <brobecker@adacore.com>
4364 Pedro Alves <palves@redhat.com>
4365
4366 PR breakpoints/17000
4367 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4368 New function, extracted from software_breakpoint_inserted_here_p.
4369 (software_breakpoint_inserted_here_p): Replace factored out code
4370 by call to find_non_raw_software_breakpoint_inserted_here.
4371 (bp_target_info_copy_insertion_state): New function.
4372 (bkpt_insert_location): Handle the case of a single-step
4373 breakpoint already inserted at the same address.
4374 (bkpt_remove_location): Handle the case of a single-step
4375 breakpoint still inserted at the same address.
4376 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4377 breakpoint already inserted at the same address.
4378 (deprecated_remove_raw_breakpoint): Handle the case of a
4379 non-raw breakpoint still inserted at the same address.
4380 (find_single_step_breakpoint): New function, extracted from
4381 single_step_breakpoint_inserted_here_p.
4382 (find_single_step_breakpoint): New function,
4383 factored out from single_step_breakpoint_inserted_here_p.
4384 (single_step_breakpoint_inserted_here_p): Reimplement.
4385
1e2ccb61
BM
43862014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4387
4388 Pushed by Joel Brobecker <brobecker@adacore.com>
4389 * source.c (show_substitute_path_command): Fix display of matching
4390 substitution rules.
4391
d3448d85
GB
43922014-06-03 Gary Benson <gbenson@redhat.com>
4393
4394 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4395
06eb1586
DE
43962014-06-02 Doug Evans <xdje42@gmail.com>
4397
4398 Add parameter support for Guile.
4399 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4400 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4401 (scm-param.o): New rule.
4402 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4403 (gdbscm_misc_error): Declare.
4404 (gdbscm_canonicalize_command_name): Declare.
4405 (gdbscm_scm_to_host_string): Declare.
4406 (gdbscm_scm_from_host_string): Declare.
4407 (gdbscm_initialize_parameters): Declare.
4408 * guile/guile.c (initialize_gdb_module): Call
4409 gdbscm_initialize_parameters.
4410 * guile/lib/gdb.scm: Export parameter symbols.
4411 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4412 cmdscm_canonicalize_name and made public. All callers updated.
4413 * guile/scm-exception.c (gdbscm_misc_error): New function.
4414 * guile/scm-param.c: New file.
4415 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4416 (gdbscm_scm_to_host_string): New function.
4417 (gdbscm_scm_from_host_string): New function.
4418 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4419
e698b8c4
DE
44202014-06-02 Doug Evans <xdje42@gmail.com>
4421
4422 Add command support for Guile.
4423 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4424 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4425 (scm-cmd.o): New rule.
4426 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4427 (gdbscm_user_error_p): Declare.
4428 (gdbscm_parse_command_name): Declare.
4429 (gdbscm_valid_command_class_p): Declare.
4430 (gdbscm_initialize_commands): Declare.
4431 * guile/guile.c (initialize_gdb_module): Call
4432 gdbscm_initialize_commands.
4433 * guile/lib/gdb.scm: Export command symbols.
4434 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4435 (throw-user-error): New function.
4436 * guile/scm-cmd.c: New file.
4437 * guile/scm-exception.c (user_error_symbol): New static global.
4438 (gdbscm_user_error_p): New function.
4439 (gdbscm_initialize_exceptions): Set user_error_symbol.
4440 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4441
fb1f94b0
PM
44422014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4443
4444 * top.c (command_loop): Handle comments here...
4445 (command_line_input): ... not here.
4446
ded03782
DE
44472014-06-02 Doug Evans <xdje42@gmail.com>
4448
4449 Add progspace support for Guile.
4450 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4451 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4452 (scm-progspace.o): New rule.
4453 * guile/guile-internal.h (pspace_smob): New typedef.
4454 (psscm_pspace_smob_pretty_printers): Declare.
4455 (psscm_pspace_smob_from_pspace): Declare.
4456 (psscm_scm_from_pspace): Declare.
4457 * guile/guile.c (initialize_gdb_module): Call
4458 gdbscm_initialize_pspaces.
4459 * guile/lib/gdb.scm: Export progspace symbols.
4460 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4461 support.
4462 (append-pretty-printer!): Ditto.
4463 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4464 Implement.
4465 * guile/scm-progspace.c: New file.
4466
397998fc
AM
44672014-06-03 Alan Modra <amodra@gmail.com>
4468
4469 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4470 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4471
6aa5f3a6
DE
44722014-06-02 Doug Evans <dje@google.com>
4473
4474 Add support for skeletonless type units.
4475 * dwarf2read.c (struct dwarf2_per_objfile): New member
4476 n_allocated_type_units.
4477 (struct dwarf2_per_objfile) <tu_stats>: New member
4478 nr_all_type_units_reallocs.
4479 (create_signatured_type_table_from_index): Initialize
4480 n_allocated_type_units
4481 (create_all_type_units): Ditto.
4482 (add_type_unit): Move up in file. New arg slot.
4483 All callers updated. Increase space for all_type_units more
4484 efficiently.
4485 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4486 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4487 (lookup_dwp_signatured_type): Ditto.
4488 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4489 All callers updated.
4490 (build_type_psymtabs_1): Leave type_unit_groups as
4491 NULL if no TUs present.
4492 (print_tu_stats): New function.
4493 (process_skeletonless_type_unit): New function.
4494 (process_dwo_file_for_skeletonless_type_units): New
4495 function.
4496 (process_skeletonless_type_units): New function.
4497 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4498 Call print tu_stats if debugging enabled.
4499
41fac0cf
PA
45002014-06-02 Pedro Alves <palves@redhat.com>
4501
4502 * breakpoint.c (build_target_command_list): Don't build a command
4503 list if we have any duplicate location that isn't a dprintf.
4504
cd1608cc
PA
45052014-06-02 Pedro Alves <palves@redhat.com>
4506
4507 * breakpoint.c (dprintf_breakpoint_hit): New function.
4508 (initialize_breakpoint_ops): Install it as dprintf's
4509 breakpoint_hit method.
4510
486ef3b9
JB
45112014-06-02 Joel Brobecker <brobecker@adacore.com>
4512
4513 * source.c (substitute_path_rule_matches): Simplify using
4514 filename_ncmp instead of FILENAME_CMP.
4515
230cd560
JB
45162014-06-02 Joel Brobecker <brobecker@adacore.com>
4517
4518 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4519
16954d5d
LC
45202014-06-01 Ludovic Courtès <ludo@gnu.org>
4521
4522 * configure.ac: When Guile is available, check for the
4523 availability of 'scm_new_smob'.
4524 * configure, config.h.in: Regenerate.
4525 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4526 function.
4527
53e8a631
AB
45282014-05-30 Andrew Burgess <aburgess@broadcom.com>
4529
4530 * frame.c (struct frame_info): Add stop_string field.
4531 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4532 (get_prev_frame_always): Old content moved into
4533 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4534 TRY_CATCH, handle MEMORY_ERROR exceptions.
4535 (frame_stop_reason_string): New function definition.
4536 * frame.h (unwind_stop_reason_to_string): Extend comment to
4537 mention frame_stop_reason_string.
4538 (frame_stop_reason_string): New function declaration.
4539 * stack.c (frame_info): Switch to frame_stop_reason_string.
4540 (backtrace_command_1): Switch to frame_stop_reason_string.
4541 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4542 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4543 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4544
70e38b8e
AB
45452014-05-30 Andrew Burgess <aburgess@broadcom.com>
4546
4547 * frame.c (frame_stop_reason_string): Rename to ...
4548 (unwind_stop_reason_to_string): this.
4549 * frame.h (frame_stop_reason_string): Rename to ...
4550 (unwind_stop_reason_to_string): this.
4551 * stack.c (frame_info): Update call to frame_stop_reason_string.
4552 (backtrace_command_1): Likewise.
4553 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4554 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4555
938f0e2f
AB
45562014-05-30 Andrew Burgess <aburgess@broadcom.com>
4557
4558 * frame.c (remove_prev_frame): New function.
4559 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4560 remove_prev_frame.
4561
a09dd441
PA
45622014-05-29 Pedro Alves <palves@redhat.com>
4563
4564 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4565 and make it const. When a single-step decays to a continue,
4566 clear 'step', not 'hw_step'. Pass whether the caller wanted
4567 to step to user_visible_resume_ptid, not what we ask the
4568 target to do.
4569
bdc36728
PA
45702014-05-29 Pedro Alves <palves@redhat.com>
4571
4572 * infrun.c (process_event_stop_test, handle_step_into_function)
4573 (handle_step_into_function_backward): Adjust.
4574 Don't set the even thread's stop_step and call stop_waiting before
4575 calling end_stepping_range. Instead do that ...
4576 (end_stepping_range): ... here. Take an ecs pointer parameter.
4577
22bcd14b
PA
45782014-05-29 Pedro Alves <palves@redhat.com>
4579
4580 * infrun.c (stop_stepping): Rename to ...
4581 (stop_waiting): ... this.
4582 (proceed): Update comment.
4583 (process_event_stop_test, handle_inferior_event)
4584 (handle_signal_stop, handle_step_into_function)
4585 (handle_step_into_function_backward): Update.
4586
4ae57c05
PA
45872014-05-29 Pedro Alves <palves@redhat.com>
4588
4589 * infcall.c (run_inferior_call): Don't check whether the current
4590 thread is running after the proceed call.
4591
329ea579
PA
45922014-05-29 Pedro Alves <palves@redhat.com>
4593 Tom Tromey <tromey@redhat.com>
4594
4595 * NEWS: Mention "maint set target-async", "set mi-async", and that
4596 background execution commands are now always available.
4597 * target.h (target_async_permitted): Update comment.
4598 * target.c (target_async_permitted, target_async_permitted_1):
4599 Default to 1.
4600 (set_target_async_command): Rename to ...
4601 (maint_set_target_async_command): ... this.
4602 (show_target_async_command): Rename to ...
4603 (maint_show_target_async_command): ... this.
4604 (_initialize_target): Adjust.
4605 * infcmd.c (prepare_execution_command): Make extern.
4606 * inferior.h (prepare_execution_command): Declare.
4607 * infrun.c (set_observer_mode): Leave target async alone.
4608 * mi/mi-interp.c (mi_interpreter_init): Install
4609 mi_on_sync_execution_done as sync_execution_done observer.
4610 (mi_on_sync_execution_done): New function.
4611 (mi_execute_command_input_handler): Don't print the prompt if we
4612 just started a synchronous command with an async target.
4613 (mi_on_resume): Check sync_execution before printing prompt.
4614 * mi/mi-main.h (mi_async_p): Declare.
4615 * mi/mi-main.c: Include gdbcmd.h.
4616 (mi_async_p): New function.
4617 (mi_async, mi_async_1): New globals.
4618 (set_mi_async_command, show_mi_async_command, mi_async): New
4619 functions.
4620 (exec_continue): Call prepare_execution_command.
4621 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4622 (mi_execute_async_cli_command): Use mi_async_p.
4623 (_initialize_mi_main): Install "set mi-async". Make
4624 "target-async" a deprecated alias.
4625
92bcb5f9
PA
46262014-05-29 Pedro Alves <palves@redhat.com>
4627
4628 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4629 (_initialize_cli_interp): Adjust.
4630 * event-loop.c: Include "observer.h".
4631 (start_event_loop): Notify 'command_error' observers instead of
4632 calling display_gdb_prompt. Remove FIXME comment.
4633 * event-top.c (display_gdb_prompt): Remove call into the
4634 interpreters.
4635 * inf-loop.c: Include "observer.h".
4636 (inferior_event_handler): Notify 'command_error' observers instead
4637 of calling display_gdb_prompt.
4638 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4639 observers instead of calling display_gdb_prompt.
4640 * interps.c (interp_set): Don't call display_gdb_prompt.
4641 (current_interp_display_prompt_p): Delete.
4642 * interps.h (interp_prompt_p): Delete declaration.
4643 (interp_prompt_p_ftype): Delete.
4644 (struct interp_procs) <prompt_proc_p>: Delete field.
4645 (current_interp_display_prompt_p): Delete declaration.
4646 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4647 (_initialize_mi_interp): Adjust.
4648 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4649 'command_error' observers.
4650 (tui_on_sync_execution_done, tui_on_command_error): New
4651 functions.
4652 (tui_display_prompt_p): Delete.
4653 (_initialize_tui_interp): Adjust.
4654
fd664c91
PA
46552014-05-29 Pedro Alves <palves@redhat.com>
4656
4657 PR gdb/13860
4658 * cli/cli-interp.c: Include infrun.h and observer.h.
4659 (cli_uiout, cli_interp): New globals.
4660 (cli_on_signal_received, cli_on_end_stepping_range)
4661 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4662 functions.
4663 (cli_interpreter_init): Install them as 'end_stepping_range',
4664 'signal_received' 'signal_exited', 'exited' and 'no_history'
4665 observers.
4666 (_initialize_cli_interp): Remove cli_interp local.
4667 * infrun.c (handle_inferior_event): Call the several stop reason
4668 observers instead of printing the stop reason directly.
4669 (end_stepping_range): New function.
4670 (print_end_stepping_range_reason, print_signal_exited_reason)
4671 (print_exited_reason, print_signal_received_reason)
4672 (print_no_history_reason): Make static, and add an uiout
4673 parameter. Print to that instead of to CURRENT_UIOUT.
4674 * infrun.h (print_end_stepping_range_reason)
4675 (print_signal_exited_reason, print_exited_reason)
4676 (print_signal_received_reason print_no_history_reason): New
4677 declarations.
4678 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4679 'mi_uiout'.
4680 <cli_uiout>: New field.
4681 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4682 uiout for CLI output. Install 'signal_received',
4683 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4684 observers.
4685 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4686 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4687 (mi_on_no_history): New functions.
4688 (ui_out_free_cleanup): Delete function.
4689 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4690 instead use the one already stored in the MI interpreter data.
4691 (mi_ui_out): Adjust.
4692 * tui/tui-interp.c: Include infrun.h and observer.h.
4693 (tui_interp): New global.
4694 (tui_on_signal_received, tui_on_end_stepping_range)
4695 (tui_on_signal_exited, tui_on_exited)
4696 (tui_on_no_history): New functions.
4697 (tui_init): Install them as 'end_stepping_range',
4698 'signal_received' 'signal_exited', 'exited' and 'no_history'
4699 observers.
4700 (_initialize_tui_interp): Delete tui_interp local.
4701
8817a6f2
PA
47022014-05-29 Pedro Alves <palves@redhat.com>
4703
4704 PR gdb/15713
4705 * linux-nat.c (linux_nat_resume_callback): Rename the second
4706 parameter to 'except'. Skip LP if it points to EXCEPT.
4707 (linux_nat_resume): Don't mark the event lwp as not stopped
4708 before resuming sibling lwps. Instead ask
4709 linux_nat_resume_callback to skip the event lwp. Mark it as not
4710 stopped after actually resuming it.
4711 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4712 resuming it.
4713 (wait_lwp): Mark the lwp as stopped here.
4714 (stop_wait_callback): Mark the lwp as not stopped right after
4715 resuming it. Don't mark lwps as stopped here.
4716 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4717 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4718
251bde03
PA
47192014-05-29 Pedro Alves <palves@redhat.com>
4720
4721 PR PR15693
4722 * infrun.c (resume): Determine how much to resume depending on
4723 whether the caller wanted a step, not whether we can hardware step
4724 the target. Mark all threads that we intend to run as running,
4725 unless we're calling an inferior function.
4726 (normal_stop): If the thread is running an infcall, don't finish
4727 thread state.
4728 * target.c (target_resume): Don't mark threads as running here.
4729
7f3c0343
JB
47302014-05-28 Joel Brobecker <brobecker@adacore.com>
4731
4732 * serial.c (_initialize_serial): Remove support for
4733 the "set remotebaud" and "show remotebaud" commands.
4734 * NEWS: Add entry documenting the removal of that command.
4735
ee34b3f9
YQ
47362014-05-28 Yao Qi <yao@codesourcery.com>
4737
4738 * charset.c: Fix typo in comments.
4739
add6c04d
GB
47402014-05-27 Gary Benson <gbenson@redhat.com>
4741
4742 * utils.c (internal_vproblem): Prompt for a bug report.
4743
92c48fc5
AW
47442014-05-26 Andy Wingo <wingo@igalia.com>
4745
4746 * guile/scm-arch.c (arscm_mark_arch_smob):
4747 * guile/scm-block.c (bkscm_mark_block_smob)
4748 (bkscm_mark_block_syms_progress_smob):
4749 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4750 * guile/scm-exception.c (exscm_mark_exception_smob):
4751 * guile/scm-frame.c (frscm_mark_frame_smob):
4752 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4753 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4754 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4755 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4756 (ppscm_mark_pretty_printer_worker_smob):
4757 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4758 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4759 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4760 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4761 mark functions.
4762 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4763 function.
4764
b2715b27
AW
47652014-05-26 Andy Wingo <wingo@igalia.com>
4766 Doug Evans <xdje42@gmail.com>
4767
4768 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4769 empty_base_class. All uses updated.
4770 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4771 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4772 Adapt all callers.
4773 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4774 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4775 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4776 (gdbscm_gsmob_has_property_p, add_property_name)
4777 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4778 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4779 (gdb-object-has-property?, gdb-object-properties): Remove.
4780 (gdb-object-kind): Renamed from gsmob-kind.
4781
214ab2da
AW
47822014-05-26 Andy Wingo <wingo@igalia.com>
4783
4784 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4785 * configure: Regenerate.
4786
589fdceb
MM
47872014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4788
4789 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4790
67b5c0c1
MM
47912014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4792
4793 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4794 (replay_memory_access_read_only, replay_memory_access_read_write)
4795 (replay_memory_access_types, replay_memory_access)
4796 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4797 (cmd_set_record_btrace, cmd_show_record_btrace)
4798 (cmd_show_replay_memory_access): New.
4799 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4800 (record_btrace_remove_breakpoint): Replace
4801 record_btrace_allow_memory_access with replay_memory_access.
4802 (_initialize_record_btrace): Add commands.
4803 * NEWS: Announce it.
4804
036cd381
RR
48052014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4806
4807 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4808
c77c1e42
RR
48092014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4810
4811 * MAINTAINERS (Write After Approval): Move self back from
4812 paper trail.
4813
45741a9c
PA
48142014-05-22 Pedro Alves <palves@redhat.com>
4815
4816 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4817 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4818 (disable_randomization, enum exec_direction_kind)
4819 (execution_direction, stop_registers, start_remote)
4820 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4821 (wait_for_inferior, normal_stop, get_last_target_status)
4822 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4823 (insert_step_resume_breakpoint_at_sal)
4824 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4825 (set_step_info, print_stop_event, signal_stop_state)
4826 (signal_print_state, signal_pass_state, signal_stop_update)
4827 (signal_print_update, signal_pass_update)
4828 (update_signals_program_target, clear_exit_convenience_vars)
4829 (displaced_step_dump_bytes, update_observer_mode)
4830 (signal_catch_update, gdb_signal_from_command): Move
4831 declarations ...
4832 * infrun.h: ... to this new file.
4833 * amd64-tdep.c: Include infrun.h.
4834 * annotate.c: Include infrun.h.
4835 * arch-utils.c: Include infrun.h.
4836 * arm-linux-tdep.c: Include infrun.h.
4837 * arm-tdep.c: Include infrun.h.
4838 * break-catch-sig.c: Include infrun.h.
4839 * breakpoint.c: Include infrun.h.
4840 * common/agent.c: Include infrun.h instead of inferior.h.
4841 * corelow.c: Include infrun.h.
4842 * event-top.c: Include infrun.h.
4843 * go32-nat.c: Include infrun.h.
4844 * i386-tdep.c: Include infrun.h.
4845 * inf-loop.c: Include infrun.h.
4846 * infcall.c: Include infrun.h.
4847 * infcmd.c: Include infrun.h.
4848 * infrun.c: Include infrun.h.
4849 * linux-fork.c: Include infrun.h.
4850 * linux-nat.c: Include infrun.h.
4851 * linux-thread-db.c: Include infrun.h.
4852 * monitor.c: Include infrun.h.
4853 * nto-tdep.c: Include infrun.h.
4854 * procfs.c: Include infrun.h.
4855 * record-btrace.c: Include infrun.h.
4856 * record-full.c: Include infrun.h.
4857 * remote-m32r-sdi.c: Include infrun.h.
4858 * remote-mips.c: Include infrun.h.
4859 * remote-notif.c: Include infrun.h.
4860 * remote-sim.c: Include infrun.h.
4861 * remote.c: Include infrun.h.
4862 * reverse.c: Include infrun.h.
4863 * rs6000-tdep.c: Include infrun.h.
4864 * s390-linux-tdep.c: Include infrun.h.
4865 * solib-irix.c: Include infrun.h.
4866 * solib-osf.c: Include infrun.h.
4867 * solib-svr4.c: Include infrun.h.
4868 * target.c: Include infrun.h.
4869 * top.c: Include infrun.h.
4870 * windows-nat.c: Include infrun.h.
4871 * mi/mi-interp.c: Include infrun.h.
4872 * mi/mi-main.c: Include infrun.h.
4873 * python/py-threadevent.c: Include infrun.h.
4874
98eb56a4
PA
48752014-05-22 Pedro Alves <palves@redhat.com>
4876
4877 * infrun.c (handle_inferior_event): Store the exit code for
4878 --return-child-result here, instead of ...
4879 (print_exited_reason): ... here.
4880
17b2616c
PA
48812014-05-21 Pedro Alves <palves@redhat.com>
4882
4883 PR gdb/13860
4884 * gdbthread.h (struct thread_control_state): New field
4885 `command_interp'.
4886 * infrun.c (follow_fork): Copy the new thread control field to the
4887 child fork thread.
4888 (clear_proceed_status_thread): Clear the new thread control field.
4889 (proceed): Set the new thread control field.
4890 * interps.h (command_interp): Declare.
4891 * interps.c (command_interpreter): New global.
4892 (command_interp): New function.
4893 (interp_exec): Set `command_interpreter' while here.
4894 * cli-out.c (cli_uiout_dtor): New function.
4895 (cli_ui_out_impl): Install it.
4896 * mi/mi-interp.c: Include cli-out.h.
4897 (mi_cmd_interpreter_exec): Add comment.
4898 (restore_current_uiout_cleanup): New function.
4899 (ui_out_free_cleanup): New function.
4900 (mi_on_normal_stop): If finishing an execution command started by
4901 a CLI command, or any kind of breakpoint-like event triggered,
4902 print the stop event to the output (CLI) stream.
4903 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4904
5166082f
PA
49052014-05-21 Pedro Alves <palves@redhat.com>
4906
4907 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4908 current source line having changed.
4909 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4910 * infrun.c (normal_stop): Adjust call to
4911 set_current_sal_from_frame.
4912 * source.c (clear_lines_listed_range): New function.
4913 (set_current_source_symtab_and_line, identify_source_line): Clear
4914 the lines listed range.
4915 (line_info): Handle the first "info line" after the current source
4916 line having changed.
4917 * stack.c (print_stack_frame): Remove center handling.
4918 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4919 center sal.line.
4920
c1ee2fb3
PA
49212014-05-21 Pedro Alves <palves@redhat.com>
4922
4923 * inf-child.c (inf_child_mourn_inferior): New function.
4924 * inf-child.h (inf_child_mourn_inferior): New declaration.
4925 * darwin-nat.c (darwin_mourn_inferior): Use
4926 inf_child_mourn_inferior.
4927 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4928 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4929 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4930 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4931 * windows-nat.c (windows_mourn_inferior): Likewise.
4932
5c6d4fb2
DE
49332014-05-21 Doug Evans <xdje42@gmail.com>
4934
250748cb 4935 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4936
4a2722c5
DE
49372014-05-21 Doug Evans <xdje42@gmail.com>
4938
17292b30 4939 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4940 (gdbscm_out_of_range_error): Ditto.
4941 (gdbscm_memory_error): Ditto.
250748cb
DE
4942 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4943 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4944 (gdbscm_out_of_range_error): Update.
4945 (gdbscm_memory_error): Update.
4946 (gdbscm_scm_to_target_string_unsafe): Delete.
4947
6a3cb8e8
PA
49482014-05-21 Pedro Alves <palves@redhat.com>
4949
4950 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4951 globals.
4952 (inf_child_open_target): New function.
4953 (inf_child_open): Use inf_child_open_target to push the target
4954 instead of erroring out.
4955 (inf_child_disconnect, inf_child_close)
4956 (inf_child_maybe_unpush_target): New functions.
4957 (inf_child_target): Install inf_child_disconnect and
4958 inf_child_close. Store a pointer to the returned object.
4959 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4960 declarations.
4961 * target.c (auto_connect_native_target): New global.
4962 (show_default_run_target): New function.
4963 (find_default_run_target): Return NULL if automatically connecting
4964 to the native target is disabled.
4965 (_initialize_target): Install set/show auto-connect-native-target.
4966 * NEWS: Mention "set auto-connect-native-target", and "target
4967 native".
4968 * linux-nat.c (super_close): New global.
4969 (linux_nat_close): Call super_close.
4970 (linux_nat_add_target): Store a pointer to the base class's
4971 to_close method.
4972 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4973 inf_child_maybe_unpush.
4974 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4975 already pushed.
4976 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4977 the inferior. Use inf_child_maybe_unpush_target.
4978 (inf_ttrace_attach): Don't push the target if it is already
4979 pushed.
4980 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4981 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4982 after mourning the inferior. Use inf_child_maybe_unpush_target.
4983 (darwin_attach_pid): Don't push the target if it is already
4984 pushed.
4985 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4986 mourning the inferior. Use inf_child_maybe_unpush_target.
4987 (gnu_detach): Use inf_child_maybe_unpush_target.
4988 * go32-nat.c (go32_create_inferior): Don't push the target if it
4989 is already pushed.
4990 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4991 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4992 (procfs_open): Rename to ...
4993 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4994 comments. Can target_preopen before changing node. Call
4995 inf_child_open_target to push the target explicitly.
4996 (procfs_attach): Don't push the target if it is already pushed.
4997 (procfs_detach): Use inf_child_maybe_unpush_target.
4998 (procfs_create_inferior): Don't push the target if it is already
4999 pushed.
5000 (nto_native_ops): New global.
5001 (procfs_open): Reimplement.
5002 (procfs_native_open): New function.
5003 (init_procfs_targets): Install procfs_native_open as to_open of
5004 "target native". Store a pointer to the "native" target in
5005 nto_native_ops.
5006 * procfs.c (procfs_attach): Don't push the target if it is already
5007 pushed.
5008 (procfs_detach): Use inf_child_maybe_unpush_target.
5009 (procfs_mourn_inferior): Only unpush the target after mourning the
5010 inferior. Use inf_child_maybe_unpush_target.
5011 (procfs_init_inferior): Don't push the target if it is already
5012 pushed.
5013 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5014 if it is already pushed.
5015
930ee1b1
PA
50162014-05-21 Pedro Alves <palves@redhat.com>
5017
5018 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5019 and "procfs" targets are now called "native" instead.
5020
1f5d1b13
PA
50212014-05-21 Pedro Alves <palves@redhat.com>
5022
5023 * go32-nat.c (go32_open): Delete.
5024 (go32_target): Don't override the to_open method.
5025
132f8e03
PA
50262014-05-21 Pedro Alves <palves@redhat.com>
5027
5028 * nto-procfs.c (procfs_can_run): New function.
5029 (nto_procfs_ops): New global.
5030 (init_procfs_targets): New, based on procfs_target. Install
5031 "target native" in addition to "target procfs".
5032 (_initialize_procfs): Call init_procfs_targets instead of adding
5033 the target here.
5034
03c136c3
PA
50352014-05-21 Pedro Alves <palves@redhat.com>
5036
5037 * windows-nat.c (windows_target): Don't override to_shortname,
5038 to_longname or to_doc.
5039
a635d0f3
PA
50402014-05-21 Pedro Alves <palves@redhat.com>
5041
5042 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5043 to_doc.
5044
4f9b5133
PA
50452014-05-21 Pedro Alves <palves@redhat.com>
5046
5047 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5048 to_shortname, to_longname or to_doc.
5049
bc85afde
PA
50502014-05-21 Pedro Alves <palves@redhat.com>
5051
5052 * go32-nat.c (go32_target): Don't override to_shortname,
5053 to_longname or to_doc.
5054
4ebfc96e
PA
50552014-05-21 Pedro Alves <palves@redhat.com>
5056
5057 * inf-child.c (inf_child_open): Remove mention of "child".
5058 (inf_child_target): Rename target to "native" instead of "child".
5059
2648dfed
AA
50602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5061
5062 * Makefile.in (SFILES): Delete "regset.c".
5063 (COMMON_OBS): Delete "regset.o".
5064 * regset.c: Remove.
5065 * regset.h (regset_alloc): Delete prototype.
5066
b13feb94
AA
50672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5068
5069 * sparc-linux-tdep.c (sparc32_linux_gregset)
5070 (sparc32_linux_fpregset): New static regset structures.
5071 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5072 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5073 'fpregset' fields.
5074 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5075 (sparc64_linux_fpregset): New static regset structures.
5076 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5077 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5078 New static regset structures.
5079 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5080 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5081 New static regset structures.
5082 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5083 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5084 New static regset structures.
5085 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5086 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5087 New static regset structures.
5088 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5089
b4fd25c9
AA
50902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5091
5092 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5093 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5094 register maps ("regmaps") from "*regset" to "*regmap". Do this
5095 for all regmap types and variables.
5096 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5097 (sparc32_linux_supply_core_gregset)
5098 (sparc32_linux_collect_core_gregset)
5099 (sparc32_linux_supply_core_fpregset)
5100 (sparc32_linux_collect_core_fpregset): Likewise.
5101 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5102 (sparc_gregmap, sparc_fpregmap): ... these.
5103 (sparc_supply_gregset, sparc_collect_gregset)
5104 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5105 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5106 (_initialize_sparc_nat): Rename regmaps.
5107 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5108 (sparc_gregmap, sparc_fpregmap): ... these.
5109 (sparc_supply_gregset, sparc_collect_gregset)
5110 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5111 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5112 Rename macros to...
5113 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5114 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5115 Likewise.
5116 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5117 Rename to...
5118 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5119 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5120 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5121 regmaps.
5122 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5123 (sparc32_bsd_fpregset): Rename to...
5124 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5125 (sparc32_bsd_fpregmap): ... these.
5126 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5127 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5128 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5129 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5130 (struct sparc_gregmap, struct sparc_fpregmap)
5131 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5132 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5133 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5134 (sparc32_supply_regset, sparc32_collect_gregset)
5135 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5136 prototypes.
5137 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5138 (sparc64_linux_ptrace_gregmap): ... this.
5139 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5140 (_initialize_sparc64_linux_nat): Rename regmaps.
5141 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5142 (sparc64_linux_core_gregmap): ... this.
5143 (sparc64_linux_supply_core_gregset)
5144 (sparc64_linux_collect_core_gregset)
5145 (sparc64_linux_supply_core_fpregset)
5146 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5147 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5148 (sparc64_sol2_fpregset): Rename to...
5149 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5150 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5151 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5152 regmaps.
5153 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5154 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5155 (sparc64_bsd_fpregset): Rename to...
5156 (struct sparc_gregmap, sparc64_sol2_gregmap)
5157 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5158 (sparc64_bsd_fpregmap): ... these.
5159 (sparc64_supply_gregset, sparc64_collect_gregset)
5160 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5161 prototypes.
5162 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5163 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5164 (sparc64fbsd_gregmap): ... this.
5165 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5166 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5167 Rename regmaps.
5168 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5169 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5170 (sparc64nbsd_collect_fpregset): Likewise.
5171 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5172 (sparc64nbsd_gregmap): ... this.
5173 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5174 regmaps.
5175 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5176 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5177 (sparc64obsd_gregmap): ... this.
5178 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5179 regmaps.
5180 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5181 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5182 (sparc32nbsd_gregmap): ... this.
5183 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5184 regmaps.
5185
8fea3224
AA
51862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5187
5188 * score-tdep.c (score7_linux_gregset): New static regset
5189 structure.
5190 (score7_linux_regset_from_core_section): Remove dynamic regset
5191 allocation.
5192 (score_gdbarch_init): Drop allocation of tdep structure.
5193 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5194
24534243
AA
51952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5196
5197 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5198 regset structures.
5199 (am33_regset_from_core_section): Remove dynamic regset
5200 allocations.
5201
b7195f27
AA
52022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5203
5204 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5205 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5206 structures.
5207 (mips_linux_regset_from_core_section): Remove dynamic regset
5208 allocations.
5209 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5210 'gregset64', 'fpregset', and 'fpregset64'.
5211 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5212 deleted tdep fields.
5213
ecc37a5a
AA
52142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5215
5216 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5217 regset structures.
5218 (amd64_regset_from_core_section): Remove dynamic regset
5219 allocations.
5220 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5221 structure.
5222 (amd64obsd_regset_from_core_section): Remove dynamic regset
5223 allocation.
5224 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5225 Likewise.
5226 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5227 x86-common regset supply function.
5228 * i386-tdep.c (i386_collect_gregset): Make static.
5229 (i386_gregset): New global regset structure.
5230 (i386_fpregset, i386_xstateregset): New static regset structures.
5231 (i386_regset_from_core_section): Remove dynamic regset
5232 allocations.
5233 (i386_gdbarch_init): Remove initialization of tdep fields
5234 'gregset', 'fpregset', and 'xstateregset'.
5235 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5236 'fpregset', and 'xstateregset'.
5237 (i386_collect_gregset): Remove prototype.
5238 (i386_gregset): New declaration.
5239 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5240 structure.
5241 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5242 allocation.
5243
b7611c43
AA
52442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5245
5246 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5247 (arm_linux_vfpregset): New static regset structures.
5248 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5249 regset structures.
5250 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5251 and 'vfpregset' fields.
5252
a069a2bd
AA
52532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5254
5255 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5256 (aarch64_linux_fpregset): New static regset structures.
5257 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5258 of regset structures.
5259 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5260 'fpregset' fields.
5261
09424cff
AA
52622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5263
5264 * regset.h (struct regset): Remove gdbarch field.
5265 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5266 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5267 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5268 Likewise.
5269 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5270 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5271 (ppc32_linux_vsxregset): Likewise.
5272 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5273 via the regcache instead of the regset.
5274 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5275 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5276 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5277 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5278 Likewise.
5279
3ca7dae4
AA
52802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5281
5282 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5283 Constify structures.
5284 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5285 (alphanbsd_aout_gregset): Likewise.
5286 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5287 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5288 Likewise.
5289 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5290 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5291 Likewise.
5292 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5293 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5294 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5295 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5296 * m88k-tdep.c (m88k_gregset): Likewise.
5297 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5298 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5299 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5300 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5301 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5302 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5303 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5304 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5305 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5306 Likewise.
5307 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5308 * sh-tdep.h (sh_corefile_gregset): Likewise.
5309 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5310 * vax-tdep.c (vax_gregset): Likewise.
5311
5876f503
JK
53122014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 Fix TLS access for -static -pthread.
5315 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5316 (try_thread_db_load_1): Initialize it.
5317 (thread_db_get_thread_local_address): Call it if LM is zero.
5318 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5319 * target.h (struct target_ops) (to_get_thread_local_address): Add
5320 load_module_addr comment.
5321
0256a6ac
PA
53222014-05-21 Pedro Alves <palves@redhat.com>
5323
5324 * dcache.c (dcache_read_memory_partial): If reading the cache line
5325 fails, fallback to reading just the memory the caller wanted.
5326
227533ac
DE
53272014-05-20 Doug Evans <dje@google.com>
5328
5329 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5330 instead of get_current_arch.
5331
936d2992
PA
53322014-05-20 Pedro Alves <palves@redhat.com>
5333
5334 * NEWS: Mention that compare-sections now works with all targets.
5335
5336 * remote.c (PACKET_qCRC): New enum value.
5337 (remote_verify_memory): Don't send qCRC if the target has no
5338 execution. Use packet_support/packet_ok. If the target doesn't
5339 support the qCRC packet, fallback to a deep memory copy.
5340 (compare_sections_command): Say "target image" instead of "remote
5341 executable".
5342 (_initialize_remote): Add PACKET_qCRC to the list of config
5343 packets that have no associated command. Extend comment.
5344 * target.c (simple_verify_memory, default_verify_memory): New
5345 function.
5346 * target.h (struct target_ops) <to_verify_memory>: Default to
5347 default_verify_memory.
5348 (simple_verify_memory): New declaration.
5349 * target-delegates.c: Regenerate.
5350
e59fa00f
MM
53512014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5352
5353 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5354
f2205de0
HZ
53552014-05-20 Hui Zhu <hui@codesourcery.com>
5356 Yao Qi <yao@codesourcery.com>
5357
5358 PR backtrace/16558
5359 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5360 and change address of sp and pc.
5361
c4e54771
TT
53622014-05-19 Tom Tromey <tromey@redhat.com>
5363
5364 * gdbtypes.c (rank_function): Use XNEWVEC.
5365 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5366
73051182
DE
53672014-05-19 Doug Evans <dje@google.com>
5368
5369 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5370 build_type_unit_groups and moved closer to only caller. Remove
5371 arguments. All references updated. Remove outdated .gdb_index
5372 comment.
5373 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5374 build_type_psymtabs_1.
5375
8832e7e3
DE
53762014-05-19 Doug Evans <dje@google.com>
5377
5378 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5379 n_type_unit_groups, all_type_unit_groups. All uses removed.
5380 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5381 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5382 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5383 (add_type_unit_group_to_table): Delete.
5384
cd8ae15e
DE
53852014-05-19 Doug Evans <dje@google.com>
5386
5387 * eval.c (evaluate_subexp_standard): Add some comments.
5388
08f4850b
DE
53892014-05-17 Doug Evans <xdje42@gmail.com>
5390
5391 * progspace.c (remove_program_space): Delete, unused.
5392 * progspace.h (remove_program_space): Ditto.
5393
bed8455c
DE
53942014-05-17 Doug Evans <xdje42@gmail.com>
5395
5396 * inferior.c (prune_inferiors): Fix comment.
5397 (remove_inferior_command): Call prune_program_spaces.
5398
8d551b02
DE
53992014-05-16 Doug Evans <dje@google.com>
5400
5401 New command line option -D.
5402 * NEWS: Mention it.
5403 * main.c (set_gdb_data_directory): New function.
5404 (captured_main): Recognize -D. Flag error for --data-directory "".
5405 Call set_gdb_data_directory.
5406 (print_gdb_help): Print --data-directory, -D.
5407 * main.h (set_gdb_data_directory): Declare.
5408 * top.c (staged_gdb_datadir): New static global.
5409 (set_gdb_datadir): Call set_gdb_data_directory
5410 (show_gdb_datadir): New function.
5411 (init_main): Update init of data-directory parameter.
5412
18848e28
GF
54132014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5414
5415 Import the "dirfd" gnulib module.
5416 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5417 * gnulib/aclocal.m4: Update.
5418 * gnulib/config.in: Update.
5419 * gnulib/configure: Update.
5420 * gnulib/import/Makefile.am: Update.
5421 * gnulib/import/Makefile.in: Update.
5422 * gnulib/import/dirfd.c: New.
5423 * gnulib/import/m4/dirfd.m4: New.
5424 * gnulib/import/m4/gnulib-cache.m4: Update.
5425 * gnulib/import/m4/gnulib-comp.m4: Update.
5426
95c64f92
YQ
54272014-05-16 Pierre Muller <muller@sourceware.org>
5428 Yao Qi <yao@codesourcery.com>
5429
5430 * valprint.c (print_wchar): Move the code on checking whether
5431 W is a printable wide char to the default branch of switch
5432 statement below. Call wchar_printable instead of gdb_iswprint.
5433
cac395ea
TM
54342014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5435
19679eca 5436 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5437 ldr.w and ldrd instructions.
5438
83655187
DE
54392014-05-15 Doug Evans <dje@google.com>
5440
5441 * dwarf2read.c (read_structure_type): Delete outdated comments.
5442
dd756689
TT
54432014-05-14 Tom Tromey <tromey@redhat.com>
5444
5445 * macrocmd.c (print_macro_definition): Reindent.
5446
75ddda77
DE
54472014-05-13 Doug Evans <xdje42@gmail.com>
5448
5449 * python/py-cmd.c (cmdpy_completer): Add comment.
5450 (completers): Make const.
5451
b0f16a3e
SM
54522014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5453
5454 * infrun.c (resume): Remove should_resume (unused). Move up
5455 declaration of resume_ptid.
5456
033c3379
TT
54572014-05-13 Tom Tromey <tromey@redhat.com>
5458
5459 * language.h (unop_type_check): Remove.
5460 (binop_type_check): Don't declare.
5461
9b44a3a5
AA
54622014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5463
5464 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5465 call to regcache_raw_collect.
5466
303a33fa
SM
54672014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5470 mi_console->quote as the quoting character.
5471
196100a0
SM
54722014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5475
f989a1c8
TT
54762014-04-29 Tom Tromey <tromey@redhat.com>
5477
5478 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5479 "show debug varobj".
5480
9404b58f
KM
54812014-05-07 Kyle McMartin <kyle@redhat.com>
5482
5483 Pushed by Joel Brobecker <brobecker@adacore.com>.
5484 * aarch64-tdep.c (aarch64_software_single_step): New function.
5485 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5486 with aarch64_software_single_step.
5487
5e49ba57
JB
54882014-05-05 Joel Brobecker <brobecker@adacore.com>
5489
5490 GDB 7.7.1 released.
5491
c888a17d
KS
54922014-05-05 Keith Seitz <keiths@redhat.com>
5493
5494 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5495 variable or history value is successfully parsed.
5496
290a839c
YQ
54972014-05-05 Yao Qi <yao@codesourcery.com>
5498 Pedro Alves <palves@redhat.com>
5499
5500 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5501 address of blocks that intersects the requested range. Trim
5502 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5503 sections.
5504 * ctf.c (ctf_xfer_partial): Likewise.
5505
91256dc2
YQ
55062014-05-05 Yao Qi <yao@codesourcery.com>
5507
5508 * printcmd.c (display_command): Remove the check to
5509 target_has_execution.
5510
07284463
MK
55112014-05-03 Mark Kettenis <kettenis@gnu.org>
5512
5513 * ppcobsd-nat.c: Include "obsd-nat.h".
5514 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5515 add_target.
5516 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5517
30a1e6cc
SDJ
55182014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5519
5520 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5521 and 16-bit signed and unsigned arguments. Update comment.
5522 (stap_parse_probe_arguments): Extend code to handle such
5523 arguments. Use warning instead of complaint to notify about
5524 unrecognized bitness.
5525
f33da99a
SDJ
55262014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5527
5528 PR breakpoints/16889
5529 * stap-probe.c (stap_parse_probe_arguments): Simplify
5530 check for non-prefixed probes (i.e., probes whose
5531 arguments do not start with "N@"). Always set the
5532 argument type to a sane value.
5533
95cf3b38
DT
55342014-05-01 David Taylor <dtaylor@emc.com>
5535
5536 * remote.c (compare_sections_command): Add -r option to compare
5537 all loadable read-only sections.
5538
1cfdf534
SC
55392014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5540
5541 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5542 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5543 Update all callers.
5544 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5545 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5546 Remove unused CORE_ADDR argument. Update all callers.
5547
ca4f7f8b
PA
55482014-04-29 Pedro Alves <palves@redhat.com>
5549
5550 * remote.c (struct packet_config) <detect>: Extend comment.
5551 (add_packet_config_cmd): Don't set the config's detect or support
5552 fields here.
5553 (init_all_packet_configs): Also initialize the config's 'detect'
5554 field.
5555 (reset_all_packet_configs_support): New function.
5556 (remote_open_1): Call reset_all_packet_configs_support instead of
5557 init_all_packet_configs.
5558 (_initialize_remote): Initialize all packet configs. Assert that
5559 all packets have an associated command, except a few known
5560 outliers.
5561
11c1ba78
JB
55622014-04-28 Joel Brobecker <brobecker@adacore.com>
5563
5564 * dwarf2read.c (read_subrange_type): Handle dynamic
5565 DW_AT_lower_bound attributes.
5566
8739bc53
JB
55672014-04-28 Joel Brobecker <brobecker@adacore.com>
5568
5569 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5570 dynamic bounds before computing its upper bound.
5571 (ada_discrete_type_low_bound): Same as above with the lower bound.
5572
6f8a3220
JB
55732014-04-28 Joel Brobecker <brobecker@adacore.com>
5574
5575 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5576 range types. Adjust the array handling implementation to
5577 take advantage of this change.
5578 (resolve_dynamic_range): New function, mostly extracted from
5579 resolve_dynamic_bounds.
5580 (resolve_dynamic_array): New function, mostly extracted from
5581 resolve_dynamic_bounds.
5582 (resolve_dynamic_bounds): Delete.
5583 (resolve_dynamic_type): Reimplement. Add handling of
5584 TYPE_CODE_RANGE types.
5585
4d072ce4
JB
55862014-04-28 Joel Brobecker <brobecker@adacore.com>
5587
5588 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5589 handling of parallel ___XA types.
5590
52865325
JB
55912014-04-28 Joel Brobecker <brobecker@adacore.com>
5592
5593 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5594 unnecessary second call to static_unwrap_type.
5595
433e77fa
HZ
55962014-04-27 Hui Zhu <hui@codesourcery.com>
5597
5598 * stack.c (print_frame_info): Call do_gdb_disassembly with
5599 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5600
b51a69ee
DE
56012014-04-26 Doug Evans <xdje42@gmail.com>
5602
5603 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5604
7ae1a6a6
PA
56052014-04-25 Pedro Alves <palves@redhat.com>
5606
5607 PR server/16255
5608 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5609 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5610 and newline from built string.
5611 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5612 (linux_ptrace_attach_fail_reason): ... this.
5613 * linux-nat.c (linux_nat_attach): Adjust to use
5614 linux_ptrace_attach_fail_reason.
5615
4082afcc
PA
56162014-04-25 Pedro Alves <palves@redhat.com>
5617
5618 * remote.c (struct remote_state): Remove multi_process_aware,
5619 non_stop_aware, cond_tracepoints, cond_breakpoints,
5620 breakpoint_commands, fast_tracepoints, static_tracepoints,
5621 install_in_trace, disconnected_tracing,
5622 enable_disable_tracepoints, string_tracing, and
5623 augmented_libraries_svr4_read fields.
5624 (remote_multi_process_p): Move further below in the file.
5625 (struct packet_config): Add comments.
5626 (update_packet_config): Delete function.
5627 (show_packet_config_cmd): Use packet_config_support.
5628 (add_packet_config_cmd): Use NULL as set callback.
5629 (packet_ok): "set remote foo-packet"-style commands no longer
5630 change config->supported -- adjust.
5631 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5632 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5633 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5634 (PACKET_QNonStop, PACKET_multiprocess_feature)
5635 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5636 (PACKET_DisconnectedTracing_feature)
5637 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5638 (set_remote_protocol_packet_cmd): Delete function.
5639 (packet_config_support, packet_support): New functions.
5640 (set_remote_protocol_Z_packet_cmd): Don't call
5641 update_packet_config.
5642 (remote_query_attached, remote_pass_signals)
5643 (remote_program_signals, remote_threads_info)
5644 (remote_threads_extra_info, remote_start_remote): Use
5645 packet_support.
5646 (remote_start_remote): Use packet_config_support and
5647 packet_support.
5648 (init_all_packet_configs): Set all packets to unknown support,
5649 instead of calling update_packet_config.
5650 (remote_check_symbols): Use packet_support.
5651 (remote_supported_packet): Unconditionally set the packet config's
5652 support status.
5653 (remote_multi_process_feature, remote_non_stop_feature)
5654 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5655 (remote_breakpoint_commands_feature)
5656 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5657 (remote_install_in_trace_feature)
5658 (remote_disconnected_tracing_feature)
5659 (remote_enable_disable_tracepoint_feature)
5660 (remote_string_tracing_feature)
5661 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5662 (remote_protocol_features): Adjust to use remote_supported_packet
5663 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5664 "ConditionalTracepoints", "ConditionalBreakpoints",
5665 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5666 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5667 "EnableDisableTracepoints", and "tracenz".
5668 (remote_query_supported): Use packet_support.
5669 (remote_open_1): Adjust.
5670 (extended_remote_attach_1): Use packet_support. Switch on the
5671 result of packet_ok instead of checking whether the packet ended
5672 up disabled.
5673 (remote_vcont_resume): Use packet_support.
5674 (remote_resume, remote_stop_ns, fetch_register_using_p)
5675 (remote_prepare_to_store, store_register_using_P)
5676 (check_binary_download, remote_write_bytes): Use packet_support.
5677 (remote_vkill): Use packet_support. Switch on the result of
5678 packet_ok instead of checking whether the packet ended up
5679 disabled.
5680 (extended_remote_supports_disable_randomization): Use
5681 packet_support.
5682 (extended_remote_run): Switch on the result of packet_ok instead
5683 of checking whether the packet ended up disabled.
5684 (remote_insert_breakpoint, remote_remove_breakpoint)
5685 (remote_insert_watchpoint, remote_remove_watchpoint)
5686 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5687 packet_support.
5688 (remote_search_memory): Use packet_config_support.
5689 (remote_get_thread_local_address, remote_get_tib_address)
5690 (remote_hostio_send_command, remote_can_execute_reverse): Use
5691 packet_support.
5692 (remote_supports_cond_tracepoints)
5693 (remote_supports_cond_breakpoints)
5694 (remote_supports_fast_tracepoints)
5695 (remote_supports_static_tracepoints)
5696 (remote_supports_install_in_trace)
5697 (remote_supports_enable_disable_tracepoint)
5698 (remote_supports_string_tracing)
5699 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5700 the packet config says the feature is enabled or disabled.
5701 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5702 (remote_get_trace_status): Use packet_support.
5703 (remote_set_disconnected_tracing): Adjust to check whether the
5704 feature is enabled with packet_support.
5705 (remote_set_trace_buffer_size, remote_use_agent)
5706 (remote_can_use_agent, remote_supports_btrace): Use
5707 packet_support.
5708 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5709 Use packet_config_support.
5710 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5711 the packet config says the feature is enabled or disabled.
5712 (set_range_stepping): Use packet_support.
5713
bdb52a22
TT
57142014-04-25 Tom Tromey <tromey@redhat.com>
5715
5716 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5717 argument.
5718
e9475ead
SA
57192014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5720
5721 * NEWS: Mention support for C99 variable length arrays.
5722
82eacd52
JB
57232014-04-24 Joel Brobecker <brobecker@adacore.com>
5724
5725 * ada-lang.c (standard_exc): Expand introductory comment.
5726
01f9f808
MS
57272014-04-24 Michael Sturm <michael.sturm@mintel.com>
5728 Walfred Tedeschi <walfred.tedeschi@intel.com>
5729
5730 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5731 AVX512 registers.
5732 (amd64_linux_read_description): Add code to handle AVX512 xstate
5733 mask and return respective tdesc.
5734 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5735 and features/i386/x32-avx512-linux.c.
5736 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5737 (amd64_linux_core_read_description): Add code to handle AVX512
5738 xstate mask and return respective tdesc.
5739 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5740 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5741 calculation.
5742 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5743 (tdesc_amd64_avx512_linux): New prototype.
5744 (tdesc_x32_avx512_linux): Likewise.
5745 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5746 features/i386/x32-avx512.c.
5747 (amd64_ymm_avx512_names): New register names for pseudo
5748 registers YMM16-31.
5749 (amd64_ymmh_avx512_names): New register names for raw registers
5750 YMMH16-31.
5751 (amd64_k_names): New register names for K registers.
5752 (amd64_zmmh_names): New register names for ZMM raw registers.
5753 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5754 (amd64_xmm_avx512_names): New register names for XMM16-31
5755 registers.
5756 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5757 registers.
5758 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5759 if feature is present.
5760 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5761 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5762 (AMD64_NUM_REGS): Adjust to new number of registers.
5763 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5764 registers supplied via XSTATE by AVX512 registers.
5765 (i386_linux_read_description): Add case for AVX512.
5766 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5767 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5768 (i386_linux_core_read_description): Add case for AVX512.
5769 (i386_linux_init_abi): Install supported register note section
5770 for AVX512.
5771 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5772 AVX512.
5773 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5774 registers to be number of zmm7h + 1.
5775 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5776 * i386-tdep.c: Include features/i386/i386-avx512.c.
5777 (i386_zmm_names): Add ZMM pseudo register names array.
5778 (i386_zmmh_names): Add ZMM raw register names array.
5779 (i386_k_names): Add K raw register names array.
5780 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5781 registers. AVX512 has 16 more ZMM registers than there are YMM
5782 registers.
5783 (i386_zmmh_regnum_p): Add function to look up register number of
5784 ZMM raw registers.
5785 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5786 (i386_k_regnum_p): Likewise for K raw registers.
5787 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5788 registers added by AVX512.
5789 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5790 registers added by AVX512.
5791 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5792 added by AVX512.
5793 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5794 (i386_pseudo_register_name): Add ZMM pseudo registers.
5795 (i386_zmm_type): Construct and return vector registers type for ZMM
5796 registers.
5797 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5798 ZMM0-31 pseudo registers and K registers.
5799 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5800 and YMM16-31 registers from register cache.
5801 (i386_pseudo_register_write): Add code to write K, ZMM and
5802 YMM16-31 registers.
5803 (i386_register_reggroup_p): Add code to include/exclude AVX512
5804 registers in/from respective register groups.
5805 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5806 registers if feature is present in xcr0.
5807 (i386_gdbarch_init): Add code to initialize AVX512 feature
5808 variables in tdep structure, wire in pseudo registers and call
5809 initialize_tdesc_i386_avx512.
5810 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5811 variables.
5812 (i386_regnum): Add AVX512 registers.
5813 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5814 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5815 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5816 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5817 512 bits wide.
5818 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5819 (i386_ymm_avx512_regnum_p): Likewise.
5820 (i386_k_regnum_p): Likewise.
5821 (i386_zmm_regnum_p): Likewise.
5822 (i386_zmmh_regnum_p): Likewise.
5823 * i387-tdep.c : Update year in copyright notice.
5824 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5825 XSAVE buffer.
5826 (XSAVE_YMM_AVX512_ADDR): New macro.
5827 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5828 XSAVE buffer.
5829 (XSAVE_XMM_AVX512_ADDR): New macro.
5830 (xsave_avx512_k_offset): New table for K register offsets in
5831 XSAVE buffer.
5832 (XSAVE_AVX512_K_ADDR): New macro.
5833 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5834 in XSAVE buffer.
5835 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5836 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5837 buffer.
5838 (i387_collect_xsave): Add code to collect AVX512 registers from
5839 XSAVE buffer.
5840 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5841 of XMM16-31 registers.
5842 (I387_NUM_K_REGS): New define for number of K registers.
5843 (I387_K0_REGNUM): New define for K0 register number.
5844 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5845 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5846 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5847 registers.
5848 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5849 (I387_XMM16_REGNUM): New define for XMM16 register number.
5850 (I387_YMM0_REGNUM): New define for YMM0 register number.
5851 (I387_KEND_REGNUM): New define for last K register number.
5852 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5853 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5854 number.
5855 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5856 number.
5857 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5858 size.
5859 * features/Makefile: Add AVX512 related files.
5860 * features/i386/32bit-avx512.xml: New file.
5861 * features/i386/64bit-avx512.xml: Likewise.
5862 * features/i386/amd64-avx512-linux.c: Likewise.
5863 * features/i386/amd64-avx512-linux.xml: Likewise.
5864 * features/i386/amd64-avx512.c: Likewise.
5865 * features/i386/amd64-avx512.xml: Likewise.
5866 * features/i386/i386-avx512-linux.c: Likewise.
5867 * features/i386/i386-avx512-linux.xml: Likewise.
5868 * features/i386/i386-avx512.c: Likewise.
5869 * features/i386/i386-avx512.xml: Likewise.
5870 * features/i386/x32-avx512-linux.c: Likewise.
5871 * features/i386/x32-avx512-linux.xml: Likewise.
5872 * features/i386/x32-avx512.c: Likewise.
5873 * features/i386/x32-avx512.xml: Likewise.
5874 * regformats/i386/amd64-avx512-linux.dat: New file.
5875 * regformats/i386/amd64-avx512.dat: Likewise.
5876 * regformats/i386/i386-avx512-linux.dat: Likewise.
5877 * regformats/i386/i386-avx512.dat: Likewise.
5878 * regformats/i386/x32-avx512-linux.dat: Likewise.
5879 * regformats/i386/x32-avx512.dat: Likewise.
5880 * NEWS: Add note about new support for AVX512.
5881
5882
08351840
PA
58832014-04-23 Pedro Alves <palves@redhat.com>
5884
5885 * breakpoint.c (insert_bp_location): Tolerate errors if the
5886 breakpoint is set in a user-loaded objfile.
5887 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5888 location is marked shlib_disabled. If the breakpoint is set in a
5889 user-loaded objfile is a GDB-side memory breakpoint, validate it
5890 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5891 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5892 flag.
5893 * mem-break.c (memory_validate_breakpoint): New function.
5894 * objfiles.c (userloaded_objfile_contains_address_p): New
5895 function.
5896 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5897 * target.h (memory_validate_breakpoint): New declaration.
5898
076855f9
PA
58992014-04-23 Pedro Alves <palves@redhat.com>
5900
5901 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5902 the breakpoint is set in a shared library, only suppress
5903 errors for software breakpoints, not hardware breakpoints.
5904
483805cf
PA
59052014-04-22 Pedro Alves <palves@redhat.com>
5906
5907 * infrun.c (schedlock_applies): New function, factored out from
5908 find_thread_needs_step_over.
5909 (find_thread_needs_step_over): Use it.
5910 (switch_back_to_stepped_thread): Always clear trap_expected if the
5911 step over is finished. Return early if scheduler locking applies.
5912 Look for the stepping thread and a potential step-over thread with
5913 a single loop.
5914 (currently_stepping_or_nexting_callback): Delete.
5915
a75fef0e
NC
59162014-04-22 Nick Clifton <nickc@redhat.com>
5917
5918 * NEWS: Mention that ARM sim now supports tracing.
5919
48b6e87e
YQ
59202014-04-22 Yao Qi <yao@codesourcery.com>
5921
5922 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5923 to ...
5924 * tracefile.c (tracefile_fetch_registers): ... it. New
5925 function.
5926 * tracefile.h (tracefile_fetch_registers): Declare.
5927 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5928 tracefile_fetch_registers.
5929
17617f2d
EZ
59302014-04-19 Eli Zaretskii <eliz@gnu.org>
5931
5932 PR gdb/14018
5933 * windows-nat.c (thread_rec): Don't display a warning when
5934 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5935 fails for any reason, set th->suspended to -1, so that we don't
5936 try to resume such a thread. Also, don't return NULL in these
5937 cases, to avoid completely ruin the session due to "PC register is
5938 not available" error.
5939 (do_windows_fetch_inferior_registers): Check errors in
5940 GetThreadContext call.
5941 (windows_continue): Accept an additional argument KILLED; if not
5942 zero, ignore errors in the SetThreadContext call, since the
5943 inferior was killed and is shutting down.
5944 (windows_resume, get_windows_debug_event)
5945 (windows_create_inferior, windows_mourn_inferior)
5946 (windows_kill_inferior): All callers of windows_continue changed
5947 to adjust to its new calling sequence.
5948
5723a6fd
YQ
59492014-04-19 Yao Qi <yao@codesourcery.com>
5950
5951 * ctf.c (ctf_open): Call post_create_inferior.
5952
614d5099
YQ
59532014-04-19 Yao Qi <yao@codesourcery.com>
5954
5955 * ctf.c (handle_id): New static variable.
5956 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5957 value. Get the declaration of event "register" and get length
5958 of field "contents".
5959
dac3e710
YQ
59602014-04-19 Yao Qi <yao@codesourcery.com>
5961
5962 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5963
2bca57ba
SC
59642014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5965
5966 * valops.c (oload_method_static): Remove unnecessary argument
5967 METHOD. Update all callers.
5968
51d48146
PA
59692014-04-18 Pedro alves <palves@redhat.com>
5970 Tom Tromey <tromey@redhat.com>
5971
5972 PR backtrace/15558
5973 * frame.c (get_prev_frame_1): Rename to ...
5974 (get_prev_frame_always): ... this, and make extern. Adjust.
5975 (skip_artificial_frames): Use get_prev_frame_always.
5976 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5977 (get_frame_unwind_stop_reason): Adjust to rename.
5978 * frame.h (get_prev_frame_always): Declare.
5979 * inline-frame.c: Include frame.h.
5980 (inline_frame_this_id): Use get_prev_frame_always.
5981
1bdad2e0
TG
59822014-04-18 Tristan Gingold <gingold@adacore.com>
5983
5984 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5985 code by using bfd_mach_o_get_base_address.
5986
7ce16bd4
UW
59872014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5988
5989 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5990 (spu_ax_pseudo_register_collect): New function.
5991 (spu_ax_pseudo_register_push_stack): Likewise.
5992 (spu_dwarf_reg_to_regnum): Likewise.
5993 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5994
2ed3c037
UW
59952014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5996
5997 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5998 Replace FRAME argument with FRAME_ID.
5999 * gdbarch.c, gdbarch.h: Regenerate.
6000 * findvar.c (default_value_from_register): Add GDBARCH argument;
6001 replace FRAME by FRAME_ID. No longer call get_frame_id.
6002 (value_from_register): Update call to gdbarch_value_from_register.
6003 * value.h (default_value_from_register): Update prototype.
6004 * s390-linux-tdep.c (s390_value_from_register): Update interface
6005 and call to default_value_from_register.
6006 * spu-tdep.c (spu_value_from_register): Likewise.
6007
6008 * findvar.c (address_from_register): Remove TYPE argument.
6009 Do not call value_from_register; use gdbarch_value_from_register
6010 with null_frame_id instead.
6011 * value.h (address_from_register): Update prototype.
6012 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6013 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6014 address_from_register interface change.
6015
71e50e83
YQ
60162014-04-17 Yao Qi <yao@codesourcery.com>
6017
6018 * gdbtypes.h: Update comments to link to types and macros'
6019 definitions.
6020
7a23c549
SC
60212014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6022
6023 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6024
22869d73
KS
60252014-04-16 Keith Seitz <keiths@redhat.com>
6026
6027 PR gdb/15827
6028 * dwarf2read.c (skip_one_die): Check that all relative-offset
6029 sibling DIEs fall within range of the current reader's buffer.
6030 (read_partial_die): Likewise.
6031
c4f87ca6
KS
60322014-04-16 Keith Seitz <keiths@redhat.com>
6033
6034 PR c++/16597
6035 * cp-namespace.c (lookup_symbol_file): If the type name of
6036 `this' is NULL, return immediately.
6037
b50c8614
KS
60382014-04-14 Keith Seitz <keiths@redhat.com>
6039
6040 PR c++/16253
6041 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6042 from symbol_matches_domain in symtab.c. All local callers
6043 of symbol_matches_domain updated.
6044 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6045 search STRUCT_DOMAIN.
6046 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6047 independently. standard_lookup will do that automatically.
6048 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6049 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6050 (cp_lookup_symbol_in_namespace): Likewise.
6051 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6052 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6053 may return a STRUCT_DOMAIN match.
6054 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6055 * cp-support.c: Include language.h.
6056 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6057 VAR_DOMAIN.
6058 * psymtab.c (match_partial_symbol): Compare the requested
6059 domain with the symbol's domain directly.
6060 (lookup_partial_symbol): Likewise.
6061 * symtab.c (lookup_symbol_in_language): Explain when/why
6062 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6063 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6064 appropriate languages.
6065 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6066 and moved to ada-lang.c
6067 (lookup_block_symbol): Explain that this function only returns
6068 symbol matching the requested DOMAIN.
6069 Compare the requested domain with the symbol's domain directly.
6070 (iterate_over_symbols): Compare the requested domain with the
6071 symbol's domain directly.
6072 * symtab.h (symbol_matches_domain): Remove.
6073
3d567982
TT
60742014-04-14 Tom Tromey <tromey@redhat.com>
6075
6076 PR c++/15246:
6077 * c-exp.y (type_aggregate_p): New function.
6078 (qualified_name, classify_inner_name): Use it.
6079 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6080 and TYPE_TARGET_TYPE of an enum type.
6081 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6082 an enum type.
6083 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6084 handle TYPE_DECLARED_CLASS.
6085 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6086 types.
6087 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6088 * valops.c (enum_constant_from_type): New function.
6089 (value_aggregate_elt): Use it.
6090 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6091 TYPE_CODE_ENUM.
6092
c848d642
TT
60932014-04-14 Tom Tromey <tromey@redhat.com>
6094
6095 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6096 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6097 const.
6098 * value.h (value_aggregate_elt): Update.
6099
0626fc76
TT
61002014-04-14 Tom Tromey <tromey@redhat.com>
6101
6102 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6103
5ecaaa66
SA
61042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6105
6106 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6107 (evaluate_subexp_standard): Pass noside argument.
6108 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6109 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6110 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6111 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6112 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6113
1612e0c0
SA
61142014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6115
6116 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6117 points to a constant blob.
6118
c451ebe5
SA
61192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6120
6121 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6122 property and store it as the high bound and flag the range accordingly.
6123 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6124 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6125 * gdbtypes.h (enum range_flags): New enum.
6126 (struct range_bounds): Add flags member.
6127
1d42e4c4
SA
61282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6129
6130 * c-typeprint.c (c_type_print_varspec_suffix): Added
6131 check for not yet resolved high bound. If unresolved, print
6132 "variable length" string to the console instead of random
6133 length.
6134
9f1f738a
SA
61352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6136
6137 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6138 value.
6139 (ada_template_to_fixed_record_type_1): Likewise.
6140 (ada_to_fixed_type_1): Likewise.
6141 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6142 (cp_print_value): Likewise.
6143 * d-valprint.c (dynamic_array_type): Likewise.
6144 * findvar.c (address_of_variable): Likewise.
6145 * jv-valprint.c (java_value_print): Likewise.
6146 * valops.c (value_ind): Likewise.
6147 * value.c (coerce_ref): Likewise.
6148
3c8452d4
SA
61492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6150
6151 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6152 value and retrieve the dynamic type size.
6153
4ad88275
SA
61542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6155
6156 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6157 passed to sizeof is dynamic evaluate the argument to compute the length.
6158
80180f79
SA
61592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6160 Joel Brobecker <brobecker@adacore.com>
6161
6162 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6163 (dwarf2_evaluate_property): New function.
6164 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6165 * dwarf2read.c (attr_to_dynamic_prop): New function.
6166 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6167 attribute.
6168 * gdbtypes.c: Include dwarf2loc.h.
6169 (is_dynamic_type): New function.
6170 (resolve_dynamic_type): New function.
6171 (resolve_dynamic_bounds): New function.
6172 (get_type_length): New function.
6173 (check_typedef): Use get_type_length to compute type length.
6174 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6175 (TYPE_LOW_BOUND_KIND): New macro.
6176 (is_dynamic_type): New function prototype.
6177 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6178 to resolve dynamic properties of the type. Update comment.
6179 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6180
a1556843
RH
61812014-04-14 Richard Henderson <rth@redhat.com>
6182
6183 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6184
0be03e84
DE
61852014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6186 Doug Evans <xdje42@gmail.com>
6187
6188 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6189 dereference TYPE_CODE_REF values.
6190
6b662e19
JB
61912014-04-11 Joel Brobecker <brobecker@adacore.com>
6192
6193 Revert the following changes due to regressions:
6194
6195 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6196 (dwarf2_evaluate_property): New function.
6197 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6198 * dwarf2read.c (attr_to_dynamic_prop): New function.
6199 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6200 attribute.
6201 * gdbtypes.c: Include dwarf2loc.h.
6202 (is_dynamic_type): New function.
6203 (resolve_dynamic_type): New function.
6204 (resolve_dynamic_bounds): New function.
6205 (get_type_length): New function.
6206 (check_typedef): Use get_type_length to compute type length.
6207 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6208 (TYPE_LOW_BOUND_KIND): New macro.
6209 (is_dynamic_type): New function prototype.
6210 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6211 to resolve dynamic properties of the type. Update comment.
6212 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6213
6214 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6215 passed to sizeof is dynamic evaluate the argument to compute the length.
6216
6217 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6218 value and retrieve the dynamic type size.
6219
6220 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6221 (ada_template_to_fixed_record_type_1): Likewise.
6222 (ada_to_fixed_type_1): Likewise.
6223 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6224 (cp_print_value): Likewise.
6225 * d-valprint.c (dynamic_array_type): Likewise.
6226 * eval.c (evaluate_subexp_with_coercion): Likewise.
6227 * findvar.c (address_of_variable): Likewise.
6228 * jv-valprint.c (java_value_print): Likewise.
6229 * valops.c (value_ind): Likewise.
6230 * value.c (coerce_ref): Likewise.
6231
6232 * c-typeprint.c (c_type_print_varspec_suffix): Added
6233 check for not yet resolved high bound. If unresolved, print
6234 "variable length" string to the console instead of random
6235 length.
6236
6237 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6238 property and store it as the high bound and flag the range accordingly.
6239 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6240 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6241 * gdbtypes.h (enum range_flags): New enum.
6242 (struct range_bounds): Add flags member.
6243
6244 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6245 points to a constant blob.
6246
6247 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6248 (evaluate_subexp_standard): Pass noside argument.
6249 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6250 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6251 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6252 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6253 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6254
245a5f0b
KS
62552014-04-11 Keith Seitz <keiths@redhat.com>
6256
6257 PR c++/16675
6258 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6259 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6260 reference types.
6261
3bce8237
SA
62622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6263
6264 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6265 (evaluate_subexp_standard): Pass noside argument.
6266 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6267 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6268 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6269 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6270 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6271
92b09522
SA
62722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6273
6274 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6275 points to a constant blob.
6276
e1969afb
SA
62772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6278
6279 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6280 property and store it as the high bound and flag the range accordingly.
6281 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6282 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6283 * gdbtypes.h (enum range_flags): New enum.
6284 (struct range_bounds): Add flags member.
6285
b86138fb
SA
62862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6287
6288 * c-typeprint.c (c_type_print_varspec_suffix): Added
6289 check for not yet resolved high bound. If unresolved, print
6290 "variable length" string to the console instead of random
6291 length.
6292
bcd629a4
SA
62932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6294
6295 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6296 (ada_template_to_fixed_record_type_1): Likewise.
6297 (ada_to_fixed_type_1): Likewise.
6298 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6299 (cp_print_value): Likewise.
6300 * d-valprint.c (dynamic_array_type): Likewise.
6301 * eval.c (evaluate_subexp_with_coercion): Likewise.
6302 * findvar.c (address_of_variable): Likewise.
6303 * jv-valprint.c (java_value_print): Likewise.
6304 * valops.c (value_ind): Likewise.
6305 * value.c (coerce_ref): Likewise.
6306
04b19544
SA
63072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6308
6309 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6310 value and retrieve the dynamic type size.
6311
26cb189f
SA
63122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6313
6314 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6315 passed to sizeof is dynamic evaluate the argument to compute the length.
6316
37c1ab67
SA
63172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6318
6319 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6320 (dwarf2_evaluate_property): New function.
6321 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6322 * dwarf2read.c (attr_to_dynamic_prop): New function.
6323 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6324 attribute.
6325 * gdbtypes.c: Include dwarf2loc.h.
6326 (is_dynamic_type): New function.
6327 (resolve_dynamic_type): New function.
6328 (resolve_dynamic_bounds): New function.
6329 (get_type_length): New function.
6330 (check_typedef): Use get_type_length to compute type length.
6331 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6332 (TYPE_LOW_BOUND_KIND): New macro.
6333 (is_dynamic_type): New function prototype.
6334 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6335 to resolve dynamic properties of the type. Update comment.
6336 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6337
729efb13
SA
63382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6339
6340 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6341 declaring high/low bounds and change uses accordingly. Call
6342 create_range_type instead of create_static_range_type.
6343 * gdbtypes.c (create_range_type): New function.
6344 (create_range_type): Convert bounds into struct bound_prop and pass
6345 them to create_range_type.
6346 * gdbtypes.h (struct bound_prop): New struct.
6347 (create_range_type): New function prototype.
6348 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6349 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6350 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6351 part of the bound.
6352 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6353
0c9c3474
SA
63542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6355
6356 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6357 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6358 * ada-lang.c: All uses of create_range_type updated.
6359 * coffread.c: All uses of create_range_type updated.
6360 * dwarf2read.c: All uses of create_range_type updated.
6361 * f-exp.y: All uses of create_range_type updated.
6362 * m2-valprint.c: All uses of create_range_type updated.
6363 * mdebugread.c: All uses of create_range_type updated.
6364 * stabsread.c: All uses of create_range_type updated.
6365 * valops.c: All uses of create_range_type updated.
6366 * valprint.c: All uses of create_range_type updated.
6367
9d497a19
PA
63682014-04-10 Pedro Alves <palves@redhat.com>
6369
6370 * breakpoint.c (single_step_breakpoints)
6371 (single_step_gdbarch): Move up in the file.
6372 (one_breakpoint_xfer_memory): New function, factored out from ...
6373 (breakpoint_xfer_memory): ... here. Also process single-step
6374 breakpoints.
6375
15a9128a
TG
63762014-04-09 Tristan Gingold <gingold@adacore.com>
6377
6378 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6379 comments.
6380 (darwin_decode_exception_message): Free port only after use.
6381
9c97a070
PL
63822014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6383
6384 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6385 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6386 when setting the size of call_length.
6387
7af389b8
SC
63882014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6389
6390 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6391 dereference TYPE_CODE_REF values.
6392
86ad98c3
JB
63932014-04-07 Joel Brobecker <brobecker@adacore.com>
6394
6395 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6396 end of warning message.
6397
b0aeadb3
DE
63982014-04-03 Doug Evans <dje@google.com>
6399
6400 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6401 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6402
5979d6b6
AM
64032014-04-02 Alan Modra <amodra@gmail.com>
6404
6405 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6406 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6407 (struct symbol_file_add_from_memory_args): Add size field.
6408 (find_vdso_size): New function.
6409 (add_vsyscall_page): Attempt to find vdso size.
6410
0d60c288
DE
64112014-04-01 Doug Evans <dje@google.com>
6412
6413 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6414
a41f2563
TG
64152014-04-01 Tristan Gingold <gingold@adacore.com>
6416
6417 * darwin-nat.c (darwin_encode_reply): Add prototype.
6418 (darwin_decode_exception_message): Reply to unknown inferiors.
6419 (darwin_decode_message): Handle message by id. Ignore message
6420 to unknown inferior.
6421 (darwin_wait): Discard unknown messages, add debug trace.
6422
11a865c8
DE
64232014-03-31 Doug Evans <dje@google.com>
6424
6425 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6426 comp_dir_string.
6427
770e7fc7
DE
64282014-03-31 Doug Evans <dje@google.com>
6429
6430 New option "set print symbol-loading".
6431 * NEWS: Mention it.
6432 * solib.c (solib_read_symbols): Only print symbol loading messages
6433 if requested.
6434 (solib_add): If symbol loading is in "brief" mode, notify user
6435 symbols are being loaded.
6436 (reload_shared_libraries_1): Ditto.
6437 * symfile.c (print_symbol_loading_off): New static global.
6438 (print_symbol_loading_brief): New static global.
6439 (print_symbol_loading_full): New static global.
6440 (print_symbol_loading_enums): New static global.
6441 (print_symbol_loading): New static global.
6442 (print_symbol_loading_p): New function.
6443 (symbol_file_add_with_addrs): Only print symbol loading messages
6444 if requested.
6445 (_initialize_symfile): Register "print symbol-loading" set/show
6446 command.
6447 * symfile.h (print_symbol_loading_p): Declare.
6448
c32c64b7
DE
64492014-03-30 Doug Evans <xdje42@gmail.com>
6450
6451 * infrun.c (set_last_target_status): New function.
6452 (handle_inferior_event): Call it.
6453
7c0bc051
DE
64542014-03-30 Doug Evans <xdje42@gmail.com>
6455
6456 * inferior.h (enum stop_kind): Improve comment.
6457
8776cfe9
JB
64582014-03-28 Joel Brobecker <brobecker@adacore.com>
6459
6460 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6461 a reference, strip the reference layer before calling
6462 the lang_ops value_has_mutated callback.
6463
410a0ff2
SDJ
64642014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6465
6466 Remove some globals from our parser.
6467 * language.c (unk_lang_parser): Add "struct parser_state"
6468 argument.
6469 * language.h (struct language_defn) <la_parser>: Likewise.
6470 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6471 (initialize_expout): Add "struct parser_state" argument.
6472 Rewrite function to use the parser state.
6473 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6474 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6475 write_exp_elt_longcst, write_exp_elt_dblcst,
6476 write_exp_elt_decfloatcst, write_exp_elt_type,
6477 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6478 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6479 write_dollar_variable): Likewise.
6480 (parse_exp_in_context_1): Use parser state.
6481 (insert_type_address_space): Add "struct parser_state" argument.
6482 Use parser state.
6483 (increase_expout_size): New function.
6484 * parser-defs.h: Forward declare "struct language_defn" and
6485 "struct parser_state".
6486 (expout, expout_size, expout_ptr): Remove extern declarations.
6487 (parse_gdbarch, parse_language): Rewrite macro declarations to
6488 accept the parser state.
6489 (struct parser_state): New struct.
6490 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6491 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6492 write_exp_elt_decfloatcst, write_exp_elt_type,
6493 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6494 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6495 write_exp_msymbol, write_dollar_variable,
6496 mark_struct_expression, insert_type_address_space): Add "struct
6497 parser_state" argument.
6498 (increase_expout_size): New function.
6499 * utils.c (do_clear_parser_state): New function.
6500 (make_cleanup_clear_parser_state): Likewise.
6501 * utils.h (make_cleanup_clear_parser_state): New function
6502 prototype.
6503 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6504 Update calls to write_exp* in order to pass the parser state.
6505 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6506 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6507 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6508 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6509 * stap-probe.c (stap_parse_register_operand): Likewise.
6510 (stap_parse_single_operand): Likewise.
6511 (stap_parse_argument_1): Likewise.
6512 (stap_parse_argument): Use parser state.
6513 * stap-probe.h: Include "parser-defs.h".
6514 (struct stap_parse_info) <pstate>: New field.
6515 * c-exp.y (parse_type): Rewrite to use parser state.
6516 (yyparse): Redefine to c_parse_internal.
6517 (pstate): New global variable.
6518 (parse_number): Add "struct parser_state" argument.
6519 (write_destructor_name): Likewise.
6520 (type_exp): Update calls to write_exp* and similars in order to
6521 use parser state.
6522 (exp1, exp, variable, qualified_name, space_identifier,
6523 typename, typebase): Likewise.
6524 (write_destructor_name, parse_number, lex_one_token,
6525 classify_name, classify_inner_name, c_parse): Add "struct
6526 parser_state" argument. Update function to use parser state.
6527 * c-lang.h: Forward declare "struct parser_state".
6528 (c_parse): Add "struct parser_state" argument.
6529 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6530 (yyparse): Redefine macro to ada_parse_internal.
6531 (pstate): New variable.
6532 (write_int, write_object_renaming, write_var_or_type,
6533 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6534 type_int, type_long, type_long_long, type_float, type_double,
6535 type_long_double, type_char, type_boolean, type_system_address):
6536 Add "struct parser_state" argument.
6537 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6538 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6539 var_or_type, aggregate, aggregate_component_list,
6540 positional_list, others, component_group,
6541 component_associations): Update calls to write_exp* and similar
6542 functions in order to use parser state.
6543 (ada_parse, write_var_from_sym, write_int,
6544 write_exp_op_with_string, write_object_renaming,
6545 find_primitive_type, write_selectors, write_ambiguous_var,
6546 write_var_or_type, write_name_assoc, type_int, type_long,
6547 type_long_long, type_float, type_double, type_long_double,
6548 type_char, type_boolean, type_system_address): Add "struct
6549 parser_state" argument. Adjust function to use parser state.
6550 * ada-lang.c (parse): Likewise.
6551 * ada-lang.h: Forward declare "struct parser_state".
6552 (ada_parse): Add "struct parser_state" argument.
6553 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6554 calls to both functions.
6555 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6556 parser state.
6557 (yyparse): Redefine macro to f_parse_internal.
6558 (pstate): New variable.
6559 (parse_number): Add "struct parser_state" argument.
6560 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6561 and similars in order to use parser state.
6562 (parse_number): Adjust code to use parser state.
6563 (yylex): Likewise.
6564 (f_parse): New function.
6565 * f-lang.h: Forward declare "struct parser_state".
6566 (f_parse): Add "struct parser_state" argument.
6567 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6568 parser state.
6569 (yyparse): Redefine macro for java_parse_internal.
6570 (pstate): New variable.
6571 (push_expression_name, push_expression_name, insert_exp): Add
6572 "struct parser_state" argument.
6573 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6574 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6575 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6576 PostIncrementExpression, PostDecrementExpression,
6577 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6578 UnaryExpressionNotPlusMinus, CastExpression,
6579 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6580 RelationalExpression, EqualityExpression, AndExpression,
6581 ExclusiveOrExpression, InclusiveOrExpression,
6582 ConditionalAndExpression, ConditionalOrExpression,
6583 ConditionalExpression, Assignment, LeftHandSide): Update
6584 calls to write_exp* and similars in order to use parser state.
6585 (parse_number): Ajust code to use parser state.
6586 (yylex): Likewise.
6587 (java_parse): New function.
6588 (push_variable): Add "struct parser_state" argument. Adjust
6589 code to user parser state.
6590 (push_fieldnames, push_qualified_expression_name,
6591 push_expression_name, insert_exp): Likewise.
6592 * jv-lang.h: Forward declare "struct parser_state".
6593 (java_parse): Add "struct parser_state" argument.
6594 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6595 parser state.
6596 (yyparse): Redefine macro to m2_parse_internal.
6597 (pstate): New variable.
6598 (type_exp, exp, fblock, variable, type): Update calls to
6599 write_exp* and similars to use parser state.
6600 (yylex): Likewise.
6601 (m2_parse): New function.
6602 * m2-lang.h: Forward declare "struct parser_state".
6603 (m2_parse): Add "struct parser_state" argument.
6604 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6605 * objc-lang.h: Forward declare "struct parser_state".
6606 (end_msglist): Add "struct parser_state" argument.
6607 * p-exp.y (parse_type): Rewrite macro to use parser state.
6608 (yyparse): Redefine macro to pascal_parse_internal.
6609 (pstate): New variable.
6610 (parse_number): Add "struct parser_state" argument.
6611 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6612 write_exp* and similars in order to use parser state.
6613 (parse_number, yylex): Adjust code to use parser state.
6614 (pascal_parse): New function.
6615 * p-lang.h: Forward declare "struct parser_state".
6616 (pascal_parse): Add "struct parser_state" argument.
6617 * go-exp.y (parse_type): Rewrite macro to use parser state.
6618 (yyparse): Redefine macro to go_parse_internal.
6619 (pstate): New variable.
6620 (parse_number): Add "struct parser_state" argument.
6621 (type_exp, exp1, exp, variable, type): Update calls to
6622 write_exp* and similars in order to use parser state.
6623 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6624 to use parser state.
6625 (go_parse): Likewise.
6626 * go-lang.h: Forward declare "struct parser_state".
6627 (go_parse): Add "struct parser_state" argument.
6628
342587c4
DE
66292014-03-27 Doug Evans <dje@google.com>
6630
6631 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6632
33e80786
DE
66332014-03-27 Doug Evans <dje@google.com>
6634
6635 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6636 Remove argument abbrev_section. All callers updated.
6637
1dbab08b
DE
66382014-03-27 Doug Evans <dje@google.com>
6639
6640 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6641 addr_base, ranges_base.
6642
318d3177
KS
66432014-03-26 Keith Seitz <keiths@redhat.com>
6644
6645 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6646 types, not VAR_DOMAIN.
6647
1e54db15
SL
66482014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6649
6650 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6651 "ra" registers.
6652 * features/nios2-linux.c: Regenerated.
6653 * features/nios2.c: Regenerated.
6654
d3839ede
PA
66552014-03-25 Pedro Alves <palves@redhat.com>
6656
6657 * cli/cli-script.c (script_from_file): Force the interpreter to
6658 sync mode.
6659
7588d2ec
PL
66602014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6661
6662 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6663 small stack allocation.
6664
a6290449
TG
66652014-03-24 Tristan Gingold <gingold@adacore.com>
6666
6667 * darwin-nat.c (exc_server): Remove unused prototype.
6668 (darwin_dump_message): Correctly display data on x86_64.
6669 (darwin_encode_reply): Fix style.
6670 Add comments and fix indentation.
6671
31ae9d24 66722014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6673
6674 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6675
6339bfc4
DE
66762014-03-22 Doug Evans <xdje42@gmail.com>
6677
6678 * infcmd.c: Whitespace fixes.
6679 (interrupt_command): Merge two function comments into one.
6680
0a07590b
DE
66812014-03-22 Doug Evans <xdje42@gmail.com>
6682
6683 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6684 All uses updated.
6685
b55fbac4
YQ
66862014-03-22 Yao Qi <yao@codesourcery.com>
6687
6688 * remote.c (target_read_live_memory): Remove.
6689 (memory_xfer_live_readonly_partial): Rename it to
6690 remote_xfer_live_readonly_partial. Remove argument 'object'.
6691 All callers updated. Call remote_read_bytes_1
6692 instead of target_read_live_memory.
6693 * tracepoint.c (set_traceframe_number): Remove.
6694 (make_cleanup_restore_traceframe_number): Likewise .
6695 * tracepoint.h (set_traceframe_number): Remove declaration.
6696 (make_cleanup_restore_traceframe_number): Likewise.
6697
9217e74e
YQ
66982014-03-22 Yao Qi <yao@codesourcery.com>
6699
6700 * remote.c (remote_read_bytes): Move code on reading from the
6701 remote stub to ...
6702 (remote_read_bytes_1): ... here. New function.
6703
8acf9577
YQ
67042014-03-22 Yao Qi <yao@codesourcery.com>
6705
6706 * ctf.c (ctf_xfer_partial): Check the return value of
6707 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6708 return TARGET_XFER_UNAVAILABLE.
6709 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6710 * target.c (target_read_live_memory): Move it to remote.c.
6711 (memory_xfer_live_readonly_partial): Likewise.
6712 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6713 * remote.c (target_read_live_memory): Moved from target.c.
6714 (memory_xfer_live_readonly_partial): Likewise.
6715 (remote_read_bytes): Factored out from
6716 memory_xfer_partial_1.
6717
feef67ab
DE
67182014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6719
6720 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6721 NULL pointer.
6722
b65dc60b
PA
67232014-03-21 Pedro Alves <palves@redhat.com>
6724
6725 * infrun.c (normal_stop): Extend comment.
6726
b4ab256d
HZ
67272014-03-21 Hui Zhu <hui@codesourcery.com>
6728 Pedro Alves <palves@redhat.com>
6729
6730 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6731 static buffer.
6732 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6733 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6734 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6735
deba7593
MR
67362014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6737
6738 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6739 `z' formatted output modifier.
6740
1bff71c3
SDJ
67412014-03-20 Tom Tromey <tromey@redhat.com>
6742 Sergio Durigan Junior <sergiodj@redhat.com>
6743
6744 * probe.c (parse_probes): Turn assert into an ordinary error.
6745 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6746 exceptions when parsing probes. Rearrange the code for clarity.
6747
90e28950
TT
67482014-03-20 Tom Tromey <tromey@redhat.com>
6749
6750 PR gdb/14135
6751 * top.c (execute_command): Only dispatch events if the command
6752 started the target.
6753
beb460e8
PA
67542014-03-20 Tom Tromey <tromey@redhat.com>
6755
6756 PR cli/15718
6757 * infcall.c: Include event-top.h.
6758 (run_inferior_call): Call async_disable_stdin if needed.
6759
99619bea
PA
67602014-03-20 Pedro Alves <palves@redhat.com>
6761
6762 * infrun.c (prepare_to_proceed): Delete.
6763 (thread_still_needs_step_over): New function.
6764 (find_thread_needs_step_over): New function.
6765 (proceed): If the current thread needs a step-over, set its
6766 steping_over_breakpoint flag. Adjust to use
6767 find_thread_needs_step_over instead of prepare_to_proceed.
6768 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6769 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6770 breakpoint.
6771 (switch_back_to_stepped_thread): Step over breakpoints of all
6772 threads not the stepping thread, before switching back to the
6773 stepping thread.
6774
2adfaa28
PA
67752014-03-20 Pedro Alves <palves@redhat.com>
6776
6777 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6778 extern.
6779 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6780 * infrun.c (saved_singlestep_ptid)
6781 (stepping_past_singlestep_breakpoint): Delete.
6782 (resume): Remove stepping_past_singlestep_breakpoint handling.
6783 (proceed): Store the prev_pc of the stepping thread too.
6784 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6785 singlestep_pc.
6786 (enum infwait_states): Delete infwait_thread_hop_state.
6787 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6788 field.
6789 (handle_inferior_event): Adjust.
6790 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6791 handling and the thread-hop code. Before removing single-step
6792 breakpoints, check whether the thread hit a single-step breakpoint
6793 of another thread. If it did, the trap is not a random signal.
6794 (switch_back_to_stepped_thread): If the event thread hit a
6795 single-step breakpoint, unblock it before switching to the
6796 stepping thread. Handle the case of the stepped thread having
6797 advanced already.
6798 (keep_going): Handle the case of the current thread moving past a
6799 single-step breakpoint.
6800
31e77af2
PA
68012014-03-20 Pedro Alves <palves@redhat.com>
6802
6803 PR breakpoints/7143
6804 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6805 are being stepped over.
6806 (breakpoint_address_match): Make extern.
6807 * breakpoint.h (breakpoint_address_match): New declaration.
6808 * inferior.h (stepping_past_instruction_at): New declaration.
6809 * infrun.c (struct step_over_info): New type.
6810 (step_over_info): New global.
6811 (set_step_over_info, clear_step_over_info)
6812 (stepping_past_instruction_at): New functions.
6813 (handle_inferior_event): Clear the step-over info when
6814 trap_expected is cleared.
6815 (resume): Remove now stale comment.
6816 (clear_proceed_status): Clear step-over info.
6817 (proceed): Adjust step-over handling to set or clear the step-over
6818 info instead of removing all breakpoints.
6819 (handle_signal_stop): When setting up a thread-hop, don't remove
6820 breakpoints here.
6821 (stop_stepping): Clear step-over info.
6822 (keep_going): Adjust step-over handling to set or clear step-over
6823 info and then always inserting breakpoints, instead of removing
6824 all breakpoints when stepping over one.
6825
b9f437de
PA
68262014-03-20 Pedro Alves <palves@redhat.com>
6827
6828 * infrun.c (previous_inferior_ptid): Adjust comment.
6829 (deferred_step_ptid): Delete.
6830 (infrun_thread_ptid_changed, prepare_to_proceed)
6831 (init_wait_for_inferior): Adjust.
6832 (handle_signal_stop): Delete deferred_step_ptid handling.
6833
06c868a8
JK
68342014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6835
6836 PR gdb/15358
6837 * defs.h (sync_quit_force_run): New declaration.
6838 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6839 * event-top.c (async_sigterm_handler): New declaration.
6840 (async_sigterm_token): New variable.
6841 (async_init_signals): Create also async_sigterm_token.
6842 (async_sigterm_handler): New function.
6843 (sync_quit_force_run): New variable.
6844 (handle_sigterm): Replace quit_force call by other calls.
6845 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6846
dea80df0
MR
68472014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6848
6849 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6850 offset into SPE pseudo registers.
6851
0c7e1a46
PA
68522014-03-18 Pedro Alves <palves@redhat.com>
6853
6854 PR gdb/13860
6855 * inferior.h (print_stop_event): Declare.
6856 * infrun.c (print_stop_event): New, factored out from ...
6857 (normal_stop): ... this.
6858 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6859 of bpstat_print/print_stack_frame.
6860
9c1fcd01
TT
68612014-03-17 Tom Tromey <tromey@redhat.com>
6862
6863 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6864
11aa919a
PMR
68652014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6866
6867 * ada-lang.c (decode_constrained_packed_array): Perform a
6868 minimal coercion for reference with coerce_ref instead of
6869 ada_coerce_ref.
6870
d4ccb5e0
TG
68712014-03-17 Tristan Gingold <gingold@adacore.com>
6872
6873 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6874 (darwin_solib_create_inferior_hook): Emit a warning if version
6875 is unhandled.
6876
49840f2a
UW
68772014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6878
6879 * python/py-value.c (get_field_flag): Cast flag_name argument to
6880 PyObject_GetAttrString to support Python 2.4.
6881
ed4123e5
JK
68822014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6885 (Global Maintainers): Remove Jan Kratochvil.
6886
d6b64346
PA
68872014-03-14 Pedro Alves <palves@redhat.com>
6888
6889 * inferior.h (terminal_ours_for_output): Rename to ...
6890 (child_terminal_ours_for_output): ... this.
6891 (terminal_save_ours): Rename to ...
6892 (child_terminal_save_ours): ... this.
6893 (terminal_ours): Rename to ...
6894 (child_terminal_ours): ... this.
6895 (terminal_inferior): Rename to ...
6896 (child_terminal_inferior): ... this.
6897 (terminal_init_inferior): Rename to ...
6898 (child_terminal_init_inferior): ... this.
6899 (terminal_init_inferior_with_pgrp): Rename to ...
6900 (child_terminal_init_inferior_with_pgrp): ... this.
6901 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6902 (child_terminal_init_with_pgrp): ... this.
6903 (terminal_save_ours): Rename to ...
6904 (child_terminal_save_ours): ... this.
6905 (terminal_init_inferior): Rename to ...
6906 (child_terminal_init): ... this. Adjust.
6907 (terminal_inferior): Rename to ...
6908 (child_terminal_inferior): ... this.
6909 (terminal_ours_for_output): Rename to ...
6910 (child_terminal_ours_for_output): ... this. Adjust.
6911 (terminal_ours): Rename to ...
6912 (child_terminal_ours): ... this.
6913 (terminal_ours_1): Rename to ...
6914 (child_terminal_ours_1): ... this. Adjust.
6915 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6916 * windows-nat.c (do_initial_windows_stuff): Adjust.
6917 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6918 (gnu_terminal_init): ... this. Adjust.
6919 (gnu_target): Adjust.
6920 * inf-child.c (inf_child_target): Adjust.
6921
5a1e8c7a
DE
69222014-03-13 Doug Evans <xdje42@gmail.com>
6923
6924 PR guile/16612
6925 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6926 new eq?-hashtab.
6927
350e1a76
DE
69282014-03-13 Doug Evans <xdje42@gmail.com>
6929
6930 * value.c (record_latest_value): Call release_value_or_incref
6931 instead of release_value.
6932
a69900ae
PA
69332014-03-13 Pedro Alves <palves@redhat.com>
6934
6935 * procfs.c (procfs_target): Don't override to_shortname,
6936 to_longname or to_doc.
6937
5db9f0bd
PA
69382014-03-13 Pedro Alves <palves@redhat.com>
6939
6940 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6941 Unix in user visible strings.
6942
5e3a2c38
SS
69432014-03-12 Stan Shebs <stan@codesourcery.com>
6944
6945 * gdbtypes.h: Annotate comments for Doxygen, add a page
6946 block comment with some general info.
6947
8bc2fe48
PA
69482014-03-12 Pedro Alves <palves@redhat.com>
6949
6950 * infcmd.c (prepare_execution_command): New function, factored out
6951 from several execution commands.
6952 (run_command_1, continue_command, step_1, jump_command)
6953 (signal_command, until_command, advance_command, finish_command)
6954 (attach_command): Use prepare_execution_command.
6955
638c5f49
OJ
69562014-03-12 Omair Javaid <omair.javaid@linaro.org>
6957
6958 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6959 (MAX_BPTS): Define.
6960 (MAX_WPTS): Define.
6961 (struct arm_linux_thread_points): Removed.
6962 (struct arm_linux_process_info): New.
6963 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6964 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6965 (arm_linux_find_breakpoints_by_tid): Removed.
6966 (struct arch_lwp_info): New.
6967 (arm_linux_find_process_pid): New functions.
6968 (arm_linux_add_process): New functions.
6969 (arm_linux_process_info_get): New functions.
6970 (arm_linux_forget_process): New function.
6971 (arm_linux_get_debug_reg_state): New function.
6972 (struct update_registers_data): New.
6973 (update_registers_callback): New function.
6974 (arm_linux_insert_hw_breakpoint1): Updated.
6975 (arm_linux_remove_hw_breakpoint1): Updated.
6976 (arm_linux_insert_hw_breakpoint): Updated.
6977 (arm_linux_remove_hw_breakpoint): Updated.
6978 (arm_linux_insert_watchpoint): Updated.
6979 (arm_linux_remove_watchpoint): Updated.
6980 (arm_linux_new_thread): Updated.
6981 (arm_linux_prepare_to_resume): New function.
6982 (arm_linux_new_fork): New function.
6983 (_initialize_arm_linux_nat): Updated.
6984
6d03af93
PA
69852014-03-12 Pedro Alves <palves@redhat.com>
6986
6987 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6988
b3ccfe11
TT
69892014-03-12 Tom Tromey <tromey@redhat.com>
6990
6991 * inf-child.c (return_zero): New function.
6992 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6993 * aix-thread.c (aix_thread_inferior_created): New function.
6994 (aix_thread_attach): Remove.
6995 (init_aix_thread_ops): Don't set to_attach.
6996 (_initialize_aix_thread): Register inferior_created observer.
6997 * corelow.c (init_core_ops): Don't set to_attach or
6998 to_create_inferior.
6999 * exec.c (init_exec_ops): Don't set to_attach or
7000 to_create_inferior.
7001 * infcmd.c (run_command_1): Use find_run_target. Make direct
7002 target calls.
7003 (attach_command): Use find_attach_target. Make direct target
7004 calls.
7005 * record-btrace.c (init_record_btrace_ops): Don't set
7006 to_create_inferior.
7007 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7008 Remove.
7009 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7010 set to_create_inferior.
7011 * target.c (complete_target_initialization): Add assertion.
7012 (target_create_inferior): Remove.
7013 (find_default_attach, find_default_create_inferior): Remove.
7014 (find_attach_target, find_run_target): New functions.
7015 (find_default_is_async_p, find_default_can_async_p)
7016 (target_supports_non_stop, target_attach): Remove.
7017 (init_dummy_target): Don't set to_create_inferior or
7018 to_supports_non_stop.
7019 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7020 TARGET_DEFAULT_FUNC.
7021 <to_create_inferior>: Add comment.
7022 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7023 TARGET_DEFAULT_RETURN.
7024 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7025 (find_attach_target, find_run_target): Declare.
7026 (target_create_inferior): Remove.
7027 (target_has_execution_1): Update comment.
7028 (target_supports_non_stop): Remove.
7029 * target-delegates.c: Rebuild.
7030
91f83b02
PA
70312014-03-12 Pedro Alves <palves@redhat.com>
7032
7033 * inf-child.h: Update comment to not mention Unix.
7034
f1aea813
PA
70352014-03-12 Pedro Alves <palves@redhat.com>
7036
7037 * inf-child.c: Update top comment to not mention Unix. Add
7038 generic comment describing how this target is meant to be used.
7039 (inf_child_post_attach, inf_child_post_startup_inferior)
7040 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7041 Unix in comment.
7042
ee8e9165
PA
70432014-03-12 Pedro Alves <palves@redhat.com>
7044
7045 * nto-procfs.c: Include inf-child.h.
7046 (procfs_ops): Delete global.
7047 (procfs_can_run): Delete method.
7048 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7049 target pointer instead of referencing procfs_ops.
7050 (procfs_prepare_to_store): Delete.
7051 (init_procfs_ops): Delete function.
7052 (procfs_target): New function, based on init_procfs_ops, but
7053 inherit inf_child_target.
7054 (_initialize_procfs): Use procfs_target.
7055
51a9c8c5
PA
70562014-03-12 Pedro Alves <palves@redhat.com>
7057
7058 * windows-nat.c: Include inf-child.h.
7059 (windows_ops): Delete global.
7060 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7061 methods.
7062 (init_windows_ops): Delete function.
7063 (windows_target): New function, based on init_windows_ops, but
7064 inherit inf_child_target.
7065 (_initialize_windows_nat): Use windows_target. Install x86
7066 specific target methods here.
7067
c1966e26
DE
70682014-03-10 Doug Evans <xdje42@gmail.com>
7069
7070 * guile/guile.c (call_initialize_gdb_module): New function.
7071 (initialize_guile): Replace call to scm_init_guile with call to
7072 scm_with_guile.
7073
023db19c
JB
70742014-03-10 Joel Brobecker <brobecker@adacore.com>
7075
7076 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7077 in call to TYPE_CODE macro.
7078
5ec18f2b
JG
70792014-03-10 Jerome Guitton <guitton@adacore.com>
7080
8668be63
JB
7081 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7082 Resolve tagged types to full view.
5ec18f2b 7083
7d03f2eb
HZ
70842014-03-10 Hui Zhu <hui@codesourcery.com>
7085
7086 * target.h (target_insert_breakpoint): Remove "hardware" from its
7087 comments.
7088
c5164cbc
DE
70892014-03-07 Doug Evans <dje@google.com>
7090
7091 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7092
c4a3fee2
DE
70932014-03-07 Doug Evans <dje@google.com>
7094
7095 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7096 Remove unused local comp_dir_attr. Assert exactly one of
7097 stub_comp_unit_die, stub_comp_dir is non-NULL.
7098
3156469c
JB
70992014-03-07 Joel Brobecker <brobecker@adacore.com>
7100
7101 * target.h (complete_target_initialization, add_target):
7102 Add comment.
7103
c1a7b7c6
PA
71042014-03-07 Pedro Alves <palves@redhat.com>
7105
7106 * go32-nat.c: Include inf-child.h.
7107 (go32_ops): Delete global.
7108 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7109 Delete methods.
7110 (go32_create_inferior): Push the passed in target pointer instead
7111 of referencing go32_ops.
7112 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7113 (go32_target): New function, based on init_go32_ops, but inherit
7114 inf_child_target.
7115 (_initialize_go32_nat): Use go32_target. Move parts of
7116 init_go32_ops here.
7117
d3c1a85f
JB
71182014-03-06 Joel Brobecker <brobecker@adacore.com>
7119
7120 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7121 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7122 SYMBOL_VALUE_ADDRESS.
7123 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7124
5fa1d40e
YQ
71252014-03-06 Yao Qi <yao@codesourcery.com>
7126
7127 * breakpoint.c (get_tracepoint_by_number): Remove argument
7128 optional_p. All callers updated. Adjust comments. Update
7129 output message.
7130 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7131
0c13193f
YQ
71322014-03-06 Yao Qi <yao@codesourcery.com>
7133
7134 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7135 early if get_number returns zero. Use 'p' instead of 'args'.
7136
2217da06
YQ
71372014-03-06 Yao Qi <yao@codesourcery.com>
7138
7139 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7140 message.
7141
cc3da688
YQ
71422014-03-06 Yao Qi <yao@codesourcery.com>
7143
7144 PR breakpoints/16508
7145 * tracepoint.c (check_trace_running): New function.
7146 (trace_find_command): Move code to check_trace_running and
7147 call check_trace_running.
7148 (trace_find_pc_command): Likewise.
7149 (trace_find_tracepoint_command): Likewise.
7150 (trace_find_line_command): Likewise.
7151 (trace_find_range_command): Likewise.
7152 * tracepoint.h (check_trace_running): Likewise.
7153 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7154
6a5f844b
YQ
71552014-03-06 Yao Qi <yao@codesourcery.com>
7156
7157 * target.h (struct target_ops) <to_traceframe_info>: Use
7158 TARGET_DEFAULT_NORETURN (tcomplain ()).
7159 * target-delegates.c: Regenerated.
7160
0f26cec1
PA
71612014-03-05 Pedro Alves <palves@redhat.com>
7162
7163 PR gdb/16575
7164 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7165 void. Update comment.
7166 (dcache_xfer_memory): Delete.
7167 (dcache_read_memory_partial): New, based on the read bits of
7168 dcache_xfer_memory.
7169 (dcache_update): Add status parameter. Use ULONGEST for len, and
7170 adjust. Discard cache lines if the reason for the update was
7171 error.
7172 * dcache.h (dcache_xfer_memory): Delete declaration.
7173 (dcache_read_memory_partial): New declaration.
7174 (dcache_update): Update prototype.
7175 * target.c (raw_memory_xfer_partial): Update the dcache here.
7176 (memory_xfer_partial_1): Don't handle dcache writes here.
7177
b2b255bd
MF
71782014-03-05 Mike Frysinger <vapier@gentoo.org>
7179
7180 * remote-sim.c (gdbsim_load): Add const to prog.
7181
5d9cf8a4
TT
71822014-03-03 Tom Tromey <tromey@redhat.com>
7183
7184 * elfread.c (probe_key): Change to bfd_data.
7185 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7186 now per-BFD, not per-objfile.
7187 * stap-probe.c (stap_probe_destroy): Update comment.
7188 (handle_stap_probe): Allocate on the per-BFD obstack.
7189
729662a5
TT
71902014-03-03 Tom Tromey <tromey@redhat.com>
7191
7192 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7193 * breakpoint.c (create_longjmp_master_breakpoint): Use
7194 get_probe_address.
7195 (add_location_to_breakpoint, bkpt_probe_insert_location)
7196 (bkpt_probe_remove_location): Update.
7197 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7198 * elfread.c (elf_symfile_relocate_probe): Remove.
7199 (elf_probe_fns): Update.
7200 (insert_exception_resume_breakpoint): Change type of "probe"
7201 parameter to bound_probe.
7202 (check_exception_resume): Update.
7203 * objfiles.c (objfile_relocate1): Don't relocate probes.
7204 * probe.c (bound_probe_s): New typedef.
7205 (parse_probes): Use get_probe_address. Set sal's objfile.
7206 (find_probe_by_pc): Return a bound_probe.
7207 (collect_probes): Return a VEC(bound_probe_s).
7208 (compare_probes): Update.
7209 (gen_ui_out_table_header_info): Change type of "probes"
7210 parameter. Update.
7211 (info_probes_for_ops): Update.
7212 (get_probe_address): New function.
7213 (probe_safe_evaluate_at_pc): Update.
7214 * probe.h (struct probe_ops) <get_probe_address>: New field.
7215 <set_semaphore, clear_semaphore>: Add objfile parameter.
7216 (struct probe) <objfile>: Remove field.
7217 <arch>: New field.
7218 <address>: Update comment.
7219 (struct bound_probe): New.
7220 (find_probe_by_pc): Return a bound_probe.
7221 (get_probe_address): Declare.
7222 * solib-svr4.c (struct probe_and_action) <address>: New field.
7223 (hash_probe_and_action, equal_probe_and_action): Update.
7224 (register_solib_event_probe): Add address parameter.
7225 (solib_event_probe_at): Update.
7226 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7227 get_probe_address.
7228 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7229 (stap_get_probe_address): New function.
7230 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7231 (compile_probe_arg): Update.
7232 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7233 address.
7234 (handle_stap_probe): Don't relocate the probe.
7235 (stap_relocate): Remove.
7236 (stap_gen_info_probes_table_values): Update.
7237 (stap_probe_ops): Remove stap_relocate.
7238 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7239 (debug_sym_probe_fns): Update.
7240 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7241 * symtab.c (init_sal): Use memset.
7242 * symtab.h (struct symtab_and_line) <objfile>: New field.
7243 * tracepoint.c (start_tracing, stop_tracing): Update.
7244
ff887920
TT
72452014-03-03 Tom Tromey <tromey@redhat.com>
7246
7247 * probe.h (parse_probes, find_probe_by_pc)
7248 (find_probes_in_objfile): Fix comments.
7249
f0407826
DE
72502014-03-02 Doug Evans <xdje42@gmail.com>
7251
7252 * infrun.c (handle_signal_stop): Replace test for
7253 TARGET_WAITKIND_STOPPED with an assert.
7254
35e6a711
DE
72552014-03-02 Doug Evans <xdje42@gmail.com>
7256
7257 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7258
667f9d0b
DE
72592014-03-02 Doug Evans <xdje42@gmail.com>
7260
7261 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7262
dc92ace0
MK
72632014-03-01 Mark Kettenis <kettenis@gnu.org>
7264
7265 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7266
a900370f
MK
72672014-03-01 Mark Kettenis <kettenis@gnu.org>
7268
7269 * i386obsd-nat.c: Include "obsd-nat.h".
7270 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7271 add_target.
7272 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7273
b72a7981
MK
72742014-03-01 Mark Kettenis <kettenis@gnu.org>
7275
7276 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7277
96c70aba
MK
72782014-03-01 Mark Kettenis <kettenis@gnu.org>
7279
7280 * mips64obsd-nat.c: Include "obsd-nath".
7281 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7282 add_target
7283 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7284
874a80af
MK
72852014-03-01 Mark Kettenis <kettenis@gnu.org>
7286
8fd408f1
MK
7287 * amd64obsd-nat.c: Include "obsd-nat,h.
7288 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7289 add_target.
874a80af
MK
7290 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7291
9cf95373
SC
72922014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7293
7294 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7295 (find_overload_match): Update call to find_oload_champ.
7296 (find_oload_champ_namespace_loop): Likewise
7297
863e4da4
MK
72982014-02-28 Mark Kettenis <kettenis@gnu.org>
7299
025cac40
MK
7300 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7301
1ed586ce
MK
7302 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7303 * config/sparc/obsd64.mh: New file.
7304 * sparc64obsd-nat.c: New file.
7305
863e4da4
MK
7306 * obsd-nat.h: New file.
7307 * obsd-nat.c: New file.
7308 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7309 (ALLDEPFILES): Add obsd-nat.c.
7310
89de4da4
TT
73112014-02-28 Tom Tromey <tromey@redhat.com>
7312
7313 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7314 * cli-out.h (cli_ui_out_impl): Now const.
7315 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7316 * ui-out.c (struct ui_out) <impl>: Now const.
7317 (default_ui_out_impl): Now const.
7318 (ui_out_new): Make 'impl' parameter const.
7319 * ui-out.h (ui_out_new): Update.
7320
c725e7b6
MK
73212014-02-27 Mark Kettenis <kettenis@gnu.org>
7322
7323 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7324
670b46b3
MK
73252014-02-27 Mark Kettenis <kettenis@gnu.org>
7326
7327 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7328
c91550fc
JK
73292014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7330
7331 Additional PR 8882 fix.
7332 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7333
2fa0369e
PA
73342014-02-27 Pedro Alves <palves@redhat.com>
7335
7336 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7337 isn't set.
7338
d632a097
PA
73392014-02-27 Pedro Alves <palves@redhat.com>
7340
7341 PR 12702
7342 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7343 * nat/linux-waitpid.c: Include string.h.
7344 (status_to_str): Moved here and made extern.
7345 * nat/linux-waitpid.h (status_to_str): New declaration.
7346
2ebd5a35
HZ
73472014-02-27 Hui Zhu <hui@codesourcery.com>
7348
7349 PR 12702
7350 * infrun.c (ptid_match): Move ...
7351 * common/ptid.c (ptid_match): ... here.
7352 * inferior.h (ptid_match): Move ...
7353 * common/ptid.h (ptid_match): ... here.
7354
3cdd631f
MK
73552014-02-27 Mark Kettenis <kettenis@gnu.org>
7356
7357 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7358 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7359 gdb_target_obs.
7360
bee30a64
MK
73612014-02-27 Mark Kettenis <kettenis@gnu.org>
7362
7363 * obsd-tdep.c (obsd_auxv_parse): New function.
7364 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7365
7366 * gdbarch.sh (auxv_parse): New.
7367 * gdbarch.h: Regenerated.
7368 * gdbarch.c: Regenerated.
7369 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7370
7a5a839f
LC
73712014-02-26 Ludovic Courtès <ludo@gnu.org>
7372
7373 * guile/scm-value.c (gdbscm_history_append_x): New function.
7374 (value_functions): Add it.
7375
31aa7e4e
JB
73762014-02-27 Joel Brobecker <brobecker@adacore.com>
7377
7378 * dwarf2read.c (attr_value_as_address): New function.
7379 (dwarf2_find_base_address, read_call_site_scope): Use
7380 attr_value_as_address in place of DW_ADDR.
7381 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7382 the low and high addresses. Slight rework of the handling
7383 of the high pc being a constant form, and limit it to
7384 DWARF verson 4 or higher.
7385 (dwarf2_record_block_ranges): Likewise.
7386 (read_partial_die): Likewise.
7387 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7388
9b333ba3
TT
73892014-02-26 Tom Tromey <tromey@redhat.com>
7390
7391 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7392
5f6cac40
TT
73932014-02-26 Tom Tromey <tromey@redhat.com>
7394
7395 * elfread.c (elf_read_minimal_symbols): Return early if
7396 minimal symbols have already been read. Add "ei" parameter.
7397 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7398 * minsyms.c (prim_record_minimal_symbol_full): Update.
7399 * objfiles.h (struct objstats) <n_minsyms>: Move...
7400 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7401 * symmisc.c (print_objfile_statistics): Update.
7402
2750ef27
TT
74032014-02-26 Tom Tromey <tromey@redhat.com>
7404
7405 * elfread.c (elf_read_minimal_symbols): New function, from
7406 elf_symfile_read.
7407 (elf_symfile_read): Call it.
7408
34643a32
TT
74092014-02-26 Tom Tromey <tromey@redhat.com>
7410
7411 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7412 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7413 (lookup_minimal_symbol_solib_trampoline)
7414 (lookup_minimal_symbol_by_pc_section_1)
7415 (lookup_minimal_symbol_and_objfile): Update.
7416 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7417 Don't allocate a minimal symbol if minsyms have already been read.
7418 (build_minimal_symbol_hash_tables): Update.
7419 (install_minimal_symbols): Do nothing if minsyms already read.
7420 Use the per-BFD obstack.
7421 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7422 * objfiles.c (allocate_objfile): Call
7423 terminate_minimal_symbol_table later.
7424 (have_minimal_symbols): Update.
7425 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7426 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7427 Move from struct objfile.
7428 <minsyms_read>: New field.
7429 (struct objfile) <msymbols, minimal_symbol_count,
7430 msymbol_hash, msymbol_demangled_hash>: Move.
7431 (ALL_OBJFILE_MSYMBOLS): Update.
7432 * symfile.c (read_symbols): Set minsyms_read.
7433 (reread_symbols): Update.
7434 * symmisc.c (dump_objfile, dump_msymbols): Update.
7435
2273f0ac
TT
74362014-02-26 Tom Tromey <tromey@redhat.com>
7437
7438 * minsyms.c (msymbols_sort): Remove.
7439 * minsyms.h (msymbols_sort): Remove.
7440 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7441 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7442 * elfread.c (elf_symtab_read): Don't add section offsets.
7443 * xcoffread.c (record_minimal_symbol): Don't add section offset
7444 to minimal symbol address.
7445 * somread.c (text_offset, data_offset): Remove.
7446 (som_symtab_read): Don't add section offsets to minimal symbol
7447 addresses.
7448 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7449 Don't add section offsets to minimal symbols.
7450 * coffread.c (coff_symtab_read): Don't add section offsets
7451 to minimal symbol addresses.
7452 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7453 to minimal symbol addresses.
7454 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7455 section offset to minimal symbol addresses.
7456 * mdebugread.c (parse_partial_symbols): Don't add section
7457 offset to minimal symbol addresses.
7458 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7459 offset to minimal symbol addresses.
7460
77e371c0
TT
74612014-02-26 Tom Tromey <tromey@redhat.com>
7462
7463 * ada-lang.c (ada_main_name): Update.
7464 (ada_add_standard_exceptions): Update.
7465 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7466 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7467 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7468 * auxv.c (ld_so_xfer_auxv): Update.
7469 * avr-tdep.c (avr_scan_prologue): Update.
7470 * ax-gdb.c (gen_var_ref): Update.
7471 * blockframe.c (get_pc_function_start)
7472 (find_pc_partial_function_gnu_ifunc): Update.
7473 * breakpoint.c (create_overlay_event_breakpoint)
7474 (create_longjmp_master_breakpoint)
7475 (create_std_terminate_master_breakpoint)
7476 (create_exception_master_breakpoint): Update.
7477 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7478 * c-valprint.c (c_val_print): Update.
7479 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7480 * common/agent.c (agent_look_up_symbols): Update.
7481 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7482 * dwarf2loc.c (call_site_to_target_addr): Update.
7483 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7484 * elfread.c (elf_gnu_ifunc_record_cache)
7485 (elf_gnu_ifunc_resolve_by_got): Update.
7486 * findvar.c (default_read_var_value): Update.
7487 * frame.c (inside_main_func): Update.
7488 * frv-tdep.c (frv_frame_this_id): Update.
7489 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7490 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7491 Update.
7492 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7493 (hppa_hpux_find_dummy_bpaddr): Update.
7494 * hppa-tdep.c (hppa_symbol_address): Update.
7495 * infcmd.c (until_next_command): Update.
7496 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7497 Update.
7498 * linespec.c (minsym_found, add_minsym): Update.
7499 * linux-nat.c (get_signo): Update.
7500 * linux-thread-db.c (inferior_has_bug): Update.
7501 * m32c-tdep.c (m32c_return_value)
7502 (m32c_m16c_address_to_pointer): Update.
7503 * m32r-tdep.c (m32r_frame_this_id): Update.
7504 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7505 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7506 * maint.c (maintenance_translate_address): Update.
7507 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7508 (frob_address): New function.
7509 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7510 frob_address. Rename parameter to "pc_in".
7511 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7512 addresses.
7513 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7514 Update.
7515 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7516 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7517 * objc-lang.c (find_objc_msgsend): Update.
7518 * objfiles.c (objfile_relocate1): Update.
7519 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7520 * p-valprint.c (pascal_val_print): Update.
7521 * parse.c (write_exp_msymbol): Update.
7522 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7523 (ppc_elfv2_skip_entrypoint): Update.
7524 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7525 * printcmd.c (build_address_symbolic, msym_info)
7526 (address_info): Update.
7527 * proc-service.c (ps_pglobal_lookup): Update.
7528 * psymtab.c (find_pc_sect_psymtab_closer)
7529 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7530 Change msymbol parameter to bound_minimal_symbol.
7531 * ravenscar-thread.c (get_running_thread_id): Update.
7532 * remote.c (remote_check_symbols): Update.
7533 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7534 address.
7535 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7536 * solib-dsbt.c (lm_base): Update.
7537 * solib-frv.c (lm_base, main_got): Update.
7538 * solib-irix.c (locate_base): Update.
7539 * solib-som.c (som_solib_create_inferior_hook)
7540 (link_map_start): Update.
7541 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7542 * solib-svr4.c (elf_locate_base, enable_break): Update.
7543 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7544 (flush_ea_cache): Update.
7545 * stabsread.c (define_symbol, scan_file_globals): Update.
7546 * stack.c (find_frame_funname): Update.
7547 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7548 (debug_qf_find_pc_sect_symtab): Update.
7549 * symfile.c (simple_read_overlay_table)
7550 (simple_overlay_update): Update.
7551 * symfile.h (struct quick_symbol_functions)
7552 <find_pc_sect_symtab>: Change type of msymbol to
7553 bound_minimal_symbol.
7554 * symmisc.c (dump_msymbols): Update.
7555 * symtab.c (find_pc_sect_symtab_via_partial)
7556 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7557 (search_symbols, print_msymbol_info): Update.
7558 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7559 (MSYMBOL_VALUE_ADDRESS): Redefine.
7560 (BMSYMBOL_VALUE_ADDRESS): New macro.
7561 * tracepoint.c (scope_info): Update.
7562 * tui/tui-disasm.c (tui_find_disassembly_address)
7563 (tui_get_begin_asm_address): Update.
7564 * valops.c (find_function_in_inferior): Update.
7565 * value.c (value_static_field, value_fn_field): Update.
7566
3b7344d5
TT
75672014-02-26 Tom Tromey <tromey@redhat.com>
7568
7569 * ada-lang.c (ada_update_initial_language): Update.
7570 (ada_main_name, ada_has_this_exception_support): Update.
7571 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7572 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7573 * arm-tdep.c (arm_skip_stub): Update.
7574 * auxv.c (ld_so_xfer_auxv): Update.
7575 * avr-tdep.c (avr_scan_prologue): Update.
7576 * ax-gdb.c (gen_var_ref): Update.
7577 * breakpoint.c (struct breakpoint_objfile_data)
7578 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7579 type to bound_minimal_symbol.
7580 (create_overlay_event_breakpoint)
7581 (create_longjmp_master_breakpoint)
7582 (create_std_terminate_master_breakpoint)
7583 (create_exception_master_breakpoint): Update.
7584 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7585 * c-exp.y (classify_name): Update.
7586 * coffread.c (coff_symfile_read): Update.
7587 * common/agent.c (agent_look_up_symbols): Update.
7588 * d-lang.c (d_main_name): Update.
7589 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7590 * dec-thread.c (enable_dec_thread): Update.
7591 * dwarf2loc.c (call_site_to_target_addr): Update.
7592 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7593 * eval.c (evaluate_subexp_standard): Update.
7594 * findvar.c (struct minsym_lookup_data) <result>: Change type
7595 to bound_minimal_symbol.
7596 <objfile>: Remove.
7597 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7598 * frame.c (inside_main_func): Update.
7599 * frv-tdep.c (frv_frame_this_id): Update.
7600 * gcore.c (call_target_sbrk): Update.
7601 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7602 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7603 Update.
7604 * go-lang.c (go_main_name): Update.
7605 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7606 (hppa_hpux_find_import_stub_for_addr): Update.
7607 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7608 Update. Change return type.
7609 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7610 type.
7611 * jit.c (jit_breakpoint_re_set_internal): Update.
7612 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7613 Update.
7614 * linux-nat.c (get_signo): Update.
7615 * linux-thread-db.c (inferior_has_bug): Update
7616 * m32c-tdep.c (m32c_return_value)
7617 (m32c_m16c_address_to_pointer): Update.
7618 * m32r-tdep.c (m32r_frame_this_id): Update.
7619 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7620 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7621 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7622 lookup_minimal_symbol. Change return type.
7623 (lookup_minimal_symbol): Remove.
7624 (lookup_bound_minimal_symbol): Update.
7625 (lookup_minimal_symbol_text): Change return type.
7626 (lookup_minimal_symbol_solib_trampoline): Change return type.
7627 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7628 (lookup_minimal_symbol_solib_trampoline): Change return type.
7629 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7630 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7631 (value_nsstring, find_imps): Update.
7632 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7633 * p-lang.c (pascal_main_name): Update.
7634 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7635 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7636 * proc-service.c (ps_pglobal_lookup): Update.
7637 * ravenscar-thread.c (get_running_thread_msymbol): Change
7638 return type.
7639 (has_ravenscar_runtime, get_running_thread_id): Update.
7640 * remote.c (remote_check_symbols): Update.
7641 * sol-thread.c (ps_pglobal_lookup): Update.
7642 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7643 * solib-dsbt.c (lm_base): Update.
7644 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7645 Update.
7646 * solib-irix.c (locate_base): Update.
7647 * solib-som.c (som_solib_create_inferior_hook)
7648 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7649 Update.
7650 * solib-spu.c (spu_enable_break): Update.
7651 * solib-svr4.c (elf_locate_base, enable_break): Update.
7652 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7653 (flush_ea_cache): Update.
7654 * stabsread.c (define_symbol): Update.
7655 * symfile.c (simple_read_overlay_table): Update.
7656 * symtab.c (find_pc_sect_line): Update.
7657 * tracepoint.c (scope_info): Update.
7658 * tui-disasm.c (tui_get_begin_asm_address): Update.
7659 * value.c (value_static_field): Update.
7660
40c1a007
TT
76612014-02-26 Tom Tromey <tromey@redhat.com>
7662
7663 * minsyms.c (prim_record_minimal_symbol_full): Use
7664 SET_MSYMBOL_VALUE_ADDRESS.
7665 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7666 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7667 SET_MSYMBOL_VALUE_ADDRESS.
7668 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7669 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7670
efd66ac6
TT
76712014-02-26 Tom Tromey <tromey@redhat.com>
7672
7673 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7674 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7675 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7676 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7677 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7678 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7679 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7680 * ada-lang.c (ada_main_name): Update.
7681 (ada_lookup_simple_minsym): Update.
7682 (ada_make_symbol_completion_list): Update.
7683 (ada_add_standard_exceptions): Update.
7684 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7685 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7686 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7687 * arm-tdep.c (skip_prologue_function): Update.
7688 (arm_skip_stack_protector, arm_skip_stub): Update.
7689 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7690 (arm_wince_skip_main_prologue): Update.
7691 * auxv.c (ld_so_xfer_auxv): Update.
7692 * avr-tdep.c (avr_scan_prologue): Update.
7693 * ax-gdb.c (gen_var_ref): Update.
7694 * block.c (call_site_for_pc): Update.
7695 * blockframe.c (get_pc_function_start): Update.
7696 (find_pc_partial_function_gnu_ifunc): Update.
7697 * breakpoint.c (create_overlay_event_breakpoint): Update.
7698 (create_longjmp_master_breakpoint): Update.
7699 (create_std_terminate_master_breakpoint): Update.
7700 (create_exception_master_breakpoint): Update.
7701 (resolve_sal_pc): Update.
7702 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7703 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7704 Update.
7705 * c-valprint.c (c_val_print): Update.
7706 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7707 * coffread.c (coff_symfile_read): Update.
7708 * common/agent.c (agent_look_up_symbols): Update.
7709 * dbxread.c (find_stab_function_addr): Update.
7710 (end_psymtab): Update.
7711 * dwarf2loc.c (call_site_to_target_addr): Update.
7712 (func_verify_no_selftailcall): Update.
7713 (tailcall_dump): Update.
7714 (call_site_find_chain_1): Update.
7715 (dwarf_expr_reg_to_entry_parameter): Update.
7716 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7717 (elf_gnu_ifunc_resolve_by_got): Update.
7718 * f-valprint.c (info_common_command): Update.
7719 * findvar.c (read_var_value): Update.
7720 * frame.c (get_prev_frame_1): Update.
7721 (inside_main_func): Update.
7722 * frv-tdep.c (frv_skip_main_prologue): Update.
7723 (frv_frame_this_id): Update.
7724 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7725 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7726 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7727 (gnuv3_skip_trampoline): Update.
7728 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7729 (hppa64_hpux_in_solib_call_trampoline): Update.
7730 (hppa_hpux_skip_trampoline_code): Update.
7731 (hppa64_hpux_search_dummy_call_sequence): Update.
7732 (hppa_hpux_find_import_stub_for_addr): Update.
7733 (hppa_hpux_find_dummy_bpaddr): Update.
7734 * hppa-tdep.c (hppa_symbol_address)
7735 (hppa_lookup_stub_minimal_symbol): Update.
7736 * i386-tdep.c (i386_skip_main_prologue): Update.
7737 (i386_pe_skip_trampoline_code): Update.
7738 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7739 * infcall.c (get_function_name): Update.
7740 * infcmd.c (until_next_command): Update.
7741 * jit.c (jit_breakpoint_re_set_internal): Update.
7742 (jit_inferior_init): Update.
7743 * linespec.c (minsym_found): Update.
7744 (add_minsym): Update.
7745 * linux-fork.c (info_checkpoints_command): Update.
7746 * linux-nat.c (get_signo): Update.
7747 * linux-thread-db.c (inferior_has_bug): Update.
7748 * m32c-tdep.c (m32c_return_value): Update.
7749 (m32c_m16c_address_to_pointer): Update.
7750 (m32c_m16c_pointer_to_address): Update.
7751 * m32r-tdep.c (m32r_frame_this_id): Update.
7752 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7753 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7754 * maint.c (maintenance_translate_address): Update.
7755 * minsyms.c (add_minsym_to_hash_table): Update.
7756 (add_minsym_to_demangled_hash_table): Update.
7757 (msymbol_objfile): Update.
7758 (lookup_minimal_symbol): Update.
7759 (iterate_over_minimal_symbols): Update.
7760 (lookup_minimal_symbol_text): Update.
7761 (lookup_minimal_symbol_by_pc_name): Update.
7762 (lookup_minimal_symbol_solib_trampoline): Update.
7763 (lookup_minimal_symbol_by_pc_section_1): Update.
7764 (lookup_minimal_symbol_and_objfile): Update.
7765 (prim_record_minimal_symbol_full): Update.
7766 (compare_minimal_symbols): Update.
7767 (compact_minimal_symbols): Update.
7768 (build_minimal_symbol_hash_tables): Update.
7769 (install_minimal_symbols): Update.
7770 (terminate_minimal_symbol_table): Update.
7771 (find_solib_trampoline_target): Update.
7772 (minimal_symbol_upper_bound): Update.
7773 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7774 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7775 (mips_skip_pic_trampoline_code): Update.
7776 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7777 * objc-lang.c (selectors_info): Update.
7778 (classes_info): Update.
7779 (find_methods): Update.
7780 (find_imps): Update.
7781 (find_objc_msgsend): Update.
7782 * objfiles.c (objfile_relocate1): Update.
7783 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7784 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7785 * p-valprint.c (pascal_val_print): Update.
7786 * parse.c (write_exp_msymbol): Update.
7787 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7788 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7789 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7790 * printcmd.c (build_address_symbolic): Update.
7791 (sym_info): Update.
7792 (address_info): Update.
7793 * proc-service.c (ps_pglobal_lookup): Update.
7794 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7795 (find_pc_sect_psymtab): Update.
7796 * python/py-framefilter.c (py_print_frame): Update.
7797 * ravenscar-thread.c (get_running_thread_id): Update.
7798 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7799 Update.
7800 * remote.c (remote_check_symbols): Update.
7801 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7802 (rs6000_skip_trampoline_code): Update.
7803 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7804 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7805 * solib-dsbt.c (lm_base): Update.
7806 * solib-frv.c (lm_base): Update.
7807 (main_got): Update.
7808 * solib-irix.c (locate_base): Update.
7809 * solib-som.c (som_solib_create_inferior_hook): Update.
7810 (som_solib_desire_dynamic_linker_symbols): Update.
7811 (link_map_start): Update.
7812 * solib-spu.c (spu_enable_break): Update.
7813 (ocl_enable_break): Update.
7814 * solib-svr4.c (elf_locate_base): Update.
7815 (enable_break): Update.
7816 * spu-tdep.c (spu_get_overlay_table): Update.
7817 (spu_catch_start): Update.
7818 (flush_ea_cache): Update.
7819 * stabsread.c (define_symbol): Update.
7820 (scan_file_globals): Update.
7821 * stack.c (find_frame_funname): Update.
7822 (frame_info): Update.
7823 * symfile.c (simple_read_overlay_table): Update.
7824 (simple_overlay_update): Update.
7825 * symmisc.c (dump_msymbols): Update.
7826 * symtab.c (fixup_section): Update.
7827 (find_pc_sect_line): Update.
7828 (skip_prologue_sal): Update.
7829 (search_symbols): Update.
7830 (print_msymbol_info): Update.
7831 (rbreak_command): Update.
7832 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7833 (completion_list_objc_symbol): Update.
7834 (default_make_symbol_completion_list_break_on): Update.
7835 * tracepoint.c (scope_info): Update.
7836 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7837 (tui_get_begin_asm_address): Update.
7838 * valops.c (find_function_in_inferior): Update.
7839 * value.c (value_static_field): Update.
7840 (value_fn_field): Update.
7841
50e65b17
TT
78422014-02-26 Tom Tromey <tromey@redhat.com>
7843
7844 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7845 bound minimal symbols. Move code that knows about minsym
7846 table layout...
7847 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7848 function.
7849 * minsyms.h (minimal_symbol_upper_bound): Declare.
7850 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7851 minimal_symbol_upper_bound.
7852
1b588015
JB
78532014-02-27 Joel Brobecker <brobecker@adacore.com>
7854
7855 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7856 Use the type's name if its basic type does not have a tag.
7857
dbb9c2b1
JB
78582014-02-27 Joel Brobecker <brobecker@adacore.com>
7859
7860 * dwarf2read.c (read_subrange_type): Add comment.
7861
55426c9d
JB
78622014-02-27 Joel Brobecker <brobecker@adacore.com>
7863
7864 * dwarf2read.c (update_enumeration_type_from_children): New
7865 function, mostly extracted from process_structure_scope.
7866 (read_enumeration_type): Call update_enumeration_type_from_children.
7867 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7868 and flag_flag_enum fields.
7869
f2fce0ca
PA
78702014-02-26 Pedro Alves <palves@redhat.com>
7871
7872 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7873 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7874 to_xfer_partial method.
7875
7a44e40e
PA
78762014-02-26 Pedro Alves <palves@redhat.com>
7877
7878 * target.c (complete_target_initialization): Don't install
7879 default_xfer_partial as to_xfer_partial hook.
7880 (nomemory): Delete.
7881 (update_current_target): Don't INHERIT nor de_fault
7882 deprecated_xfer_memory. Delete de_fault macro.
7883 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7884 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7885 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7886 field.
7887
bd265cd0
PA
78882014-02-26 Pedro Alves <palves@redhat.com>
7889
7890 * go32-nat.c (my_write_child): New function.
7891 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7892 (go32_xfer_partial): New function.
7893 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7894 Instead install a to_xfer_partial hook.
7895
9d46c4e5
PA
78962014-02-26 Pedro Alves <palves@redhat.com>
7897
7898 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7899 to_xfer_partial helper. Rewrite.
7900 (procfs_xfer_partial): New function.
7901 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7902 Install a to_xfer_partial hook.
7903
a1583b1f
PA
79042014-02-26 Pedro Alves <palves@redhat.com>
7905
7906 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7907 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7908 (m32r_xfer_partial): New function.
7909 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7910 Install a to_xfer_partial hook.
7911
6df1b29f
PA
79122014-02-26 Pedro Alves <palves@redhat.com>
7913
7914 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7915 helper.
7916 (mips_xfer_partial): New function.
7917 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7918 hook. Install a to_xfer_partial hook.
7919
dc53a7ad
JB
79202014-02-26 Joel Brobecker <brobecker@adacore.com>
7921
7922 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7923 * gdbtypes.c (create_array_type_with_stride): New function,
7924 renaming create_array_type, but with an added parameter
7925 called "bit_stride".
7926 (create_array_type): Re-implement using
7927 create_array_type_with_stride.
7928 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7929 and DW_AT_bit_stride attributes.
7930
12ab52e9
PA
79312014-02-26 Pedro Alves <palves@redhat.com>
7932
7933 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7934 task-specific breakpoints.
7935
d16461ae
PA
79362014-02-25 Pedro Alves <palves@redhat.com>
7937
7938 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7939 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7940
a8b16220
SS
79412014-02-25 Stan Shebs <stan@codesourcery.com>
7942
7943 * defs.h: Annotate comments for Doxygen.
7944
b9e795ee
TT
79452014-02-25 Tom Tromey <tromey@redhat.com>
7946
7947 * target.h (target_ignore): Don't declare.
7948 * target.c (target_ignore): Remove.
7949
849c862e
JK
79502014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7951
7952 PR gdb/16626
7953 * auto-load.c (auto_load_objfile_script_1): Change filename to
7954 debugfile.
7955
475109d8
JB
79562014-02-25 Joel Brobecker <brobecker@adacore.com>
7957
7958 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7959 documentation. Adjust prototype to match the target_ops
7960 to_xfer_partial method. Adjust implementation accordingly.
7961
e186c3bd
HZ
79622014-02-25 Hui Zhu <hui@codesourcery.com>
7963
7964 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7965 to_traceframe_info.
7966
6d451942
KB
79672014-02-25 Kevin Buettner <kevinb@redhat.com>
7968
041ab8b4 7969 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7970 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7971 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7972 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7973 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7974 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7975 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7976 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7977 New constants.
7978 (rl78_register_type): Use a data pointer type for SP and
7979 new pseudo registers mentioned above. Use a 16 bit integer
7980 type for all other register pairs.
7981 (rl78_register_name, rl78_g10_register_name): Update for
7982 new pseudo registers.
7983 (rl78_pseudo_register_read): Likewise.
7984 (rl78_pseudo_register_write): Likewise.
7985 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7986 to the newly added pseudo registers.
7987
eddf0bae
DE
79882014-02-24 Doug Evans <dje@google.com>
7989
7990 * value.c (record_latest_value): Fix comment.
7991 * printcmd.c (print_command_1): Remove code to handle -1 return from
7992 record_latest_value.
7993
e96027e0
PA
79942014-02-24 Pedro Alves <palves@redhat.com>
7995
7996 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7997 deprecated_xfer_memory hook.
7998 (procfs_xfer_partial): Call procfs_xfer_memory instead
7999 of the deprecated_xfer_memory target hook.
8000 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8001 helper.
8002
0837c976
YZ
80032014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8004
8005 * windows-nat.c (windows_xfer_shared_libraries): Return
8006 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8007 requested object is TARGET_OBJECT_LIBRARIES.
8008
bc113b4e
YQ
80092014-02-24 Yao Qi <yao@codesourcery.com>
8010
8011 * target.h (enum target_xfer_status)
8012 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8013 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8014 explicitly. New.
8015 * corefile.c (memory_error_message): User updated.
8016 * exec.c (section_table_read_available_memory): Likewise.
8017 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8018 * target.c (target_xfer_status_to_string): Likewise.
8019 (raw_memory_xfer_partial): Likewise.
8020 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8021 * valops.c (read_value_memory): Likewise.
8022 * exec.h: Update comments.
8023
01cb8804
YQ
80242014-02-24 Yao Qi <yao@codesourcery.com>
8025
8026 * target.c (target_xfer_status_to_string): Rename argument err
8027 to status.
8028 * target.h (target_xfer_status_to_string): Update declaration.
8029 Replace target_xfer_error_to_string with
8030 target_xfer_status_to_string in comment.
8031
93063aa6
YQ
80322014-02-24 Yao Qi <yao@codesourcery.com>
8033
8034 * mips-linux-nat.c (super_close): Update its type.
8035 (mips_linux_close): Pass 'self' to super_close.
8036
5c328c05
YQ
80372014-02-24 Yao Qi <yao@codesourcery.com>
8038
8039 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8040 * corefile.c (read_memory): Adjusted.
8041 * target.c (target_write_with_progress): Adjusted.
8042
f73023dd
YQ
80432014-02-23 Yao Qi <yao@codesourcery.com>
8044
8045 Revert two patches:
8046
8047 2013-10-25 Yao Qi <yao@codesourcery.com>
8048
8049 * remote.c (remote_traceframe_info): Return early if
8050 traceframe is not selected.
8051
8052 2013-07-19 Yao Qi <yao@codesourcery.com>
8053
8054 * target.c (update_current_target): Change the default action
8055 of 'to_traceframe_info' from tcomplain to return_zero.
8056 * target.h (struct target_ops) <to_traceframe_info>: Add more
8057 comments.
8058
5a2eb0ef
YQ
80592014-02-23 Yao Qi <yao@codesourcery.com>
8060
8061 * valops.c (read_value_memory): Rewrite it. Call
8062 target_xfer_partial in a loop.
8063 * exec.h (section_table_available_memory): Remove declaration.
8064 Move comments to ...
8065 * exec.c (section_table_available_memory): ... here. Make it
8066 static.
8067
1ee79381
YQ
80682014-02-23 Yao Qi <yao@codesourcery.com>
8069
8070 * exec.c (section_table_read_available_memory): New function.
8071 * exec.h (section_table_read_available_memory): Declare.
8072 * ctf.c (ctf_xfer_partial): Call
8073 section_table_read_available_memory.
8074 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8075
1ca49d37
YQ
80762014-02-23 Yao Qi <yao@codesourcery.com>
8077
8078 * ctf.c (ctf_xfer_partial): Move code to ...
8079 * exec.c (exec_read_partial_read_only): ... it. New function.
8080 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8081 * tracefile.c: Include "exec.h".
8082 * exec.h (exec_read_partial_read_only): Declare.
8083
a283690e
YQ
80842014-02-23 Yao Qi <yao@codesourcery.com>
8085
8086 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8087 (tfile_has_memory): Remove.
8088 (init_tfile_ops): Don't set fields to_has_all_memory and
8089 to_has_memory of tfile_ops.
8090 * tracefile.c (tracefile_has_all_memory): New function.
8091 (tracefile_has_memory): New function.
8092 (init_tracefile_ops): Initialize fields to_has_all_memory and
8093 to_has_memory of 'ops'.
8094
12e03cd0
YQ
80952014-02-23 Yao Qi <yao@codesourcery.com>
8096
8097 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8098 (ctf_thread_alive, ctf_get_trace_status): Remove.
8099 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8100 init_tracefile_ops.
8101 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8102 (tfile_has_stack, tfile_has_registers): Remove.
8103 (tfile_thread_alive): Remove.
8104 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8105 init_tracefile_ops.
8106 * tracefile.c (tracefile_has_stack): New function.
8107 (tracefile_has_registers): New function.
8108 (tracefile_thread_alive): New function.
8109 (tracefile_get_trace_status): New function.
8110 (init_tracefile_ops): New function.
8111 * tracefile.h (init_tracefile_ops): Declare.
8112
11395323
YQ
81132014-02-23 Yao Qi <yao@codesourcery.com>
8114
8115 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8116 (O_LARGEFILE): Likewise.
8117 (tfile_ops): Likewise.
8118 (TRACE_HEADER_SIZE): Likewise.
8119 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8120 (cur_data_size): Likewise.
8121 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8122 (tfile_close, tfile_files_info): Likewise.
8123 (tfile_get_trace_status): Likewise.
8124 (tfile_get_tracepoint_status): Likewise.
8125 (tfile_get_traceframe_address): Likewise.
8126 (tfile_trace_find, match_blocktype): Likewise.
8127 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8128 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8129 (tfile_get_trace_state_variable_value): Likewise.
8130 (tfile_has_all_memory, tfile_has_memory): Likewise.
8131 (tfile_has_stack, tfile_has_registers): Likewise.
8132 (tfile_thread_alive, build_traceframe_info): Likewise.
8133 (tfile_traceframe_info, init_tfile_ops): Likewise.
8134 (_initialize_tracepoint): Don't call init_tfile_ops
8135 and add_target_with_completer.
8136 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8137 exec.h, completer.h and filenames.h.
8138 (_initialize_tracefile_tfile): New function.
8139
7951c4eb
YQ
81402014-02-23 Yao Qi <yao@codesourcery.com>
8141
8142 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8143 tracefile-tfile.o.
8144 (HFILES_NO_SRCDIR): Add tracefile.h.
8145 * ctf.c: Include "tracefile.h".
8146 * tracefile.h: New file.
8147 * tracefile.c: New file
8148 * tracefile-tfile.c: New file.
8149 * tracepoint.c: Include "tracefile.h".
8150 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8151 (stop_reason_names): Add const.
8152 (trace_file_writer_xfree): Move it to tracefile.c.
8153 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8154 (trace_save_ctf): Likewise.
8155 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8156 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8157 (tfile_write_header, tfile_write_regblock_type): Likewise.
8158 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8159 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8160 (tfile_write_raw_data, tfile_end): Likewise.
8161 (tfile_trace_file_writer_new): Likewise.
8162 (free_uploaded_tp): Make it extern.
8163 (free_uploaded_tsv): Make it extern.
8164 (_initialize_tracepoint): Move code to register command 'tsave'
8165 to tracefile.c.
8166 * tracepoint.h (stop_reason_names): Declare.
8167 (struct trace_frame_write_ops): Move it to tracefile.h.
8168 (struct trace_file_write_ops): Likewise.
8169 (struct trace_file_writer): Likewise.
8170 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8171
184cd072
JK
81722014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8173
8174 PR gdb/16594
8175 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8176 process name.
8177 (get_cores_used_by_process): New parameter num_cores, use it.
8178 (linux_xfer_osdata_processes): Pass num_cores to it.
8179 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8180 process name.
8181
c63528fc
AK
81822014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8183
8184 * target.c (memory_xfer_partial): Fix length arg in call to
8185 breakpoint_xfer_memory.
8186
d7b30f67
SDJ
81872014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8188
8189 PR tdep/16397
8190 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8191 number comes after the + or - signs. Adjust length of register
8192 name to be extracted.
8193
8838afaf
TT
81942014-02-20 Tom Tromey <tromey@redhat.com>
8195
8196 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8197 (ada_varobj_ops): Mark "extern".
8198
05227d14
TT
81992014-02-20 Tom Tromey <tromey@redhat.com>
8200
8201 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8202
1254eefc
DE
82032014-02-20 Doug Evans <xdje42@gmail.com>
8204
8205 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8206 All callers updated.
8207 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8208 All callers updated.
8209 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8210 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8211
adde2bff
DE
82122014-02-20 lin zuojian <manjian2006@gmail.com>
8213 Joel Brobecker <brobecker@adacore.com>
8214 Doug Evans <xdje42@gmail.com>
8215
8216 PR symtab/16581
8217 * dwarf2read.c (struct die_info): New member in_process.
8218 (reset_die_in_process): New function.
8219 (process_die): Set it at the start, reset when returning.
8220 (inherit_abstract_dies): Only call process_die if origin_child_die
8221 not already being processed.
8222
3be75f87
JB
82232014-02-20 Joel Brobecker <brobecker@adacore.com>
8224
8225 * windows-nat.c (handle_unload_dll): Add function documentation.
8226 (do_initial_windows_stuff): Add comment explaining why we wait
8227 until after inferior initialization has finished before
8228 processing all DLLs.
8229
47f7ffdb
JB
82302014-02-20 Joel Brobecker <brobecker@adacore.com>
8231
8232 * windows-nat.c (get_module_name): Delete.
8233 (windows_get_exec_module_filename): New function, mostly
8234 inspired from get_module_name.
8235 (windows_pid_to_exec_file): Replace call to get_module_name
8236 by call to windows_get_exec_module_filename.
8237
1cd9feab
JB
82382014-02-20 Joel Brobecker <brobecker@adacore.com>
8239
8240 * windows-nat.c (handle_load_dll): Rewrite this function's
8241 introductory comment. Remove code using get_module_name
8242 to get the DLL's name.
8243
ea39ad35
JB
82442014-02-20 Joel Brobecker <brobecker@adacore.com>
8245
8246 * windows-nat.c (get_windows_debug_event): Ignore
8247 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8248 if windows_initialization_done == 0.
8249 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8250 Adjust implementation to always load all DLLs.
8251 (do_initial_windows_stuff): Replace call to
8252 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8253
95060284
JB
82542014-02-20 Joel Brobecker <brobecker@adacore.com>
8255
8256 * windows-nat.c (_initialize_windows_nat): Deprecate the
8257 "dll-symbols" command. Turn the "add-shared-symbol-files"
8258 and "assf" aliases into commands, and deprecate them as well.
8259 * NEWS: Add entry explaining that "dll-symbols" and its two
8260 aliases are now deprecated.
8261
8d4fdb12
JB
82622014-02-20 Joel Brobecker <brobecker@adacore.com>
8263
8264 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8265 new-line in debug string. Remove trailing spaces.
8266
1b281443
SS
82672014-02-19 Stan Shebs <stan@codesourcery.com>
8268
8269 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8270
f7bd0f78
SC
82712014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8272
8273 * NEWS: Add entry for the new feature
8274 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8275 and class values.
8276
399ebc3d
SS
82772014-02-19 Stan Shebs <stan@codesourcery.com>
8278
8279 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8280
c658158d
PA
82812014-02-19 Pedro Alves <palves@redhat.com>
8282
8283 * common/ptid.h (struct ptid): Mention that process_stratum
8284 targets should prefer ptid.lwp.
8285
ba348170
PA
82862014-02-19 Pedro Alves <palves@redhat.com>
8287
8288 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8289 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8290 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8291 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8292 store remote thread ids rather than ptid.tid.
8293 (_initialize_remote): Adjust.
8294
ac01945b
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.c (target_get_unwinder): Rewrite.
8298 (target_get_tailcall_unwinder): Rewrite.
8299 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8300 (record_btrace_to_get_tailcall_unwinder): New function.
8301 (init_record_btrace_ops): Update.
8302 * target.h (struct target_ops) <to_get_unwinder,
8303 to_get_tailcall_unwinder>: Now function pointers. Use
8304 TARGET_DEFAULT_RETURN.
8305
8476dc92
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8309 argument.
8310 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8311
c0eca49f
TT
83122014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8315 directly.
8316 * target-delegates.c: Rebuild.
8317 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8318 TARGET_DEFAULT_FUNC.
8319 * target.c (default_target_decr_pc_after_break): Rename from
8320 forward_target_decr_pc_after_break. Simplify.
8321 (target_decr_pc_after_break): Rely on delegation.
8322
596b6b39
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target.c (update_current_target): Do not INHERIT to_doc or
8326 to_magic. Do not de_fault to_open or to_close.
8327
b427c1bc
TT
83282014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * gcore.h (objfile_find_memory_regions): Declare.
8331 * gcore.c (objfile_find_memory_regions): No longer static. Add
8332 "self" argument.
8333 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8334 * exec.c: Include gcore.h.
8335 (exec_set_find_memory_regions): Remove.
8336 (exec_find_memory_regions): Remove.
8337 (exec_do_find_memory_regions): Remove.
8338 (init_exec_ops): Update.
8339 * defs.h (exec_set_find_memory_regions): Remove.
8340
9b144037
TT
83412014-02-19 Tom Tromey <tromey@redhat.com>
8342
8343 * target-delegates.c: Rebuild.
8344 * target.h (struct target_ops) <to_extra_thread_info,
8345 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8346 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8347 not 0, in TARGET_DEFAULT_RETURN.
8348
555bbdeb
TT
83492014-02-19 Tom Tromey <tromey@redhat.com>
8350
8351 * target.c (complete_target_initialization): Remove casts. Use
8352 return_zero_has_execution.
8353 (return_zero): Add "ignore" argument.
8354 (return_zero_has_execution): New function.
8355 (init_dummy_target): Remove casts. Use
8356 return_zero_has_execution.
8357
be4ddd36
TT
83582014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target.c (update_current_target): Update comments. Do not
8361 INHERIT to_stratum.
8362
2117c711
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8366 needed.
8367 * corelow.c (core_read_description): Delegate when needed.
8368 * remote.c (remote_read_description): Delegate when needed.
8369 * target-delegates.c: Rebuild.
8370 * target.c (target_read_description): Rewrite.
8371 * target.h (struct target_ops) <to_read_description>: Update
8372 comment. Use TARGET_DEFAULT_RETURN.
8373
e88ef65c
TT
83742014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target-delegates.c: Rebuild.
8377 * target.c (update_current_target): Don't inherit or default
8378 to_can_run.
8379 (find_default_run_target): Check against delegate_can_run.
8380 * target.h (struct target_ops) <to_can_run>: Use
8381 TARGET_DEFAULT_RETURN.
8382
86a0854a
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (target_disconnect): Unconditionally delegate.
8387 * target.h (struct target_ops) <to_disconnect>: Use
8388 TARGET_DEFAULT_NORETURN.
8389
ee97f592
TT
83902014-02-19 Tom Tromey <tromey@redhat.com>
8391
8392 * record.c (record_stop): Unconditionally delegate.
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_stop_recording): Unconditionally delegate.
8395 * target.h (struct target_ops) <to_stop_recording>: Use
8396 TARGET_DEFAULT_IGNORE.
8397
6dc7fcf4
TT
83982014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target-delegates.c: Rebuild.
8401 * target.c (target_enable_btrace): Unconditionally delegate.
8402 * target.h (struct target_ops) <to_enable_btrace>: Use
8403 TARGET_DEFAULT_NORETURN.
8404
eb5b20d4
TT
84052014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target-delegates.c: Rebuild.
8408 * target.c (target_read_btrace): Unconditionally delegate.
8409 * target.h (struct target_ops) <to_read_btrace>: Use
8410 TARGET_DEFAULT_NORETURN.
8411
9ace480d
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_teardown_btrace): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_teardown_btrace>: Use
8417 TARGET_DEFAULT_NORETURN.
8418
8dc292d3
TT
84192014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_disable_btrace): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_disable_btrace>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
58a5184e
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (default_search_memory): New function.
8430 (simple_search_memory): Update comment.
8431 (target_search_memory): Unconditionally delegate.
8432 * target.h (struct target_ops) <to_search_memory>: Use
8433 TARGET_DEFAULT_FUNC.
8434
8de71aab
TT
84352014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * auxv.c (default_auxv_parse): No longer static.
8438 (target_auxv_parse): Unconditionally delegate.
8439 * auxv.h (default_auxv_parse): Declare.
8440 * target-delegates.c: Rebuild.
8441 * target.c: Include auxv.h.
8442 * target.h (struct target_ops) <to_auxv_parse>: Use
8443 TARGET_DEFAULT_FUNC.
8444
6b2c5a57
TT
84452014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target-delegates.c: Rebuild.
8448 * target.c (target_memory_map): Unconditionally delegate.
8449 * target.h (struct target_ops) <to_memory_map>: Use
8450 TARGET_DEFAULT_RETURN.
8451
cbffc065
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (target_thread_alive): Unconditionally delegate.
8456 * target.h (struct target_ops) <to_thread_alive>: Use
8457 TARGET_DEFAULT_RETURN.
8458
f09e2107
TT
84592014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target-delegates.c: Rebuild.
8462 * target.c (target_save_record): Unconditionally delegate.
8463 * target.h (struct target_ops) <to_save_record>: Use
8464 TARGET_DEFAULT_NORETURN.
8465
07366925
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (target_delete_record): Unconditionally delegate.
8470 * target.h (struct target_ops) <to_delete_record>: Use
8471 TARGET_DEFAULT_NORETURN.
8472
dd2e9d25
TT
84732014-02-19 Tom Tromey <tromey@redhat.com>
8474
8475 * target-delegates.c: Rebuild.
8476 * target.c (target_record_is_replaying): Unconditionally
8477 delegate.
8478 * target.h (struct target_ops) <to_record_is_replaying>: Use
8479 TARGET_DEFAULT_RETURN.
8480
671e76cc
TT
84812014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * target-delegates.c: Rebuild.
8484 * target.c (target_goto_record_begin): Unconditionally delegate.
8485 * target.h (struct target_ops) <to_goto_record_begin>: Use
8486 TARGET_DEFAULT_NORETURN.
8487
e9179bb3
TT
84882014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target-delegates.c: Rebuild.
8491 * target.c (target_goto_record_end): Unconditionally delegate.
8492 * target.h (struct target_ops) <to_goto_record_end>: Use
8493 TARGET_DEFAULT_NORETURN.
8494
05969c84
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (target_goto_record): Unconditionally delegate.
8499 * target.h (struct target_ops) <to_goto_record>: Use
8500 TARGET_DEFAULT_NORETURN.
8501
3679abfa
TT
85022014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target-delegates.c: Rebuild.
8505 * target.c (target_insn_history): Unconditionally delegate.
8506 * target.h (struct target_ops) <to_insn_history>: Use
8507 TARGET_DEFAULT_NORETURN.
8508
8444ab58
TT
85092014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (target_insn_history_from): Unconditionally delegate.
8513 * target.h (struct target_ops) <to_insn_history_from>: Use
8514 TARGET_DEFAULT_NORETURN.
8515
c29302cc
TT
85162014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (target_insn_history_range): Unconditionally delegate.
8520 * target.h (struct target_ops) <to_insn_history_range>: Use
8521 TARGET_DEFAULT_NORETURN.
8522
170049d4
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (target_call_history): Unconditionally delegate.
8527 * target.h (struct target_ops) <to_call_history>: Use
8528 TARGET_DEFAULT_NORETURN.
8529
16fc27d6
TT
85302014-02-19 Tom Tromey <tromey@redhat.com>
8531
8532 * target-delegates.c: Rebuild.
8533 * target.c (target_call_history_from): Unconditionally delegate.
8534 * target.h (struct target_ops) <to_call_history_from>: Use
8535 TARGET_DEFAULT_NORETURN.
8536
115d9817
TT
85372014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (target_call_history_range): Unconditionally delegate.
8541 * target.h (struct target_ops) <to_call_history_range>: Use
8542 TARGET_DEFAULT_NORETURN.
8543
eb276a6b
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (target_verify_memory): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_verify_memory>: Use
8549 TARGET_DEFAULT_NORETURN.
8550
9e538d0d
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_core_of_thread): Unconditionally delegate.
8555 * target.h (struct target_ops) <to_core_of_thread>: Use
8556 TARGET_DEFAULT_RETURN.
8557
f6fb2925
TT
85582014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target-delegates.c: Rebuild.
8561 * target.c (target_flash_done): Unconditionally delegate.
8562 * target.h (struct target_ops) <to_flash_done>: Use
8563 TARGET_DEFAULT_NORETURN.
8564
e8a6c6ac
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target-delegates.c: Rebuild.
8568 * target.c (target_flash_erase): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_flash_erase>: Use
8570 TARGET_DEFAULT_NORETURN.
8571
7e35c012
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (target_get_section_table): Unconditionally delegate.
8576 * target.h (struct target_ops) <to_get_section_table>: Use
8577 TARGET_DEFAULT_RETURN.
8578
770234d3
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (target_pid_to_str): Unconditionally delegate.
8583 (init_dummy_target): Don't initialize to_pid_to_str.
8584 (default_pid_to_str): Rename from dummy_pid_to_str.
8585 * target.h (struct target_ops) <to_pid_to_str>: Use
8586 TARGET_DEFAULT_FUNC.
8587
09b0dc2b
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (target_find_new_threads): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_find_new_threads>: Use
8593 TARGET_DEFAULT_RETURN.
8594
7d4f8efa
TT
85952014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target-delegates.c: Rebuild.
8598 * target.c (target_program_signals): Unconditionally delegate.
8599 * target.h (struct target_ops) <to_program_signals>: Use
8600 TARGET_DEFAULT_IGNORE.
8601
035cad7f
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (target_pass_signals): Unconditionally delegate.
8606 * target.h (struct target_ops) <to_pass_signals>: Use
8607 TARGET_DEFAULT_IGNORE.
8608
8d657035
TT
86092014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target-delegates.c: Rebuild.
8612 * target.c (default_mourn_inferior): New function.
8613 (target_mourn_inferior): Unconditionally delegate.
8614 * target.h (struct target_ops) <to_mourn_inferior>: Use
8615 TARGET_DEFAULT_FUNC.
8616
098dba18
TT
86172014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target-delegates.c: Rebuild.
8620 * target.c (default_follow_fork): New function.
8621 (target_follow_fork): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_follow_fork>: Use
8623 TARGET_DEFAULT_FUNC.
8624
423a4807
TT
86252014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (target_kill): Unconditionally delegate.
8629 * target.h (struct target_ops) <to_kill>: Use
8630 TARGET_DEFAULT_NORETURN.
8631
6c7e5e5c
TT
86322014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_masked_watch_num_registers): Unconditionally
8636 delegate.
8637 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8638 Use TARGET_DEFAULT_RETURN.
8639
8b1c364c
TT
86402014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target-delegates.c: Rebuild.
8643 * target.c (target_remove_mask_watchpoint): Unconditionally
8644 delegate.
8645 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8646 TARGET_DEFAULT_RETURN.
8647
cd4ae029
TT
86482014-02-19 Tom Tromey <tromey@redhat.com>
8649
8650 * target-delegates.c: Rebuild.
8651 * target.c (target_insert_mask_watchpoint): Unconditionally
8652 delegate.
8653 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8654 TARGET_DEFAULT_RETURN.
8655
a134316b
TT
86562014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target-delegates.c: Rebuild.
8659 * target.c (target_ranged_break_num_registers): Unconditionally
8660 delegate.
8661 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8662 Use TARGET_DEFAULT_RETURN.
8663
ad5989bd
TT
86642014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target-delegates.c: Rebuild.
8667 * target.c (target_fetch_registers): Unconditionally delegate.
8668 * target.h (struct target_ops) <to_fetch_registers>: Use
8669 TARGET_DEFAULT_NORETURN.
8670
46ee7e8d
TT
86712014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8675 to_stop.
8676 * target.h (struct target_ops) <to_stop>: Use
8677 TARGET_DEFAULT_IGNORE.
8678
843f59ed
TT
86792014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (update_current_target): Don't inherit or default
8683 to_can_run_breakpoint_commands.
8684 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8685 Use TARGET_DEFAULT_RETURN.
8686
ccfde2a0
TT
86872014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target-delegates.c: Rebuild.
8690 * target.c (update_current_target): Don't inherit or default
8691 to_supports_evaluation_of_breakpoint_conditions.
8692 * target.h (struct target_ops)
8693 <to_supports_evaluation_of_breakpoint_conditions>: Use
8694 TARGET_DEFAULT_RETURN.
8695
0de91722
TT
86962014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target-delegates.c: Rebuild.
8699 * target.c (update_current_target): Don't inherit or default
8700 to_augmented_libraries_svr4_read.
8701 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8702 Use TARGET_DEFAULT_RETURN.
8703
9a7d8b48
TT
87042014-02-19 Tom Tromey <tromey@redhat.com>
8705
8706 * target-delegates.c: Rebuild.
8707 * target.c (update_current_target): Don't inherit or default
8708 to_can_use_agent.
8709 * target.h (struct target_ops) <to_can_use_agent>: Use
8710 TARGET_DEFAULT_RETURN.
8711
d9db5b21
TT
87122014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_use_agent.
8717 * target.h (struct target_ops) <to_use_agent>: Use
8718 TARGET_DEFAULT_NORETURN.
8719
92155eeb
TT
87202014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target-delegates.c: Rebuild.
8723 * target.c (update_current_target): Don't inherit or default
8724 to_traceframe_info.
8725 (return_null): Remove.
8726 * target.h (struct target_ops) <to_traceframe_info>: Use
8727 TARGET_DEFAULT_RETURN.
8728
d6522a22
TT
87292014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8733 to_static_tracepoint_markers_by_strid.
8734 * target.h (struct target_ops)
8735 <to_static_tracepoint_markers_by_strid>: Use
8736 TARGET_DEFAULT_NORETURN.
8737
4c3e4425
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_static_tracepoint_marker_at.
8743 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8744 Use TARGET_DEFAULT_RETURN.
8745
dcd6917f
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (update_current_target): Don't inherit or default
8750 to_set_permissions.
8751 * target.h (struct target_ops) <to_set_permissions>: Use
8752 TARGET_DEFAULT_IGNORE.
8753
22bcceee
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_get_tib_address.
8759 * target.h (struct target_ops) <to_get_tib_address>: Use
8760 TARGET_DEFAULT_NORETURN.
8761
8586ccaa
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_set_trace_notes.
8767 * target.h (struct target_ops) <to_set_trace_notes>: Use
8768 TARGET_DEFAULT_RETURN.
8769
91df8d1d
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't initialize
8774 to_set_trace_buffer_size.
8775 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8776 TARGET_DEFAULT_IGNORE.
8777
8d526939
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_set_circular_trace_buffer.
8783 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8784 TARGET_DEFAULT_IGNORE.
8785
0bcfeddf
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_set_disconnected_tracing.
8791 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8792 TARGET_DEFAULT_IGNORE.
8793
9249843f
TT
87942014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_get_min_fast_tracepoint_insn_len.
8799 (return_minus_one): Remove.
8800 * target.h (struct target_ops)
8801 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8802
ace92e7d
TT
88032014-02-19 Tom Tromey <tromey@redhat.com>
8804
8805 * target-delegates.c: Rebuild.
8806 * target.c (update_current_target): Don't inherit or default
8807 to_get_raw_trace_data.
8808 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8809 TARGET_DEFAULT_NORETURN.
8810
08120467
TT
88112014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target-delegates.c: Rebuild.
8814 * target.c (update_current_target): Don't inherit or default
8815 to_upload_trace_state_variables.
8816 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8817 Use TARGET_DEFAULT_RETURN.
8818
1e949b00
TT
88192014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_upload_tracepoints.
8824 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8825 TARGET_DEFAULT_RETURN.
8826
a2e6c147
TT
88272014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * target-delegates.c: Rebuild.
8830 * target.c (update_current_target): Don't inherit or default
8831 to_save_trace_data.
8832 * target.h (struct target_ops) <to_save_trace_data>: Use
8833 TARGET_DEFAULT_NORETURN.
8834
959bcd0b
TT
88352014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target-delegates.c: Rebuild.
8838 * target.c (update_current_target): Don't inherit or default
8839 to_get_trace_state_variable_value.
8840 * target.h (struct target_ops)
8841 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8842
afc94e66
TT
88432014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * target-delegates.c: Rebuild.
8846 * target.c (update_current_target): Don't inherit or default
8847 to_trace_find.
8848 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8849
e51c07ea
TT
88502014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8854 to_trace_stop.
8855 * target.h (struct target_ops) <to_trace_stop>: Use
8856 TARGET_DEFAULT_NORETURN.
8857
6fea14cd
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target-delegates.c: Rebuild.
8861 * target.c (update_current_target): Don't inherit or default
8862 to_get_tracepoint_status.
8863 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8864 TARGET_DEFAULT_NORETURN.
8865
4072d4ff
TT
88662014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (update_current_target): Don't inherit or default
8870 to_get_trace_status.
8871 * target.h (struct target_ops) <to_get_trace_status>: Use
8872 TARGET_DEFAULT_RETURN.
8873
25da2e80
TT
88742014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (update_current_target): Don't inherit or default
8878 to_trace_start.
8879 * target.h (struct target_ops) <to_trace_start>: Use
8880 TARGET_DEFAULT_NORETURN.
8881
86dd181d
TT
88822014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target-delegates.c: Rebuild.
8885 * target.c (update_current_target): Don't inherit or default
8886 to_trace_set_readonly_regions.
8887 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8888 Use TARGET_DEFAULT_NORETURN.
8889
05c41993
TT
88902014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target-delegates.c: Rebuild.
8893 * target.c (update_current_target): Don't inherit or default
8894 to_disable_tracepoint.
8895 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8896 TARGET_DEFAULT_NORETURN.
8897
151f70f1
TT
88982014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8902 to_enable_tracepoint.
8903 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8904 TARGET_DEFAULT_NORETURN.
8905
94eb98b9
TT
89062014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8910 to_download_trace_state_variable.
8911 * target.h (struct target_ops) <to_download_trace_state_variable>:
8912 Use TARGET_DEFAULT_NORETURN.
8913
719acc4a
TT
89142014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8918 to_can_download_tracepoint.
8919 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8920 TARGET_DEFAULT_RETURN.
8921
9a980a22
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target-delegates.c: Rebuild.
8925 * target.c (update_current_target): Don't inherit or default
8926 to_download_tracepoint.
8927 * target.h (struct target_ops) <to_download_tracepoint>: Use
8928 TARGET_DEFAULT_NORETURN.
8929
5536135b
TT
89302014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_trace_init.
8935 * target.h (struct target_ops) <to_trace_init>: Use
8936 TARGET_DEFAULT_RETURN.
8937
9409d39e
TT
89382014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_supports_string_tracing.
8943 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8944 TARGET_DEFAULT_RETURN.
8945
aab1b22d
TT
89462014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_supports_enable_disable_tracepoint.
8951 * target.h (struct target_ops)
8952 <to_supports_enable_disable_tracepoint>: Use
8953 TARGET_DEFAULT_RETURN.
8954
a7304748
TT
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (update_current_target): Don't inherit or default
8959 to_supports_multi_process.
8960 * target.h (struct target_ops) <to_supports_multi_process>: Use
8961 TARGET_DEFAULT_RETURN.
8962
4229b31d
TT
89632014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_get_ada_task_ptid.
8968 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8969 TARGET_DEFAULT_FUNC.
8970
43eba180
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_thread_architecture.
8976 * target.h (struct target_ops) <to_thread_architecture>: Use
8977 TARGET_DEFAULT_FUNC.
8978
fe31bf5b
TT
89792014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_execution_direction.
8984 * target.h (struct target_ops) <to_execution_direction>: Use
8985 TARGET_DEFAULT_FUNC.
8986
53e1cfc7
TT
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_can_execute_reverse.
8992 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8993 TARGET_DEFAULT_RETURN.
8994 (target_can_execute_reverse): Unconditionally delegate.
8995
9bb9d61d
TT
89962014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_goto_bookmark.
9001 (dummy_goto_bookmark): Remove.
9002 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9003 * target.h (struct target_ops) <to_goto_bookmark>: Use
9004 TARGET_DEFAULT_NORETURN.
9005
3dbafbbb
TT
90062014-02-19 Tom Tromey <tromey@redhat.com>
9007
9008 * target-delegates.c: Rebuild.
9009 * target.c (update_current_target): Don't inherit or default
9010 to_get_bookmark.
9011 (dummy_get_bookmark): Remove.
9012 (init_dummy_target): Don't inherit or default to_get_bookmark.
9013 * target.h (struct target_ops) <to_get_bookmark>: Use
9014 TARGET_DEFAULT_NORETURN
9015
16f796b1
TT
90162014-02-19 Tom Tromey <tromey@redhat.com>
9017
9018 * target-delegates.c: Rebuild.
9019 * target.c (update_current_target): Don't inherit or default
9020 to_make_corefile_notes.
9021 (init_dummy_target): Don't initialize to_make_corefile_notes.
9022 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9023 TARGET_DEFAULT_FUNC.
9024
0b5a2719
TT
90252014-02-19 Tom Tromey <tromey@redhat.com>
9026
9027 * target-delegates.c: Rebuild.
9028 * target.c (update_current_target): Don't inherit or default
9029 to_find_memory_regions.
9030 (init_dummy_target): Don't initialize to_find_memory_regions.
9031 * target.h (struct target_ops) <to_find_memory_regions>: Use
9032 TARGET_DEFAULT_FUNC.
9033
d9cb0195
TT
90342014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9038 to_log_command.
9039 * target.h (struct target_ops) <to_log_command>: Use
9040 TARGET_DEFAULT_IGNORE.
9041 (target_log_command): Unconditionally delegate.
9042
830ca330
TT
90432014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't inherit or default
9047 to_pid_to_exec_file.
9048 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9049 TARGET_DEFAULT_RETURN.
9050
825828fc
TT
90512014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_thread_name.
9056 (target_thread_name): Unconditionally delegate.
9057 * target.h (struct target_ops) <to_thread_name>: Use
9058 TARGET_DEFAULT_RETURN.
9059
4a7e6dda
TT
90602014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target-delegates.c: Rebuild.
9063 * target.c (update_current_target): Don't inherit or default
9064 to_extra_thread_info.
9065 * target.h (struct target_ops) <to_extra_thread_info>: Use
9066 TARGET_DEFAULT_RETURN.
9067
0db88c1d
TT
90682014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * target-delegates.c: Rebuild.
9071 * target.c (update_current_target): Don't inherit or default
9072 to_has_exited.
9073 * target.h (struct target_ops) <to_has_exited>: Use
9074 TARGET_DEFAULT_RETURN..
9075
6a9fa051
TT
90762014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_set_syscall_catchpoint.
9081 (return_one): Remove.
9082 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9083 TARGET_DEFAULT_RETURN.
9084
62f64d7a
TT
90852014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target-delegates.c: Rebuild.
9088 * target.c (update_current_target): Don't inherit or default
9089 to_insert_exec_catchpoint.
9090 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9091 TARGET_DEFAULT_RETURN.
9092
cda0f38c
TT
90932014-01-08 Tom Tromey <tromey@redhat.com>
9094
9095 * target-delegates.c: Rebuild.
9096 * target.c (update_current_target): Don't inherit or default
9097 to_insert_exec_catchpoint.
9098 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9099 TARGET_DEFAULT_RETURN.
9100
95c3375e
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't inherit or default
9105 to_remove_vfork_catchpoint.
9106 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9107 TARGET_DEFAULT_RETURN.
9108
7e18a8dc
TT
91092014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_insert_vfork_catchpoint.
9114 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9115 TARGET_DEFAULT_RETURN.
9116
e1a21fb7
TT
91172014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9121 to_remove_fork_catchpoint.
9122 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9123 TARGET_DEFAULT_RETURN.
9124
5958ebeb
TT
91252014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_insert_fork_catchpoint.
9130 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9131 TARGET_DEFAULT_RETURN.
9132
340ba4bf
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_post_startup_inferior.
9138 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9139 TARGET_DEFAULT_IGNORE.
9140
7634da87
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_load.
9146 * target.h (struct target_ops) <to_load>: Use
9147 TARGET_DEFAULT_NORETURN.
9148
e19e919f
TT
91492014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_terminal_info.
9154 * target.h (struct target_ops) <to_terminal_info>: Use
9155 TARGET_DEFAULT_FUNC.
9156
c6ea8f79
TT
91572014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9161 to_terminal_save_ours.
9162 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9163 TARGET_DEFAULT_IGNORE.
9164
e4a733f1
TT
91652014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_terminal_ours.
9170 * target.h (struct target_ops) <to_terminal_ours>: Use
9171 TARGET_DEFAULT_IGNORE.
9172
74fcbef9
TT
91732014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_terminal_ours_for_output.
9178 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9179 TARGET_DEFAULT_IGNORE.
9180
ddeaacc9
TT
91812014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9185 to_terminal_inferior.
9186 * target.h (struct target_ops) <to_terminal_inferior>: Use
9187 TARGET_DEFAULT_IGNORE.
9188
0343661d
TT
91892014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_terminal_init.
9194 * target.h (struct target_ops) <to_terminal_init>: Use
9195 TARGET_DEFAULT_IGNORE.
9196
77cdffe9
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_can_accel_watchpoint_condition.
9202 * target.h (struct target_ops)
9203 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9204
d03655e4
TT
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_region_ok_for_hw_watchpoint.
9210 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9211 Use TARGET_DEFAULT_FUNC.
9212
65f160a9
TT
92132014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_watchpoint_addr_within_range.
9218 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9219 Use TARGET_DEFAULT_FUNC.
9220
61dd109f
TT
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_remove_watchpoint.
9226 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9227 TARGET_DEFAULT_NORETURN.
9228
016facd4
TT
92292014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_insert_watchpoint.
9234 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9235 TARGET_DEFAULT_RETURN.
9236
418dabac
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target-delegates.c: Rebuild.
9240 * target.c (update_current_target): Don't inherit or default
9241 to_remove_hw_breakpoint.
9242 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9243 TARGET_DEFAULT_RETURN.
9244
61b371f9
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_insert_hw_breakpoint.
9250 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9251 TARGET_DEFAULT_RETURN.
9252
52b51d06
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_can_use_hw_breakpoint.
9258 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9259 TARGET_DEFAULT_RETURN.
9260
f86e59b2
TT
92612014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_files_info.
9266 * target.h (struct target_ops) <to_files_info>: Use
9267 TARGET_DEFAULT_IGNORE.
9268
6c628163
TT
92692014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_store.
9274 * target.h (struct target_ops) <to_store>: Use
9275 TARGET_DEFAULT_NORETURN.
9276
bebd3233
TT
92772014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_post_attach.
9282 * target.h (struct target_ops) <to_post_attach>: Use
9283 TARGET_DEFAULT_IGNORE.
9284
a53f3625
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9289 to_rcmd.
9290 (default_rcmd): New function.
9291 (do_monitor_command): Unconditionally delegate.
9292 * target.h (struct target_ops) <to_rmcd>: Use
9293 TARGET_DEFAULT_FUNC.
9294
e9a29200
TT
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (init_dummy_target): Don't initialize to_attach.
9299 (target_attach): Unconditionally delegate.
9300 * target.h (struct target_ops) <to_attach>: Use
9301 TARGET_DEFAULT_FUNC.
9302
09da0d0a
TT
93032014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (target_detach): Unconditionally delegate.
9307 (init_dummy_target): Don't initialize to_detach.
9308 * target.h (struct target_ops) <to_detach>: Use
9309 TARGET_DEFAULT_IGNORE.
9310
5436ff03
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9314 Add argument.
9315 (target_augmented_libraries_svr4_read): Add argument.
9316 * target.c (update_current_target): Update.
9317 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9318 argument.
9319
f0d960ea
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops) <to_call_history_range>: Add
9323 argument.
9324 * target.c (target_call_history_range): Add argument.
9325 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9326 argument.
9327 (record_btrace_call_history_from): Update.
9328
ec0aea04
TT
93292014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target.h (struct target_ops) <to_call_history_from>: Add
9332 argument.
9333 * target.c (target_call_history_from): Add argument.
9334 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9335 argument.
9336
5df2fcba
TT
93372014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target.h (struct target_ops) <to_call_history>: Add argument.
9340 * target.c (target_call_history): Add argument.
9341 * record-btrace.c (record_btrace_call_history): Add 'self'
9342 argument.
9343
4e99c6b7
TT
93442014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target.h (struct target_ops) <to_insn_history_range>: Add
9347 argument.
9348 * target.c (target_insn_history_range): Add argument.
9349 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9350 argument.
9351 (record_btrace_insn_history_from): Update.
9352
9abc3ff3
TT
93532014-02-19 Tom Tromey <tromey@redhat.com>
9354
9355 * target.h (struct target_ops) <to_insn_history_from>: Add
9356 argument.
9357 * target.c (target_insn_history_from): Add argument.
9358 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9359 argument.
9360
7a6c5609
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_insn_history>: Add argument.
9364 * target.c (target_insn_history): Add argument.
9365 * record-btrace.c (record_btrace_insn_history): Add 'self'
9366 argument.
9367
606183ac
TT
93682014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops) <to_goto_record>: Add argument.
9371 * target.c (target_goto_record): Add argument.
9372 * record-full.c (record_full_goto): Add 'self' argument.
9373 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9374
307a1b91
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9378 * target.c (target_goto_record_end): Add argument.
9379 * record-full.c (record_full_goto_end): Add 'self' argument.
9380 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9381
08475817
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_goto_record_begin>: Add
9385 argument.
9386 * target.c (target_goto_record_begin): Add argument.
9387 * record-full.c (record_full_goto_begin): Add 'self' argument.
9388 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9389 argument.
9390
1c63c994
TT
93912014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target.h (struct target_ops) <to_record_is_replaying>: Add
9394 argument.
9395 * target.c (target_record_is_replaying): Add argument.
9396 * record-full.c (record_full_is_replaying): Add 'self' argument.
9397 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9398 argument.
9399 (record_btrace_xfer_partial, record_btrace_store_registers)
9400 (record_btrace_prepare_to_store, record_btrace_resume)
9401 (record_btrace_wait, record_btrace_decr_pc_after_break)
9402 (record_btrace_find_new_threads, record_btrace_thread_alive):
9403 Update.
9404
d1b55219
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops) <to_delete_record>: Add argument.
9408 * target.c (target_delete_record): Add argument.
9409 * record-full.c (record_full_delete): Add 'self' argument.
9410
1390f529
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_save_record>: Add argument.
9414 * target.c (target_save_record): Add argument.
9415 * record-full.c (record_full_save): Add 'self' argument.
9416 (record_full_save): Add 'self' argument.
9417
630d6a4a
TT
94182014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_info_record>: Add argument.
9421 * target.c (target_info_record): Add argument.
9422 * record.c (info_record_command): Add argument.
9423 * record-full.c (record_full_info): Add 'self' argument.
9424 * record-btrace.c (record_btrace_info): Add 'self' argument.
9425
c6cd7c02
TT
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9429 * target.c (target_stop_recording): Add argument.
9430 * record.c (record_stop): Add argument.
9431 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9432 argument.
9433
39c49f83
TT
94342014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9437 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9438 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9439 argument.
9440 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9441 (_initialize_amd64_linux_nat): Use it.
9442 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9443 (_initialize_i386_linux_nat): Use it.
9444
1777056d
TT
94452014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9448 * target.c (target_teardown_btrace): Add argument.
9449 * remote.c (remote_teardown_btrace): Add 'self' argument.
9450 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9451 argument.
9452 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9453 argument.
9454
25e95349
TT
94552014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9458 * target.c (target_disable_btrace): Add argument.
9459 * remote.c (remote_disable_btrace): Add 'self' argument.
9460 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9461 argument.
9462 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9463 argument.
9464
e3c49f88
TT
94652014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9468 * target.c (target_enable_btrace): Add argument.
9469 * remote.c (remote_enable_btrace): Add 'self' argument.
9470 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9471 argument.
9472 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9473 argument.
9474
fe38f897
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9478 (target_can_use_agent): Add argument.
9479 * target.c (update_current_target): Update.
9480 * remote.c (remote_can_use_agent): Add 'self' argument.
9481 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9482
2c152180
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops) <to_use_agent>: Add argument.
9486 (target_use_agent): Add argument.
9487 * target.c (update_current_target): Update.
9488 * remote.c (remote_use_agent): Add 'self' argument.
9489 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9490
a893e81f
TT
94912014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9494 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9495 (target_traceframe_info): Add argument.
9496 * target.c (update_current_target): Update.
9497 * remote.c (remote_traceframe_info): Add 'self' argument.
9498 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9499
c686c57f
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (target_static_tracepoint_markers_by_strid): Add
9503 argument.
9504 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9505 'self' argument.
9506 * target.c (update_current_target): Update.
9507 * remote.c (struct target_ops)
9508 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9509 * linux-nat.c (struct target_ops)
9510 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9511
61fc905d
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9515 Add argument.
9516 (target_static_tracepoint_marker_at): Add argument.
9517 * target.c (update_current_target): Update.
9518 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9519 argument.
9520
c378d69d
TT
95212014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9524 (target_set_permissions): Add argument.
9525 * target.c (update_current_target): Update.
9526 * remote.c (remote_set_permissions): Add 'self' argument.
9527 (remote_start_remote): Update.
9528
bd7ae0f5
TT
95292014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9532 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9533 (target_get_tib_address): Add argument.
9534 * target.c (update_current_target): Update.
9535 * remote.c (remote_get_tib_address): Add 'self' argument.
9536
d9e68a2c
TT
95372014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9540 (target_set_trace_notes): Add argument.
9541 * target.c (update_current_target): Update.
9542 * remote.c (remote_set_trace_notes): Add 'self' argument.
9543
4da384be
TT
95442014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9547 argument.
9548 (target_set_trace_buffer_size): Add argument.
9549 * target.c (update_current_target): Update.
9550 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9551
736d5b1f
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9555 argument.
9556 (target_set_circular_trace_buffer): Add argument.
9557 * target.c (update_current_target): Update.
9558 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9559 argument.
9560
37b25738
TT
95612014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9564 argument.
9565 (target_set_disconnected_tracing): Add argument.
9566 * target.c (update_current_target): Update.
9567 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9568
0e67620a
TT
95692014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops)
9572 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9573 (target_get_min_fast_tracepoint_insn_len): Add argument.
9574 * target.c (update_current_target): Update.
9575 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9576 argument.
9577
88ee6f45
TT
95782014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9581 argument.
9582 (target_get_raw_trace_data): Add argument.
9583 * target.c (update_current_target): Update.
9584 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9585
181e3713
TT
95862014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9589 Add argument.
9590 (target_upload_trace_state_variables): Add argument.
9591 * target.c (update_current_target): Update.
9592 * remote.c (remote_upload_trace_state_variables): Add 'self'
9593 argument.
9594 (remote_start_remote): Update.
9595
ab6617cc
TT
95962014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9599 argument.
9600 (target_upload_tracepoints): Add argument.
9601 * target.c (update_current_target): Update.
9602 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9603 (remote_start_remote): Update.
9604
dc3decaf
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9608 (target_save_trace_data): Add argument.
9609 * target.c (update_current_target): Update.
9610 * remote.c (remote_save_trace_data): Add 'self' argument.
9611
4011015b
TT
96122014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9615 argument.
9616 * target.h (struct target_ops)
9617 <to_get_trace_state_variable_value>: Add argument.
9618 (target_get_trace_state_variable_value): Add argument.
9619 * target.c (update_current_target): Update.
9620 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9621 argument.
9622 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9623
bd4c6793
TT
96242014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9627 * target.h (struct target_ops) <to_trace_find>: Add argument.
9628 (target_trace_find): Add argument.
9629 * target.c (update_current_target): Update.
9630 * remote.c (remote_trace_find): Add 'self' argument.
9631 * ctf.c (ctf_trace_find): Add 'self' argument.
9632
74499f1b
TT
96332014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9636 (target_trace_stop): Add argument.
9637 * target.c (update_current_target): Update.
9638 * remote.c (remote_trace_stop): Add 'self' argument.
9639
db90e85c
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9643 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9644 argument.
9645 (target_get_tracepoint_status): Add argument.
9646 * target.c (update_current_target): Update.
9647 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9648
8bd200f1
TT
96492014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9652 * target.h (struct target_ops) <to_get_trace_status>: Add
9653 argument.
9654 (target_get_trace_status): Add argument.
9655 * target.c (update_current_target): Update.
9656 * remote.c (remote_get_trace_status): Add 'self' argument.
9657 (remote_start_remote, remote_can_download_tracepoint): Update.
9658 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9659
e2d1aae3
TT
96602014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_trace_start>: Add argument.
9663 (target_trace_start): Add argument.
9664 * target.c (update_current_target): Update.
9665 * remote.c (remote_trace_start): Add 'self' argument.
9666
583f9a86
TT
96672014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9670 Add argument.
9671 (target_trace_set_readonly_regions): Add argument.
9672 * target.c (update_current_target): Update.
9673 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9674 argument.
9675
780b049c
TT
96762014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9679 argument.
9680 (target_disable_tracepoint): Add argument.
9681 * target.c (update_current_target): Update.
9682 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9683
46670d57
TT
96842014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9687 argument.
9688 (target_enable_tracepoint): Add argument.
9689 * target.c (update_current_target): Update.
9690 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9691
559d2b81
TT
96922014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_download_trace_state_variable>:
9695 Add argument.
9696 (target_download_trace_state_variable): Add argument.
9697 * target.c (update_current_target): Update.
9698 * remote.c (remote_download_trace_state_variable): Add 'self'
9699 argument.
9700
a52a8357
TT
97012014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9704 argument.
9705 (target_can_download_tracepoint): Add argument.
9706 * target.c (update_current_target): Update.
9707 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9708
548f7808
TT
97092014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target.h (struct target_ops) <to_download_tracepoint>: Add
9712 argument.
9713 (target_download_tracepoint): Add argument.
9714 * target.c (update_current_target): Update.
9715 * remote.c (remote_download_tracepoint): Add 'self' argument.
9716
ecae04e1
TT
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target.h (struct target_ops) <to_trace_init>: Add argument.
9720 (target_trace_init): Add argument.
9721 * target.c (update_current_target): Update.
9722 * remote.c (remote_trace_init): Add 'self' argument.
9723
fab5aa7c
TT
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9727 * target.c (target_fileio_readlink): Add argument.
9728 * remote.c (remote_hostio_readlink): Add 'self' argument.
9729 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9730
dbbca37d
TT
97312014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9734 * target.c (target_fileio_unlink): Add argument.
9735 * remote.c (remote_hostio_unlink): Add 'self' argument.
9736 (remote_file_delete): Update.
9737 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9738
df39ea25
TT
97392014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9742 * target.c (target_fileio_close): Add argument.
9743 * remote.c (remote_hostio_close): Add 'self' argument.
9744 (remote_hostio_close_cleanup): Update.
9745 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9746 Update.
9747 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9748
a3be983c
TT
97492014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9752 * target.c (target_fileio_pread): Add argument.
9753 * remote.c (remote_hostio_pread): Add 'self' argument.
9754 (remote_bfd_iovec_pread, remote_file_get): Update.
9755 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9756
0d866f62
TT
97572014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9760 * target.c (target_fileio_pwrite): Add argument.
9761 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9762 (remote_file_put): Update.
9763 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9764
cd897586
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9768 * target.c (target_fileio_open): Add argument.
9769 * remote.c (remote_hostio_open): Add 'self' argument.
9770 (remote_bfd_iovec_open): Add 'self' argument.
9771 (remote_file_put): Add 'self' argument.
9772 (remote_file_get): Add 'self' argument.
9773 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9774
78eff0ec
TT
97752014-02-19 Tom Tromey <tromey@redhat.com>
9776
9777 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9778 Add argument.
9779 (target_can_run_breakpoint_commands): Add argument.
9780 * target.c (update_current_target): Update.
9781 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9782 argument.
9783 (remote_insert_breakpoint): Add 'self' argument.
9784 (remote_insert_hw_breakpoint): Add 'self' argument.
9785 (remote_can_run_breakpoint_commands): Add 'self' argument.
9786
efcc2da7
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops)
9790 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9791 (target_supports_evaluation_of_breakpoint_conditions): Add
9792 argument.
9793 * target.c (update_current_target): Update.
9794 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9795 argument.
9796 (remote_insert_breakpoint): Add 'self' argument.
9797 (remote_insert_hw_breakpoint): Add 'self' argument.
9798 (remote_supports_cond_breakpoints): Add 'self' argument.
9799
6de37a3a
TT
98002014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9803 argument.
9804 (target_supports_string_tracing): Add argument.
9805 * target.c (update_current_target): Update.
9806 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9807
2bfc0540
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target.h (struct target_ops)
9811 <to_supports_disable_randomization>: Add argument.
9812 * target.c (find_default_supports_disable_randomization): Add
9813 argument.
9814 (target_supports_disable_randomization): Add argument.
9815 (find_default_supports_disable_randomization): Add 'self'
9816 argument.
9817 * remote.c (extended_remote_supports_disable_randomization): Add
9818 'self' argument.
9819 (remote_supports_disable_randomization): Add 'self' argument.
9820 (extended_remote_create_inferior): Update.
9821 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9822 'self' argument.
9823
7d178d6a
TT
98242014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * target.h (struct target_ops)
9827 <to_supports_enable_disable_tracepoint>: Add argument.
9828 (target_supports_enable_disable_tracepoint): Add argument.
9829 * target.c (update_current_target): Update.
9830 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9831 argument.
9832
86ce2668
TT
98332014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target.h (struct target_ops) <to_supports_multi_process>: Add
9836 argument.
9837 (target_supports_multi_process): Add argument.
9838 * target.c (update_current_target): Update.
9839 * remote.c (remote_supports_multi_process): Add 'self' argument.
9840 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9841 argument.
9842 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9843 argument.
9844
4c612759
TT
98452014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_execution_direction>: Add
9848 argument.
9849 (target_execution_direction): Add argument.
9850 * target.c (default_execution_direction): Add 'self' argument.
9851 * record-full.c (record_full_execution_direction): Add 'self'
9852 argument.
9853
19db3e69
TT
98542014-02-19 Tom Tromey <tromey@redhat.com>
9855
9856 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9857 argument.
9858 (target_can_execute_reverse): Add argument.
9859 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9860 * record-full.c (record_full_can_execute_reverse): Add 'self'
9861 argument.
9862 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9863 argument.
9864
1e6b91a4
TT
98652014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9868 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9869 argument.
9870 (target_get_ada_task_ptid): Add argument.
9871 * target.c (update_current_target): Update.
9872 (default_get_ada_task_ptid): Add 'self' argument.
9873 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9874 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9875 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9876 argument.
9877 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9878 argument.
9879 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9880 argument.
9881 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9882 argument.
9883 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9884 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9885 argument.
9886
3c80fb48
TT
98872014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9890 (target_goto_bookmark): Add argument.
9891 * target.c (dummy_goto_bookmark): Add 'self' argument.
9892 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9893
dd0e2830
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9897 (target_get_bookmark): Add argument.
9898 * target.c (dummy_get_bookmark): Add 'self' argument.
9899 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9900
fc6691b2
TT
99012014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9904 argument.
9905 (target_make_corefile_notes): Add argument.
9906 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9907 * procfs.c (procfs_make_note_section): Add 'self' argument.
9908 (procfs_make_note_section): Add 'self' argument.
9909 (procfs_make_note_section): Add 'self' argument.
9910 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9911 argument.
9912 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9913 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9914 * exec.c (exec_make_note_section): Add 'self' argument.
9915 (exec_make_note_section): Add 'self' argument.
9916
2e73927c
TT
99172014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target.h (struct target_ops) <to_find_memory_regions>: Add
9920 argument.
9921 (target_find_memory_regions): Add argument.
9922 * target.c (dummy_find_memory_regions): Add 'self' argument.
9923 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9924 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9925 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9926 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9927 * exec. (exec_do_find_memory_regions): New global.
9928 (exec_set_find_memory_regions): Rewrite.
9929 (exec_find_memory_regions): New function.
9930 (init_exec_ops): Use exec_find_memory_regions.
9931
2a9a2795
TT
99322014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target.h (struct target_ops) <to_supports_non_stop>: Add
9935 argument.
9936 * target.c (find_default_supports_non_stop): Add argument.
9937 (target_supports_non_stop): Add argument.
9938 (find_default_supports_non_stop): Add 'self' argument.
9939 * remote.c (remote_supports_non_stop): Add 'self' argument.
9940 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9941
4ab76ea3
TT
99422014-02-19 Tom Tromey <tromey@redhat.com>
9943
9944 * target.h (struct target_ops) <to_log_command>: Add argument.
9945 (target_log_command): Add argument.
9946 * serial.h (serial_log_command): Add 'self' argument.
9947 * serial.c (serial_log_command): Add 'self' argument.
9948
8dd27370
TT
99492014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9952 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9953 argument.
9954 (target_pid_to_exec_file): Add argument.
9955 * target.c (debug_to_pid_to_exec_file): Add argument.
9956 (update_current_target): Update.
9957 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9958 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9959 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9960 (linux_handle_extended_wait): Update.
9961 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9962 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9963 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9964 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9965
1aac633b
TT
99662014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target.h (struct target_ops) <to_rcmd>: Add argument.
9969 (target_rcmd): Add argument.
9970 * target.c (debug_to_rcmd): Add argument.
9971 (update_current_target, do_monitor_command): Update.
9972 * remote.c (remote_rcmd): Add 'self' argument.
9973 * monitor.c (monitor_rcmd): Add 'self' argument.
9974
1eab8a48
TT
99752014-02-19 Tom Tromey <tromey@redhat.com>
9976
9977 * windows-nat.c (windows_stop): Add 'self' argument.
9978 * target.h (struct target_ops) <to_stop>: Add argument.
9979 * target.c (target_stop): Add argument.
9980 (debug_to_stop): Add argument.
9981 (update_current_target): Update.
9982 * remote.c (remote_stop): Add 'self' argument.
9983 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9984 (gdbsim_cntrl_c): Update.
9985 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9986 * procfs.c (procfs_stop): Add 'self' argument.
9987 * nto-procfs.c (procfs_stop): Add 'self' argument.
9988 * monitor.c (monitor_stop): Add 'self' argument.
9989 (monitor_open): Update.
9990 * linux-nat.c (linux_nat_stop): Add argument.
9991 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9992 * gnu-nat.c (gnu_stop): Add 'self' argument.
9993 * darwin-nat.c (darwin_stop): Add 'self' argument.
9994
503a628d
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target.h (struct target_ops) <to_thread_name>: Add argument.
9998 * target.c (target_thread_name): Add argument.
9999 (update_current_target): Update.
10000 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10001
c15906d8
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target.h (struct target_ops) <to_extra_thread_info>: Add
10005 argument.
10006 (target_extra_thread_info): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_threads_extra_info): Add 'self' argument.
10009 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10010 argument.
10011 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10012 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10013 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10014 argument.
10015 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10016 argument.
10017 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10018 argument.
10019 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10020 argument.
10021
daf5e9b6
TT
100222014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target.h (struct target_ops) <to_program_signals>: Add argument.
10025 * target.c (target_program_signals): Add argument.
10026 * remote.c (remote_program_signals): Add 'self' argument.
10027
94bedb42
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10031 * target.c (target_pass_signals): Add argument.
10032 * remote.c (remote_pass_signals): Add 'self' argument.
10033 (remote_start_remote): Update.
10034 * procfs.c (procfs_pass_signals): Add 'self' argument.
10035 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10036 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10037 (linux_nat_create_inferior, linux_nat_attach): Update.
10038
da82bd6b
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * windows-nat.c (windows_can_run): Add 'self' argument.
10042 * target.h (struct target_ops) <to_can_run>: Add argument.
10043 (target_can_run): Add argument.
10044 * target.c (debug_to_can_run): Add argument.
10045 (update_current_target): Update.
10046 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10047 * inf-child.c (inf_child_can_run): Add 'self' argument.
10048 * go32-nat.c (go32_can_run): Add 'self' argument.
10049
d796e1d6
TT
100502014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target.h (struct target_ops) <to_has_exited>: Add argument.
10053 (target_has_exited): Add argument.
10054 * target.c (debug_to_has_exited): Add argument.
10055 (update_current_target): Update.
10056
ff214e67
TT
100572014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10060 argument.
10061 (target_set_syscall_catchpoint): Add argument.
10062 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10063 argument.
10064 * target.c (update_current_target): Update.
10065
758e29d2
TT
100662014-02-19 Tom Tromey <tromey@redhat.com>
10067
10068 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10069 argument.
10070 (target_remove_exec_catchpoint): Add argument.
10071 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10072 (update_current_target): Update.
10073 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10074 argument.
10075
ba025e51
TT
100762014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10079 argument.
10080 (target_insert_exec_catchpoint): Add argument.
10081 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10082 (update_current_target): Update.
10083 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10084 argument.
10085
e98cf0cd
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10089 argument.
10090 (target_remove_vfork_catchpoint): Add argument.
10091 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10092 (update_current_target): Update.
10093 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10094 argument.
10095
3ecc7da0
TT
100962014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10099 argument.
10100 (target_insert_vfork_catchpoint): Add argument.
10101 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10102 (update_current_target): Update.
10103 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10104 argument.
10105
973fc227
TT
101062014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10109 argument.
10110 (target_remove_fork_catchpoint): Add argument.
10111 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10112 (update_current_target): Update.
10113 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10114 argument.
10115
a863b201
TT
101162014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10119 argument.
10120 (target_insert_fork_catchpoint): Add argument.
10121 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10122 (update_current_target): Update.
10123 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10124 argument.
10125
2e97a79e
TT
101262014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10129 argument.
10130 (target_post_startup_inferior): Add argument.
10131 * target.c (debug_to_post_startup_inferior): Add argument.
10132 (update_current_target): Update.
10133 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10134 argument.
10135 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10136 argument.
10137 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10138 argument.
10139 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10140 argument.
10141 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10142 'self' argument.
10143 (super_post_startup_inferior): Likewise.
10144 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10145 'self' argument.
10146 (super_post_startup_inferior): Likewise.
10147 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10148 Add 'self' argument.
10149 (super_post_startup_inferior): Likewise.
10150
71a9f134
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target.h (struct target_ops) <to_load>: Add argument.
10154 * target.c (target_load): Add argument.
10155 (debug_to_load): Add argument.
10156 (update_current_target): Update.
10157 * remote.c (remote_load): Add 'self' argument.
10158 * remote-sim.c (gdbsim_load): Add 'self' argument.
10159 * remote-mips.c (mips_load): Add 'self' argument.
10160 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10161 * monitor.c (monitor_load): Add 'self' argument.
10162 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10163
0a4f40a2
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10167 (target_terminal_info): Add argument.
10168 * target.c (debug_to_terminal_info): Add argument.
10169 (default_terminal_info): Likewise.
10170 * inflow.c (child_terminal_info): Add 'self' argument.
10171 * inferior.h (child_terminal_info): Add 'self' argument.
10172 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10173
ae3bd431
TT
101742014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10177 argument.
10178 (target_terminal_save_ours): Add argument.
10179 * target.c (debug_to_terminal_save_ours): Add argument.
10180 (update_current_target): Update.
10181 * inflow.c (terminal_save_ours): Add 'self' argument.
10182 * inferior.h (terminal_save_ours): Add 'self' argument.
10183
e3594fd1
TT
101842014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10187 (target_terminal_ours): Add argument.
10188 * target.c (debug_to_terminal_ours): Add argument.
10189 (update_current_target): Update.
10190 * remote.c (remote_terminal_ours): Add 'self' argument.
10191 (remote_close): Update.
10192 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10193 * inflow.c (terminal_ours): Add 'self' argument.
10194 * inferior.h (terminal_ours): Add 'self' argument.
10195 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10196
2e1e1a19
TT
101972014-02-19 Pedro Alves <palves@redhat.com>
10198 Tom Tromey <tromey@redhat.com>
10199
10200 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10201 argument.
10202 (target_terminal_ours_for_output): Add argument.
10203 * target.c (debug_to_terminal_ours_for_output): Add argument.
10204 (update_current_target): Update.
10205 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10206 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10207 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10208
d2f640d4
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target.h (struct target_ops) <to_terminal_inferior>: Add
10212 argument.
10213 * target.c (target_terminal_inferior): Add argument.
10214 (update_current_target): Update.
10215 * remote.c (remote_terminal_inferior): Add 'self' argument.
10216 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10217 * inflow.c (terminal_inferior): Add 'self' argument.
10218 * inferior.h (terminal_inferior): Add 'self' argument.
10219 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10220 (go32_terminal_inferior): Add 'self' argument.
10221
c42bf286
TT
102222014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10225 (target_terminal_init): Add argument.
10226 * target.c (debug_to_terminal_init): Add argument.
10227 (update_current_target): Update.
10228 * inflow.c (terminal_init_inferior): Add 'self' argument.
10229 * inferior.h (terminal_init_inferior): Add 'self' argument.
10230 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10231 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10232
c3a5ff89
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops)
10236 <to_can_accel_watchpoint_condition>: Add argument.
10237 (target_can_accel_watchpoint_condition): Add argument.
10238 * target.c (debug_to_can_accel_watchpoint_condition): Add
10239 argument.
10240 (update_current_target): Update.
10241 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10242 'self' argument.
10243
31568a15
TT
102442014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10247 Add argument.
10248 (target_region_ok_for_hw_watchpoint): Add argument.
10249 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10250 (default_region_ok_for_hw_watchpoint): Add argument.
10251 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10252 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10253 argument.
10254 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10255 argument.
10256 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10257 argument.
10258 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10259 'self' argument.
10260 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10261 'self' argument.
10262 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10263 'self' argument.
10264 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10265 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10266 'self' argument.
10267 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10268 Add 'self' argument.
10269
7bb99c53
TT
102702014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10273 argument.
10274 (target_insert_watchpoint): Add argument.
10275 * target.c (debug_to_insert_watchpoint): Add argument.
10276 (update_current_target): Update.
10277 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10278 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10279 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10280 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10281 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10282 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10283 argument.
10284 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10285 (procfs_insert_hw_watchpoint): Add 'self' argument.
10286 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10287 argument.
10288 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10289 argument.
10290 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10291 argument.
10292 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10293 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10294 argument.
10295 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10296 'self' argument.
10297
11b5219a
TT
102982014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10301 argument.
10302 (target_remove_watchpoint): Add argument.
10303 * target.c (debug_to_remove_watchpoint): Add argument.
10304 (update_current_target): Update.
10305 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10306 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10307 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10308 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10309 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10310 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10311 argument.
10312 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10313 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10314 argument.
10315 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10316 argument.
10317 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10318 argument.
10319 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10320 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10321 argument.
10322 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10323 'self' argument.
10324
a64dc96c
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10328 argument.
10329 (target_remove_hw_breakpoint): Add argument.
10330 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10331 (update_current_target): Update.
10332 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10333 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10334 argument.
10335 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10336 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10337 argument.
10338 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10339 'self' argument.
10340
23a26771
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10344 argument.
10345 (target_insert_hw_breakpoint): Add argument.
10346 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10347 (update_current_target): Update.
10348 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10349 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10350 argument.
10351 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10352 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10353 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10354 argument.
10355 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10356 'self' argument.
10357
5461485a
TT
103582014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10361 argument.
10362 (target_can_use_hardware_watchpoint): Add argument.
10363 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10364 (update_current_target): Update.
10365 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10366 argument.
10367 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10368 argument.
10369 * remote.c (remote_check_watch_resources): Add 'self' argument.
10370 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10371 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10372 argument.
10373 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10374 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10375 argument.
10376 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10377 argument.
10378 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10379 argument.
10380 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10381 argument.
10382 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10383 argument.
10384 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10385 argument.
10386 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10387 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10388 argument.
10389 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10390 'self' argument.
10391
f045800c
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target.h (struct target_ops) <to_post_attach>: Add argument.
10395 (target_post_attach): Add argument.
10396 * target.c (debug_to_post_attach): Add argument.
10397 (update_current_target): Update.
10398 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10399 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10400 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10401 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10402 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10403
de90e03d
TT
104042014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * windows-nat.c (windows_close): Add 'self' argument.
10407 * tracepoint.c (tfile_close): Add 'self' argument.
10408 * target.h (struct target_ops) <to_close>: Add argument.
10409 * target.c (target_close): Add argument.
10410 (update_current_target): Update.
10411 * remote.c (remote_close): Add 'self' argument.
10412 * remote-sim.c (gdbsim_close): Add 'self' argument.
10413 * remote-mips.c (mips_close): Add 'self' argument.
10414 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10415 * record-full.c (record_full_close): Add 'self' argument.
10416 * record-btrace.c (record_btrace_close): Add 'self' argument.
10417 * monitor.h (monitor_close): Add 'self' argument.
10418 * monitor.c (monitor_close): Add 'self' argument.
10419 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10420 * linux-nat.c (linux_nat_close): Add argument.
10421 * go32-nat.c (go32_close): Add 'self' argument.
10422 * exec.c (exec_close_1): Add 'self' argument.
10423 * ctf.c (ctf_close): Add 'self' argument.
10424 * corelow.c (core_close): Add 'self' argument.
10425 (core_close_cleanup): Update.
10426 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10427 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10428
9dd130a0
TT
104292014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * remote.c (remote_load): New function.
10432 (init_remote_ops): Use it.
10433
46917d26
TT
104342014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10437 argument.
10438 * common/linux-btrace.h (linux_supports_btrace): Update.
10439 * remote.c (remote_supports_btrace): Add "self" argument.
10440 * target-delegates.c: Rebuild.
10441 * target.c (target_supports_btrace): Remove.
10442 * target.h (struct target_ops) <to_supports_btrace>: Add
10443 target_ops argument.
10444 (target_supports_btrace): New define.
10445
6b84065d
TT
104462014-02-19 Tom Tromey <tromey@redhat.com>
10447
10448 * record-full.c (record_full_beneath_to_resume_ops)
10449 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10450 (record_full_beneath_to_wait)
10451 (record_full_beneath_to_store_registers_ops)
10452 (record_full_beneath_to_store_registers)
10453 (record_full_beneath_to_xfer_partial_ops)
10454 (record_full_beneath_to_xfer_partial)
10455 (record_full_beneath_to_insert_breakpoint_ops)
10456 (record_full_beneath_to_insert_breakpoint)
10457 (record_full_beneath_to_remove_breakpoint_ops)
10458 (record_full_beneath_to_remove_breakpoint)
10459 (record_full_beneath_to_stopped_by_watchpoint)
10460 (record_full_beneath_to_stopped_data_address)
10461 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10462 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10463 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10464 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10465 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10466 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10467 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10468 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10469 (record_full_resume, record_full_wait_1)
10470 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10471 (record_full_store_registers, record_full_xfer_partial)
10472 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10473 (record_full_async, record_full_core_xfer_partial): Use target
10474 delegation.
10475 * target-delegates.c: Rebuild.
10476 * target.c (current_xfer_partial): Remove.
10477 (update_current_target): Do not INHERIT or de_fault
10478 to_insert_breakpoint, to_remove_breakpoint,
10479 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10480 to_is_async_p, to_async. Do not set to_xfer_partial field.
10481 (default_xfer_partial): Simplify.
10482 (current_xfer_partial): Remove.
10483 (target_wait, target_resume): Simplify.
10484 (find_default_can_async_p, find_default_is_async_p): Update.
10485 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10486 to_xfer_partial, to_stopped_by_watchpoint,
10487 to_stopped_data_address.
10488 (target_store_registers): Simplify.
10489 (forward_target_remove_breakpoint)
10490 (forward_target_insert_breakpoint): Remove.
10491 (target_remove_breakpoint, target_insert_breakpoint)
10492 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10493 * target.h (struct target_ops) <to_resume, to_wait,
10494 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10495 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10496 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10497 markup.
10498 (forward_target_remove_breakpoint)
10499 (forward_target_insert_breakpoint): Remove.
10500 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10501 directly.
10502 (record_btrace_insert_breakpoint): Delegate directly.
10503
1101cb7b
TT
105042014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 PR build/7701:
10507 * target-delegates.c: New file.
10508 * target.c: Include target-delegates.c.
10509 (init_dummy_target): Call install_dummy_methods.
10510 (complete_target_initialization): Call install_delegators.
10511 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10512 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10513 * make-target-delegates: New file.
10514
8b06beed
TT
105152014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * record.c (find_record_target): Use find_target_at.
10518 * target.c (find_target_at): New function.
10519 * target.h (find_target_at): Declare.
10520
6a109b6b
TT
105212014-02-19 Tom Tromey <tromey@redhat.com>
10522
10523 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10524 Add 'ops' argument.
10525 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10526 'ops' argument.
10527 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10528 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10529 'ops' argument.
10530 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10531 argument.
10532 * linux-nat.c (save_sigtrap): Update.
10533 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10534 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10535 (linux_nat_close): Update.
10536 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10537 argument.
10538 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10539 argument.
10540 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10541 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10542 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10543 (tmp_to_async): Add 'ops' argument.
10544 (record_full_stopped_by_watchpoint, record_full_async)
10545 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10546 argument.
10547 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10548 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10549 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10550 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10551 (remote_is_async_p, remote_async): Add 'ops' argument.
10552 (remote_stopped_data_address): Update.
10553 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10554 * target.c (update_current_target)
10555 (find_default_can_async_p, find_default_is_async_p): Update.
10556 (init_dummy_target): Update.
10557 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10558 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10559 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10560 (target_can_async_p, target_is_async_p, target_async)
10561 (target_stopped_by_watchpoint): Update.
10562
e095146b
YQ
105632014-02-19 Yao Qi <yao@codesourcery.com>
10564
10565 PR gdb/16220
10566 * gdbarch.sh: Remove startup_gdbarch.
10567 * gdbarch.c: Regenerated.
10568 * gdbarch.h: Likewise.
10569
bc3c6b36
KB
105702014-02-17 Kevin Buettner <kevinb@redhat.com>
10571
10572 * rl78-tdep.c (rl78_g10_register_name): New function.
10573 (rl78_return_value): Add g10 support.
10574 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10575 g10.
10576
98dc0167 105772014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10578
10579 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10580 (SUBDIR_GUILE_SRCS): Ditto.
10581 (scm-gsmob.o): Ditto.
10582
842c05cd
YQ
105832014-02-17 Yao Qi <yao@codesourcery.com>
10584
10585 * gnu-nat.c (ILL_RPC): Declare defined function.
10586
25c0bd04
YQ
105872014-02-17 Yao Qi <yao@codesourcery.com>
10588
10589 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10590 mach_msg_type_number_t.
10591 (gnu_write_inferior): Likewise.
10592
a9a758e3
YQ
105932014-02-17 Yao Qi <yao@codesourcery.com>
10594
10595 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10596 in format string.
10597 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10598 (inf_validate_procs, inf_signal): Likewise.
10599 (S_exception_raise_request): Likewise.
10600 (do_mach_notify_dead_name): Likewise.
10601 (steal_exc_port): Likewise.
10602 (gnu_read_inferior): Change 'copy_count''s type to
10603 mach_msg_type_number_t.
10604 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10605 format string.
10606
bae8023e
TS
106072014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10608
c82f56d9
TS
10609 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10610 flag. Adjust all users; in particular...
10611 (gnu_wait): ..., don't decrement its value in here...
10612 (gnu_create_inferior): ..., and instead set the flag in here,
10613 around the startup_inferior call, and call that one with
10614 START_INFERIOR_TRAPS_EXPECTED.
10615
3398af6a
TS
10616 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10617 (ILL_RPC): ... new macro.
10618 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10619 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10620 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10621 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10622 functions with ILL_RPC macro.
10623 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10624 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10625 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10626 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10627 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10628 (S_proc_getlogin_reply, S_proc_getsid_reply)
10629 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10630 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10631 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10632 (S_proc_getnports_reply, S_proc_is_important_reply)
10633 (S_proc_get_code_reply): New stub functions, generated with
10634 ILL_RPC macro.
10635
d47642c9
TS
10636 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10637 collected the type check structures.
10638
bae8023e
TS
10639 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10640
8a55ffb0
DE
106412014-02-14 Doug Evans <dje@google.com>
10642
10643 * target.c (target_write_partial): Fix result type.
10644
c2853f3d
JM
106452014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10646
10647 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10648 the proper offsets to access fpregset_t.
10649
ac61d2db
SA
106502014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10651
10652 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10653 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10654 * h8300-tdep.c (setmachinelist): Remove global.
10655 * hppa-tdep.c (hppa_sigtramp): Remove global.
10656 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10657 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10658 * ravenscar-thread.c (update_target_observer): Remove global.
10659 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10660
9d2d0b8b
TT
106612014-02-12 Tom Tromey <tromey@redhat.com>
10662
10663 * common/rsp-low.c: Update comments.
10664 * common/rsp-low.h: Update comments.
10665
a7191e8b
TT
106662014-02-12 Tom Tromey <tromey@redhat.com>
10667
10668 * common/rsp-low.c (convert_ascii_to_int): Remove.
10669 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10670
ff0e980e
TT
106712014-02-12 Tom Tromey <tromey@redhat.com>
10672
10673 * common/rsp-low.h (unhexify): Don't declare.
10674 * common/rsp-low.c (unhexify): Remove.
10675
e9371aff
TT
106762014-02-12 Tom Tromey <tromey@redhat.com>
10677
10678 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10679 * common/rsp-low.c (convert_int_to_ascii): Remove.
10680
971dc0b8
TT
106812014-02-12 Tom Tromey <tromey@redhat.com>
10682
10683 * common/rsp-low.h (hexify): Don't declare.
10684 * common/rsp-low.c (hexify): Remove.
10685
0a822afb
TT
106862014-02-12 Tom Tromey <tromey@redhat.com>
10687
10688 * common/rsp-low.c (hexify): Never take strlen of argument.
10689
9f1b45b0
TT
106902014-02-12 Tom Tromey <tromey@redhat.com>
10691
10692 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10693 * remote.c (extended_remote_run, remote_rcmd)
10694 (remote_download_trace_state_variable, remote_save_trace_data)
10695 (remote_set_trace_notes): Update.
10696 * tracepoint.c (encode_source_string, tfile_write_status)
10697 (tfile_write_uploaded_tsv): Update.
10698
9c3d6531
TT
106992014-02-12 Tom Tromey <tromey@redhat.com>
10700
10701 * tracepoint.c: Include rsp-low.h.
10702 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10703 * remote.c: Include rsp-low.h.
10704 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10705 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10706 (remote_unescape_input): Move to common/rsp-low.c.
10707 * common/rsp-low.h: New file.
10708 * common/rsp-low.c: New file.
10709 * Makefile.in (SFILES): Add common/rsp-low.c.
10710 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10711 (COMMON_OBS): Add rsp-low.o.
10712 (rsp-low.o): New target.
10713
01fd3ea5
TT
107142014-02-12 Tom Tromey <tromey@redhat.com>
10715
10716 * utils.h: Include print-utils.h.
10717 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10718 (int_string, core_addr_to_string, core_addr_to_string_nz)
10719 (hex_string, hex_string_custom): Don't declare.
10720 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10721 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10722 (hex_string_custom, int_string, core_addr_to_string)
10723 (core_addr_to_string_nz, host_address_to_string): Move to
10724 common/print-utils.c.
10725 * common/print-utils.h: New file.
10726 * common/print-utils.c: New file
10727 * Makefile.in (SFILES): Add common/print-utils.c.
10728 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10729 (COMMON_OBS): Add print-utils.o.
10730 (print-utils.o): New target.
10731
9fb50108
TT
107322014-02-12 Tom Tromey <tromey@redhat.com>
10733
10734 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10735
0548b5db
MK
107362014-02-12 Mark Kettenis <kettenis@gnu.org>
10737
10738 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10739
493443a4
MK
107402014-02-12 Mark Kettenis <kettenis@gnu.org>
10741
10742 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10743 if a PT_IO ptrace request returns sucessfully but indicates that 0
10744 bytes were transferred.
10745
706d0883
PA
107462014-02-12 Pedro Alves <palves@redhat.com>
10747 Kevin Buettner <kevinb@redhat.com>
10748
10749 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10750 TYPE_INSTANCE_FLAG_CODE_SPACE.
10751
5caa2f0b
PA
107522014-02-12 Pedro Alves <palves@redhat.com>
10753
10754 * h8300-tdep.c (pseudo_from_raw_register)
10755 (raw_from_pseudo_register): New functions.
10756 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10757 them.
10758
76fd5f74
PA
107592014-02-12 Pedro Alves <palves@redhat.com>
10760
10761 * h8300-tdep.c (h8300_register_sim_regno): New function.
10762 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10763 gdbarch_register_sim_regno hook.
10764
8f008406
SA
107652014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10766
10767 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10768
195abc10
SA
107692014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10770
10771 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10772
93ffa5b9
MK
107732014-02-12 Mark Kettenis <kettenis@gnu.org>
10774
10775 * obsd-tdep.h (obsd_init_abi): New prototype.
10776 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10777 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10778 (obsd_init_abi): New functions.
10779 * i386obsd-tdep.c: Include "obsd-tdep.h".
10780 (i386obsd_init_abi): Call obsd_init_abi.
10781 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10782 (amd64obsd_init_abi): Call obsd_init_abi.
10783 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10784 obsd-tdep.c to gdb_target_obs.
10785
49caec94
JM
107862014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10787
10788 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10789 double float arguments to 16-byte in the argument slots.
10790
e1402065
DE
107912014-02-11 Doug Evans <xdje42@gmail.com>
10792
10793 * configure.ac: Don't crash if pkg-config is not found and guile
10794 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10795 in guile checks.
10796 * configure: Regenerate.
10797
edcc890f
YQ
107982014-02-11 Yao Qi <yao@codesourcery.com>
10799
10800 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10801 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10802 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10803 * gnu-nat.c (gnu_xfer_memory): Likewise.
10804 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10805 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10806 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10807 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10808
9b409511
YQ
108092014-02-11 Yao Qi <yao@codesourcery.com>
10810
10811 * target.h (enum target_xfer_error): Rename to ...
10812 (enum target_xfer_status): ... it. New. All users updated.
10813 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10814 New.
10815 (TARGET_XFER_STATUS_ERROR_P): New macro.
10816 (target_xfer_error_to_string): Remove declaration.
10817 (target_xfer_status_to_string): Declare.
10818 (target_xfer_partial_ftype): Adjust it.
10819 (struct target_ops) <to_xfer_partial>: Return
10820 target_xfer_status. Add argument xfered_len. Update
10821 comments.
10822 * target.c (target_xfer_error_to_string): Rename to ...
10823 (target_xfer_status_to_string): ... it. New. All callers
10824 updated.
10825 (target_read_live_memory): Likewise. Call target_xfer_partial
10826 instead of target_read.
10827 (memory_xfer_live_readonly_partial): Return
10828 target_xfer_status. Add argument xfered_len.
10829 (raw_memory_xfer_partial): Likewise.
10830 (memory_xfer_partial_1): Likewise.
10831 (memory_xfer_partial): Likewise.
10832 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10833 properly. Update debug message.
10834 (default_xfer_partial, current_xfer_partial): Likewise.
10835 (target_write_partial): Likewise.
10836 (target_read_partial): Likewise. All callers updated.
10837 (read_whatever_is_readable): Likewise.
10838 (target_write_with_progress): Likewise.
10839 (target_read_alloc_1): Likewise.
10840
10841 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10842 * auxv.c (procfs_xfer_auxv): Likewise.
10843 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10844 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10845 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10846 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10847 * corefile.c (read_memory): Adjust.
10848 * corelow.c (core_xfer_partial): Likewise.
10849 * ctf.c (ctf_xfer_partial): Likewise.
10850 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10851 updated.
10852 (darwin_xfer_partial): Likewise.
10853 * exec.c (section_table_xfer_memory_partial): Likewise. All
10854 callers updated.
10855 (exec_xfer_partial): Likewise.
10856 * exec.h (section_table_xfer_memory_partial): Update
10857 declaration.
10858 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10859 negative.
10860 (gnu_xfer_partial): Likewise.
10861 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10862 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10863 (ia64_hpux_xfer_solib_got): Likewise.
10864 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10865 type of 'partial_len' to ULONGEST.
10866 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10867 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10868 (linux_nat_xfer_partial): Likewise.
10869 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10870 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10871 * monitor.c (monitor_xfer_memory): Likewise.
10872 (monitor_xfer_partial): Likewise.
10873 * procfs.c (procfs_xfer_partial): Likewise.
10874 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10875 * record-full.c (record_full_xfer_partial): Likewise.
10876 (record_full_core_xfer_partial): Likewise.
10877 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10878 (gdbsim_xfer_partial): Likewise.
10879 * remote.c (remote_write_bytes_aux): Likewise. All callers
10880 updated.
10881 (remote_write_bytes, remote_read_bytes): Likewise. All
10882 callers updated.
10883 (remote_flash_erase): Likewise. All callers updated.
10884 (remote_write_qxfer): Likewise. All callers updated.
10885 (remote_read_qxfer): Likewise. All callers updated.
10886 (remote_xfer_partial): Likewise.
10887 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10888 (rs6000_xfer_shared_libraries): Likewise.
10889 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10890 (sol_thread_xfer_partial): Likewise.
10891 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10892 (sparc_xfer_partial): Likewise.
10893 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10894 updated.
10895 (spu_xfer_partial): Likewise.
10896 * spu-multiarch.c (spu_xfer_partial): Likewise.
10897 * tracepoint.c (tfile_xfer_partial): Likewise.
10898 * windows-nat.c (windows_xfer_memory): Likewise.
10899 (windows_xfer_shared_libraries): Likewise.
10900 (windows_xfer_partial): Likewise.
10901 * valprint.c: Replace 'target_xfer_error' with
10902 'target_xfer_status' in comments.
10903
a8e63083
JB
109042014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10905
10906 Checked in by Joel Brobecker <brobecker@adacore.com>.
10907 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10908
e86b67d3
JB
109092014-02-11 Joel Brobecker <brobecker@adacore.com>
10910
10911 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10912 function parameters.
10913
4b7d1f7f
WN
109142014-02-10 Will Newton <will.newton@linaro.org>
10915
10916 * elfread.c (elf_rel_plt_read): Look for a .got section if
10917 looking up .got.plt fails.
10918 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10919 on address passed to elf_gnu_ifunc_record_cache.
10920 (elf_gnu_ifunc_resolve_addr): Likewise.
10921 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10922
961842b2
JM
109232014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10924
10925 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10926 (X_RETTURN): New macro.
10927 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10928
10929 * sparc64-tdep.c (sparc64_init_abi): Hook
10930 sparc_in_function_epilogue_p.
10931
3f03e7b1
GB
109322014-02-10 Gary Benson <gbenson@redhat.com>
10933
10934 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10935 Rename name_matcher to symbol_matcher.
10936
96f861ef
GB
109372014-02-10 Gary Benson <gbenson@redhat.com>
10938
10939 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10940 Use expand_symtabs_file_matcher_ftype and
10941 expand_symtabs_symbol_matcher_ftype.
10942
ee01b665
JB
109432014-02-10 Joel Brobecker <brobecker@adacore.com>
10944
10945 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10946 (struct ada_symbol_cache): New.
10947 (ada_free_symbol_cache): Forward declare.
10948 (struct ada_pspace_data): New.
10949 (ada_pspace_data_handle): New static global.
10950 (get_ada_pspace_data, ada_pspace_data_cleanup)
10951 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10952 (cache_space, cache): Delete, now folded inside struct
10953 ada_pspace_data.
10954 (ada_get_symbol_cache): New function.
10955 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10956 implementation.
10957 (_initialize_ada_language): Remove initialization of cache_space.
10958 Move call to observer_attach_inferior_exit up, grouping it
10959 with the other observer registrations inside this function.
10960 Rename command to be more general. Add call to
10961 register_program_space_data_with_cleanup.
10962
143adbbf
JB
109632014-02-10 Joel Brobecker <brobecker@adacore.com>
10964
10965 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10966 ada_new_objfile_observer.
10967 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10968 (_initialize_tasks): Update uses of ada_new_objfile_observer
10969 and ada_tasks_normal_stop_observer.
10970
aa4fb036
JB
109712014-02-10 Joel Brobecker <brobecker@adacore.com>
10972
10973 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10974 returned by the 'Length attribute to integer.
10975
9dee8cc6
JB
109762014-02-10 Joel Brobecker <brobecker@adacore.com>
10977
10978 * ada-lang.c (_initialize_ada_language): Initialize
10979 cache_space obstack.
10980
3d9434b5
JB
109812014-02-10 Joel Brobecker <brobecker@adacore.com>
10982
10983 * ada-lang.c (HASH_SIZE): New macro.
10984 (struct cache_entry): New type.
10985 (cache_space, cache): New static globals.
10986 (ada_clear_symbol_cache, find_entry): New functions.
10987 (lookup_cached_symbol, cache_symbol): Implement.
10988 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10989 (_initialize_ada_language): Attach ada_new_objfile_observer
10990 and ada_free_objfile_observer.
10991
f0c5f9b2
JB
109922014-02-10 Joel Brobecker <brobecker@adacore.com>
10993
10994 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10995 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10996 struct block * parameter.
10997 (ada_lookup_symbol_list_worker): Constify local variable "block".
10998 Remove cast which is no longer necessary.
10999
ed3ef339
DE
110002014-02-10 Doug Evans <xdje42@gmail.com>
11001
11002 Add Guile as an extension language.
11003 * NEWS: Mention Guile scripting.
11004 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11005 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11006 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11007 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11008 (CLIBS): Add GUILE_LIBS.
11009 (install-guile): New rule.
11010 (guile.o): New rule.
11011 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11012 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11013 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11014 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11015 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11016 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11017 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11018 * configure.ac: New option --with-guile.
11019 * configure: Regenerate.
11020 * config.in: Regenerate.
11021 * auto-load.c: Remove #include "python/python.h". Add #include
11022 "gdb/section-scripts.h".
11023 (source_section_scripts): Handle Guile scripts.
11024 (_initialize_auto_load): Add name of Guile objfile script to
11025 scripts-directory help text.
11026 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11027 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11028 (struct breakpoint): New member scm_bp_object.
11029 * defs.h (enum command_control_type): New value guile_control.
11030 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11031 "extension.h".
11032 (show_user): Update comment.
11033 (_initialize_cli_cmds): Update help text for "show user". Update help
11034 text for max-user-call-depth.
11035 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11036 "extension.h".
11037 (multi_line_command_p): Add guile_control.
11038 (print_command_lines): Handle guile_control.
11039 (execute_control_command, recurse_read_control_structure): Ditto.
11040 (process_next_line): Recognize "guile" commands.
11041 * disasm.c (gdb_disassemble_info): Make non-static.
11042 * disasm.h: #include "dis-asm.h".
11043 (struct gdbarch): Add forward decl.
11044 (gdb_disassemble_info): Declare.
11045 * extension.c: #include "guile/guile.h".
11046 (extension_languages): Add guile.
11047 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11048 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11049 * gdbtypes.c (get_unsigned_type_max): New function.
11050 (get_signed_type_minmax): New function.
11051 * gdbtypes.h (get_unsigned_type_max): Declare.
11052 (get_signed_type_minmax): Declare.
11053 * guile/README: New file.
11054 * guile/guile-internal.h: New file.
11055 * guile/guile.c: New file.
11056 * guile/guile.h: New file.
11057 * guile/scm-arch.c: New file.
11058 * guile/scm-auto-load.c: New file.
11059 * guile/scm-block.c: New file.
11060 * guile/scm-breakpoint.c: New file.
11061 * guile/scm-disasm.c: New file.
11062 * guile/scm-exception.c: New file.
11063 * guile/scm-frame.c: New file.
11064 * guile/scm-gsmob.c: New file.
11065 * guile/scm-iterator.c: New file.
11066 * guile/scm-lazy-string.c: New file.
11067 * guile/scm-math.c: New file.
11068 * guile/scm-objfile.c: New file.
11069 * guile/scm-ports.c: New file.
11070 * guile/scm-pretty-print.c: New file.
11071 * guile/scm-safe-call.c: New file.
11072 * guile/scm-string.c: New file.
11073 * guile/scm-symbol.c: New file.
11074 * guile/scm-symtab.c: New file.
11075 * guile/scm-type.c: New file.
11076 * guile/scm-utils.c: New file.
11077 * guile/scm-value.c: New file.
11078 * guile/lib/gdb.scm: New file.
11079 * guile/lib/gdb/boot.scm: New file.
11080 * guile/lib/gdb/experimental.scm: New file.
11081 * guile/lib/gdb/init.scm: New file.
11082 * guile/lib/gdb/iterator.scm: New file.
11083 * guile/lib/gdb/printing.scm: New file.
11084 * guile/lib/gdb/types.scm: New file.
11085 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11086 (VPATH): Add $(GUILE_SRCDIR).
11087 (GUILE_DIR): New variable.
11088 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11089 (all): Add stamp-guile dependency.
11090 (stamp-guile): New rule.
11091 (clean-guile, install-guile, uninstall-guile): New rules.
11092 (install-only): Add install-guile dependency.
11093 (uninstall): Add uninstall-guile dependency.
11094 (clean): Add clean-guile dependency.
11095
ac020ec5
DE
110962014-02-09 Doug Evans <xdje42@gmail.com>
11097
11098 Revert this patch (which I approved, mea culpa).
11099
11100 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11101
11102 * Makefile.in (all-lib): Remove.
11103 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11104
2a081c59
JK
111052014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 Fix Python stack corruption.
11108 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11109 gdb_py_longest.
11110
0a6bd22d
MK
111112014-02-08 Mark Kettenis <kettenis@gnu.org>
11112
11113 * Makefile.in (all-lib): Remove.
11114 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11115
1a860409
DE
111162014-02-07 Doug Evans <dje@google.com>
11117
11118 * extension-priv.h (extension_language_script_ops): Add comment.
11119 (extension_language_ops): Add comment.
caf5a491 11120 (active_ext_lang_state): Fix typo in comment.
1a860409 11121
d137e6dc
PA
111222014-02-07 Pedro Alves <palves@redhat.com>
11123
0dcb32c3 11124 PR breakpoints/16292
d137e6dc
PA
11125 * infrun.c (handle_signal_stop) <signal arrives while stepping
11126 over a breakpoint>: Switch back to the stepping thread.
11127
ce6d0892
YQ
111282014-02-07 Yao Qi <yao@codesourcery.com>
11129
11130 * target.c (target_xfer_partial): Return zero if LEN is zero.
11131
2ed4b548
YQ
111322014-02-07 Yao Qi <yao@codesourcery.com>
11133
11134 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11135 (ld_so_xfer_auxv): Likewise.
11136 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11137 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11138 * corelow.c (core_xfer_partial): Likewise.
11139 * ctf.c (ctf_xfer_partial): Likewise.
11140 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11141 (darwin_xfer_partial): Likewise.
11142 * exec.c (exec_xfer_partial): Likewise.
11143 * gnu-nat.c (gnu_xfer_partial): Likewise.
11144 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11145 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11146 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11147 * linux-nat.c (linux_xfer_siginfo): Likewise.
11148 (linux_proc_xfer_spu): Likewise.
11149 * procfs.c (procfs_xfer_partial): Likewise.
11150 * record-full.c (record_full_xfer_partial): Likewise.
11151 (record_full_core_xfer_partial): Likewise.
11152 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11153 * remote.c (remote_write_qxfer): Likewise.
11154 (remote_write_qxfer, remote_read_qxfer): Likewise.
11155 (remote_xfer_partial): Likewise.
11156 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11157 (rs6000_xfer_shared_libraries): Likewise.
11158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11160 (spu_xfer_partial): Likewise.
11161 * target.c (memory_xfer_partial_1): Likewise.
11162 * tracepoint.c (tfile_xfer_partial): Likewise.
11163 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11164 (windows_xfer_partial): Likewise.
11165
c09f20e4
YQ
111662014-02-07 Yao Qi <yao@codesourcery.com>
11167
11168 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11169 comments.
11170 (core_xfer_shared_libraries_aix): Likewise.
11171 * gdbarch.c, gdbarch.h: Regenerated.
11172 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11173 ULONGEST. Change 'len_avail' type to ULONGEST.
11174 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11175 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11176 declaration.
11177 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11178
8635b3bf
YQ
111792014-02-07 Yao Qi <yao@codesourcery.com>
11180
11181 * corefile.c (memory_error): Get 'exception' from ERR and pass
11182 'exception' to throw_error.
11183
6dddc817
DE
111842014-02-06 Doug Evans <xdje42@gmail.com>
11185
11186 * configure.ac (libpython checking): Remove all but python.o from
11187 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11188 * configure: Regenerate.
11189
11190 * Makefile.in (SFILES): Add extension.c.
11191 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11192 (COMMON_OBS): Add extension.o.
11193 * extension.h: New file.
11194 * extension-priv.h: New file.
11195 * extension.c: New file.
11196
11197 * python/python-internal.h: #include "extension.h".
11198 (gdbpy_auto_load_enabled): Declare.
11199 (gdbpy_apply_val_pretty_printer): Declare.
11200 (gdbpy_apply_frame_filter): Declare.
11201 (gdbpy_preserve_values): Declare.
11202 (gdbpy_breakpoint_cond_says_stop): Declare.
11203 (gdbpy_breakpoint_has_cond): Declare.
11204 (void source_python_script_for_objfile): Delete.
11205 * python/python.c: #include "extension-priv.h".
11206 Delete inclusion of "observer.h".
11207 (extension_language_python): Moved here and renamed from
11208 script_language_python in py-auto-load.c.
11209 Redefined to be of type extension_language_defn.
11210 (python_extension_script_ops): New global.
11211 (python_extension_ops): New global.
11212 (struct python_env): New member previous_active.
11213 (restore_python_env): Call restore_active_ext_lang.
11214 (ensure_python_env): Call set_active_ext_lang.
11215 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11216 New arg extlang.
11217 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11218 New arg extlang.
11219 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11220 New arg extlang.
11221 (gdbpy_eval_from_control_command): Renamed from
11222 eval_python_from_control_command, made static. New arg extlang.
11223 (gdbpy_source_script) Renamed from source_python_script, made static.
11224 New arg extlang.
11225 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11226 result to int. New arg extlang.
11227 (gdbpy_source_objfile_script): Renamed from
11228 source_python_script_for_objfile, made static. New arg extlang.
11229 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11230 static. New args extlang, extlang_printers. Change result type to
11231 "void".
11232 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11233 static. New arg extlang. Rename arg printers to extlang_printers
11234 and change type to ext_lang_type_printers *.
11235 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11236 static. Replace argument arg with extlang, extlang_printers.
11237 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11238 (!HAVE_PYTHON, source_python_script): Delete.
11239 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11240 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11241 (!HAVE_PYTHON, start_type_printers): Delete.
11242 (!HAVE_PYTHON, apply_type_printers): Delete.
11243 (!HAVE_PYTHON, free_type_printers): Delete.
11244 (_initialize_python): Delete call to observer_attach_before_prompt.
11245 (finalize_python): Set/restore active extension language.
11246 (gdbpy_finish_initialization) Renamed from
11247 finish_python_initialization, made static. New arg extlang.
11248 (gdbpy_initialized): New function.
11249 * python/python.h: #include "extension.h". Delete #include
11250 "value.h", "mi/mi-cmds.h".
11251 (extension_language_python): Declare.
11252 (GDBPY_AUTO_FILE_NAME): Delete.
11253 (enum py_bt_status): Moved to extension.h and renamed to
11254 ext_lang_bt_status.
11255 (enum frame_filter_flags): Moved to extension.h.
11256 (enum py_frame_args): Moved to extension.h and renamed to
11257 ext_lang_frame_args.
11258 (finish_python_initialization): Delete.
11259 (eval_python_from_control_command): Delete.
11260 (source_python_script): Delete.
11261 (apply_val_pretty_printer): Delete.
11262 (apply_frame_filter): Delete.
11263 (preserve_python_values): Delete.
11264 (gdbpy_script_language_defn): Delete.
11265 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11266 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11267
11268 * auto-load.c: #include "extension.h".
11269 (GDB_AUTO_FILE_NAME): Delete.
11270 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11271 (script_language_gdb): Delete, moved to extension.c and renamed to
11272 extension_language_gdb.
11273 (source_gdb_script_for_objfile): Delete.
11274 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11275 (loaded_script): Change type of language member to
11276 struct extension_language_defn *.
11277 (init_loaded_scripts_info): Initialize
11278 unsupported_script_warning_printed.
11279 (maybe_add_script): Make static. Change type of language arg to
11280 struct extension_language_defn *.
11281 (clear_section_scripts): Reset unsupported_script_warning_printed.
11282 (auto_load_objfile_script_1): Rewrite to use extension language API.
11283 (auto_load_objfile_script): Make public. Remove support-compiled-in
11284 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11285 (source_section_scripts): Rewrite to use extension language API.
11286 (load_auto_scripts_for_objfile): Rewrite to use
11287 auto_load_scripts_for_objfile.
11288 (collect_matching_scripts_data): Change type of language member to
11289 struct extension_language_defn *.
11290 (auto_load_info_scripts): Change type of language arg to
11291 struct extension_language_defn *.
11292 (unsupported_script_warning_print): New function.
11293 (script_not_found_warning_print): Make static.
11294 (_initialize_auto_load): Rewrite construction of scripts-directory
11295 help.
11296 * auto-load.h (struct objfile): Add forward decl.
11297 (struct script_language): Delete.
11298 (struct auto_load_pspace_info): Add forward decl.
11299 (struct extension_language_defn): Add forward decl.
11300 (maybe_add_script): Delete.
11301 (auto_load_objfile_script): Declare.
11302 (script_not_found_warning_print): Delete.
11303 (auto_load_info_scripts): Update prototype.
11304 (auto_load_gdb_scripts_enabled): Declare.
11305 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11306 auto_load_python_scripts_enabled and made public.
11307 (script_language_python): Delete, moved to python.c.
11308 (gdbpy_script_language_defn): Delete.
11309 (info_auto_load_python_scripts): Update to use
11310 extension_language_python.
11311
11312 * breakpoint.c (condition_command): Replace call to
11313 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11314 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11315 with call to breakpoint_ext_lang_cond_says_stop.
11316 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11317 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11318 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11319 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11320 New arg slang.
11321 (local_setattro): Print name of extension language with existing
11322 stop condition.
11323
11324 * valprint.c (val_print, value_print): Update to call
11325 apply_ext_lang_val_pretty_printer.
11326 * cp-valprint.c (cp_print_value): Update call to
11327 apply_ext_lang_val_pretty_printer.
11328 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11329 (gdbpy_apply_val_pretty_printer): Renamed from
11330 apply_val_pretty_printer. New arg extlang.
11331 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11332
11333 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11334 extension language API.
11335 * cli/cli-script.c (execute_control_command): Update to call
11336 eval_ext_lang_from_control_command.
11337
11338 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11339 enum ext_lang_bt_status values. Update call to
11340 apply_ext_lang_frame_filter.
11341 (mi_cmd_stack_list_locals): Ditto.
11342 (mi_cmd_stack_list_args): Ditto.
11343 (mi_cmd_stack_list_variables): Ditto.
11344 * mi/mi-main.c: Delete #include "python/python-internal.h".
11345 Add #include "extension.h".
11346 (mi_cmd_list_features): Replace reference to python internal variable
11347 gdb_python_initialized with call to ext_lang_initialized_p.
11348
11349 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11350 Update to use enum ext_lang_frame_args. Update to call
11351 apply_ext_lang_frame_filter.
11352 * python/py-framefilter.c (extract_sym): Update to use enum
11353 ext_lang_bt_status.
11354 (extract_value, py_print_type, py_print_value): Ditto.
11355 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11356 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11357 (py_print_frame): Ditto.
11358 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11359 New arg extlang. Update to use enum ext_lang_bt_status.
11360
11361 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11362 finish_python_initialization. Replace with call to
11363 finish_ext_lang_initialization.
11364
11365 * typeprint.c (do_free_global_table): Update to call
11366 free_ext_lang_type_printers.
11367 (create_global_typedef_table): Update to call
11368 start_ext_lang_type_printers.
11369 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11370 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11371 (type_print_options): Change type of global_printers from "void *"
11372 to "struct ext_lang_type_printers *".
11373
11374 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11375 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11376 (gdbpy_preserve_values): Renamed from preserve_python_values.
11377 New arg extlang.
11378 (!HAVE_PYTHON, preserve_python_values): Delete.
11379
11380 * utils.c (quit_flag): Delete, moved to extension.c.
11381 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11382 extension.c.
11383
11384 * eval.c: Delete #include "python/python.h".
11385 * main.c: Delete #include "python/python.h".
11386
11387 * defs.h: Update comment.
11388
6af79985
JB
113892014-02-06 Joel Brobecker <brobecker@adacore.com>
11390
11391 GDB 7.7 released.
11392
12c5175d
MK
113932014-02-05 Mark Kettenis <kettenis@gnu.org>
11394
11395 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11396 defined.
11397
8dc5b319
YQ
113982014-02-05 Yao Qi <yao@codesourcery.com>
11399
11400 * remote.c (remote_pass_signals): Remove local 'buf' and use
11401 rs->buf.
11402 (remote_program_signals): Likewise.
11403
de7b2893
YQ
114042014-02-05 Yao Qi <yao@codesourcery.com>
11405
11406 * ctf.c: Include "inferior.h" and "gdbthread.h".
11407 (CTF_PID): A new macro.
11408 (ctf_open): Call inferior_appeared and add_thread_silent.
11409 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11410 (ctf_thread_alive): New function.
11411 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11412
66d032ac
YQ
114132014-02-05 Yao Qi <yao@codesourcery.com>
11414
11415 Revert this patch:
11416
11417 2013-05-24 Yao Qi <yao@codesourcery.com>
11418
11419 * tracepoint.c (TFILE_PID): Remove.
11420 (tfile_open): Don't add thread and inferior.
11421 (tfile_close): Don't set 'inferior_ptid'. Don't call
11422 exit_inferior_silent.
11423 (tfile_thread_alive): Remove.
11424 (init_tfile_ops): Don't set field 'to_thread_alive' of
11425 tfile_ops.
11426
f4ccffad
CE
114272014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11428
11429 * remote.c (remote_start_remote): Call remote_check_symbols even
11430 if only symbol-file (not file) has been given.
11431
591a12a1
UW
114322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11433
11434 * gdbarch.sh (skip_entrypoint): New callback.
11435 * gdbarch.c, gdbarch.h: Regenerate.
11436 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11437 * infrun.c (fill_in_stop_func): Likewise.
11438 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11439 (ppc_elfv2_elf_make_msymbol_special): New function.
11440 (ppc_elfv2_skip_entrypoint): Likewise.
11441 (ppc_linux_init_abi): Install them for ELFv2.
11442
cc0e89c5
UW
114432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11444
11445 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11446 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11447 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11448 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11449 structures returned in GPRs.
11450
52f548e4
UW
114512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11452
11453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11454 offset to the stack parameter list for the ELFv2 ABI.
11455
d4094b6a
UW
114562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11457
11458 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11459 set_gdbarch_convert_from_func_ptr_addr and
11460 set_gdbarch_elf_make_msymbol_special for ELFv1.
11461 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11462 function descriptors on ELFv1.
11463 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11464 set up r12 at function entry.
11465
cd453cd0
UW
114662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11467
11468 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11469 (struct gdbarch_tdep): New member elf_abi.
11470
11471 * rs6000-tdep.c: Include "elf/ppc64.h".
11472 (rs6000_gdbarch_init): Detect ELF ABI version.
11473
0ff3e01f
UW
114742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11475
11476 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11477 within a register pair holding a DFP 128-bit value on little-endian.
11478 (ppc64_sysv_abi_return_value_base): Likewise.
11479 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11480 (dfp_pseudo_register_write): Likewise.
11481
5b757e5d
UW
114822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11483
11484 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11485 offset on little-endian when passing _Decimal32.
11486 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11487
084ee545
UW
114882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11489
11490 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11491 of the overlapped FP register within the VSX register on little-
11492 endian platforms.
11493 (efpr_pseudo_register_write): Likewise.
11494
d63167af
UW
114952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11496
11497 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11498 offset on little-endian when passing small structures.
11499
e765b44c
UW
115002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11501
11502 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11503 (struct ppc64_sysv_argpos): New data structure.
11504 (ppc64_sysv_abi_push_float): Remove.
11505 (ppc64_sysv_abi_push_val): New function.
11506 (ppc64_sysv_abi_push_integer): Likewise.
11507 (ppc64_sysv_abi_push_freg): Likewise.
11508 (ppc64_sysv_abi_push_vreg): Likewise.
11509 (ppc64_sysv_abi_push_param): Likewise.
11510 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11511 (ppc64_sysv_abi_return_value_base): New function.
11512 (ppc64_sysv_abi_return_value): Refactor to use it.
11513
36c24d95
UW
115142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11515
11516 * NEWS: Document new target powerpc64le-*-linux*.
11517
26fd9228
MK
115182014-02-04 Mark Kettenis <kettenis@gnu.org>
11519
11520 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11521 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11522 core dumps.
11523 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11524 register set used in ELF core dumps. Add floating-point register set.
11525
c5bb7362
KB
115262014-02-03 Kevin Buettner <kevinb@redhat.com>
11527
74228e77 11528 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11529 dwarf2_to_gdb[] table using symbolic constants. Adjust
11530 penultimate entry from number representing the PC register
11531 to symbolic constant representing the MDR register. Add
11532 constant for the PC register to the end of the table.
11533
af09351e
MK
115342014-02-03 Mark Kettenis <kettenis@gnu.org>
11535
11536 * bsd-kvm.c: Include <sys/param.h>
11537
8507e05d
MK
115382014-02-03 Mark Kettenis <kettenis@gnu.org>
11539
11540 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11541
ae56bfb8
JB
115422014-01-31 Joel Brobecker <brobecker@adacore.com>
11543
11544 * ada-lang.h (clear_ada_sym_cache): Delete.
11545
718ee4dc
UW
115462014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11547
11548 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11549
401e27fd
JM
115502014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11551
11552 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11553 the sigreturn register save area only if the syscall is
11554 sigreturn.
11555
a7c88acd
JB
115562014-01-29 Joel Brobecker <brobecker@adacore.com>
11557
11558 * valops.c (value_slice): Minor reformatting.
11559
fa0079ea
UW
115602014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11561
11562 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11563
c6044dd1
JB
115642014-01-28 Joel Brobecker <brobecker@adacore.com>
11565
11566 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11567 New static globals.
11568 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11569 (ada_ignore_descriptive_types_p): New static global.
11570 (find_parallel_type_by_descriptive_type): Return immediately
11571 if ada_ignore_descriptive_types_p is set.
11572 (_initialize_ada_language): Register new commands "maintenance
11573 set ada", "maintenance show ada", "maintenance set ada
11574 ignore-descriptive-types" and "maintenance show ada
11575 ignore-descriptive-types".
11576 * NEWS: Add entry for new "maint ada set/show
11577 ignore-descriptive-types" commands.
11578
568e808b
MM
115792014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11580
11581 * record-btrace.c (record_btrace_close): Call btrace_teardown
11582 for all threads.
11583
467d141b
JB
115842014-01-27 Joel Brobecker <brobecker@adacore.com>
11585
11586 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11587 "ui-out.h".
11588
fb151210
JB
115892014-01-27 Joel Brobecker <brobecker@adacore.com>
11590
11591 * ada-typeprint (type_is_full_subrange_of_target_type):
11592 New function.
11593 (print_range): Add parameter bounds_prefered_p. If not set,
11594 try printing range types using the name of their base type.
11595 (print_range_type): Add parameter bounds_prefered_p.
11596 Use it in call to print_range.
11597 (print_array_type, ada_print_type): Update calls to print_range
11598 and print_range_type.
11599
aba02109
JB
116002014-01-27 Joel Brobecker <brobecker@adacore.com>
11601
11602 * ada-typeprint.c (print_array_type, print_choices, print_range)
11603 (print_range_bound, print_dynamic_range_bound, print_range_type):
11604 Remove declaration.
11605
e62e21fd
JB
116062014-01-27 Joel Brobecker <brobecker@adacore.com>
11607
11608 * ada-typeprint.c (print_range): Add missing empty line
11609 after local declaration.
11610
859cf5d1
JB
116112014-01-27 Joel Brobecker <brobecker@adacore.com>
11612
11613 * ada-valprint.c (print_optional_low_bound): Get index_type's
11614 target type for as long as it is a TYPE_CODE_RANGE.
11615
25790f6f
JB
116162014-01-27 Joel Brobecker <brobecker@adacore.com>
11617
11618 * procfs.c (procfs_make_note_section): Remove assertion and
11619 associated comment.
11620
6b6aa828
YQ
116212014-01-24 Yao Qi <yao@codesourcery.com>
11622
11623 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11624 * corelow.c (get_core_siginfo): Likewise.
11625
5d6df423
YQ
116262014-01-24 Yao Qi <yao@codesourcery.com>
11627
11628 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11629 ULONGEST. Don't check 'len' is negative.
11630 (remote_write_bytes): Change type of 'len' to ULONGEST.
11631
83b645b8
TT
116322014-01-23 Tom Tromey <tromey@redhat.com>
11633
11634 PR python/16485:
11635 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11636 Handle exception from frame.block.
11637 (FrameVars.fetch_frame_locals): Likewise.
11638
0740f8d8
TT
116392014-01-23 Tom Tromey <tromey@redhat.com>
11640
11641 PR python/16487:
11642 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11643 on a NULL pointer. Move "goto error" to correct place.
11644
21909fa1
TT
116452014-01-23 Tom Tromey <tromey@redhat.com>
11646
11647 PR python/16491:
11648 * python/py-framefilter.c (apply_frame_filter): Call
11649 ensure_python_env after computing gdbarch.
11650
17fde6d0
YQ
116512014-01-23 Yao Qi <yao@codesourcery.com>
11652
11653 * target.c (raw_memory_xfer_partial): Change argument type
11654 from void * to gdb_byte *.
11655 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11656
87ce2a04
DE
116572014-01-22 Doug Evans <dje@google.com>
11658
11659 New gdbserver option --debug-format=timestamp.
11660 * NEWS: Mention it.
11661
237b092b
AA
116622014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11663
11664 * syscalls/s390x-linux.xml: New file.
11665 * syscalls/s390-linux.xml: New file.
11666 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11667 (XML_SYSCALL_FILENAME_S390X): Likewise.
11668 (op_svc): New enum value for SVC opcode.
11669 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11670 (s390_linux_get_syscall_number): New function.
11671 (s390_gdbarch_init): Register '*get_syscall_number' and the
11672 syscall xml file name.
11673 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11674 "s390-linux.xml" and "s390x-linux.xml".
11675 * NEWS: Announce new feature.
11676
54bff650
BS
116772014-01-22 Baruch Siach <baruch@tkos.co.il>
11678
11679 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11680
14e361d7
PA
116812014-01-22 Pedro Alves <palves@redhat.com>
11682
11683 * xtensa-config.c: Include defs.h.
11684
46bbb3ed
JB
116852014-01-22 Joel Brobecker <brobecker@adacore.com>
11686
11687 * common/common-utils.h: Add "ARI:" comment beside __func__
11688 reference.
11689
3a80edfc
JB
116902014-01-22 Joel Brobecker <brobecker@adacore.com>
11691
11692 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11693 documentation a bit.
11694
4869db5e
RM
116952014-01-21 Roland McGrath <mcgrathr@google.com>
11696
11697 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11698 * configure: Regenerate.
11699 * aclocal.m4: Regenerate.
11700 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11701 New substituted variables.
11702 (install-strip): New target.
11703 (INSTALL_SCRIPT): New substituted variable.
11704 (FLAGS_TO_PASS): Add it.
11705 (install-only): Use $(INSTALL_SCRIPT) rather than
11706 $(INSTALL_PROGRAM) for gcore.
11707
9ea4267d
TT
117082014-01-20 Tom Tromey <tromey@redhat.com>
11709
11710 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11711 together.
11712
1f2bdf09
TT
117132014-01-20 Tom Tromey <tromey@redhat.com>
11714
11715 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11716 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11717 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11718 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11719 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11720 (struct cmd_list_element) <flags>: Remove.
11721 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11722 doc_allocated>: New fields.
11723 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11724 bitfields.
11725 * maint.c (maintenance_do_deprecate): Update.
11726 * top.c (execute_command): Update.
11727
e671835b
BS
117282014-01-20 Baruch Siach <baruch@tkos.co.il>
11729
11730 * xtensa-linux-nat.c: Include asm/ptrace.h.
11731
50367cd2
IB
117322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11733
11734 * Makefile.in (SFILES): Add d-support.c.
11735 (COMMON_OBS): Add d-support.o.
11736 * d-lang.h (d_parse_symbol): Add comment, now defined in
11737 d-support.c.
11738 * d-lang.c (parse_call_convention)
11739 (parse_attributes, parse_function_types)
11740 (parse_function_args, parse_type, parse_identifier)
11741 (call_convention_p, d_parse_symbol): Move functions to ...
11742 * d-support.c: ... New file.
11743
ec9f644a
IB
117442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11745
11746 * d-lang.h (d_parse_symbol): Add declaration.
11747 * d-lang.c (extract_identifiers)
11748 (extract_type_info): Remove functions.
11749 (parse_call_convention, parse_attributes)
11750 (parse_function_types, parse_function_args)
11751 (parse_type, parse_identifier, call_convention_p)
11752 (d_parse_symbol): New functions.
11753 (d_demangle): Use d_parse_symbol to demangle D symbols.
11754
94b1b47e
IB
117552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11756
11757 * d-lang.h (struct builtin_d_type): New data type.
11758 (builtin_d_type): Add declaration.
11759 * d-lang.c (d_language_arch_info, build_d_types)
11760 (builtin_d_type): New functions.
11761 (enum d_primitive_types): New data type.
11762 (d_language_defn): Change c_language_arch_info to
11763 d_language_arch_info.
11764 (d_type_data): New static variable.
11765 (_initialize_d_language): Initialize d_type_data.
11766
63778547
IB
117672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11768
11769 * d-lang.h (d_main_name): Add declaration.
11770 * d-lang.c (d_main_name): New function.
11771 * symtab.c (find_main_name): Add call to d_main_name.
11772
3271ba66
IB
117732014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11774
11775 * d-lang.c (d_language_defn): Change macro_expansion_c to
11776 macro_expansion_no.
11777
d36b3012
IB
117782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11779
11780 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11781
c90a6fb7
SDJ
117822014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11783
11784 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11785 gdb_exception" declaration.
11786 * remote.c (getpkt_or_notif_sane): Likewise.
11787
749234e5
DE
117882014-01-17 Doug Evans <dje@google.com>
11789
11790 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11791 function, contents of dirnames_to_char_ptr_vec_append moved here.
11792 (delim_string_to_char_ptr_vec): New function.
11793 (dirnames_to_char_ptr_vec_append): Rewrite.
11794 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11795
df049a58
DE
117962014-01-17 Doug Evans <dje@google.com>
11797
11798 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11799 and moved here ...
11800 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11801 #include "common-utils.h".
11802 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11803 * common/vec.h (VEC_ASSERT_PASS): Update.
11804 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11805 (MACH_CHECK_ERROR): Update.
11806
69f97648
SM
118072014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11808
11809 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11810 comments.
11811 * gdbarch.h: Regenerate.
11812
98b1cfdc
TT
118132014-01-16 Tom Tromey <tromey@redhat.com>
11814
11815 * value.c (struct value) <regnum>: Move earlier.
11816
77a19445
TT
118172014-01-16 Tom Tromey <tromey@redhat.com>
11818
11819 * remote.c (extended_remote_create_inferior): Rename from
11820 extended_remote_create_inferior_1. Add "ops" argument. Remove
11821 old implementation.
11822
62261490
PA
118232014-01-16 Pedro Alves <palves@redhat.com>
11824
11825 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11826 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11827 the backchain.
11828
4d65956b
DE
118292014-01-16 Doug Evans <dje@google.com>
11830
11831 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11832
52834460
MM
118332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11834
11835 * btrace.h (btrace_thread_flag): New.
11836 (struct btrace_thread_info) <flags>: New.
11837 * record-btrace.c (record_btrace_resume_thread)
11838 (record_btrace_find_thread_to_move, btrace_step_no_history)
11839 (btrace_step_stopped, record_btrace_start_replaying)
11840 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11841 (record_btrace_find_resume_thread): New.
11842 (record_btrace_resume, record_btrace_wait): Extend.
11843 (record_btrace_can_execute_reverse): New.
11844 (record_btrace_open): Fail in non-stop mode.
11845 (record_btrace_set_replay): Split into this, ...
11846 (record_btrace_stop_replaying): ... this, ...
11847 (record_btrace_clear_histories): ... and this.
11848 (init_record_btrace_ops): Init to_can_execute_reverse.
11849 * NEWS: Announce it.
11850
118e6252
MM
118512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11852
11853 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11854 (forward_target_decr_pc_after_break)
11855 (target_decr_pc_after_break): New.
11856 * target.c (forward_target_decr_pc_after_break)
11857 (target_decr_pc_after_break): New.
11858 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11859 instead of gdbarch_decr_pc_after_break.
11860 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11861 instead of gdbarch_decr_pc_after_break.
11862 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11863 instead of gdbarch_decr_pc_after_break.
11864 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11865 instead of gdbarch_decr_pc_after_break.
11866 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11867 instead of gdbarch_decr_pc_after_break.
11868 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11869 instead of gdbarch_decr_pc_after_break.
11870
6e07b1d2
MM
118712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11872
11873 * btrace.c: Include regcache.h.
11874 (btrace_add_pc): New.
11875 (btrace_enable): Call btrace_add_pc.
11876 (btrace_is_empty): New.
11877 * btrace.h (btrace_is_empty): New.
11878 * record-btrace.c (require_btrace, record_btrace_info): Call
11879 btrace_is_empty.
11880
969c39fb
MM
118812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11882
11883 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11884 Support delta reads.
11885 (linux_disable_btrace): Change return type.
11886 * common/linux-btrace.h (linux_read_btrace): Change parameters
11887 and return type to allow error reporting. Update users.
11888 (linux_disable_btrace): Change return type. Update users.
11889 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11890 New.
11891 (btrace_error): New.
11892 (btrace_block) <begin>: Comment on BEGIN == 0.
11893 * btrace.c (btrace_compute_ftrace): Start from the end of
11894 the current trace.
11895 (btrace_stitch_trace, btrace_clear_history): New.
11896 (btrace_fetch): Read delta trace, return if replaying.
11897 (btrace_clear): Move clear history code to btrace_clear_history.
11898 (parse_xml_btrace): Throw an error if parsing failed.
11899 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11900 and return type to allow error reporting.
11901 (target_read_btrace): Change parameters and return type to allow
11902 error reporting.
11903 * target.c (target_read_btrace): Update.
11904 * remote.c (remote_read_btrace): Support delta reads. Pass
11905 errors on.
11906 * NEWS: Announce it.
11907
0b722aec
MM
119082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11909
11910 * record.h (record_btrace_frame_unwind)
11911 (record_btrace_tailcall_frame_unwind): New declarations.
11912 * dwarf2-frame: Include record.h
11913 (dwarf2_frame_cfa): Throw an error for btrace frames.
11914 * record-btrace.c: Include hashtab.h.
11915 (btrace_get_bfun_name): New.
11916 (btrace_call_history): Call btrace_get_bfun_name.
11917 (struct btrace_frame_cache): New.
11918 (bfcache): New.
11919 (bfcache_hash, bfcache_eq, bfcache_new): New.
11920 (btrace_get_frame_function): New.
11921 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11922 (record_btrace_frame_this_id): Compute own id.
11923 (record_btrace_frame_prev_register): Provide PC, throw_error
11924 for all other registers.
11925 (record_btrace_frame_sniffer): Detect btrace frames.
11926 (record_btrace_tailcall_frame_sniffer): New.
11927 (record_btrace_frame_dealloc_cache): New.
11928 (record_btrace_frame_unwind): Add new functions.
11929 (record_btrace_tailcall_frame_unwind): New.
11930 (_initialize_record_btrace): Allocate cache.
11931 * btrace.c (btrace_clear): Call reinit_frame_cache.
11932 * NEWS: Announce it.
11933
066ce621
MM
119342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11935
11936 * record-btrace.c (record_btrace_set_replay)
11937 (record_btrace_goto_begin, record_btrace_goto_end)
11938 (record_btrace_goto): New.
11939 (init_record_btrace_ops): Initialize them.
11940 * NEWS: Announce it.
11941
e2887aa3
MM
119422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11943
11944 * record-btrace.c (record_btrace_find_new_threads)
11945 (record_btrace_thread_alive): New.
11946 (init_record_btrace_ops): Initialize to_find_new_threads and
11947 to_thread_alive.
11948
b2f4cfde
MM
119492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11950
11951 * record-btrace.c (record_btrace_resume): New.
11952 (record_btrace_wait): New.
11953 (init_record_btrace_ops): Initialize to_wait and to_resume.
11954
633785ff
MM
119552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11956
11957 * record-btrace.c (record_btrace_xfer_partial)
11958 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11959 (record_btrace_allow_memory_access): New.
11960 (init_record_btrace_ops): Initialize new methods.
11961 * target.c (raw_memory_xfer_partial): Bail out if target reports
11962 that this memory is not available.
11963
3db08215
MM
119642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11965
11966 * target.h (target_ops) <to_insert_breakpoint>
11967 <to_remove_breakpoint>: Add target_ops parameter.
11968 (forward_target_insert_breakpoint): New.
11969 (forward_target_remove_breakpoint): New.
11970 (memory_remove_breakpoint, memory_insert_breakpoint):
11971 Add target_ops parameter.
11972 * target.c (target_insert_breakpoint): Split into this and ...
11973 (forward_target_insert_breakpoint): ... this.
11974 (target_remove_breakpoint): Split into this and ...
11975 (forward_target_remove_breakpoint): ... this.
11976 (debug_to_insert_breakpoint): Add target_ops parameter.
11977 Call forward_target_insert_breakpoint.
11978 (debug_to_remove_breakpoint): Add target_ops parameter.
11979 Call forward_target_remove_breakpoint.
11980 (update_current_target): Do not inherit or default to_insert_breakpoint
11981 and to_remove_breakpoint.
11982 * corelow.c (ignore): Add target_ops parameter.
11983 * exec.c (ignore): Add target_ops parameter.
11984 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11985 Add target_ops parameter.
11986 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11987 Add target_ops parameter.
11988 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11989 Add target_ops parameter.
11990 * record-full.c (record_full_beneath_to_insert_breakpoint)
11991 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11992 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11993 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11994 (record_full_core_remove_breakpoint): Add target_ops parameter.
11995 Update users.
11996 (record_full_beneath_to_insert_breakpoint_ops)
11997 (record_full_beneath_to_remove_breakpoint_ops)
11998 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11999 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12000 tmp_to_remove_breakpoint_ops,
12001 record_full_beneath_to_insert_breakpoint_ops, and
12002 record_full_beneath_to_remove_breakpoint_ops.
12003 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12004 (m32r_remove_breakpoint): Add target_ops parameter.
12005 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12006 Add target_ops parameter.
12007 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12008 Add target_ops parameter.
12009
cecac1ab
MM
120102014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12011 Markus Metzger <markus.t.metzger@intel.com>
12012
12013 * record-btrace.c: Include frame-unwind.h.
12014 (record_btrace_frame_unwind_stop_reason)
12015 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12016 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12017 New.
12018 (init_record_btrace_ops): Install it.
12019
824344ca
MM
120202014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12021
12022 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12023 get_prev_frame_1.
12024
32261e52
MM
120252014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12026
12027 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12028 earlier.
12029
ea001bdc
MM
120302014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12031
12032 * frame-unwind.c: Include target.h.
12033 (frame_unwind_try_unwinder): New function with code from ...
12034 (frame_unwind_find_by_frame): ... here. New variable
12035 unwinder_from_target, call also target_get_unwinder)
12036 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12037 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12038 * target.h (struct target_ops): New fields to_get_unwinder and
12039 to_get_tailcall_unwinder.
12040 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12041
1f3ef581
MM
120422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12043
12044 * record-btrace.c (record_btrace_fetch_registers)
12045 (record_btrace_store_registers)
12046 (record_btrace_to_prepare_to_store): New.
12047 (init_record_btrace_ops): Add the above.
12048
f32dbf8c
MM
120492014-01-16 Tom Tromey <tromey@redhat.com>
12050
12051 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12052 * target.h (struct target_ops) <to_prepare_to_store>: Add
12053 argument.
12054 (target_prepare_to_store): Add argument.
12055 * target.c (debug_to_prepare_to_store): Add argument.
12056 (update_current_target): Update.
12057 * remote.c (remote_prepare_to_store): Add 'self' argument.
12058 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12059 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12060 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12061 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12062 argument.
12063 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12064 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12065 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12066 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12067 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12068
07bbe694
MM
120692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12070
12071 * btrace.h (replay) <replay>: New.
12072 (btrace_is_replaying): New.
12073 * btrace.c (btrace_clear): Free replay iterator.
12074 (btrace_is_replaying): New.
12075 * record-btrace.c (record_btrace_is_replaying): New.
12076 (record_btrace_info): Print insn number if replaying.
12077 (record_btrace_insn_history): Start at replay position.
12078 (record_btrace_call_history): Start at replay position.
12079 (init_record_btrace_ops): Init to_record_is_replaying.
12080
0688d04e
MM
120812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12082
12083 * record-btrace.c (record_btrace_insn_history_range): Include
12084 end.
12085 (record_btrace_insn_history_from): Adjust range.
12086 (record_btrace_call_history_range): Include
12087 end.
12088 (record_btrace_call_history_from): Adjust range.
12089 * NEWS: Announce changes.
12090
8710b709
MM
120912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12092
12093 * record.h (enum record_print_flag)
12094 <record_print_indent_calls>: New.
12095 * record.c (get_call_history_modifiers): Recognize /c modifier.
12096 (_initialize_record): Document /c modifier.
12097 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12098 Reorder fields. Optionally indent the function name. Update
12099 all users.
12100 * NEWS: Announce changes.
12101
d0fa7535
MM
121022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12103
12104 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12105
5de9129b
MM
121062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12107
12108 * btrace.c (ftrace_new_function): Start counting at one.
12109 * record-btrace.c (record_btrace_info): Adjust number of calls
12110 and insns.
12111 * NEWS: Announce it.
12112
7acbe133
MM
121132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12114
12115 * record-btrace.c (btrace_call_history_insn_range): Print
12116 insn range as [begin, end].
12117
23a7fe75
MM
121182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119
12120 * btrace.h (struct btrace_func_link): New.
12121 (enum btrace_function_flag): New.
12122 (struct btrace_inst): Rename to ...
12123 (struct btrace_insn): ...this. Update all users.
12124 (struct btrace_func) <ibegin, iend>: Remove.
12125 (struct btrace_func_link): New.
12126 (struct btrace_func): Rename to ...
12127 (struct btrace_function): ...this. Update all users.
12128 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12129 (number, level, flags>: New.
12130 (struct btrace_insn_iterator): Rename to ...
12131 (struct btrace_insn_history): ...this.
12132 Update all users.
12133 (struct btrace_insn_iterator, btrace_call_iterator): New.
12134 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12135 (struct btrace_target_info) <begin, end, level>
12136 <insn_history, call_history>: New.
12137 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12138 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12139 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12140 (btrace_call_number, btrace_call_begin, btrace_call_end)
12141 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12142 (btrace_find_function_by_number, btrace_set_insn_history)
12143 (btrace_set_call_history): New.
12144 * btrace.c (btrace_init_insn_iterator)
12145 (btrace_init_func_iterator, compute_itrace): Remove.
12146 (ftrace_print_function_name, ftrace_print_filename)
12147 (ftrace_skip_file): Change
12148 parameter to const.
12149 (ftrace_init_func): Remove.
12150 (ftrace_debug): Use new btrace_function fields.
12151 (ftrace_function_switched): Also consider gaining and
12152 losing symbol information).
12153 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12154 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12155 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12156 New.
12157 (ftrace_new_function): Move. Remove debug print.
12158 (ftrace_update_lines, ftrace_update_insns): New.
12159 (ftrace_update_function): Check for call, ret, and jump.
12160 (compute_ftrace): Renamed to ...
12161 (btrace_compute_ftrace): ...this. Rewritten to compute call
12162 stack.
12163 (btrace_fetch, btrace_clear): Updated.
12164 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12165 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12166 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12167 (btrace_call_number, btrace_call_begin, btrace_call_end)
12168 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12169 (btrace_find_function_by_number, btrace_set_insn_history)
12170 (btrace_set_call_history): New.
12171 * record-btrace.c (require_btrace): Use new btrace thread
12172 info fields.
12173 (record_btrace_info, btrace_insn_history)
12174 (record_btrace_insn_history, record_btrace_insn_history_range):
12175 Use new btrace thread info fields and new iterator.
12176 (btrace_func_history_src_line): Rename to ...
12177 (btrace_call_history_src_line): ...this. Use new btrace
12178 thread info fields.
12179 (btrace_func_history): Rename to ...
12180 (btrace_call_history): ...this. Use new btrace thread info
12181 fields and new iterator.
12182 (record_btrace_call_history, record_btrace_call_history_range):
12183 Use new btrace thread info fields and new iterator.
12184
8372a7cb
MM
121852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12186
12187 * frame.h (frame_id_build_unavailable_stack_special): New.
12188 * frame.c (frame_id_build_unavailable_stack_special): New.
12189
c2170eef
MM
121902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12191
12192 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12193 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12194 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12195 to gdbarch.
12196 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12197 (i386_insn_is_jump, i386_jmp_p): New.
12198 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12199 insn_is_jump to gdbarch.
12200 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12201 * gdbarch.h: Regenerated.
12202 * gdbarch.c: Regenerated.
12203 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12204 (default_insn_is_jump): New.
12205 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12206 (default_insn_is_jump): New.
12207
864089d2
MM
122082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12209
12210 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12211 Change to ...
12212 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12213 (btrace_read_type) <btrace_read_new>: Change to ...
12214 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12215
ed9edfb5
MM
122162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12217
12218 * common/linux-btrace.c (linux_read_btrace): Free trace from
12219 previous iteration.
12220
fbcbc3fd
DE
122212014-01-15 Doug Evans <dje@google.com>
12222
12223 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12224 uint32_t.
12225
3d548a53
TT
122262014-01-15 Tom Tromey <tromey@redhat.com>
12227
12228 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12229 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12230 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12231 (set_objfile_main_name): New function.
12232 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12233 language_of_main>: New fields.
12234 (set_objfile_main_name): Declare.
12235 * symtab.c (find_main_name): Loop over objfiles to find the main
12236 name and language.
12237 (set_main_name): Now static.
12238 (get_main_info): Add comment.
12239 * symtab.h (set_main_name): Don't declare.
12240
32ac0d11
TT
122412014-01-15 Tom Tromey <tromey@redhat.com>
12242
12243 * symtab.c (main_progspace_key): New global.
12244 (struct main_info): New.
12245 (name_of_main, language_of_main): Remove.
12246 (get_main_info, main_info_cleanup): New function.
12247 (set_main_name, main_name, main_language): Use get_main_info.
12248 (_initialize_symtab): Initialize main_progspace_key.
12249
9e6c82ad
TT
122502014-01-15 Tom Tromey <tromey@redhat.com>
12251
12252 * dbxread.c (process_one_symbol): Update.
12253 * dwarf2read.c (read_partial_die): Update.
12254 * symfile.c (set_initial_language): Call main_language.
12255 * symtab.c (language_of_main): Now static.
12256 (set_main_name): Add 'lang' parameter.
12257 (find_main_name): Update.
12258 (main_language): New function.
12259 (symtab_observer_executable_changed): Update.
12260 * symtab.h (set_main_name): Update.
12261 (language_of_main): Remove.
12262 (main_language): Declare.
12263
6ef55de7
TT
122642014-01-15 Tom Tromey <tromey@redhat.com>
12265
12266 * symfile.c (init_entry_point_info): Use new "initialized" field.
12267 Update.
12268 * objfiles.h (struct entry_point) <initialized>: New field.
12269 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12270 (struct objfile) <ei>: ...here. Remove.
12271 * objfiles.c (entry_point_address_query): Update.
12272
53eddfa6
TT
122732014-01-15 Tom Tromey <tromey@redhat.com>
12274
12275 * objfiles.c (entry_point_address_query): Relocate entry point
12276 address.
12277 (objfile_relocate1): Do not relocate entry point address.
12278 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12279 <the_bfd_section_index>: New field.
12280 * symfile.c (init_entry_point_info): Find the entry point's
12281 section.
12282
d56e56aa
TT
122832014-01-15 Tom Tromey <tromey@redhat.com>
12284
12285 * solib-frv.c (enable_break): Use entry_point_address_query.
12286
33a97bbe
OJ
122872014-01-15 Omair Javaid <omair.javaid@linaro.org>
12288
12289 * NEWS: Add note on improved process record-replay on
12290 arm*-linux* targets.
12291
c6ec2b30
OJ
122922014-01-15 Omair Javaid <omair.javaid@linaro.org>
12293
12294 * arm-tdep.c (enum arm_record_result): New enum.
12295 (arm_record_unsupported_insn): New function.
12296 (arm_record_coproc_data_proc): Removed.
12297 (thumb2_record_ld_st_multiple): New function.
12298 (thumb2_record_ld_st_dual_ex_tbb): New function.
12299 (thumb2_record_data_proc_sreg_mimm): New function.
12300 (thumb2_record_ps_dest_generic): New function.
12301 (thumb2_record_branch_misc_cntrl): New function.
12302 (thumb2_record_str_single_data): New function.
12303 (thumb2_record_ld_mem_hints): New function.
12304 (thumb2_record_ld_word): New function.
12305 (thumb2_record_lmul_lmla_div): New function.
12306 (thumb2_record_decode_insn_handler): New function.
12307 (decode_insn): Add thumb32 instruction handlers.
12308
97dfe206
OJ
123092014-01-15 Omair Javaid <omair.javaid@linaro.org>
12310
12311 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12312 (struct arm_linux_record_tdep): Declare.
12313 (arm_canonicalize_syscall): New function.
12314 (arm_all_but_pc_registers_record): New function.
12315 (arm_linux_syscall_record): New function.
12316 (arm_linux_init_abi): Add syscall recording constructs.
12317 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12318 decoding. (arm_record_coproc_data_proc): Update arm syscall
12319 decoding.
12320 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12321 <arm_syscall_record>: New field.
12322 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12323 gdb_target_obs.
12324
9904a494
OJ
123252014-01-15 Omair Javaid <omair.javaid@linaro.org>
12326
12327 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12328 register for push instruction recording.
12329
f969241e
OJ
123302014-01-15 Omair Javaid <omair.javaid@linaro.org>
12331
12332 * arm-tdep.c (thumb_record_misc): Update to correct logical
12333 error while recording ldm, ldmia and pop instructions.
12334
bfbbec00
OJ
123352014-01-15 Omair Javaid <omair.javaid@linaro.org>
12336
12337 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12338
e40adcc9
PA
123392014-01-15 Pedro Alves <palves@redhat.com>
12340
12341 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12342 (go32_resume, go32_fetch_registers, store_register)
12343 (go32_store_registers, go32_prepare_to_store)
12344 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12345 (go32_create_inferior, go32_can_run, go32_terminal_init)
12346 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12347 declarations.
12348
b0a16e66
TT
123492014-01-15 Tom Tromey <tromey@redhat.com>
12350
12351 * target.h (async_callback_ftype): New typedef.
12352 (struct target_ops) <to_async>: Use it.
12353
bf7105a4
JB
123542014-01-15 Joel Brobecker <brobecker@adacore.com>
12355
12356 * python/py-value.c (get_field_type): Remove unnecessary curly
12357 braces for single-statement if block.
12358
a8f35c2e
JB
123592014-01-15 Joel Brobecker <brobecker@adacore.com>
12360
12361 * python/py-type.c (convert_field): Add missing empty line
12362 after declarations.
12363
bb4142cf
DE
123642014-01-14 Doug Evans <dje@google.com>
12365
12366 * symfile.h (expand_symtabs_matching): Renamed from
12367 expand_partial_symbol_names. Update prototype.
12368 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12369 * symfile.c (expand_symtabs_matching): Renamed from
12370 expand_partial_symbol_names. New args file_matcher, kind.
12371 Rename arg fun to symbol_matcher.
12372 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12373 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12374 ada_expand_partial_symbol_name.
12375 (ada_make_symbol_completion_list): Update to call
12376 expand_symtabs_matching.
12377 (ada_add_global_exceptions): Call expand_symtabs_matching.
12378 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12379 call map_symbol_filenames.
12380 * symtab.c (sources_info): Update to call map_symbol_filenames.
12381 (search_symbols): Call expand_symtabs_matching.
12382 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12383 (default_make_symbol_completion_list_break_on): Update to call
12384 expand_symtabs_matching.
12385 (make_source_files_completion_list): Update to call
12386 map_symbol_filenames.
12387
206f2a57
DE
123882014-01-14 Doug Evans <dje@google.com>
12389
12390 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12391 (expand_symtabs_symbol_matcher_ftype): New typedef.
12392 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12393 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12394 * symfile.c (expand_partial_symbol_names): Update to use
12395 expand_symtabs_symbol_matcher_ftype.
12396 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12397 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12398 Arg name_matcher renamed to symbol_matcher.
12399 * psymtab.c (recursively_search_psymtabs): Update to use
12400 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12401 sym_matcher.
12402 (expand_symtabs_matching_via_partial): Update to use
12403 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12404 Arg name_matcher renamed to symbol_matcher.
12405
540c2971
DE
124062014-01-14 Doug Evans <dje@google.com>
12407
12408 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12409 (map_partial_symbol_filenames): Ditto.
12410 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12411 (map_partial_symbol_filenames): Ditto.
12412 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12413 (map_partial_symbol_filenames): Ditto.
12414 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12415 (map_partial_symbol_filenames): Ditto.
12416 * symtab.c: Delete #include "psymtab.h".
12417
8213266a
PA
124182014-01-14 Pedro Alves <palves@redhat.com>
12419 Tom Tromey <tromey@redhat.com>
12420
12421 * infrun.c (use_displaced_stepping): Use find_record_target
12422 instead of RECORD_IS_USED.
12423 (adjust_pc_after_break): Use record_full_is_used instead of
12424 RECORD_IS_USED.
12425 * record-btrace.c (record_btrace_open): Call record_preopen
12426 instead of checking RECORD_IS_USED.
12427 * record-full.c (record_full_shortname)
12428 (record_full_core_shortname): New globals.
12429 (record_full_is_used): New function.
12430 (find_full_open): Call record_preopen instead of checking
12431 RECORD_IS_USED.
12432 (init_record_full_ops): Set the target's shortname to
12433 record_full_shortname.
12434 (init_record_full_core_ops): Set the target's shortname to
12435 record_full_core_shortname.
12436 * record-full.h (record_full_is_used): Declare.
12437 * record.c (find_record_target): Make extern.
12438 (record_preopen): New function.
12439 * record.h (RECORD_IS_USED): Delete macro.
12440 (find_record_target, record_preopen): Declare functions.
12441
7ec1862d
YQ
124422014-01-14 Yao Qi <yao@codesourcery.com>
12443
12444 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12445 'len''s type to ULONGEST.
12446 (core_xfer_shared_libraries_aix): Likewise.
12447 * gdbarch.c, gdbarch.h: Regenerated.
12448 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12449 Change type of 'len' to ULONGEST.
12450 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12451 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12452
dea80a27
YQ
124532014-01-14 Yao Qi <yao@codesourcery.com>
12454
12455 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12456 type of 'len' to ULONGEST.
12457 (linux_xfer_osdata_processgroups): Likewise.
12458 (linux_xfer_osdata_threads): Likewise.
12459 (linux_xfer_osdata_fds): Likewise.
12460 (linux_xfer_osdata_isockets): Likewise.
12461 (linux_xfer_osdata_shm): Likewise.
12462 (linux_xfer_osdata_sem): Likewise.
12463 (linux_xfer_osdata_msg): Likewise.
12464 (linux_common_xfer_osdata): Likewise.
12465 (struct osdata_type) <getter>: Likewise.
12466 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12467 the declaration.
12468
b55e14c7
YQ
124692014-01-14 Yao Qi <yao@codesourcery.com>
12470
12471 * target.h (target_xfer_partial_ftype): Update.
12472 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12473 ULONGEST.
12474 * aix-thread.c (aix_thread_xfer_partial): Change type of
12475 argument 'len' to ULONGEST.
12476 * auxv.c (procfs_xfer_auxv): Likewise.
12477 (ld_so_xfer_auxv): Likewise.
12478 (memory_xfer_auxv): Likewise.
12479 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12480 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12481 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12482 * corelow.c (core_xfer_partial): Likewise.
12483 * ctf.c (ctf_xfer_partial): Likewise.
12484 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12485 '%u'.
12486 (darwin_read_dyld_info): Likewise.
12487 (darwin_xfer_partial): Likewise.
12488 * exec.c (section_table_xfer_memory_partial): Likewise.
12489 (exec_xfer_partial): Likewise.
12490 * exec.h (section_table_xfer_memory_partial): Update
12491 declaration.
12492 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12493 instead of plongest.
12494 (gnu_xfer_partial): Likewise.
12495 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12496 (ia64_hpux_xfer_solib_got): Likewise.
12497 (ia64_hpux_xfer_partial): Likewise.
12498 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12499 * inf-ptrace.c (inf_ptrace_xfer_partial):
12500 * inf-ttrace.c (inf_ttrace_xfer_partial):
12501 * linux-nat.c (linux_xfer_siginfo): Likewise.
12502 (linux_nat_xfer_partial): Likewise.
12503 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12504 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12505 * monitor.c (monitor_xfer_memory): Likewise.
12506 (monitor_xfer_partial): Likewise.
12507 * procfs.c (procfs_xfer_partial): Likewise.
12508 * record-full.c (record_full_xfer_partial): Likewise.
12509 (record_full_core_xfer_partial): Likewise.
12510 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12511 instead of plongest.
12512 (gdbsim_xfer_partial): Likewise.
12513 * remote.c (remote_xfer_partial): Likewise.
12514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12515 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12516 declaration.
12517 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12518 (rs6000_xfer_shared_libraries): Likewise.
12519 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12520 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12521 (sparc_xfer_partial): Likewise.
12522 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12523 (spu_xfer_partial): Likewise.
12524 * spu-multiarch.c (spu_xfer_partial): Likewise.
12525 * target.c (target_read_live_memory): Likewise.
12526 (memory_xfer_live_readonly_partial): Likewise.
12527 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12528 (target_xfer_partial, default_xfer_partial): Likewise.
12529 (current_xfer_partial): Likewise.
12530 * tracepoint.c (tfile_xfer_partial): Likewise.
12531 * windows-nat.c (windows_xfer_memory): Likewise. Call
12532 pulongest instead of plongest.
12533 (windows_xfer_partial): Likewise.
12534 (windows_xfer_shared_libraries): Likewise.
12535
05804640
YQ
125362014-01-14 Yao Qi <yao@codesourcery.com>
12537
12538 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12539 target_xfer_partial_ftype.
12540
b5b08fb4
SC
125412014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12542
12543 PR python/15464
12544 PR python/16113
12545 * valops.c (value_struct_elt_bitpos): New function
12546 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12547 object to 'None' if the field name is an empty string ("").
12548 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12549 attribute to look for a field when 'name' is 'None'.
12550 (get_field_type): New function
12551
13aaf454
DE
125522014-01-13 Doug Evans <dje@google.com>
12553
12554 PR symtab/16426
12555 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12556 (try_open_dwop_file): Ditto.
12557 * gdb_bfd.c: #include "vec.h".
12558 (bfdp): New typedef.
12559 (struct gdb_bfd_data): New member included_bfds.
12560 (gdb_bfd_unref): Unref all included bfds.
12561 (gdb_bfd_record_inclusion): New function.
12562 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12563
c2cec97c
TT
125642014-01-13 Tom Tromey <tromey@redhat.com>
12565
12566 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12567
78e5999d
TT
125682014-01-13 Tom Tromey <tromey@redhat.com>
12569
12570 * defs.h (use_windows): Remove.
12571 * gdb.c (main): Update.
12572 * main.c (captured_main, gdb_main): Update.
12573 * main.h (struct captured_main_args) <use_windows>: Remove.
12574 * top.c (use_windows): Remove.
12575
f2052bbe
TT
125762014-01-13 Tom Tromey <tromey@redhat.com>
12577
12578 * defs.h (deprecated_flush_hook): Remove.
12579
fde4f8ed
JK
125802014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12581
12582 PR threads/16216
12583 * linux-thread-db.c (try_thread_db_load): Add parameter
12584 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12585 (try_thread_db_load_from_pdir_1): Move it there from here.
12586 (try_thread_db_load_from_sdir): Update caller.
12587 (try_thread_db_load_from_dir): Move it there from here.
12588
bdf61915
PP
125892014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12590
12591 * regformats/regdat.sh: Always rewrite the register file.
12592
f71e1a8d
PA
125932014-01-13 Pedro Alves <palves@redhat.com>
12594
12595 * Makefile.in (CHECK_HEADERS): New variable.
12596 (check-headers:): New rule.
12597
42c85435
TT
125982014-01-13 Tom Tromey <tromey@redhat.com>
12599
12600 * cli/cli-setshow.c (do_set_command): Update.
12601 * defs.h (deprecated_set_hook): Remove.
12602 * top.c (deprecated_set_hook): Remove.
12603
f8de5129
PA
126042014-01-13 Pedro Alves <palves@redhat.com>
12605
12606 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12607 the tracepoint if the PC is a pseudo-register.
12608
fc270c35
TT
126092014-01-13 Tom Tromey <tromey@redhat.com>
12610
12611 * defs.h (XCALLOC): Remove.
12612 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12613 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12614 * dwarf2loc.c (allocate_piece_closure): Likewise.
12615 * elfread.c (elf_symfile_segments): Likewise.
12616 (elf_symfile_segments): Likewise.
12617 * gdbtypes.c (copy_type_recursive): Likewise.
12618 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12619 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12620 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12621 XCALLOC.
12622 * mt-tdep.c (mt_gdbarch_init): Likewise.
12623 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12624 XCALLOC.
12625 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12626 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12627 * registry.c (registry_alloc_data): Likewise.
12628 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12629 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12630 * serial.c (serial_fdopen_ops): Likewise.
12631 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12632 XCALLOC.
12633 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12634 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12635 not XCALLOC.
12636
70ba0933
TT
126372014-01-13 Tom Tromey <tromey@redhat.com>
12638
12639 * defs.h (XMALLOC): Remove.
12640 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12641 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12642 * cli-out.c (struct ui_out *): Likewise.
12643 * cli/cli-dump.c (add_dump_command): Likewise.
12644 (add_dump_command): Likewise.
12645 * complaints.c (get_complaints): Likewise.
12646 (find_complaint): Likewise.
12647 * dwarf2-frame.c (execute_cfa_program): Likewise.
12648 * dwarf2read.c (abbrev_table_read_table): Likewise.
12649 * gdbarch.sh: Likewise.
12650 * gdbarch.c: Rebuild.
12651 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12652 * interps.c (interp_new): Likewise.
12653 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12654 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12655 * mi/mi-console.c (mi_console_file_new): Likewise.
12656 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12657 * mi/mi-out.c (mi_out_new): Likewise.
12658 * mi/mi-parse.c (mi_parse): Likewise.
12659 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12660 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12661 * observer.c (xalloc_observer_list_node): Likewise.
12662 * regcache.c (regcache_xmalloc_1): Likewise.
12663 * reggroups.c (reggroup_new): Likewise.
12664 (_initialize_reggroup): Likewise.
12665 * registry.c (register_data_with_cleanup): Likewise.
12666 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12667 * ser-base.c (serial_ttystate): Likewise.
12668 * ser-mingw.c (make_pipe_state): Likewise.
12669 * ser-pipe.c (pipe_open): Likewise.
12670 * serial.c (serial_open): Likewise.
12671 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12672 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12673 (tui_alloc_win_info): Likewise.
12674 (tui_add_content_elements): Likewise.
12675 * tui/tui-file.c (tui_file_new): Likewise.
12676 * tui/tui-out.c (tui_out_new): Likewise.
12677 * ui-file.c (mem_file_new): Likewise.
12678 * ui-out.c (push_level): Likewise.
12679 (make_cleanup_ui_out_end): Likewise.
12680 (append_header_to_list): Likewise.
12681 (ui_out_new): Likewise.
12682 * user-regs.c (user_reg_add_builtin): Likewise.
12683
41bf6aca
TT
126842014-01-13 Tom Tromey <tromey@redhat.com>
12685
12686 * defs.h (XZALLOC): Remove.
12687 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12688 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12689 (get_ada_tasks_inferior_data): Likewise.
12690 * auto-load.c (get_auto_load_pspace_data): Likewise.
12691 * auxv.c (get_auxv_inferior_data): Likewise.
12692 * bfd-target.c (target_bfd_reopen): Likewise.
12693 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12694 (deprecated_insert_raw_breakpoint): Likewise.
12695 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12696 * corelow.c (core_open): Likewise.
12697 * darwin-nat.c (darwin_check_new_threads): Likewise.
12698 (darwin_attach_pid): Likewise.
12699 * dummy-frame.c (dummy_frame_push): Likewise.
12700 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12701 * dwarf2loc.c (allocate_piece_closure): Likewise.
12702 * elfread.c (elf_symfile_segments): Likewise.
12703 * eval.c (ptrmath_type_p): Likewise.
12704 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12705 * gdbtypes.c (alloc_type_arch): Likewise.
12706 (alloc_type_instance): Likewise.
12707 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12708 * inf-child.c (inf_child_can_use_agent): Likewise.
12709 * inflow.c (get_inflow_inferior_data): Likewise.
12710 * infrun.c (save_infcall_suspend_state): Likewise.
12711 * jit.c (jit_reader_load): Likewise.
12712 (get_jit_objfile_data): Likewise.
12713 (get_jit_program_space_data): Likewise.
12714 (jit_object_open_impl): Likewise.
12715 (jit_symtab_open_impl): Likewise.
12716 (jit_block_open_impl): Likewise.
12717 (jit_frame_sniffer): Likewise.
12718 * linux-fork.c (add_fork): Likewise.
12719 * maint.c (make_command_stats_cleanup): Likewise.
12720 * objfiles.c (get_objfile_pspace_data): Likewise.
12721 * opencl-lang.c (struct lval_closure): Likewise.
12722 * osdata.c (osdata_start_osdata): Likewise.
12723 * progspace.c (new_address_space): Likewise.
12724 (add_program_space): Likewise.
12725 * remote-sim.c (get_sim_inferior_data): Likewise.
12726 * sh-tdep.c (sh_gdbarch_init): Likewise.
12727 * skip.c (Ignore): Likewise.
12728 (skip_delete_command): Likewise.
12729 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12730 (library_list_start_library): Likewise.
12731 (solib_aix_current_sos): Likewise.
12732 * solib-darwin.c (get_darwin_info): Likewise.
12733 (darwin_current_sos): Likewise.
12734 * solib-dsbt.c (get_dsbt_info): Likewise.
12735 * solib-ia64-hpux.c (new_so_list): Likewise.
12736 (ia64_hpux_get_solib_linkage_addr): Likewise.
12737 * solib-spu.c (append_ocl_sos): Likewise.
12738 (spu_current_sos): Likewise.
12739 * solib-svr4.c (get_svr4_info): Likewise.
12740 (svr4_keep_data_in_core): Likewise.
12741 (library_list_start_library): Likewise.
12742 (svr4_default_sos): Likewise.
12743 (svr4_read_so_list): Likewise.
12744 * solib-target.c (library_list_start_library): Likewise.
12745 (solib_target_current_sos): Likewise.
12746 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12747 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12748 * symfile.c (default_symfile_segments): Likewise.
12749 * target-descriptions.c (tdesc_data_init): Likewise.
12750 (tdesc_create_reg): Likewise.
12751 (struct tdesc_type *): Likewise.
12752 (tdesc_create_vector): Likewise.
12753 (tdesc_set_struct_size): Likewise.
12754 (struct tdesc_type *): Likewise.
12755 (tdesc_free_feature): Likewise.
12756 (tdesc_create_feature): Likewise.
12757 * windows-nat.c (windows_add_thread): Likewise.
12758 (windows_make_so): Likewise.
12759 * xml-support.c (gdb_xml_body_text): Likewise.
12760 (gdb_xml_create_parser_and_cleanup): Likewise.
12761 (xml_process_xincludes): Likewise.
12762 * xml-syscall.c (allocate_syscalls_info): Likewise.
12763 (syscall_create_syscall_desc): Likewise.
12764
5acfdbae
SDJ
127652014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12766
12767 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12768 function, with code from i386_stap_parse_special_token.
12769 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12770 (i386_stap_parse_special_token): Move code to the two functions
12771 above; simplify it.
12772
0000e5cc
PA
127732014-01-09 Pedro Alves <palves@redhat.com>
12774 Hui Zhu <hui@codesourcery.com>
12775
12776 PR gdb/16101
12777 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12778 bp_err_string. Don't mark the location shlib_disabled if the
12779 error thrown wasn't a generic or memory error. Catch errors
12780 thrown while inserting breakpoints in overlayed code. Output
12781 error message of software breakpoints.
12782 * remote.c (remote_insert_breakpoint): If this breakpoint has
12783 target-side commands but this stub doesn't support Z0 packets,
12784 throw NOT_SUPPORTED_ERROR error.
12785 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12786 * target.h (target_insert_breakpoint): Extend comment.
12787 (target_insert_hw_breakpoint): Add comment.
12788
b7ea362b
PA
127892014-01-08 Pedro Alves <palves@redhat.com>
12790
12791 * remote.c (remote_add_thread): Add threads silently if starting
12792 up.
12793 (remote_notice_new_inferior): If in all-stop, and starting up,
12794 don't call notice_new_inferior.
12795 (get_current_thread): New function, factored out from ...
12796 (add_current_inferior_and_thread): ... this. Adjust.
12797 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12798 found any thread, then select the remote's current thread as GDB's
12799 current thread too.
12800
b7bba001
JB
128012014-01-08 Joel Brobecker <brobecker@adacore.com>
12802
12803 * NEWS: Create a new section for the next release branch.
12804 Rename the section of the current branch, now that it has
12805 been cut.
12806
16dfbded
JB
128072014-01-08 Joel Brobecker <brobecker@adacore.com>
12808
12809 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12810 * version.in: Bump version to 7.7.50.DATE-cvs.
12811
22c90ac1
YQ
128122014-01-08 Yao Qi <yao@codesourcery.com>
12813
12814 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12815 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12816 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12817
d64ad97c
YQ
128182014-01-08 Yao Qi <yao@codesourcery.com>
12819
12820 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12821 return value of bfd_get_filename to symbol_file_add_from_bfd.
12822
f93ba80c
PM
128232014-01-08 Pierre Muller <muller@sourceware.org>
12824
12825 Fix PR16201.
12826 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12827 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12828 to prim_record_mininal_symbol_and_info.
12829 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12830 in call to prim_record_minimal_symbol_and_info.
12831 (read_pe_exported_syms): Set index field of section_data.
12832
a4d9ba85
AP
128332014-01-07 Andrew Pinski <apinski@cavium.com>
12834
12835 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12836 * features/aarch64.c: Regenerate.
12837
1b67eb02
AS
128382014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12839
12840 * target.c (return_null): Define.
12841 (update_current_target): Use it instead of return_zero for
12842 functions that return a pointer.
12843
5e3f4fab
EBM
128442014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12845
12846 * source.c (add_path): Fix check for duplicated paths in the previously
12847 included paths.
12848
e2616788
HK
128492014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12850
12851 * ada-lang.c: Remove duplicated include statements.
12852 * alphabsd-nat.c: Ditto.
12853 * amd64-darwin-tdep.c: Ditto.
12854 * amd64fbsd-nat.c: Ditto.
12855 * auto-load.c: Ditto.
12856 * ax-gdb.c: Ditto.
12857 * breakpoint.c: Ditto.
12858 * dbxread.c: Ditto.
12859 * fork-child.c: Ditto.
12860 * gdb_usleep.c: Ditto.
12861 * i386-darwin-tdep.c: Ditto.
12862 * i386fbsd-nat.c: Ditto.
12863 * infcmd.c: Ditto.
12864 * inferior.c: Ditto.
12865 * jv-lang.c: Ditto.
12866 * linux-nat.c: Ditto.
12867 * linux-tdep.c: Ditto.
12868 * m68kbsd-nat.c: Ditto.
12869 * m68klinux-nat.c: Ditto.
12870 * microblaze-tdep.c: Ditto.
12871 * mips-linux-tdep.c: Ditto.
12872 * mn10300-tdep.c: Ditto.
12873 * nto-tdep.c: Ditto.
12874 * opencl-lang.c: Ditto.
12875 * osdata.c: Ditto.
12876 * printcmd.c: Ditto.
12877 * regcache.c: Ditto.
12878 * remote-m32r-sdi.c: Ditto.
12879 * remote.c: Ditto.
12880 * symfile.c: Ditto.
12881 * symtab.c: Ditto.
12882 * tilegx-linux-nat.c: Ditto.
12883 * tilegx-tdep.c: Ditto.
12884 * tracepoint.c: Ditto.
12885 * valops.c: Ditto.
12886 * vaxbsd-nat.c: Ditto.
12887 * windows-nat.c: Ditto.
12888 * xtensa-tdep.c: Ditto.
12889
bd1f7788
YQ
128902014-01-07 Yao Qi <yao@codesourcery.com>
12891
12892 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12893
79301218
JB
128942014-01-07 Yao Qi <yao@codesourcery.com>
12895 Joel Brobecker <brobecker@adacore.com>
12896
12897 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12898 (pdc_write_regs): Likewise.
12899 (fetch_regs_kernel_thread): Likewise.
12900 (store_regs_kernel_thread): Likewise.
12901
129022014-01-07 Joel Brobecker <brobecker@adacore.com>
12903
12904 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12905 tagged type objects to their actual type.
12906
8e355c5d
JB
129072014-01-07 Joel Brobecker <brobecker@adacore.com>
12908
12909 * ada-valprint.c (print_field_values): Add "language" parameter.
12910 Update calls to print_field_values and print_variant_part.
12911 Pass new parameter "language" in call to val_print instead
12912 of "current_language". Replace call to ada_val_print by call
12913 to val_print.
12914 (print_variant_part): Add "language" parameter.
12915 (ada_val_print_struct_union): Update call to print_field_values.
12916
4fbf5aa5
JB
129172014-01-07 Joel Brobecker <brobecker@adacore.com>
12918
12919 * ada-valprint.c (ui_memcpy): Delete.
12920 (ada_print_floating): Update documentation. Add empty line
12921 between between function documentation and implementation.
12922 Delete variable "buffer". Use ui_file_xstrdup in place of
12923 ui_file_put. Minor adjustments following this change.
12924
71855601
JB
129252014-01-07 Joel Brobecker <brobecker@adacore.com>
12926
12927 * ada-valprint.c (ada_val_print_string): New function,
12928 extracted from ada_val_print_array.
12929 (ada_val_print_array): Replace extracted code by call
12930 to ada_val_print_string followed by a return. Move
12931 "else" branch to the function's top block.
12932
4eb27a30
JB
129332014-01-07 Joel Brobecker <brobecker@adacore.com>
12934
12935 * ada-valprint.c (ada_val_print_array): Move implementation
12936 down. Rename parameter "offset" and "val" into "offset_aligned"
12937 and "original_value" respectively. Add parameter "offset".
12938
34b27950
JB
129392014-01-07 Joel Brobecker <brobecker@adacore.com>
12940
12941 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12942 re-organizing the code. Change the "???" message printed
12943 when target type is a TYPE_CODE_UNDEF into
12944 "<ref to undefined type>".
12945
079e4591
JB
129462014-01-07 Joel Brobecker <brobecker@adacore.com>
12947
12948 * ada-valprint.c (print_record): Delete, implementation inlined...
12949 (ada_val_print_struct_union): ... here. Remove call to
12950 ada_check_typedef in inlined implementation.
12951
8004dfd1
JB
129522014-01-07 Joel Brobecker <brobecker@adacore.com>
12953
12954 * ada-valprint.c (ada_val_print_gnat_array): New function,
12955 extracted from ada_val_print_1;
12956 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12957 (ada_val_print_flt, ada_val_print_struct_union)
12958 (ada_val_print_ref): Likewise.
12959 (ada_val_print_1): Delete variables i and elttype.
12960 Replace extracted-out code by call to corresponding
12961 new functions.
12962
760a2db0
JB
129632014-01-07 Joel Brobecker <brobecker@adacore.com>
12964
12965 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12966
3a92c861
JB
129672014-01-07 Joel Brobecker <brobecker@adacore.com>
12968
12969 * ada-valprint.c (ada_val_print_1): Replace calls to
12970 ada_val_print_1 by calls to val_print.
12971
cd1630f9
JB
129722014-01-07 Joel Brobecker <brobecker@adacore.com>
12973
12974 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12975 Update calls to self accordingly. Replace calls to c_val_print
12976 by calls to val_print.
12977
bdf779a0
JB
129782014-01-07 Joel Brobecker <brobecker@adacore.com>
12979
12980 * ada-valprint.c (print_record): Delete declaration.
12981 (adjust_type_signedness, ada_val_print_1): Likewise.
12982 (ada_val_print): Move function implementation down.
12983 (print_variant_part, print_field_values, print_record):
12984 Move function implementation up.
12985
c0d48811
JB
129862014-01-07 Joel Brobecker <brobecker@adacore.com>
12987
12988 * python/py-type.c (typy_get_name): New function.
12989 (type_object_getset): Add entry for attribute "name".
12990 * NEWS: Add entry mentioning this new attribute.
12991
c26e9cbb
YQ
129922014-01-07 Yao Qi <yao@codesourcery.com>
12993
12994 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12995 statement.
12996
0cc6f43d
YQ
129972014-01-07 Yao Qi <yao@codesourcery.com>
12998
12999 * gnu-nat.c (info_port_rights): Add qualifier const to
13000 argument args.
13001
eec03155
YQ
130022014-01-07 Yao Qi <yao@codesourcery.com>
13003
13004 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13005
f04a82ef
YQ
130062014-01-07 Yao Qi <yao@codesourcery.com>
13007
13008 * gnu-nat.c (make_inf) Update declaration.
13009 (make_inf): Make it static.
13010 (inf_set_traced): Likewise.
13011 (inf_port_to_thread, inf_task_died_status): Likewise.
13012
d57dda0a
YQ
130132014-01-07 Yao Qi <yao@codesourcery.com>
13014
13015 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13016
3aa8c969
YQ
130172014-01-07 Yao Qi <yao@codesourcery.com>
13018
13019 * gnu-nat.c (_initialize_gnu_nat): Declare.
13020
94123b4f
YQ
130212014-01-07 Yao Qi <yao@codesourcery.com>
13022
13023 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13024 'enum bfd_endian'.
13025 (struct gdbarch_info) <byte_order>: Change type to
13026 'enum bfd_endian'.
13027 <byte_order_for_code>: Likewise.
13028 * gdbarch.c, gdbarch.h: Regenerated.
13029
dc81d70a
TT
130302014-01-06 Sasha Smundak <asmundak@google.com>
13031
13032 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13033
cc2f3c35
TT
130342014-01-06 Tom Tromey <tromey@redhat.com>
13035
13036 * doublest.c (convert_doublest_to_floatformat): Use const, not
13037 CONST.
13038 * somread.c (som_symtab_read): Likewise.
13039
adcf2eed
HZ
130402014-01-07 Hui Zhu <hui@codesourcery.com>
13041
13042 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13043 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13044 (gdb_bfd_fopen): Ditto.
13045 (gdb_bfd_openr): Ditto.
13046 (gdb_bfd_openw): Ditto.
13047 (gdb_bfd_openr_iovec): Ditto.
13048 (gdb_bfd_fdopenr): Ditto.
13049 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13050 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13051 with xstrdup.
13052 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13053 with xstrdup.
13054 * symfile-mem.c (symbol_file_add_from_memory): Removed
13055 gdb_bfd_stash_filename.
13056
50722198
DE
130572014-01-03 Doug Evans <dje@google.com>
13058
13059 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13060 output.
13061
2fa4b862
JB
130622014-01-01 Joel Brobecker <brobecker@adacore.com>
13063
13064 Update year range in copyright notice of all files.
13065
28498c42
JB
130662014-01-01 Joel Brobecker <brobecker@adacore.com>
13067
13068 * top.c (print_gdb_version): Set copyright year to 2014.
13069
7b6e1046
JB
130702014-01-01 Joel Brobecker <brobecker@adacore.com>
13071
13072 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13073
df96af55 13074For older changes see ChangeLog-2013.
c906108c
SS
13075\f
13076Local Variables:
13077mode: change-log
13078left-margin: 8
13079fill-column: 74
13080version-control: never
57da7796 13081coding: utf-8
c906108c 13082End:
This page took 2.212994 seconds and 4 git commands to generate.