Tell update_global_location_list to insert breakpoints
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
04086b45
PA
12014-09-22 Pedro Alves <palves@redhat.com>
2
3 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
4 (insert_breakpoints): Don't call insert_breakpoint_locations here.
5 Instead, pass UGLL_INSERT to update_global_location_list.
6 (update_global_location_list): Change parameter type from boolean
7 to enum ugll_insert_mode. All callers adjusted. Adjust to use
8 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
9 (create_solib_event_breakpoint_1): New, factored out from ...
10 (create_solib_event_breakpoint): ... this.
11 (create_and_insert_solib_event_breakpoint): Use
12 create_solib_event_breakpoint_1 instead of calling
13 insert_breakpoint_locations manually.
14 (update_global_location_list): Handle UGLL_INSERT.
15
44702360
PA
162014-09-22 Pedro Alves <palves@redhat.com>
17
18 * breakpoint.c (enum ugll_insert_mode): New enum.
19 (update_global_location_list)
20 (update_global_location_list_nothrow): Change parameter type from
21 boolean to enum ugll_insert_mode. All callers adjusted.
22
93c6145a
JB
232014-09-19 Joel Brobecker <brobecker@adacore.com>
24
25 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
26 SystemTap support in GDB.
27
89a5711c
DB
282014-09-19 Don Breazeal <donb@codesourcery.com>
29
30 * linux-nat.c (linux_handle_extended_wait): Call
31 linux_ptrace_get_extended_event.
32 (wait_lwp): Call linux_is_extended_waitstatus.
33 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
34 and linux_is_extended_waitstatus.
35 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
36 linux_ptrace_get_extended_event.
37 (linux_ptrace_get_extended_event): New function.
38 (linux_is_extended_waitstatus): New function.
39 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
40 (linux_is_extended_waitstatus): New declarations.
41
c3b7b696
YQ
422014-09-19 Yao Qi <yao@codesourcery.com>
43
44 * dwarf2read.c (dwarf_decode_lines): Update declaration.
45 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
46 comments. Callers update.
47 (dwarf_decode_lines): Likewise.
48 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
49 comments. Skip the line table if 'lowpc' is greater than
50 'address'. Don't check
51 dwarf2_per_objfile->has_section_at_zero.
52
2b4fd423
DE
532014-09-18 Doug Evans <dje@google.com>
54
55 * NEWS: Mention new "producer" attribute of gdb.Symtab.
56 * python/py-symtab.c (stpy_get_producer): New function.
57 (symtab_object_getset): Add "producer" attribute.
58
5e43d467
UW
592014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
60
61 PR gdb/17384
62 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
63 (do_captured_read_memory_integer): Remove.
64 (safe_read_memory_integer): Use target_read_memory directly instead
65 of catching errors in do_captured_read_memory_integer.
66
04e79979
MR
672014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
68
69 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
70 not gdb/doc.
71
76aeec5b
SDJ
722014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
73
74 * objc-lang.c (find_implementation_from_class): Remove dead code.
75
2f693f9d
SDJ
762014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
77
78 PR cli/7233
79 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
80 "fprintf_unfiltered (gdb_stdlog...)".
81
bb9d5f81
PP
822014-09-16 Patrick Palka <patrick@parcs.ath.cx>
83
84 PR breakpoints/12526
85 * breakpoint.h (struct watchpoint): New fields val_bitpos and
86 val_bitsize.
87 * breakpoint.c (watch_command_1): Use these fields to retain
88 bitfield information.
89 (extract_bitfield_from_watchpoint_value): New function.
90 (watchpoint_check): Use it.
91 (update_watchpoint): Use it. Optimize the address and length of a
92 HW watchpoint pointing to a bitfield.
93 * value.h (unpack_value_bitfield): New prototype.
94 * value.c (unpack_value_bitfield): Make extern.
95
05db5edd
ST
962014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
97
98 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
99 x86-dregs.o.
100 * gnu-nat.c (inf_threads): New function.
101 * gnu-nat.h (inf_threads_ftype): New typedef.
102 (inf_threads): New declaration.
103 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
104 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
105 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
106 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
107 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
108 (i386_gnu_dr_get_control): New functions.
109 (reg_addr): New structure.
110 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
111 i386 debugging register hooks.
112 * NEWS: Mention this.
113
5a578da5
OJ
1142014-08-13 Omair Javaid <omair.javaid@linaro.org>
115
116 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
117 vector data transfer instructions.
118 (arm_record_coproc_data_proc): Updated.
119
f20f80dd
OJ
1202014-08-13 Omair Javaid <omair.javaid@linaro.org>
121
122 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
123 arm_record_exreg_ld_st_insn.
124 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
125 load/store insns.
126
851f26ae
OJ
1272014-08-13 Omair Javaid <omair.javaid@linaro.org>
128
129 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
130 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
131 processing instructions.
132
1e1b6563
OJ
1332014-08-13 Omair Javaid <omair.javaid@linaro.org>
134
135 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
136 for advance SIMD struct ld/st insn.
137 (thumb2_record_decode_insn_handler): Replace stub handler with
138 thumb2_record_asimd_struct_ld_st.
139
60cc5e93
OJ
1402014-08-13 Omair Javaid <omair.javaid@linaro.org>
141
142 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
143 for asimd, vfp and coprocessor insns.
144 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
145 and coprocessor insns.
146 (thumb2_record_coproc_insn): New function.
147 (thumb2_record_decode_insn_handler): Update coprocessor insns record
148 handlers.
149 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
150 opcode 110 insns.
151
81219e53
DE
1522014-09-13 Doug Evans <xdje42@gmail.com>
153
154 * NEWS: Mention new "queue-signal" command.
155 * infcmd.c (queue_signal_command): New function.
156 (_initialize_infcmd): Add new queue-signal command.
157
d36bf488
DE
1582014-09-13 Doug Evans <xdje42@gmail.com>
159
160 * linux-nat.c (wait_lwp): Add debugging printf.
161 (linux_nat_wait_1): Ditto.
162
f37f681c
PA
1632014-09-12 Pedro Alves <palves@redhat.com>
164
165 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
166 (create_and_insert_solib_event_breakpoint): New functions.
167 * breakpoint.h (create_and_insert_solib_event_breakpoint)
168 (remove_solib_event_breakpoints_at_next_stop): New declarations.
169 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
170 (remove_dbx_link_breakpoint): Delete function.
171 (insert_dbx_link_bpt_in_file): Use
172 create_and_insert_solib_event_breakpoint instead of
173 deprecated_insert_raw_breakpoint.
174 (procfs_wait): Don't check whether we hit __dbx_link here.
175 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
176 here.
177 * solib-irix.c (base_breakpoint): Delete global.
178 (disable_break): Delete function.
179 (enable_break): Use create_solib_event_breakpoint
180 instead of deprecated_insert_raw_breakpoint.
181 (irix_solib_handle_event): New function.
182 (irix_solib_create_inferior_hook): Don't run the target or disable
183 the mapping-complete breakpoint here.
184 (_initialize_irix_solib): Install irix_solib_handle_event as
185 so_ops->handle_event hook.
186
9d9bf2df
EBM
1872014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
188 Ulrich Weigand  <uweigand@de.ibm.com>
189
190 PR tdep/17379
191 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
192 instead of read_memory_unsigned_integer.
193
b006a80e
GB
1942014-09-12 Gary Benson <gbenson@redhat.com>
195
196 * nat/linux-waitpid.c: Include common-defs.h.
197 [GDBSERVER]: Add FIXME comment.
198 [!GDBSERVER]: Don't include defs.h or signal.h.
199 (linux_debug) [!GDBSERVER]: Remove empty block.
200
296b1496
GB
2012014-09-12 Gary Benson <gbenson@redhat.com>
202
203 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
204 Don't include defs.h or server.h.
205
53f81362
GB
2062014-09-12 Gary Benson <gbenson@redhat.com>
207
208 * nat/linux-btrace.c: Include common-defs.h.
209 Don't include defs.h, server.h or gdbthread.h.
210 * nat/linux-btrace.h (struct target_ops): New forward declaration.
211
727605ca
GB
2122014-09-12 Gary Benson <gbenson@redhat.com>
213
214 * common/agent.c: Include common-defs.h.
215 Don't include defs.h or server.h.
216 * common/buffer.c: Likewise.
217 * common/common-debug.c: Likewise.
218 * common/common-utils.c: Likewise.
219 * common/errors.c: Likewise.
220 * common/filestuff.c: Likewise.
221 * common/format.c: Likewise.
222 * common/gdb_vecs.c: Likewise.
223 * common/print-utils.c: Likewise.
224 * common/ptid.c: Likewise.
225 * common/rsp-low.c: Likewise.
226 * common/signals.c: Likewise.
227 * common/vec.c: Likewise.
228 * common/xml-utils.c: Likewise.
229 * nat/linux-osdata.c: Likewise.
230 * nat/linux-procfs.c: Likewise.
231 * nat/linux-ptrace.c: Likewise.
232 * nat/mips-linux-watch.c: Likewise.
233 * target/waitstatus.c: Likewise.
234
361c8ade
GB
2352014-09-12 Tom Tromey <tromey@redhat.com>
236 Gary Benson <gbenson@redhat.com>
237
238 * common/common-regcache.h: New file.
239 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
240 * regcache.h: Include common-regcache.h.
241 (regcache_read_pc): Don't declare.
242 * regcache.c (get_thread_regcache_for_ptid): New function.
243 * nat/linux-btrace.c: Don't include regcache.h.
244 Include common-regcache.h.
245 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
246
a01cbb49
TS
2472014-09-11 Thomas Schwinge <thomas@codesourcery.com>
248
249 * regcache.h (struct regset): Declare.
250
98880d46
PA
2512014-09-11 Pedro Alves <palves@redhat.com>
252
253 PR gdb/17347
254 * main.c: Include "infrun.h".
255 (catch_command_errors, catch_command_errors_const): Wait for the
256 foreground command to complete.
257 * top.c (maybe_wait_sync_command_done): New function, factored out
258 from ...
259 (maybe_wait_sync_command_done): ... here.
260 * top.h (maybe_wait_sync_command_done): New declaration.
261
bd9269f7
GB
2622014-09-11 Tom Tromey <tromey@redhat.com>
263 Gary Benson <gbenson@redhat.com>
264
265 * common/symbol.h: New file.
266 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
267 * minsyms.c (find_minimal_symbol_address): New function.
268 * common/agent.c: Include common/symbol.h.
269 [!GDBSERVER]: Don't include objfiles.h.
270 (agent_look_up_symbols): Use find_minimal_symbol_address.
271
f8c1d06b
GB
2722014-09-11 Gary Benson <gbenson@redhat.com>
273
274 * target/target.h (target_stop_ptid, target_continue_ptid):
275 Declare.
276 * target.c (target_stop_ptid, target_continue_ptid): New
277 functions.
278 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
279 (agent_run_command): Always use target_stop_ptid and
280 target_continue_ptid.
281
721ec300
GB
2822014-09-11 Tom Tromey <tromey@redhat.com>
283 Gary Benson <gbenson@redhat.com>
284
285 * target/target.h: New file.
286 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
287 * target.h: Include target/target.h.
288 (target_read_memory, target_write_memory): Don't declare.
289 * target.c (target_read_uint32): New function.
290 * common/agent.c: Include target/target.h.
291 [!GDBSERVER]: Don't include target.h.
292 (helper_thread_id): Type changed to uint32_t.
293 (agent_get_helper_thread_id): Use target_read_uint32.
294 (agent_run_command): Always use target_read_memory and
295 target_write_memory.
296 (agent_capability): Type changed to uint32_t.
297 (agent_capability_check): Use target_read_uint32.
298
c5e92cca
GB
2992014-09-11 Gary Benson <gbenson@redhat.com>
300
301 * common/common-debug.h (show_debug_regs): Declare.
302 * common/common-debug.c (show_debug_regs): Define.
303 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
304 all uses with show_debug_regs. Replace all uses that considered
305 debug_hw_points as a multi-value integer with straight boolean
306 uses.
307 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
308 with show_debug_regs.
309 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
310 all uses with show_debug_regs.
311 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
312 uses with show_debug_regs.
313
eeef931a
UW
3142014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
315
316 * findvar.c (address_from_register): Handle targets requiring
317 a special conversion routine even for plain pointer types.
318
8efa9855
UW
3192014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
320
321 * rs6000-nat.c (exec_one_dummy_insn): Remove.
322 (store_register): Do not call exec_one_dummy_insn.
323
eb479039
JB
3242014-09-10 Joel Brobecker <brobecker@adacore.com>
325
326 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
327 dereference it first. Use value_enclosing_type instead of
328 value_type.
329 (ada_array_length): Likewise.
330
deede10c
JB
3312014-09-10 Joel Brobecker <brobecker@adacore.com>
332
333 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
334 Adjust function implementation and documentation accordingly.
335 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
336 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
337 Update call to ada_value_ptr_subscript.
338
7828a5f5
JB
3392014-09-10 Joel Brobecker <brobecker@adacore.com>
340
341 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
342 instead of VAL's type.
343
35782f14
JB
3442014-09-10 Joel Brobecker <brobecker@adacore.com>
345
346 * amd64-linux-nat.c: Add <sys/uio.h> #include.
347
d342a0da
DE
3482014-09-09 Doug Evans <xdje42@gmail.com>
349
350 PR guile/17367
351 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
352 last parameter to pkg-config, not first.
353 * configure.ac: Pass --with-guile provided pkg-config path to
354 GDB_GUILE_PROGRAM_NAMES.
355 * configure: Regenerate.
356
b4a3d263
GKB
3572014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
358
359 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
360 Bertazi".
361
6e466374
MR
3622014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
363
364 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
365 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
366 the list of sections determining GDB_OSABI_IRIX.
367
a1ada89a
JH
3682014-09-09 James Hogan <james.hogan@imgtec.com>
369
370 * MAINTAINERS (Write After Approval): Add "James Hogan".
371
86db008d
JH
3722014-09-09 James Hogan <james.hogan@imgtec.com>
373
374 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
375
72fde3df
JB
3762014-09-09 Joel Brobecker <brobecker@adacore.com>
377
378 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
379
92d8d229
DE
3802014-09-08 Doug Evans <xdje42@gmail.com>
381
382 PR 17247
383 * guile.c: #include <signal.h>.
384 (_initialize_guile): Block SIGCHLD while initializing Guile.
385
386 Replaces the following, which is reverted.
387
388 2014-07-26 Doug Evans <xdje42@gmail.com>
389
390 PR 17185
391 * configure.ac: Add check for header gc/gc.h.
392 Add check for function setenv.
393 * configure: Regenerate.
394 * config.in: Regenerate.
395 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
396
d81412aa
DE
3972014-09-08 Doug Evans <xdje42@gmail.com>
398
399 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
400 with named constant. Fix style of pointer comparison.
401 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
402
a9f116cb
GKB
4032014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
404
405 PR gdb/17035
406 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
407 decide whether we display the command on "show user".
408 * cli/cli-script.c (show_user_1): Only verify cmdlines after
409 printing command name.
410 * cli/cli-decode.h (cli_user_command_p): Declare new function.
411 * cli/cli-decode.c (cli_user_command_p): Create helper function
412 to verify whether cmd_list_element is a user-defined command.
413
c75bd3a2
JK
4142014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
415
416 PR python/17355
417 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
418 Fix goto out of TRY_CATCH.
419
faa42425 4202014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 421 Tom Tromey <tromey@redhat.com>
faa42425
DE
422
423 PR 15276
424 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
425 $_any_caller_matches.
426 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
427 * python/lib/gdb/function/caller_is.py: New file.
428
0d41ba00
DE
4292014-09-06 Doug Evans <xdje42@gmail.com>
430
431 * infcmd.c (program_info): Fix typo.
432
474ca4f6
SDJ
4332014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
434
435 PR gdb/17235
436 * stap-probe.c (stap_parse_single_operand): Delete unused variable
437 'number'. New variable 'has_digit'. Rewrite code to deal with
438 subexpressions on SDT probes.
439
ebf13736
PA
4402014-09-04 Pedro Alves <palves@redhat.com>
441
442 * c-exp.y (parse_number): Skip handling base-switching prefixes if
443 the input is only one character long.
444
eb0b0463
SDJ
4452014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
446
447 PR fortran/17237
448 * f-valprint.c (f_val_print): Specify the correct print option to
449 use when printing integer values.
450
5ee44bfa
GB
4512014-09-04 Gary Benson <gbenson@redhat.com>
452
453 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
454 Remove code to cope with LWPs wrapped as PIDs.
455 Add assertions to ensure no wrapped LWPs are passed.
456
4875ffdb
PA
4572014-09-04 Pedro Alves <palves@redhat.com>
458
459 * value.c (value_ranges_copy_adjusted): New function, factored out
460 from ...
461 (value_contents_copy_raw): ... here.
462 (unpack_value_bits_as_long_1): Rename back to ...
463 (unpack_bits_as_long): ... this. Remove 'original_value' and
464 'result' parameters. Change return type to LONGEST.
465 (unpack_value_bits_as_long): Delete.
466 (unpack_value_field_as_long_1): Delete.
467 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
468 (unpack_value_bitfield): New function.
469 (value_field_bitfield): Reimplement using unpack_value_bitfield.
470 (value_fetch_lazy): Use unpack_value_bitfield.
471 * value.h (unpack_value_bits_as_long): Delete declaration.
472
5f3b99cf
SS
4732014-09-03 Sasha Smundak <asmundak@google.com>
474
475 * python/py-frame.c (frapy_read_register): New function.
476
ac740bc7
JH
4772014-09-03 James Hogan <james.hogan@imgtec.com>
478
479 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
480 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
481
7d793aa9
SDJ
4822014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
483
484 PR python/16699
485 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
486 function.
487 (add_cmd): Set "completer_handle_brkchars" to NULL.
488 * cli/cli-decode.h (struct cmd_list_element)
489 <completer_handle_brkchars>: New field.
490 * command.h (completer_ftype_void): New typedef.
491 (set_cmd_completer_handle_brkchars): New prototype.
492 * completer.c (set_gdb_completion_word_break_characters): New
493 function.
494 (complete_line_internal): Call "completer_handle_brkchars"
495 callback from command.
496 * completer.h: Include "command.h".
497 (set_gdb_completion_word_break_characters): New prototype.
498 * python/py-cmd.c (cmdpy_completer_helper): New function.
499 (cmdpy_completer_handle_brkchars): New function.
500 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
501 (cmdpy_init): Set completer_handle_brkchars to
502 cmdpy_completer_handle_brkchars.
503
97ea6506
GB
5042014-09-03 Gary Benson <gbenson@redhat.com>
505
506 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
507 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
508 Loop conditions changed to equivalent form.
509 (struct x86_debug_reg_state): Updated dr_ref_count comment.
510 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
511 ALL_DEBUG_ADDRESS_REGISTERS.
512
d1437815
JB
5132014-09-03 Joel Brobecker <brobecker@adacore.com>
514
515 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
516 description fix.
517
9b94fcf1
DE
5182014-09-02 Doug Evans <dje@google.com>
519
520 * typeprint.c (find_global_typedef): Fix comment.
521
df7e5265
GB
5222014-09-02 Gary Benson <gbenson@redhat.com>
523
524 * i386-nat.h: Renamed as...
525 * x86-nat.h: New file. All type, function and variable name
526 prefixes changed from "i386_" to "x86_". All references updated.
527 * i386-nat.c: Renamed as...
528 * x86-nat.c: New file. All type, function and variable name
529 prefixes changed from "i386_" to "x86_". All references updated.
530 * common/i386-xstate.h: Renamed as...
531 * common/x86-xstate.h: New file. All type, function and variable
532 name prefixes changed from "i386_" to "x86_". All references
533 updated.
534 * nat/i386-cpuid.h: Renamed as...
535 * nat/x86-cpuid.h: New file. All type, function and variable name
536 prefixes changed from "i386_" to "x86_". All references updated.
537 * nat/i386-gcc-cpuid.h: Renamed as...
538 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
539 name prefixes changed from "i386_" to "x86_". All references
540 updated.
541 * nat/i386-dregs.h: Renamed as...
542 * nat/x86-dregs.h: New file. All type, function and variable name
543 prefixes changed from "i386_" to "x86_". All references updated.
544 * nat/i386-dregs.c: Renamed as...
545 * nat/x86-dregs.c: New file. All type, function and variable name
546 prefixes changed from "i386_" to "x86_". All references updated.
547
1c3569d4
MR
5482014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
549
550 * varobj.c (_initialize_varobj): Move to the end of file.
551
ff55e1b5
GB
5522014-08-29 Gary Benson <gbenson@redhat.com>
553
554 * common/common-exceptions.h: New file.
555 * common/common-exceptions.c: Likewise.
556 * Makefile.in (SFILES): Add common/common-exceptions.c.
557 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
558 (COMMON_OBS): Add common-exceptions.o.
559 (common-exceptions.o): New rule.
560 * exceptions.h (common-exceptions.h): Include.
561 (gdb_setjmp.h): Do not include.
562 (return_reason): Moved to common-exceptions.h.
563 (enum return_reason): Likewise.
564 (RETURN_MASK): Likewise.
565 (typedef return_mask): Likewise.
566 (enum errors): Likewise.
567 (struct gdb_exception): Likewise.
568 (exceptions_state_mc_init): Likewise.
569 (exceptions_state_mc_action_iter): Likewise.
570 (exceptions_state_mc_action_iter_1): Likewise.
571 (TRY_CATCH): Likewise.
572 (throw_exception): Likewise.
573 (throw_verror): Likewise.
574 (throw_vquit): Likewise.
575 (throw_error): Likewise.
576 (throw_quit): Likewise.
577 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
578 (enum catcher_action): Likewise.
579 (struct catcher): Likewise.
580 (current_catcher): Likewise.
581 (catcher_list_size): Likewise.
582 (exceptions_state_mc_init): Likewise.
583 (catcher_pop): Likewise.
584 (exceptions_state_mc): Likewise.
585 (exceptions_state_mc_action_iter): Likewise.
586 (exceptions_state_mc_action_iter_1): Likewise.
587 (throw_exception): Likewise.
588 (exception_messages): Likewise.
589 (exception_messages_size): Likewise.
590 (throw_it): Likewise.
591 (throw_verror): Likewise.
592 (throw_vquit): Likewise.
593 (throw_error): Likewise.
594 (throw_quit): Likewise.
595 (prepare_to_throw_exception): New function.
596
e9bcb658
GB
5972014-08-29 Gary Benson <gbenson@redhat.com>
598
599 * common/gdb_setjmp.h: New file.
600 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
601 * configure.ac: Move sigsetjmp check...
602 * common/common.m4: ...here.
603 * configure: Regenerate.
604 * cp-support.c (SIGJMP_BUF): Delete.
605 (SIGSETJMP): Likewise.
606 (SIGLONGJMP): Likewise.
607 * exceptions.h (gdb_setjmp.h): Include.
608 (setjmp.h): Do not include.
609 (EXCEPTIONS_SIGJMP_BUF): Delete.
610 (EXCEPTIONS_SIGSETJMP): Likewise.
611 (EXCEPTIONS_SIGLONGJMP): Likewise.
612 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
613 from gdb_setjmp.h.
614 * exceptions.c: Likewise.
615
e3180625
GB
6162014-08-29 Gary Benson <gbenson@redhat.com>
617
618 * cleanups.h: Moved to...
619 * common/cleanups.h: New file.
620 * cleanups.c: Moved to...
621 * common/cleanups.c: New file. Include common-defs.h and
622 cleanups.h. Do not include defs.h.
623 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
624 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
625 (cleanups.o): New rule.
626
e3d6ba5d
GB
6272014-08-29 Gary Benson <gbenson@redhat.com>
628
629 * common/errors.h (internal_warning): New declaration.
630 (internal_vwarning): Likewise.
631 * common/errors.c (internal_warning): New function.
632 * utils.h (internal_warning): Don't declare.
633 (internal_vwarning): Likewise.
634 * utils.c (internal_warning): Removed.
635
075c7033
GB
6362014-08-29 Gary Benson <gbenson@redhat.com>
637
638 * main.c (captured_main): Use warning during startup.
639 Prefix startup warning messages with command name.
640
91b35fd0
GB
6412014-08-29 Gary Benson <gbenson@redhat.com>
642
643 * main.c (captured_main): Handle usage errors with error.
644
b1ec390e
GB
6452014-08-29 Gary Benson <gbenson@redhat.com>
646
647 * go32-nat.c (go32_create_inferior): Replace a fprintf/
648 exit pair with a call to error. Wrap the message with _().
649
fd0ef3dd
GB
6502014-08-29 Gary Benson <gbenson@redhat.com>
651
652 * main.c (captured_main): Replace a fprintf/exit
653 pair with a call to error. Wrap the message with _().
654
e0e6bcab
GB
6552014-08-29 Gary Benson <gbenson@redhat.com>
656
657 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
658 pairs with calls to error. Wrap the message with _().
659
0d2f5c07
GB
6602014-08-29 Gary Benson <gbenson@redhat.com>
661
662 * utils.c (vwarning): Protect calls to target_terminal_ours
663 and wrap_here.
664
5df43998
GB
6652014-08-29 Gary Benson <gbenson@redhat.com>
666
667 * exceptions.c (print_flush): Protect calls to
668 target_terminal_ours and wrap_here.
669
2437fd32
GB
6702014-08-29 Gary Benson <gbenson@redhat.com>
671
672 * utils.h (filtered_printing_initialized): New declaration.
673 * utils.c (abort_with_message): New function.
674 (internal_vproblem): Use abort_with_message for first level
675 recursive internal problems, and if gdb_stderr is not set up.
676 Protect calls to target_terminal_ours, begin_line and query.
677
f1f58506
DE
6782014-08-28 Doug Evans <dje@google.com>
679
680 * symtab.c (in_prologue): Move definition to better spot.
681 (skip_prologue_using_sal): Ditto.
682
aab2f208
DE
6832014-08-28 Doug Evans <dje@google.com>
684
685 * symtab.c (find_function_start_sal): Move definition to better spot.
686
6b65d1b6
YQ
6872014-08-28 Yao Qi <yao@codesourcery.com>
688
689 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
690 found_stack_adjust in forward scan. Remove condition check
691 on found_stack_adjust which is always true. Indent the code.
692
a1b34d15
YQ
6932014-08-28 Yao Qi <yao@codesourcery.com>
694
695 * dwarf2read.c (dwarf_decode_lines): Update declaration.
696 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
697 (dwarf_decode_lines): Remove argument
698 want_line_info. Remove condition check on want_line_info.
699 Callers update.
700
d5962de5
DE
7012014-08-27 Doug Evans <dje@google.com>
702
703 * dwarf2read.c (dwarf_record_line): Fix typo.
704
9b139002
SDJ
7052014-08-27 Patrick Palka <patrick@parcs.ath.cx>
706
707 * target.h (struct target_ops::to_terminal_save_ours): Remove
708 declaration.
709 (target_terminal_save_ours): Remove macro.
710 * target-delegates.c: Regenerate.
711 * inf-child.c (inf_child_target): Don't set the nonexistent
712 field to_terminal_save_ours.
713 * inferior.h (child_terminal_save_ours): Remove declaration.
714 * terminal.h (gdb_save_tty_state): New declaration.
715 * inflow.c (child_terminal_save_ours): Rename to ...
716 (gdb_save_tty_state): ... this.
717 * tui/tui.c: Include terminal.h.
718 (tui_enable): Use gdb_save_tty_state instead of
719 target_terminal_save_ours.
720 (tui_disable): Likewise.
721
9debeba0
DE
7222014-08-25 Doug Evans <dje@google.com>
723
724 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
725 Pass NULL instead of 0 for context pointer.
726
428fc5fc
YQ
7272014-08-25 Yao Qi <yao@codesourcery.com>
728
729 * dwarf2read.c: Fix grammatical error.
730
cdc07690
YQ
7312014-08-24 Yao Qi <yao@codesourcery.com>
732
733 * dwarf2read.c (scan_partial_symbols): Update comments.
734 Rename argument 'need_pc' with 'set_addrmap'.
735 (add_partial_namespace): Rename argument 'need_pc' with
736 'set_addrmap'.
737 (add_partial_module): Likewise.
738 (add_partial_subprogram): Likewise. Update comments.
739 (dwarf2_name): Fix typo.
740
a05a36a5
DE
7412014-08-22 Doug Evans <dje@google.com>
742
743 PR 17276
744 * dwarf2read.c (dwarf_record_line_p): New function.
745 (dwarf_decode_lines_1): Ignore subsequent line number entries
746 for the same line if any entry had a non-zero discriminator.
747
252a6764
DE
7482014-08-22 Doug Evans <dje@google.com>
749
750 * buildsym.h (record_line_ftype): New typedef.
751 (record_line): Use it.
752 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
753 (dwarf_decode_lines_1): Call them.
754
510db052
YQ
7552014-08-22 Yao Qi <yao@codesourcery.com>
756
757 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
758 (ctf_end): Remove code.
759
22fd09ae
JK
7602014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
761
762 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
763 (linux_make_corefile_notes): call update_thread_list, protected against
764 exceptions.
765
656e8868
PA
7662014-08-21 Pedro Alves <palves@redhat.com>
767
768 * infcmd.c (attach_command): Remove comment.
769
de589d04
WN
7702014-08-21 Bin Cheng <bin.cheng@arm.com>
771
772 * aarch64-linux-nat.c (dr_changed_t): Change the type from
773 unsigned LONGEST to ULONGEST.
774
2a31c623
PA
7752014-08-20 Pedro Alves <palves@redhat.com>
776
777 * Makefile.in (check-read1): New rule.
778
d36430db
JB
7792014-08-20 Joel Brobecker <brobecker@adacore.com>
780
781 * value.c (value_from_contents_and_address): Strip resolved_type's
782 typedef layers before checking its TYPE_DATA_LOCATION.
783
000339af
PA
7842014-08-20 Pedro Alves <palves@redhat.com>
785
786 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
787
5f52445b
YQ
7882014-08-20 Yao Qi <yao@codesourcery.com>
789
790 * amd64-tdep.c (amd64_classify): Add a blank line after the
791 example. Move "*/" to a new line.
792 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
793 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
794 * dwarf2read.c (psymtab_include_file_name): Likewise.
795
9a0dc9e3
PA
7962014-08-19 Andrew Burgess <aburgess@broadcom.com>
797 Pedro Alves <palves@redhat.com>
798
799 PR symtab/14604
800 PR symtab/14605
801 * ada-lang.c (coerce_unspec_val_to_type): Use
802 value_contents_copy_raw.
803 * ada-valprint.c (val_print_packed_array_elements): Adjust.
804 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
805 * cp-valprint.c (cp_print_value_fields): Let the common printing
806 code handle optimized out values.
807 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
808 * d-valprint.c (dynamic_array_type): Use
809 value_bits_any_optimized_out.
810 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
811 check_any_valid fields.
812 (check_pieced_value_bits): Delete and inline ...
813 (check_pieced_synthetic_pointer): ... here.
814 (check_pieced_value_validity): Delete.
815 (check_pieced_value_invalid): Delete.
816 (pieced_value_funcs): Remove check_validity and check_any_valid
817 fields.
818 (read_pieced_value): Use mark_value_bits_optimized_out.
819 (write_pieced_value): Switch to use
820 mark_value_bytes_optimized_out.
821 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
822 of assuming the whole value is optimized out.
823 * findvar.c (read_frame_register_value): Remove special handling
824 of optimized out registers.
825 (value_from_register): Use mark_value_bytes_optimized_out.
826 * frame-unwind.c (frame_unwind_got_optimized): Use
827 mark_value_bytes_optimized_out.
828 * jv-valprint.c (java_value_print): Adjust.
829 (java_print_value_fields): Let the common printing code handle
830 optimized out values.
831 * mips-tdep.c (mips_print_register): Remove special handling of
832 optimized out registers.
833 * opencl-lang.c (lval_func_check_validity): Delete.
834 (lval_func_check_any_valid): Delete.
835 (opencl_value_funcs): Remove check_validity and check_any_valid
836 fields.
837 * p-valprint.c (pascal_object_print_value_fields): Let the common
838 printing code handle optimized out values.
839 * stack.c (read_frame_arg): Remove special handling of optimized
840 out values. Fetch both VAL and ENTRYVAL before comparing
841 contents. Adjust to value_available_contents_eq rename.
842 * valprint.c (valprint_check_validity)
843 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
844 (val_print_array_elements): Adjust.
845 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
846 (value_bits_any_optimized_out): New function.
847 (value_entirely_covered_by_range_vector): New function, factored
848 out from value_entirely_unavailable.
849 (value_entirely_unavailable): Reimplement.
850 (value_entirely_optimized_out): New function.
851 (insert_into_bit_range_vector): New function, factored out from
852 mark_value_bits_unavailable.
853 (mark_value_bits_unavailable): Reimplement.
854 (struct ranges_and_idx): New struct.
855 (find_first_range_overlap_and_match): New function, factored out
856 from value_available_contents_bits_eq.
857 (value_available_contents_bits_eq): Rename to ...
858 (value_contents_bits_eq): ... this. Check both unavailable
859 contents and optimized out contents.
860 (value_available_contents_eq): Rename to ...
861 (value_contents_eq): ... this.
862 (allocate_value_lazy): Remove reference to the old optimized_out
863 boolean.
864 (allocate_optimized_out_value): Use
865 mark_value_bytes_optimized_out.
866 (require_not_optimized_out): Adjust to check whether the
867 optimized_out vec is empty.
868 (ranges_copy_adjusted): New function, factored out from
869 value_contents_copy_raw.
870 (value_contents_copy_raw): Also copy the optimized out ranges.
871 Assert the destination ranges aren't optimized out.
872 (value_contents_copy): Update comment, remove call to
873 require_not_optimized_out.
874 (value_contents_equal): Adjust to check whether the optimized_out
875 vec is empty.
876 (set_value_optimized_out, value_optimized_out_const): Delete.
877 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
878 New functions.
879 (value_entirely_optimized_out, value_bits_valid): Delete.
880 (value_copy): Take a VEC copy of the 'optimized_out' field.
881 (value_primitive_field): Remove special handling of optimized out.
882 (value_fetch_lazy): Assert that lazy values have no unavailable
883 regions. Use value_bits_any_optimized_out. Remove some special
884 handling for optimized out values.
885 * value.h: Add intro comment about <optimized out> and
886 <unavailable>.
887 (struct lval_funcs): Remove check_validity and check_any_valid
888 fields.
889 (set_value_optimized_out, value_optimized_out_const): Remove.
890 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
891 New declarations.
892 (value_bits_any_optimized_out): New declaration.
893 (value_bits_valid): Delete declaration.
894 (value_available_contents_eq): Rename to ...
895 (value_contents_eq): ... this, and extend comments.
896
6694c411
JK
8972014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 Fix -fsanitize=address on unreadable inferior strings.
900 * valprint.c (val_print_string): Fix access before BUFFER.
901
89a1c21a
SM
9022014-08-19 Simon Marchi <simon.marchi@ericsson.com>
903
904 * target.c (target_struct_size): Remove.
905 (target_struct_allocsize): Remove.
906 (DEFAULT_ALLOCSIZE): Remove.
907 (target_ops_p): New typedef.
908 (DEF_VEC_P (target_ops_p)): New vector type.
909 (target_structs): Change type to VEC (target_ops_p).
910 (add_target_with_completer): Replace "push" code by VEC_safe_push.
911 (find_default_run_target): Rewrite for loop following changes to
912 target_structs.
913
cb417230
JB
9142014-08-19 Joel Brobecker <brobecker@adacore.com>
915
916 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
917 Adjust code accordingly. Adjust function description comment.
918
817e0957
YQ
9192014-08-19 Yao Qi <yao@codesourcery.com>
920
921 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
922 types.
923
2974be62
AM
9242014-08-19 Alan Modra <amodra@gmail.com>
925
926 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
927 * config.in: Regenerate.
928 * configure: Regenerate.
929
34abf635
GB
9302014-08-19 Tom Tromey <tromey@redhat.com>
931 Gary Benson <gbenson@redhat.com>
932
933 * common/common-debug.h: New file.
934 * common/common-debug.c: Likewise.
935 * debug.c: Likewise.
936 * Makefile.in (SFILES): Add common/common-debug.c.
937 (HFILES_NO_SRCDIR): Add common/common-debug.h.
938 (COMMON_OBS): Add common-debug.o and debug.o.
939 (common-debug.o): New rule.
940 * common/common-defs.h: Include common-debug.h.
941 * common/agent.c (debug_agent_printf): New function.
942 (DEBUG_AGENT): Redefine.
943 * nat/i386-dregs.c (debug_printf): Undefine.
944
f6e94d78
GB
9452014-08-19 Gary Benson <gbenson@redhat.com>
946
947 * common/common-defs.h: Include print-utils.h.
948 * utils.h: Do not include print-utils.h.
949
9239eeab
GB
9502014-08-19 Tom Tromey <tromey@redhat.com>
951 Gary Benson <gbenson@redhat.com>
952
953 * common/common-types.h: New file.
954 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
955 * common/common-defs.h: Include common-types.h.
956 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
957 (ULONGEST): Remove.
958
ef87c8bb
GB
9592014-08-19 Tom Tromey <tromey@redhat.com>
960 Gary Benson <gbenson@redhat.com>
961
962 * common/errors.h: New file.
963 * common/errors.c: Likewise.
964 * Makefile.in (SFILES): Add common/errors.c.
965 (HFILES_NO_SRCDIR): Add common/errors.h.
966 (COMMON_OBS): Add errors.o.
967 (errors.o): New rule.
968 * common/common-defs.h: Include errors.h.
969 * utils.h (perror_with_name, error, verror, warning, vwarning):
970 Don't declare.
971 * common/common-utils.h: (malloc_failure, internal_error):
972 Likewise.
973
196a707b
GB
9742014-08-19 Gary Benson <gbenson@redhat.com>
975
976 * utils.c (internal_vproblem): Always print the message.
977
ded4fc8f
DE
9782014-08-18 Doug Evans <dje@google.com>
979
980 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
981
950c97d8
JB
9822014-08-18 Joel Brobecker <brobecker@adacore.com>
983
984 * ada-typeprint.c (type_is_full_subrange_of_target_type):
985 Return 0 if TYPE is dynamic.
986 (print_range): Add handling of dynamic ranges.
987
3cdcd0ce
JB
9882014-08-18 Keven Boell <keven.boell@intel.com>
989 Joel Brobecker <brobecker@adacore.com>
990
991 * gdbtypes.h (struct main_type): Add field "data_location".
992 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
993 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
994 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
995 a dynamic data location.
996 (resolve_dynamic_type): Add DW_AT_data_location handling.
997 (copy_recursive, copy_type): Copy the data_location information
998 when present.
999 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1000 * value.c (value_from_contents_and_address): Add
1001 DW_AT_data_location handling.
1002
08412b07
JB
10032014-08-18 Keven Boell <keven.boell@intel.com>
1004 Joel Brobecker <brobecker@adacore.com>
1005
1006 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1007 field "get_object_address".
1008 * dwarf2expr.c (execute_stack_op): Add handling for
1009 DW_OP_push_object_address.
1010 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1011 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1012 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1013 (dwarf_expr_get_obj_addr): New function.
1014 (dwarf_expr_ctx_funcs): Add get_object_address field.
1015 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1016 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1017 (dwarf2_evaluate_property): Add parameter "address". Use it.
1018 (needs_get_obj_addr): New function.
1019 (needs_frame_ctx_funcs): Add get_object_address field.
1020 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1021 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1022 (resolve_dynamic_array): Likewise.
1023
84754697
JB
10242014-08-18 Joel Brobecker <brobecker@adacore.com>
1025
1026 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1027 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1028 fixed value for records and unions for which some GNAT encodings
1029 are present.
1030
da5c522f
JB
10312014-08-18 Joel Brobecker <brobecker@adacore.com>
1032
1033 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1034 rewrite to avoid "else if" and "else" constructs. Should be
1035 a no-op in practice.
1036
0d72a7c3
JB
10372014-08-18 Joel Brobecker <brobecker@adacore.com>
1038
1039 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1040 of lexical block.
1041
e66d4446
SC
10422014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1043
1044 PR c++/17132
1045 * eval.c: Update all calls to find_overload_match.
1046 * valarith.c: Likewise.
1047 (value_user_defined_cpp_op, value_user_defined_op): New
1048 argument NOSIDE. Update all callers.
1049 * valops.c (find_overload_match): New argument NOSIDE.
1050 * value.h (find_overload_match): Update signature.
1051
940df408
SC
10522014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1053
1054 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1055 'items' methods instead of 'iteritems' method on dictionaries.
1056
699ca60a
DE
10572014-08-15 Doug Evans <dje@google.com>
1058
1059 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1060 closer to use.
1061
37780ee5
DE
10622014-08-15 Doug Evans <dje@google.com>
1063
1064 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1065
0ad93d4f
DE
10662014-08-15 Doug Evans <dje@google.com>
1067
1068 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1069
20d8c372
DE
10702014-08-15 Doug Evans <dje@google.com>
1071
1072 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1073 unused.
1074
cb039ba4
EZ
10752014-08-15 Eli Zaretskii <eliz@gnu.org>
1076
1077 * dcache.h: Include target.h, to avoid compile time warnings.
1078
eb7a547a
JB
10792014-08-15 Joel Brobecker <brobecker@adacore.com>
1080
1081 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1082 frame_info" partial declaration.
1083 * gdbarch.h: Regenerate.
1084
783cecc8
YQ
10852014-08-15 Yao Qi <yao@codesourcery.com>
1086
1087 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1088 Add parameter 'decode_for_pst_p'. Callers update.
1089
65c749e7
YQ
10902014-08-13 Yao Qi <yao@codesourcery.com>
1091
1092 PR build/17104
1093 * configure.ac: Use local variable 'pos'.
1094 * configure: Regenerated.
1095
d769e349
DE
10962014-08-11 Doug Evans <dje@google.com>
1097
1098 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1099 message, it is redundant with "Reading symbols from ..." message.
1100
24f1235e
DE
11012014-08-10 Doug Evans <xdje42@gmail.com>
1102
1103 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1104
dcd2e6ef
YQ
11052014-08-09 Yao Qi <yao@codesourcery.com>
1106
1107 PR remote/9053
1108 * remote.c (remote_xfer_partial): Remove dead code.
1109
070bdf0b
AA
11102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1111
1112 * ia64-linux-tdep.c: Include "regset.h".
1113 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1114 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1115 (ia64_linux_supply_fpregset): New function.
1116 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1117 (ia64_linux_regset_from_core_section): New function.
1118 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1119 method.
1120
08f9f542
AA
11212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1122
1123 * m68klinux-tdep.c: Include "regset.h".
1124 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1125 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1126 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1127 (m68k_linux_regset_from_core_section): New function.
1128 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1129 method.
1130
8f1cee41
AA
11312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132
1133 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1134 function. Move logic to...
1135 (tilegx_linux_regmap): ... this new register map.
1136 (tilegx_linux_regset): Refer to register map, replace supply
1137 method by regcache_supply_regset, and add collect method.
1138 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1139 TILEGX_FIRST_EASY_REGNUM.
1140
c5741217
AA
11412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1144 that calls regcache_supply_regset and handles the EPC register
1145 separately. Move main logic to...
1146 (score7_linux_gregmap): ... this new register map.
1147 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1148 (score7_linux_gregset): Refer to register map. Add collect method.
1149 (score7_linux_regset_from_core_section): Replace
1150 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1151 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1152 (struct regset): Delete unused forward declaraction.
1153 (struct pt_regs): Delete structure definition.
1154 (elf_gregset_t): Delete typedef.
1155
81580573
AA
11562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1157
1158 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1159 (nios2_core_regset): Add collect method.
1160
ba199d7d
AA
11612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1162
1163 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1164 platform-independent and don't write to read-only input buffer.
1165 (m32r_linux_collect_gregset): New function.
1166 (m32r_linux_gregset): Add collect method.
1167
0006a9da
AA
11682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1169
1170 * hppa-linux-tdep.c (greg_map): Rename to...
1171 (hppa_linux_gregmap): ... this. Also convert to
1172 regcache_map_entry format.
1173 (hppa_linux_supply_regset): Delete function.
1174 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1175 (hppa_linux_fpregmap): ... this new register map.
1176 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1177 register map, replace supply method by regcache_supply_regset, and
1178 add collect method regcache_collect_regset.
1179
901e1b23
AA
11802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1181
1182 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1183 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1184 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1185 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1186 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1187 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1188 (frv_linux_supply_gregset): Replace main logic by call to
1189 regcache_supply_regset, but keep clearing gr32-gr63.
1190 (frv_linux_supply_fpregset): Delete function.
1191 (frv_linux_gregset): Refer to appropriate register map and add
1192 regcache_collect_regset as the collect method.
1193 (frv_linux_fpregset): Likewise. Also exchange the supply method
1194 by regcache_supply_regset.
1195
1d6e7555
AA
11962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1199 by call to alpha_supply_int_regs.
1200 (alpha_linux_collect_gregset): New function.
1201 (alpha_linux_supply_fpregset): Replace logic by call to
1202 alpha_supply_fp_regs.
1203 (alpha_linux_collect_fpregset): New function.
1204 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1205
d4d793bf
AA
12062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1207
1208 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1209 by call to regcache_collect_regset.
1210 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1211 instead of aarch64_linux_supply_gregset/_fpregset.
1212 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1213 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1214 header file instead.
1215 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1216 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1217 functions. Move logic to ...
1218 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1219 register maps.
1220 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1221 refer to new register maps, replace *_regset_from_core by
1222 regcache_supply_regset, and also use regcache_collect_regset.
1223 * aarch64-linux-tdep.h: Include "regset.h".
1224 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1225 Delete prototypes.
1226 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1227 macros, moved from C source file.
1228 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1229 variable declarations.
1230
99b7da5d
AA
12312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1232
1233 * s390-linux-nat.c: Include "regset.h".
1234 (regmap_gregset): Delete macro.
1235 (s390_64_regmap_gregset): New register map for
1236 regcache_supply/_collect_regset.
1237 (s390_64_gregset): New regset.
1238 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1239 (regmap_fpregset): Delete macro.
1240 (s390_native_supply, s390_native_collect): Delete functions.
1241 (supply_gregset, fill_gregset): Replace s390-specific regmap
1242 handling by a call to regcache_supply/_collect_regset.
1243 (supply_fpregset, fill_fpregset): Call regcache_supply/
1244 _collect_regset instead of s390_native_supply/_collect.
1245 (fetch_regset, store_regset): Likewise. Also change the last
1246 parameter to a regset instead of a regmap.
1247 (s390_linux_fetch_inferior_registers)
1248 (390_linux_store_inferior_registers): Adjust last parameter in
1249 calls to fetch_regset and store_regset.
1250 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1251 (s390_gregmap): ... this. Also make static const and convert to
1252 regcache_map_entry format.
1253 (s390x_regmap_gregset): Delete.
1254 (s390_regmap_fpregset): Rename to...
1255 (s390_fpregmap): ... this. Make static const and convert to
1256 regcache_map_entry format.
1257 (s390_regmap_upper, s390_regmap_last_break)
1258 (s390x_regmap_last_break, s390_regmap_system_call)
1259 (s390_regmap_tdb): Likewise.
1260 (s390_supply_regset, s390_collect_regset): Remove functions.
1261 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1262 s390_supply_regset.
1263 (s390_gregset, s390_fpregset, s390_upper_regset)
1264 (s390_last_break_regset, s390x_last_break_regset)
1265 (s390_system_call_regset, s390_tdb_regset): Make global and
1266 replace s390_supply/_collect_regset by regcache_supply/
1267 _collect_regset.
1268 (s390x_gregset): Delete.
1269 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1270 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1271 (s390_regmap_fpregset, s390_regmap_last_break)
1272 (s390x_regmap_last_break, s390_regmap_system_call)
1273 (s390_regmap_tdb): Delete global variable declarations.
1274 (s390_gregset, s390_fpregset, s390_last_break_regset)
1275 (s390x_last_break_regset, s390_system_call_regset)
1276 (s390_tdb_regset): New global variable declarations.
1277
0b309272
AA
12782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1279
1280 * regcache.c: Include "regset.h".
1281 (regcache_transfer_regset): New local function.
1282 (regcache_supply_regset, regcache_collect_regset): New functions.
1283 * regcache.h (struct regcache_map_entry): New structure.
1284 (REGCACHE_MAP_SKIP): New enum value.
1285 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1286
7fefa8d7
AA
12872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1288
1289 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1290 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1291 (ppc_linux_collect_gregset ): Likewise.
1292 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1293 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1294 (ppc_collect_vrregset): Likewise.
1295 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1296 Likewise.
1297
96c4f946
YQ
12982014-08-07 Yao Qi <yao@codesourcery.com>
1299
1300 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1301 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1302 * remote.c (remote_read_bytes): Likewise.
1303
fffbe6a8
YQ
13042014-08-07 Yao Qi <yao@codesourcery.com>
1305
1306 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1307
5ee8a82c
YQ
13082014-08-07 Yao Qi <yao@codesourcery.com>
1309
1310 PR remote/17230
1311 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1312 TARGET_XFER_OK instead of 0.
1313
bb974a24
GB
13142014-08-07 Gary Benson <gbenson@redhat.com>
1315
1316 * common/common-defs.h: Include errno.h.
1317 * defs.h: Do not include errno.h.
1318 * ada-typeprint.c: Likewise.
1319 * c-typeprint.c: Likewise.
1320 * core-regset.c: Likewise.
1321 * corefile.c: Likewise.
1322 * corelow.c: Likewise.
1323 * event-loop.c: Likewise.
1324 * f-typeprint.c: Likewise.
1325 * gnu-nat.c: Likewise.
1326 * go32-nat.c: Likewise.
1327 * i386gnu-nat.c: Likewise.
1328 * m2-typeprint.c: Likewise.
1329 * nat/linux-btrace.c: Likewise.
1330 * p-typeprint.c: Likewise.
1331 * procfs.c: Likewise.
1332 * remote-sim.c: Likewise.
1333 * rs6000-nat.c: Likewise.
1334 * target.c: Likewise.
1335 * typeprint.c: Likewise.
1336 * ui-file.c: Likewise.
1337 * valops.c: Likewise.
1338 * valprint.c: Likewise.
1339
6d3d12eb
GB
13402014-08-07 Gary Benson <gbenson@redhat.com>
1341
1342 * common/common-defs.h: Include string.h.
1343 * aarch64-tdep.c: Do not include string.h.
1344 * ada-exp.y: Likewise.
1345 * ada-lang.c: Likewise.
1346 * ada-lex.l: Likewise.
1347 * ada-typeprint.c: Likewise.
1348 * ada-valprint.c: Likewise.
1349 * aix-thread.c: Likewise.
1350 * alpha-linux-tdep.c: Likewise.
1351 * alpha-mdebug-tdep.c: Likewise.
1352 * alpha-nat.c: Likewise.
1353 * alpha-osf1-tdep.c: Likewise.
1354 * alpha-tdep.c: Likewise.
1355 * alphanbsd-tdep.c: Likewise.
1356 * amd64-dicos-tdep.c: Likewise.
1357 * amd64-linux-tdep.c: Likewise.
1358 * amd64-nat.c: Likewise.
1359 * amd64-sol2-tdep.c: Likewise.
1360 * amd64fbsd-tdep.c: Likewise.
1361 * amd64obsd-tdep.c: Likewise.
1362 * arch-utils.c: Likewise.
1363 * arm-linux-nat.c: Likewise.
1364 * arm-linux-tdep.c: Likewise.
1365 * arm-tdep.c: Likewise.
1366 * arm-wince-tdep.c: Likewise.
1367 * armbsd-tdep.c: Likewise.
1368 * armnbsd-nat.c: Likewise.
1369 * armnbsd-tdep.c: Likewise.
1370 * armobsd-tdep.c: Likewise.
1371 * avr-tdep.c: Likewise.
1372 * ax-gdb.c: Likewise.
1373 * ax-general.c: Likewise.
1374 * bcache.c: Likewise.
1375 * bfin-tdep.c: Likewise.
1376 * breakpoint.c: Likewise.
1377 * build-id.c: Likewise.
1378 * buildsym.c: Likewise.
1379 * c-exp.y: Likewise.
1380 * c-lang.c: Likewise.
1381 * c-typeprint.c: Likewise.
1382 * c-valprint.c: Likewise.
1383 * charset.c: Likewise.
1384 * cli-out.c: Likewise.
1385 * cli/cli-cmds.c: Likewise.
1386 * cli/cli-decode.c: Likewise.
1387 * cli/cli-dump.c: Likewise.
1388 * cli/cli-interp.c: Likewise.
1389 * cli/cli-logging.c: Likewise.
1390 * cli/cli-script.c: Likewise.
1391 * cli/cli-setshow.c: Likewise.
1392 * cli/cli-utils.c: Likewise.
1393 * coffread.c: Likewise.
1394 * common/agent.c: Likewise.
1395 * common/buffer.c: Likewise.
1396 * common/buffer.h: Likewise.
1397 * common/common-utils.c: Likewise.
1398 * common/filestuff.c: Likewise.
1399 * common/filestuff.c: Likewise.
1400 * common/format.c: Likewise.
1401 * common/print-utils.c: Likewise.
1402 * common/rsp-low.c: Likewise.
1403 * common/signals.c: Likewise.
1404 * common/vec.h: Likewise.
1405 * common/xml-utils.c: Likewise.
1406 * core-regset.c: Likewise.
1407 * corefile.c: Likewise.
1408 * corelow.c: Likewise.
1409 * cp-abi.c: Likewise.
1410 * cp-name-parser.y: Likewise.
1411 * cp-support.c: Likewise.
1412 * cp-valprint.c: Likewise.
1413 * cris-tdep.c: Likewise.
1414 * d-exp.y: Likewise.
1415 * darwin-nat.c: Likewise.
1416 * dbxread.c: Likewise.
1417 * dcache.c: Likewise.
1418 * demangle.c: Likewise.
1419 * dicos-tdep.c: Likewise.
1420 * disasm.c: Likewise.
1421 * doublest.c: Likewise.
1422 * dsrec.c: Likewise.
1423 * dummy-frame.c: Likewise.
1424 * dwarf2-frame.c: Likewise.
1425 * dwarf2loc.c: Likewise.
1426 * dwarf2read.c: Likewise.
1427 * elfread.c: Likewise.
1428 * environ.c: Likewise.
1429 * eval.c: Likewise.
1430 * event-loop.c: Likewise.
1431 * exceptions.c: Likewise.
1432 * exec.c: Likewise.
1433 * expprint.c: Likewise.
1434 * f-exp.y: Likewise.
1435 * f-lang.c: Likewise.
1436 * f-typeprint.c: Likewise.
1437 * f-valprint.c: Likewise.
1438 * fbsd-nat.c: Likewise.
1439 * findcmd.c: Likewise.
1440 * findvar.c: Likewise.
1441 * fork-child.c: Likewise.
1442 * frame.c: Likewise.
1443 * frv-linux-tdep.c: Likewise.
1444 * frv-tdep.c: Likewise.
1445 * gdb.c: Likewise.
1446 * gdb_bfd.c: Likewise.
1447 * gdbarch.c: Likewise.
1448 * gdbarch.sh: Likewise.
1449 * gdbtypes.c: Likewise.
1450 * gnu-nat.c: Likewise.
1451 * gnu-v2-abi.c: Likewise.
1452 * gnu-v3-abi.c: Likewise.
1453 * go-exp.y: Likewise.
1454 * go-lang.c: Likewise.
1455 * go32-nat.c: Likewise.
1456 * guile/guile.c: Likewise.
1457 * guile/scm-auto-load.c: Likewise.
1458 * hppa-hpux-tdep.c: Likewise.
1459 * hppa-linux-nat.c: Likewise.
1460 * hppanbsd-tdep.c: Likewise.
1461 * hppaobsd-tdep.c: Likewise.
1462 * i386-cygwin-tdep.c: Likewise.
1463 * i386-dicos-tdep.c: Likewise.
1464 * i386-linux-tdep.c: Likewise.
1465 * i386-nto-tdep.c: Likewise.
1466 * i386-sol2-tdep.c: Likewise.
1467 * i386-tdep.c: Likewise.
1468 * i386bsd-tdep.c: Likewise.
1469 * i386gnu-nat.c: Likewise.
1470 * i386nbsd-tdep.c: Likewise.
1471 * i386obsd-tdep.c: Likewise.
1472 * i387-tdep.c: Likewise.
1473 * ia64-libunwind-tdep.c: Likewise.
1474 * ia64-linux-nat.c: Likewise.
1475 * inf-child.c: Likewise.
1476 * inf-ptrace.c: Likewise.
1477 * inf-ttrace.c: Likewise.
1478 * infcall.c: Likewise.
1479 * infcmd.c: Likewise.
1480 * inflow.c: Likewise.
1481 * infrun.c: Likewise.
1482 * interps.c: Likewise.
1483 * iq2000-tdep.c: Likewise.
1484 * irix5-nat.c: Likewise.
1485 * jv-exp.y: Likewise.
1486 * jv-lang.c: Likewise.
1487 * jv-typeprint.c: Likewise.
1488 * jv-valprint.c: Likewise.
1489 * language.c: Likewise.
1490 * linux-fork.c: Likewise.
1491 * linux-nat.c: Likewise.
1492 * lm32-tdep.c: Likewise.
1493 * m2-exp.y: Likewise.
1494 * m2-typeprint.c: Likewise.
1495 * m32c-tdep.c: Likewise.
1496 * m32r-linux-nat.c: Likewise.
1497 * m32r-linux-tdep.c: Likewise.
1498 * m32r-rom.c: Likewise.
1499 * m32r-tdep.c: Likewise.
1500 * m68hc11-tdep.c: Likewise.
1501 * m68k-tdep.c: Likewise.
1502 * m68kbsd-tdep.c: Likewise.
1503 * m68klinux-nat.c: Likewise.
1504 * m68klinux-tdep.c: Likewise.
1505 * m88k-tdep.c: Likewise.
1506 * machoread.c: Likewise.
1507 * macrocmd.c: Likewise.
1508 * main.c: Likewise.
1509 * mdebugread.c: Likewise.
1510 * mem-break.c: Likewise.
1511 * memattr.c: Likewise.
1512 * memory-map.c: Likewise.
1513 * mep-tdep.c: Likewise.
1514 * mi/mi-cmd-break.c: Likewise.
1515 * mi/mi-cmd-disas.c: Likewise.
1516 * mi/mi-cmd-env.c: Likewise.
1517 * mi/mi-cmd-stack.c: Likewise.
1518 * mi/mi-cmd-var.c: Likewise.
1519 * mi/mi-cmds.c: Likewise.
1520 * mi/mi-console.c: Likewise.
1521 * mi/mi-getopt.c: Likewise.
1522 * mi/mi-interp.c: Likewise.
1523 * mi/mi-main.c: Likewise.
1524 * mi/mi-parse.c: Likewise.
1525 * microblaze-rom.c: Likewise.
1526 * microblaze-tdep.c: Likewise.
1527 * mingw-hdep.c: Likewise.
1528 * minidebug.c: Likewise.
1529 * minsyms.c: Likewise.
1530 * mips-irix-tdep.c: Likewise.
1531 * mips-linux-tdep.c: Likewise.
1532 * mips-tdep.c: Likewise.
1533 * mips64obsd-tdep.c: Likewise.
1534 * mipsnbsd-tdep.c: Likewise.
1535 * mipsread.c: Likewise.
1536 * mn10300-linux-tdep.c: Likewise.
1537 * mn10300-tdep.c: Likewise.
1538 * monitor.c: Likewise.
1539 * moxie-tdep.c: Likewise.
1540 * mt-tdep.c: Likewise.
1541 * nat/linux-btrace.c: Likewise.
1542 * nat/linux-osdata.c: Likewise.
1543 * nat/linux-procfs.c: Likewise.
1544 * nat/linux-ptrace.c: Likewise.
1545 * nat/linux-waitpid.c: Likewise.
1546 * nbsd-tdep.c: Likewise.
1547 * nios2-linux-tdep.c: Likewise.
1548 * nto-procfs.c: Likewise.
1549 * nto-tdep.c: Likewise.
1550 * objc-lang.c: Likewise.
1551 * objfiles.c: Likewise.
1552 * opencl-lang.c: Likewise.
1553 * osabi.c: Likewise.
1554 * osdata.c: Likewise.
1555 * p-exp.y: Likewise.
1556 * p-lang.c: Likewise.
1557 * p-typeprint.c: Likewise.
1558 * parse.c: Likewise.
1559 * posix-hdep.c: Likewise.
1560 * ppc-linux-nat.c: Likewise.
1561 * ppc-sysv-tdep.c: Likewise.
1562 * ppcfbsd-tdep.c: Likewise.
1563 * ppcnbsd-tdep.c: Likewise.
1564 * ppcobsd-tdep.c: Likewise.
1565 * printcmd.c: Likewise.
1566 * procfs.c: Likewise.
1567 * prologue-value.c: Likewise.
1568 * python/py-auto-load.c: Likewise.
1569 * python/py-gdb-readline.c: Likewise.
1570 * ravenscar-thread.c: Likewise.
1571 * regcache.c: Likewise.
1572 * registry.c: Likewise.
1573 * remote-fileio.c: Likewise.
1574 * remote-m32r-sdi.c: Likewise.
1575 * remote-mips.c: Likewise.
1576 * remote-notif.c: Likewise.
1577 * remote-sim.c: Likewise.
1578 * remote.c: Likewise.
1579 * reverse.c: Likewise.
1580 * rs6000-aix-tdep.c: Likewise.
1581 * ser-base.c: Likewise.
1582 * ser-go32.c: Likewise.
1583 * ser-mingw.c: Likewise.
1584 * ser-pipe.c: Likewise.
1585 * ser-tcp.c: Likewise.
1586 * ser-unix.c: Likewise.
1587 * serial.c: Likewise.
1588 * sh-tdep.c: Likewise.
1589 * sh64-tdep.c: Likewise.
1590 * shnbsd-tdep.c: Likewise.
1591 * skip.c: Likewise.
1592 * sol-thread.c: Likewise.
1593 * solib-dsbt.c: Likewise.
1594 * solib-frv.c: Likewise.
1595 * solib-osf.c: Likewise.
1596 * solib-som.c: Likewise.
1597 * solib-spu.c: Likewise.
1598 * solib-target.c: Likewise.
1599 * solib.c: Likewise.
1600 * somread.c: Likewise.
1601 * source.c: Likewise.
1602 * sparc-nat.c: Likewise.
1603 * sparc-sol2-tdep.c: Likewise.
1604 * sparc-tdep.c: Likewise.
1605 * sparc64-tdep.c: Likewise.
1606 * sparc64fbsd-tdep.c: Likewise.
1607 * sparc64nbsd-tdep.c: Likewise.
1608 * sparcnbsd-tdep.c: Likewise.
1609 * spu-linux-nat.c: Likewise.
1610 * spu-multiarch.c: Likewise.
1611 * spu-tdep.c: Likewise.
1612 * stabsread.c: Likewise.
1613 * stack.c: Likewise.
1614 * std-regs.c: Likewise.
1615 * symfile.c: Likewise.
1616 * symmisc.c: Likewise.
1617 * symtab.c: Likewise.
1618 * target.c: Likewise.
1619 * thread.c: Likewise.
1620 * tilegx-linux-nat.c: Likewise.
1621 * tilegx-tdep.c: Likewise.
1622 * top.c: Likewise.
1623 * tracepoint.c: Likewise.
1624 * tui/tui-command.c: Likewise.
1625 * tui/tui-data.c: Likewise.
1626 * tui/tui-disasm.c: Likewise.
1627 * tui/tui-file.c: Likewise.
1628 * tui/tui-layout.c: Likewise.
1629 * tui/tui-out.c: Likewise.
1630 * tui/tui-regs.c: Likewise.
1631 * tui/tui-source.c: Likewise.
1632 * tui/tui-stack.c: Likewise.
1633 * tui/tui-win.c: Likewise.
1634 * tui/tui-windata.c: Likewise.
1635 * tui/tui-winsource.c: Likewise.
1636 * typeprint.c: Likewise.
1637 * ui-file.c: Likewise.
1638 * ui-out.c: Likewise.
1639 * user-regs.c: Likewise.
1640 * utils.c: Likewise.
1641 * v850-tdep.c: Likewise.
1642 * valarith.c: Likewise.
1643 * valops.c: Likewise.
1644 * valprint.c: Likewise.
1645 * value.c: Likewise.
1646 * varobj.c: Likewise.
1647 * vax-tdep.c: Likewise.
1648 * vaxnbsd-tdep.c: Likewise.
1649 * vaxobsd-tdep.c: Likewise.
1650 * windows-nat.c: Likewise.
1651 * xcoffread.c: Likewise.
1652 * xml-support.c: Likewise.
1653 * xstormy16-tdep.c: Likewise.
1654 * xtensa-linux-nat.c: Likewise.
1655
dccbb609
GB
16562014-08-07 Gary Benson <gbenson@redhat.com>
1657
1658 * common/common-defs.h: Include gdb_assert.h.
1659 * aarch64-tdep.c: Do not include gdb_assert.h.
1660 * addrmap.c: Likewise.
1661 * aix-thread.c: Likewise.
1662 * alpha-linux-tdep.c: Likewise.
1663 * alpha-mdebug-tdep.c: Likewise.
1664 * alphanbsd-tdep.c: Likewise.
1665 * amd64-nat.c: Likewise.
1666 * amd64-tdep.c: Likewise.
1667 * amd64bsd-nat.c: Likewise.
1668 * amd64fbsd-nat.c: Likewise.
1669 * amd64fbsd-tdep.c: Likewise.
1670 * amd64nbsd-nat.c: Likewise.
1671 * amd64nbsd-tdep.c: Likewise.
1672 * amd64obsd-nat.c: Likewise.
1673 * amd64obsd-tdep.c: Likewise.
1674 * arch-utils.c: Likewise.
1675 * arm-tdep.c: Likewise.
1676 * armbsd-tdep.c: Likewise.
1677 * auxv.c: Likewise.
1678 * bcache.c: Likewise.
1679 * bfin-tdep.c: Likewise.
1680 * blockframe.c: Likewise.
1681 * breakpoint.c: Likewise.
1682 * bsd-kvm.c: Likewise.
1683 * bsd-uthread.c: Likewise.
1684 * buildsym.c: Likewise.
1685 * c-exp.y: Likewise.
1686 * c-lang.c: Likewise.
1687 * charset.c: Likewise.
1688 * cleanups.c: Likewise.
1689 * cli-out.c: Likewise.
1690 * cli/cli-decode.c: Likewise.
1691 * cli/cli-dump.c: Likewise.
1692 * cli/cli-logging.c: Likewise.
1693 * cli/cli-script.c: Likewise.
1694 * cli/cli-utils.c: Likewise.
1695 * coffread.c: Likewise.
1696 * common/common-utils.c: Likewise.
1697 * common/queue.h: Likewise.
1698 * common/signals.c: Likewise.
1699 * common/vec.h: Likewise.
1700 * complaints.c: Likewise.
1701 * completer.c: Likewise.
1702 * corelow.c: Likewise.
1703 * cp-abi.c: Likewise.
1704 * cp-name-parser.y: Likewise.
1705 * cp-namespace.c: Likewise.
1706 * cp-support.c: Likewise.
1707 * cris-tdep.c: Likewise.
1708 * dbxread.c: Likewise.
1709 * dictionary.c: Likewise.
1710 * doublest.c: Likewise.
1711 * dsrec.c: Likewise.
1712 * dummy-frame.c: Likewise.
1713 * dwarf2-frame-tailcall.c: Likewise.
1714 * dwarf2-frame.c: Likewise.
1715 * dwarf2expr.c: Likewise.
1716 * dwarf2loc.c: Likewise.
1717 * dwarf2read.c: Likewise.
1718 * eval.c: Likewise.
1719 * event-loop.c: Likewise.
1720 * exceptions.c: Likewise.
1721 * expprint.c: Likewise.
1722 * f-valprint.c: Likewise.
1723 * fbsd-nat.c: Likewise.
1724 * findvar.c: Likewise.
1725 * frame-unwind.c: Likewise.
1726 * frame.c: Likewise.
1727 * frv-tdep.c: Likewise.
1728 * gcore.c: Likewise.
1729 * gdb-dlfcn.c: Likewise.
1730 * gdb_bfd.c: Likewise.
1731 * gdbarch.c: Likewise.
1732 * gdbarch.sh: Likewise.
1733 * gdbtypes.c: Likewise.
1734 * gnu-nat.c: Likewise.
1735 * gnu-v3-abi.c: Likewise.
1736 * go-lang.c: Likewise.
1737 * guile/scm-exception.c: Likewise.
1738 * guile/scm-gsmob.c: Likewise.
1739 * guile/scm-lazy-string.c: Likewise.
1740 * guile/scm-math.c: Likewise.
1741 * guile/scm-pretty-print.c: Likewise.
1742 * guile/scm-safe-call.c: Likewise.
1743 * guile/scm-utils.c: Likewise.
1744 * guile/scm-value.c: Likewise.
1745 * h8300-tdep.c: Likewise.
1746 * hppa-hpux-nat.c: Likewise.
1747 * hppa-tdep.c: Likewise.
1748 * hppanbsd-tdep.c: Likewise.
1749 * hppaobsd-tdep.c: Likewise.
1750 * i386-darwin-nat.c: Likewise.
1751 * i386-darwin-tdep.c: Likewise.
1752 * i386-nto-tdep.c: Likewise.
1753 * i386-tdep.c: Likewise.
1754 * i386bsd-nat.c: Likewise.
1755 * i386fbsd-tdep.c: Likewise.
1756 * i386gnu-nat.c: Likewise.
1757 * i386nbsd-tdep.c: Likewise.
1758 * i386obsd-tdep.c: Likewise.
1759 * i387-tdep.c: Likewise.
1760 * ia64-libunwind-tdep.c: Likewise.
1761 * ia64-tdep.c: Likewise.
1762 * inf-ptrace.c: Likewise.
1763 * inf-ttrace.c: Likewise.
1764 * infcall.c: Likewise.
1765 * infcmd.c: Likewise.
1766 * infrun.c: Likewise.
1767 * inline-frame.c: Likewise.
1768 * interps.c: Likewise.
1769 * jv-lang.c: Likewise.
1770 * jv-typeprint.c: Likewise.
1771 * linux-fork.c: Likewise.
1772 * linux-nat.c: Likewise.
1773 * linux-thread-db.c: Likewise.
1774 * m32c-tdep.c: Likewise.
1775 * m32r-linux-nat.c: Likewise.
1776 * m32r-tdep.c: Likewise.
1777 * m68k-tdep.c: Likewise.
1778 * m68kbsd-nat.c: Likewise.
1779 * m68kbsd-tdep.c: Likewise.
1780 * m88k-tdep.c: Likewise.
1781 * machoread.c: Likewise.
1782 * macroexp.c: Likewise.
1783 * macrotab.c: Likewise.
1784 * maint.c: Likewise.
1785 * mdebugread.c: Likewise.
1786 * memory-map.c: Likewise.
1787 * mep-tdep.c: Likewise.
1788 * mi/mi-common.c: Likewise.
1789 * microblaze-tdep.c: Likewise.
1790 * mingw-hdep.c: Likewise.
1791 * mips-linux-nat.c: Likewise.
1792 * mips-linux-tdep.c: Likewise.
1793 * mips-tdep.c: Likewise.
1794 * mips64obsd-tdep.c: Likewise.
1795 * mipsnbsd-tdep.c: Likewise.
1796 * mn10300-linux-tdep.c: Likewise.
1797 * mn10300-tdep.c: Likewise.
1798 * moxie-tdep.c: Likewise.
1799 * mt-tdep.c: Likewise.
1800 * nat/linux-btrace.c: Likewise.
1801 * nat/linux-osdata.c: Likewise.
1802 * nat/linux-ptrace.c: Likewise.
1803 * nat/mips-linux-watch.c: Likewise.
1804 * nios2-linux-tdep.c: Likewise.
1805 * nios2-tdep.c: Likewise.
1806 * objc-lang.c: Likewise.
1807 * objfiles.c: Likewise.
1808 * obsd-nat.c: Likewise.
1809 * opencl-lang.c: Likewise.
1810 * osabi.c: Likewise.
1811 * parse.c: Likewise.
1812 * ppc-linux-nat.c: Likewise.
1813 * ppc-sysv-tdep.c: Likewise.
1814 * ppcfbsd-nat.c: Likewise.
1815 * ppcfbsd-tdep.c: Likewise.
1816 * ppcnbsd-nat.c: Likewise.
1817 * ppcnbsd-tdep.c: Likewise.
1818 * ppcobsd-nat.c: Likewise.
1819 * ppcobsd-tdep.c: Likewise.
1820 * printcmd.c: Likewise.
1821 * procfs.c: Likewise.
1822 * prologue-value.c: Likewise.
1823 * psymtab.c: Likewise.
1824 * python/py-lazy-string.c: Likewise.
1825 * python/py-value.c: Likewise.
1826 * regcache.c: Likewise.
1827 * reggroups.c: Likewise.
1828 * registry.c: Likewise.
1829 * remote-sim.c: Likewise.
1830 * remote.c: Likewise.
1831 * rs6000-aix-tdep.c: Likewise.
1832 * rs6000-tdep.c: Likewise.
1833 * s390-linux-tdep.c: Likewise.
1834 * score-tdep.c: Likewise.
1835 * ser-base.c: Likewise.
1836 * ser-mingw.c: Likewise.
1837 * sh-tdep.c: Likewise.
1838 * sh64-tdep.c: Likewise.
1839 * solib-darwin.c: Likewise.
1840 * solib-spu.c: Likewise.
1841 * solib-svr4.c: Likewise.
1842 * source.c: Likewise.
1843 * sparc-nat.c: Likewise.
1844 * sparc-sol2-tdep.c: Likewise.
1845 * sparc-tdep.c: Likewise.
1846 * sparc64-sol2-tdep.c: Likewise.
1847 * sparc64-tdep.c: Likewise.
1848 * sparc64fbsd-tdep.c: Likewise.
1849 * sparc64nbsd-tdep.c: Likewise.
1850 * sparc64obsd-tdep.c: Likewise.
1851 * sparcnbsd-tdep.c: Likewise.
1852 * sparcobsd-tdep.c: Likewise.
1853 * spu-multiarch.c: Likewise.
1854 * spu-tdep.c: Likewise.
1855 * stabsread.c: Likewise.
1856 * stack.c: Likewise.
1857 * symfile.c: Likewise.
1858 * symtab.c: Likewise.
1859 * target-descriptions.c: Likewise.
1860 * target-memory.c: Likewise.
1861 * target.c: Likewise.
1862 * tic6x-linux-tdep.c: Likewise.
1863 * tic6x-tdep.c: Likewise.
1864 * tilegx-linux-nat.c: Likewise.
1865 * tilegx-tdep.c: Likewise.
1866 * top.c: Likewise.
1867 * tramp-frame.c: Likewise.
1868 * tui/tui-out.c: Likewise.
1869 * tui/tui-winsource.c: Likewise.
1870 * ui-out.c: Likewise.
1871 * user-regs.c: Likewise.
1872 * utils.c: Likewise.
1873 * v850-tdep.c: Likewise.
1874 * valops.c: Likewise.
1875 * value.c: Likewise.
1876 * varobj.c: Likewise.
1877 * vax-nat.c: Likewise.
1878 * xml-syscall.c: Likewise.
1879 * xml-tdesc.c: Likewise.
1880 * xstormy16-tdep.c: Likewise.
1881 * xtensa-linux-nat.c: Likewise.
1882 * xtensa-tdep.c: Likewise.
1883
e76df0d0
GB
18842014-08-07 Gary Benson <gbenson@redhat.com>
1885
1886 * common/common-defs.h: Include common-utils.h.
1887 * defs.h: Do not include common-utils.h.
1888 * common/gdb_assert.h: Likewise.
1889 * darwin-nat.h: Likewise.
1890 * nat/linux-btrace.c: Likewise.
1891 * target/waitstatus.h: Likewise.
1892
4cb9c816
GB
18932014-08-07 Gary Benson <gbenson@redhat.com>
1894
1895 * common/common-defs.h: Include ptid.h.
1896 * defs.h: Do not include ptid.h.
1897 * inferior.h: Likewise.
1898 * infrun.h: Likewise.
1899 * nat/linux-btrace.h: Likewise.
1900 * nat/linux-osdata.h: Likewise.
1901 * target/waitstatus.h: Likewise.
1902
3995eeee
GB
19032014-08-07 Gary Benson <gbenson@redhat.com>
1904
1905 * common/common-defs.h: Include gdb_locale.h.
1906 * defs.h: Do not include gdb_locale.h.
1907
cb9f1a9b
GB
19082014-08-07 Gary Benson <gbenson@redhat.com>
1909
1910 * common/common-defs.h: Include gdb/signals.h.
1911 * defs.h: Do not include gdb/signals.h.
1912
a5fceff8
GB
19132014-08-07 Gary Benson <gbenson@redhat.com>
1914
1915 * common/common-defs.h: Include pathmax.h.
1916 * defs.h: Do not include pathmax.h.
1917
b9391142
GB
19182014-08-07 Gary Benson <gbenson@redhat.com>
1919
1920 * common/common-defs.h: Include libiberty.h.
1921 * defs.h: Do not include libiberty.h.
1922 * common/queue.h: Likewise.
1923 * cp-name-parser.y: Likewise.
1924 * mi/mi-cmd-catch.c: Likewise.
1925 * python/python.c: Likewise.
1926
0e443c87
GB
19272014-08-07 Gary Benson <gbenson@redhat.com>
1928
1929 * common/common-defs.h: Include ansidecl.h.
1930 * defs.h: Do not include ansidecl.h.
1931 * common/buffer.h: Likewise.
1932 * common/common-utils.h: Likewise.
1933
8ebb3f56
GB
19342014-08-07 Gary Benson <gbenson@redhat.com>
1935
1936 * common/common-defs.h: Include stddef.h.
1937 * defs.h: Do not include stddef.h.
1938 * common/common-utils.h: Likewise.
1939 * amd64fbsd-nat.c: Likewise.
1940 * bcache.c: Likewise.
1941 * charset.c: Likewise.
1942 * common/buffer.h: Likewise.
1943 * common/vec.h: Likewise.
1944 * i386bsd-nat.c: Likewise.
1945 * nat/linux-btrace.h: Likewise.
1946 * ppcfbsd-nat.c: Likewise.
1947 * ppcnbsd-tdep.h: Likewise.
1948 * ppcobsd-nat.c: Likewise.
1949 * ppcobsd-tdep.h: Likewise.
1950 * python/py-gdb-readline.c: Likewise.
1951
8980bdf6
GB
19522014-08-07 Gary Benson <gbenson@redhat.com>
1953
1954 * common/common-defs.h: Include stdarg.h.
1955 * defs.h: Do not include stdarg.h.
1956 * ada-lang.c: Likewise.
1957 * common/common-utils.h: Likewise.
1958 * guile/scm-string.c: Likewise.
1959 * guile/scm-utils.c: Likewise.
1960 * m32c-tdep.c: Likewise.
1961
d7096f71
GB
19622014-08-07 Gary Benson <gbenson@redhat.com>
1963
1964 * common/common-defs.h: Include stdlib.h.
1965 * defs.h: Do not include stdlib.h.
1966 * addrmap.c: Likewise.
1967 * bcache.c: Likewise.
1968 * common/buffer.c: Likewise.
1969 * common/common-utils.c: Likewise.
1970 * cp-name-parser.y: Likewise.
1971 * go32-nat.c: Likewise.
1972 * mn10300-linux-tdep.c: Likewise.
1973 * nat/linux-osdata.c: Likewise.
1974 * tui/tui.c: Likewise.
1975 * windows-nat.c: Likewise.
1976
d02f550d
GB
19772014-08-07 Gary Benson <gbenson@redhat.com>
1978
1979 * common/common-defs.h: Include stdio.h.
1980 * defs.h: Do not include stdio.h.
1981 * ada-lang.c: Likewise.
1982 * common/buffer.c: Likewise.
1983 * common/common-utils.c: Likewise.
1984 * cp-name-parser.y: Likewise.
1985 * gnu-nat.c: Likewise.
1986 * go32-nat.c: Likewise.
1987 * i386gnu-nat.c: Likewise.
1988 * proc-api.c: Likewise.
1989 * proc-events.c: Likewise.
1990 * proc-flags.c: Likewise.
1991 * proc-why.c: Likewise.
1992 * python/python-internal.h: Likewise.
1993 * target-memory.c: Likewise.
1994 * tui/tui-io.c: Likewise.
1995 * tui/tui.c: Likewise.
1996
b6d7a4bf
SM
19972014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1998
1999 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2000 (scan_dyntag_auxv): Same.
2001
af19829b
YQ
20022014-08-06 Yao Qi <yao@codesourcery.com>
2003
2004 * amd64-linux-nat.c: Remove duplicated include
2005 "x86-linux-nat.h".
2006 * i386-linux-nat.c: Likewise.
2007
8e07a239
YQ
20082014-08-06 Yao Qi <yao@codesourcery.com>
2009
2010 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2011 operand" with "Special opcode" in comments.
2012
7bfe8241
GB
20132014-08-05 Gary Benson <gbenson@redhat.com>
2014
2015 * interps.c (initialize_interps): Remove prototype.
2016 (interpreter_initialized): Remove static global.
2017 (interp_add): Do not call initialize_interps.
2018 (initialize_interps): Remove function.
2019
d6c95504
GB
20202014-08-05 Gary Benson <gbenson@redhat.com>
2021
2022 * utils.c (vwarning): Remove spurious va_end.
2023
241fd515
AM
20242014-08-05 Alan Modra <amodra@gmail.com>
2025
2026 * charset.c (convert_between_encodings): Cast result of obstack_base.
2027 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2028 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2029 (read_unwind_info): Use size_t for some locals.
2030 * jit.c (finalize_symtab): Likewise.
2031 * utils.c (hashtab_obstack_allocate): Likewise.
2032 * symmisc.c (print_objfile_statistics): Update format strings.
2033
dc304a94
JK
20342014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2035
2036 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2037 (Changes in GDB 7.8): ... here.
2038
3cecbbbe
TT
20392014-08-04 Tom Tromey <tromey@redhat.com>
2040
2041 * target.c (set_targetdebug): New function.
2042 (initialize_targets): Pass set_targetdebug when creating "set
2043 debug target".
2044
6908c509
JB
20452014-08-01 Joel Brobecker <brobecker@adacore.com>
2046
2047 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2048 if detecting a variable-sized field that is not the last field.
2049 Fix struct type length computation.
2050
53e8f97d
JB
20512014-08-01 Joel Brobecker <brobecker@adacore.com>
2052
2053 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2054 Add debug trace.
2055
e068c55d
JB
20562014-08-01 Joel Brobecker <brobecker@adacore.com>
2057
2058 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2059 Remove "+ 8" offset in computation of CHAIN_VMA.
2060
4d4ca2a1
DE
20612014-07-31 Doug Evans <dje@google.com>
2062
2063 * inflow.c (child_terminal_inferior): Add comment.
2064 (child_terminal_ours_for_output): Add comment.
2065 (child_terminal_ours): Add comment.
2066 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2067 (linux_nat_terminal_ours): Add comment.
2068
462f517e
GB
20692014-07-31 Gary Benson <gbenson@redhat.com>
2070
2071 * common/btrace-common.h: Do not include defs.h or server.h.
2072 * nat/mips-linux-watch.h: Likewise.
2073 * gdb-dlfcn.h: Do not include defs.h.
2074 * tracefile.h: Likewise.
2075
74228e77
RM
20762014-07-30 Roland McGrath <mcgrathr@google.com>
2077
2078 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2079
014f9477
TT
20802014-07-30 Tom Tromey <tromey@redhat.com>
2081
2082 * bsd-kvm.c (bsd_kvm_open): Constify.
2083 * corelow.c (core_open): Constify.
2084 * ctf.c (ctf_open): Constify.
2085 * dbug-rom.c (dbug_open): Constify.
2086 * exec.c (exec_open): Constify.
2087 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2088 * microblaze-rom.c (picobug_open): Constify.
2089 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2090 Constify.
2091 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2092 * record-btrace.c (record_btrace_open): Constify.
2093 * record-full.c (record_full_core_open_1, record_full_open_1)
2094 (record_full_open): Constify.
2095 * remote-m32r-sdi.c (m32r_open): Constify.
2096 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2097 (rockhopper_open, lsi_open): Constify.
2098 * remote-sim.c (gdbsim_open): Constify.
2099 * remote.c (remote_open, extended_remote_open, remote_open_1):
2100 Constify.
2101 * target.h (struct target_ops) <to_open>: Make "arg" const.
2102 * tracefile-tfile.c (tfile_open): Constify.
2103
e799154c
TT
21042014-07-30 Tom Tromey <tromey@redhat.com>
2105
2106 * breakpoint.c (map_breakpoint_numbers): Update.
2107 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2108 (get_number_const): New function.
2109 (get_number): Rewrite using get_number_const.
2110 (init_number_or_range): Make "string" const.
2111 (number_is_in_list): Make "list" const.
2112 * cli/cli-utils.h (get_number_const): Declare.
2113 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2114 (init_number_or_range, number_is_in_list): Update.
2115 * printcmd.c (map_display_numbers): Update.
2116 * value.c (value_from_history_ref): Constify.
2117 * value.h (value_from_history_ref): Update.
2118
5f08566b
TT
21192014-07-30 Tom Tromey <tromey@redhat.com>
2120
2121 * corefile.c (hook_type, call_extra_exec_file_hooks)
2122 (specify_exec_file_hook): Constify.
2123 * exec.c (exec_file_attach): Make "filename" const.
2124 * gdbcore.h (deprecated_exec_file_display_hook)
2125 (specify_exec_file_hook, exec_file_attach): Constify.
2126 * main.c (captured_main): Use catch_command_errors_const.
2127
8981c758
TT
21282014-07-30 Tom Tromey <tromey@redhat.com>
2129
2130 * target.c (open_target): New function.
2131 (add_target_with_completer, add_deprecated_target_alias): Use
2132 set_cmd_sfunc, set_cmd_context.
2133 (debug_to_open): Remove.
2134 (setup_target_debug): Update.
2135
a1c7835a
YQ
21362014-07-30 Yao Qi <yao@codesourcery.com>
2137
2138 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2139 comments.
2140 * parse.c (exp_iterate): Update comments.
2141
976411d6
GB
21422014-07-30 Gary Benson <gbenson@redhat.com>
2143
2144 * common/common-defs.h: New file.
2145 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2146 * defs.h: Include common-defs.h.
2147 Do not include config.h or build-gnulib/config.h.
2148
5d4848a4
GB
21492014-07-30 Gary Benson <gbenson@redhat.com>
2150
2151 * common/common-utils.h: Do not include config.h.
2152 * nat/linux-btrace.h: Likewise.
2153
d41f6d8e
GB
21542014-07-30 Gary Benson <gbenson@redhat.com>
2155
2156 * btrace.c: Include defs.h.
2157 * common/ptid.c: Include defs.h or server.h as appropriate.
2158 * nat/mips-linux-watch.c: Likewise.
2159
84202f9c
TT
21602014-07-29 Tom Tromey <tromey@redhat.com>
2161
2162 * target.c (target_is_pushed): Simplify.
2163
2530441c
JB
21642014-07-29 Joel Brobecker <brobecker@adacore.com>
2165
2166 GDB 7.8 released.
2167
7e09a223
YQ
21682014-07-29 Yao Qi <yao@codesourcery.com>
2169
2170 PR gdb/17206
2171 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2172
7ebdbe92
DE
21732014-07-28 Doug Evans <xdje42@gmail.com>
2174
2175 PR guile/17203
2176 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2177 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2178 parameters.
2179
f347ffc9
WN
21802014-07-28 Will Newton <will.newton@linaro.org>
2181
2182 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2183 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2184 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2185 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2186 (THUMB2_EABI_SYSCALL): Likewise.
2187 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2188 struct tramp_frame.
2189 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2190 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2191
37c5f1f7
DE
21922014-07-27 Doug Evans <xdje42@gmail.com>
2193
2194 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2195
0c3abbc7
DE
21962014-07-27 Doug Evans <xdje42@gmail.com>
2197
2198 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2199
e76c5d17
DE
22002014-07-26 Ludovic Courtès <ludo@gnu.org>
2201 Doug Evans <xdje42@gmail.com>
2202
2203 PR guile/17146
2204 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2205 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2206 * configure.ac: Try to use guild to compile an scm file, if it fails
2207 then disable guile support.
2208 * configure: Regenerate.
2209 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2210 GUILE_FILE_LIST.
2211 (GUILE_COMPILED_FILES): New variable.
2212 (GUILE_FILES) Update.
2213 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2214 (stamp-guile): Compile scm files.
2215 * guile/guile.c (boot_guile_support): New function.
2216 (standard_throw_args_p): New function.
2217 (print_standard_throw_error, print_throw_error): New functions.
2218 (handle_boot_error): New function.
2219 (initialize_scheme_side): Rewrite to call boot_guile_support.
2220 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2221 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2222
186fcde0
DE
22232014-07-26 Ludovic Courtès <ludo@gnu.org>
2224 Doug Evans <xdje42@gmail.com>
2225
2226 PR guile/17146
2227 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2228 * guile/lib/gdb/support.scm: New file.
2229 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2230 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2231 All uses updated.
2232 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2233 All uses updated.
2234 (%assert-type): Ditto, and renamed to assert-type.
2235 (%exception-print-style): Delete.
2236
4df42755
DE
22372014-07-26 Doug Evans <xdje42@gmail.com>
2238
2239 PR build/17105
2240 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2241 * configure: Regenerate.
2242 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2243 PYTHON_FILES.
2244 (PYTHON_FILES): New variable.
2245 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2246 (GUILE_FILES): New variable.
2247 (stamp-python, install-python, uninstall-python): Handle empty
2248 file list.
2249 (stamp-guile, install-guile, uninstall-guile): Ditto.
2250
ee7333ae
DE
22512014-07-26 Doug Evans <xdje42@gmail.com>
2252
2253 PR guile/17177
2254 * guile/lib/gdb.scm (pretty-printers): Export.
2255 (set-pretty-printers!): Export.
2256 * guile/lib/gdb/printing.scm (gdb module): Update.
2257 (prepend-pretty-printer!, append-pretty-printer!): Update.
2258 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2259 (pretty_printer_list_var): Delete.
2260 (pretty_printer_list): New static global.
2261 (gdbscm_pretty_printers): New function.
2262 (gdbscm_set_pretty_printers_x): New function.
2263 (ppscm_find_pretty_printer_from_gdb): Update.
2264 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2265 (gdbscm_initialize_pretty_printers): Update.
2266
74edf516
DE
22672014-07-26 Doug Evans <xdje42@gmail.com>
2268
2269 PR 17185
2270 * configure.ac: Add check for header gc/gc.h.
2271 Add check for function setenv.
2272 * configure: Regenerate.
2273 * config.in: Regenerate.
2274 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2275
d54398a7
MR
22762014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2277
2278 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2279 variation in gdbarch matching.
2280
ab16fce8
TT
22812014-07-25 Tom Tromey <tromey@redhat.com>
2282
2283 * exec.c (using_exec_ops): Remove.
2284 (exec_close_1): Update. Remove extraneous block, reindent.
2285 (add_target_sections): Use target_is_pushed.
2286
88056fbb
PA
22872014-07-25 Pedro Alves <palves@redhat.com>
2288
2289 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2290 * monitor.c (monitor_create_inferior): Likewise.
2291 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2292 * remote-sim.c (gdbsim_create_inferior): Likewise.
2293 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2294 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2295 * windows-nat.c (do_initial_windows_stuff): Likewise.
2296
70509625
PA
22972014-07-25 Pedro Alves <palves@redhat.com>
2298
2299 * NEWS: Mention signal passing and "signal" command changes.
2300 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2301 comment.
2302 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2303 call.
2304 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2305 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2306 (jump_command): Adjust clear_proceed_status call.
2307 (signal_command): Warn if other thread that are resumed have
2308 signals that will be delivered. Adjust clear_proceed_status call.
2309 (until_next_command, finish_command)
2310 (proceed_after_attach_callback, attach_command_post_wait)
2311 (attach_command): Adjust clear_proceed_status call.
2312 * infrun.c (proceed_after_vfork_done): Likewise.
2313 (proceed_after_attach_callback): Adjust comment.
2314 (clear_proceed_status_thread): Clear stop_signal if not in pass
2315 state.
2316 (clear_proceed_status_callback): Delete.
2317 (clear_proceed_status): New 'step' parameter. Only clear the
2318 proceed status of threads the command being prepared is about to
2319 resume.
2320 (proceed): If passed in an explicit signal, override stop_signal
2321 with it. Don't pass the last stop signal to the thread we're
2322 resuming.
2323 (init_wait_for_inferior): Adjust clear_proceed_status call.
2324 (switch_back_to_stepped_thread): Clear the signal if it should not
2325 be passed.
2326 * infrun.h (clear_proceed_status): New 'step' parameter.
2327 (user_visible_resume_ptid): Add comment.
2328 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2329 signal is in pass state.
2330 * remote.c (append_pending_thread_resumptions): Likewise.
2331 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2332
d8be2939
TT
23332014-07-25 Tom Tromey <tromey@redhat.com>
2334
2335 * target.h (target_stopped_data_address)
2336 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2337 parentheses.
2338
7d0d9d2b
PL
23392014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2340
2341 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2342 comments.
2343 (avr_pointer_to_address): Likewise.
2344
e9e7f724
TT
23452014-07-24 Tom Tromey <tromey@redhat.com>
2346
2347 * monitor.c (compile_pattern): Update.
2348 * target.h (struct target_ops) <to_shortname, to_longname,
2349 to_doc>: Now const.
2350
1947513d
TT
23512014-07-24 Tom Tromey <tromey@redhat.com>
2352
2353 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2354 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2355 (add_info_alias, add_com): Make "doc" const.
2356 (print_doc_line): Make "str" const.
2357 (delete_cmd): Update.
2358 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2359 (print_doc_line): Update.
2360 * cli/cli-script.c (document_command): Update.
2361 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2362 (add_com, add_info, add_info_alias): Update.
2363 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2364 * python/py-cmd.c (cmdpy_destroyer): Update.
2365
64e61d29
TT
23662014-07-24 Tom Tromey <tromey@redhat.com>
2367
2368 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2369 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2370 (help_cmd_list): Constify.
2371 (lookup_cmd): Update.
2372 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2373 const.
2374 (help_cmd_list, apropos_cmd): Update.
2375 * cli/cli-script.c (show_user): Update.
2376 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2377 * cli/cli-setshow.h (cmd_show_list): Update.
2378 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2379 (cmd_show_list): Update.
2380 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2381 * python/py-cmd.c (cmdpy_destroyer): Update.
2382
429e55ea
TT
23832014-07-24 Tom Tromey <tromey@redhat.com>
2384
2385 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2386 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2387 const.
2388 * command.h (deprecate_cmd): Update.
2389 * maint.c (maintenance_do_deprecate): Add casts.
2390
64669f3b
TT
23912014-07-24 Tom Tromey <tromey@redhat.com>
2392
2393 * cli/cli-decode.c (help_cmd): Make parameter "const".
2394 * cli/cli-decode.h (help_cmd): Update.
2395
d3d3328b
TT
23962014-07-24 Tom Tromey <tromey@redhat.com>
2397
2398 * stack.c (up_silently_base, down_silently_base): Make argument
2399 const.
2400
414842dc
TT
24012014-07-24 Tom Tromey <tromey@redhat.com>
2402
2403 * solib.c (solib_add): Make "pattern" const.
2404 * solib.h (solib_add): Update.
2405
baa336ce
TT
24062014-07-24 Tom Tromey <tromey@redhat.com>
2407
2408 * remote.c (remote_serial_open, print_packet, putpkt)
2409 (putpkt_binary): Constify.
2410 * remote.h (putpkt): Update.
2411
5a19e2d0
TT
24122014-07-24 Tom Tromey <tromey@redhat.com>
2413
2414 * monitor.c (monitor_open): Make "args" const.
2415 * monitor.h (monitor_open): Update.
2416
fc4baa5e
TT
24172014-07-24 Tom Tromey <tromey@redhat.com>
2418
2419 * maint.c (match_bfd_flags): Make "string" const.
2420 (print_bfd_section_info): Remove casts.
2421 (print_objfile_section_info): Make "string" const.
2422
0d5f0dbe
TT
24232014-07-24 Tom Tromey <tromey@redhat.com>
2424
2425 * inf-child.c (inf_child_open_target): Make "arg" const.
2426 * inf-child.h (inf_child_open_target): Update.
2427
41c77899
TT
24282014-07-24 Tom Tromey <tromey@redhat.com>
2429
2430 * environ.c (unset_in_environ): Make "var" const.
2431 * environ.h (unset_in_environ): Update.
2432
93db0d79
TT
24332014-07-24 Tom Tromey <tromey@redhat.com>
2434
2435 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2436 Make "cmd" const.
2437 (scan_filename_with_cleanup): Likewise.
2438 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2439 Make arguments const.
2440 (restore_command): Update.
2441
36d6eb95
PA
24422014-07-24 Pedro Alves <palves@redhat.com>
2443
2444 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2445
8009206a
TT
24462014-07-24 Tom Tromey <tromey@redhat.com>
2447 Gary Benson <gbenson@redhat.com>
2448
2449 * nat/linux-ptrace.c (additional_flags): New global.
2450 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2451 additional_flags; don't check GDBSERVER.
2452 (linux_ptrace_set_additional_flags): New function.
2453 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2454 Declare.
2455 * linux-nat.c (_initialize_linux_nat): Call
2456 linux_ptrace_set_additional_flags.
2457
a7068b60
TT
24582014-07-24 Tom Tromey <tromey@redhat.com>
2459
2460 * make-target-delegates (munge_type, write_debugmethod): New
2461 functions.
2462 (debug_names): New global.
2463 ($TARGET_DEBUG_PRINTER): New global.
2464 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2465 name.
2466 Write debug methods. Generate init_debug_target.
2467 * target-debug.h: New file.
2468 * target-delegates.c: Rebuild.
2469 * target.c: Include target-debug.h.
2470 (debug_target): Hoist definition.
2471 (target_kill, target_get_section_table, target_memory_map)
2472 (target_flash_erase, target_flash_done, target_detach)
2473 (target_disconnect, target_wait, target_resume)
2474 (target_pass_signals, target_program_signals, target_follow_fork)
2475 (target_mourn_inferior, target_search_memory)
2476 (target_thread_address_space, target_close)
2477 (target_find_new_threads, target_core_of_thread)
2478 (target_verify_memory, target_insert_mask_watchpoint)
2479 (target_remove_mask_watchpoint): Remove targetdebug code.
2480 (debug_to_post_attach, debug_to_prepare_to_store)
2481 (debug_to_files_info, debug_to_insert_breakpoint)
2482 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2483 (debug_to_region_ok_for_hw_watchpoint)
2484 (debug_to_can_accel_watchpoint_condition)
2485 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2486 (debug_to_watchpoint_addr_within_range)
2487 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2488 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2489 (debug_to_terminal_init, debug_to_terminal_inferior)
2490 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2491 (debug_to_terminal_save_ours, debug_to_terminal_info)
2492 (debug_to_load, debug_to_post_startup_inferior)
2493 (debug_to_insert_fork_catchpoint)
2494 (debug_to_remove_fork_catchpoint)
2495 (debug_to_insert_vfork_catchpoint)
2496 (debug_to_remove_vfork_catchpoint)
2497 (debug_to_insert_exec_catchpoint)
2498 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2499 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2500 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2501 (setup_target_debug): Call init_debug_target.
2502 * target.h (TARGET_DEBUG_PRINTER): New macro.
2503 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2504 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2505
2c51604d
GB
25062014-07-24 Gary Benson <gbenson@redhat.com>
2507
2508 * exceptions.h (throw_vfatal): Renamed to...
2509 (throw_vquit): New declaration.
2510 (throw_quit): Likewise.
2511 * exceptions.c (throw_vfatal): Renamed to...
2512 (throw_vquit): New function.
2513 (throw_quit): Likewise.
2514 (throw_error): Call throw_verror rather than throw_it.
2515 * utils.h (vfatal): Removed.
2516 (fatal): Likewise.
2517 * utils.c (vfatal): Removed.
2518 (fatal): Likewise.
2519 (internal_verror): Replaced call to fatal with call to throw_quit.
2520 (quit): Replaced calls to fatal with calls to throw_quit.
2521
34211963
ME
25222014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2523
2524 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2525 target_read_code.
2526
a52b4d3e
ME
25272014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2528
2529 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2530 less than zero in conditional expression.
2531
a8bdc56b
TT
25322014-07-23 Tom Tromey <tromey@redhat.com>
2533
2534 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2535 ($INTRO_PART): Don't match whitespace.
2536 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2537 argument matching.
2538 ($METHOD): Add $METHOD_TRAILER.
2539 (trim): Rewrite.
2540 (scan_target_h): New sub.
2541 Change main loop not to collect state.
2542 * target-delegates.c: Rebuild.
2543
91b52240
GB
25442014-07-23 Gary Benson <gbenson@redhat.com>
2545
2546 * cp-support.c (gdb_demangle): Fix build on systems without
2547 sigaltstack.
2548
45326f6f
JK
25492014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2552 for reference entry value target data value.
2553
e214cf6c
JK
25542014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2557 value_available_contents_eq.
2558
bddbbedd
PA
25592014-07-22 Pedro Alves <palves@redhat.com>
2560
2561 * value.c (allocate_optimized_out_value): Don't mark value as
2562 non-lazy.
2563
45c71484
JW
25642014-07-22 Jiong Wang <jiong.wang@arm.com>
2565
2566 * MAINTAINERS (Write After Approval): Update my email address.
2567
9597b22a
DE
25682014-07-20 Doug Evans <dje@google.com>
2569
2570 PR server/17147
2571 * remote.c (putpkt_binary): Add text to error message.
2572
91101fe5
YQ
25732014-07-20 Yao Qi <yao@codesourcery.com>
2574
2575 * eval.c: Remove "Chill" from comments.
2576 * gdbtypes.h: Likewise.
2577 * symtab.h: Likewise.
2578
c9402c95
YQ
25792014-07-20 Yao Qi <yao@codesourcery.com>
2580
2581 * std-operator.def: Update comments to TERNOP_SLICE.
2582
ae8fddda
YQ
25832014-07-20 Yao Qi <yao@codesourcery.com>
2584
2585 * std-operator.def: Remove BINOP_RANGE.
2586 * breakpoint.c (watchpoint_exp_is_const): Update.
2587 * expprint.c (dump_subexp_body_standard): Likewise.
2588 * eval.c (init_array_element): Remove dead code.
2589 (evaluate_subexp_standard): Likewise.
2590
9c816640
YQ
25912014-07-20 Yao Qi <yao@codesourcery.com>
2592
2593 * std-operator.def: Remove BINOP_IN.
2594 * breakpoint.c (watchpoint_exp_is_const): Update.
2595 * eval.c (evaluate_subexp_standard): Likewise.
2596 * expprint.c (dump_subexp_body_standard): Likewise.
2597
164224e9
ME
25982014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2599
2600 * microblaze-tdep.c (microblaze_register_names): Add
2601 the rshr and rslr register names.
2602 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2603 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2604 Use of tdesc_numbered_register. Use of
2605 microblaze_register_g_packet_guesses. Use of
2606 tdesc_use_registers. Use of set_gdbarch_register_type.
2607 (microblaze_register_g_packet_guesses): New.
2608 * microblaze-tdep.h (microblaze_reg_num): Add
2609 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2610 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2611 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2612 * features/microblaze-core.xml: New file.
2613 * features/microblaze-stack-protect.xml: New file.
2614 * features/microblaze-with-stack-protect.c: New file.
2615 * features/microblaze-with-stack-protect.xml: New file.
2616 * features/microblaze.xml: New file.
2617 * features/microblaze.c: New file.
2618 * features/Makefile (microblaze-with-stack-protect): Add
2619 microblaze-with-stack-protect microblaze and microblaze-expedite.
2620 * regformats/microblaze-with-stack-protect.dat: New file.
2621 * regformats/microblaze.dat: New file.
2622 * doc/gdb.texinfo (MicroBlaze Features): Added.
2623
e8b2341c
TT
26242014-07-18 Tom Tromey <tromey@redhat.com>
2625
2626 * exec.c (exec_ops): Now static.
2627 * exec.h (exec_ops): Don't declare.
2628
44e89118
TT
26292014-07-18 Tom Tromey <tromey@redhat.com>
2630
2631 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2632 to find_target_beneath.
2633 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2634 find_target_beneath.
2635 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2636
b0ed115f
TT
26372014-07-18 Tom Tromey <tromey@redhat.com>
2638
2639 PR gdb/17130:
2640 * utils.c (quit): Use target_supports_terminal_ours.
2641 * target.h (target_supports_terminal_ours): Declare.
2642 * target.c (target_supports_delete_record): Don't check
2643 to_delete_record against NULL.
2644 (target_supports_terminal_ours): New function.
2645
e75fdfca
TT
26462014-07-18 Tom Tromey <tromey@redhat.com>
2647
2648 PR gdb/17130:
2649 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2650 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2651 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2652 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2653 * windows-nat.c (windows_xfer_partial): Always delegate.
2654 * record-btrace.c (record_btrace_xfer_partial): Simplify
2655 delegation.
2656 (record_btrace_fetch_registers, record_btrace_store_registers)
2657 (record_btrace_prepare_to_store, record_btrace_resume)
2658 (record_btrace_wait, record_btrace_find_new_threads)
2659 (record_btrace_thread_alive): Likewise.
2660 * procfs.c (procfs_xfer_partial): Always delegate.
2661 * corelow.c (core_xfer_partial): Always delegate.
2662 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2663
83814951
TT
26642014-07-18 Tom Tromey <tromey@redhat.com>
2665
2666 * exec.c (exec_make_note_section): Move earlier.
2667
b8b8facf
DE
26682014-07-17 Doug Evans <dje@google.com>
2669
74b49205 2670 PR gdb/17170
b8b8facf
DE
2671 * maint.c (count_symtabs_and_blocks): Handle NULL
2672 current_program_space.
2673 (report_command_stats): Check global enabled flag in addition to
2674 recorded enabled flag.
2675 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2676
69ff6be5
PA
26772014-07-16 Pedro Alves <palves@redhat.com>
2678
2679 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2680
252db1b5
TT
26812014-07-16 Tom Tromey <tromey@redhat.com>
2682
2683 * target.h (struct target_ops) <to_delete_record>: Reformat
2684 comment.
2685
a432721e
TT
26862014-07-16 Tom Tromey <tromey@redhat.com>
2687
2688 * target-delegates.c: Rebuild.
2689
487d9753
PL
26902014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2691
2692 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2693 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2694 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2695 (avr_pointer_to_address): Likewise.
2696 (avr_address_class_type_flags): New function.
2697 (avr_address_class_type_flags_to_name): Likewise.
2698 (avr_address_class_name_to_type_flags): Likewise.
2699 (avr_gdbarch_init): Set address_class_type_flags,
2700 address_class_type_flags_to_name and
2701 address_class_name_to_type_flags.
2702
57745c90
PA
27032014-07-15 Pedro Alves <palves@redhat.com>
2704
2705 * linux-nat.c (kill_callback): Save errno and work with saved
2706 copy.
2707
2d40be18
SM
27082014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2709
2710 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2711
572f6555
EBM
27122014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2713
2714 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2715 breakpoint support correctly.
2716
cc1c52ad
PA
27172014-07-14 Pedro Alves <palves@redhat.com>
2718
2719 * utils.c (prompt_for_continue): Call target_terminal_ours.
2720
1e973570
PA
27212014-07-14 Pedro Alves <palves@redhat.com>
2722
2723 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2724 catch_errors. Don't re-enable stdin or notify observers where,
2725 and rethrow error.
2726 (fetch_inferior_event_wrapper): Delete.
2727
93d6eb10
PA
27282014-07-14 Pedro Alves <palves@redhat.com>
2729
2730 PR gdb/17072
2731 * top.c: Include "inf-loop.h".
2732 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2733 field.
2734 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2735 was async before.
2736 (gdb_readline_wrapper): Store whether the target is async, and
2737 make it sync.
2738
0017922d
PA
27392014-07-14 Pedro Alves <palves@redhat.com>
2740
2741 PR gdb/17072
2742 * top.c (gdb_readline_wrapper_line): Tweak comment.
2743 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2744 the input handler callback.
2745
94696ad3
PA
27462014-07-14 Pedro Alves <palves@redhat.com>
2747
2748 PR gdb/17072
2749 * main.c: Include event-top.h.
2750 (handle_command_errors): New function.
2751 (catch_command_errors, catch_command_errors_const): Use it.
2752
9d1e69a2
PA
27532014-07-14 Pedro Alves <palves@redhat.com>
2754
2755 * exceptions.c (catch_command_errors, catch_command_errors_const):
2756 Moved to main.c.
2757 * exceptions.h (catch_command_errors_ftype)
2758 (catch_command_errors_const_ftype): Moved to main.c.
2759 (catch_command_errors, catch_command_errors_const): Delete
2760 declarations.
2761 * main.c (catch_command_errors_ftype)
2762 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2763 (catch_command_errors, catch_command_errors_const)): Moved here
2764 from exceptions.c and make static.
2765
feefc97b
PA
27662014-07-14 Pedro Alves <palves@redhat.com>
2767
2768 * exceptions.c (print_any_exception): Delete.
2769 (catch_exceptions_with_msg): Use exception_print instead of
2770 print_any_exception.
2771 (catch_errors): Use exception_fprintf instead of
2772 print_any_exception.
2773 (catch_command_errors, catch_command_errors_const): Use
2774 exception_print instead of print_any_exception.
2775
c933f875
PA
27762014-07-14 Pedro Alves <palves@redhat.com>
2777
2778 * infcall.c (run_inferior_call): Set 'sync_execution' while
2779 running the inferior call.
2780
feb6f816
PA
27812014-07-14 Pedro Alves <palves@redhat.com>
2782
2783 * value.c (value_contents_equal): Delete function.
2784 * value.h (value_contents_equal): Delete declaration.
2785
d98b7a16
TT
27862014-07-14 Tom Tromey <tromey@redhat.com>
2787
2788 PR exp/17106:
2789 * gdbtypes.c (is_dynamic_type_internal): New function, from
2790 is_dynamic_type.
2791 (is_dynamic_type): Rewrite.
2792 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2793 (resolve_dynamic_struct): Likewise.
2794 (resolve_dynamic_type_internal): New function, from
2795 resolve_dynamic_type.
2796 (resolve_dynamic_type): Rewrite.
2797
548740d6
TT
27982014-07-14 Tom Tromey <tromey@redhat.com>
2799
2800 * target.c (target_require_runnable): Also check record_stratum.
2801 Update comment.
2802
808f7ab1
YQ
28032014-07-11 Yao Qi <yao@codesourcery.com>
2804
2805 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2806 thumb_instruction_restores_sp return true.
2807
540314bd
YQ
28082014-07-11 Yao Qi <yao@codesourcery.com>
2809
2810 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2811 (thumb_in_function_epilogue_p): Call
2812 thumb_instruction_restores_sp.
2813
1db01f22
YQ
28142014-07-11 Yao Qi <yao@codesourcery.com>
2815
2816 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2817 'add sp, #imm'.
2818 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2819
3116063b
GB
28202014-07-11 Gary Benson <gbenson@redhat.com>
2821
2822 * amd64-linux-nat.c (gdbcore.h): Remove include.
2823 (regset.h): Likewise.
2824 (nat/linux-btrace.h): Likewise.
2825 (btrace.h): Likewise.
2826 (gdb_assert.h): Likewise.
2827 (string.h): Likewise.
2828 (sys/uio.h): Likewise.
2829 (sys/debugreg.h): Likewise.
2830 (sys/syscall.h): Likewise.
2831 (sys/procfs.h): Likewise.
2832 (sys/user.h): Likewise.
2833 (asm/ptrace.h): Likewise.
2834 (i386-nat.h): Likewise.
2835 * i386-linux-nat.c (i386-nat.h): Likewise.
2836 (regset.h): Likewise.
2837 (target.h): Likewise.
2838 (linux-nat.h): Likewise.
2839 (nat/linux-btrace.h): Likewise.
2840 (btrace.h): Likewise.
2841 (gdb_assert.h): Likewise.
2842 (string.h): Likewise.
2843 (sys/uio.h): Likewise.
2844 (sys/user.h): Likewise.
2845 (sys/procfs.h): Likewise.
2846 (sys/reg.h): Likewise.
2847 (sys/debugreg.h): Likewise.
2848 (ORIG_EAX): Remove definition.
2849
040baaf6
GB
28502014-07-11 Gary Benson <gbenson@redhat.com>
2851
2852 * i386-linux-nat.h: New file.
2853 * x86-linux-nat.h: Likewise.
2854 * x86-linux-nat.c: Likewise.
2855 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2856 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2857 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2858 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2859 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2860 (PTRACE_SETREGSET): Likewise.
2861 (arch_lwp_info): Now in x86-linux-nat.c.
2862 (have_ptrace_getregset): Now in x86-linux-nat.h.
2863 (x86_linux_dr_get): Now in x86-linux-nat.c.
2864 (x86_linux_dr_set): Likewise.
2865 (x86_linux_dr_get_addr): Likewise.
2866 (x86_linux_dr_get_control): Likewise.
2867 (x86_linux_dr_get_status): Likewise.
2868 (update_debug_registers_callback): Likewise.
2869 (x86_linux_dr_set_control): Likewise.
2870 (x86_linux_dr_set_addr): Likewise.
2871 (x86_linux_prepare_to_resume): Likewise.
2872 (x86_linux_new_thread): Likewise.
2873 (x86_linux_new_fork): Likewise.
2874 (x86_linux_get_thread_area): Likewise.
2875 (super_post_startup_inferior): Likewise.
2876 (x86_linux_child_post_startup_inferior): Likewise.
2877 (AMD64_LINUX_USER64_CS): Likewise.
2878 (AMD64_LINUX_X32_DS): Likewise.
2879 (x86_linux_read_description): Likewise.
2880 (x86_linux_enable_btrace): Likewise.
2881 (x86_linux_disable_btrace): Likewise.
2882 (x86_linux_teardown_btrace): Likewise.
2883 (x86_linux_read_btrace): Likewise.
2884 (x86_linux_create_target): Likewise.
2885 (x86_linux_add_target): Likewise.
2886 * i386-linux-nat.c (x86-linux-nat.h): New include.
2887 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2888 (PTRACE_SETREGSET): Likewise.
2889 (arch_lwp_info): Now in x86-linux-nat.c.
2890 (have_ptrace_getregset): Now in x86-linux-nat.h.
2891 (x86_linux_dr_get): Now in x86-linux-nat.c.
2892 (x86_linux_dr_set): Likewise.
2893 (x86_linux_dr_get_addr): Likewise.
2894 (x86_linux_dr_get_control): Likewise.
2895 (x86_linux_dr_get_status): Likewise.
2896 (update_debug_registers_callback): Likewise.
2897 (x86_linux_dr_set_control): Likewise.
2898 (x86_linux_dr_set_addr): Likewise.
2899 (x86_linux_prepare_to_resume): Likewise.
2900 (x86_linux_new_thread): Likewise.
2901 (x86_linux_new_fork): Likewise.
2902 (x86_linux_get_thread_area): Likewise.
2903 (super_post_startup_inferior): Likewise.
2904 (x86_linux_child_post_startup_inferior): Likewise.
2905 (AMD64_LINUX_USER64_CS): Likewise.
2906 (AMD64_LINUX_X32_DS): Likewise.
2907 (x86_linux_read_description): Likewise.
2908 (x86_linux_enable_btrace): Likewise.
2909 (x86_linux_disable_btrace): Likewise.
2910 (x86_linux_teardown_btrace): Likewise.
2911 (x86_linux_read_btrace): Likewise.
2912 (x86_linux_create_target): Likewise.
2913 (x86_linux_add_target): Likewise.
2914
1aa7e42c
GB
29152014-07-11 Gary Benson <gbenson@redhat.com>
2916
2917 * amd64-linux-nat.c: Comment and whitespace changes.
2918 * i386-linux-nat.c: Comment and whitespace changes.
2919
c1e246a0
GB
29202014-07-11 Gary Benson <gbenson@redhat.com>
2921
2922 * amd64-linux-nat.c (x86_linux_create_target): New function.
2923 (x86_linux_add_target): Likewise.
2924 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2925 * i386-linux-nat.c (x86_linux_create_target): New function.
2926 (x86_linux_add_target): Likewise.
2927 (_initialize_i386_linux_nat): Delegate to the above new functions.
2928
8c420b8d
GB
29292014-07-11 Gary Benson <gbenson@redhat.com>
2930
2931 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2932 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2933 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2934 (ps_get_thread_area): Delegate to the above.
2935
cb1da100
GB
29362014-07-11 Gary Benson <gbenson@redhat.com>
2937
2938 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2939 x86_linux_read_description. All uses updated. amd64-specific
2940 code conditionalized. Conditionalized i386-specific code added.
2941 Redundant cast removed.
2942 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2943 x86_linux_read_description. All uses updated. i386-specific
2944 code conditionalized. Conditionalized amd64-specific code added.
2945 One sizeof replaced with the actual type it is describing.
2946
2acf3cd0
GB
29472014-07-11 Gary Benson <gbenson@redhat.com>
2948
2949 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2950 x86_linux_dr_get. All uses updated.
2951 (amd64_linux_dr_set): Renamed to
2952 x86_linux_dr_set. All uses updated.
2953 (amd64_linux_dr_get_addr): Renamed to
2954 x86_linux_dr_get_addr. All uses updated.
2955 (amd64_linux_dr_get_control): Renamed to
2956 x86_linux_dr_get_control. All uses updated.
2957 (amd64_linux_dr_get_status): Renamed to
2958 x86_linux_dr_get_status. All uses updated.
2959 (amd64_linux_dr_set_control): Renamed to
2960 x86_linux_dr_set_control. All uses updated.
2961 (amd64_linux_dr_set_addr): Renamed to
2962 x86_linux_dr_set_addr. All uses updated.
2963 (amd64_linux_prepare_to_resume): Renamed to
2964 x86_linux_prepare_to_resume. All uses updated.
2965 (amd64_linux_new_thread): Renamed to
2966 x86_linux_new_thread. All uses updated.
2967 (amd64_linux_new_fork): Renamed to
2968 x86_linux_new_fork. All uses updated.
2969 (amd64_linux_child_post_startup_inferior): Renamed to
2970 x86_linux_child_post_startup_inferior. All uses updated.
2971 (amd64_linux_enable_btrace): Renamed to
2972 x86_linux_enable_btrace. All uses updated.
2973 (amd64_linux_disable_btrace): Renamed to
2974 x86_linux_disable_btrace. All uses updated.
2975 (amd64_linux_teardown_btrace): Renamed to
2976 x86_linux_teardown_btrace. All uses updated.
2977 (amd64_linux_read_btrace): Renamed to
2978 x86_linux_read_btrace. All uses updated.
2979 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2980 x86_linux_dr_get. All uses updated.
2981 (i386_linux_dr_set): Renamed to
2982 x86_linux_dr_set. All uses updated.
2983 (i386_linux_dr_get_addr): Renamed to
2984 x86_linux_dr_get_addr. All uses updated.
2985 (i386_linux_dr_get_control): Renamed to
2986 x86_linux_dr_get_control. All uses updated.
2987 (i386_linux_dr_get_status): Renamed to
2988 x86_linux_dr_get_status. All uses updated.
2989 (i386_linux_dr_set_control): Renamed to
2990 x86_linux_dr_set_control. All uses updated.
2991 (i386_linux_dr_set_addr): Renamed to
2992 x86_linux_dr_set_addr. All uses updated.
2993 (i386_linux_prepare_to_resume): Renamed to
2994 x86_linux_prepare_to_resume. All uses updated.
2995 (i386_linux_new_thread): Renamed to
2996 x86_linux_new_thread. All uses updated.
2997 (i386_linux_new_fork): Renamed to
2998 x86_linux_new_fork. All uses updated.
2999 (i386_linux_child_post_startup_inferior): Renamed to
3000 x86_linux_child_post_startup_inferior. All uses updated.
3001 (i386_linux_enable_btrace): Renamed to
3002 x86_linux_enable_btrace. All uses updated.
3003 (i386_linux_disable_btrace): Renamed to
3004 x86_linux_disable_btrace. All uses updated.
3005 (i386_linux_teardown_btrace): Renamed to
3006 x86_linux_teardown_btrace. All uses updated.
3007 (i386_linux_read_btrace): Renamed to
3008 x86_linux_read_btrace. All uses updated.
3009
b9c1d481
AS
30102014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3011
3012 * remote.c (extended_remote_post_attach): New function.
3013 (init_extended_remote_ops): Install it as to_post_attach method.
3014
7180e04a
PA
30152014-07-09 Pedro Alves <palves@redhat.com>
3016
3017 * infcmd.c (attach_command_post_wait): Don't call
3018 target_terminal_inferior here.
3019 (attach_command): Call it here instead.
3020
9a9a7608
AB
30212014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3024 field.
3025 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3026 from varobj.c, with additional checks.
3027 (c_varobj_ops): Fill in is_path_expr_parent field.
3028 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3029 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3030 field.
3031 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3032 ops method.
3033 (varobj_default_is_path_expr_parent): New function.
3034 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3035 (varobj_default_is_path_expr_parent): Declare new function.
3036
1f267ae3
MM
30372014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3038
3039 * infcmd.c (finish_backward): Turn internal error into normal error.
3040
b2ee242b
PA
30412014-07-07 Pedro Alves <palves@redhat.com>
3042
8a869bca 3043 PR gdb/17096
b2ee242b
PA
3044 * remote.c (async_handle_remote_sigint)
3045 (async_handle_remote_sigint_twice): Call
3046 gdb_call_async_signal_handler instead of
3047 mark_async_signal_handler.
3048
38e229b2
TT
30492014-07-07 Tom Tromey <tromey@redhat.com>
3050
3051 * target-delegates.c: Rebuild.
3052 * target.c (target_info_record): Remove.
3053 * record.c (info_record_command): Unconditionally call
3054 to_info_record.
3055 * target.h (struct target_ops) <to_info_record>: Use
3056 TARGET_DEFAULT_IGNORE.
3057 (target_info_record): Remove.
3058
f0f9ff95
TT
30592014-07-07 Tom Tromey <tromey@redhat.com>
3060
3061 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3062 TARGET_DEFAULT_NORETURN.
3063 * target.c (generic_tls_error): New function.
3064 (target_translate_tls_address): Don't search target stack.
3065 * target-delegates.c: Rebuild.
3066 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3067 stack.
3068 * linux-thread-db.c (thread_db_get_thread_local_address):
3069 Unconditionally call beneath target.
3070
4a5be5ee
MK
30712014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3072
3073 * cli/cli-logging.c (pop_output_files): Assign targerr to
3074 gdb_stdtargerr.
3075
92c3b204
AB
30762014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3077
3078 * MAINTAINERS (Write After Approval): Update my email address.
3079
9b11e3a7
GB
30802014-07-02 Gary Benson <gbenson@redhat.com>
3081
3082 * proc-service.c (ps_xfer_memory): Update comment.
3083 (ps_pstop): Remove unused function.
3084 (ps_pcontinue): Likewise.
3085 (ps_lstop): Likewise.
3086 (ps_lcontinue): Likewise.
3087 (ps_lgetxregsize): Likewise.
3088 (ps_lgetxregs): Likewise.
3089 (ps_lsetxregs): Likewise.
3090 (ps_plog): Likewise.
3091 (ps_ptread): Likewise.
3092 (ps_ptwrite): Likewise.
3093
cf363f18
MW
30942014-07-01 Mark Wielaard <mjw@redhat.com>
3095
3096 * dwarf2read.c (add_array_cv_type): New function.
3097 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3098 (read_tag_volatile_type): Likewise.
3099
82ae6c8d
TT
31002014-07-01 Tom Tromey <tromey@redhat.com>
3101
3102 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3103 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3104 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3105 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3106 * command.h (cmd_cfunc_ftype): Move earlier.
3107 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3108 (add_com, add_info): Use cmd_cfunc_ftype.
3109
96142726
TT
31102014-06-30 Tom Tromey <tromey@redhat.com>
3111
3112 * symtab.c (operator_chars): Make parameters and return type
3113 const.
3114 (file_matches): Make "files" const.
3115 (struct search_symbols_data) <files>: Now const.
3116 (search_symbols): Make "regexp" and "files" parameters const.
3117 Update.
3118 (symtab_symbol_info): Remove cast.
3119 (rbreak_command): Update.
3120 * symtab.h (search_symbols): Update.
3121
b67a2c6f
YQ
31222014-06-27 Yao Qi <yao@codesourcery.com>
3123
3124 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3125 Change parameter type to 'struct thread_info *'. Caller
3126 updated.
3127 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3128 Update declaration.
3129 * dummy-frame.c (struct dummy_frame_id): New.
3130 (dummy_frame_id_eq): New function.
3131 (struct dummy_frame) <id>: Change its type to 'struct
3132 dummy_frame_id'.
3133 (dummy_frame_push): Add parameter ptid and save it in
3134 dummy_frame_id.
3135 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3136 inferior_ptid.
3137 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3138 to inferior_ptid.
3139 (lookup_dummy_frame): Change parameter type to 'struct
3140 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3141 instead of frame_id_eq.
3142 (dummy_frame_pop): Add parameter ptid. Callers updated.
3143 Update comments. Compose dummy_frame_id and pass it to
3144 lookup_dummy_frame.
3145 (dummy_frame_discard): Add parameter ptid.
3146 (dummy_frame_sniffer): Compose dummy_frame_id and call
3147 dummy_frame_id_eq instead of frame_id_eq.
3148 (fprint_dummy_frames): Print ptid.
3149 * dummy-frame.h: Remove comments.
3150 (dummy_frame_push): Add ptid in declaration.
3151 (dummy_frame_pop, dummy_frame_discard): Likewise.
3152
5b10184c
TT
31532014-06-26 Tom Tromey <tromey@redhat.com>
3154
3155 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3156 * command.h (error_no_arg): Update.
3157
06900326
TT
31582014-06-26 Tom Tromey <tromey@redhat.com>
3159
3160 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3161 (do_show_command): Make "arg" const.
3162 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3163
c2bcbb1d
TT
31642014-06-26 Tom Tromey <tromey@redhat.com>
3165
3166 * record-full.c (record_full_get_bookmark): Make "args" const.
3167 (record_full_goto_bookmark): Make "raw_bookmark" const.
3168 * record.c (record_goto): New function.
3169 (cmd_record_goto): Use it. Now static.
3170 * record.h (record_goto): Declare.
3171 (cmd_record_goto): Remove declaration.
3172 * target-delegates.c: Rebuild.
3173 * target.h (struct target_ops) <to_get_bookmark,
3174 to_goto_bookmark>: Make parameter const.
3175
9cbe5fff
TT
31762014-06-26 Tom Tromey <tromey@redhat.com>
3177
3178 * defs.h (generic_load): Update.
3179 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3180 * monitor.c (monitor_load): Make "args" const.
3181 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3182 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3183 const.
3184 (mips_load): Make "file" const.
3185 * remote-sim.c (gdbsim_load): Make "args" const.
3186 * remote.c (remote_load): Make "name" const.
3187 * symfile.c (generic_load): Make "args" const.
3188 * target-delegates.c: Rebuild.
3189 * target.c (target_load): Make "arg" const.
3190 (debug_to_load): Make "args" const.
3191 * target.h (struct target_ops) <to_load>: Make parameter const.
3192 (target_load): Update.
3193
34a68019
TT
31942014-06-26 Tom Tromey <tromey@redhat.com>
3195
3196 PR symtab/16902:
3197 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3198 (dwarf2_physname, read_partial_die)
3199 (guess_partial_die_structure_name, fixup_partial_die)
3200 (guess_full_die_structure_name, anonymous_struct_prefix)
3201 (dwarf2_name): Use per-BFD obstack.
3202
efc889c1
YQ
32032014-06-26 Yao Qi <yao@codesourcery.com>
3204
3205 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3206 dummyframe and this_id into inner block below.
3207
4395285e
YQ
32082014-06-26 Yao Qi <yao@codesourcery.com>
3209
3210 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3211 with "signal_pass[0]" in the initialization of signal_pass.
3212
aef92902
MM
32132014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3214
3215 * record-btrace.c (record_btrace_generating_corefile)
3216 (record_btrace_prepare_to_generate_core)
3217 (record_btrace_done_generating_core): New.
3218 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3219 (record_btrace_store_registers, record_btrace_prepare_to_store):
3220 Forward request when generating a core file.
3221 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3222 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3223 to_done_generating_core.
3224
5fff78c4
MM
32252014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3226
3227 * target.h (target_ops) <to_prepare_to_generate_core>
3228 <to_done_generating_core>: New.
3229 (target_prepare_to_generate_core, target_done_generating_core): New.
3230 * target.c (target_prepare_to_generate_core)
3231 (target_done_generating_core): New.
3232 * target-delegates.c: Regenerate.
3233 * gcore.c: (write_gcore_file): Rename to ...
3234 (write_gcore_file_1): ...this.
3235 (write_gcore_file): Call target_prepare_to_generate_core
3236 and target_done_generating_core.
3237
1d1f1ccb
MM
32382014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3239
3240 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3241 * gcore.c (write_gcore_file): Free memory returned from
3242 make_corefile_notes.
3243 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3244 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3245
3343ef86
YQ
32462014-06-24 Yao Qi <yao@codesourcery.com>
3247
3248 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3249 (arm_linux_init_abi): Set skip_trampoline_code with
3250 gdbarch_skip_trampoline_code instead of
3251 find_solib_trampoline_target.
3252
18d18ac8
YQ
32532014-06-24 Yao Qi <yao@codesourcery.com>
3254
3255 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3256 arm_skip_bx_reg returns non-zero.
3257
80d8d390
YQ
32582014-06-24 Yao Qi <yao@codesourcery.com>
3259
3260 * arm-tdep.c (arm_skip_bx_reg): New function.
3261 (arm_skip_stub): Call arm_skip_bx_reg.
3262
6a18a01c
DB
32632014-06-23 Don Breazeal <donb@codesourcery.com>
3264
3265 * MAINTAINERS: Add myself as write-after-approval maintainer.
3266
8e9db26e
PA
32672014-06-23 Pedro Alves <palves@redhat.com>
3268
3269 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3270 DR_CONTROL before setting DR0..DR3.
3271 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3272 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3273 bits of DR_CONTROL related to the debug register slot being
3274 disabled. If all slots are vacant, clear local slowdown as well,
3275 and assert DR_CONTROL is 0.
3276
70afc5b7
SC
32772014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3278
3279 * python/lib/gdb/command/xmethods.py
3280 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3281 current progspace only if the string "progspace" matches LOCUS_RE.
3282
840ed64d
JK
32832014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3284
3285 Fix --with-system-readline with readline-6.3 patch 5.
3286 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3287 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3288 types.
3289
26f2dc30
TT
32902014-06-20 Tom Tromey <tromey@redhat.com>
3291
3292 * dwarf2read.c (dw2_get_real_path): Use correct type in
3293 OBSTACK_CALLOC.
3294 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3295
125f8a3d
GB
32962014-06-20 Gary Benson <gbenson@redhat.com>
3297
3298 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3299 * common/glibc_thread_db.h: Likewise.
3300 * common/i386-cpuid.h: Likewise.
3301 * common/i386-gcc-cpuid.h: Likewise.
3302 * common/linux-btrace.h: Likewise.
3303 * common/linux-osdata.h: Likewise.
3304 * common/linux-procfs.h: Likewise.
3305 * common/linux-ptrace.h: Likewise.
3306 * common/mips-linux-watch.h: Likewise.
3307 * common/linux-btrace.c: Moved to nat.
3308 * common/linux-osdata.c: Likewise.
3309 * common/linux-procfs.c: Likewise.
3310 * common/linux-ptrace.c: Likewise.
3311 * common/mips-linux-watch.c: Likewise.
3312 * nat/gdb_thread_db.h: Moved from common.
3313 * nat/glibc_thread_db.h: Likewise.
3314 * nat/i386-cpuid.h: Likewise.
3315 * nat/i386-gcc-cpuid.h: Likewise.
3316 * nat/linux-btrace.c: Likewise.
3317 * nat/linux-btrace.h: Likewise.
3318 * nat/linux-osdata.c: Likewise.
3319 * nat/linux-osdata.h: Likewise.
3320 * nat/linux-procfs.c: Likewise.
3321 * nat/linux-procfs.h: Likewise.
3322 * nat/linux-ptrace.c: Likewise.
3323 * nat/linux-ptrace.h: Likewise.
3324 * nat/mips-linux-watch.c: Likewise.
3325 * nat/mips-linux-watch.h: Likewise.
3326 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3327 (object file files): Reordered.
3328 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3329 of glibc_thread_db.h.
3330
42995dbd
GB
33312014-06-20 Gary Benson <gbenson@redhat.com>
3332
3333 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3334 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3335 (i386_dr_low): Likewise.
3336 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3337 (i386_dr_low_set_addr): Likewise.
3338 (i386_dr_low_get_addr): Likewise.
3339 (i386_dr_low_can_set_control): Likewise.
3340 (i386_dr_low_set_control): Likewise.
3341 (i386_dr_low_get_control): Likewise.
3342 (i386_dr_low_get_status): Likewise.
3343 (i386_get_debug_register_length): Likewise.
3344 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3345 (i386_dr_low): Likewise.
3346 * nat/i386-dregs.c (i386-low.h): Remove include.
3347 (i386-nat.h): Likewise.
3348 (nat/i386-dregs.h): New include.
3349 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3350 (i386_dr_low_set_addr): Likewise.
3351 (i386_dr_low_get_addr): Likewise.
3352 (i386_dr_low_can_set_control): Likewise.
3353 (i386_dr_low_set_control): Likewise.
3354 (i386_dr_low_get_control): Likewise.
3355 (i386_dr_low_get_status): Likewise.
3356 (i386_get_debug_register_length): Likewise.
3357 (debug_hw_points): Likewise.
3358
3ed9baed
IB
33592014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3360
3361 * Makefile.in (SFILES): Add d-exp.y.
3362 (YYFILES): Add d-exp.c.
3363 (YYOBJ): Add d-exp.o.
3364 (local-maintainer-clean): Delete d-exp.c.
3365 * d-exp.y: New file.
3366 * d-lang.h (d_parse): New declaration.
3367 (d_error): New declaration.
3368 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3369 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3370 PREC_ORDER operators.
3371 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3372
78c164b0
YQ
33732014-06-19 Yao Qi <yao@codesourcery.com>
3374
3375 * gdbthread.h (any_running): Remove the declaration.
3376 * thread.c (any_running): Remove.
3377
f6e29b6e
YQ
33782014-06-19 Yao Qi <yao@codesourcery.com>
3379
3380 * gdbthread.h (struct thread_info) <state>: Change its type to
3381 'enum thread_state'. Update comments.
3382
034f788c
PA
33832014-06-19 Pedro Alves <palves@redhat.com>
3384
3385 * gdbthread.h (ALL_THREADS): Delete.
3386 (ALL_NON_EXITED_THREADS): New macro.
3387 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3388 instead of ALL_THREADS.
3389 * infrun.c (find_thread_needs_step_over)
3390 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3391 instead of ALL_THREADS.
3392 * record-btrace.c (record_btrace_open)
3393 (record_btrace_stop_recording, record_btrace_close)
3394 (record_btrace_is_replaying, record_btrace_resume)
3395 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3396 * remote.c (append_pending_thread_resumptions): Likewise.
3397 * thread.c (thread_apply_all_command): Likewise.
3398
46e33252
GB
33992014-06-19 Gary Benson <gbenson@redhat.com>
3400
3401 * i386-nat.c (i386_stopped_by_watchpoint):
3402 Use i386_dr_stopped_by_watchpoint.
3403 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3404 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3405
3a8ee006
GB
34062014-06-19 Gary Benson <gbenson@redhat.com>
3407
3408 * nat/i386-dregs.c: New file.
3409 * Makefile.in (i386-dregs.o): New rule.
3410 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3411 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3412 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3413 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3414 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3415 * config/i386/go32.mh (NATDEPFILES): Likewise.
3416 * config/i386/linux.mh (NATDEPFILES): Likewise.
3417 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3418 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3419 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3420 * i386-nat.h (debug_hw_points): New declaration.
3421 * i386-nat.c (breakpoint.h): Remove include.
3422 (command.h): Likewise.
3423 (target.h): Likewise.
3424 (gdb_assert.h): Likewise.
3425 (debug_hw_points): Made nonstatic.
3426 (debug_printf): Now in i386-dregs.c.
3427 (TARGET_HAS_DR_LEN_8): Likewise.
3428 (DR_CONTROL_SHIFT): Likewise.
3429 (DR_CONTROL_SIZE): Likewise.
3430 (DR_RW_EXECUTE): Likewise.
3431 (DR_RW_WRITE): Likewise.
3432 (DR_RW_READ): Likewise.
3433 (DR_RW_IORW): Likewise.
3434 (DR_LEN_1): Likewise.
3435 (DR_LEN_2): Likewise.
3436 (DR_LEN_4): Likewise.
3437 (DR_LEN_8): Likewise.
3438 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3439 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3440 (DR_ENABLE_SIZE): Likewise.
3441 (DR_LOCAL_SLOWDOWN): Likewise.
3442 (DR_GLOBAL_SLOWDOWN): Likewise.
3443 (DR_CONTROL_RESERVED): Likewise.
3444 (I386_DR_CONTROL_MASK): Likewise.
3445 (I386_DR_VACANT): Likewise.
3446 (I386_DR_LOCAL_ENABLE): Likewise.
3447 (I386_DR_GLOBAL_ENABLE): Likewise.
3448 (I386_DR_DISABLE): Likewise.
3449 (I386_DR_SET_RW_LEN): Likewise.
3450 (I386_DR_GET_RW_LEN): Likewise.
3451 (I386_DR_WATCH_HIT): Likewise.
3452 (i386_wp_op_t): Likewise.
3453 (i386_show_dr): Likewise.
3454 (i386_length_and_rw_bits): Likewise.
3455 (i386_insert_aligned_watchpoint): Likewise.
3456 (i386_remove_aligned_watchpoint): Likewise.
3457 (i386_handle_nonaligned_watchpoint): Likewise.
3458 (i386_update_inferior_debug_regs): Likewise.
3459 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3460 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3461 (i386_region_ok_for_watchpoint):
3462 Use i386_dr_region_ok_for_watchpoint.
3463 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3464
322a8e06
GB
34652014-06-19 Gary Benson <gbenson@redhat.com>
3466
3467 * i386-nat.c (i386_insert_hw_breakpoint): Use
3468 i386_insert_watchpoint.
3469 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3470
8f26655c
GB
34712014-06-19 Gary Benson <gbenson@redhat.com>
3472
3473 * i386-nat.c (i386_dr_show): Renamed to
3474 i386_show_dr and made static. All uses updated.
3475 (i386_dr_length_and_rw_bits): Renamed to
3476 i386_length_and_rw_bits and made static.
3477 All uses updated.
3478 (i386_dr_insert_aligned_watchpoint): Renamed to
3479 i386_insert_aligned_watchpoint and made static.
3480 All uses updated.
3481 (i386_dr_remove_aligned_watchpoint): Renamed to
3482 i386_remove_aligned_watchpoint and made static.
3483 All uses updated.
3484 (i386_dr_update_inferior_debug_regs): Renamed to
3485 i386_update_inferior_debug_regs and made static.
3486 All uses updated.
3487 * nat/i386-dregs.h (i386_dr_show): Removed.
3488 (i386_dr_length_and_rw_bits): Likewise.
3489 (i386_dr_insert_aligned_watchpoint): Likewise.
3490 (i386_dr_remove_aligned_watchpoint): Likewise.
3491 (i386_dr_update_inferior_debug_regs): Likewise.
3492
992c7d70
GB
34932014-06-19 Gary Benson <gbenson@redhat.com>
3494
3495 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3496 * configure: Regenerate.
3497 * config.in: Likewise.
3498 * main.c (signal.h): New include.
3499 (setup_alternate_signal_stack): New function.
3500 (captured_main): Call the above.
3501 * cp-support.c (signal.h): New include.
3502 (catch_demangler_crashes): New flag.
3503 (SIGJMP_BUF): New define.
3504 (SIGSETJMP): Likewise.
3505 (SIGLONGJMP): Likewise.
3506 (gdb_demangle_jmp_buf): New static global.
3507 (gdb_demangle_attempt_core_dump): Likewise.
3508 (gdb_demangle_signal_handler): New function.
3509 (gdb_demangle): If catch_demangler_crashes is set, install the
3510 above signal handler before calling bfd_demangle, and restore
3511 the original signal handler afterwards. Display the offending
3512 symbol and call demangler_warning the first time a segmentation
3513 fault is caught.
3514 (_initialize_cp_support): New maint set/show command.
3515
eae7090b
GB
35162014-06-19 Gary Benson <gbenson@redhat.com>
3517
3518 * utils.h (resource_limit_kind): New enum.
3519 (can_dump_core): New declaration.
3520 (warn_cant_dump_core): Likewise.
3521 (dump_core): Likewise.
3522 * utils.c (dump_core): Made nonstatic. Added new
3523 parameter "limit_kind".
3524 (can_dump_core): Made nonstatic. Moved printing code to...
3525 (warn_cant_dump_core): New function.
3526 (can_dump_core_warn): Likewise.
3527 (internal_vproblem): Replace calls to can_dump_core with
3528 calls to can_dump_core_warn. Supply new argument to each.
3529
57fcfb1b
GB
35302014-06-19 Gary Benson <gbenson@redhat.com>
3531
3532 * utils.h (demangler_vwarning): New declaration.
3533 (demangler_warning): Likewise.
3534 * utils.c (struct internal_problem)
3535 <user_settable_should_quit>: New field.
3536 <user_settable_should_dump_core>: Likewise
3537 (internal_error_problem): Add values for above new fields.
3538 (internal_warning_problem): Likewise.
3539 (demangler_warning_problem): New static global.
3540 (demangler_vwarning): New function.
3541 (demangler_warning): Likewise.
3542 (add_internal_problem_command): Selectively add commands.
3543 (_initialize_utils): New internal problem command.
3544 * maint.c (maintenance_demangler_warning): New function.
3545 (_initialize_maint_cmds): New command.
3546
17a40b44
TT
35472014-06-18 Tom Tromey <tromey@redhat.com>
3548
3549 * f-valprint.c (info_common_command_for_block): Update.
3550 * symtab.h (struct general_symbol_info) <common_block>: Now
3551 const.
3552
346d1dfe
TT
35532014-06-18 Tom Tromey <tromey@redhat.com>
3554
3555 * symtab.h (struct symtab) <blockvector>: Now const.
3556 * ada-lang.c (ada_add_global_exceptions): Update.
3557 * buildsym.c (augment_type_symtab): Update.
3558 * dwarf2read.c (dw2_lookup_symbol): Update.
3559 * jit.c (finalize_symtab): Update.
3560 * jv-lang.c (add_class_symtab_symbol): Update.
3561 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3562 Update.
3563 * objfiles.c (objfile_relocate1): Update.
3564 * psymtab.c (lookup_symbol_aux_psymtabs)
3565 (maintenance_check_psymtabs): Update.
3566 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3567 Update.
3568 * spu-tdep.c (spu_catch_start): Update.
3569 * symmisc.c (dump_symtab_1): Update.
3570 * symtab.c (lookup_global_symbol_from_objfile)
3571 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3572 (basic_lookup_transparent_type_quick)
3573 (basic_lookup_transparent_type, find_pc_sect_symtab)
3574 (find_pc_sect_line, search_symbols): Update.
3575 * block.c (find_block_in_blockvector): Make "bl" const.
3576 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3577 const.
3578 (blockvector_contains_pc): Make "bv" const.
3579 (block_for_pc_sect): Update.
3580 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3581 (blockvector_contains_pc): Update.
3582 * breakpoint.c (resolve_sal_pc): Update.
3583 * inline-frame.c (block_starting_point_at): Update.
3584
1834676b
TT
35852014-06-18 Tom Tromey <tromey@redhat.com>
3586
3587 * completer.c (complete_line): Make "line_buffer" const.
3588 * completer.h (complete_line): Update.
3589
ac1a991b
TT
35902014-06-18 Tom Tromey <tromey@redhat.com>
3591
3592 * symtab.c (add_macro_name): Remove unneeded cast.
3593
5bc98e52
TT
35942014-06-18 Tom Tromey <tromey@redhat.com>
3595
3596 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3597 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3598
8236def8
TT
35992014-06-18 Tom Tromey <tromey@redhat.com>
3600
3601 * probe.c (info_probes_for_ops): Make "arg" const.
3602 * probe.h (info_probes_for_ops): Update.
3603
3977b71f
TT
36042014-06-18 Tom Tromey <tromey@redhat.com>
3605
3606 * varobj.c (varobj_create): Update.
3607 * valops.c (value_of_this): Update.
3608 * tracepoint.c (add_local_symbols, scope_info): Update.
3609 * symtab.h (struct general_symbol_info) <block>: Now const.
3610 * symtab.c (skip_prologue_sal)
3611 (default_make_symbol_completion_list_break_on)
3612 (skip_prologue_using_sal): Update.
3613 * stack.h (iterate_over_block_locals)
3614 (iterate_over_block_local_vars): Update.
3615 * stack.c (print_frame_args): Update.
3616 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3617 parameter const.
3618 (get_selected_block): Make return type const.
3619 * python/py-frame.c (frapy_block): Update.
3620 * python/py-block.c (gdbpy_block_for_pc): Update.
3621 * p-exp.y (%union) <bval>: Now const.
3622 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3623 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3624 * m2-exp.y (%union) <bval>: Now const.
3625 * linespec.c (get_current_search_block): Make return type const.
3626 (create_sals_line_offset, find_label_symbols): Update.
3627 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3628 Update.
3629 (block_starting_point_at): Make "block" const.
3630 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3631 (check_exception_resume): Update.
3632 * guile/scm-frame.c (gdbscm_frame_block): Update.
3633 * guile/scm-block.c (gdbscm_lookup_block): Update.
3634 * frame.h (get_frame_block): Update.
3635 (get_selected_block): Make return type const.
3636 * frame.c (frame_id_inner): Update.
3637 * f-valprint.c (info_common_command_for_block)
3638 (info_common_command): Update.
3639 * dwarf2loc.c (dwarf2_find_location_expression)
3640 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3641 (locexpr_describe_location_piece): Update.
3642 * c-exp.y (%union) <bval>: Now const.
3643 * breakpoint.c (resolve_sal_pc): Update.
3644 * blockframe.c (get_frame_block):Make return type const.
3645 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3646 (block_innermost_frame): Update.
3647 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3648 (block_for_pc, block_for_pc_sect): Update.
3649 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3650 'pblock' const.
3651 (block_for_pc_sect, block_for_pc): Make return type const.
3652 * ax-gdb.c (gen_expr): Update.
3653 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3654 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3655 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3656 (ada_read_var_value): Update.
3657 * ada-exp.y (struct name_info) <block>: Now const.
3658 (%union): Likewise.
3659 (block_lookup): Constify.
3660
b9228891
GB
36612014-06-18 Gary Benson <gbenson@redhat.com>
3662
3663 * nat/i386-dregs.h: New file.
3664 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3665 * i386-nat.h (i386-dregs.h): New include.
3666 (DR_FIRSTADDR): Now in i386-dregs.h.
3667 (DR_LASTADDR): Likewise.
3668 (DR_NADDR): Likewise.
3669 (DR_STATUS): Likewise.
3670 (DR_CONTROL): Likewise.
3671 (i386_debug_reg_state): Likewise.
3672 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3673
a1aa2221
LM
36742014-06-18 Don Breazeal <donb@codesourcery.com>
3675
3676 * breakpoint.c (set_longjmp_breakpoint): Call
3677 momentary_breakpoint_from_master with additional argument.
3678 (set_longjmp_breakpoint_for_call_dummy): Call
3679 momentary_breakpoint_from_master with additional argument.
3680 (set_std_terminate_breakpoint): Call
3681 momentary_breakpoint_from_master with additional argument.
3682 (momentary_breakpoint_from_master): Add argument to function
3683 definition and use it to initialize structure member flag.
74228e77 3684 (clone_momentary_breakpoint): Call
a1aa2221
LM
3685 momentary_breakpoint_from_master with additional argument.
3686 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3687 member flags set in momentary_breakpoint_from_master.
3688
4be83cc2
GB
36892014-06-18 Gary Benson <gbenson@redhat.com>
3690
3691 * i386-nat.c (i386_show_dr): Renamed to
3692 i386_dr_show and made nonstatic. All uses updated.
3693 (i386_length_and_rw_bits): Renamed to
3694 i386_dr_length_and_rw_bits and made nonstatic.
3695 All uses updated.
3696 (i386_insert_aligned_watchpoint): Renamed to
3697 i386_dr_insert_aligned_watchpoint and made nonstatic.
3698 All uses updated.
3699 (i386_remove_aligned_watchpoint): Renamed to
3700 i386_dr_remove_aligned_watchpoint and made nonstatic.
3701 All uses updated.
3702 (i386_update_inferior_debug_regs): Renamed to
3703 i386_dr_update_inferior_debug_regs and made nonstatic.
3704 All uses updated.
3705
131aa0d4
GB
37062014-06-18 Gary Benson <gbenson@redhat.com>
3707
3708 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3709 (i386_dr_low_can_set_control): Likewise.
3710 (i386_dr_low_set_addr): Likewise.
3711 (i386_dr_low_set_control): Likewise.
3712 (i386_dr_low_get_addr): Likewise.
3713 (i386_dr_low_get_status): Likewise.
3714 (i386_dr_low_get_control): Likewise.
3715 (i386_insert_aligned_watchpoint): Use new macros.
3716 (i386_update_inferior_debug_regs): Likewise.
3717 (i386_stopped_data_address): Likewise.
3718
d9305f7f
GB
37192014-06-18 Gary Benson <gbenson@redhat.com>
3720
3721 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3722 New parameter. All uses updated.
3723
ea008da4
GB
37242014-06-18 Gary Benson <gbenson@redhat.com>
3725
3726 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3727 All uses updated.
3728
1b6d4134
GB
37292014-06-18 Gary Benson <gbenson@redhat.com>
3730
3731 * i386-nat.c (debug_printf): New macro.
3732 (i386_get_debug_register_length): Likewise.
3733 (TARGET_HAS_DR_LEN_8): Use above macro.
3734 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3735 and printf_unfiltered. Use phex to format values.
3736
9b4550ef
GB
37372014-06-18 Gary Benson <gbenson@redhat.com>
3738
3739 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3740 Make const.
3741
6e62758f
GB
37422014-06-18 Gary Benson <gbenson@redhat.com>
3743
3744 * i386-nat.c: Comment changes.
3745
51c79e94
GB
37462014-06-18 Gary Benson <gbenson@redhat.com>
3747
3748 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3749
3e11889a
GB
37502014-06-18 Gary Benson <gbenson@redhat.com>
3751
3752 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3753 (i386_insert_aligned_watchpoint): Likewise.
3754 (i386_remove_aligned_watchpoint): Likewise.
3755 (i386_handle_nonaligned_watchpoint): Likewise.
3756
fc6e2f03
GB
37572014-06-18 Gary Benson <gbenson@redhat.com>
3758
3759 * i386-nat.c: Whitespace changes.
3760
2afe7d50
SB
37612014-06-17 Samuel Bronson <naesten@gmail.com>
3762
3763 * MAINTAINERS: Update Roland McGrath's email address.
3764 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3765 Red Hat a while ago, and giving me a current address.
2afe7d50 3766
3bca49ee
TT
37672014-06-17 Tom Tromey <tromey@redhat.com>
3768
3769 * utils.h (savestring): Remove declaration.
3770
6e366df1
TT
37712014-06-17 Tom Tromey <tromey@redhat.com>
3772
3773 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3774
6be47f0c
KS
37752014-06-16 Keith Seitz <keiths@redhat.com>
3776
3777 PR mi/15863
3778 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3779 to update the varobj if inferior_ptid is null_ptid.
3780
7bc112c1
TT
37812014-06-16 Tom Tromey <tromey@redhat.com>
3782
3783 * target.h (struct target_ops) <to_info_proc>: Make parameter
3784 const.
3785 (target_info_proc): Update.
3786 * target.c (target_info_proc): Make "args" const.
3787 * procfs.c (procfs_info_proc): Update.
3788 * linux-tdep.c (linux_info_proc): Update.
3789 (linux_core_info_proc_mappings): Make "args" const.
3790 (linux_core_info_proc): Update.
3791 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3792 * gdbarch.c: Rebuild.
3793 * gdbarch.h: Rebuild.
3794 * corelow.c (core_info_proc): Update.
3795
fee354ee
TT
37962014-06-16 Tom Tromey <tromey@redhat.com>
3797
3798 * target.h (struct target_ops) <to_disconnect>: Make parameter
3799 const.
3800 (target_disconnect): Update.
3801 * target.c (target_disconnect): Make "args" const.
3802 * target-delegates.c: Rebuild.
3803 * remote.c (remote_disconnect): Update.
3804 * record.h (record_disconnect): Update.
3805 * record.c (record_disconnect): Update.
3806 * inf-child.c (inf_child_disconnect): Update.
3807
a30bf1f1
TT
38082014-06-16 Tom Tromey <tromey@redhat.com>
3809
3810 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3811 * target.c (debug_to_rcmd, default_rcmd): Update.
3812 * target-delegates.c: Rebuild.
3813 * remote.c (remote_rcmd): Update.
3814 * monitor.c (monitor_rcmd): Update.
3815
d03de421
PA
38162014-06-16 Pedro Alves <palves@redhat.com>
3817
3818 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3819 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3820 have OBJF_SHARED set.
3821 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3822 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3823 instead of OBJF_USERLOADED.
3824 * objfiles.h (OBJF_SHARED): Update comment.
3825 (userloaded_objfile_contains_address_p): Rename to ...
3826 (shared_objfile_contains_address_p): ... this, and update
3827 comments.
3828 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3829 new objfile.
3830 (remove_symbol_file_command): Skip objfiles that don't have
3831 OBJF_SHARED set.
3832
99f4262f
TT
38332014-06-16 Tom Tromey <tromey@redhat.com>
3834
3835 * minsyms.h (prim_record_minimal_symbol)
3836 (prim_record_minimal_symbol_and_info): Update comments.
3837
97d66cc6
EZ
38382014-06-14 Eli Zaretskii <eliz@gnu.org>
3839
3840 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3841 or --without-guile, according to how GDB was built.
3842
635c7e8a
TT
38432014-06-13 Tom Tromey <tromey@redhat.com>
3844
3845 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3846 to help_list.
3847 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3848 to help_list.
3849 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3850 help_list.
3851 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3852 help_list.Pass all_commands, not -1, to help_list.
3853 * cli/cli-dump.c (dump_command, append_command)
3854 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3855 (binary_dump_command, binary_append_command): Pass all_commands,
3856 not -1, to help_list.
3857 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3858 -1, to help_list.
3859 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3860 -1, to help_list.
3861 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3862 help_list.
3863 * top.c (set_history): Pass all_commands, not -1, to help_list.
3864 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3865 all_commands, not -1, to help_list.
3866 * symfile.c (overlay_command): Pass all_commands, not -1, to
3867 help_list.
3868 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3869 help_list.
3870 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3871 help_list.
3872 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3873 -1, to help_list.
3874 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3875 not -1, to help_list.
3876 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3877 not -1, to help_list.
3878 * maint.c (maintenance_command, maintenance_info_command)
3879 (maintenance_print_command, maintenance_set_cmd): Pass
3880 all_commands, not -1, to help_list.
3881 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3882 help_list.
3883 * language.c (set_check): Pass all_commands, not -1, to help_list.
3884 * infcmd.c (unset_command): Pass all_commands, not -1, to
3885 help_list.
3886 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3887 help_list.
3888 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3889 help_list.
3890 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3891 help_list.
3892 * breakpoint.c (save_command): Pass all_commands, not -1, to
3893 help_list.
3894 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3895 all_commands, not -1, to help_list.
3896
b94ade42
PL
38972014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3898
3899 * regcache.c (struct register_to_invalidate): New structure.
3900 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3901 functions.
3902 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3903
31f628ae
YQ
39042014-06-12 Yao Qi <yao@codesourcery.com>
3905
3906 * varobj.c (varobj_get_num_children): Call
3907 varobj_is_dynamic_p.
3908 (varobj_list_children): Likewise.
3909 (varobj_update): Likewise. Update comments.
3910
cde5ef40
YQ
39112014-06-12 Yao Qi <yao@codesourcery.com>
3912
3913 * varobj.c (varobj_pretty_printed_p): Rename to ...
3914 (varobj_is_dynamic_p): ... this. New function.
3915 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3916 (varobj_is_dynamic_p): Declare.
3917 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3918 (mi_print_value_p, varobj_update_one): Likewise.
3919
576ea091
YQ
39202014-06-12 Pedro Alves <pedro@codesourcery.com>
3921 Yao Qi <yao@codesourcery.com>
3922
3923 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3924 (varobj_get_iterator): Wrap up code for pretty-printer by
3925 "#if HAVE_PYTHON" and "#endif".
3926 (update_dynamic_varobj_children): Likewise.
3927
827f100c
YQ
39282014-06-12 Pedro Alves <pedro@codesourcery.com>
3929 Yao Qi <yao@codesourcery.com>
3930
3931 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3932 gdb_python_initialized is false. Move some code from varobj.c.
3933 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3934 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3935 (struct varobj_item): Moved to varobj-iter.h".
3936 (varobj_clear_saved_item): New function.
3937 (update_dynamic_varobj_children): Move python-related code to
3938 py-varobj.c.
3939 (free_variable): Call varobj_clear_saved_item and
3940 varobj_iter_delete.
3941
e5250216
YQ
39422014-06-12 Pedro Alves <pedro@codesourcery.com>
3943 Yao Qi <yao@codesourcery.com>
3944
3945 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3946 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3947 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3948 (py-varobj.o): New rule.
3949 * python/py-varobj.c: New file.
3950 * python/python-internal.h (py_varobj_get_iterator): Declare.
3951 * varobj-iter.h: New file.
3952 * varobj.c: Include "varobj-iter.h"
3953 (struct varobj) <child_iter>: Change its type from "PyObject *"
3954 to "struct varobj_iter *".
3955 <saved_item>: Likewise.
3956 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3957 [HAVE_PYTHON] (varobj_get_iterator): New function.
3958 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3959 python-specific code to python/py-varobj.c.
3960 (install_visualizer): Call varobj_iter_delete instead of
3961 Py_XDECREF.
3962 * varobj.h (varobj_ensure_python_env): Declare.
3963
5a2e0d6e
YQ
39642014-06-12 Yao Qi <yao@codesourcery.com>
3965
3966 * varobj.c (struct varobj_item): New structure.
3967 (create_child_with_value): Update declaration.
3968 (varobj_add_child): Replace arguments 'name' and 'value' with
3969 'item'. All callers updated.
3970 (install_dynamic_child): Likewise.
3971 (update_dynamic_varobj_children): Likewise.
3972 (varobj_add_child): Likewise.
3973 (create_child_with_value): Likewise.
3974
919b9a93
JB
39752014-06-11 Joel Brobecker <brobecker@adacore.com>
3976
3977 * NEWS: Create a new section for the next release branch.
3978 Rename the section of the current branch, now that it has
3979 been cut.
3980
71a55bdf
JB
39812014-06-11 Joel Brobecker <brobecker@adacore.com>
3982
3983 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3984 * version.in: Bump version to 7.8.50.DATE-cvs.
3985
364fe1f7
PA
39862014-06-11 Pedro Alves <palves@redhat.com>
3987
3988 PR remote/17028
3989 * ser-mingw.c (net_windows_socket_check_pending): New function.
3990 (net_windows_select_thread): Ignore spurious wakeups. Use
3991 net_windows_socket_check_pending.
3992 (net_windows_wait_handle): Check for pending events with
3993 ioctlsocket, through net_windows_socket_check_pending, instead of
3994 checking the socket's event.
3995
5a6c7709
SC
39962014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3997
3998 * python/python-internal.h (gdb_PyObject_GetAttrString)
3999 (gdb_PyObject_HasAttrString): New inline function definitions.
4000 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4001 char * of the second argument to PyObject_GetAttrString.
74228e77 4002
0e58ee40
JB
40032014-06-10 Joel Brobecker <brobecker@adacore.com>
4004
4005 * serial.c (serial_write): Fix index of character to be printed
4006 in call to serial_logchar when serial debug traces are enabled.
4007
d190df30
JB
40082014-06-10 Joel Brobecker <brobecker@adacore.com>
4009
4010 * gdbtypes (resolve_dynamic_range): Add function description.
4011
b4b01d36
PA
40122014-06-09 Pedro Alves <palves@redhat.com>
4013
4014 * linux-nat.c (linux_child_follow_fork): Initialize status with
4015 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4016 inner block. Only pass the signal to PTRACE_DETACH if in pass
4017 state.
4018
3657956b
GB
40192014-06-09 Gary Benson <gbenson@redhat.com>
4020
4021 * common/signals.c (gdb_signal_from_host): Reorder to separate
4022 the always-available ANSI-standard signals from the signals that
4023 require checking.
4024 (do_gdb_signal_to_host): Likewise.
4025 * proc-events.c (signal_table): Likewise.
4026
c077881a
HZ
40272014-06-08 Hui Zhu <hui@codesourcery.com>
4028
4029 * common/linux-ptrace.c (linux_disable_event_reporting): New
4030 function.
4031 * common/linux-ptrace.h (linux_disable_event_reporting): New
4032 declaration.
4033 * linux-nat.c (linux_child_follow_fork): Do a single step before
4034 detach.
4035
4186eb54
KS
40362014-06-07 Keith Seitz <keiths@redhat.com>
4037
4038 Revert:
4039 PR c++/16253
4040 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4041 from symbol_matches_domain in symtab.c. All local callers
4042 of symbol_matches_domain updated.
4043 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4044 search STRUCT_DOMAIN.
4045 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4046 independently. standard_lookup will do that automatically.
4047 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4048 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4049 (cp_lookup_symbol_in_namespace): Likewise.
4050 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4051 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4052 may return a STRUCT_DOMAIN match.
4053 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4054 * cp-support.c: Include language.h.
4055 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4056 VAR_DOMAIN.
4057 * psymtab.c (match_partial_symbol): Compare the requested
4058 domain with the symbol's domain directly.
4059 (lookup_partial_symbol): Likewise.
4060 * symtab.c (lookup_symbol_in_language): Explain when/why
4061 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4062 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4063 appropriate languages.
4064 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4065 and moved to ada-lang.c
4066 (lookup_block_symbol): Explain that this function only returns
4067 symbol matching the requested DOMAIN.
4068 Compare the requested domain with the symbol's domain directly.
4069 (iterate_over_symbols): Compare the requested domain with the
4070 symbol's domain directly.
4071 * symtab.h (symbol_matches_domain): Remove.
4072
25326a28 40732014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4074
4075 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4076 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4077 (gdbscm_guile_version_is_at_least): Declare.
4078 (gdbscm_scm_string_to_int): Declare.
4079 * guile/guile.c (gdbscm_guile_major_version): New global.
4080 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4081 (guile_datadir): New static global.
4082 (gdbscm_guile_data_directory): New function.
4083 (initialize_scheme_side): Update.
4084 (misc_guile_functions): Add guile-data-directory.
4085 (initialize_gdb_module): Fetch guile version number.
4086 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4087 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4088 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4089 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4090 comments.
4091 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4092 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4093 * guile/scm-value.c (gdbscm_value_to_string): Only call
4094 scm_port_conversion_strategy if Guile version >= 2.0.6.
4095
0a770bb2 40962014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4097
4098 * main.c (print_gdb_help): Add -q and --silent.
4099
73ba372c
GB
41002014-06-06 Gary Benson <gbenson@redhat.com>
4101
4102 * common/signals.c: Remove preprocessor conditionals for
4103 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4104 SIGSEGV and SIGTERM.
4105 * proc-events.c: Likewise.
4106
c33b2f12
MM
41072014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4108
4109 * symfile.c (symfile_free_objfile): Remove restriction to
4110 OBJF_USERLOADED.
4111 * symfile-mem.c (symbol_file_add_from_memory): Call
4112 add_target_sections_of_objfile.
4113
fb934770
LC
41142014-06-05 Ludovic Courtès <ludo@gnu.org>
4115
4116 * guile/scm-value.c (gdbscm_history_append_x): Use
4117 'vlscm_get_value_smob_arg_unsafe' instead of
4118 'vlscm_scm_to_value'.
4119
6ef284bd
SM
41202014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4121
4122 PR mi/15806
4123 * utils.c (printchar): Don't escape at all if quoter is NUL.
4124 Update function documentation to clarify effect of parameter
4125 QUOTER.
4126 * remote.c (escape_buffer): Pass '\\' as the quoter to
4127 fputstrn_unfiltered.
4128 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4129 generate the output.
4130 (mi_solib_unloaded): Same.
4131
270c9937
JB
41322014-06-05 Joel Brobecker <brobecker@adacore.com>
4133
4134 * development.sh: Delete.
4135 * Makefile.in (config.status): Adjust dependency on development.sh.
4136 * configure.ac: Adjust development.sh source call.
4137 * configure: Regenerate.
4138
16f691fb
DE
41392014-06-04 Doug Evans <xdje42@gmail.com>
4140
4141 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4142 is_scheme_bkpt, spec.
4143 (bpscm_make_breakpoint_smob): Initialize new members.
4144 (gdbscm_create_breakpoint_x): Split into two ...
4145 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4146 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4147 (scheme_function breakpoint_functions): Update.
4148 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4149 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4150 register-breakpoint!.
4151
ef7cab6b
JB
41522014-06-04 Joel Brobecker <brobecker@adacorer.com>
4153
4154 PR server/17023
4155 * mem-break.c (z_type_supported): Return zero if
4156 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4157
012370f6
TT
41582014-06-04 Tom Tromey <tromey@redhat.com>
4159
4160 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4161 value_from_contents_and_address_unresolved.
4162 (ada_template_to_fixed_record_type_1): Likewise.
4163 (ada_which_variant_applies): Likewise.
4164 * value.h (value_from_contents_and_address_unresolved): Declare.
4165 * value.c (value_from_contents_and_address_unresolved): New
4166 function.
4167 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4168 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4169 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4170
92e2a17f
TT
41712014-06-04 Tom Tromey <tromey@redhat.com>
4172
4173 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4174
c0939df1
TT
41752014-06-04 Tom Tromey <tromey@redhat.com>
4176
4177 * procfs.c (procfs_attach): Make "args" const.
4178 * windows-nat.c (windows_attach): Make "args" const.
4179 * nto-procfs.c (procfs_attach): Make "args" const.
4180 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4181 * go32-nat.c (go32_attach): Make "args" const.
4182 * gnu-nat.c (gnu_attach): Make "args" const.
4183 * darwin-nat.c (darwin_attach): Make "args" const.
4184 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4185 * linux-nat.c (linux_nat_attach): Make "args" const.
4186 * remote.c (extended_remote_attach_1, extended_remote_attach):
4187 Make "args" const.
4188 * target.h (struct target_ops) <to_attach>: Make "args" const.
4189 (find_default_attach): Likewise.
4190 * utils.c (parse_pid_to_attach): Make "args" const.
4191 * utils.h (parse_pid_to_attach): Update.
4192
8eaff7cd
TT
41932014-06-04 Tom Tromey <tromey@redhat.com>
4194
4195 * target-delegates.c: Rebuild.
4196 * target.c (default_thread_address_space): New function.
4197 (target_thread_address_space): Simplify.
4198 * target.h (struct target_ops) <to_thread_address_space>: Add
4199 TARGET_DEFAULT_FUNC.
4200
1913f160
DE
42012014-06-04 Doug Evans <xdje42@gmail.com>
4202
4203 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4204
70ad5bff
MM
42052014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4206
4207 * record-btrace.c: Include event-loop.h and inf-loop.h.
4208 (record_btrace_resume_exec_dir)
4209 (record_btrace_async_inferior_event_handler)
4210 (record_btrace_handle_async_inferior_event): New.
4211 (record_btrace_open): Create async event handler.
4212 (record_btrace_close): Delete async event handler.
4213 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4214 Mark async event handler.
4215 (record_btrace_execution_direction): New.
4216 (init_record_btrace_ops): Initialize to_execution_direction.
4217
b6210538
DE
42182014-06-03 Doug Evans <xdje42@gmail.com>
4219
4220 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4221 (gdbscm_make_parameter): Ditto.
4222
a5b1fd27
DE
42232014-06-03 Doug Evans <dje@google.com>
4224
4225 * exec.c (exec_close_1): Call clear_section_table instead of
4226 resize_section_table.
4227 (clear_section_table): New function.
4228 (resize_section_table): Make static. Rename arg num_added to
4229 adjustment.
4230 * exec.h (clear_section_table): Declare.
4231 (resize_section_table): Delete.
4232 * progspace.c (release_program_space): Call clear_section_table
4233 instead of resize_section_table.
4234
0c6e92a5
SC
42352014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4236
4237 * NEWS (Python Scripting): Add entry about the new xmethods
4238 feature.
4239
883964a7
SC
42402014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4241
4242 * python/py-xmethods.c: New file.
4243 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4244 (objfpy_dealloc): XDECREF on the new xmethods field.
4245 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4246 field.
4247 (objfpy_get_xmethods): New function.
4248 (objfile_getset): New entry 'xmethods'.
4249 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4250 (pspy_dealloc): XDECREF on the new xmethods field.
4251 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4252 field.
4253 (pspy_get_xmethods): New function.
4254 (pspace_getset): New entry 'xmethods'.
4255 * python/python-internal.h: Add declarations for new functions.
4256 * python/python.c (_initialize_python): Invoke
4257 gdbpy_initialize_xmethods.
4258 * python/lib/gdb/__init__.py (xmethods): New
4259 attribute.
4260 * python/lib/gdb/xmethod.py: New file.
4261 * python/lib/gdb/command/xmethods.py: New file.
4262
58992dc5
SC
42632014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4264
4265 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4266 best match method returned by find_overload_match is an xmethod.
4267 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4268 the best matching operator returned by find_overload_match is an
4269 xmethod.
4270 * valops.c: #include "extension.h".
4271 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4272 Return void. The list of matching source methods is returned in
4273 "fn_list" and a vector of matching debug method workers is
4274 returned in "xm_worker_vec". Update all callers.
4275 (value_find_oload_method_list): Likewise.
4276 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4277 non-NULL, then the index of the best matching method in this
4278 vector is returned. Update all callers.
4279 (find_overload_match): Include xmethods while performing overload
4280 resolution.
4281
e81e7f5e
SC
42822014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4283
4284 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4285 * extension-priv.h (struct extension_language_ops): Add the
4286 xmethod interface.
4287 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4288 get_matching_xmethod_workers, get_xmethod_argtypes,
4289 invoke_xmethod, free_xmethod_worker,
4290 free_xmethod_worker_vec): New functions.
4291 * extension.h: #include "common/vec.h".
4292 New function declarations.
4293 (struct xmethod_worker): New struct.
4294 (VEC (xmethod_worker_ptr)): New vector type.
4295 (xmethod_worker_ptr): New typedef.
4296 (xmethod_worker_vec): Likewise.
4297 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4298 builtin_type.
4299 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4300 (struct builtin_type): New field "xmethod".
4301 * valarith.c (value_ptradd): Assert that the value argument is not
4302 lval_xcallable.
4303 * valops.c (value_must_coerce_to_target): Return 0 for
4304 lval_xcallable values.
4305 * value.c (struct value): New field XM_WORKER in the field
4306 LOCATION.
4307 (value_address, value_raw_address): Return 0 for lval_xcallable
4308 values.
4309 (set_value_address): Assert that the value is not an
4310 lval_xcallable.
4311 (value_free): Free the associated xmethod worker when freeing
4312 lval_xcallable values.
4313 (set_value_component_location): Assert that the WHOLE value is not
4314 lval_xcallable.
4315 (value_of_xmethod, call_xmethod): New functions.
4316 * value.h: Declare "struct xmethod_worker".
4317 Declare new functions value_of_xmethod, call_xmethod.
4318
ef370185
JB
43192014-06-03 Joel Brobecker <brobecker@adacore.com>
4320 Pedro Alves <palves@redhat.com>
4321
4322 PR breakpoints/17000
4323 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4324 New function, extracted from software_breakpoint_inserted_here_p.
4325 (software_breakpoint_inserted_here_p): Replace factored out code
4326 by call to find_non_raw_software_breakpoint_inserted_here.
4327 (bp_target_info_copy_insertion_state): New function.
4328 (bkpt_insert_location): Handle the case of a single-step
4329 breakpoint already inserted at the same address.
4330 (bkpt_remove_location): Handle the case of a single-step
4331 breakpoint still inserted at the same address.
4332 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4333 breakpoint already inserted at the same address.
4334 (deprecated_remove_raw_breakpoint): Handle the case of a
4335 non-raw breakpoint still inserted at the same address.
4336 (find_single_step_breakpoint): New function, extracted from
4337 single_step_breakpoint_inserted_here_p.
4338 (find_single_step_breakpoint): New function,
4339 factored out from single_step_breakpoint_inserted_here_p.
4340 (single_step_breakpoint_inserted_here_p): Reimplement.
4341
1e2ccb61
BM
43422014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4343
4344 Pushed by Joel Brobecker <brobecker@adacore.com>
4345 * source.c (show_substitute_path_command): Fix display of matching
4346 substitution rules.
4347
d3448d85
GB
43482014-06-03 Gary Benson <gbenson@redhat.com>
4349
4350 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4351
06eb1586
DE
43522014-06-02 Doug Evans <xdje42@gmail.com>
4353
4354 Add parameter support for Guile.
4355 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4356 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4357 (scm-param.o): New rule.
4358 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4359 (gdbscm_misc_error): Declare.
4360 (gdbscm_canonicalize_command_name): Declare.
4361 (gdbscm_scm_to_host_string): Declare.
4362 (gdbscm_scm_from_host_string): Declare.
4363 (gdbscm_initialize_parameters): Declare.
4364 * guile/guile.c (initialize_gdb_module): Call
4365 gdbscm_initialize_parameters.
4366 * guile/lib/gdb.scm: Export parameter symbols.
4367 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4368 cmdscm_canonicalize_name and made public. All callers updated.
4369 * guile/scm-exception.c (gdbscm_misc_error): New function.
4370 * guile/scm-param.c: New file.
4371 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4372 (gdbscm_scm_to_host_string): New function.
4373 (gdbscm_scm_from_host_string): New function.
4374 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4375
e698b8c4
DE
43762014-06-02 Doug Evans <xdje42@gmail.com>
4377
4378 Add command support for Guile.
4379 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4380 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4381 (scm-cmd.o): New rule.
4382 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4383 (gdbscm_user_error_p): Declare.
4384 (gdbscm_parse_command_name): Declare.
4385 (gdbscm_valid_command_class_p): Declare.
4386 (gdbscm_initialize_commands): Declare.
4387 * guile/guile.c (initialize_gdb_module): Call
4388 gdbscm_initialize_commands.
4389 * guile/lib/gdb.scm: Export command symbols.
4390 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4391 (throw-user-error): New function.
4392 * guile/scm-cmd.c: New file.
4393 * guile/scm-exception.c (user_error_symbol): New static global.
4394 (gdbscm_user_error_p): New function.
4395 (gdbscm_initialize_exceptions): Set user_error_symbol.
4396 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4397
fb1f94b0
PM
43982014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4399
4400 * top.c (command_loop): Handle comments here...
4401 (command_line_input): ... not here.
4402
ded03782
DE
44032014-06-02 Doug Evans <xdje42@gmail.com>
4404
4405 Add progspace support for Guile.
4406 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4407 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4408 (scm-progspace.o): New rule.
4409 * guile/guile-internal.h (pspace_smob): New typedef.
4410 (psscm_pspace_smob_pretty_printers): Declare.
4411 (psscm_pspace_smob_from_pspace): Declare.
4412 (psscm_scm_from_pspace): Declare.
4413 * guile/guile.c (initialize_gdb_module): Call
4414 gdbscm_initialize_pspaces.
4415 * guile/lib/gdb.scm: Export progspace symbols.
4416 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4417 support.
4418 (append-pretty-printer!): Ditto.
4419 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4420 Implement.
4421 * guile/scm-progspace.c: New file.
4422
397998fc
AM
44232014-06-03 Alan Modra <amodra@gmail.com>
4424
4425 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4426 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4427
6aa5f3a6
DE
44282014-06-02 Doug Evans <dje@google.com>
4429
4430 Add support for skeletonless type units.
4431 * dwarf2read.c (struct dwarf2_per_objfile): New member
4432 n_allocated_type_units.
4433 (struct dwarf2_per_objfile) <tu_stats>: New member
4434 nr_all_type_units_reallocs.
4435 (create_signatured_type_table_from_index): Initialize
4436 n_allocated_type_units
4437 (create_all_type_units): Ditto.
4438 (add_type_unit): Move up in file. New arg slot.
4439 All callers updated. Increase space for all_type_units more
4440 efficiently.
4441 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4442 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4443 (lookup_dwp_signatured_type): Ditto.
4444 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4445 All callers updated.
4446 (build_type_psymtabs_1): Leave type_unit_groups as
4447 NULL if no TUs present.
4448 (print_tu_stats): New function.
4449 (process_skeletonless_type_unit): New function.
4450 (process_dwo_file_for_skeletonless_type_units): New
4451 function.
4452 (process_skeletonless_type_units): New function.
4453 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4454 Call print tu_stats if debugging enabled.
4455
41fac0cf
PA
44562014-06-02 Pedro Alves <palves@redhat.com>
4457
4458 * breakpoint.c (build_target_command_list): Don't build a command
4459 list if we have any duplicate location that isn't a dprintf.
4460
cd1608cc
PA
44612014-06-02 Pedro Alves <palves@redhat.com>
4462
4463 * breakpoint.c (dprintf_breakpoint_hit): New function.
4464 (initialize_breakpoint_ops): Install it as dprintf's
4465 breakpoint_hit method.
4466
486ef3b9
JB
44672014-06-02 Joel Brobecker <brobecker@adacore.com>
4468
4469 * source.c (substitute_path_rule_matches): Simplify using
4470 filename_ncmp instead of FILENAME_CMP.
4471
230cd560
JB
44722014-06-02 Joel Brobecker <brobecker@adacore.com>
4473
4474 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4475
16954d5d
LC
44762014-06-01 Ludovic Courtès <ludo@gnu.org>
4477
4478 * configure.ac: When Guile is available, check for the
4479 availability of 'scm_new_smob'.
4480 * configure, config.h.in: Regenerate.
4481 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4482 function.
4483
53e8a631
AB
44842014-05-30 Andrew Burgess <aburgess@broadcom.com>
4485
4486 * frame.c (struct frame_info): Add stop_string field.
4487 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4488 (get_prev_frame_always): Old content moved into
4489 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4490 TRY_CATCH, handle MEMORY_ERROR exceptions.
4491 (frame_stop_reason_string): New function definition.
4492 * frame.h (unwind_stop_reason_to_string): Extend comment to
4493 mention frame_stop_reason_string.
4494 (frame_stop_reason_string): New function declaration.
4495 * stack.c (frame_info): Switch to frame_stop_reason_string.
4496 (backtrace_command_1): Switch to frame_stop_reason_string.
4497 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4498 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4499 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4500
70e38b8e
AB
45012014-05-30 Andrew Burgess <aburgess@broadcom.com>
4502
4503 * frame.c (frame_stop_reason_string): Rename to ...
4504 (unwind_stop_reason_to_string): this.
4505 * frame.h (frame_stop_reason_string): Rename to ...
4506 (unwind_stop_reason_to_string): this.
4507 * stack.c (frame_info): Update call to frame_stop_reason_string.
4508 (backtrace_command_1): Likewise.
4509 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4510 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4511
938f0e2f
AB
45122014-05-30 Andrew Burgess <aburgess@broadcom.com>
4513
4514 * frame.c (remove_prev_frame): New function.
4515 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4516 remove_prev_frame.
4517
a09dd441
PA
45182014-05-29 Pedro Alves <palves@redhat.com>
4519
4520 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4521 and make it const. When a single-step decays to a continue,
4522 clear 'step', not 'hw_step'. Pass whether the caller wanted
4523 to step to user_visible_resume_ptid, not what we ask the
4524 target to do.
4525
bdc36728
PA
45262014-05-29 Pedro Alves <palves@redhat.com>
4527
4528 * infrun.c (process_event_stop_test, handle_step_into_function)
4529 (handle_step_into_function_backward): Adjust.
4530 Don't set the even thread's stop_step and call stop_waiting before
4531 calling end_stepping_range. Instead do that ...
4532 (end_stepping_range): ... here. Take an ecs pointer parameter.
4533
22bcd14b
PA
45342014-05-29 Pedro Alves <palves@redhat.com>
4535
4536 * infrun.c (stop_stepping): Rename to ...
4537 (stop_waiting): ... this.
4538 (proceed): Update comment.
4539 (process_event_stop_test, handle_inferior_event)
4540 (handle_signal_stop, handle_step_into_function)
4541 (handle_step_into_function_backward): Update.
4542
4ae57c05
PA
45432014-05-29 Pedro Alves <palves@redhat.com>
4544
4545 * infcall.c (run_inferior_call): Don't check whether the current
4546 thread is running after the proceed call.
4547
329ea579
PA
45482014-05-29 Pedro Alves <palves@redhat.com>
4549 Tom Tromey <tromey@redhat.com>
4550
4551 * NEWS: Mention "maint set target-async", "set mi-async", and that
4552 background execution commands are now always available.
4553 * target.h (target_async_permitted): Update comment.
4554 * target.c (target_async_permitted, target_async_permitted_1):
4555 Default to 1.
4556 (set_target_async_command): Rename to ...
4557 (maint_set_target_async_command): ... this.
4558 (show_target_async_command): Rename to ...
4559 (maint_show_target_async_command): ... this.
4560 (_initialize_target): Adjust.
4561 * infcmd.c (prepare_execution_command): Make extern.
4562 * inferior.h (prepare_execution_command): Declare.
4563 * infrun.c (set_observer_mode): Leave target async alone.
4564 * mi/mi-interp.c (mi_interpreter_init): Install
4565 mi_on_sync_execution_done as sync_execution_done observer.
4566 (mi_on_sync_execution_done): New function.
4567 (mi_execute_command_input_handler): Don't print the prompt if we
4568 just started a synchronous command with an async target.
4569 (mi_on_resume): Check sync_execution before printing prompt.
4570 * mi/mi-main.h (mi_async_p): Declare.
4571 * mi/mi-main.c: Include gdbcmd.h.
4572 (mi_async_p): New function.
4573 (mi_async, mi_async_1): New globals.
4574 (set_mi_async_command, show_mi_async_command, mi_async): New
4575 functions.
4576 (exec_continue): Call prepare_execution_command.
4577 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4578 (mi_execute_async_cli_command): Use mi_async_p.
4579 (_initialize_mi_main): Install "set mi-async". Make
4580 "target-async" a deprecated alias.
4581
92bcb5f9
PA
45822014-05-29 Pedro Alves <palves@redhat.com>
4583
4584 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4585 (_initialize_cli_interp): Adjust.
4586 * event-loop.c: Include "observer.h".
4587 (start_event_loop): Notify 'command_error' observers instead of
4588 calling display_gdb_prompt. Remove FIXME comment.
4589 * event-top.c (display_gdb_prompt): Remove call into the
4590 interpreters.
4591 * inf-loop.c: Include "observer.h".
4592 (inferior_event_handler): Notify 'command_error' observers instead
4593 of calling display_gdb_prompt.
4594 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4595 observers instead of calling display_gdb_prompt.
4596 * interps.c (interp_set): Don't call display_gdb_prompt.
4597 (current_interp_display_prompt_p): Delete.
4598 * interps.h (interp_prompt_p): Delete declaration.
4599 (interp_prompt_p_ftype): Delete.
4600 (struct interp_procs) <prompt_proc_p>: Delete field.
4601 (current_interp_display_prompt_p): Delete declaration.
4602 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4603 (_initialize_mi_interp): Adjust.
4604 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4605 'command_error' observers.
4606 (tui_on_sync_execution_done, tui_on_command_error): New
4607 functions.
4608 (tui_display_prompt_p): Delete.
4609 (_initialize_tui_interp): Adjust.
4610
fd664c91
PA
46112014-05-29 Pedro Alves <palves@redhat.com>
4612
4613 PR gdb/13860
4614 * cli/cli-interp.c: Include infrun.h and observer.h.
4615 (cli_uiout, cli_interp): New globals.
4616 (cli_on_signal_received, cli_on_end_stepping_range)
4617 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4618 functions.
4619 (cli_interpreter_init): Install them as 'end_stepping_range',
4620 'signal_received' 'signal_exited', 'exited' and 'no_history'
4621 observers.
4622 (_initialize_cli_interp): Remove cli_interp local.
4623 * infrun.c (handle_inferior_event): Call the several stop reason
4624 observers instead of printing the stop reason directly.
4625 (end_stepping_range): New function.
4626 (print_end_stepping_range_reason, print_signal_exited_reason)
4627 (print_exited_reason, print_signal_received_reason)
4628 (print_no_history_reason): Make static, and add an uiout
4629 parameter. Print to that instead of to CURRENT_UIOUT.
4630 * infrun.h (print_end_stepping_range_reason)
4631 (print_signal_exited_reason, print_exited_reason)
4632 (print_signal_received_reason print_no_history_reason): New
4633 declarations.
4634 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4635 'mi_uiout'.
4636 <cli_uiout>: New field.
4637 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4638 uiout for CLI output. Install 'signal_received',
4639 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4640 observers.
4641 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4642 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4643 (mi_on_no_history): New functions.
4644 (ui_out_free_cleanup): Delete function.
4645 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4646 instead use the one already stored in the MI interpreter data.
4647 (mi_ui_out): Adjust.
4648 * tui/tui-interp.c: Include infrun.h and observer.h.
4649 (tui_interp): New global.
4650 (tui_on_signal_received, tui_on_end_stepping_range)
4651 (tui_on_signal_exited, tui_on_exited)
4652 (tui_on_no_history): New functions.
4653 (tui_init): Install them as 'end_stepping_range',
4654 'signal_received' 'signal_exited', 'exited' and 'no_history'
4655 observers.
4656 (_initialize_tui_interp): Delete tui_interp local.
4657
8817a6f2
PA
46582014-05-29 Pedro Alves <palves@redhat.com>
4659
4660 PR gdb/15713
4661 * linux-nat.c (linux_nat_resume_callback): Rename the second
4662 parameter to 'except'. Skip LP if it points to EXCEPT.
4663 (linux_nat_resume): Don't mark the event lwp as not stopped
4664 before resuming sibling lwps. Instead ask
4665 linux_nat_resume_callback to skip the event lwp. Mark it as not
4666 stopped after actually resuming it.
4667 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4668 resuming it.
4669 (wait_lwp): Mark the lwp as stopped here.
4670 (stop_wait_callback): Mark the lwp as not stopped right after
4671 resuming it. Don't mark lwps as stopped here.
4672 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4673 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4674
251bde03
PA
46752014-05-29 Pedro Alves <palves@redhat.com>
4676
4677 PR PR15693
4678 * infrun.c (resume): Determine how much to resume depending on
4679 whether the caller wanted a step, not whether we can hardware step
4680 the target. Mark all threads that we intend to run as running,
4681 unless we're calling an inferior function.
4682 (normal_stop): If the thread is running an infcall, don't finish
4683 thread state.
4684 * target.c (target_resume): Don't mark threads as running here.
4685
7f3c0343
JB
46862014-05-28 Joel Brobecker <brobecker@adacore.com>
4687
4688 * serial.c (_initialize_serial): Remove support for
4689 the "set remotebaud" and "show remotebaud" commands.
4690 * NEWS: Add entry documenting the removal of that command.
4691
ee34b3f9
YQ
46922014-05-28 Yao Qi <yao@codesourcery.com>
4693
4694 * charset.c: Fix typo in comments.
4695
add6c04d
GB
46962014-05-27 Gary Benson <gbenson@redhat.com>
4697
4698 * utils.c (internal_vproblem): Prompt for a bug report.
4699
92c48fc5
AW
47002014-05-26 Andy Wingo <wingo@igalia.com>
4701
4702 * guile/scm-arch.c (arscm_mark_arch_smob):
4703 * guile/scm-block.c (bkscm_mark_block_smob)
4704 (bkscm_mark_block_syms_progress_smob):
4705 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4706 * guile/scm-exception.c (exscm_mark_exception_smob):
4707 * guile/scm-frame.c (frscm_mark_frame_smob):
4708 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4709 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4710 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4711 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4712 (ppscm_mark_pretty_printer_worker_smob):
4713 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4714 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4715 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4716 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4717 mark functions.
4718 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4719 function.
4720
b2715b27
AW
47212014-05-26 Andy Wingo <wingo@igalia.com>
4722 Doug Evans <xdje42@gmail.com>
4723
4724 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4725 empty_base_class. All uses updated.
4726 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4727 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4728 Adapt all callers.
4729 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4730 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4731 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4732 (gdbscm_gsmob_has_property_p, add_property_name)
4733 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4734 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4735 (gdb-object-has-property?, gdb-object-properties): Remove.
4736 (gdb-object-kind): Renamed from gsmob-kind.
4737
214ab2da
AW
47382014-05-26 Andy Wingo <wingo@igalia.com>
4739
4740 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4741 * configure: Regenerate.
4742
589fdceb
MM
47432014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4744
4745 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4746
67b5c0c1
MM
47472014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4748
4749 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4750 (replay_memory_access_read_only, replay_memory_access_read_write)
4751 (replay_memory_access_types, replay_memory_access)
4752 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4753 (cmd_set_record_btrace, cmd_show_record_btrace)
4754 (cmd_show_replay_memory_access): New.
4755 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4756 (record_btrace_remove_breakpoint): Replace
4757 record_btrace_allow_memory_access with replay_memory_access.
4758 (_initialize_record_btrace): Add commands.
4759 * NEWS: Announce it.
4760
036cd381
RR
47612014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4762
4763 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4764
c77c1e42
RR
47652014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4766
4767 * MAINTAINERS (Write After Approval): Move self back from
4768 paper trail.
4769
45741a9c
PA
47702014-05-22 Pedro Alves <palves@redhat.com>
4771
4772 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4773 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4774 (disable_randomization, enum exec_direction_kind)
4775 (execution_direction, stop_registers, start_remote)
4776 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4777 (wait_for_inferior, normal_stop, get_last_target_status)
4778 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4779 (insert_step_resume_breakpoint_at_sal)
4780 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4781 (set_step_info, print_stop_event, signal_stop_state)
4782 (signal_print_state, signal_pass_state, signal_stop_update)
4783 (signal_print_update, signal_pass_update)
4784 (update_signals_program_target, clear_exit_convenience_vars)
4785 (displaced_step_dump_bytes, update_observer_mode)
4786 (signal_catch_update, gdb_signal_from_command): Move
4787 declarations ...
4788 * infrun.h: ... to this new file.
4789 * amd64-tdep.c: Include infrun.h.
4790 * annotate.c: Include infrun.h.
4791 * arch-utils.c: Include infrun.h.
4792 * arm-linux-tdep.c: Include infrun.h.
4793 * arm-tdep.c: Include infrun.h.
4794 * break-catch-sig.c: Include infrun.h.
4795 * breakpoint.c: Include infrun.h.
4796 * common/agent.c: Include infrun.h instead of inferior.h.
4797 * corelow.c: Include infrun.h.
4798 * event-top.c: Include infrun.h.
4799 * go32-nat.c: Include infrun.h.
4800 * i386-tdep.c: Include infrun.h.
4801 * inf-loop.c: Include infrun.h.
4802 * infcall.c: Include infrun.h.
4803 * infcmd.c: Include infrun.h.
4804 * infrun.c: Include infrun.h.
4805 * linux-fork.c: Include infrun.h.
4806 * linux-nat.c: Include infrun.h.
4807 * linux-thread-db.c: Include infrun.h.
4808 * monitor.c: Include infrun.h.
4809 * nto-tdep.c: Include infrun.h.
4810 * procfs.c: Include infrun.h.
4811 * record-btrace.c: Include infrun.h.
4812 * record-full.c: Include infrun.h.
4813 * remote-m32r-sdi.c: Include infrun.h.
4814 * remote-mips.c: Include infrun.h.
4815 * remote-notif.c: Include infrun.h.
4816 * remote-sim.c: Include infrun.h.
4817 * remote.c: Include infrun.h.
4818 * reverse.c: Include infrun.h.
4819 * rs6000-tdep.c: Include infrun.h.
4820 * s390-linux-tdep.c: Include infrun.h.
4821 * solib-irix.c: Include infrun.h.
4822 * solib-osf.c: Include infrun.h.
4823 * solib-svr4.c: Include infrun.h.
4824 * target.c: Include infrun.h.
4825 * top.c: Include infrun.h.
4826 * windows-nat.c: Include infrun.h.
4827 * mi/mi-interp.c: Include infrun.h.
4828 * mi/mi-main.c: Include infrun.h.
4829 * python/py-threadevent.c: Include infrun.h.
4830
98eb56a4
PA
48312014-05-22 Pedro Alves <palves@redhat.com>
4832
4833 * infrun.c (handle_inferior_event): Store the exit code for
4834 --return-child-result here, instead of ...
4835 (print_exited_reason): ... here.
4836
17b2616c
PA
48372014-05-21 Pedro Alves <palves@redhat.com>
4838
4839 PR gdb/13860
4840 * gdbthread.h (struct thread_control_state): New field
4841 `command_interp'.
4842 * infrun.c (follow_fork): Copy the new thread control field to the
4843 child fork thread.
4844 (clear_proceed_status_thread): Clear the new thread control field.
4845 (proceed): Set the new thread control field.
4846 * interps.h (command_interp): Declare.
4847 * interps.c (command_interpreter): New global.
4848 (command_interp): New function.
4849 (interp_exec): Set `command_interpreter' while here.
4850 * cli-out.c (cli_uiout_dtor): New function.
4851 (cli_ui_out_impl): Install it.
4852 * mi/mi-interp.c: Include cli-out.h.
4853 (mi_cmd_interpreter_exec): Add comment.
4854 (restore_current_uiout_cleanup): New function.
4855 (ui_out_free_cleanup): New function.
4856 (mi_on_normal_stop): If finishing an execution command started by
4857 a CLI command, or any kind of breakpoint-like event triggered,
4858 print the stop event to the output (CLI) stream.
4859 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4860
5166082f
PA
48612014-05-21 Pedro Alves <palves@redhat.com>
4862
4863 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4864 current source line having changed.
4865 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4866 * infrun.c (normal_stop): Adjust call to
4867 set_current_sal_from_frame.
4868 * source.c (clear_lines_listed_range): New function.
4869 (set_current_source_symtab_and_line, identify_source_line): Clear
4870 the lines listed range.
4871 (line_info): Handle the first "info line" after the current source
4872 line having changed.
4873 * stack.c (print_stack_frame): Remove center handling.
4874 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4875 center sal.line.
4876
c1ee2fb3
PA
48772014-05-21 Pedro Alves <palves@redhat.com>
4878
4879 * inf-child.c (inf_child_mourn_inferior): New function.
4880 * inf-child.h (inf_child_mourn_inferior): New declaration.
4881 * darwin-nat.c (darwin_mourn_inferior): Use
4882 inf_child_mourn_inferior.
4883 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4884 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4885 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4886 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4887 * windows-nat.c (windows_mourn_inferior): Likewise.
4888
5c6d4fb2
DE
48892014-05-21 Doug Evans <xdje42@gmail.com>
4890
250748cb 4891 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4892
4a2722c5
DE
48932014-05-21 Doug Evans <xdje42@gmail.com>
4894
17292b30 4895 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4896 (gdbscm_out_of_range_error): Ditto.
4897 (gdbscm_memory_error): Ditto.
250748cb
DE
4898 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4899 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4900 (gdbscm_out_of_range_error): Update.
4901 (gdbscm_memory_error): Update.
4902 (gdbscm_scm_to_target_string_unsafe): Delete.
4903
6a3cb8e8
PA
49042014-05-21 Pedro Alves <palves@redhat.com>
4905
4906 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4907 globals.
4908 (inf_child_open_target): New function.
4909 (inf_child_open): Use inf_child_open_target to push the target
4910 instead of erroring out.
4911 (inf_child_disconnect, inf_child_close)
4912 (inf_child_maybe_unpush_target): New functions.
4913 (inf_child_target): Install inf_child_disconnect and
4914 inf_child_close. Store a pointer to the returned object.
4915 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4916 declarations.
4917 * target.c (auto_connect_native_target): New global.
4918 (show_default_run_target): New function.
4919 (find_default_run_target): Return NULL if automatically connecting
4920 to the native target is disabled.
4921 (_initialize_target): Install set/show auto-connect-native-target.
4922 * NEWS: Mention "set auto-connect-native-target", and "target
4923 native".
4924 * linux-nat.c (super_close): New global.
4925 (linux_nat_close): Call super_close.
4926 (linux_nat_add_target): Store a pointer to the base class's
4927 to_close method.
4928 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4929 inf_child_maybe_unpush.
4930 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4931 already pushed.
4932 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4933 the inferior. Use inf_child_maybe_unpush_target.
4934 (inf_ttrace_attach): Don't push the target if it is already
4935 pushed.
4936 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4937 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4938 after mourning the inferior. Use inf_child_maybe_unpush_target.
4939 (darwin_attach_pid): Don't push the target if it is already
4940 pushed.
4941 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4942 mourning the inferior. Use inf_child_maybe_unpush_target.
4943 (gnu_detach): Use inf_child_maybe_unpush_target.
4944 * go32-nat.c (go32_create_inferior): Don't push the target if it
4945 is already pushed.
4946 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4947 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4948 (procfs_open): Rename to ...
4949 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4950 comments. Can target_preopen before changing node. Call
4951 inf_child_open_target to push the target explicitly.
4952 (procfs_attach): Don't push the target if it is already pushed.
4953 (procfs_detach): Use inf_child_maybe_unpush_target.
4954 (procfs_create_inferior): Don't push the target if it is already
4955 pushed.
4956 (nto_native_ops): New global.
4957 (procfs_open): Reimplement.
4958 (procfs_native_open): New function.
4959 (init_procfs_targets): Install procfs_native_open as to_open of
4960 "target native". Store a pointer to the "native" target in
4961 nto_native_ops.
4962 * procfs.c (procfs_attach): Don't push the target if it is already
4963 pushed.
4964 (procfs_detach): Use inf_child_maybe_unpush_target.
4965 (procfs_mourn_inferior): Only unpush the target after mourning the
4966 inferior. Use inf_child_maybe_unpush_target.
4967 (procfs_init_inferior): Don't push the target if it is already
4968 pushed.
4969 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4970 if it is already pushed.
4971
930ee1b1
PA
49722014-05-21 Pedro Alves <palves@redhat.com>
4973
4974 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4975 and "procfs" targets are now called "native" instead.
4976
1f5d1b13
PA
49772014-05-21 Pedro Alves <palves@redhat.com>
4978
4979 * go32-nat.c (go32_open): Delete.
4980 (go32_target): Don't override the to_open method.
4981
132f8e03
PA
49822014-05-21 Pedro Alves <palves@redhat.com>
4983
4984 * nto-procfs.c (procfs_can_run): New function.
4985 (nto_procfs_ops): New global.
4986 (init_procfs_targets): New, based on procfs_target. Install
4987 "target native" in addition to "target procfs".
4988 (_initialize_procfs): Call init_procfs_targets instead of adding
4989 the target here.
4990
03c136c3
PA
49912014-05-21 Pedro Alves <palves@redhat.com>
4992
4993 * windows-nat.c (windows_target): Don't override to_shortname,
4994 to_longname or to_doc.
4995
a635d0f3
PA
49962014-05-21 Pedro Alves <palves@redhat.com>
4997
4998 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4999 to_doc.
5000
4f9b5133
PA
50012014-05-21 Pedro Alves <palves@redhat.com>
5002
5003 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5004 to_shortname, to_longname or to_doc.
5005
bc85afde
PA
50062014-05-21 Pedro Alves <palves@redhat.com>
5007
5008 * go32-nat.c (go32_target): Don't override to_shortname,
5009 to_longname or to_doc.
5010
4ebfc96e
PA
50112014-05-21 Pedro Alves <palves@redhat.com>
5012
5013 * inf-child.c (inf_child_open): Remove mention of "child".
5014 (inf_child_target): Rename target to "native" instead of "child".
5015
2648dfed
AA
50162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5017
5018 * Makefile.in (SFILES): Delete "regset.c".
5019 (COMMON_OBS): Delete "regset.o".
5020 * regset.c: Remove.
5021 * regset.h (regset_alloc): Delete prototype.
5022
b13feb94
AA
50232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5024
5025 * sparc-linux-tdep.c (sparc32_linux_gregset)
5026 (sparc32_linux_fpregset): New static regset structures.
5027 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5028 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5029 'fpregset' fields.
5030 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5031 (sparc64_linux_fpregset): New static regset structures.
5032 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5033 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5034 New static regset structures.
5035 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5036 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5037 New static regset structures.
5038 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5039 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5040 New static regset structures.
5041 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5042 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5043 New static regset structures.
5044 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5045
b4fd25c9
AA
50462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5047
5048 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5049 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5050 register maps ("regmaps") from "*regset" to "*regmap". Do this
5051 for all regmap types and variables.
5052 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5053 (sparc32_linux_supply_core_gregset)
5054 (sparc32_linux_collect_core_gregset)
5055 (sparc32_linux_supply_core_fpregset)
5056 (sparc32_linux_collect_core_fpregset): Likewise.
5057 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5058 (sparc_gregmap, sparc_fpregmap): ... these.
5059 (sparc_supply_gregset, sparc_collect_gregset)
5060 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5061 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5062 (_initialize_sparc_nat): Rename regmaps.
5063 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5064 (sparc_gregmap, sparc_fpregmap): ... these.
5065 (sparc_supply_gregset, sparc_collect_gregset)
5066 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5067 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5068 Rename macros to...
5069 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5070 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5071 Likewise.
5072 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5073 Rename to...
5074 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5075 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5076 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5077 regmaps.
5078 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5079 (sparc32_bsd_fpregset): Rename to...
5080 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5081 (sparc32_bsd_fpregmap): ... these.
5082 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5083 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5084 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5085 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5086 (struct sparc_gregmap, struct sparc_fpregmap)
5087 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5088 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5089 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5090 (sparc32_supply_regset, sparc32_collect_gregset)
5091 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5092 prototypes.
5093 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5094 (sparc64_linux_ptrace_gregmap): ... this.
5095 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5096 (_initialize_sparc64_linux_nat): Rename regmaps.
5097 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5098 (sparc64_linux_core_gregmap): ... this.
5099 (sparc64_linux_supply_core_gregset)
5100 (sparc64_linux_collect_core_gregset)
5101 (sparc64_linux_supply_core_fpregset)
5102 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5103 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5104 (sparc64_sol2_fpregset): Rename to...
5105 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5106 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5107 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5108 regmaps.
5109 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5110 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5111 (sparc64_bsd_fpregset): Rename to...
5112 (struct sparc_gregmap, sparc64_sol2_gregmap)
5113 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5114 (sparc64_bsd_fpregmap): ... these.
5115 (sparc64_supply_gregset, sparc64_collect_gregset)
5116 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5117 prototypes.
5118 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5119 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5120 (sparc64fbsd_gregmap): ... this.
5121 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5122 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5123 Rename regmaps.
5124 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5125 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5126 (sparc64nbsd_collect_fpregset): Likewise.
5127 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5128 (sparc64nbsd_gregmap): ... this.
5129 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5130 regmaps.
5131 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5132 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5133 (sparc64obsd_gregmap): ... this.
5134 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5135 regmaps.
5136 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5137 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5138 (sparc32nbsd_gregmap): ... this.
5139 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5140 regmaps.
5141
8fea3224
AA
51422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5143
5144 * score-tdep.c (score7_linux_gregset): New static regset
5145 structure.
5146 (score7_linux_regset_from_core_section): Remove dynamic regset
5147 allocation.
5148 (score_gdbarch_init): Drop allocation of tdep structure.
5149 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5150
24534243
AA
51512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5152
5153 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5154 regset structures.
5155 (am33_regset_from_core_section): Remove dynamic regset
5156 allocations.
5157
b7195f27
AA
51582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5159
5160 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5161 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5162 structures.
5163 (mips_linux_regset_from_core_section): Remove dynamic regset
5164 allocations.
5165 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5166 'gregset64', 'fpregset', and 'fpregset64'.
5167 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5168 deleted tdep fields.
5169
ecc37a5a
AA
51702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5171
5172 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5173 regset structures.
5174 (amd64_regset_from_core_section): Remove dynamic regset
5175 allocations.
5176 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5177 structure.
5178 (amd64obsd_regset_from_core_section): Remove dynamic regset
5179 allocation.
5180 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5181 Likewise.
5182 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5183 x86-common regset supply function.
5184 * i386-tdep.c (i386_collect_gregset): Make static.
5185 (i386_gregset): New global regset structure.
5186 (i386_fpregset, i386_xstateregset): New static regset structures.
5187 (i386_regset_from_core_section): Remove dynamic regset
5188 allocations.
5189 (i386_gdbarch_init): Remove initialization of tdep fields
5190 'gregset', 'fpregset', and 'xstateregset'.
5191 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5192 'fpregset', and 'xstateregset'.
5193 (i386_collect_gregset): Remove prototype.
5194 (i386_gregset): New declaration.
5195 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5196 structure.
5197 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5198 allocation.
5199
b7611c43
AA
52002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5201
5202 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5203 (arm_linux_vfpregset): New static regset structures.
5204 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5205 regset structures.
5206 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5207 and 'vfpregset' fields.
5208
a069a2bd
AA
52092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5210
5211 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5212 (aarch64_linux_fpregset): New static regset structures.
5213 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5214 of regset structures.
5215 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5216 'fpregset' fields.
5217
09424cff
AA
52182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5219
5220 * regset.h (struct regset): Remove gdbarch field.
5221 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5222 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5223 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5224 Likewise.
5225 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5226 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5227 (ppc32_linux_vsxregset): Likewise.
5228 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5229 via the regcache instead of the regset.
5230 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5231 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5232 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5233 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5234 Likewise.
5235
3ca7dae4
AA
52362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5237
5238 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5239 Constify structures.
5240 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5241 (alphanbsd_aout_gregset): Likewise.
5242 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5243 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5244 Likewise.
5245 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5246 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5247 Likewise.
5248 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5249 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5250 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5251 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5252 * m88k-tdep.c (m88k_gregset): Likewise.
5253 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5254 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5255 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5256 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5257 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5258 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5259 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5260 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5261 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5262 Likewise.
5263 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5264 * sh-tdep.h (sh_corefile_gregset): Likewise.
5265 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5266 * vax-tdep.c (vax_gregset): Likewise.
5267
5876f503
JK
52682014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5269
5270 Fix TLS access for -static -pthread.
5271 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5272 (try_thread_db_load_1): Initialize it.
5273 (thread_db_get_thread_local_address): Call it if LM is zero.
5274 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5275 * target.h (struct target_ops) (to_get_thread_local_address): Add
5276 load_module_addr comment.
5277
0256a6ac
PA
52782014-05-21 Pedro Alves <palves@redhat.com>
5279
5280 * dcache.c (dcache_read_memory_partial): If reading the cache line
5281 fails, fallback to reading just the memory the caller wanted.
5282
227533ac
DE
52832014-05-20 Doug Evans <dje@google.com>
5284
5285 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5286 instead of get_current_arch.
5287
936d2992
PA
52882014-05-20 Pedro Alves <palves@redhat.com>
5289
5290 * NEWS: Mention that compare-sections now works with all targets.
5291
5292 * remote.c (PACKET_qCRC): New enum value.
5293 (remote_verify_memory): Don't send qCRC if the target has no
5294 execution. Use packet_support/packet_ok. If the target doesn't
5295 support the qCRC packet, fallback to a deep memory copy.
5296 (compare_sections_command): Say "target image" instead of "remote
5297 executable".
5298 (_initialize_remote): Add PACKET_qCRC to the list of config
5299 packets that have no associated command. Extend comment.
5300 * target.c (simple_verify_memory, default_verify_memory): New
5301 function.
5302 * target.h (struct target_ops) <to_verify_memory>: Default to
5303 default_verify_memory.
5304 (simple_verify_memory): New declaration.
5305 * target-delegates.c: Regenerate.
5306
e59fa00f
MM
53072014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5308
5309 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5310
f2205de0
HZ
53112014-05-20 Hui Zhu <hui@codesourcery.com>
5312 Yao Qi <yao@codesourcery.com>
5313
5314 PR backtrace/16558
5315 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5316 and change address of sp and pc.
5317
c4e54771
TT
53182014-05-19 Tom Tromey <tromey@redhat.com>
5319
5320 * gdbtypes.c (rank_function): Use XNEWVEC.
5321 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5322
73051182
DE
53232014-05-19 Doug Evans <dje@google.com>
5324
5325 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5326 build_type_unit_groups and moved closer to only caller. Remove
5327 arguments. All references updated. Remove outdated .gdb_index
5328 comment.
5329 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5330 build_type_psymtabs_1.
5331
8832e7e3
DE
53322014-05-19 Doug Evans <dje@google.com>
5333
5334 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5335 n_type_unit_groups, all_type_unit_groups. All uses removed.
5336 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5337 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5338 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5339 (add_type_unit_group_to_table): Delete.
5340
cd8ae15e
DE
53412014-05-19 Doug Evans <dje@google.com>
5342
5343 * eval.c (evaluate_subexp_standard): Add some comments.
5344
08f4850b
DE
53452014-05-17 Doug Evans <xdje42@gmail.com>
5346
5347 * progspace.c (remove_program_space): Delete, unused.
5348 * progspace.h (remove_program_space): Ditto.
5349
bed8455c
DE
53502014-05-17 Doug Evans <xdje42@gmail.com>
5351
5352 * inferior.c (prune_inferiors): Fix comment.
5353 (remove_inferior_command): Call prune_program_spaces.
5354
8d551b02
DE
53552014-05-16 Doug Evans <dje@google.com>
5356
5357 New command line option -D.
5358 * NEWS: Mention it.
5359 * main.c (set_gdb_data_directory): New function.
5360 (captured_main): Recognize -D. Flag error for --data-directory "".
5361 Call set_gdb_data_directory.
5362 (print_gdb_help): Print --data-directory, -D.
5363 * main.h (set_gdb_data_directory): Declare.
5364 * top.c (staged_gdb_datadir): New static global.
5365 (set_gdb_datadir): Call set_gdb_data_directory
5366 (show_gdb_datadir): New function.
5367 (init_main): Update init of data-directory parameter.
5368
18848e28
GF
53692014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5370
5371 Import the "dirfd" gnulib module.
5372 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5373 * gnulib/aclocal.m4: Update.
5374 * gnulib/config.in: Update.
5375 * gnulib/configure: Update.
5376 * gnulib/import/Makefile.am: Update.
5377 * gnulib/import/Makefile.in: Update.
5378 * gnulib/import/dirfd.c: New.
5379 * gnulib/import/m4/dirfd.m4: New.
5380 * gnulib/import/m4/gnulib-cache.m4: Update.
5381 * gnulib/import/m4/gnulib-comp.m4: Update.
5382
95c64f92
YQ
53832014-05-16 Pierre Muller <muller@sourceware.org>
5384 Yao Qi <yao@codesourcery.com>
5385
5386 * valprint.c (print_wchar): Move the code on checking whether
5387 W is a printable wide char to the default branch of switch
5388 statement below. Call wchar_printable instead of gdb_iswprint.
5389
cac395ea
TM
53902014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5391
19679eca 5392 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5393 ldr.w and ldrd instructions.
5394
83655187
DE
53952014-05-15 Doug Evans <dje@google.com>
5396
5397 * dwarf2read.c (read_structure_type): Delete outdated comments.
5398
dd756689
TT
53992014-05-14 Tom Tromey <tromey@redhat.com>
5400
5401 * macrocmd.c (print_macro_definition): Reindent.
5402
75ddda77
DE
54032014-05-13 Doug Evans <xdje42@gmail.com>
5404
5405 * python/py-cmd.c (cmdpy_completer): Add comment.
5406 (completers): Make const.
5407
b0f16a3e
SM
54082014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5409
5410 * infrun.c (resume): Remove should_resume (unused). Move up
5411 declaration of resume_ptid.
5412
033c3379
TT
54132014-05-13 Tom Tromey <tromey@redhat.com>
5414
5415 * language.h (unop_type_check): Remove.
5416 (binop_type_check): Don't declare.
5417
9b44a3a5
AA
54182014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5419
5420 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5421 call to regcache_raw_collect.
5422
303a33fa
SM
54232014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5424
5425 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5426 mi_console->quote as the quoting character.
5427
196100a0
SM
54282014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5429
5430 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5431
f989a1c8
TT
54322014-04-29 Tom Tromey <tromey@redhat.com>
5433
5434 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5435 "show debug varobj".
5436
9404b58f
KM
54372014-05-07 Kyle McMartin <kyle@redhat.com>
5438
5439 Pushed by Joel Brobecker <brobecker@adacore.com>.
5440 * aarch64-tdep.c (aarch64_software_single_step): New function.
5441 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5442 with aarch64_software_single_step.
5443
5e49ba57
JB
54442014-05-05 Joel Brobecker <brobecker@adacore.com>
5445
5446 GDB 7.7.1 released.
5447
c888a17d
KS
54482014-05-05 Keith Seitz <keiths@redhat.com>
5449
5450 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5451 variable or history value is successfully parsed.
5452
290a839c
YQ
54532014-05-05 Yao Qi <yao@codesourcery.com>
5454 Pedro Alves <palves@redhat.com>
5455
5456 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5457 address of blocks that intersects the requested range. Trim
5458 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5459 sections.
5460 * ctf.c (ctf_xfer_partial): Likewise.
5461
91256dc2
YQ
54622014-05-05 Yao Qi <yao@codesourcery.com>
5463
5464 * printcmd.c (display_command): Remove the check to
5465 target_has_execution.
5466
07284463
MK
54672014-05-03 Mark Kettenis <kettenis@gnu.org>
5468
5469 * ppcobsd-nat.c: Include "obsd-nat.h".
5470 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5471 add_target.
5472 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5473
30a1e6cc
SDJ
54742014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5475
5476 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5477 and 16-bit signed and unsigned arguments. Update comment.
5478 (stap_parse_probe_arguments): Extend code to handle such
5479 arguments. Use warning instead of complaint to notify about
5480 unrecognized bitness.
5481
f33da99a
SDJ
54822014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5483
5484 PR breakpoints/16889
5485 * stap-probe.c (stap_parse_probe_arguments): Simplify
5486 check for non-prefixed probes (i.e., probes whose
5487 arguments do not start with "N@"). Always set the
5488 argument type to a sane value.
5489
95cf3b38
DT
54902014-05-01 David Taylor <dtaylor@emc.com>
5491
5492 * remote.c (compare_sections_command): Add -r option to compare
5493 all loadable read-only sections.
5494
1cfdf534
SC
54952014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5496
5497 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5498 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5499 Update all callers.
5500 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5501 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5502 Remove unused CORE_ADDR argument. Update all callers.
5503
ca4f7f8b
PA
55042014-04-29 Pedro Alves <palves@redhat.com>
5505
5506 * remote.c (struct packet_config) <detect>: Extend comment.
5507 (add_packet_config_cmd): Don't set the config's detect or support
5508 fields here.
5509 (init_all_packet_configs): Also initialize the config's 'detect'
5510 field.
5511 (reset_all_packet_configs_support): New function.
5512 (remote_open_1): Call reset_all_packet_configs_support instead of
5513 init_all_packet_configs.
5514 (_initialize_remote): Initialize all packet configs. Assert that
5515 all packets have an associated command, except a few known
5516 outliers.
5517
11c1ba78
JB
55182014-04-28 Joel Brobecker <brobecker@adacore.com>
5519
5520 * dwarf2read.c (read_subrange_type): Handle dynamic
5521 DW_AT_lower_bound attributes.
5522
8739bc53
JB
55232014-04-28 Joel Brobecker <brobecker@adacore.com>
5524
5525 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5526 dynamic bounds before computing its upper bound.
5527 (ada_discrete_type_low_bound): Same as above with the lower bound.
5528
6f8a3220
JB
55292014-04-28 Joel Brobecker <brobecker@adacore.com>
5530
5531 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5532 range types. Adjust the array handling implementation to
5533 take advantage of this change.
5534 (resolve_dynamic_range): New function, mostly extracted from
5535 resolve_dynamic_bounds.
5536 (resolve_dynamic_array): New function, mostly extracted from
5537 resolve_dynamic_bounds.
5538 (resolve_dynamic_bounds): Delete.
5539 (resolve_dynamic_type): Reimplement. Add handling of
5540 TYPE_CODE_RANGE types.
5541
4d072ce4
JB
55422014-04-28 Joel Brobecker <brobecker@adacore.com>
5543
5544 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5545 handling of parallel ___XA types.
5546
52865325
JB
55472014-04-28 Joel Brobecker <brobecker@adacore.com>
5548
5549 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5550 unnecessary second call to static_unwrap_type.
5551
433e77fa
HZ
55522014-04-27 Hui Zhu <hui@codesourcery.com>
5553
5554 * stack.c (print_frame_info): Call do_gdb_disassembly with
5555 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5556
b51a69ee
DE
55572014-04-26 Doug Evans <xdje42@gmail.com>
5558
5559 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5560
7ae1a6a6
PA
55612014-04-25 Pedro Alves <palves@redhat.com>
5562
5563 PR server/16255
5564 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5565 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5566 and newline from built string.
5567 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5568 (linux_ptrace_attach_fail_reason): ... this.
5569 * linux-nat.c (linux_nat_attach): Adjust to use
5570 linux_ptrace_attach_fail_reason.
5571
4082afcc
PA
55722014-04-25 Pedro Alves <palves@redhat.com>
5573
5574 * remote.c (struct remote_state): Remove multi_process_aware,
5575 non_stop_aware, cond_tracepoints, cond_breakpoints,
5576 breakpoint_commands, fast_tracepoints, static_tracepoints,
5577 install_in_trace, disconnected_tracing,
5578 enable_disable_tracepoints, string_tracing, and
5579 augmented_libraries_svr4_read fields.
5580 (remote_multi_process_p): Move further below in the file.
5581 (struct packet_config): Add comments.
5582 (update_packet_config): Delete function.
5583 (show_packet_config_cmd): Use packet_config_support.
5584 (add_packet_config_cmd): Use NULL as set callback.
5585 (packet_ok): "set remote foo-packet"-style commands no longer
5586 change config->supported -- adjust.
5587 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5588 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5589 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5590 (PACKET_QNonStop, PACKET_multiprocess_feature)
5591 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5592 (PACKET_DisconnectedTracing_feature)
5593 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5594 (set_remote_protocol_packet_cmd): Delete function.
5595 (packet_config_support, packet_support): New functions.
5596 (set_remote_protocol_Z_packet_cmd): Don't call
5597 update_packet_config.
5598 (remote_query_attached, remote_pass_signals)
5599 (remote_program_signals, remote_threads_info)
5600 (remote_threads_extra_info, remote_start_remote): Use
5601 packet_support.
5602 (remote_start_remote): Use packet_config_support and
5603 packet_support.
5604 (init_all_packet_configs): Set all packets to unknown support,
5605 instead of calling update_packet_config.
5606 (remote_check_symbols): Use packet_support.
5607 (remote_supported_packet): Unconditionally set the packet config's
5608 support status.
5609 (remote_multi_process_feature, remote_non_stop_feature)
5610 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5611 (remote_breakpoint_commands_feature)
5612 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5613 (remote_install_in_trace_feature)
5614 (remote_disconnected_tracing_feature)
5615 (remote_enable_disable_tracepoint_feature)
5616 (remote_string_tracing_feature)
5617 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5618 (remote_protocol_features): Adjust to use remote_supported_packet
5619 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5620 "ConditionalTracepoints", "ConditionalBreakpoints",
5621 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5622 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5623 "EnableDisableTracepoints", and "tracenz".
5624 (remote_query_supported): Use packet_support.
5625 (remote_open_1): Adjust.
5626 (extended_remote_attach_1): Use packet_support. Switch on the
5627 result of packet_ok instead of checking whether the packet ended
5628 up disabled.
5629 (remote_vcont_resume): Use packet_support.
5630 (remote_resume, remote_stop_ns, fetch_register_using_p)
5631 (remote_prepare_to_store, store_register_using_P)
5632 (check_binary_download, remote_write_bytes): Use packet_support.
5633 (remote_vkill): Use packet_support. Switch on the result of
5634 packet_ok instead of checking whether the packet ended up
5635 disabled.
5636 (extended_remote_supports_disable_randomization): Use
5637 packet_support.
5638 (extended_remote_run): Switch on the result of packet_ok instead
5639 of checking whether the packet ended up disabled.
5640 (remote_insert_breakpoint, remote_remove_breakpoint)
5641 (remote_insert_watchpoint, remote_remove_watchpoint)
5642 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5643 packet_support.
5644 (remote_search_memory): Use packet_config_support.
5645 (remote_get_thread_local_address, remote_get_tib_address)
5646 (remote_hostio_send_command, remote_can_execute_reverse): Use
5647 packet_support.
5648 (remote_supports_cond_tracepoints)
5649 (remote_supports_cond_breakpoints)
5650 (remote_supports_fast_tracepoints)
5651 (remote_supports_static_tracepoints)
5652 (remote_supports_install_in_trace)
5653 (remote_supports_enable_disable_tracepoint)
5654 (remote_supports_string_tracing)
5655 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5656 the packet config says the feature is enabled or disabled.
5657 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5658 (remote_get_trace_status): Use packet_support.
5659 (remote_set_disconnected_tracing): Adjust to check whether the
5660 feature is enabled with packet_support.
5661 (remote_set_trace_buffer_size, remote_use_agent)
5662 (remote_can_use_agent, remote_supports_btrace): Use
5663 packet_support.
5664 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5665 Use packet_config_support.
5666 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5667 the packet config says the feature is enabled or disabled.
5668 (set_range_stepping): Use packet_support.
5669
bdb52a22
TT
56702014-04-25 Tom Tromey <tromey@redhat.com>
5671
5672 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5673 argument.
5674
e9475ead
SA
56752014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5676
5677 * NEWS: Mention support for C99 variable length arrays.
5678
82eacd52
JB
56792014-04-24 Joel Brobecker <brobecker@adacore.com>
5680
5681 * ada-lang.c (standard_exc): Expand introductory comment.
5682
01f9f808
MS
56832014-04-24 Michael Sturm <michael.sturm@mintel.com>
5684 Walfred Tedeschi <walfred.tedeschi@intel.com>
5685
5686 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5687 AVX512 registers.
5688 (amd64_linux_read_description): Add code to handle AVX512 xstate
5689 mask and return respective tdesc.
5690 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5691 and features/i386/x32-avx512-linux.c.
5692 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5693 (amd64_linux_core_read_description): Add code to handle AVX512
5694 xstate mask and return respective tdesc.
5695 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5696 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5697 calculation.
5698 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5699 (tdesc_amd64_avx512_linux): New prototype.
5700 (tdesc_x32_avx512_linux): Likewise.
5701 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5702 features/i386/x32-avx512.c.
5703 (amd64_ymm_avx512_names): New register names for pseudo
5704 registers YMM16-31.
5705 (amd64_ymmh_avx512_names): New register names for raw registers
5706 YMMH16-31.
5707 (amd64_k_names): New register names for K registers.
5708 (amd64_zmmh_names): New register names for ZMM raw registers.
5709 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5710 (amd64_xmm_avx512_names): New register names for XMM16-31
5711 registers.
5712 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5713 registers.
5714 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5715 if feature is present.
5716 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5717 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5718 (AMD64_NUM_REGS): Adjust to new number of registers.
5719 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5720 registers supplied via XSTATE by AVX512 registers.
5721 (i386_linux_read_description): Add case for AVX512.
5722 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5723 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5724 (i386_linux_core_read_description): Add case for AVX512.
5725 (i386_linux_init_abi): Install supported register note section
5726 for AVX512.
5727 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5728 AVX512.
5729 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5730 registers to be number of zmm7h + 1.
5731 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5732 * i386-tdep.c: Include features/i386/i386-avx512.c.
5733 (i386_zmm_names): Add ZMM pseudo register names array.
5734 (i386_zmmh_names): Add ZMM raw register names array.
5735 (i386_k_names): Add K raw register names array.
5736 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5737 registers. AVX512 has 16 more ZMM registers than there are YMM
5738 registers.
5739 (i386_zmmh_regnum_p): Add function to look up register number of
5740 ZMM raw registers.
5741 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5742 (i386_k_regnum_p): Likewise for K raw registers.
5743 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5744 registers added by AVX512.
5745 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5746 registers added by AVX512.
5747 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5748 added by AVX512.
5749 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5750 (i386_pseudo_register_name): Add ZMM pseudo registers.
5751 (i386_zmm_type): Construct and return vector registers type for ZMM
5752 registers.
5753 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5754 ZMM0-31 pseudo registers and K registers.
5755 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5756 and YMM16-31 registers from register cache.
5757 (i386_pseudo_register_write): Add code to write K, ZMM and
5758 YMM16-31 registers.
5759 (i386_register_reggroup_p): Add code to include/exclude AVX512
5760 registers in/from respective register groups.
5761 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5762 registers if feature is present in xcr0.
5763 (i386_gdbarch_init): Add code to initialize AVX512 feature
5764 variables in tdep structure, wire in pseudo registers and call
5765 initialize_tdesc_i386_avx512.
5766 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5767 variables.
5768 (i386_regnum): Add AVX512 registers.
5769 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5770 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5771 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5772 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5773 512 bits wide.
5774 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5775 (i386_ymm_avx512_regnum_p): Likewise.
5776 (i386_k_regnum_p): Likewise.
5777 (i386_zmm_regnum_p): Likewise.
5778 (i386_zmmh_regnum_p): Likewise.
5779 * i387-tdep.c : Update year in copyright notice.
5780 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5781 XSAVE buffer.
5782 (XSAVE_YMM_AVX512_ADDR): New macro.
5783 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5784 XSAVE buffer.
5785 (XSAVE_XMM_AVX512_ADDR): New macro.
5786 (xsave_avx512_k_offset): New table for K register offsets in
5787 XSAVE buffer.
5788 (XSAVE_AVX512_K_ADDR): New macro.
5789 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5790 in XSAVE buffer.
5791 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5792 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5793 buffer.
5794 (i387_collect_xsave): Add code to collect AVX512 registers from
5795 XSAVE buffer.
5796 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5797 of XMM16-31 registers.
5798 (I387_NUM_K_REGS): New define for number of K registers.
5799 (I387_K0_REGNUM): New define for K0 register number.
5800 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5801 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5802 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5803 registers.
5804 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5805 (I387_XMM16_REGNUM): New define for XMM16 register number.
5806 (I387_YMM0_REGNUM): New define for YMM0 register number.
5807 (I387_KEND_REGNUM): New define for last K register number.
5808 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5809 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5810 number.
5811 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5812 number.
5813 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5814 size.
5815 * features/Makefile: Add AVX512 related files.
5816 * features/i386/32bit-avx512.xml: New file.
5817 * features/i386/64bit-avx512.xml: Likewise.
5818 * features/i386/amd64-avx512-linux.c: Likewise.
5819 * features/i386/amd64-avx512-linux.xml: Likewise.
5820 * features/i386/amd64-avx512.c: Likewise.
5821 * features/i386/amd64-avx512.xml: Likewise.
5822 * features/i386/i386-avx512-linux.c: Likewise.
5823 * features/i386/i386-avx512-linux.xml: Likewise.
5824 * features/i386/i386-avx512.c: Likewise.
5825 * features/i386/i386-avx512.xml: Likewise.
5826 * features/i386/x32-avx512-linux.c: Likewise.
5827 * features/i386/x32-avx512-linux.xml: Likewise.
5828 * features/i386/x32-avx512.c: Likewise.
5829 * features/i386/x32-avx512.xml: Likewise.
5830 * regformats/i386/amd64-avx512-linux.dat: New file.
5831 * regformats/i386/amd64-avx512.dat: Likewise.
5832 * regformats/i386/i386-avx512-linux.dat: Likewise.
5833 * regformats/i386/i386-avx512.dat: Likewise.
5834 * regformats/i386/x32-avx512-linux.dat: Likewise.
5835 * regformats/i386/x32-avx512.dat: Likewise.
5836 * NEWS: Add note about new support for AVX512.
5837
5838
08351840
PA
58392014-04-23 Pedro Alves <palves@redhat.com>
5840
5841 * breakpoint.c (insert_bp_location): Tolerate errors if the
5842 breakpoint is set in a user-loaded objfile.
5843 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5844 location is marked shlib_disabled. If the breakpoint is set in a
5845 user-loaded objfile is a GDB-side memory breakpoint, validate it
5846 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5847 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5848 flag.
5849 * mem-break.c (memory_validate_breakpoint): New function.
5850 * objfiles.c (userloaded_objfile_contains_address_p): New
5851 function.
5852 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5853 * target.h (memory_validate_breakpoint): New declaration.
5854
076855f9
PA
58552014-04-23 Pedro Alves <palves@redhat.com>
5856
5857 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5858 the breakpoint is set in a shared library, only suppress
5859 errors for software breakpoints, not hardware breakpoints.
5860
483805cf
PA
58612014-04-22 Pedro Alves <palves@redhat.com>
5862
5863 * infrun.c (schedlock_applies): New function, factored out from
5864 find_thread_needs_step_over.
5865 (find_thread_needs_step_over): Use it.
5866 (switch_back_to_stepped_thread): Always clear trap_expected if the
5867 step over is finished. Return early if scheduler locking applies.
5868 Look for the stepping thread and a potential step-over thread with
5869 a single loop.
5870 (currently_stepping_or_nexting_callback): Delete.
5871
a75fef0e
NC
58722014-04-22 Nick Clifton <nickc@redhat.com>
5873
5874 * NEWS: Mention that ARM sim now supports tracing.
5875
48b6e87e
YQ
58762014-04-22 Yao Qi <yao@codesourcery.com>
5877
5878 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5879 to ...
5880 * tracefile.c (tracefile_fetch_registers): ... it. New
5881 function.
5882 * tracefile.h (tracefile_fetch_registers): Declare.
5883 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5884 tracefile_fetch_registers.
5885
17617f2d
EZ
58862014-04-19 Eli Zaretskii <eliz@gnu.org>
5887
5888 PR gdb/14018
5889 * windows-nat.c (thread_rec): Don't display a warning when
5890 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5891 fails for any reason, set th->suspended to -1, so that we don't
5892 try to resume such a thread. Also, don't return NULL in these
5893 cases, to avoid completely ruin the session due to "PC register is
5894 not available" error.
5895 (do_windows_fetch_inferior_registers): Check errors in
5896 GetThreadContext call.
5897 (windows_continue): Accept an additional argument KILLED; if not
5898 zero, ignore errors in the SetThreadContext call, since the
5899 inferior was killed and is shutting down.
5900 (windows_resume, get_windows_debug_event)
5901 (windows_create_inferior, windows_mourn_inferior)
5902 (windows_kill_inferior): All callers of windows_continue changed
5903 to adjust to its new calling sequence.
5904
5723a6fd
YQ
59052014-04-19 Yao Qi <yao@codesourcery.com>
5906
5907 * ctf.c (ctf_open): Call post_create_inferior.
5908
614d5099
YQ
59092014-04-19 Yao Qi <yao@codesourcery.com>
5910
5911 * ctf.c (handle_id): New static variable.
5912 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5913 value. Get the declaration of event "register" and get length
5914 of field "contents".
5915
dac3e710
YQ
59162014-04-19 Yao Qi <yao@codesourcery.com>
5917
5918 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5919
2bca57ba
SC
59202014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5921
5922 * valops.c (oload_method_static): Remove unnecessary argument
5923 METHOD. Update all callers.
5924
51d48146
PA
59252014-04-18 Pedro alves <palves@redhat.com>
5926 Tom Tromey <tromey@redhat.com>
5927
5928 PR backtrace/15558
5929 * frame.c (get_prev_frame_1): Rename to ...
5930 (get_prev_frame_always): ... this, and make extern. Adjust.
5931 (skip_artificial_frames): Use get_prev_frame_always.
5932 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5933 (get_frame_unwind_stop_reason): Adjust to rename.
5934 * frame.h (get_prev_frame_always): Declare.
5935 * inline-frame.c: Include frame.h.
5936 (inline_frame_this_id): Use get_prev_frame_always.
5937
1bdad2e0
TG
59382014-04-18 Tristan Gingold <gingold@adacore.com>
5939
5940 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5941 code by using bfd_mach_o_get_base_address.
5942
7ce16bd4
UW
59432014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5944
5945 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5946 (spu_ax_pseudo_register_collect): New function.
5947 (spu_ax_pseudo_register_push_stack): Likewise.
5948 (spu_dwarf_reg_to_regnum): Likewise.
5949 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5950
2ed3c037
UW
59512014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5952
5953 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5954 Replace FRAME argument with FRAME_ID.
5955 * gdbarch.c, gdbarch.h: Regenerate.
5956 * findvar.c (default_value_from_register): Add GDBARCH argument;
5957 replace FRAME by FRAME_ID. No longer call get_frame_id.
5958 (value_from_register): Update call to gdbarch_value_from_register.
5959 * value.h (default_value_from_register): Update prototype.
5960 * s390-linux-tdep.c (s390_value_from_register): Update interface
5961 and call to default_value_from_register.
5962 * spu-tdep.c (spu_value_from_register): Likewise.
5963
5964 * findvar.c (address_from_register): Remove TYPE argument.
5965 Do not call value_from_register; use gdbarch_value_from_register
5966 with null_frame_id instead.
5967 * value.h (address_from_register): Update prototype.
5968 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5969 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5970 address_from_register interface change.
5971
71e50e83
YQ
59722014-04-17 Yao Qi <yao@codesourcery.com>
5973
5974 * gdbtypes.h: Update comments to link to types and macros'
5975 definitions.
5976
7a23c549
SC
59772014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5978
5979 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5980
22869d73
KS
59812014-04-16 Keith Seitz <keiths@redhat.com>
5982
5983 PR gdb/15827
5984 * dwarf2read.c (skip_one_die): Check that all relative-offset
5985 sibling DIEs fall within range of the current reader's buffer.
5986 (read_partial_die): Likewise.
5987
c4f87ca6
KS
59882014-04-16 Keith Seitz <keiths@redhat.com>
5989
5990 PR c++/16597
5991 * cp-namespace.c (lookup_symbol_file): If the type name of
5992 `this' is NULL, return immediately.
5993
b50c8614
KS
59942014-04-14 Keith Seitz <keiths@redhat.com>
5995
5996 PR c++/16253
5997 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5998 from symbol_matches_domain in symtab.c. All local callers
5999 of symbol_matches_domain updated.
6000 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6001 search STRUCT_DOMAIN.
6002 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6003 independently. standard_lookup will do that automatically.
6004 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6005 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6006 (cp_lookup_symbol_in_namespace): Likewise.
6007 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6008 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6009 may return a STRUCT_DOMAIN match.
6010 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6011 * cp-support.c: Include language.h.
6012 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6013 VAR_DOMAIN.
6014 * psymtab.c (match_partial_symbol): Compare the requested
6015 domain with the symbol's domain directly.
6016 (lookup_partial_symbol): Likewise.
6017 * symtab.c (lookup_symbol_in_language): Explain when/why
6018 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6019 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6020 appropriate languages.
6021 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6022 and moved to ada-lang.c
6023 (lookup_block_symbol): Explain that this function only returns
6024 symbol matching the requested DOMAIN.
6025 Compare the requested domain with the symbol's domain directly.
6026 (iterate_over_symbols): Compare the requested domain with the
6027 symbol's domain directly.
6028 * symtab.h (symbol_matches_domain): Remove.
6029
3d567982
TT
60302014-04-14 Tom Tromey <tromey@redhat.com>
6031
6032 PR c++/15246:
6033 * c-exp.y (type_aggregate_p): New function.
6034 (qualified_name, classify_inner_name): Use it.
6035 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6036 and TYPE_TARGET_TYPE of an enum type.
6037 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6038 an enum type.
6039 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6040 handle TYPE_DECLARED_CLASS.
6041 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6042 types.
6043 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6044 * valops.c (enum_constant_from_type): New function.
6045 (value_aggregate_elt): Use it.
6046 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6047 TYPE_CODE_ENUM.
6048
c848d642
TT
60492014-04-14 Tom Tromey <tromey@redhat.com>
6050
6051 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6052 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6053 const.
6054 * value.h (value_aggregate_elt): Update.
6055
0626fc76
TT
60562014-04-14 Tom Tromey <tromey@redhat.com>
6057
6058 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6059
5ecaaa66
SA
60602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6061
6062 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6063 (evaluate_subexp_standard): Pass noside argument.
6064 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6065 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6066 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6067 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6068 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6069
1612e0c0
SA
60702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6071
6072 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6073 points to a constant blob.
6074
c451ebe5
SA
60752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6076
6077 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6078 property and store it as the high bound and flag the range accordingly.
6079 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6080 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6081 * gdbtypes.h (enum range_flags): New enum.
6082 (struct range_bounds): Add flags member.
6083
1d42e4c4
SA
60842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6085
6086 * c-typeprint.c (c_type_print_varspec_suffix): Added
6087 check for not yet resolved high bound. If unresolved, print
6088 "variable length" string to the console instead of random
6089 length.
6090
9f1f738a
SA
60912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6092
6093 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6094 value.
6095 (ada_template_to_fixed_record_type_1): Likewise.
6096 (ada_to_fixed_type_1): Likewise.
6097 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6098 (cp_print_value): Likewise.
6099 * d-valprint.c (dynamic_array_type): Likewise.
6100 * findvar.c (address_of_variable): Likewise.
6101 * jv-valprint.c (java_value_print): Likewise.
6102 * valops.c (value_ind): Likewise.
6103 * value.c (coerce_ref): Likewise.
6104
3c8452d4
SA
61052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6106
6107 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6108 value and retrieve the dynamic type size.
6109
4ad88275
SA
61102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6111
6112 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6113 passed to sizeof is dynamic evaluate the argument to compute the length.
6114
80180f79
SA
61152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6116 Joel Brobecker <brobecker@adacore.com>
6117
6118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6119 (dwarf2_evaluate_property): New function.
6120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6121 * dwarf2read.c (attr_to_dynamic_prop): New function.
6122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6123 attribute.
6124 * gdbtypes.c: Include dwarf2loc.h.
6125 (is_dynamic_type): New function.
6126 (resolve_dynamic_type): New function.
6127 (resolve_dynamic_bounds): New function.
6128 (get_type_length): New function.
6129 (check_typedef): Use get_type_length to compute type length.
6130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6131 (TYPE_LOW_BOUND_KIND): New macro.
6132 (is_dynamic_type): New function prototype.
6133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6134 to resolve dynamic properties of the type. Update comment.
6135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6136
a1556843
RH
61372014-04-14 Richard Henderson <rth@redhat.com>
6138
6139 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6140
0be03e84
DE
61412014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6142 Doug Evans <xdje42@gmail.com>
6143
6144 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6145 dereference TYPE_CODE_REF values.
6146
6b662e19
JB
61472014-04-11 Joel Brobecker <brobecker@adacore.com>
6148
6149 Revert the following changes due to regressions:
6150
6151 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6152 (dwarf2_evaluate_property): New function.
6153 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6154 * dwarf2read.c (attr_to_dynamic_prop): New function.
6155 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6156 attribute.
6157 * gdbtypes.c: Include dwarf2loc.h.
6158 (is_dynamic_type): New function.
6159 (resolve_dynamic_type): New function.
6160 (resolve_dynamic_bounds): New function.
6161 (get_type_length): New function.
6162 (check_typedef): Use get_type_length to compute type length.
6163 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6164 (TYPE_LOW_BOUND_KIND): New macro.
6165 (is_dynamic_type): New function prototype.
6166 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6167 to resolve dynamic properties of the type. Update comment.
6168 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6169
6170 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6171 passed to sizeof is dynamic evaluate the argument to compute the length.
6172
6173 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6174 value and retrieve the dynamic type size.
6175
6176 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6177 (ada_template_to_fixed_record_type_1): Likewise.
6178 (ada_to_fixed_type_1): Likewise.
6179 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6180 (cp_print_value): Likewise.
6181 * d-valprint.c (dynamic_array_type): Likewise.
6182 * eval.c (evaluate_subexp_with_coercion): Likewise.
6183 * findvar.c (address_of_variable): Likewise.
6184 * jv-valprint.c (java_value_print): Likewise.
6185 * valops.c (value_ind): Likewise.
6186 * value.c (coerce_ref): Likewise.
6187
6188 * c-typeprint.c (c_type_print_varspec_suffix): Added
6189 check for not yet resolved high bound. If unresolved, print
6190 "variable length" string to the console instead of random
6191 length.
6192
6193 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6194 property and store it as the high bound and flag the range accordingly.
6195 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6196 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6197 * gdbtypes.h (enum range_flags): New enum.
6198 (struct range_bounds): Add flags member.
6199
6200 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6201 points to a constant blob.
6202
6203 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6204 (evaluate_subexp_standard): Pass noside argument.
6205 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6206 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6207 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6208 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6209 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6210
245a5f0b
KS
62112014-04-11 Keith Seitz <keiths@redhat.com>
6212
6213 PR c++/16675
6214 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6215 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6216 reference types.
6217
3bce8237
SA
62182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6219
6220 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6221 (evaluate_subexp_standard): Pass noside argument.
6222 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6223 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6224 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6225 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6226 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6227
92b09522
SA
62282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6229
6230 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6231 points to a constant blob.
6232
e1969afb
SA
62332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6234
6235 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6236 property and store it as the high bound and flag the range accordingly.
6237 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6238 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6239 * gdbtypes.h (enum range_flags): New enum.
6240 (struct range_bounds): Add flags member.
6241
b86138fb
SA
62422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6243
6244 * c-typeprint.c (c_type_print_varspec_suffix): Added
6245 check for not yet resolved high bound. If unresolved, print
6246 "variable length" string to the console instead of random
6247 length.
6248
bcd629a4
SA
62492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6250
6251 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6252 (ada_template_to_fixed_record_type_1): Likewise.
6253 (ada_to_fixed_type_1): Likewise.
6254 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6255 (cp_print_value): Likewise.
6256 * d-valprint.c (dynamic_array_type): Likewise.
6257 * eval.c (evaluate_subexp_with_coercion): Likewise.
6258 * findvar.c (address_of_variable): Likewise.
6259 * jv-valprint.c (java_value_print): Likewise.
6260 * valops.c (value_ind): Likewise.
6261 * value.c (coerce_ref): Likewise.
6262
04b19544
SA
62632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6264
6265 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6266 value and retrieve the dynamic type size.
6267
26cb189f
SA
62682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6269
6270 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6271 passed to sizeof is dynamic evaluate the argument to compute the length.
6272
37c1ab67
SA
62732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6274
6275 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6276 (dwarf2_evaluate_property): New function.
6277 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6278 * dwarf2read.c (attr_to_dynamic_prop): New function.
6279 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6280 attribute.
6281 * gdbtypes.c: Include dwarf2loc.h.
6282 (is_dynamic_type): New function.
6283 (resolve_dynamic_type): New function.
6284 (resolve_dynamic_bounds): New function.
6285 (get_type_length): New function.
6286 (check_typedef): Use get_type_length to compute type length.
6287 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6288 (TYPE_LOW_BOUND_KIND): New macro.
6289 (is_dynamic_type): New function prototype.
6290 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6291 to resolve dynamic properties of the type. Update comment.
6292 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6293
729efb13
SA
62942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6295
6296 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6297 declaring high/low bounds and change uses accordingly. Call
6298 create_range_type instead of create_static_range_type.
6299 * gdbtypes.c (create_range_type): New function.
6300 (create_range_type): Convert bounds into struct bound_prop and pass
6301 them to create_range_type.
6302 * gdbtypes.h (struct bound_prop): New struct.
6303 (create_range_type): New function prototype.
6304 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6305 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6306 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6307 part of the bound.
6308 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6309
0c9c3474
SA
63102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6311
6312 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6313 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6314 * ada-lang.c: All uses of create_range_type updated.
6315 * coffread.c: All uses of create_range_type updated.
6316 * dwarf2read.c: All uses of create_range_type updated.
6317 * f-exp.y: All uses of create_range_type updated.
6318 * m2-valprint.c: All uses of create_range_type updated.
6319 * mdebugread.c: All uses of create_range_type updated.
6320 * stabsread.c: All uses of create_range_type updated.
6321 * valops.c: All uses of create_range_type updated.
6322 * valprint.c: All uses of create_range_type updated.
6323
9d497a19
PA
63242014-04-10 Pedro Alves <palves@redhat.com>
6325
6326 * breakpoint.c (single_step_breakpoints)
6327 (single_step_gdbarch): Move up in the file.
6328 (one_breakpoint_xfer_memory): New function, factored out from ...
6329 (breakpoint_xfer_memory): ... here. Also process single-step
6330 breakpoints.
6331
15a9128a
TG
63322014-04-09 Tristan Gingold <gingold@adacore.com>
6333
6334 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6335 comments.
6336 (darwin_decode_exception_message): Free port only after use.
6337
9c97a070
PL
63382014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6339
6340 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6341 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6342 when setting the size of call_length.
6343
7af389b8
SC
63442014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6345
6346 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6347 dereference TYPE_CODE_REF values.
6348
86ad98c3
JB
63492014-04-07 Joel Brobecker <brobecker@adacore.com>
6350
6351 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6352 end of warning message.
6353
b0aeadb3
DE
63542014-04-03 Doug Evans <dje@google.com>
6355
6356 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6357 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6358
5979d6b6
AM
63592014-04-02 Alan Modra <amodra@gmail.com>
6360
6361 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6362 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6363 (struct symbol_file_add_from_memory_args): Add size field.
6364 (find_vdso_size): New function.
6365 (add_vsyscall_page): Attempt to find vdso size.
6366
0d60c288
DE
63672014-04-01 Doug Evans <dje@google.com>
6368
6369 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6370
a41f2563
TG
63712014-04-01 Tristan Gingold <gingold@adacore.com>
6372
6373 * darwin-nat.c (darwin_encode_reply): Add prototype.
6374 (darwin_decode_exception_message): Reply to unknown inferiors.
6375 (darwin_decode_message): Handle message by id. Ignore message
6376 to unknown inferior.
6377 (darwin_wait): Discard unknown messages, add debug trace.
6378
11a865c8
DE
63792014-03-31 Doug Evans <dje@google.com>
6380
6381 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6382 comp_dir_string.
6383
770e7fc7
DE
63842014-03-31 Doug Evans <dje@google.com>
6385
6386 New option "set print symbol-loading".
6387 * NEWS: Mention it.
6388 * solib.c (solib_read_symbols): Only print symbol loading messages
6389 if requested.
6390 (solib_add): If symbol loading is in "brief" mode, notify user
6391 symbols are being loaded.
6392 (reload_shared_libraries_1): Ditto.
6393 * symfile.c (print_symbol_loading_off): New static global.
6394 (print_symbol_loading_brief): New static global.
6395 (print_symbol_loading_full): New static global.
6396 (print_symbol_loading_enums): New static global.
6397 (print_symbol_loading): New static global.
6398 (print_symbol_loading_p): New function.
6399 (symbol_file_add_with_addrs): Only print symbol loading messages
6400 if requested.
6401 (_initialize_symfile): Register "print symbol-loading" set/show
6402 command.
6403 * symfile.h (print_symbol_loading_p): Declare.
6404
c32c64b7
DE
64052014-03-30 Doug Evans <xdje42@gmail.com>
6406
6407 * infrun.c (set_last_target_status): New function.
6408 (handle_inferior_event): Call it.
6409
7c0bc051
DE
64102014-03-30 Doug Evans <xdje42@gmail.com>
6411
6412 * inferior.h (enum stop_kind): Improve comment.
6413
8776cfe9
JB
64142014-03-28 Joel Brobecker <brobecker@adacore.com>
6415
6416 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6417 a reference, strip the reference layer before calling
6418 the lang_ops value_has_mutated callback.
6419
410a0ff2
SDJ
64202014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6421
6422 Remove some globals from our parser.
6423 * language.c (unk_lang_parser): Add "struct parser_state"
6424 argument.
6425 * language.h (struct language_defn) <la_parser>: Likewise.
6426 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6427 (initialize_expout): Add "struct parser_state" argument.
6428 Rewrite function to use the parser state.
6429 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6430 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6431 write_exp_elt_longcst, write_exp_elt_dblcst,
6432 write_exp_elt_decfloatcst, write_exp_elt_type,
6433 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6434 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6435 write_dollar_variable): Likewise.
6436 (parse_exp_in_context_1): Use parser state.
6437 (insert_type_address_space): Add "struct parser_state" argument.
6438 Use parser state.
6439 (increase_expout_size): New function.
6440 * parser-defs.h: Forward declare "struct language_defn" and
6441 "struct parser_state".
6442 (expout, expout_size, expout_ptr): Remove extern declarations.
6443 (parse_gdbarch, parse_language): Rewrite macro declarations to
6444 accept the parser state.
6445 (struct parser_state): New struct.
6446 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6447 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6448 write_exp_elt_decfloatcst, write_exp_elt_type,
6449 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6450 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6451 write_exp_msymbol, write_dollar_variable,
6452 mark_struct_expression, insert_type_address_space): Add "struct
6453 parser_state" argument.
6454 (increase_expout_size): New function.
6455 * utils.c (do_clear_parser_state): New function.
6456 (make_cleanup_clear_parser_state): Likewise.
6457 * utils.h (make_cleanup_clear_parser_state): New function
6458 prototype.
6459 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6460 Update calls to write_exp* in order to pass the parser state.
6461 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6462 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6463 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6464 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6465 * stap-probe.c (stap_parse_register_operand): Likewise.
6466 (stap_parse_single_operand): Likewise.
6467 (stap_parse_argument_1): Likewise.
6468 (stap_parse_argument): Use parser state.
6469 * stap-probe.h: Include "parser-defs.h".
6470 (struct stap_parse_info) <pstate>: New field.
6471 * c-exp.y (parse_type): Rewrite to use parser state.
6472 (yyparse): Redefine to c_parse_internal.
6473 (pstate): New global variable.
6474 (parse_number): Add "struct parser_state" argument.
6475 (write_destructor_name): Likewise.
6476 (type_exp): Update calls to write_exp* and similars in order to
6477 use parser state.
6478 (exp1, exp, variable, qualified_name, space_identifier,
6479 typename, typebase): Likewise.
6480 (write_destructor_name, parse_number, lex_one_token,
6481 classify_name, classify_inner_name, c_parse): Add "struct
6482 parser_state" argument. Update function to use parser state.
6483 * c-lang.h: Forward declare "struct parser_state".
6484 (c_parse): Add "struct parser_state" argument.
6485 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6486 (yyparse): Redefine macro to ada_parse_internal.
6487 (pstate): New variable.
6488 (write_int, write_object_renaming, write_var_or_type,
6489 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6490 type_int, type_long, type_long_long, type_float, type_double,
6491 type_long_double, type_char, type_boolean, type_system_address):
6492 Add "struct parser_state" argument.
6493 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6494 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6495 var_or_type, aggregate, aggregate_component_list,
6496 positional_list, others, component_group,
6497 component_associations): Update calls to write_exp* and similar
6498 functions in order to use parser state.
6499 (ada_parse, write_var_from_sym, write_int,
6500 write_exp_op_with_string, write_object_renaming,
6501 find_primitive_type, write_selectors, write_ambiguous_var,
6502 write_var_or_type, write_name_assoc, type_int, type_long,
6503 type_long_long, type_float, type_double, type_long_double,
6504 type_char, type_boolean, type_system_address): Add "struct
6505 parser_state" argument. Adjust function to use parser state.
6506 * ada-lang.c (parse): Likewise.
6507 * ada-lang.h: Forward declare "struct parser_state".
6508 (ada_parse): Add "struct parser_state" argument.
6509 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6510 calls to both functions.
6511 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6512 parser state.
6513 (yyparse): Redefine macro to f_parse_internal.
6514 (pstate): New variable.
6515 (parse_number): Add "struct parser_state" argument.
6516 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6517 and similars in order to use parser state.
6518 (parse_number): Adjust code to use parser state.
6519 (yylex): Likewise.
6520 (f_parse): New function.
6521 * f-lang.h: Forward declare "struct parser_state".
6522 (f_parse): Add "struct parser_state" argument.
6523 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6524 parser state.
6525 (yyparse): Redefine macro for java_parse_internal.
6526 (pstate): New variable.
6527 (push_expression_name, push_expression_name, insert_exp): Add
6528 "struct parser_state" argument.
6529 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6530 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6531 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6532 PostIncrementExpression, PostDecrementExpression,
6533 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6534 UnaryExpressionNotPlusMinus, CastExpression,
6535 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6536 RelationalExpression, EqualityExpression, AndExpression,
6537 ExclusiveOrExpression, InclusiveOrExpression,
6538 ConditionalAndExpression, ConditionalOrExpression,
6539 ConditionalExpression, Assignment, LeftHandSide): Update
6540 calls to write_exp* and similars in order to use parser state.
6541 (parse_number): Ajust code to use parser state.
6542 (yylex): Likewise.
6543 (java_parse): New function.
6544 (push_variable): Add "struct parser_state" argument. Adjust
6545 code to user parser state.
6546 (push_fieldnames, push_qualified_expression_name,
6547 push_expression_name, insert_exp): Likewise.
6548 * jv-lang.h: Forward declare "struct parser_state".
6549 (java_parse): Add "struct parser_state" argument.
6550 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6551 parser state.
6552 (yyparse): Redefine macro to m2_parse_internal.
6553 (pstate): New variable.
6554 (type_exp, exp, fblock, variable, type): Update calls to
6555 write_exp* and similars to use parser state.
6556 (yylex): Likewise.
6557 (m2_parse): New function.
6558 * m2-lang.h: Forward declare "struct parser_state".
6559 (m2_parse): Add "struct parser_state" argument.
6560 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6561 * objc-lang.h: Forward declare "struct parser_state".
6562 (end_msglist): Add "struct parser_state" argument.
6563 * p-exp.y (parse_type): Rewrite macro to use parser state.
6564 (yyparse): Redefine macro to pascal_parse_internal.
6565 (pstate): New variable.
6566 (parse_number): Add "struct parser_state" argument.
6567 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6568 write_exp* and similars in order to use parser state.
6569 (parse_number, yylex): Adjust code to use parser state.
6570 (pascal_parse): New function.
6571 * p-lang.h: Forward declare "struct parser_state".
6572 (pascal_parse): Add "struct parser_state" argument.
6573 * go-exp.y (parse_type): Rewrite macro to use parser state.
6574 (yyparse): Redefine macro to go_parse_internal.
6575 (pstate): New variable.
6576 (parse_number): Add "struct parser_state" argument.
6577 (type_exp, exp1, exp, variable, type): Update calls to
6578 write_exp* and similars in order to use parser state.
6579 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6580 to use parser state.
6581 (go_parse): Likewise.
6582 * go-lang.h: Forward declare "struct parser_state".
6583 (go_parse): Add "struct parser_state" argument.
6584
342587c4
DE
65852014-03-27 Doug Evans <dje@google.com>
6586
6587 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6588
33e80786
DE
65892014-03-27 Doug Evans <dje@google.com>
6590
6591 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6592 Remove argument abbrev_section. All callers updated.
6593
1dbab08b
DE
65942014-03-27 Doug Evans <dje@google.com>
6595
6596 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6597 addr_base, ranges_base.
6598
318d3177
KS
65992014-03-26 Keith Seitz <keiths@redhat.com>
6600
6601 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6602 types, not VAR_DOMAIN.
6603
1e54db15
SL
66042014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6605
6606 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6607 "ra" registers.
6608 * features/nios2-linux.c: Regenerated.
6609 * features/nios2.c: Regenerated.
6610
d3839ede
PA
66112014-03-25 Pedro Alves <palves@redhat.com>
6612
6613 * cli/cli-script.c (script_from_file): Force the interpreter to
6614 sync mode.
6615
7588d2ec
PL
66162014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6617
6618 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6619 small stack allocation.
6620
a6290449
TG
66212014-03-24 Tristan Gingold <gingold@adacore.com>
6622
6623 * darwin-nat.c (exc_server): Remove unused prototype.
6624 (darwin_dump_message): Correctly display data on x86_64.
6625 (darwin_encode_reply): Fix style.
6626 Add comments and fix indentation.
6627
31ae9d24 66282014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6629
6630 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6631
6339bfc4
DE
66322014-03-22 Doug Evans <xdje42@gmail.com>
6633
6634 * infcmd.c: Whitespace fixes.
6635 (interrupt_command): Merge two function comments into one.
6636
0a07590b
DE
66372014-03-22 Doug Evans <xdje42@gmail.com>
6638
6639 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6640 All uses updated.
6641
b55fbac4
YQ
66422014-03-22 Yao Qi <yao@codesourcery.com>
6643
6644 * remote.c (target_read_live_memory): Remove.
6645 (memory_xfer_live_readonly_partial): Rename it to
6646 remote_xfer_live_readonly_partial. Remove argument 'object'.
6647 All callers updated. Call remote_read_bytes_1
6648 instead of target_read_live_memory.
6649 * tracepoint.c (set_traceframe_number): Remove.
6650 (make_cleanup_restore_traceframe_number): Likewise .
6651 * tracepoint.h (set_traceframe_number): Remove declaration.
6652 (make_cleanup_restore_traceframe_number): Likewise.
6653
9217e74e
YQ
66542014-03-22 Yao Qi <yao@codesourcery.com>
6655
6656 * remote.c (remote_read_bytes): Move code on reading from the
6657 remote stub to ...
6658 (remote_read_bytes_1): ... here. New function.
6659
8acf9577
YQ
66602014-03-22 Yao Qi <yao@codesourcery.com>
6661
6662 * ctf.c (ctf_xfer_partial): Check the return value of
6663 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6664 return TARGET_XFER_UNAVAILABLE.
6665 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6666 * target.c (target_read_live_memory): Move it to remote.c.
6667 (memory_xfer_live_readonly_partial): Likewise.
6668 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6669 * remote.c (target_read_live_memory): Moved from target.c.
6670 (memory_xfer_live_readonly_partial): Likewise.
6671 (remote_read_bytes): Factored out from
6672 memory_xfer_partial_1.
6673
feef67ab
DE
66742014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6675
6676 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6677 NULL pointer.
6678
b65dc60b
PA
66792014-03-21 Pedro Alves <palves@redhat.com>
6680
6681 * infrun.c (normal_stop): Extend comment.
6682
b4ab256d
HZ
66832014-03-21 Hui Zhu <hui@codesourcery.com>
6684 Pedro Alves <palves@redhat.com>
6685
6686 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6687 static buffer.
6688 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6689 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6690 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6691
deba7593
MR
66922014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6693
6694 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6695 `z' formatted output modifier.
6696
1bff71c3
SDJ
66972014-03-20 Tom Tromey <tromey@redhat.com>
6698 Sergio Durigan Junior <sergiodj@redhat.com>
6699
6700 * probe.c (parse_probes): Turn assert into an ordinary error.
6701 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6702 exceptions when parsing probes. Rearrange the code for clarity.
6703
90e28950
TT
67042014-03-20 Tom Tromey <tromey@redhat.com>
6705
6706 PR gdb/14135
6707 * top.c (execute_command): Only dispatch events if the command
6708 started the target.
6709
beb460e8
PA
67102014-03-20 Tom Tromey <tromey@redhat.com>
6711
6712 PR cli/15718
6713 * infcall.c: Include event-top.h.
6714 (run_inferior_call): Call async_disable_stdin if needed.
6715
99619bea
PA
67162014-03-20 Pedro Alves <palves@redhat.com>
6717
6718 * infrun.c (prepare_to_proceed): Delete.
6719 (thread_still_needs_step_over): New function.
6720 (find_thread_needs_step_over): New function.
6721 (proceed): If the current thread needs a step-over, set its
6722 steping_over_breakpoint flag. Adjust to use
6723 find_thread_needs_step_over instead of prepare_to_proceed.
6724 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6725 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6726 breakpoint.
6727 (switch_back_to_stepped_thread): Step over breakpoints of all
6728 threads not the stepping thread, before switching back to the
6729 stepping thread.
6730
2adfaa28
PA
67312014-03-20 Pedro Alves <palves@redhat.com>
6732
6733 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6734 extern.
6735 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6736 * infrun.c (saved_singlestep_ptid)
6737 (stepping_past_singlestep_breakpoint): Delete.
6738 (resume): Remove stepping_past_singlestep_breakpoint handling.
6739 (proceed): Store the prev_pc of the stepping thread too.
6740 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6741 singlestep_pc.
6742 (enum infwait_states): Delete infwait_thread_hop_state.
6743 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6744 field.
6745 (handle_inferior_event): Adjust.
6746 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6747 handling and the thread-hop code. Before removing single-step
6748 breakpoints, check whether the thread hit a single-step breakpoint
6749 of another thread. If it did, the trap is not a random signal.
6750 (switch_back_to_stepped_thread): If the event thread hit a
6751 single-step breakpoint, unblock it before switching to the
6752 stepping thread. Handle the case of the stepped thread having
6753 advanced already.
6754 (keep_going): Handle the case of the current thread moving past a
6755 single-step breakpoint.
6756
31e77af2
PA
67572014-03-20 Pedro Alves <palves@redhat.com>
6758
6759 PR breakpoints/7143
6760 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6761 are being stepped over.
6762 (breakpoint_address_match): Make extern.
6763 * breakpoint.h (breakpoint_address_match): New declaration.
6764 * inferior.h (stepping_past_instruction_at): New declaration.
6765 * infrun.c (struct step_over_info): New type.
6766 (step_over_info): New global.
6767 (set_step_over_info, clear_step_over_info)
6768 (stepping_past_instruction_at): New functions.
6769 (handle_inferior_event): Clear the step-over info when
6770 trap_expected is cleared.
6771 (resume): Remove now stale comment.
6772 (clear_proceed_status): Clear step-over info.
6773 (proceed): Adjust step-over handling to set or clear the step-over
6774 info instead of removing all breakpoints.
6775 (handle_signal_stop): When setting up a thread-hop, don't remove
6776 breakpoints here.
6777 (stop_stepping): Clear step-over info.
6778 (keep_going): Adjust step-over handling to set or clear step-over
6779 info and then always inserting breakpoints, instead of removing
6780 all breakpoints when stepping over one.
6781
b9f437de
PA
67822014-03-20 Pedro Alves <palves@redhat.com>
6783
6784 * infrun.c (previous_inferior_ptid): Adjust comment.
6785 (deferred_step_ptid): Delete.
6786 (infrun_thread_ptid_changed, prepare_to_proceed)
6787 (init_wait_for_inferior): Adjust.
6788 (handle_signal_stop): Delete deferred_step_ptid handling.
6789
06c868a8
JK
67902014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6791
6792 PR gdb/15358
6793 * defs.h (sync_quit_force_run): New declaration.
6794 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6795 * event-top.c (async_sigterm_handler): New declaration.
6796 (async_sigterm_token): New variable.
6797 (async_init_signals): Create also async_sigterm_token.
6798 (async_sigterm_handler): New function.
6799 (sync_quit_force_run): New variable.
6800 (handle_sigterm): Replace quit_force call by other calls.
6801 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6802
dea80df0
MR
68032014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6804
6805 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6806 offset into SPE pseudo registers.
6807
0c7e1a46
PA
68082014-03-18 Pedro Alves <palves@redhat.com>
6809
6810 PR gdb/13860
6811 * inferior.h (print_stop_event): Declare.
6812 * infrun.c (print_stop_event): New, factored out from ...
6813 (normal_stop): ... this.
6814 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6815 of bpstat_print/print_stack_frame.
6816
9c1fcd01
TT
68172014-03-17 Tom Tromey <tromey@redhat.com>
6818
6819 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6820
11aa919a
PMR
68212014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6822
6823 * ada-lang.c (decode_constrained_packed_array): Perform a
6824 minimal coercion for reference with coerce_ref instead of
6825 ada_coerce_ref.
6826
d4ccb5e0
TG
68272014-03-17 Tristan Gingold <gingold@adacore.com>
6828
6829 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6830 (darwin_solib_create_inferior_hook): Emit a warning if version
6831 is unhandled.
6832
49840f2a
UW
68332014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6834
6835 * python/py-value.c (get_field_flag): Cast flag_name argument to
6836 PyObject_GetAttrString to support Python 2.4.
6837
ed4123e5
JK
68382014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6839
6840 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6841 (Global Maintainers): Remove Jan Kratochvil.
6842
d6b64346
PA
68432014-03-14 Pedro Alves <palves@redhat.com>
6844
6845 * inferior.h (terminal_ours_for_output): Rename to ...
6846 (child_terminal_ours_for_output): ... this.
6847 (terminal_save_ours): Rename to ...
6848 (child_terminal_save_ours): ... this.
6849 (terminal_ours): Rename to ...
6850 (child_terminal_ours): ... this.
6851 (terminal_inferior): Rename to ...
6852 (child_terminal_inferior): ... this.
6853 (terminal_init_inferior): Rename to ...
6854 (child_terminal_init_inferior): ... this.
6855 (terminal_init_inferior_with_pgrp): Rename to ...
6856 (child_terminal_init_inferior_with_pgrp): ... this.
6857 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6858 (child_terminal_init_with_pgrp): ... this.
6859 (terminal_save_ours): Rename to ...
6860 (child_terminal_save_ours): ... this.
6861 (terminal_init_inferior): Rename to ...
6862 (child_terminal_init): ... this. Adjust.
6863 (terminal_inferior): Rename to ...
6864 (child_terminal_inferior): ... this.
6865 (terminal_ours_for_output): Rename to ...
6866 (child_terminal_ours_for_output): ... this. Adjust.
6867 (terminal_ours): Rename to ...
6868 (child_terminal_ours): ... this.
6869 (terminal_ours_1): Rename to ...
6870 (child_terminal_ours_1): ... this. Adjust.
6871 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6872 * windows-nat.c (do_initial_windows_stuff): Adjust.
6873 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6874 (gnu_terminal_init): ... this. Adjust.
6875 (gnu_target): Adjust.
6876 * inf-child.c (inf_child_target): Adjust.
6877
5a1e8c7a
DE
68782014-03-13 Doug Evans <xdje42@gmail.com>
6879
6880 PR guile/16612
6881 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6882 new eq?-hashtab.
6883
350e1a76
DE
68842014-03-13 Doug Evans <xdje42@gmail.com>
6885
6886 * value.c (record_latest_value): Call release_value_or_incref
6887 instead of release_value.
6888
a69900ae
PA
68892014-03-13 Pedro Alves <palves@redhat.com>
6890
6891 * procfs.c (procfs_target): Don't override to_shortname,
6892 to_longname or to_doc.
6893
5db9f0bd
PA
68942014-03-13 Pedro Alves <palves@redhat.com>
6895
6896 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6897 Unix in user visible strings.
6898
5e3a2c38
SS
68992014-03-12 Stan Shebs <stan@codesourcery.com>
6900
6901 * gdbtypes.h: Annotate comments for Doxygen, add a page
6902 block comment with some general info.
6903
8bc2fe48
PA
69042014-03-12 Pedro Alves <palves@redhat.com>
6905
6906 * infcmd.c (prepare_execution_command): New function, factored out
6907 from several execution commands.
6908 (run_command_1, continue_command, step_1, jump_command)
6909 (signal_command, until_command, advance_command, finish_command)
6910 (attach_command): Use prepare_execution_command.
6911
638c5f49
OJ
69122014-03-12 Omair Javaid <omair.javaid@linaro.org>
6913
6914 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6915 (MAX_BPTS): Define.
6916 (MAX_WPTS): Define.
6917 (struct arm_linux_thread_points): Removed.
6918 (struct arm_linux_process_info): New.
6919 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6920 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6921 (arm_linux_find_breakpoints_by_tid): Removed.
6922 (struct arch_lwp_info): New.
6923 (arm_linux_find_process_pid): New functions.
6924 (arm_linux_add_process): New functions.
6925 (arm_linux_process_info_get): New functions.
6926 (arm_linux_forget_process): New function.
6927 (arm_linux_get_debug_reg_state): New function.
6928 (struct update_registers_data): New.
6929 (update_registers_callback): New function.
6930 (arm_linux_insert_hw_breakpoint1): Updated.
6931 (arm_linux_remove_hw_breakpoint1): Updated.
6932 (arm_linux_insert_hw_breakpoint): Updated.
6933 (arm_linux_remove_hw_breakpoint): Updated.
6934 (arm_linux_insert_watchpoint): Updated.
6935 (arm_linux_remove_watchpoint): Updated.
6936 (arm_linux_new_thread): Updated.
6937 (arm_linux_prepare_to_resume): New function.
6938 (arm_linux_new_fork): New function.
6939 (_initialize_arm_linux_nat): Updated.
6940
6d03af93
PA
69412014-03-12 Pedro Alves <palves@redhat.com>
6942
6943 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6944
b3ccfe11
TT
69452014-03-12 Tom Tromey <tromey@redhat.com>
6946
6947 * inf-child.c (return_zero): New function.
6948 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6949 * aix-thread.c (aix_thread_inferior_created): New function.
6950 (aix_thread_attach): Remove.
6951 (init_aix_thread_ops): Don't set to_attach.
6952 (_initialize_aix_thread): Register inferior_created observer.
6953 * corelow.c (init_core_ops): Don't set to_attach or
6954 to_create_inferior.
6955 * exec.c (init_exec_ops): Don't set to_attach or
6956 to_create_inferior.
6957 * infcmd.c (run_command_1): Use find_run_target. Make direct
6958 target calls.
6959 (attach_command): Use find_attach_target. Make direct target
6960 calls.
6961 * record-btrace.c (init_record_btrace_ops): Don't set
6962 to_create_inferior.
6963 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6964 Remove.
6965 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6966 set to_create_inferior.
6967 * target.c (complete_target_initialization): Add assertion.
6968 (target_create_inferior): Remove.
6969 (find_default_attach, find_default_create_inferior): Remove.
6970 (find_attach_target, find_run_target): New functions.
6971 (find_default_is_async_p, find_default_can_async_p)
6972 (target_supports_non_stop, target_attach): Remove.
6973 (init_dummy_target): Don't set to_create_inferior or
6974 to_supports_non_stop.
6975 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6976 TARGET_DEFAULT_FUNC.
6977 <to_create_inferior>: Add comment.
6978 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6979 TARGET_DEFAULT_RETURN.
6980 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6981 (find_attach_target, find_run_target): Declare.
6982 (target_create_inferior): Remove.
6983 (target_has_execution_1): Update comment.
6984 (target_supports_non_stop): Remove.
6985 * target-delegates.c: Rebuild.
6986
91f83b02
PA
69872014-03-12 Pedro Alves <palves@redhat.com>
6988
6989 * inf-child.h: Update comment to not mention Unix.
6990
f1aea813
PA
69912014-03-12 Pedro Alves <palves@redhat.com>
6992
6993 * inf-child.c: Update top comment to not mention Unix. Add
6994 generic comment describing how this target is meant to be used.
6995 (inf_child_post_attach, inf_child_post_startup_inferior)
6996 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6997 Unix in comment.
6998
ee8e9165
PA
69992014-03-12 Pedro Alves <palves@redhat.com>
7000
7001 * nto-procfs.c: Include inf-child.h.
7002 (procfs_ops): Delete global.
7003 (procfs_can_run): Delete method.
7004 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7005 target pointer instead of referencing procfs_ops.
7006 (procfs_prepare_to_store): Delete.
7007 (init_procfs_ops): Delete function.
7008 (procfs_target): New function, based on init_procfs_ops, but
7009 inherit inf_child_target.
7010 (_initialize_procfs): Use procfs_target.
7011
51a9c8c5
PA
70122014-03-12 Pedro Alves <palves@redhat.com>
7013
7014 * windows-nat.c: Include inf-child.h.
7015 (windows_ops): Delete global.
7016 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7017 methods.
7018 (init_windows_ops): Delete function.
7019 (windows_target): New function, based on init_windows_ops, but
7020 inherit inf_child_target.
7021 (_initialize_windows_nat): Use windows_target. Install x86
7022 specific target methods here.
7023
c1966e26
DE
70242014-03-10 Doug Evans <xdje42@gmail.com>
7025
7026 * guile/guile.c (call_initialize_gdb_module): New function.
7027 (initialize_guile): Replace call to scm_init_guile with call to
7028 scm_with_guile.
7029
023db19c
JB
70302014-03-10 Joel Brobecker <brobecker@adacore.com>
7031
7032 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7033 in call to TYPE_CODE macro.
7034
5ec18f2b
JG
70352014-03-10 Jerome Guitton <guitton@adacore.com>
7036
8668be63
JB
7037 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7038 Resolve tagged types to full view.
5ec18f2b 7039
7d03f2eb
HZ
70402014-03-10 Hui Zhu <hui@codesourcery.com>
7041
7042 * target.h (target_insert_breakpoint): Remove "hardware" from its
7043 comments.
7044
c5164cbc
DE
70452014-03-07 Doug Evans <dje@google.com>
7046
7047 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7048
c4a3fee2
DE
70492014-03-07 Doug Evans <dje@google.com>
7050
7051 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7052 Remove unused local comp_dir_attr. Assert exactly one of
7053 stub_comp_unit_die, stub_comp_dir is non-NULL.
7054
3156469c
JB
70552014-03-07 Joel Brobecker <brobecker@adacore.com>
7056
7057 * target.h (complete_target_initialization, add_target):
7058 Add comment.
7059
c1a7b7c6
PA
70602014-03-07 Pedro Alves <palves@redhat.com>
7061
7062 * go32-nat.c: Include inf-child.h.
7063 (go32_ops): Delete global.
7064 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7065 Delete methods.
7066 (go32_create_inferior): Push the passed in target pointer instead
7067 of referencing go32_ops.
7068 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7069 (go32_target): New function, based on init_go32_ops, but inherit
7070 inf_child_target.
7071 (_initialize_go32_nat): Use go32_target. Move parts of
7072 init_go32_ops here.
7073
d3c1a85f
JB
70742014-03-06 Joel Brobecker <brobecker@adacore.com>
7075
7076 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7077 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7078 SYMBOL_VALUE_ADDRESS.
7079 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7080
5fa1d40e
YQ
70812014-03-06 Yao Qi <yao@codesourcery.com>
7082
7083 * breakpoint.c (get_tracepoint_by_number): Remove argument
7084 optional_p. All callers updated. Adjust comments. Update
7085 output message.
7086 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7087
0c13193f
YQ
70882014-03-06 Yao Qi <yao@codesourcery.com>
7089
7090 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7091 early if get_number returns zero. Use 'p' instead of 'args'.
7092
2217da06
YQ
70932014-03-06 Yao Qi <yao@codesourcery.com>
7094
7095 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7096 message.
7097
cc3da688
YQ
70982014-03-06 Yao Qi <yao@codesourcery.com>
7099
7100 PR breakpoints/16508
7101 * tracepoint.c (check_trace_running): New function.
7102 (trace_find_command): Move code to check_trace_running and
7103 call check_trace_running.
7104 (trace_find_pc_command): Likewise.
7105 (trace_find_tracepoint_command): Likewise.
7106 (trace_find_line_command): Likewise.
7107 (trace_find_range_command): Likewise.
7108 * tracepoint.h (check_trace_running): Likewise.
7109 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7110
6a5f844b
YQ
71112014-03-06 Yao Qi <yao@codesourcery.com>
7112
7113 * target.h (struct target_ops) <to_traceframe_info>: Use
7114 TARGET_DEFAULT_NORETURN (tcomplain ()).
7115 * target-delegates.c: Regenerated.
7116
0f26cec1
PA
71172014-03-05 Pedro Alves <palves@redhat.com>
7118
7119 PR gdb/16575
7120 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7121 void. Update comment.
7122 (dcache_xfer_memory): Delete.
7123 (dcache_read_memory_partial): New, based on the read bits of
7124 dcache_xfer_memory.
7125 (dcache_update): Add status parameter. Use ULONGEST for len, and
7126 adjust. Discard cache lines if the reason for the update was
7127 error.
7128 * dcache.h (dcache_xfer_memory): Delete declaration.
7129 (dcache_read_memory_partial): New declaration.
7130 (dcache_update): Update prototype.
7131 * target.c (raw_memory_xfer_partial): Update the dcache here.
7132 (memory_xfer_partial_1): Don't handle dcache writes here.
7133
b2b255bd
MF
71342014-03-05 Mike Frysinger <vapier@gentoo.org>
7135
7136 * remote-sim.c (gdbsim_load): Add const to prog.
7137
5d9cf8a4
TT
71382014-03-03 Tom Tromey <tromey@redhat.com>
7139
7140 * elfread.c (probe_key): Change to bfd_data.
7141 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7142 now per-BFD, not per-objfile.
7143 * stap-probe.c (stap_probe_destroy): Update comment.
7144 (handle_stap_probe): Allocate on the per-BFD obstack.
7145
729662a5
TT
71462014-03-03 Tom Tromey <tromey@redhat.com>
7147
7148 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7149 * breakpoint.c (create_longjmp_master_breakpoint): Use
7150 get_probe_address.
7151 (add_location_to_breakpoint, bkpt_probe_insert_location)
7152 (bkpt_probe_remove_location): Update.
7153 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7154 * elfread.c (elf_symfile_relocate_probe): Remove.
7155 (elf_probe_fns): Update.
7156 (insert_exception_resume_breakpoint): Change type of "probe"
7157 parameter to bound_probe.
7158 (check_exception_resume): Update.
7159 * objfiles.c (objfile_relocate1): Don't relocate probes.
7160 * probe.c (bound_probe_s): New typedef.
7161 (parse_probes): Use get_probe_address. Set sal's objfile.
7162 (find_probe_by_pc): Return a bound_probe.
7163 (collect_probes): Return a VEC(bound_probe_s).
7164 (compare_probes): Update.
7165 (gen_ui_out_table_header_info): Change type of "probes"
7166 parameter. Update.
7167 (info_probes_for_ops): Update.
7168 (get_probe_address): New function.
7169 (probe_safe_evaluate_at_pc): Update.
7170 * probe.h (struct probe_ops) <get_probe_address>: New field.
7171 <set_semaphore, clear_semaphore>: Add objfile parameter.
7172 (struct probe) <objfile>: Remove field.
7173 <arch>: New field.
7174 <address>: Update comment.
7175 (struct bound_probe): New.
7176 (find_probe_by_pc): Return a bound_probe.
7177 (get_probe_address): Declare.
7178 * solib-svr4.c (struct probe_and_action) <address>: New field.
7179 (hash_probe_and_action, equal_probe_and_action): Update.
7180 (register_solib_event_probe): Add address parameter.
7181 (solib_event_probe_at): Update.
7182 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7183 get_probe_address.
7184 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7185 (stap_get_probe_address): New function.
7186 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7187 (compile_probe_arg): Update.
7188 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7189 address.
7190 (handle_stap_probe): Don't relocate the probe.
7191 (stap_relocate): Remove.
7192 (stap_gen_info_probes_table_values): Update.
7193 (stap_probe_ops): Remove stap_relocate.
7194 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7195 (debug_sym_probe_fns): Update.
7196 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7197 * symtab.c (init_sal): Use memset.
7198 * symtab.h (struct symtab_and_line) <objfile>: New field.
7199 * tracepoint.c (start_tracing, stop_tracing): Update.
7200
ff887920
TT
72012014-03-03 Tom Tromey <tromey@redhat.com>
7202
7203 * probe.h (parse_probes, find_probe_by_pc)
7204 (find_probes_in_objfile): Fix comments.
7205
f0407826
DE
72062014-03-02 Doug Evans <xdje42@gmail.com>
7207
7208 * infrun.c (handle_signal_stop): Replace test for
7209 TARGET_WAITKIND_STOPPED with an assert.
7210
35e6a711
DE
72112014-03-02 Doug Evans <xdje42@gmail.com>
7212
7213 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7214
667f9d0b
DE
72152014-03-02 Doug Evans <xdje42@gmail.com>
7216
7217 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7218
dc92ace0
MK
72192014-03-01 Mark Kettenis <kettenis@gnu.org>
7220
7221 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7222
a900370f
MK
72232014-03-01 Mark Kettenis <kettenis@gnu.org>
7224
7225 * i386obsd-nat.c: Include "obsd-nat.h".
7226 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7227 add_target.
7228 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7229
b72a7981
MK
72302014-03-01 Mark Kettenis <kettenis@gnu.org>
7231
7232 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7233
96c70aba
MK
72342014-03-01 Mark Kettenis <kettenis@gnu.org>
7235
7236 * mips64obsd-nat.c: Include "obsd-nath".
7237 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7238 add_target
7239 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7240
874a80af
MK
72412014-03-01 Mark Kettenis <kettenis@gnu.org>
7242
8fd408f1
MK
7243 * amd64obsd-nat.c: Include "obsd-nat,h.
7244 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7245 add_target.
874a80af
MK
7246 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7247
9cf95373
SC
72482014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7249
7250 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7251 (find_overload_match): Update call to find_oload_champ.
7252 (find_oload_champ_namespace_loop): Likewise
7253
863e4da4
MK
72542014-02-28 Mark Kettenis <kettenis@gnu.org>
7255
025cac40
MK
7256 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7257
1ed586ce
MK
7258 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7259 * config/sparc/obsd64.mh: New file.
7260 * sparc64obsd-nat.c: New file.
7261
863e4da4
MK
7262 * obsd-nat.h: New file.
7263 * obsd-nat.c: New file.
7264 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7265 (ALLDEPFILES): Add obsd-nat.c.
7266
89de4da4
TT
72672014-02-28 Tom Tromey <tromey@redhat.com>
7268
7269 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7270 * cli-out.h (cli_ui_out_impl): Now const.
7271 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7272 * ui-out.c (struct ui_out) <impl>: Now const.
7273 (default_ui_out_impl): Now const.
7274 (ui_out_new): Make 'impl' parameter const.
7275 * ui-out.h (ui_out_new): Update.
7276
c725e7b6
MK
72772014-02-27 Mark Kettenis <kettenis@gnu.org>
7278
7279 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7280
670b46b3
MK
72812014-02-27 Mark Kettenis <kettenis@gnu.org>
7282
7283 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7284
c91550fc
JK
72852014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7286
7287 Additional PR 8882 fix.
7288 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7289
2fa0369e
PA
72902014-02-27 Pedro Alves <palves@redhat.com>
7291
7292 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7293 isn't set.
7294
d632a097
PA
72952014-02-27 Pedro Alves <palves@redhat.com>
7296
7297 PR 12702
7298 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7299 * nat/linux-waitpid.c: Include string.h.
7300 (status_to_str): Moved here and made extern.
7301 * nat/linux-waitpid.h (status_to_str): New declaration.
7302
2ebd5a35
HZ
73032014-02-27 Hui Zhu <hui@codesourcery.com>
7304
7305 PR 12702
7306 * infrun.c (ptid_match): Move ...
7307 * common/ptid.c (ptid_match): ... here.
7308 * inferior.h (ptid_match): Move ...
7309 * common/ptid.h (ptid_match): ... here.
7310
3cdd631f
MK
73112014-02-27 Mark Kettenis <kettenis@gnu.org>
7312
7313 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7314 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7315 gdb_target_obs.
7316
bee30a64
MK
73172014-02-27 Mark Kettenis <kettenis@gnu.org>
7318
7319 * obsd-tdep.c (obsd_auxv_parse): New function.
7320 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7321
7322 * gdbarch.sh (auxv_parse): New.
7323 * gdbarch.h: Regenerated.
7324 * gdbarch.c: Regenerated.
7325 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7326
7a5a839f
LC
73272014-02-26 Ludovic Courtès <ludo@gnu.org>
7328
7329 * guile/scm-value.c (gdbscm_history_append_x): New function.
7330 (value_functions): Add it.
7331
31aa7e4e
JB
73322014-02-27 Joel Brobecker <brobecker@adacore.com>
7333
7334 * dwarf2read.c (attr_value_as_address): New function.
7335 (dwarf2_find_base_address, read_call_site_scope): Use
7336 attr_value_as_address in place of DW_ADDR.
7337 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7338 the low and high addresses. Slight rework of the handling
7339 of the high pc being a constant form, and limit it to
7340 DWARF verson 4 or higher.
7341 (dwarf2_record_block_ranges): Likewise.
7342 (read_partial_die): Likewise.
7343 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7344
9b333ba3
TT
73452014-02-26 Tom Tromey <tromey@redhat.com>
7346
7347 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7348
5f6cac40
TT
73492014-02-26 Tom Tromey <tromey@redhat.com>
7350
7351 * elfread.c (elf_read_minimal_symbols): Return early if
7352 minimal symbols have already been read. Add "ei" parameter.
7353 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7354 * minsyms.c (prim_record_minimal_symbol_full): Update.
7355 * objfiles.h (struct objstats) <n_minsyms>: Move...
7356 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7357 * symmisc.c (print_objfile_statistics): Update.
7358
2750ef27
TT
73592014-02-26 Tom Tromey <tromey@redhat.com>
7360
7361 * elfread.c (elf_read_minimal_symbols): New function, from
7362 elf_symfile_read.
7363 (elf_symfile_read): Call it.
7364
34643a32
TT
73652014-02-26 Tom Tromey <tromey@redhat.com>
7366
7367 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7368 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7369 (lookup_minimal_symbol_solib_trampoline)
7370 (lookup_minimal_symbol_by_pc_section_1)
7371 (lookup_minimal_symbol_and_objfile): Update.
7372 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7373 Don't allocate a minimal symbol if minsyms have already been read.
7374 (build_minimal_symbol_hash_tables): Update.
7375 (install_minimal_symbols): Do nothing if minsyms already read.
7376 Use the per-BFD obstack.
7377 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7378 * objfiles.c (allocate_objfile): Call
7379 terminate_minimal_symbol_table later.
7380 (have_minimal_symbols): Update.
7381 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7382 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7383 Move from struct objfile.
7384 <minsyms_read>: New field.
7385 (struct objfile) <msymbols, minimal_symbol_count,
7386 msymbol_hash, msymbol_demangled_hash>: Move.
7387 (ALL_OBJFILE_MSYMBOLS): Update.
7388 * symfile.c (read_symbols): Set minsyms_read.
7389 (reread_symbols): Update.
7390 * symmisc.c (dump_objfile, dump_msymbols): Update.
7391
2273f0ac
TT
73922014-02-26 Tom Tromey <tromey@redhat.com>
7393
7394 * minsyms.c (msymbols_sort): Remove.
7395 * minsyms.h (msymbols_sort): Remove.
7396 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7397 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7398 * elfread.c (elf_symtab_read): Don't add section offsets.
7399 * xcoffread.c (record_minimal_symbol): Don't add section offset
7400 to minimal symbol address.
7401 * somread.c (text_offset, data_offset): Remove.
7402 (som_symtab_read): Don't add section offsets to minimal symbol
7403 addresses.
7404 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7405 Don't add section offsets to minimal symbols.
7406 * coffread.c (coff_symtab_read): Don't add section offsets
7407 to minimal symbol addresses.
7408 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7409 to minimal symbol addresses.
7410 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7411 section offset to minimal symbol addresses.
7412 * mdebugread.c (parse_partial_symbols): Don't add section
7413 offset to minimal symbol addresses.
7414 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7415 offset to minimal symbol addresses.
7416
77e371c0
TT
74172014-02-26 Tom Tromey <tromey@redhat.com>
7418
7419 * ada-lang.c (ada_main_name): Update.
7420 (ada_add_standard_exceptions): Update.
7421 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7422 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7423 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7424 * auxv.c (ld_so_xfer_auxv): Update.
7425 * avr-tdep.c (avr_scan_prologue): Update.
7426 * ax-gdb.c (gen_var_ref): Update.
7427 * blockframe.c (get_pc_function_start)
7428 (find_pc_partial_function_gnu_ifunc): Update.
7429 * breakpoint.c (create_overlay_event_breakpoint)
7430 (create_longjmp_master_breakpoint)
7431 (create_std_terminate_master_breakpoint)
7432 (create_exception_master_breakpoint): Update.
7433 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7434 * c-valprint.c (c_val_print): Update.
7435 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7436 * common/agent.c (agent_look_up_symbols): Update.
7437 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7438 * dwarf2loc.c (call_site_to_target_addr): Update.
7439 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7440 * elfread.c (elf_gnu_ifunc_record_cache)
7441 (elf_gnu_ifunc_resolve_by_got): Update.
7442 * findvar.c (default_read_var_value): Update.
7443 * frame.c (inside_main_func): Update.
7444 * frv-tdep.c (frv_frame_this_id): Update.
7445 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7446 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7447 Update.
7448 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7449 (hppa_hpux_find_dummy_bpaddr): Update.
7450 * hppa-tdep.c (hppa_symbol_address): Update.
7451 * infcmd.c (until_next_command): Update.
7452 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7453 Update.
7454 * linespec.c (minsym_found, add_minsym): Update.
7455 * linux-nat.c (get_signo): Update.
7456 * linux-thread-db.c (inferior_has_bug): Update.
7457 * m32c-tdep.c (m32c_return_value)
7458 (m32c_m16c_address_to_pointer): Update.
7459 * m32r-tdep.c (m32r_frame_this_id): Update.
7460 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7461 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7462 * maint.c (maintenance_translate_address): Update.
7463 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7464 (frob_address): New function.
7465 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7466 frob_address. Rename parameter to "pc_in".
7467 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7468 addresses.
7469 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7470 Update.
7471 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7472 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7473 * objc-lang.c (find_objc_msgsend): Update.
7474 * objfiles.c (objfile_relocate1): Update.
7475 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7476 * p-valprint.c (pascal_val_print): Update.
7477 * parse.c (write_exp_msymbol): Update.
7478 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7479 (ppc_elfv2_skip_entrypoint): Update.
7480 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7481 * printcmd.c (build_address_symbolic, msym_info)
7482 (address_info): Update.
7483 * proc-service.c (ps_pglobal_lookup): Update.
7484 * psymtab.c (find_pc_sect_psymtab_closer)
7485 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7486 Change msymbol parameter to bound_minimal_symbol.
7487 * ravenscar-thread.c (get_running_thread_id): Update.
7488 * remote.c (remote_check_symbols): Update.
7489 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7490 address.
7491 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7492 * solib-dsbt.c (lm_base): Update.
7493 * solib-frv.c (lm_base, main_got): Update.
7494 * solib-irix.c (locate_base): Update.
7495 * solib-som.c (som_solib_create_inferior_hook)
7496 (link_map_start): Update.
7497 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7498 * solib-svr4.c (elf_locate_base, enable_break): Update.
7499 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7500 (flush_ea_cache): Update.
7501 * stabsread.c (define_symbol, scan_file_globals): Update.
7502 * stack.c (find_frame_funname): Update.
7503 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7504 (debug_qf_find_pc_sect_symtab): Update.
7505 * symfile.c (simple_read_overlay_table)
7506 (simple_overlay_update): Update.
7507 * symfile.h (struct quick_symbol_functions)
7508 <find_pc_sect_symtab>: Change type of msymbol to
7509 bound_minimal_symbol.
7510 * symmisc.c (dump_msymbols): Update.
7511 * symtab.c (find_pc_sect_symtab_via_partial)
7512 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7513 (search_symbols, print_msymbol_info): Update.
7514 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7515 (MSYMBOL_VALUE_ADDRESS): Redefine.
7516 (BMSYMBOL_VALUE_ADDRESS): New macro.
7517 * tracepoint.c (scope_info): Update.
7518 * tui/tui-disasm.c (tui_find_disassembly_address)
7519 (tui_get_begin_asm_address): Update.
7520 * valops.c (find_function_in_inferior): Update.
7521 * value.c (value_static_field, value_fn_field): Update.
7522
3b7344d5
TT
75232014-02-26 Tom Tromey <tromey@redhat.com>
7524
7525 * ada-lang.c (ada_update_initial_language): Update.
7526 (ada_main_name, ada_has_this_exception_support): Update.
7527 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7528 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7529 * arm-tdep.c (arm_skip_stub): Update.
7530 * auxv.c (ld_so_xfer_auxv): Update.
7531 * avr-tdep.c (avr_scan_prologue): Update.
7532 * ax-gdb.c (gen_var_ref): Update.
7533 * breakpoint.c (struct breakpoint_objfile_data)
7534 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7535 type to bound_minimal_symbol.
7536 (create_overlay_event_breakpoint)
7537 (create_longjmp_master_breakpoint)
7538 (create_std_terminate_master_breakpoint)
7539 (create_exception_master_breakpoint): Update.
7540 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7541 * c-exp.y (classify_name): Update.
7542 * coffread.c (coff_symfile_read): Update.
7543 * common/agent.c (agent_look_up_symbols): Update.
7544 * d-lang.c (d_main_name): Update.
7545 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7546 * dec-thread.c (enable_dec_thread): Update.
7547 * dwarf2loc.c (call_site_to_target_addr): Update.
7548 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7549 * eval.c (evaluate_subexp_standard): Update.
7550 * findvar.c (struct minsym_lookup_data) <result>: Change type
7551 to bound_minimal_symbol.
7552 <objfile>: Remove.
7553 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7554 * frame.c (inside_main_func): Update.
7555 * frv-tdep.c (frv_frame_this_id): Update.
7556 * gcore.c (call_target_sbrk): Update.
7557 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7558 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7559 Update.
7560 * go-lang.c (go_main_name): Update.
7561 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7562 (hppa_hpux_find_import_stub_for_addr): Update.
7563 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7564 Update. Change return type.
7565 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7566 type.
7567 * jit.c (jit_breakpoint_re_set_internal): Update.
7568 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7569 Update.
7570 * linux-nat.c (get_signo): Update.
7571 * linux-thread-db.c (inferior_has_bug): Update
7572 * m32c-tdep.c (m32c_return_value)
7573 (m32c_m16c_address_to_pointer): Update.
7574 * m32r-tdep.c (m32r_frame_this_id): Update.
7575 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7576 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7577 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7578 lookup_minimal_symbol. Change return type.
7579 (lookup_minimal_symbol): Remove.
7580 (lookup_bound_minimal_symbol): Update.
7581 (lookup_minimal_symbol_text): Change return type.
7582 (lookup_minimal_symbol_solib_trampoline): Change return type.
7583 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7584 (lookup_minimal_symbol_solib_trampoline): Change return type.
7585 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7586 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7587 (value_nsstring, find_imps): Update.
7588 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7589 * p-lang.c (pascal_main_name): Update.
7590 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7591 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7592 * proc-service.c (ps_pglobal_lookup): Update.
7593 * ravenscar-thread.c (get_running_thread_msymbol): Change
7594 return type.
7595 (has_ravenscar_runtime, get_running_thread_id): Update.
7596 * remote.c (remote_check_symbols): Update.
7597 * sol-thread.c (ps_pglobal_lookup): Update.
7598 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7599 * solib-dsbt.c (lm_base): Update.
7600 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7601 Update.
7602 * solib-irix.c (locate_base): Update.
7603 * solib-som.c (som_solib_create_inferior_hook)
7604 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7605 Update.
7606 * solib-spu.c (spu_enable_break): Update.
7607 * solib-svr4.c (elf_locate_base, enable_break): Update.
7608 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7609 (flush_ea_cache): Update.
7610 * stabsread.c (define_symbol): Update.
7611 * symfile.c (simple_read_overlay_table): Update.
7612 * symtab.c (find_pc_sect_line): Update.
7613 * tracepoint.c (scope_info): Update.
7614 * tui-disasm.c (tui_get_begin_asm_address): Update.
7615 * value.c (value_static_field): Update.
7616
40c1a007
TT
76172014-02-26 Tom Tromey <tromey@redhat.com>
7618
7619 * minsyms.c (prim_record_minimal_symbol_full): Use
7620 SET_MSYMBOL_VALUE_ADDRESS.
7621 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7622 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7623 SET_MSYMBOL_VALUE_ADDRESS.
7624 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7625 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7626
efd66ac6
TT
76272014-02-26 Tom Tromey <tromey@redhat.com>
7628
7629 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7630 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7631 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7632 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7633 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7634 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7635 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7636 * ada-lang.c (ada_main_name): Update.
7637 (ada_lookup_simple_minsym): Update.
7638 (ada_make_symbol_completion_list): Update.
7639 (ada_add_standard_exceptions): Update.
7640 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7641 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7642 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7643 * arm-tdep.c (skip_prologue_function): Update.
7644 (arm_skip_stack_protector, arm_skip_stub): Update.
7645 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7646 (arm_wince_skip_main_prologue): Update.
7647 * auxv.c (ld_so_xfer_auxv): Update.
7648 * avr-tdep.c (avr_scan_prologue): Update.
7649 * ax-gdb.c (gen_var_ref): Update.
7650 * block.c (call_site_for_pc): Update.
7651 * blockframe.c (get_pc_function_start): Update.
7652 (find_pc_partial_function_gnu_ifunc): Update.
7653 * breakpoint.c (create_overlay_event_breakpoint): Update.
7654 (create_longjmp_master_breakpoint): Update.
7655 (create_std_terminate_master_breakpoint): Update.
7656 (create_exception_master_breakpoint): Update.
7657 (resolve_sal_pc): Update.
7658 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7659 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7660 Update.
7661 * c-valprint.c (c_val_print): Update.
7662 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7663 * coffread.c (coff_symfile_read): Update.
7664 * common/agent.c (agent_look_up_symbols): Update.
7665 * dbxread.c (find_stab_function_addr): Update.
7666 (end_psymtab): Update.
7667 * dwarf2loc.c (call_site_to_target_addr): Update.
7668 (func_verify_no_selftailcall): Update.
7669 (tailcall_dump): Update.
7670 (call_site_find_chain_1): Update.
7671 (dwarf_expr_reg_to_entry_parameter): Update.
7672 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7673 (elf_gnu_ifunc_resolve_by_got): Update.
7674 * f-valprint.c (info_common_command): Update.
7675 * findvar.c (read_var_value): Update.
7676 * frame.c (get_prev_frame_1): Update.
7677 (inside_main_func): Update.
7678 * frv-tdep.c (frv_skip_main_prologue): Update.
7679 (frv_frame_this_id): Update.
7680 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7681 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7682 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7683 (gnuv3_skip_trampoline): Update.
7684 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7685 (hppa64_hpux_in_solib_call_trampoline): Update.
7686 (hppa_hpux_skip_trampoline_code): Update.
7687 (hppa64_hpux_search_dummy_call_sequence): Update.
7688 (hppa_hpux_find_import_stub_for_addr): Update.
7689 (hppa_hpux_find_dummy_bpaddr): Update.
7690 * hppa-tdep.c (hppa_symbol_address)
7691 (hppa_lookup_stub_minimal_symbol): Update.
7692 * i386-tdep.c (i386_skip_main_prologue): Update.
7693 (i386_pe_skip_trampoline_code): Update.
7694 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7695 * infcall.c (get_function_name): Update.
7696 * infcmd.c (until_next_command): Update.
7697 * jit.c (jit_breakpoint_re_set_internal): Update.
7698 (jit_inferior_init): Update.
7699 * linespec.c (minsym_found): Update.
7700 (add_minsym): Update.
7701 * linux-fork.c (info_checkpoints_command): Update.
7702 * linux-nat.c (get_signo): Update.
7703 * linux-thread-db.c (inferior_has_bug): Update.
7704 * m32c-tdep.c (m32c_return_value): Update.
7705 (m32c_m16c_address_to_pointer): Update.
7706 (m32c_m16c_pointer_to_address): Update.
7707 * m32r-tdep.c (m32r_frame_this_id): Update.
7708 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7709 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7710 * maint.c (maintenance_translate_address): Update.
7711 * minsyms.c (add_minsym_to_hash_table): Update.
7712 (add_minsym_to_demangled_hash_table): Update.
7713 (msymbol_objfile): Update.
7714 (lookup_minimal_symbol): Update.
7715 (iterate_over_minimal_symbols): Update.
7716 (lookup_minimal_symbol_text): Update.
7717 (lookup_minimal_symbol_by_pc_name): Update.
7718 (lookup_minimal_symbol_solib_trampoline): Update.
7719 (lookup_minimal_symbol_by_pc_section_1): Update.
7720 (lookup_minimal_symbol_and_objfile): Update.
7721 (prim_record_minimal_symbol_full): Update.
7722 (compare_minimal_symbols): Update.
7723 (compact_minimal_symbols): Update.
7724 (build_minimal_symbol_hash_tables): Update.
7725 (install_minimal_symbols): Update.
7726 (terminate_minimal_symbol_table): Update.
7727 (find_solib_trampoline_target): Update.
7728 (minimal_symbol_upper_bound): Update.
7729 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7730 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7731 (mips_skip_pic_trampoline_code): Update.
7732 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7733 * objc-lang.c (selectors_info): Update.
7734 (classes_info): Update.
7735 (find_methods): Update.
7736 (find_imps): Update.
7737 (find_objc_msgsend): Update.
7738 * objfiles.c (objfile_relocate1): Update.
7739 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7740 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7741 * p-valprint.c (pascal_val_print): Update.
7742 * parse.c (write_exp_msymbol): Update.
7743 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7744 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7745 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7746 * printcmd.c (build_address_symbolic): Update.
7747 (sym_info): Update.
7748 (address_info): Update.
7749 * proc-service.c (ps_pglobal_lookup): Update.
7750 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7751 (find_pc_sect_psymtab): Update.
7752 * python/py-framefilter.c (py_print_frame): Update.
7753 * ravenscar-thread.c (get_running_thread_id): Update.
7754 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7755 Update.
7756 * remote.c (remote_check_symbols): Update.
7757 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7758 (rs6000_skip_trampoline_code): Update.
7759 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7760 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7761 * solib-dsbt.c (lm_base): Update.
7762 * solib-frv.c (lm_base): Update.
7763 (main_got): Update.
7764 * solib-irix.c (locate_base): Update.
7765 * solib-som.c (som_solib_create_inferior_hook): Update.
7766 (som_solib_desire_dynamic_linker_symbols): Update.
7767 (link_map_start): Update.
7768 * solib-spu.c (spu_enable_break): Update.
7769 (ocl_enable_break): Update.
7770 * solib-svr4.c (elf_locate_base): Update.
7771 (enable_break): Update.
7772 * spu-tdep.c (spu_get_overlay_table): Update.
7773 (spu_catch_start): Update.
7774 (flush_ea_cache): Update.
7775 * stabsread.c (define_symbol): Update.
7776 (scan_file_globals): Update.
7777 * stack.c (find_frame_funname): Update.
7778 (frame_info): Update.
7779 * symfile.c (simple_read_overlay_table): Update.
7780 (simple_overlay_update): Update.
7781 * symmisc.c (dump_msymbols): Update.
7782 * symtab.c (fixup_section): Update.
7783 (find_pc_sect_line): Update.
7784 (skip_prologue_sal): Update.
7785 (search_symbols): Update.
7786 (print_msymbol_info): Update.
7787 (rbreak_command): Update.
7788 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7789 (completion_list_objc_symbol): Update.
7790 (default_make_symbol_completion_list_break_on): Update.
7791 * tracepoint.c (scope_info): Update.
7792 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7793 (tui_get_begin_asm_address): Update.
7794 * valops.c (find_function_in_inferior): Update.
7795 * value.c (value_static_field): Update.
7796 (value_fn_field): Update.
7797
50e65b17
TT
77982014-02-26 Tom Tromey <tromey@redhat.com>
7799
7800 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7801 bound minimal symbols. Move code that knows about minsym
7802 table layout...
7803 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7804 function.
7805 * minsyms.h (minimal_symbol_upper_bound): Declare.
7806 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7807 minimal_symbol_upper_bound.
7808
1b588015
JB
78092014-02-27 Joel Brobecker <brobecker@adacore.com>
7810
7811 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7812 Use the type's name if its basic type does not have a tag.
7813
dbb9c2b1
JB
78142014-02-27 Joel Brobecker <brobecker@adacore.com>
7815
7816 * dwarf2read.c (read_subrange_type): Add comment.
7817
55426c9d
JB
78182014-02-27 Joel Brobecker <brobecker@adacore.com>
7819
7820 * dwarf2read.c (update_enumeration_type_from_children): New
7821 function, mostly extracted from process_structure_scope.
7822 (read_enumeration_type): Call update_enumeration_type_from_children.
7823 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7824 and flag_flag_enum fields.
7825
f2fce0ca
PA
78262014-02-26 Pedro Alves <palves@redhat.com>
7827
7828 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7829 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7830 to_xfer_partial method.
7831
7a44e40e
PA
78322014-02-26 Pedro Alves <palves@redhat.com>
7833
7834 * target.c (complete_target_initialization): Don't install
7835 default_xfer_partial as to_xfer_partial hook.
7836 (nomemory): Delete.
7837 (update_current_target): Don't INHERIT nor de_fault
7838 deprecated_xfer_memory. Delete de_fault macro.
7839 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7840 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7841 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7842 field.
7843
bd265cd0
PA
78442014-02-26 Pedro Alves <palves@redhat.com>
7845
7846 * go32-nat.c (my_write_child): New function.
7847 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7848 (go32_xfer_partial): New function.
7849 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7850 Instead install a to_xfer_partial hook.
7851
9d46c4e5
PA
78522014-02-26 Pedro Alves <palves@redhat.com>
7853
7854 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7855 to_xfer_partial helper. Rewrite.
7856 (procfs_xfer_partial): New function.
7857 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7858 Install a to_xfer_partial hook.
7859
a1583b1f
PA
78602014-02-26 Pedro Alves <palves@redhat.com>
7861
7862 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7863 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7864 (m32r_xfer_partial): New function.
7865 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7866 Install a to_xfer_partial hook.
7867
6df1b29f
PA
78682014-02-26 Pedro Alves <palves@redhat.com>
7869
7870 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7871 helper.
7872 (mips_xfer_partial): New function.
7873 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7874 hook. Install a to_xfer_partial hook.
7875
dc53a7ad
JB
78762014-02-26 Joel Brobecker <brobecker@adacore.com>
7877
7878 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7879 * gdbtypes.c (create_array_type_with_stride): New function,
7880 renaming create_array_type, but with an added parameter
7881 called "bit_stride".
7882 (create_array_type): Re-implement using
7883 create_array_type_with_stride.
7884 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7885 and DW_AT_bit_stride attributes.
7886
12ab52e9
PA
78872014-02-26 Pedro Alves <palves@redhat.com>
7888
7889 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7890 task-specific breakpoints.
7891
d16461ae
PA
78922014-02-25 Pedro Alves <palves@redhat.com>
7893
7894 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7895 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7896
a8b16220
SS
78972014-02-25 Stan Shebs <stan@codesourcery.com>
7898
7899 * defs.h: Annotate comments for Doxygen.
7900
b9e795ee
TT
79012014-02-25 Tom Tromey <tromey@redhat.com>
7902
7903 * target.h (target_ignore): Don't declare.
7904 * target.c (target_ignore): Remove.
7905
849c862e
JK
79062014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7907
7908 PR gdb/16626
7909 * auto-load.c (auto_load_objfile_script_1): Change filename to
7910 debugfile.
7911
475109d8
JB
79122014-02-25 Joel Brobecker <brobecker@adacore.com>
7913
7914 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7915 documentation. Adjust prototype to match the target_ops
7916 to_xfer_partial method. Adjust implementation accordingly.
7917
e186c3bd
HZ
79182014-02-25 Hui Zhu <hui@codesourcery.com>
7919
7920 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7921 to_traceframe_info.
7922
6d451942
KB
79232014-02-25 Kevin Buettner <kevinb@redhat.com>
7924
041ab8b4 7925 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7926 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7927 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7928 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7929 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7930 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7931 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7932 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7933 New constants.
7934 (rl78_register_type): Use a data pointer type for SP and
7935 new pseudo registers mentioned above. Use a 16 bit integer
7936 type for all other register pairs.
7937 (rl78_register_name, rl78_g10_register_name): Update for
7938 new pseudo registers.
7939 (rl78_pseudo_register_read): Likewise.
7940 (rl78_pseudo_register_write): Likewise.
7941 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7942 to the newly added pseudo registers.
7943
eddf0bae
DE
79442014-02-24 Doug Evans <dje@google.com>
7945
7946 * value.c (record_latest_value): Fix comment.
7947 * printcmd.c (print_command_1): Remove code to handle -1 return from
7948 record_latest_value.
7949
e96027e0
PA
79502014-02-24 Pedro Alves <palves@redhat.com>
7951
7952 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7953 deprecated_xfer_memory hook.
7954 (procfs_xfer_partial): Call procfs_xfer_memory instead
7955 of the deprecated_xfer_memory target hook.
7956 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7957 helper.
7958
0837c976
YZ
79592014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7960
7961 * windows-nat.c (windows_xfer_shared_libraries): Return
7962 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7963 requested object is TARGET_OBJECT_LIBRARIES.
7964
bc113b4e
YQ
79652014-02-24 Yao Qi <yao@codesourcery.com>
7966
7967 * target.h (enum target_xfer_status)
7968 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7969 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7970 explicitly. New.
7971 * corefile.c (memory_error_message): User updated.
7972 * exec.c (section_table_read_available_memory): Likewise.
7973 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7974 * target.c (target_xfer_status_to_string): Likewise.
7975 (raw_memory_xfer_partial): Likewise.
7976 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7977 * valops.c (read_value_memory): Likewise.
7978 * exec.h: Update comments.
7979
01cb8804
YQ
79802014-02-24 Yao Qi <yao@codesourcery.com>
7981
7982 * target.c (target_xfer_status_to_string): Rename argument err
7983 to status.
7984 * target.h (target_xfer_status_to_string): Update declaration.
7985 Replace target_xfer_error_to_string with
7986 target_xfer_status_to_string in comment.
7987
93063aa6
YQ
79882014-02-24 Yao Qi <yao@codesourcery.com>
7989
7990 * mips-linux-nat.c (super_close): Update its type.
7991 (mips_linux_close): Pass 'self' to super_close.
7992
5c328c05
YQ
79932014-02-24 Yao Qi <yao@codesourcery.com>
7994
7995 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7996 * corefile.c (read_memory): Adjusted.
7997 * target.c (target_write_with_progress): Adjusted.
7998
f73023dd
YQ
79992014-02-23 Yao Qi <yao@codesourcery.com>
8000
8001 Revert two patches:
8002
8003 2013-10-25 Yao Qi <yao@codesourcery.com>
8004
8005 * remote.c (remote_traceframe_info): Return early if
8006 traceframe is not selected.
8007
8008 2013-07-19 Yao Qi <yao@codesourcery.com>
8009
8010 * target.c (update_current_target): Change the default action
8011 of 'to_traceframe_info' from tcomplain to return_zero.
8012 * target.h (struct target_ops) <to_traceframe_info>: Add more
8013 comments.
8014
5a2eb0ef
YQ
80152014-02-23 Yao Qi <yao@codesourcery.com>
8016
8017 * valops.c (read_value_memory): Rewrite it. Call
8018 target_xfer_partial in a loop.
8019 * exec.h (section_table_available_memory): Remove declaration.
8020 Move comments to ...
8021 * exec.c (section_table_available_memory): ... here. Make it
8022 static.
8023
1ee79381
YQ
80242014-02-23 Yao Qi <yao@codesourcery.com>
8025
8026 * exec.c (section_table_read_available_memory): New function.
8027 * exec.h (section_table_read_available_memory): Declare.
8028 * ctf.c (ctf_xfer_partial): Call
8029 section_table_read_available_memory.
8030 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8031
1ca49d37
YQ
80322014-02-23 Yao Qi <yao@codesourcery.com>
8033
8034 * ctf.c (ctf_xfer_partial): Move code to ...
8035 * exec.c (exec_read_partial_read_only): ... it. New function.
8036 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8037 * tracefile.c: Include "exec.h".
8038 * exec.h (exec_read_partial_read_only): Declare.
8039
a283690e
YQ
80402014-02-23 Yao Qi <yao@codesourcery.com>
8041
8042 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8043 (tfile_has_memory): Remove.
8044 (init_tfile_ops): Don't set fields to_has_all_memory and
8045 to_has_memory of tfile_ops.
8046 * tracefile.c (tracefile_has_all_memory): New function.
8047 (tracefile_has_memory): New function.
8048 (init_tracefile_ops): Initialize fields to_has_all_memory and
8049 to_has_memory of 'ops'.
8050
12e03cd0
YQ
80512014-02-23 Yao Qi <yao@codesourcery.com>
8052
8053 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8054 (ctf_thread_alive, ctf_get_trace_status): Remove.
8055 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8056 init_tracefile_ops.
8057 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8058 (tfile_has_stack, tfile_has_registers): Remove.
8059 (tfile_thread_alive): Remove.
8060 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8061 init_tracefile_ops.
8062 * tracefile.c (tracefile_has_stack): New function.
8063 (tracefile_has_registers): New function.
8064 (tracefile_thread_alive): New function.
8065 (tracefile_get_trace_status): New function.
8066 (init_tracefile_ops): New function.
8067 * tracefile.h (init_tracefile_ops): Declare.
8068
11395323
YQ
80692014-02-23 Yao Qi <yao@codesourcery.com>
8070
8071 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8072 (O_LARGEFILE): Likewise.
8073 (tfile_ops): Likewise.
8074 (TRACE_HEADER_SIZE): Likewise.
8075 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8076 (cur_data_size): Likewise.
8077 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8078 (tfile_close, tfile_files_info): Likewise.
8079 (tfile_get_trace_status): Likewise.
8080 (tfile_get_tracepoint_status): Likewise.
8081 (tfile_get_traceframe_address): Likewise.
8082 (tfile_trace_find, match_blocktype): Likewise.
8083 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8084 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8085 (tfile_get_trace_state_variable_value): Likewise.
8086 (tfile_has_all_memory, tfile_has_memory): Likewise.
8087 (tfile_has_stack, tfile_has_registers): Likewise.
8088 (tfile_thread_alive, build_traceframe_info): Likewise.
8089 (tfile_traceframe_info, init_tfile_ops): Likewise.
8090 (_initialize_tracepoint): Don't call init_tfile_ops
8091 and add_target_with_completer.
8092 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8093 exec.h, completer.h and filenames.h.
8094 (_initialize_tracefile_tfile): New function.
8095
7951c4eb
YQ
80962014-02-23 Yao Qi <yao@codesourcery.com>
8097
8098 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8099 tracefile-tfile.o.
8100 (HFILES_NO_SRCDIR): Add tracefile.h.
8101 * ctf.c: Include "tracefile.h".
8102 * tracefile.h: New file.
8103 * tracefile.c: New file
8104 * tracefile-tfile.c: New file.
8105 * tracepoint.c: Include "tracefile.h".
8106 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8107 (stop_reason_names): Add const.
8108 (trace_file_writer_xfree): Move it to tracefile.c.
8109 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8110 (trace_save_ctf): Likewise.
8111 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8112 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8113 (tfile_write_header, tfile_write_regblock_type): Likewise.
8114 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8115 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8116 (tfile_write_raw_data, tfile_end): Likewise.
8117 (tfile_trace_file_writer_new): Likewise.
8118 (free_uploaded_tp): Make it extern.
8119 (free_uploaded_tsv): Make it extern.
8120 (_initialize_tracepoint): Move code to register command 'tsave'
8121 to tracefile.c.
8122 * tracepoint.h (stop_reason_names): Declare.
8123 (struct trace_frame_write_ops): Move it to tracefile.h.
8124 (struct trace_file_write_ops): Likewise.
8125 (struct trace_file_writer): Likewise.
8126 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8127
184cd072
JK
81282014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 PR gdb/16594
8131 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8132 process name.
8133 (get_cores_used_by_process): New parameter num_cores, use it.
8134 (linux_xfer_osdata_processes): Pass num_cores to it.
8135 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8136 process name.
8137
c63528fc
AK
81382014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8139
8140 * target.c (memory_xfer_partial): Fix length arg in call to
8141 breakpoint_xfer_memory.
8142
d7b30f67
SDJ
81432014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8144
8145 PR tdep/16397
8146 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8147 number comes after the + or - signs. Adjust length of register
8148 name to be extracted.
8149
8838afaf
TT
81502014-02-20 Tom Tromey <tromey@redhat.com>
8151
8152 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8153 (ada_varobj_ops): Mark "extern".
8154
05227d14
TT
81552014-02-20 Tom Tromey <tromey@redhat.com>
8156
8157 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8158
1254eefc
DE
81592014-02-20 Doug Evans <xdje42@gmail.com>
8160
8161 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8162 All callers updated.
8163 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8164 All callers updated.
8165 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8166 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8167
adde2bff
DE
81682014-02-20 lin zuojian <manjian2006@gmail.com>
8169 Joel Brobecker <brobecker@adacore.com>
8170 Doug Evans <xdje42@gmail.com>
8171
8172 PR symtab/16581
8173 * dwarf2read.c (struct die_info): New member in_process.
8174 (reset_die_in_process): New function.
8175 (process_die): Set it at the start, reset when returning.
8176 (inherit_abstract_dies): Only call process_die if origin_child_die
8177 not already being processed.
8178
3be75f87
JB
81792014-02-20 Joel Brobecker <brobecker@adacore.com>
8180
8181 * windows-nat.c (handle_unload_dll): Add function documentation.
8182 (do_initial_windows_stuff): Add comment explaining why we wait
8183 until after inferior initialization has finished before
8184 processing all DLLs.
8185
47f7ffdb
JB
81862014-02-20 Joel Brobecker <brobecker@adacore.com>
8187
8188 * windows-nat.c (get_module_name): Delete.
8189 (windows_get_exec_module_filename): New function, mostly
8190 inspired from get_module_name.
8191 (windows_pid_to_exec_file): Replace call to get_module_name
8192 by call to windows_get_exec_module_filename.
8193
1cd9feab
JB
81942014-02-20 Joel Brobecker <brobecker@adacore.com>
8195
8196 * windows-nat.c (handle_load_dll): Rewrite this function's
8197 introductory comment. Remove code using get_module_name
8198 to get the DLL's name.
8199
ea39ad35
JB
82002014-02-20 Joel Brobecker <brobecker@adacore.com>
8201
8202 * windows-nat.c (get_windows_debug_event): Ignore
8203 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8204 if windows_initialization_done == 0.
8205 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8206 Adjust implementation to always load all DLLs.
8207 (do_initial_windows_stuff): Replace call to
8208 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8209
95060284
JB
82102014-02-20 Joel Brobecker <brobecker@adacore.com>
8211
8212 * windows-nat.c (_initialize_windows_nat): Deprecate the
8213 "dll-symbols" command. Turn the "add-shared-symbol-files"
8214 and "assf" aliases into commands, and deprecate them as well.
8215 * NEWS: Add entry explaining that "dll-symbols" and its two
8216 aliases are now deprecated.
8217
8d4fdb12
JB
82182014-02-20 Joel Brobecker <brobecker@adacore.com>
8219
8220 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8221 new-line in debug string. Remove trailing spaces.
8222
1b281443
SS
82232014-02-19 Stan Shebs <stan@codesourcery.com>
8224
8225 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8226
f7bd0f78
SC
82272014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8228
8229 * NEWS: Add entry for the new feature
8230 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8231 and class values.
8232
399ebc3d
SS
82332014-02-19 Stan Shebs <stan@codesourcery.com>
8234
8235 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8236
c658158d
PA
82372014-02-19 Pedro Alves <palves@redhat.com>
8238
8239 * common/ptid.h (struct ptid): Mention that process_stratum
8240 targets should prefer ptid.lwp.
8241
ba348170
PA
82422014-02-19 Pedro Alves <palves@redhat.com>
8243
8244 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8245 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8246 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8247 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8248 store remote thread ids rather than ptid.tid.
8249 (_initialize_remote): Adjust.
8250
ac01945b
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target.c (target_get_unwinder): Rewrite.
8254 (target_get_tailcall_unwinder): Rewrite.
8255 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8256 (record_btrace_to_get_tailcall_unwinder): New function.
8257 (init_record_btrace_ops): Update.
8258 * target.h (struct target_ops) <to_get_unwinder,
8259 to_get_tailcall_unwinder>: Now function pointers. Use
8260 TARGET_DEFAULT_RETURN.
8261
8476dc92
TT
82622014-02-19 Tom Tromey <tromey@redhat.com>
8263
8264 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8265 argument.
8266 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8267
c0eca49f
TT
82682014-02-19 Tom Tromey <tromey@redhat.com>
8269
8270 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8271 directly.
8272 * target-delegates.c: Rebuild.
8273 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8274 TARGET_DEFAULT_FUNC.
8275 * target.c (default_target_decr_pc_after_break): Rename from
8276 forward_target_decr_pc_after_break. Simplify.
8277 (target_decr_pc_after_break): Rely on delegation.
8278
596b6b39
TT
82792014-02-19 Tom Tromey <tromey@redhat.com>
8280
8281 * target.c (update_current_target): Do not INHERIT to_doc or
8282 to_magic. Do not de_fault to_open or to_close.
8283
b427c1bc
TT
82842014-02-19 Tom Tromey <tromey@redhat.com>
8285
8286 * gcore.h (objfile_find_memory_regions): Declare.
8287 * gcore.c (objfile_find_memory_regions): No longer static. Add
8288 "self" argument.
8289 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8290 * exec.c: Include gcore.h.
8291 (exec_set_find_memory_regions): Remove.
8292 (exec_find_memory_regions): Remove.
8293 (exec_do_find_memory_regions): Remove.
8294 (init_exec_ops): Update.
8295 * defs.h (exec_set_find_memory_regions): Remove.
8296
9b144037
TT
82972014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target-delegates.c: Rebuild.
8300 * target.h (struct target_ops) <to_extra_thread_info,
8301 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8302 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8303 not 0, in TARGET_DEFAULT_RETURN.
8304
555bbdeb
TT
83052014-02-19 Tom Tromey <tromey@redhat.com>
8306
8307 * target.c (complete_target_initialization): Remove casts. Use
8308 return_zero_has_execution.
8309 (return_zero): Add "ignore" argument.
8310 (return_zero_has_execution): New function.
8311 (init_dummy_target): Remove casts. Use
8312 return_zero_has_execution.
8313
be4ddd36
TT
83142014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target.c (update_current_target): Update comments. Do not
8317 INHERIT to_stratum.
8318
2117c711
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8322 needed.
8323 * corelow.c (core_read_description): Delegate when needed.
8324 * remote.c (remote_read_description): Delegate when needed.
8325 * target-delegates.c: Rebuild.
8326 * target.c (target_read_description): Rewrite.
8327 * target.h (struct target_ops) <to_read_description>: Update
8328 comment. Use TARGET_DEFAULT_RETURN.
8329
e88ef65c
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_can_run.
8335 (find_default_run_target): Check against delegate_can_run.
8336 * target.h (struct target_ops) <to_can_run>: Use
8337 TARGET_DEFAULT_RETURN.
8338
86a0854a
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_disconnect): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_disconnect>: Use
8344 TARGET_DEFAULT_NORETURN.
8345
ee97f592
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * record.c (record_stop): Unconditionally delegate.
8349 * target-delegates.c: Rebuild.
8350 * target.c (target_stop_recording): Unconditionally delegate.
8351 * target.h (struct target_ops) <to_stop_recording>: Use
8352 TARGET_DEFAULT_IGNORE.
8353
6dc7fcf4
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target-delegates.c: Rebuild.
8357 * target.c (target_enable_btrace): Unconditionally delegate.
8358 * target.h (struct target_ops) <to_enable_btrace>: Use
8359 TARGET_DEFAULT_NORETURN.
8360
eb5b20d4
TT
83612014-02-19 Tom Tromey <tromey@redhat.com>
8362
8363 * target-delegates.c: Rebuild.
8364 * target.c (target_read_btrace): Unconditionally delegate.
8365 * target.h (struct target_ops) <to_read_btrace>: Use
8366 TARGET_DEFAULT_NORETURN.
8367
9ace480d
TT
83682014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target-delegates.c: Rebuild.
8371 * target.c (target_teardown_btrace): Unconditionally delegate.
8372 * target.h (struct target_ops) <to_teardown_btrace>: Use
8373 TARGET_DEFAULT_NORETURN.
8374
8dc292d3
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (target_disable_btrace): Unconditionally delegate.
8379 * target.h (struct target_ops) <to_disable_btrace>: Use
8380 TARGET_DEFAULT_NORETURN.
8381
58a5184e
TT
83822014-02-19 Tom Tromey <tromey@redhat.com>
8383
8384 * target-delegates.c: Rebuild.
8385 * target.c (default_search_memory): New function.
8386 (simple_search_memory): Update comment.
8387 (target_search_memory): Unconditionally delegate.
8388 * target.h (struct target_ops) <to_search_memory>: Use
8389 TARGET_DEFAULT_FUNC.
8390
8de71aab
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * auxv.c (default_auxv_parse): No longer static.
8394 (target_auxv_parse): Unconditionally delegate.
8395 * auxv.h (default_auxv_parse): Declare.
8396 * target-delegates.c: Rebuild.
8397 * target.c: Include auxv.h.
8398 * target.h (struct target_ops) <to_auxv_parse>: Use
8399 TARGET_DEFAULT_FUNC.
8400
6b2c5a57
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_memory_map): Unconditionally delegate.
8405 * target.h (struct target_ops) <to_memory_map>: Use
8406 TARGET_DEFAULT_RETURN.
8407
cbffc065
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (target_thread_alive): Unconditionally delegate.
8412 * target.h (struct target_ops) <to_thread_alive>: Use
8413 TARGET_DEFAULT_RETURN.
8414
f09e2107
TT
84152014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_save_record): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_save_record>: Use
8420 TARGET_DEFAULT_NORETURN.
8421
07366925
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (target_delete_record): Unconditionally delegate.
8426 * target.h (struct target_ops) <to_delete_record>: Use
8427 TARGET_DEFAULT_NORETURN.
8428
dd2e9d25
TT
84292014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target-delegates.c: Rebuild.
8432 * target.c (target_record_is_replaying): Unconditionally
8433 delegate.
8434 * target.h (struct target_ops) <to_record_is_replaying>: Use
8435 TARGET_DEFAULT_RETURN.
8436
671e76cc
TT
84372014-02-19 Tom Tromey <tromey@redhat.com>
8438
8439 * target-delegates.c: Rebuild.
8440 * target.c (target_goto_record_begin): Unconditionally delegate.
8441 * target.h (struct target_ops) <to_goto_record_begin>: Use
8442 TARGET_DEFAULT_NORETURN.
8443
e9179bb3
TT
84442014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (target_goto_record_end): Unconditionally delegate.
8448 * target.h (struct target_ops) <to_goto_record_end>: Use
8449 TARGET_DEFAULT_NORETURN.
8450
05969c84
TT
84512014-02-19 Tom Tromey <tromey@redhat.com>
8452
8453 * target-delegates.c: Rebuild.
8454 * target.c (target_goto_record): Unconditionally delegate.
8455 * target.h (struct target_ops) <to_goto_record>: Use
8456 TARGET_DEFAULT_NORETURN.
8457
3679abfa
TT
84582014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (target_insn_history): Unconditionally delegate.
8462 * target.h (struct target_ops) <to_insn_history>: Use
8463 TARGET_DEFAULT_NORETURN.
8464
8444ab58
TT
84652014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target-delegates.c: Rebuild.
8468 * target.c (target_insn_history_from): Unconditionally delegate.
8469 * target.h (struct target_ops) <to_insn_history_from>: Use
8470 TARGET_DEFAULT_NORETURN.
8471
c29302cc
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target-delegates.c: Rebuild.
8475 * target.c (target_insn_history_range): Unconditionally delegate.
8476 * target.h (struct target_ops) <to_insn_history_range>: Use
8477 TARGET_DEFAULT_NORETURN.
8478
170049d4
TT
84792014-02-19 Tom Tromey <tromey@redhat.com>
8480
8481 * target-delegates.c: Rebuild.
8482 * target.c (target_call_history): Unconditionally delegate.
8483 * target.h (struct target_ops) <to_call_history>: Use
8484 TARGET_DEFAULT_NORETURN.
8485
16fc27d6
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (target_call_history_from): Unconditionally delegate.
8490 * target.h (struct target_ops) <to_call_history_from>: Use
8491 TARGET_DEFAULT_NORETURN.
8492
115d9817
TT
84932014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * target-delegates.c: Rebuild.
8496 * target.c (target_call_history_range): Unconditionally delegate.
8497 * target.h (struct target_ops) <to_call_history_range>: Use
8498 TARGET_DEFAULT_NORETURN.
8499
eb276a6b
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (target_verify_memory): Unconditionally delegate.
8504 * target.h (struct target_ops) <to_verify_memory>: Use
8505 TARGET_DEFAULT_NORETURN.
8506
9e538d0d
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (target_core_of_thread): Unconditionally delegate.
8511 * target.h (struct target_ops) <to_core_of_thread>: Use
8512 TARGET_DEFAULT_RETURN.
8513
f6fb2925
TT
85142014-02-19 Tom Tromey <tromey@redhat.com>
8515
8516 * target-delegates.c: Rebuild.
8517 * target.c (target_flash_done): Unconditionally delegate.
8518 * target.h (struct target_ops) <to_flash_done>: Use
8519 TARGET_DEFAULT_NORETURN.
8520
e8a6c6ac
TT
85212014-02-19 Tom Tromey <tromey@redhat.com>
8522
8523 * target-delegates.c: Rebuild.
8524 * target.c (target_flash_erase): Unconditionally delegate.
8525 * target.h (struct target_ops) <to_flash_erase>: Use
8526 TARGET_DEFAULT_NORETURN.
8527
7e35c012
TT
85282014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target-delegates.c: Rebuild.
8531 * target.c (target_get_section_table): Unconditionally delegate.
8532 * target.h (struct target_ops) <to_get_section_table>: Use
8533 TARGET_DEFAULT_RETURN.
8534
770234d3
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target-delegates.c: Rebuild.
8538 * target.c (target_pid_to_str): Unconditionally delegate.
8539 (init_dummy_target): Don't initialize to_pid_to_str.
8540 (default_pid_to_str): Rename from dummy_pid_to_str.
8541 * target.h (struct target_ops) <to_pid_to_str>: Use
8542 TARGET_DEFAULT_FUNC.
8543
09b0dc2b
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (target_find_new_threads): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_find_new_threads>: Use
8549 TARGET_DEFAULT_RETURN.
8550
7d4f8efa
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_program_signals): Unconditionally delegate.
8555 * target.h (struct target_ops) <to_program_signals>: Use
8556 TARGET_DEFAULT_IGNORE.
8557
035cad7f
TT
85582014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target-delegates.c: Rebuild.
8561 * target.c (target_pass_signals): Unconditionally delegate.
8562 * target.h (struct target_ops) <to_pass_signals>: Use
8563 TARGET_DEFAULT_IGNORE.
8564
8d657035
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target-delegates.c: Rebuild.
8568 * target.c (default_mourn_inferior): New function.
8569 (target_mourn_inferior): Unconditionally delegate.
8570 * target.h (struct target_ops) <to_mourn_inferior>: Use
8571 TARGET_DEFAULT_FUNC.
8572
098dba18
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target-delegates.c: Rebuild.
8576 * target.c (default_follow_fork): New function.
8577 (target_follow_fork): Unconditionally delegate.
8578 * target.h (struct target_ops) <to_follow_fork>: Use
8579 TARGET_DEFAULT_FUNC.
8580
423a4807
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (target_kill): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_kill>: Use
8586 TARGET_DEFAULT_NORETURN.
8587
6c7e5e5c
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (target_masked_watch_num_registers): Unconditionally
8592 delegate.
8593 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8594 Use TARGET_DEFAULT_RETURN.
8595
8b1c364c
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (target_remove_mask_watchpoint): Unconditionally
8600 delegate.
8601 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8602 TARGET_DEFAULT_RETURN.
8603
cd4ae029
TT
86042014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (target_insert_mask_watchpoint): Unconditionally
8608 delegate.
8609 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8610 TARGET_DEFAULT_RETURN.
8611
a134316b
TT
86122014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target-delegates.c: Rebuild.
8615 * target.c (target_ranged_break_num_registers): Unconditionally
8616 delegate.
8617 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8618 Use TARGET_DEFAULT_RETURN.
8619
ad5989bd
TT
86202014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target-delegates.c: Rebuild.
8623 * target.c (target_fetch_registers): Unconditionally delegate.
8624 * target.h (struct target_ops) <to_fetch_registers>: Use
8625 TARGET_DEFAULT_NORETURN.
8626
46ee7e8d
TT
86272014-02-19 Tom Tromey <tromey@redhat.com>
8628
8629 * target-delegates.c: Rebuild.
8630 * target.c (update_current_target): Don't inherit or default
8631 to_stop.
8632 * target.h (struct target_ops) <to_stop>: Use
8633 TARGET_DEFAULT_IGNORE.
8634
843f59ed
TT
86352014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * target-delegates.c: Rebuild.
8638 * target.c (update_current_target): Don't inherit or default
8639 to_can_run_breakpoint_commands.
8640 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8641 Use TARGET_DEFAULT_RETURN.
8642
ccfde2a0
TT
86432014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target-delegates.c: Rebuild.
8646 * target.c (update_current_target): Don't inherit or default
8647 to_supports_evaluation_of_breakpoint_conditions.
8648 * target.h (struct target_ops)
8649 <to_supports_evaluation_of_breakpoint_conditions>: Use
8650 TARGET_DEFAULT_RETURN.
8651
0de91722
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_augmented_libraries_svr4_read.
8657 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8658 Use TARGET_DEFAULT_RETURN.
8659
9a7d8b48
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8664 to_can_use_agent.
8665 * target.h (struct target_ops) <to_can_use_agent>: Use
8666 TARGET_DEFAULT_RETURN.
8667
d9db5b21
TT
86682014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8672 to_use_agent.
8673 * target.h (struct target_ops) <to_use_agent>: Use
8674 TARGET_DEFAULT_NORETURN.
8675
92155eeb
TT
86762014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_traceframe_info.
8681 (return_null): Remove.
8682 * target.h (struct target_ops) <to_traceframe_info>: Use
8683 TARGET_DEFAULT_RETURN.
8684
d6522a22
TT
86852014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_static_tracepoint_markers_by_strid.
8690 * target.h (struct target_ops)
8691 <to_static_tracepoint_markers_by_strid>: Use
8692 TARGET_DEFAULT_NORETURN.
8693
4c3e4425
TT
86942014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_static_tracepoint_marker_at.
8699 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8700 Use TARGET_DEFAULT_RETURN.
8701
dcd6917f
TT
87022014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_set_permissions.
8707 * target.h (struct target_ops) <to_set_permissions>: Use
8708 TARGET_DEFAULT_IGNORE.
8709
22bcceee
TT
87102014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_get_tib_address.
8715 * target.h (struct target_ops) <to_get_tib_address>: Use
8716 TARGET_DEFAULT_NORETURN.
8717
8586ccaa
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_set_trace_notes.
8723 * target.h (struct target_ops) <to_set_trace_notes>: Use
8724 TARGET_DEFAULT_RETURN.
8725
91df8d1d
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't initialize
8730 to_set_trace_buffer_size.
8731 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8732 TARGET_DEFAULT_IGNORE.
8733
8d526939
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_set_circular_trace_buffer.
8739 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8740 TARGET_DEFAULT_IGNORE.
8741
0bcfeddf
TT
87422014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_set_disconnected_tracing.
8747 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8748 TARGET_DEFAULT_IGNORE.
8749
9249843f
TT
87502014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_get_min_fast_tracepoint_insn_len.
8755 (return_minus_one): Remove.
8756 * target.h (struct target_ops)
8757 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8758
ace92e7d
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_get_raw_trace_data.
8764 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8765 TARGET_DEFAULT_NORETURN.
8766
08120467
TT
87672014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_upload_trace_state_variables.
8772 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8773 Use TARGET_DEFAULT_RETURN.
8774
1e949b00
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_upload_tracepoints.
8780 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8781 TARGET_DEFAULT_RETURN.
8782
a2e6c147
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_save_trace_data.
8788 * target.h (struct target_ops) <to_save_trace_data>: Use
8789 TARGET_DEFAULT_NORETURN.
8790
959bcd0b
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_get_trace_state_variable_value.
8796 * target.h (struct target_ops)
8797 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8798
afc94e66
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_trace_find.
8804 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8805
e51c07ea
TT
88062014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_trace_stop.
8811 * target.h (struct target_ops) <to_trace_stop>: Use
8812 TARGET_DEFAULT_NORETURN.
8813
6fea14cd
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_get_tracepoint_status.
8819 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8820 TARGET_DEFAULT_NORETURN.
8821
4072d4ff
TT
88222014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_get_trace_status.
8827 * target.h (struct target_ops) <to_get_trace_status>: Use
8828 TARGET_DEFAULT_RETURN.
8829
25da2e80
TT
88302014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_trace_start.
8835 * target.h (struct target_ops) <to_trace_start>: Use
8836 TARGET_DEFAULT_NORETURN.
8837
86dd181d
TT
88382014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_trace_set_readonly_regions.
8843 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8844 Use TARGET_DEFAULT_NORETURN.
8845
05c41993
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_disable_tracepoint.
8851 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8852 TARGET_DEFAULT_NORETURN.
8853
151f70f1
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_enable_tracepoint.
8859 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8860 TARGET_DEFAULT_NORETURN.
8861
94eb98b9
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_download_trace_state_variable.
8867 * target.h (struct target_ops) <to_download_trace_state_variable>:
8868 Use TARGET_DEFAULT_NORETURN.
8869
719acc4a
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_can_download_tracepoint.
8875 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8876 TARGET_DEFAULT_RETURN.
8877
9a980a22
TT
88782014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_download_tracepoint.
8883 * target.h (struct target_ops) <to_download_tracepoint>: Use
8884 TARGET_DEFAULT_NORETURN.
8885
5536135b
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_trace_init.
8891 * target.h (struct target_ops) <to_trace_init>: Use
8892 TARGET_DEFAULT_RETURN.
8893
9409d39e
TT
88942014-02-19 Tom Tromey <tromey@redhat.com>
8895
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8898 to_supports_string_tracing.
8899 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8900 TARGET_DEFAULT_RETURN.
8901
aab1b22d
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_supports_enable_disable_tracepoint.
8907 * target.h (struct target_ops)
8908 <to_supports_enable_disable_tracepoint>: Use
8909 TARGET_DEFAULT_RETURN.
8910
a7304748
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_supports_multi_process.
8916 * target.h (struct target_ops) <to_supports_multi_process>: Use
8917 TARGET_DEFAULT_RETURN.
8918
4229b31d
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_get_ada_task_ptid.
8924 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8925 TARGET_DEFAULT_FUNC.
8926
43eba180
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_thread_architecture.
8932 * target.h (struct target_ops) <to_thread_architecture>: Use
8933 TARGET_DEFAULT_FUNC.
8934
fe31bf5b
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_execution_direction.
8940 * target.h (struct target_ops) <to_execution_direction>: Use
8941 TARGET_DEFAULT_FUNC.
8942
53e1cfc7
TT
89432014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_can_execute_reverse.
8948 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8949 TARGET_DEFAULT_RETURN.
8950 (target_can_execute_reverse): Unconditionally delegate.
8951
9bb9d61d
TT
89522014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target-delegates.c: Rebuild.
8955 * target.c (update_current_target): Don't inherit or default
8956 to_goto_bookmark.
8957 (dummy_goto_bookmark): Remove.
8958 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8959 * target.h (struct target_ops) <to_goto_bookmark>: Use
8960 TARGET_DEFAULT_NORETURN.
8961
3dbafbbb
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target-delegates.c: Rebuild.
8965 * target.c (update_current_target): Don't inherit or default
8966 to_get_bookmark.
8967 (dummy_get_bookmark): Remove.
8968 (init_dummy_target): Don't inherit or default to_get_bookmark.
8969 * target.h (struct target_ops) <to_get_bookmark>: Use
8970 TARGET_DEFAULT_NORETURN
8971
16f796b1
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_make_corefile_notes.
8977 (init_dummy_target): Don't initialize to_make_corefile_notes.
8978 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8979 TARGET_DEFAULT_FUNC.
8980
0b5a2719
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target-delegates.c: Rebuild.
8984 * target.c (update_current_target): Don't inherit or default
8985 to_find_memory_regions.
8986 (init_dummy_target): Don't initialize to_find_memory_regions.
8987 * target.h (struct target_ops) <to_find_memory_regions>: Use
8988 TARGET_DEFAULT_FUNC.
8989
d9cb0195
TT
89902014-02-19 Tom Tromey <tromey@redhat.com>
8991
8992 * target-delegates.c: Rebuild.
8993 * target.c (update_current_target): Don't inherit or default
8994 to_log_command.
8995 * target.h (struct target_ops) <to_log_command>: Use
8996 TARGET_DEFAULT_IGNORE.
8997 (target_log_command): Unconditionally delegate.
8998
830ca330
TT
89992014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target-delegates.c: Rebuild.
9002 * target.c (update_current_target): Don't inherit or default
9003 to_pid_to_exec_file.
9004 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9005 TARGET_DEFAULT_RETURN.
9006
825828fc
TT
90072014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target-delegates.c: Rebuild.
9010 * target.c (update_current_target): Don't inherit or default
9011 to_thread_name.
9012 (target_thread_name): Unconditionally delegate.
9013 * target.h (struct target_ops) <to_thread_name>: Use
9014 TARGET_DEFAULT_RETURN.
9015
4a7e6dda
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_extra_thread_info.
9021 * target.h (struct target_ops) <to_extra_thread_info>: Use
9022 TARGET_DEFAULT_RETURN.
9023
0db88c1d
TT
90242014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target-delegates.c: Rebuild.
9027 * target.c (update_current_target): Don't inherit or default
9028 to_has_exited.
9029 * target.h (struct target_ops) <to_has_exited>: Use
9030 TARGET_DEFAULT_RETURN..
9031
6a9fa051
TT
90322014-02-19 Tom Tromey <tromey@redhat.com>
9033
9034 * target-delegates.c: Rebuild.
9035 * target.c (update_current_target): Don't inherit or default
9036 to_set_syscall_catchpoint.
9037 (return_one): Remove.
9038 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9039 TARGET_DEFAULT_RETURN.
9040
62f64d7a
TT
90412014-02-19 Tom Tromey <tromey@redhat.com>
9042
9043 * target-delegates.c: Rebuild.
9044 * target.c (update_current_target): Don't inherit or default
9045 to_insert_exec_catchpoint.
9046 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9047 TARGET_DEFAULT_RETURN.
9048
cda0f38c
TT
90492014-01-08 Tom Tromey <tromey@redhat.com>
9050
9051 * target-delegates.c: Rebuild.
9052 * target.c (update_current_target): Don't inherit or default
9053 to_insert_exec_catchpoint.
9054 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9055 TARGET_DEFAULT_RETURN.
9056
95c3375e
TT
90572014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * target-delegates.c: Rebuild.
9060 * target.c (update_current_target): Don't inherit or default
9061 to_remove_vfork_catchpoint.
9062 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9063 TARGET_DEFAULT_RETURN.
9064
7e18a8dc
TT
90652014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target-delegates.c: Rebuild.
9068 * target.c (update_current_target): Don't inherit or default
9069 to_insert_vfork_catchpoint.
9070 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9071 TARGET_DEFAULT_RETURN.
9072
e1a21fb7
TT
90732014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target-delegates.c: Rebuild.
9076 * target.c (update_current_target): Don't inherit or default
9077 to_remove_fork_catchpoint.
9078 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9079 TARGET_DEFAULT_RETURN.
9080
5958ebeb
TT
90812014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target-delegates.c: Rebuild.
9084 * target.c (update_current_target): Don't inherit or default
9085 to_insert_fork_catchpoint.
9086 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9087 TARGET_DEFAULT_RETURN.
9088
340ba4bf
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target-delegates.c: Rebuild.
9092 * target.c (update_current_target): Don't inherit or default
9093 to_post_startup_inferior.
9094 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9095 TARGET_DEFAULT_IGNORE.
9096
7634da87
TT
90972014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target-delegates.c: Rebuild.
9100 * target.c (update_current_target): Don't inherit or default
9101 to_load.
9102 * target.h (struct target_ops) <to_load>: Use
9103 TARGET_DEFAULT_NORETURN.
9104
e19e919f
TT
91052014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * target-delegates.c: Rebuild.
9108 * target.c (update_current_target): Don't inherit or default
9109 to_terminal_info.
9110 * target.h (struct target_ops) <to_terminal_info>: Use
9111 TARGET_DEFAULT_FUNC.
9112
c6ea8f79
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target-delegates.c: Rebuild.
9116 * target.c (update_current_target): Don't inherit or default
9117 to_terminal_save_ours.
9118 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9119 TARGET_DEFAULT_IGNORE.
9120
e4a733f1
TT
91212014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target-delegates.c: Rebuild.
9124 * target.c (update_current_target): Don't inherit or default
9125 to_terminal_ours.
9126 * target.h (struct target_ops) <to_terminal_ours>: Use
9127 TARGET_DEFAULT_IGNORE.
9128
74fcbef9
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target-delegates.c: Rebuild.
9132 * target.c (update_current_target): Don't inherit or default
9133 to_terminal_ours_for_output.
9134 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9135 TARGET_DEFAULT_IGNORE.
9136
ddeaacc9
TT
91372014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * target-delegates.c: Rebuild.
9140 * target.c (update_current_target): Don't inherit or default
9141 to_terminal_inferior.
9142 * target.h (struct target_ops) <to_terminal_inferior>: Use
9143 TARGET_DEFAULT_IGNORE.
9144
0343661d
TT
91452014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target-delegates.c: Rebuild.
9148 * target.c (update_current_target): Don't inherit or default
9149 to_terminal_init.
9150 * target.h (struct target_ops) <to_terminal_init>: Use
9151 TARGET_DEFAULT_IGNORE.
9152
77cdffe9
TT
91532014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target-delegates.c: Rebuild.
9156 * target.c (update_current_target): Don't inherit or default
9157 to_can_accel_watchpoint_condition.
9158 * target.h (struct target_ops)
9159 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9160
d03655e4
TT
91612014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target-delegates.c: Rebuild.
9164 * target.c (update_current_target): Don't inherit or default
9165 to_region_ok_for_hw_watchpoint.
9166 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9167 Use TARGET_DEFAULT_FUNC.
9168
65f160a9
TT
91692014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target-delegates.c: Rebuild.
9172 * target.c (update_current_target): Don't inherit or default
9173 to_watchpoint_addr_within_range.
9174 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9175 Use TARGET_DEFAULT_FUNC.
9176
61dd109f
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target-delegates.c: Rebuild.
9180 * target.c (update_current_target): Don't inherit or default
9181 to_remove_watchpoint.
9182 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9183 TARGET_DEFAULT_NORETURN.
9184
016facd4
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9189 to_insert_watchpoint.
9190 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9191 TARGET_DEFAULT_RETURN.
9192
418dabac
TT
91932014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target-delegates.c: Rebuild.
9196 * target.c (update_current_target): Don't inherit or default
9197 to_remove_hw_breakpoint.
9198 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9199 TARGET_DEFAULT_RETURN.
9200
61b371f9
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target-delegates.c: Rebuild.
9204 * target.c (update_current_target): Don't inherit or default
9205 to_insert_hw_breakpoint.
9206 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9207 TARGET_DEFAULT_RETURN.
9208
52b51d06
TT
92092014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target-delegates.c: Rebuild.
9212 * target.c (update_current_target): Don't inherit or default
9213 to_can_use_hw_breakpoint.
9214 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9215 TARGET_DEFAULT_RETURN.
9216
f86e59b2
TT
92172014-02-19 Tom Tromey <tromey@redhat.com>
9218
9219 * target-delegates.c: Rebuild.
9220 * target.c (update_current_target): Don't inherit or default
9221 to_files_info.
9222 * target.h (struct target_ops) <to_files_info>: Use
9223 TARGET_DEFAULT_IGNORE.
9224
6c628163
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target-delegates.c: Rebuild.
9228 * target.c (update_current_target): Don't inherit or default
9229 to_store.
9230 * target.h (struct target_ops) <to_store>: Use
9231 TARGET_DEFAULT_NORETURN.
9232
bebd3233
TT
92332014-02-19 Tom Tromey <tromey@redhat.com>
9234
9235 * target-delegates.c: Rebuild.
9236 * target.c (update_current_target): Don't inherit or default
9237 to_post_attach.
9238 * target.h (struct target_ops) <to_post_attach>: Use
9239 TARGET_DEFAULT_IGNORE.
9240
a53f3625
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target-delegates.c: Rebuild.
9244 * target.c (update_current_target): Don't inherit or default
9245 to_rcmd.
9246 (default_rcmd): New function.
9247 (do_monitor_command): Unconditionally delegate.
9248 * target.h (struct target_ops) <to_rmcd>: Use
9249 TARGET_DEFAULT_FUNC.
9250
e9a29200
TT
92512014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * target-delegates.c: Rebuild.
9254 * target.c (init_dummy_target): Don't initialize to_attach.
9255 (target_attach): Unconditionally delegate.
9256 * target.h (struct target_ops) <to_attach>: Use
9257 TARGET_DEFAULT_FUNC.
9258
09da0d0a
TT
92592014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target-delegates.c: Rebuild.
9262 * target.c (target_detach): Unconditionally delegate.
9263 (init_dummy_target): Don't initialize to_detach.
9264 * target.h (struct target_ops) <to_detach>: Use
9265 TARGET_DEFAULT_IGNORE.
9266
5436ff03
TT
92672014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9270 Add argument.
9271 (target_augmented_libraries_svr4_read): Add argument.
9272 * target.c (update_current_target): Update.
9273 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9274 argument.
9275
f0d960ea
TT
92762014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target.h (struct target_ops) <to_call_history_range>: Add
9279 argument.
9280 * target.c (target_call_history_range): Add argument.
9281 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9282 argument.
9283 (record_btrace_call_history_from): Update.
9284
ec0aea04
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_call_history_from>: Add
9288 argument.
9289 * target.c (target_call_history_from): Add argument.
9290 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9291 argument.
9292
5df2fcba
TT
92932014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_call_history>: Add argument.
9296 * target.c (target_call_history): Add argument.
9297 * record-btrace.c (record_btrace_call_history): Add 'self'
9298 argument.
9299
4e99c6b7
TT
93002014-02-19 Tom Tromey <tromey@redhat.com>
9301
9302 * target.h (struct target_ops) <to_insn_history_range>: Add
9303 argument.
9304 * target.c (target_insn_history_range): Add argument.
9305 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9306 argument.
9307 (record_btrace_insn_history_from): Update.
9308
9abc3ff3
TT
93092014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target.h (struct target_ops) <to_insn_history_from>: Add
9312 argument.
9313 * target.c (target_insn_history_from): Add argument.
9314 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9315 argument.
9316
7a6c5609
TT
93172014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target.h (struct target_ops) <to_insn_history>: Add argument.
9320 * target.c (target_insn_history): Add argument.
9321 * record-btrace.c (record_btrace_insn_history): Add 'self'
9322 argument.
9323
606183ac
TT
93242014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target.h (struct target_ops) <to_goto_record>: Add argument.
9327 * target.c (target_goto_record): Add argument.
9328 * record-full.c (record_full_goto): Add 'self' argument.
9329 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9330
307a1b91
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9334 * target.c (target_goto_record_end): Add argument.
9335 * record-full.c (record_full_goto_end): Add 'self' argument.
9336 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9337
08475817
TT
93382014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target.h (struct target_ops) <to_goto_record_begin>: Add
9341 argument.
9342 * target.c (target_goto_record_begin): Add argument.
9343 * record-full.c (record_full_goto_begin): Add 'self' argument.
9344 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9345 argument.
9346
1c63c994
TT
93472014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * target.h (struct target_ops) <to_record_is_replaying>: Add
9350 argument.
9351 * target.c (target_record_is_replaying): Add argument.
9352 * record-full.c (record_full_is_replaying): Add 'self' argument.
9353 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9354 argument.
9355 (record_btrace_xfer_partial, record_btrace_store_registers)
9356 (record_btrace_prepare_to_store, record_btrace_resume)
9357 (record_btrace_wait, record_btrace_decr_pc_after_break)
9358 (record_btrace_find_new_threads, record_btrace_thread_alive):
9359 Update.
9360
d1b55219
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_delete_record>: Add argument.
9364 * target.c (target_delete_record): Add argument.
9365 * record-full.c (record_full_delete): Add 'self' argument.
9366
1390f529
TT
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_save_record>: Add argument.
9370 * target.c (target_save_record): Add argument.
9371 * record-full.c (record_full_save): Add 'self' argument.
9372 (record_full_save): Add 'self' argument.
9373
630d6a4a
TT
93742014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target.h (struct target_ops) <to_info_record>: Add argument.
9377 * target.c (target_info_record): Add argument.
9378 * record.c (info_record_command): Add argument.
9379 * record-full.c (record_full_info): Add 'self' argument.
9380 * record-btrace.c (record_btrace_info): Add 'self' argument.
9381
c6cd7c02
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9385 * target.c (target_stop_recording): Add argument.
9386 * record.c (record_stop): Add argument.
9387 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9388 argument.
9389
39c49f83
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9393 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9394 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9395 argument.
9396 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9397 (_initialize_amd64_linux_nat): Use it.
9398 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9399 (_initialize_i386_linux_nat): Use it.
9400
1777056d
TT
94012014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9404 * target.c (target_teardown_btrace): Add argument.
9405 * remote.c (remote_teardown_btrace): Add 'self' argument.
9406 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9407 argument.
9408 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9409 argument.
9410
25e95349
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9414 * target.c (target_disable_btrace): Add argument.
9415 * remote.c (remote_disable_btrace): Add 'self' argument.
9416 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9417 argument.
9418 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9419 argument.
9420
e3c49f88
TT
94212014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9424 * target.c (target_enable_btrace): Add argument.
9425 * remote.c (remote_enable_btrace): Add 'self' argument.
9426 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9427 argument.
9428 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9429 argument.
9430
fe38f897
TT
94312014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9434 (target_can_use_agent): Add argument.
9435 * target.c (update_current_target): Update.
9436 * remote.c (remote_can_use_agent): Add 'self' argument.
9437 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9438
2c152180
TT
94392014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target.h (struct target_ops) <to_use_agent>: Add argument.
9442 (target_use_agent): Add argument.
9443 * target.c (update_current_target): Update.
9444 * remote.c (remote_use_agent): Add 'self' argument.
9445 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9446
a893e81f
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9450 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9451 (target_traceframe_info): Add argument.
9452 * target.c (update_current_target): Update.
9453 * remote.c (remote_traceframe_info): Add 'self' argument.
9454 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9455
c686c57f
TT
94562014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target.h (target_static_tracepoint_markers_by_strid): Add
9459 argument.
9460 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9461 'self' argument.
9462 * target.c (update_current_target): Update.
9463 * remote.c (struct target_ops)
9464 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9465 * linux-nat.c (struct target_ops)
9466 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9467
61fc905d
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9471 Add argument.
9472 (target_static_tracepoint_marker_at): Add argument.
9473 * target.c (update_current_target): Update.
9474 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9475 argument.
9476
c378d69d
TT
94772014-02-19 Tom Tromey <tromey@redhat.com>
9478
9479 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9480 (target_set_permissions): Add argument.
9481 * target.c (update_current_target): Update.
9482 * remote.c (remote_set_permissions): Add 'self' argument.
9483 (remote_start_remote): Update.
9484
bd7ae0f5
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9488 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9489 (target_get_tib_address): Add argument.
9490 * target.c (update_current_target): Update.
9491 * remote.c (remote_get_tib_address): Add 'self' argument.
9492
d9e68a2c
TT
94932014-02-19 Tom Tromey <tromey@redhat.com>
9494
9495 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9496 (target_set_trace_notes): Add argument.
9497 * target.c (update_current_target): Update.
9498 * remote.c (remote_set_trace_notes): Add 'self' argument.
9499
4da384be
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9503 argument.
9504 (target_set_trace_buffer_size): Add argument.
9505 * target.c (update_current_target): Update.
9506 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9507
736d5b1f
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9511 argument.
9512 (target_set_circular_trace_buffer): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9515 argument.
9516
37b25738
TT
95172014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9520 argument.
9521 (target_set_disconnected_tracing): Add argument.
9522 * target.c (update_current_target): Update.
9523 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9524
0e67620a
TT
95252014-02-19 Tom Tromey <tromey@redhat.com>
9526
9527 * target.h (struct target_ops)
9528 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9529 (target_get_min_fast_tracepoint_insn_len): Add argument.
9530 * target.c (update_current_target): Update.
9531 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9532 argument.
9533
88ee6f45
TT
95342014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9537 argument.
9538 (target_get_raw_trace_data): Add argument.
9539 * target.c (update_current_target): Update.
9540 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9541
181e3713
TT
95422014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9545 Add argument.
9546 (target_upload_trace_state_variables): Add argument.
9547 * target.c (update_current_target): Update.
9548 * remote.c (remote_upload_trace_state_variables): Add 'self'
9549 argument.
9550 (remote_start_remote): Update.
9551
ab6617cc
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9555 argument.
9556 (target_upload_tracepoints): Add argument.
9557 * target.c (update_current_target): Update.
9558 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9559 (remote_start_remote): Update.
9560
dc3decaf
TT
95612014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9564 (target_save_trace_data): Add argument.
9565 * target.c (update_current_target): Update.
9566 * remote.c (remote_save_trace_data): Add 'self' argument.
9567
4011015b
TT
95682014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9571 argument.
9572 * target.h (struct target_ops)
9573 <to_get_trace_state_variable_value>: Add argument.
9574 (target_get_trace_state_variable_value): Add argument.
9575 * target.c (update_current_target): Update.
9576 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9577 argument.
9578 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9579
bd4c6793
TT
95802014-02-19 Tom Tromey <tromey@redhat.com>
9581
9582 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9583 * target.h (struct target_ops) <to_trace_find>: Add argument.
9584 (target_trace_find): Add argument.
9585 * target.c (update_current_target): Update.
9586 * remote.c (remote_trace_find): Add 'self' argument.
9587 * ctf.c (ctf_trace_find): Add 'self' argument.
9588
74499f1b
TT
95892014-02-19 Tom Tromey <tromey@redhat.com>
9590
9591 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9592 (target_trace_stop): Add argument.
9593 * target.c (update_current_target): Update.
9594 * remote.c (remote_trace_stop): Add 'self' argument.
9595
db90e85c
TT
95962014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9599 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9600 argument.
9601 (target_get_tracepoint_status): Add argument.
9602 * target.c (update_current_target): Update.
9603 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9604
8bd200f1
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9608 * target.h (struct target_ops) <to_get_trace_status>: Add
9609 argument.
9610 (target_get_trace_status): Add argument.
9611 * target.c (update_current_target): Update.
9612 * remote.c (remote_get_trace_status): Add 'self' argument.
9613 (remote_start_remote, remote_can_download_tracepoint): Update.
9614 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9615
e2d1aae3
TT
96162014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target.h (struct target_ops) <to_trace_start>: Add argument.
9619 (target_trace_start): Add argument.
9620 * target.c (update_current_target): Update.
9621 * remote.c (remote_trace_start): Add 'self' argument.
9622
583f9a86
TT
96232014-02-19 Tom Tromey <tromey@redhat.com>
9624
9625 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9626 Add argument.
9627 (target_trace_set_readonly_regions): Add argument.
9628 * target.c (update_current_target): Update.
9629 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9630 argument.
9631
780b049c
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9635 argument.
9636 (target_disable_tracepoint): Add argument.
9637 * target.c (update_current_target): Update.
9638 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9639
46670d57
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9643 argument.
9644 (target_enable_tracepoint): Add argument.
9645 * target.c (update_current_target): Update.
9646 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9647
559d2b81
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops) <to_download_trace_state_variable>:
9651 Add argument.
9652 (target_download_trace_state_variable): Add argument.
9653 * target.c (update_current_target): Update.
9654 * remote.c (remote_download_trace_state_variable): Add 'self'
9655 argument.
9656
a52a8357
TT
96572014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9660 argument.
9661 (target_can_download_tracepoint): Add argument.
9662 * target.c (update_current_target): Update.
9663 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9664
548f7808
TT
96652014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target.h (struct target_ops) <to_download_tracepoint>: Add
9668 argument.
9669 (target_download_tracepoint): Add argument.
9670 * target.c (update_current_target): Update.
9671 * remote.c (remote_download_tracepoint): Add 'self' argument.
9672
ecae04e1
TT
96732014-02-19 Tom Tromey <tromey@redhat.com>
9674
9675 * target.h (struct target_ops) <to_trace_init>: Add argument.
9676 (target_trace_init): Add argument.
9677 * target.c (update_current_target): Update.
9678 * remote.c (remote_trace_init): Add 'self' argument.
9679
fab5aa7c
TT
96802014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9683 * target.c (target_fileio_readlink): Add argument.
9684 * remote.c (remote_hostio_readlink): Add 'self' argument.
9685 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9686
dbbca37d
TT
96872014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9690 * target.c (target_fileio_unlink): Add argument.
9691 * remote.c (remote_hostio_unlink): Add 'self' argument.
9692 (remote_file_delete): Update.
9693 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9694
df39ea25
TT
96952014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9698 * target.c (target_fileio_close): Add argument.
9699 * remote.c (remote_hostio_close): Add 'self' argument.
9700 (remote_hostio_close_cleanup): Update.
9701 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9702 Update.
9703 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9704
a3be983c
TT
97052014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9708 * target.c (target_fileio_pread): Add argument.
9709 * remote.c (remote_hostio_pread): Add 'self' argument.
9710 (remote_bfd_iovec_pread, remote_file_get): Update.
9711 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9712
0d866f62
TT
97132014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9716 * target.c (target_fileio_pwrite): Add argument.
9717 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9718 (remote_file_put): Update.
9719 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9720
cd897586
TT
97212014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9724 * target.c (target_fileio_open): Add argument.
9725 * remote.c (remote_hostio_open): Add 'self' argument.
9726 (remote_bfd_iovec_open): Add 'self' argument.
9727 (remote_file_put): Add 'self' argument.
9728 (remote_file_get): Add 'self' argument.
9729 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9730
78eff0ec
TT
97312014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9734 Add argument.
9735 (target_can_run_breakpoint_commands): Add argument.
9736 * target.c (update_current_target): Update.
9737 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9738 argument.
9739 (remote_insert_breakpoint): Add 'self' argument.
9740 (remote_insert_hw_breakpoint): Add 'self' argument.
9741 (remote_can_run_breakpoint_commands): Add 'self' argument.
9742
efcc2da7
TT
97432014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * target.h (struct target_ops)
9746 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9747 (target_supports_evaluation_of_breakpoint_conditions): Add
9748 argument.
9749 * target.c (update_current_target): Update.
9750 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9751 argument.
9752 (remote_insert_breakpoint): Add 'self' argument.
9753 (remote_insert_hw_breakpoint): Add 'self' argument.
9754 (remote_supports_cond_breakpoints): Add 'self' argument.
9755
6de37a3a
TT
97562014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9759 argument.
9760 (target_supports_string_tracing): Add argument.
9761 * target.c (update_current_target): Update.
9762 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9763
2bfc0540
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops)
9767 <to_supports_disable_randomization>: Add argument.
9768 * target.c (find_default_supports_disable_randomization): Add
9769 argument.
9770 (target_supports_disable_randomization): Add argument.
9771 (find_default_supports_disable_randomization): Add 'self'
9772 argument.
9773 * remote.c (extended_remote_supports_disable_randomization): Add
9774 'self' argument.
9775 (remote_supports_disable_randomization): Add 'self' argument.
9776 (extended_remote_create_inferior): Update.
9777 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9778 'self' argument.
9779
7d178d6a
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target.h (struct target_ops)
9783 <to_supports_enable_disable_tracepoint>: Add argument.
9784 (target_supports_enable_disable_tracepoint): Add argument.
9785 * target.c (update_current_target): Update.
9786 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9787 argument.
9788
86ce2668
TT
97892014-02-19 Tom Tromey <tromey@redhat.com>
9790
9791 * target.h (struct target_ops) <to_supports_multi_process>: Add
9792 argument.
9793 (target_supports_multi_process): Add argument.
9794 * target.c (update_current_target): Update.
9795 * remote.c (remote_supports_multi_process): Add 'self' argument.
9796 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9797 argument.
9798 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9799 argument.
9800
4c612759
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (struct target_ops) <to_execution_direction>: Add
9804 argument.
9805 (target_execution_direction): Add argument.
9806 * target.c (default_execution_direction): Add 'self' argument.
9807 * record-full.c (record_full_execution_direction): Add 'self'
9808 argument.
9809
19db3e69
TT
98102014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9813 argument.
9814 (target_can_execute_reverse): Add argument.
9815 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9816 * record-full.c (record_full_can_execute_reverse): Add 'self'
9817 argument.
9818 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9819 argument.
9820
1e6b91a4
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9824 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9825 argument.
9826 (target_get_ada_task_ptid): Add argument.
9827 * target.c (update_current_target): Update.
9828 (default_get_ada_task_ptid): Add 'self' argument.
9829 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9830 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9831 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9832 argument.
9833 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9834 argument.
9835 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9836 argument.
9837 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9838 argument.
9839 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9840 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9841 argument.
9842
3c80fb48
TT
98432014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9846 (target_goto_bookmark): Add argument.
9847 * target.c (dummy_goto_bookmark): Add 'self' argument.
9848 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9849
dd0e2830
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9853 (target_get_bookmark): Add argument.
9854 * target.c (dummy_get_bookmark): Add 'self' argument.
9855 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9856
fc6691b2
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9860 argument.
9861 (target_make_corefile_notes): Add argument.
9862 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9863 * procfs.c (procfs_make_note_section): Add 'self' argument.
9864 (procfs_make_note_section): Add 'self' argument.
9865 (procfs_make_note_section): Add 'self' argument.
9866 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9867 argument.
9868 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9869 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9870 * exec.c (exec_make_note_section): Add 'self' argument.
9871 (exec_make_note_section): Add 'self' argument.
9872
2e73927c
TT
98732014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * target.h (struct target_ops) <to_find_memory_regions>: Add
9876 argument.
9877 (target_find_memory_regions): Add argument.
9878 * target.c (dummy_find_memory_regions): Add 'self' argument.
9879 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9880 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9881 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9882 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9883 * exec. (exec_do_find_memory_regions): New global.
9884 (exec_set_find_memory_regions): Rewrite.
9885 (exec_find_memory_regions): New function.
9886 (init_exec_ops): Use exec_find_memory_regions.
9887
2a9a2795
TT
98882014-02-19 Tom Tromey <tromey@redhat.com>
9889
9890 * target.h (struct target_ops) <to_supports_non_stop>: Add
9891 argument.
9892 * target.c (find_default_supports_non_stop): Add argument.
9893 (target_supports_non_stop): Add argument.
9894 (find_default_supports_non_stop): Add 'self' argument.
9895 * remote.c (remote_supports_non_stop): Add 'self' argument.
9896 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9897
4ab76ea3
TT
98982014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target.h (struct target_ops) <to_log_command>: Add argument.
9901 (target_log_command): Add argument.
9902 * serial.h (serial_log_command): Add 'self' argument.
9903 * serial.c (serial_log_command): Add 'self' argument.
9904
8dd27370
TT
99052014-02-19 Tom Tromey <tromey@redhat.com>
9906
9907 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9908 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9909 argument.
9910 (target_pid_to_exec_file): Add argument.
9911 * target.c (debug_to_pid_to_exec_file): Add argument.
9912 (update_current_target): Update.
9913 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9914 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9915 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9916 (linux_handle_extended_wait): Update.
9917 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9918 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9919 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9920 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9921
1aac633b
TT
99222014-02-19 Tom Tromey <tromey@redhat.com>
9923
9924 * target.h (struct target_ops) <to_rcmd>: Add argument.
9925 (target_rcmd): Add argument.
9926 * target.c (debug_to_rcmd): Add argument.
9927 (update_current_target, do_monitor_command): Update.
9928 * remote.c (remote_rcmd): Add 'self' argument.
9929 * monitor.c (monitor_rcmd): Add 'self' argument.
9930
1eab8a48
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * windows-nat.c (windows_stop): Add 'self' argument.
9934 * target.h (struct target_ops) <to_stop>: Add argument.
9935 * target.c (target_stop): Add argument.
9936 (debug_to_stop): Add argument.
9937 (update_current_target): Update.
9938 * remote.c (remote_stop): Add 'self' argument.
9939 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9940 (gdbsim_cntrl_c): Update.
9941 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9942 * procfs.c (procfs_stop): Add 'self' argument.
9943 * nto-procfs.c (procfs_stop): Add 'self' argument.
9944 * monitor.c (monitor_stop): Add 'self' argument.
9945 (monitor_open): Update.
9946 * linux-nat.c (linux_nat_stop): Add argument.
9947 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9948 * gnu-nat.c (gnu_stop): Add 'self' argument.
9949 * darwin-nat.c (darwin_stop): Add 'self' argument.
9950
503a628d
TT
99512014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target.h (struct target_ops) <to_thread_name>: Add argument.
9954 * target.c (target_thread_name): Add argument.
9955 (update_current_target): Update.
9956 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9957
c15906d8
TT
99582014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_extra_thread_info>: Add
9961 argument.
9962 (target_extra_thread_info): Add argument.
9963 * target.c (update_current_target): Update.
9964 * remote.c (remote_threads_extra_info): Add 'self' argument.
9965 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9966 argument.
9967 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9968 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9969 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9970 argument.
9971 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9972 argument.
9973 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9974 argument.
9975 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9976 argument.
9977
daf5e9b6
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target.h (struct target_ops) <to_program_signals>: Add argument.
9981 * target.c (target_program_signals): Add argument.
9982 * remote.c (remote_program_signals): Add 'self' argument.
9983
94bedb42
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9987 * target.c (target_pass_signals): Add argument.
9988 * remote.c (remote_pass_signals): Add 'self' argument.
9989 (remote_start_remote): Update.
9990 * procfs.c (procfs_pass_signals): Add 'self' argument.
9991 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9992 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9993 (linux_nat_create_inferior, linux_nat_attach): Update.
9994
da82bd6b
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * windows-nat.c (windows_can_run): Add 'self' argument.
9998 * target.h (struct target_ops) <to_can_run>: Add argument.
9999 (target_can_run): Add argument.
10000 * target.c (debug_to_can_run): Add argument.
10001 (update_current_target): Update.
10002 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10003 * inf-child.c (inf_child_can_run): Add 'self' argument.
10004 * go32-nat.c (go32_can_run): Add 'self' argument.
10005
d796e1d6
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target.h (struct target_ops) <to_has_exited>: Add argument.
10009 (target_has_exited): Add argument.
10010 * target.c (debug_to_has_exited): Add argument.
10011 (update_current_target): Update.
10012
ff214e67
TT
100132014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10016 argument.
10017 (target_set_syscall_catchpoint): Add argument.
10018 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10019 argument.
10020 * target.c (update_current_target): Update.
10021
758e29d2
TT
100222014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10025 argument.
10026 (target_remove_exec_catchpoint): Add argument.
10027 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10028 (update_current_target): Update.
10029 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10030 argument.
10031
ba025e51
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10035 argument.
10036 (target_insert_exec_catchpoint): Add argument.
10037 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10038 (update_current_target): Update.
10039 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10040 argument.
10041
e98cf0cd
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10045 argument.
10046 (target_remove_vfork_catchpoint): Add argument.
10047 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10048 (update_current_target): Update.
10049 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10050 argument.
10051
3ecc7da0
TT
100522014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10055 argument.
10056 (target_insert_vfork_catchpoint): Add argument.
10057 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10058 (update_current_target): Update.
10059 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10060 argument.
10061
973fc227
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10065 argument.
10066 (target_remove_fork_catchpoint): Add argument.
10067 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10068 (update_current_target): Update.
10069 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10070 argument.
10071
a863b201
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10075 argument.
10076 (target_insert_fork_catchpoint): Add argument.
10077 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10078 (update_current_target): Update.
10079 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10080 argument.
10081
2e97a79e
TT
100822014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10085 argument.
10086 (target_post_startup_inferior): Add argument.
10087 * target.c (debug_to_post_startup_inferior): Add argument.
10088 (update_current_target): Update.
10089 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10090 argument.
10091 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10092 argument.
10093 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10094 argument.
10095 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10096 argument.
10097 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10098 'self' argument.
10099 (super_post_startup_inferior): Likewise.
10100 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10101 'self' argument.
10102 (super_post_startup_inferior): Likewise.
10103 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10104 Add 'self' argument.
10105 (super_post_startup_inferior): Likewise.
10106
71a9f134
TT
101072014-02-19 Tom Tromey <tromey@redhat.com>
10108
10109 * target.h (struct target_ops) <to_load>: Add argument.
10110 * target.c (target_load): Add argument.
10111 (debug_to_load): Add argument.
10112 (update_current_target): Update.
10113 * remote.c (remote_load): Add 'self' argument.
10114 * remote-sim.c (gdbsim_load): Add 'self' argument.
10115 * remote-mips.c (mips_load): Add 'self' argument.
10116 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10117 * monitor.c (monitor_load): Add 'self' argument.
10118 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10119
0a4f40a2
TT
101202014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10123 (target_terminal_info): Add argument.
10124 * target.c (debug_to_terminal_info): Add argument.
10125 (default_terminal_info): Likewise.
10126 * inflow.c (child_terminal_info): Add 'self' argument.
10127 * inferior.h (child_terminal_info): Add 'self' argument.
10128 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10129
ae3bd431
TT
101302014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10133 argument.
10134 (target_terminal_save_ours): Add argument.
10135 * target.c (debug_to_terminal_save_ours): Add argument.
10136 (update_current_target): Update.
10137 * inflow.c (terminal_save_ours): Add 'self' argument.
10138 * inferior.h (terminal_save_ours): Add 'self' argument.
10139
e3594fd1
TT
101402014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10143 (target_terminal_ours): Add argument.
10144 * target.c (debug_to_terminal_ours): Add argument.
10145 (update_current_target): Update.
10146 * remote.c (remote_terminal_ours): Add 'self' argument.
10147 (remote_close): Update.
10148 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10149 * inflow.c (terminal_ours): Add 'self' argument.
10150 * inferior.h (terminal_ours): Add 'self' argument.
10151 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10152
2e1e1a19
TT
101532014-02-19 Pedro Alves <palves@redhat.com>
10154 Tom Tromey <tromey@redhat.com>
10155
10156 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10157 argument.
10158 (target_terminal_ours_for_output): Add argument.
10159 * target.c (debug_to_terminal_ours_for_output): Add argument.
10160 (update_current_target): Update.
10161 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10162 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10163 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10164
d2f640d4
TT
101652014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target.h (struct target_ops) <to_terminal_inferior>: Add
10168 argument.
10169 * target.c (target_terminal_inferior): Add argument.
10170 (update_current_target): Update.
10171 * remote.c (remote_terminal_inferior): Add 'self' argument.
10172 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10173 * inflow.c (terminal_inferior): Add 'self' argument.
10174 * inferior.h (terminal_inferior): Add 'self' argument.
10175 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10176 (go32_terminal_inferior): Add 'self' argument.
10177
c42bf286
TT
101782014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10181 (target_terminal_init): Add argument.
10182 * target.c (debug_to_terminal_init): Add argument.
10183 (update_current_target): Update.
10184 * inflow.c (terminal_init_inferior): Add 'self' argument.
10185 * inferior.h (terminal_init_inferior): Add 'self' argument.
10186 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10187 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10188
c3a5ff89
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target.h (struct target_ops)
10192 <to_can_accel_watchpoint_condition>: Add argument.
10193 (target_can_accel_watchpoint_condition): Add argument.
10194 * target.c (debug_to_can_accel_watchpoint_condition): Add
10195 argument.
10196 (update_current_target): Update.
10197 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10198 'self' argument.
10199
31568a15
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10203 Add argument.
10204 (target_region_ok_for_hw_watchpoint): Add argument.
10205 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10206 (default_region_ok_for_hw_watchpoint): Add argument.
10207 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10208 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10209 argument.
10210 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10211 argument.
10212 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10213 argument.
10214 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10215 'self' argument.
10216 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10217 'self' argument.
10218 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10219 'self' argument.
10220 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10221 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10222 'self' argument.
10223 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10224 Add 'self' argument.
10225
7bb99c53
TT
102262014-02-19 Tom Tromey <tromey@redhat.com>
10227
10228 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10229 argument.
10230 (target_insert_watchpoint): Add argument.
10231 * target.c (debug_to_insert_watchpoint): Add argument.
10232 (update_current_target): Update.
10233 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10234 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10235 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10236 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10237 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10238 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10239 argument.
10240 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10241 (procfs_insert_hw_watchpoint): Add 'self' argument.
10242 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10243 argument.
10244 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10245 argument.
10246 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10247 argument.
10248 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10249 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10250 argument.
10251 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10252 'self' argument.
10253
11b5219a
TT
102542014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10257 argument.
10258 (target_remove_watchpoint): Add argument.
10259 * target.c (debug_to_remove_watchpoint): Add argument.
10260 (update_current_target): Update.
10261 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10262 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10263 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10264 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10265 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10266 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10267 argument.
10268 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10269 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10270 argument.
10271 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10272 argument.
10273 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10274 argument.
10275 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10276 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10277 argument.
10278 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10279 'self' argument.
10280
a64dc96c
TT
102812014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10284 argument.
10285 (target_remove_hw_breakpoint): Add argument.
10286 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10287 (update_current_target): Update.
10288 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10289 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10290 argument.
10291 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10292 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10293 argument.
10294 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10295 'self' argument.
10296
23a26771
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10300 argument.
10301 (target_insert_hw_breakpoint): Add argument.
10302 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10303 (update_current_target): Update.
10304 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10305 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10306 argument.
10307 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10308 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10309 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10310 argument.
10311 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10312 'self' argument.
10313
5461485a
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10317 argument.
10318 (target_can_use_hardware_watchpoint): Add argument.
10319 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10320 (update_current_target): Update.
10321 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10322 argument.
10323 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10324 argument.
10325 * remote.c (remote_check_watch_resources): Add 'self' argument.
10326 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10327 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10328 argument.
10329 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10330 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10331 argument.
10332 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10333 argument.
10334 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10335 argument.
10336 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10337 argument.
10338 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10339 argument.
10340 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10341 argument.
10342 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10343 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10344 argument.
10345 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10346 'self' argument.
10347
f045800c
TT
103482014-02-19 Tom Tromey <tromey@redhat.com>
10349
10350 * target.h (struct target_ops) <to_post_attach>: Add argument.
10351 (target_post_attach): Add argument.
10352 * target.c (debug_to_post_attach): Add argument.
10353 (update_current_target): Update.
10354 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10355 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10356 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10357 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10358 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10359
de90e03d
TT
103602014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * windows-nat.c (windows_close): Add 'self' argument.
10363 * tracepoint.c (tfile_close): Add 'self' argument.
10364 * target.h (struct target_ops) <to_close>: Add argument.
10365 * target.c (target_close): Add argument.
10366 (update_current_target): Update.
10367 * remote.c (remote_close): Add 'self' argument.
10368 * remote-sim.c (gdbsim_close): Add 'self' argument.
10369 * remote-mips.c (mips_close): Add 'self' argument.
10370 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10371 * record-full.c (record_full_close): Add 'self' argument.
10372 * record-btrace.c (record_btrace_close): Add 'self' argument.
10373 * monitor.h (monitor_close): Add 'self' argument.
10374 * monitor.c (monitor_close): Add 'self' argument.
10375 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10376 * linux-nat.c (linux_nat_close): Add argument.
10377 * go32-nat.c (go32_close): Add 'self' argument.
10378 * exec.c (exec_close_1): Add 'self' argument.
10379 * ctf.c (ctf_close): Add 'self' argument.
10380 * corelow.c (core_close): Add 'self' argument.
10381 (core_close_cleanup): Update.
10382 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10383 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10384
9dd130a0
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * remote.c (remote_load): New function.
10388 (init_remote_ops): Use it.
10389
46917d26
TT
103902014-02-19 Tom Tromey <tromey@redhat.com>
10391
10392 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10393 argument.
10394 * common/linux-btrace.h (linux_supports_btrace): Update.
10395 * remote.c (remote_supports_btrace): Add "self" argument.
10396 * target-delegates.c: Rebuild.
10397 * target.c (target_supports_btrace): Remove.
10398 * target.h (struct target_ops) <to_supports_btrace>: Add
10399 target_ops argument.
10400 (target_supports_btrace): New define.
10401
6b84065d
TT
104022014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * record-full.c (record_full_beneath_to_resume_ops)
10405 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10406 (record_full_beneath_to_wait)
10407 (record_full_beneath_to_store_registers_ops)
10408 (record_full_beneath_to_store_registers)
10409 (record_full_beneath_to_xfer_partial_ops)
10410 (record_full_beneath_to_xfer_partial)
10411 (record_full_beneath_to_insert_breakpoint_ops)
10412 (record_full_beneath_to_insert_breakpoint)
10413 (record_full_beneath_to_remove_breakpoint_ops)
10414 (record_full_beneath_to_remove_breakpoint)
10415 (record_full_beneath_to_stopped_by_watchpoint)
10416 (record_full_beneath_to_stopped_data_address)
10417 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10418 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10419 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10420 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10421 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10422 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10423 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10424 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10425 (record_full_resume, record_full_wait_1)
10426 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10427 (record_full_store_registers, record_full_xfer_partial)
10428 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10429 (record_full_async, record_full_core_xfer_partial): Use target
10430 delegation.
10431 * target-delegates.c: Rebuild.
10432 * target.c (current_xfer_partial): Remove.
10433 (update_current_target): Do not INHERIT or de_fault
10434 to_insert_breakpoint, to_remove_breakpoint,
10435 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10436 to_is_async_p, to_async. Do not set to_xfer_partial field.
10437 (default_xfer_partial): Simplify.
10438 (current_xfer_partial): Remove.
10439 (target_wait, target_resume): Simplify.
10440 (find_default_can_async_p, find_default_is_async_p): Update.
10441 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10442 to_xfer_partial, to_stopped_by_watchpoint,
10443 to_stopped_data_address.
10444 (target_store_registers): Simplify.
10445 (forward_target_remove_breakpoint)
10446 (forward_target_insert_breakpoint): Remove.
10447 (target_remove_breakpoint, target_insert_breakpoint)
10448 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10449 * target.h (struct target_ops) <to_resume, to_wait,
10450 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10451 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10452 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10453 markup.
10454 (forward_target_remove_breakpoint)
10455 (forward_target_insert_breakpoint): Remove.
10456 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10457 directly.
10458 (record_btrace_insert_breakpoint): Delegate directly.
10459
1101cb7b
TT
104602014-02-19 Tom Tromey <tromey@redhat.com>
10461
10462 PR build/7701:
10463 * target-delegates.c: New file.
10464 * target.c: Include target-delegates.c.
10465 (init_dummy_target): Call install_dummy_methods.
10466 (complete_target_initialization): Call install_delegators.
10467 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10468 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10469 * make-target-delegates: New file.
10470
8b06beed
TT
104712014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * record.c (find_record_target): Use find_target_at.
10474 * target.c (find_target_at): New function.
10475 * target.h (find_target_at): Declare.
10476
6a109b6b
TT
104772014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10480 Add 'ops' argument.
10481 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10482 'ops' argument.
10483 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10484 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10485 'ops' argument.
10486 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10487 argument.
10488 * linux-nat.c (save_sigtrap): Update.
10489 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10490 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10491 (linux_nat_close): Update.
10492 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10493 argument.
10494 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10495 argument.
10496 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10497 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10498 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10499 (tmp_to_async): Add 'ops' argument.
10500 (record_full_stopped_by_watchpoint, record_full_async)
10501 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10502 argument.
10503 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10504 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10505 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10506 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10507 (remote_is_async_p, remote_async): Add 'ops' argument.
10508 (remote_stopped_data_address): Update.
10509 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10510 * target.c (update_current_target)
10511 (find_default_can_async_p, find_default_is_async_p): Update.
10512 (init_dummy_target): Update.
10513 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10514 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10515 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10516 (target_can_async_p, target_is_async_p, target_async)
10517 (target_stopped_by_watchpoint): Update.
10518
e095146b
YQ
105192014-02-19 Yao Qi <yao@codesourcery.com>
10520
10521 PR gdb/16220
10522 * gdbarch.sh: Remove startup_gdbarch.
10523 * gdbarch.c: Regenerated.
10524 * gdbarch.h: Likewise.
10525
bc3c6b36
KB
105262014-02-17 Kevin Buettner <kevinb@redhat.com>
10527
10528 * rl78-tdep.c (rl78_g10_register_name): New function.
10529 (rl78_return_value): Add g10 support.
10530 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10531 g10.
10532
98dc0167 105332014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10534
10535 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10536 (SUBDIR_GUILE_SRCS): Ditto.
10537 (scm-gsmob.o): Ditto.
10538
842c05cd
YQ
105392014-02-17 Yao Qi <yao@codesourcery.com>
10540
10541 * gnu-nat.c (ILL_RPC): Declare defined function.
10542
25c0bd04
YQ
105432014-02-17 Yao Qi <yao@codesourcery.com>
10544
10545 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10546 mach_msg_type_number_t.
10547 (gnu_write_inferior): Likewise.
10548
a9a758e3
YQ
105492014-02-17 Yao Qi <yao@codesourcery.com>
10550
10551 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10552 in format string.
10553 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10554 (inf_validate_procs, inf_signal): Likewise.
10555 (S_exception_raise_request): Likewise.
10556 (do_mach_notify_dead_name): Likewise.
10557 (steal_exc_port): Likewise.
10558 (gnu_read_inferior): Change 'copy_count''s type to
10559 mach_msg_type_number_t.
10560 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10561 format string.
10562
bae8023e
TS
105632014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10564
c82f56d9
TS
10565 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10566 flag. Adjust all users; in particular...
10567 (gnu_wait): ..., don't decrement its value in here...
10568 (gnu_create_inferior): ..., and instead set the flag in here,
10569 around the startup_inferior call, and call that one with
10570 START_INFERIOR_TRAPS_EXPECTED.
10571
3398af6a
TS
10572 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10573 (ILL_RPC): ... new macro.
10574 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10575 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10576 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10577 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10578 functions with ILL_RPC macro.
10579 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10580 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10581 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10582 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10583 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10584 (S_proc_getlogin_reply, S_proc_getsid_reply)
10585 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10586 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10587 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10588 (S_proc_getnports_reply, S_proc_is_important_reply)
10589 (S_proc_get_code_reply): New stub functions, generated with
10590 ILL_RPC macro.
10591
d47642c9
TS
10592 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10593 collected the type check structures.
10594
bae8023e
TS
10595 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10596
8a55ffb0
DE
105972014-02-14 Doug Evans <dje@google.com>
10598
10599 * target.c (target_write_partial): Fix result type.
10600
c2853f3d
JM
106012014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10602
10603 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10604 the proper offsets to access fpregset_t.
10605
ac61d2db
SA
106062014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10607
10608 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10609 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10610 * h8300-tdep.c (setmachinelist): Remove global.
10611 * hppa-tdep.c (hppa_sigtramp): Remove global.
10612 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10613 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10614 * ravenscar-thread.c (update_target_observer): Remove global.
10615 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10616
9d2d0b8b
TT
106172014-02-12 Tom Tromey <tromey@redhat.com>
10618
10619 * common/rsp-low.c: Update comments.
10620 * common/rsp-low.h: Update comments.
10621
a7191e8b
TT
106222014-02-12 Tom Tromey <tromey@redhat.com>
10623
10624 * common/rsp-low.c (convert_ascii_to_int): Remove.
10625 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10626
ff0e980e
TT
106272014-02-12 Tom Tromey <tromey@redhat.com>
10628
10629 * common/rsp-low.h (unhexify): Don't declare.
10630 * common/rsp-low.c (unhexify): Remove.
10631
e9371aff
TT
106322014-02-12 Tom Tromey <tromey@redhat.com>
10633
10634 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10635 * common/rsp-low.c (convert_int_to_ascii): Remove.
10636
971dc0b8
TT
106372014-02-12 Tom Tromey <tromey@redhat.com>
10638
10639 * common/rsp-low.h (hexify): Don't declare.
10640 * common/rsp-low.c (hexify): Remove.
10641
0a822afb
TT
106422014-02-12 Tom Tromey <tromey@redhat.com>
10643
10644 * common/rsp-low.c (hexify): Never take strlen of argument.
10645
9f1b45b0
TT
106462014-02-12 Tom Tromey <tromey@redhat.com>
10647
10648 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10649 * remote.c (extended_remote_run, remote_rcmd)
10650 (remote_download_trace_state_variable, remote_save_trace_data)
10651 (remote_set_trace_notes): Update.
10652 * tracepoint.c (encode_source_string, tfile_write_status)
10653 (tfile_write_uploaded_tsv): Update.
10654
9c3d6531
TT
106552014-02-12 Tom Tromey <tromey@redhat.com>
10656
10657 * tracepoint.c: Include rsp-low.h.
10658 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10659 * remote.c: Include rsp-low.h.
10660 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10661 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10662 (remote_unescape_input): Move to common/rsp-low.c.
10663 * common/rsp-low.h: New file.
10664 * common/rsp-low.c: New file.
10665 * Makefile.in (SFILES): Add common/rsp-low.c.
10666 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10667 (COMMON_OBS): Add rsp-low.o.
10668 (rsp-low.o): New target.
10669
01fd3ea5
TT
106702014-02-12 Tom Tromey <tromey@redhat.com>
10671
10672 * utils.h: Include print-utils.h.
10673 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10674 (int_string, core_addr_to_string, core_addr_to_string_nz)
10675 (hex_string, hex_string_custom): Don't declare.
10676 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10677 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10678 (hex_string_custom, int_string, core_addr_to_string)
10679 (core_addr_to_string_nz, host_address_to_string): Move to
10680 common/print-utils.c.
10681 * common/print-utils.h: New file.
10682 * common/print-utils.c: New file
10683 * Makefile.in (SFILES): Add common/print-utils.c.
10684 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10685 (COMMON_OBS): Add print-utils.o.
10686 (print-utils.o): New target.
10687
9fb50108
TT
106882014-02-12 Tom Tromey <tromey@redhat.com>
10689
10690 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10691
0548b5db
MK
106922014-02-12 Mark Kettenis <kettenis@gnu.org>
10693
10694 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10695
493443a4
MK
106962014-02-12 Mark Kettenis <kettenis@gnu.org>
10697
10698 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10699 if a PT_IO ptrace request returns sucessfully but indicates that 0
10700 bytes were transferred.
10701
706d0883
PA
107022014-02-12 Pedro Alves <palves@redhat.com>
10703 Kevin Buettner <kevinb@redhat.com>
10704
10705 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10706 TYPE_INSTANCE_FLAG_CODE_SPACE.
10707
5caa2f0b
PA
107082014-02-12 Pedro Alves <palves@redhat.com>
10709
10710 * h8300-tdep.c (pseudo_from_raw_register)
10711 (raw_from_pseudo_register): New functions.
10712 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10713 them.
10714
76fd5f74
PA
107152014-02-12 Pedro Alves <palves@redhat.com>
10716
10717 * h8300-tdep.c (h8300_register_sim_regno): New function.
10718 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10719 gdbarch_register_sim_regno hook.
10720
8f008406
SA
107212014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10722
10723 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10724
195abc10
SA
107252014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10726
10727 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10728
93ffa5b9
MK
107292014-02-12 Mark Kettenis <kettenis@gnu.org>
10730
10731 * obsd-tdep.h (obsd_init_abi): New prototype.
10732 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10733 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10734 (obsd_init_abi): New functions.
10735 * i386obsd-tdep.c: Include "obsd-tdep.h".
10736 (i386obsd_init_abi): Call obsd_init_abi.
10737 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10738 (amd64obsd_init_abi): Call obsd_init_abi.
10739 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10740 obsd-tdep.c to gdb_target_obs.
10741
49caec94
JM
107422014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10743
10744 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10745 double float arguments to 16-byte in the argument slots.
10746
e1402065
DE
107472014-02-11 Doug Evans <xdje42@gmail.com>
10748
10749 * configure.ac: Don't crash if pkg-config is not found and guile
10750 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10751 in guile checks.
10752 * configure: Regenerate.
10753
edcc890f
YQ
107542014-02-11 Yao Qi <yao@codesourcery.com>
10755
10756 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10757 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10758 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10759 * gnu-nat.c (gnu_xfer_memory): Likewise.
10760 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10761 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10762 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10763 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10764
9b409511
YQ
107652014-02-11 Yao Qi <yao@codesourcery.com>
10766
10767 * target.h (enum target_xfer_error): Rename to ...
10768 (enum target_xfer_status): ... it. New. All users updated.
10769 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10770 New.
10771 (TARGET_XFER_STATUS_ERROR_P): New macro.
10772 (target_xfer_error_to_string): Remove declaration.
10773 (target_xfer_status_to_string): Declare.
10774 (target_xfer_partial_ftype): Adjust it.
10775 (struct target_ops) <to_xfer_partial>: Return
10776 target_xfer_status. Add argument xfered_len. Update
10777 comments.
10778 * target.c (target_xfer_error_to_string): Rename to ...
10779 (target_xfer_status_to_string): ... it. New. All callers
10780 updated.
10781 (target_read_live_memory): Likewise. Call target_xfer_partial
10782 instead of target_read.
10783 (memory_xfer_live_readonly_partial): Return
10784 target_xfer_status. Add argument xfered_len.
10785 (raw_memory_xfer_partial): Likewise.
10786 (memory_xfer_partial_1): Likewise.
10787 (memory_xfer_partial): Likewise.
10788 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10789 properly. Update debug message.
10790 (default_xfer_partial, current_xfer_partial): Likewise.
10791 (target_write_partial): Likewise.
10792 (target_read_partial): Likewise. All callers updated.
10793 (read_whatever_is_readable): Likewise.
10794 (target_write_with_progress): Likewise.
10795 (target_read_alloc_1): Likewise.
10796
10797 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10798 * auxv.c (procfs_xfer_auxv): Likewise.
10799 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10800 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10801 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10802 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10803 * corefile.c (read_memory): Adjust.
10804 * corelow.c (core_xfer_partial): Likewise.
10805 * ctf.c (ctf_xfer_partial): Likewise.
10806 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10807 updated.
10808 (darwin_xfer_partial): Likewise.
10809 * exec.c (section_table_xfer_memory_partial): Likewise. All
10810 callers updated.
10811 (exec_xfer_partial): Likewise.
10812 * exec.h (section_table_xfer_memory_partial): Update
10813 declaration.
10814 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10815 negative.
10816 (gnu_xfer_partial): Likewise.
10817 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10818 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10819 (ia64_hpux_xfer_solib_got): Likewise.
10820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10821 type of 'partial_len' to ULONGEST.
10822 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10823 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10824 (linux_nat_xfer_partial): Likewise.
10825 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10826 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10827 * monitor.c (monitor_xfer_memory): Likewise.
10828 (monitor_xfer_partial): Likewise.
10829 * procfs.c (procfs_xfer_partial): Likewise.
10830 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10831 * record-full.c (record_full_xfer_partial): Likewise.
10832 (record_full_core_xfer_partial): Likewise.
10833 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10834 (gdbsim_xfer_partial): Likewise.
10835 * remote.c (remote_write_bytes_aux): Likewise. All callers
10836 updated.
10837 (remote_write_bytes, remote_read_bytes): Likewise. All
10838 callers updated.
10839 (remote_flash_erase): Likewise. All callers updated.
10840 (remote_write_qxfer): Likewise. All callers updated.
10841 (remote_read_qxfer): Likewise. All callers updated.
10842 (remote_xfer_partial): Likewise.
10843 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10844 (rs6000_xfer_shared_libraries): Likewise.
10845 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10846 (sol_thread_xfer_partial): Likewise.
10847 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10848 (sparc_xfer_partial): Likewise.
10849 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10850 updated.
10851 (spu_xfer_partial): Likewise.
10852 * spu-multiarch.c (spu_xfer_partial): Likewise.
10853 * tracepoint.c (tfile_xfer_partial): Likewise.
10854 * windows-nat.c (windows_xfer_memory): Likewise.
10855 (windows_xfer_shared_libraries): Likewise.
10856 (windows_xfer_partial): Likewise.
10857 * valprint.c: Replace 'target_xfer_error' with
10858 'target_xfer_status' in comments.
10859
a8e63083
JB
108602014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10861
10862 Checked in by Joel Brobecker <brobecker@adacore.com>.
10863 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10864
e86b67d3
JB
108652014-02-11 Joel Brobecker <brobecker@adacore.com>
10866
10867 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10868 function parameters.
10869
4b7d1f7f
WN
108702014-02-10 Will Newton <will.newton@linaro.org>
10871
10872 * elfread.c (elf_rel_plt_read): Look for a .got section if
10873 looking up .got.plt fails.
10874 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10875 on address passed to elf_gnu_ifunc_record_cache.
10876 (elf_gnu_ifunc_resolve_addr): Likewise.
10877 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10878
961842b2
JM
108792014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10880
10881 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10882 (X_RETTURN): New macro.
10883 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10884
10885 * sparc64-tdep.c (sparc64_init_abi): Hook
10886 sparc_in_function_epilogue_p.
10887
3f03e7b1
GB
108882014-02-10 Gary Benson <gbenson@redhat.com>
10889
10890 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10891 Rename name_matcher to symbol_matcher.
10892
96f861ef
GB
108932014-02-10 Gary Benson <gbenson@redhat.com>
10894
10895 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10896 Use expand_symtabs_file_matcher_ftype and
10897 expand_symtabs_symbol_matcher_ftype.
10898
ee01b665
JB
108992014-02-10 Joel Brobecker <brobecker@adacore.com>
10900
10901 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10902 (struct ada_symbol_cache): New.
10903 (ada_free_symbol_cache): Forward declare.
10904 (struct ada_pspace_data): New.
10905 (ada_pspace_data_handle): New static global.
10906 (get_ada_pspace_data, ada_pspace_data_cleanup)
10907 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10908 (cache_space, cache): Delete, now folded inside struct
10909 ada_pspace_data.
10910 (ada_get_symbol_cache): New function.
10911 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10912 implementation.
10913 (_initialize_ada_language): Remove initialization of cache_space.
10914 Move call to observer_attach_inferior_exit up, grouping it
10915 with the other observer registrations inside this function.
10916 Rename command to be more general. Add call to
10917 register_program_space_data_with_cleanup.
10918
143adbbf
JB
109192014-02-10 Joel Brobecker <brobecker@adacore.com>
10920
10921 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10922 ada_new_objfile_observer.
10923 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10924 (_initialize_tasks): Update uses of ada_new_objfile_observer
10925 and ada_tasks_normal_stop_observer.
10926
aa4fb036
JB
109272014-02-10 Joel Brobecker <brobecker@adacore.com>
10928
10929 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10930 returned by the 'Length attribute to integer.
10931
9dee8cc6
JB
109322014-02-10 Joel Brobecker <brobecker@adacore.com>
10933
10934 * ada-lang.c (_initialize_ada_language): Initialize
10935 cache_space obstack.
10936
3d9434b5
JB
109372014-02-10 Joel Brobecker <brobecker@adacore.com>
10938
10939 * ada-lang.c (HASH_SIZE): New macro.
10940 (struct cache_entry): New type.
10941 (cache_space, cache): New static globals.
10942 (ada_clear_symbol_cache, find_entry): New functions.
10943 (lookup_cached_symbol, cache_symbol): Implement.
10944 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10945 (_initialize_ada_language): Attach ada_new_objfile_observer
10946 and ada_free_objfile_observer.
10947
f0c5f9b2
JB
109482014-02-10 Joel Brobecker <brobecker@adacore.com>
10949
10950 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10951 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10952 struct block * parameter.
10953 (ada_lookup_symbol_list_worker): Constify local variable "block".
10954 Remove cast which is no longer necessary.
10955
ed3ef339
DE
109562014-02-10 Doug Evans <xdje42@gmail.com>
10957
10958 Add Guile as an extension language.
10959 * NEWS: Mention Guile scripting.
10960 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10961 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10962 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10963 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10964 (CLIBS): Add GUILE_LIBS.
10965 (install-guile): New rule.
10966 (guile.o): New rule.
10967 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10968 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10969 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10970 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10971 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10972 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10973 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10974 * configure.ac: New option --with-guile.
10975 * configure: Regenerate.
10976 * config.in: Regenerate.
10977 * auto-load.c: Remove #include "python/python.h". Add #include
10978 "gdb/section-scripts.h".
10979 (source_section_scripts): Handle Guile scripts.
10980 (_initialize_auto_load): Add name of Guile objfile script to
10981 scripts-directory help text.
10982 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10983 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10984 (struct breakpoint): New member scm_bp_object.
10985 * defs.h (enum command_control_type): New value guile_control.
10986 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10987 "extension.h".
10988 (show_user): Update comment.
10989 (_initialize_cli_cmds): Update help text for "show user". Update help
10990 text for max-user-call-depth.
10991 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10992 "extension.h".
10993 (multi_line_command_p): Add guile_control.
10994 (print_command_lines): Handle guile_control.
10995 (execute_control_command, recurse_read_control_structure): Ditto.
10996 (process_next_line): Recognize "guile" commands.
10997 * disasm.c (gdb_disassemble_info): Make non-static.
10998 * disasm.h: #include "dis-asm.h".
10999 (struct gdbarch): Add forward decl.
11000 (gdb_disassemble_info): Declare.
11001 * extension.c: #include "guile/guile.h".
11002 (extension_languages): Add guile.
11003 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11004 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11005 * gdbtypes.c (get_unsigned_type_max): New function.
11006 (get_signed_type_minmax): New function.
11007 * gdbtypes.h (get_unsigned_type_max): Declare.
11008 (get_signed_type_minmax): Declare.
11009 * guile/README: New file.
11010 * guile/guile-internal.h: New file.
11011 * guile/guile.c: New file.
11012 * guile/guile.h: New file.
11013 * guile/scm-arch.c: New file.
11014 * guile/scm-auto-load.c: New file.
11015 * guile/scm-block.c: New file.
11016 * guile/scm-breakpoint.c: New file.
11017 * guile/scm-disasm.c: New file.
11018 * guile/scm-exception.c: New file.
11019 * guile/scm-frame.c: New file.
11020 * guile/scm-gsmob.c: New file.
11021 * guile/scm-iterator.c: New file.
11022 * guile/scm-lazy-string.c: New file.
11023 * guile/scm-math.c: New file.
11024 * guile/scm-objfile.c: New file.
11025 * guile/scm-ports.c: New file.
11026 * guile/scm-pretty-print.c: New file.
11027 * guile/scm-safe-call.c: New file.
11028 * guile/scm-string.c: New file.
11029 * guile/scm-symbol.c: New file.
11030 * guile/scm-symtab.c: New file.
11031 * guile/scm-type.c: New file.
11032 * guile/scm-utils.c: New file.
11033 * guile/scm-value.c: New file.
11034 * guile/lib/gdb.scm: New file.
11035 * guile/lib/gdb/boot.scm: New file.
11036 * guile/lib/gdb/experimental.scm: New file.
11037 * guile/lib/gdb/init.scm: New file.
11038 * guile/lib/gdb/iterator.scm: New file.
11039 * guile/lib/gdb/printing.scm: New file.
11040 * guile/lib/gdb/types.scm: New file.
11041 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11042 (VPATH): Add $(GUILE_SRCDIR).
11043 (GUILE_DIR): New variable.
11044 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11045 (all): Add stamp-guile dependency.
11046 (stamp-guile): New rule.
11047 (clean-guile, install-guile, uninstall-guile): New rules.
11048 (install-only): Add install-guile dependency.
11049 (uninstall): Add uninstall-guile dependency.
11050 (clean): Add clean-guile dependency.
11051
ac020ec5
DE
110522014-02-09 Doug Evans <xdje42@gmail.com>
11053
11054 Revert this patch (which I approved, mea culpa).
11055
11056 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11057
11058 * Makefile.in (all-lib): Remove.
11059 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11060
2a081c59
JK
110612014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11062
11063 Fix Python stack corruption.
11064 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11065 gdb_py_longest.
11066
0a6bd22d
MK
110672014-02-08 Mark Kettenis <kettenis@gnu.org>
11068
11069 * Makefile.in (all-lib): Remove.
11070 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11071
1a860409
DE
110722014-02-07 Doug Evans <dje@google.com>
11073
11074 * extension-priv.h (extension_language_script_ops): Add comment.
11075 (extension_language_ops): Add comment.
caf5a491 11076 (active_ext_lang_state): Fix typo in comment.
1a860409 11077
d137e6dc
PA
110782014-02-07 Pedro Alves <palves@redhat.com>
11079
0dcb32c3 11080 PR breakpoints/16292
d137e6dc
PA
11081 * infrun.c (handle_signal_stop) <signal arrives while stepping
11082 over a breakpoint>: Switch back to the stepping thread.
11083
ce6d0892
YQ
110842014-02-07 Yao Qi <yao@codesourcery.com>
11085
11086 * target.c (target_xfer_partial): Return zero if LEN is zero.
11087
2ed4b548
YQ
110882014-02-07 Yao Qi <yao@codesourcery.com>
11089
11090 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11091 (ld_so_xfer_auxv): Likewise.
11092 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11093 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11094 * corelow.c (core_xfer_partial): Likewise.
11095 * ctf.c (ctf_xfer_partial): Likewise.
11096 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11097 (darwin_xfer_partial): Likewise.
11098 * exec.c (exec_xfer_partial): Likewise.
11099 * gnu-nat.c (gnu_xfer_partial): Likewise.
11100 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11101 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11102 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11103 * linux-nat.c (linux_xfer_siginfo): Likewise.
11104 (linux_proc_xfer_spu): Likewise.
11105 * procfs.c (procfs_xfer_partial): Likewise.
11106 * record-full.c (record_full_xfer_partial): Likewise.
11107 (record_full_core_xfer_partial): Likewise.
11108 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11109 * remote.c (remote_write_qxfer): Likewise.
11110 (remote_write_qxfer, remote_read_qxfer): Likewise.
11111 (remote_xfer_partial): Likewise.
11112 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11113 (rs6000_xfer_shared_libraries): Likewise.
11114 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11115 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11116 (spu_xfer_partial): Likewise.
11117 * target.c (memory_xfer_partial_1): Likewise.
11118 * tracepoint.c (tfile_xfer_partial): Likewise.
11119 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11120 (windows_xfer_partial): Likewise.
11121
c09f20e4
YQ
111222014-02-07 Yao Qi <yao@codesourcery.com>
11123
11124 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11125 comments.
11126 (core_xfer_shared_libraries_aix): Likewise.
11127 * gdbarch.c, gdbarch.h: Regenerated.
11128 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11129 ULONGEST. Change 'len_avail' type to ULONGEST.
11130 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11131 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11132 declaration.
11133 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11134
8635b3bf
YQ
111352014-02-07 Yao Qi <yao@codesourcery.com>
11136
11137 * corefile.c (memory_error): Get 'exception' from ERR and pass
11138 'exception' to throw_error.
11139
6dddc817
DE
111402014-02-06 Doug Evans <xdje42@gmail.com>
11141
11142 * configure.ac (libpython checking): Remove all but python.o from
11143 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11144 * configure: Regenerate.
11145
11146 * Makefile.in (SFILES): Add extension.c.
11147 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11148 (COMMON_OBS): Add extension.o.
11149 * extension.h: New file.
11150 * extension-priv.h: New file.
11151 * extension.c: New file.
11152
11153 * python/python-internal.h: #include "extension.h".
11154 (gdbpy_auto_load_enabled): Declare.
11155 (gdbpy_apply_val_pretty_printer): Declare.
11156 (gdbpy_apply_frame_filter): Declare.
11157 (gdbpy_preserve_values): Declare.
11158 (gdbpy_breakpoint_cond_says_stop): Declare.
11159 (gdbpy_breakpoint_has_cond): Declare.
11160 (void source_python_script_for_objfile): Delete.
11161 * python/python.c: #include "extension-priv.h".
11162 Delete inclusion of "observer.h".
11163 (extension_language_python): Moved here and renamed from
11164 script_language_python in py-auto-load.c.
11165 Redefined to be of type extension_language_defn.
11166 (python_extension_script_ops): New global.
11167 (python_extension_ops): New global.
11168 (struct python_env): New member previous_active.
11169 (restore_python_env): Call restore_active_ext_lang.
11170 (ensure_python_env): Call set_active_ext_lang.
11171 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11172 New arg extlang.
11173 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11174 New arg extlang.
11175 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11176 New arg extlang.
11177 (gdbpy_eval_from_control_command): Renamed from
11178 eval_python_from_control_command, made static. New arg extlang.
11179 (gdbpy_source_script) Renamed from source_python_script, made static.
11180 New arg extlang.
11181 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11182 result to int. New arg extlang.
11183 (gdbpy_source_objfile_script): Renamed from
11184 source_python_script_for_objfile, made static. New arg extlang.
11185 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11186 static. New args extlang, extlang_printers. Change result type to
11187 "void".
11188 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11189 static. New arg extlang. Rename arg printers to extlang_printers
11190 and change type to ext_lang_type_printers *.
11191 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11192 static. Replace argument arg with extlang, extlang_printers.
11193 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11194 (!HAVE_PYTHON, source_python_script): Delete.
11195 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11196 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11197 (!HAVE_PYTHON, start_type_printers): Delete.
11198 (!HAVE_PYTHON, apply_type_printers): Delete.
11199 (!HAVE_PYTHON, free_type_printers): Delete.
11200 (_initialize_python): Delete call to observer_attach_before_prompt.
11201 (finalize_python): Set/restore active extension language.
11202 (gdbpy_finish_initialization) Renamed from
11203 finish_python_initialization, made static. New arg extlang.
11204 (gdbpy_initialized): New function.
11205 * python/python.h: #include "extension.h". Delete #include
11206 "value.h", "mi/mi-cmds.h".
11207 (extension_language_python): Declare.
11208 (GDBPY_AUTO_FILE_NAME): Delete.
11209 (enum py_bt_status): Moved to extension.h and renamed to
11210 ext_lang_bt_status.
11211 (enum frame_filter_flags): Moved to extension.h.
11212 (enum py_frame_args): Moved to extension.h and renamed to
11213 ext_lang_frame_args.
11214 (finish_python_initialization): Delete.
11215 (eval_python_from_control_command): Delete.
11216 (source_python_script): Delete.
11217 (apply_val_pretty_printer): Delete.
11218 (apply_frame_filter): Delete.
11219 (preserve_python_values): Delete.
11220 (gdbpy_script_language_defn): Delete.
11221 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11222 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11223
11224 * auto-load.c: #include "extension.h".
11225 (GDB_AUTO_FILE_NAME): Delete.
11226 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11227 (script_language_gdb): Delete, moved to extension.c and renamed to
11228 extension_language_gdb.
11229 (source_gdb_script_for_objfile): Delete.
11230 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11231 (loaded_script): Change type of language member to
11232 struct extension_language_defn *.
11233 (init_loaded_scripts_info): Initialize
11234 unsupported_script_warning_printed.
11235 (maybe_add_script): Make static. Change type of language arg to
11236 struct extension_language_defn *.
11237 (clear_section_scripts): Reset unsupported_script_warning_printed.
11238 (auto_load_objfile_script_1): Rewrite to use extension language API.
11239 (auto_load_objfile_script): Make public. Remove support-compiled-in
11240 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11241 (source_section_scripts): Rewrite to use extension language API.
11242 (load_auto_scripts_for_objfile): Rewrite to use
11243 auto_load_scripts_for_objfile.
11244 (collect_matching_scripts_data): Change type of language member to
11245 struct extension_language_defn *.
11246 (auto_load_info_scripts): Change type of language arg to
11247 struct extension_language_defn *.
11248 (unsupported_script_warning_print): New function.
11249 (script_not_found_warning_print): Make static.
11250 (_initialize_auto_load): Rewrite construction of scripts-directory
11251 help.
11252 * auto-load.h (struct objfile): Add forward decl.
11253 (struct script_language): Delete.
11254 (struct auto_load_pspace_info): Add forward decl.
11255 (struct extension_language_defn): Add forward decl.
11256 (maybe_add_script): Delete.
11257 (auto_load_objfile_script): Declare.
11258 (script_not_found_warning_print): Delete.
11259 (auto_load_info_scripts): Update prototype.
11260 (auto_load_gdb_scripts_enabled): Declare.
11261 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11262 auto_load_python_scripts_enabled and made public.
11263 (script_language_python): Delete, moved to python.c.
11264 (gdbpy_script_language_defn): Delete.
11265 (info_auto_load_python_scripts): Update to use
11266 extension_language_python.
11267
11268 * breakpoint.c (condition_command): Replace call to
11269 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11270 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11271 with call to breakpoint_ext_lang_cond_says_stop.
11272 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11273 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11274 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11275 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11276 New arg slang.
11277 (local_setattro): Print name of extension language with existing
11278 stop condition.
11279
11280 * valprint.c (val_print, value_print): Update to call
11281 apply_ext_lang_val_pretty_printer.
11282 * cp-valprint.c (cp_print_value): Update call to
11283 apply_ext_lang_val_pretty_printer.
11284 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11285 (gdbpy_apply_val_pretty_printer): Renamed from
11286 apply_val_pretty_printer. New arg extlang.
11287 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11288
11289 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11290 extension language API.
11291 * cli/cli-script.c (execute_control_command): Update to call
11292 eval_ext_lang_from_control_command.
11293
11294 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11295 enum ext_lang_bt_status values. Update call to
11296 apply_ext_lang_frame_filter.
11297 (mi_cmd_stack_list_locals): Ditto.
11298 (mi_cmd_stack_list_args): Ditto.
11299 (mi_cmd_stack_list_variables): Ditto.
11300 * mi/mi-main.c: Delete #include "python/python-internal.h".
11301 Add #include "extension.h".
11302 (mi_cmd_list_features): Replace reference to python internal variable
11303 gdb_python_initialized with call to ext_lang_initialized_p.
11304
11305 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11306 Update to use enum ext_lang_frame_args. Update to call
11307 apply_ext_lang_frame_filter.
11308 * python/py-framefilter.c (extract_sym): Update to use enum
11309 ext_lang_bt_status.
11310 (extract_value, py_print_type, py_print_value): Ditto.
11311 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11312 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11313 (py_print_frame): Ditto.
11314 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11315 New arg extlang. Update to use enum ext_lang_bt_status.
11316
11317 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11318 finish_python_initialization. Replace with call to
11319 finish_ext_lang_initialization.
11320
11321 * typeprint.c (do_free_global_table): Update to call
11322 free_ext_lang_type_printers.
11323 (create_global_typedef_table): Update to call
11324 start_ext_lang_type_printers.
11325 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11326 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11327 (type_print_options): Change type of global_printers from "void *"
11328 to "struct ext_lang_type_printers *".
11329
11330 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11331 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11332 (gdbpy_preserve_values): Renamed from preserve_python_values.
11333 New arg extlang.
11334 (!HAVE_PYTHON, preserve_python_values): Delete.
11335
11336 * utils.c (quit_flag): Delete, moved to extension.c.
11337 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11338 extension.c.
11339
11340 * eval.c: Delete #include "python/python.h".
11341 * main.c: Delete #include "python/python.h".
11342
11343 * defs.h: Update comment.
11344
6af79985
JB
113452014-02-06 Joel Brobecker <brobecker@adacore.com>
11346
11347 GDB 7.7 released.
11348
12c5175d
MK
113492014-02-05 Mark Kettenis <kettenis@gnu.org>
11350
11351 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11352 defined.
11353
8dc5b319
YQ
113542014-02-05 Yao Qi <yao@codesourcery.com>
11355
11356 * remote.c (remote_pass_signals): Remove local 'buf' and use
11357 rs->buf.
11358 (remote_program_signals): Likewise.
11359
de7b2893
YQ
113602014-02-05 Yao Qi <yao@codesourcery.com>
11361
11362 * ctf.c: Include "inferior.h" and "gdbthread.h".
11363 (CTF_PID): A new macro.
11364 (ctf_open): Call inferior_appeared and add_thread_silent.
11365 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11366 (ctf_thread_alive): New function.
11367 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11368
66d032ac
YQ
113692014-02-05 Yao Qi <yao@codesourcery.com>
11370
11371 Revert this patch:
11372
11373 2013-05-24 Yao Qi <yao@codesourcery.com>
11374
11375 * tracepoint.c (TFILE_PID): Remove.
11376 (tfile_open): Don't add thread and inferior.
11377 (tfile_close): Don't set 'inferior_ptid'. Don't call
11378 exit_inferior_silent.
11379 (tfile_thread_alive): Remove.
11380 (init_tfile_ops): Don't set field 'to_thread_alive' of
11381 tfile_ops.
11382
f4ccffad
CE
113832014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11384
11385 * remote.c (remote_start_remote): Call remote_check_symbols even
11386 if only symbol-file (not file) has been given.
11387
591a12a1
UW
113882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11389
11390 * gdbarch.sh (skip_entrypoint): New callback.
11391 * gdbarch.c, gdbarch.h: Regenerate.
11392 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11393 * infrun.c (fill_in_stop_func): Likewise.
11394 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11395 (ppc_elfv2_elf_make_msymbol_special): New function.
11396 (ppc_elfv2_skip_entrypoint): Likewise.
11397 (ppc_linux_init_abi): Install them for ELFv2.
11398
cc0e89c5
UW
113992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11400
11401 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11402 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11403 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11404 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11405 structures returned in GPRs.
11406
52f548e4
UW
114072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11408
11409 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11410 offset to the stack parameter list for the ELFv2 ABI.
11411
d4094b6a
UW
114122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11413
11414 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11415 set_gdbarch_convert_from_func_ptr_addr and
11416 set_gdbarch_elf_make_msymbol_special for ELFv1.
11417 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11418 function descriptors on ELFv1.
11419 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11420 set up r12 at function entry.
11421
cd453cd0
UW
114222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11423
11424 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11425 (struct gdbarch_tdep): New member elf_abi.
11426
11427 * rs6000-tdep.c: Include "elf/ppc64.h".
11428 (rs6000_gdbarch_init): Detect ELF ABI version.
11429
0ff3e01f
UW
114302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11431
11432 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11433 within a register pair holding a DFP 128-bit value on little-endian.
11434 (ppc64_sysv_abi_return_value_base): Likewise.
11435 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11436 (dfp_pseudo_register_write): Likewise.
11437
5b757e5d
UW
114382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11439
11440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11441 offset on little-endian when passing _Decimal32.
11442 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11443
084ee545
UW
114442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11445
11446 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11447 of the overlapped FP register within the VSX register on little-
11448 endian platforms.
11449 (efpr_pseudo_register_write): Likewise.
11450
d63167af
UW
114512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11452
11453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11454 offset on little-endian when passing small structures.
11455
e765b44c
UW
114562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11457
11458 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11459 (struct ppc64_sysv_argpos): New data structure.
11460 (ppc64_sysv_abi_push_float): Remove.
11461 (ppc64_sysv_abi_push_val): New function.
11462 (ppc64_sysv_abi_push_integer): Likewise.
11463 (ppc64_sysv_abi_push_freg): Likewise.
11464 (ppc64_sysv_abi_push_vreg): Likewise.
11465 (ppc64_sysv_abi_push_param): Likewise.
11466 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11467 (ppc64_sysv_abi_return_value_base): New function.
11468 (ppc64_sysv_abi_return_value): Refactor to use it.
11469
36c24d95
UW
114702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11471
11472 * NEWS: Document new target powerpc64le-*-linux*.
11473
26fd9228
MK
114742014-02-04 Mark Kettenis <kettenis@gnu.org>
11475
11476 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11477 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11478 core dumps.
11479 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11480 register set used in ELF core dumps. Add floating-point register set.
11481
c5bb7362
KB
114822014-02-03 Kevin Buettner <kevinb@redhat.com>
11483
74228e77 11484 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11485 dwarf2_to_gdb[] table using symbolic constants. Adjust
11486 penultimate entry from number representing the PC register
11487 to symbolic constant representing the MDR register. Add
11488 constant for the PC register to the end of the table.
11489
af09351e
MK
114902014-02-03 Mark Kettenis <kettenis@gnu.org>
11491
11492 * bsd-kvm.c: Include <sys/param.h>
11493
8507e05d
MK
114942014-02-03 Mark Kettenis <kettenis@gnu.org>
11495
11496 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11497
ae56bfb8
JB
114982014-01-31 Joel Brobecker <brobecker@adacore.com>
11499
11500 * ada-lang.h (clear_ada_sym_cache): Delete.
11501
718ee4dc
UW
115022014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11503
11504 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11505
401e27fd
JM
115062014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11507
11508 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11509 the sigreturn register save area only if the syscall is
11510 sigreturn.
11511
a7c88acd
JB
115122014-01-29 Joel Brobecker <brobecker@adacore.com>
11513
11514 * valops.c (value_slice): Minor reformatting.
11515
fa0079ea
UW
115162014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11517
11518 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11519
c6044dd1
JB
115202014-01-28 Joel Brobecker <brobecker@adacore.com>
11521
11522 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11523 New static globals.
11524 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11525 (ada_ignore_descriptive_types_p): New static global.
11526 (find_parallel_type_by_descriptive_type): Return immediately
11527 if ada_ignore_descriptive_types_p is set.
11528 (_initialize_ada_language): Register new commands "maintenance
11529 set ada", "maintenance show ada", "maintenance set ada
11530 ignore-descriptive-types" and "maintenance show ada
11531 ignore-descriptive-types".
11532 * NEWS: Add entry for new "maint ada set/show
11533 ignore-descriptive-types" commands.
11534
568e808b
MM
115352014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11536
11537 * record-btrace.c (record_btrace_close): Call btrace_teardown
11538 for all threads.
11539
467d141b
JB
115402014-01-27 Joel Brobecker <brobecker@adacore.com>
11541
11542 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11543 "ui-out.h".
11544
fb151210
JB
115452014-01-27 Joel Brobecker <brobecker@adacore.com>
11546
11547 * ada-typeprint (type_is_full_subrange_of_target_type):
11548 New function.
11549 (print_range): Add parameter bounds_prefered_p. If not set,
11550 try printing range types using the name of their base type.
11551 (print_range_type): Add parameter bounds_prefered_p.
11552 Use it in call to print_range.
11553 (print_array_type, ada_print_type): Update calls to print_range
11554 and print_range_type.
11555
aba02109
JB
115562014-01-27 Joel Brobecker <brobecker@adacore.com>
11557
11558 * ada-typeprint.c (print_array_type, print_choices, print_range)
11559 (print_range_bound, print_dynamic_range_bound, print_range_type):
11560 Remove declaration.
11561
e62e21fd
JB
115622014-01-27 Joel Brobecker <brobecker@adacore.com>
11563
11564 * ada-typeprint.c (print_range): Add missing empty line
11565 after local declaration.
11566
859cf5d1
JB
115672014-01-27 Joel Brobecker <brobecker@adacore.com>
11568
11569 * ada-valprint.c (print_optional_low_bound): Get index_type's
11570 target type for as long as it is a TYPE_CODE_RANGE.
11571
25790f6f
JB
115722014-01-27 Joel Brobecker <brobecker@adacore.com>
11573
11574 * procfs.c (procfs_make_note_section): Remove assertion and
11575 associated comment.
11576
6b6aa828
YQ
115772014-01-24 Yao Qi <yao@codesourcery.com>
11578
11579 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11580 * corelow.c (get_core_siginfo): Likewise.
11581
5d6df423
YQ
115822014-01-24 Yao Qi <yao@codesourcery.com>
11583
11584 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11585 ULONGEST. Don't check 'len' is negative.
11586 (remote_write_bytes): Change type of 'len' to ULONGEST.
11587
83b645b8
TT
115882014-01-23 Tom Tromey <tromey@redhat.com>
11589
11590 PR python/16485:
11591 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11592 Handle exception from frame.block.
11593 (FrameVars.fetch_frame_locals): Likewise.
11594
0740f8d8
TT
115952014-01-23 Tom Tromey <tromey@redhat.com>
11596
11597 PR python/16487:
11598 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11599 on a NULL pointer. Move "goto error" to correct place.
11600
21909fa1
TT
116012014-01-23 Tom Tromey <tromey@redhat.com>
11602
11603 PR python/16491:
11604 * python/py-framefilter.c (apply_frame_filter): Call
11605 ensure_python_env after computing gdbarch.
11606
17fde6d0
YQ
116072014-01-23 Yao Qi <yao@codesourcery.com>
11608
11609 * target.c (raw_memory_xfer_partial): Change argument type
11610 from void * to gdb_byte *.
11611 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11612
87ce2a04
DE
116132014-01-22 Doug Evans <dje@google.com>
11614
11615 New gdbserver option --debug-format=timestamp.
11616 * NEWS: Mention it.
11617
237b092b
AA
116182014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11619
11620 * syscalls/s390x-linux.xml: New file.
11621 * syscalls/s390-linux.xml: New file.
11622 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11623 (XML_SYSCALL_FILENAME_S390X): Likewise.
11624 (op_svc): New enum value for SVC opcode.
11625 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11626 (s390_linux_get_syscall_number): New function.
11627 (s390_gdbarch_init): Register '*get_syscall_number' and the
11628 syscall xml file name.
11629 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11630 "s390-linux.xml" and "s390x-linux.xml".
11631 * NEWS: Announce new feature.
11632
54bff650
BS
116332014-01-22 Baruch Siach <baruch@tkos.co.il>
11634
11635 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11636
14e361d7
PA
116372014-01-22 Pedro Alves <palves@redhat.com>
11638
11639 * xtensa-config.c: Include defs.h.
11640
46bbb3ed
JB
116412014-01-22 Joel Brobecker <brobecker@adacore.com>
11642
11643 * common/common-utils.h: Add "ARI:" comment beside __func__
11644 reference.
11645
3a80edfc
JB
116462014-01-22 Joel Brobecker <brobecker@adacore.com>
11647
11648 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11649 documentation a bit.
11650
4869db5e
RM
116512014-01-21 Roland McGrath <mcgrathr@google.com>
11652
11653 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11654 * configure: Regenerate.
11655 * aclocal.m4: Regenerate.
11656 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11657 New substituted variables.
11658 (install-strip): New target.
11659 (INSTALL_SCRIPT): New substituted variable.
11660 (FLAGS_TO_PASS): Add it.
11661 (install-only): Use $(INSTALL_SCRIPT) rather than
11662 $(INSTALL_PROGRAM) for gcore.
11663
9ea4267d
TT
116642014-01-20 Tom Tromey <tromey@redhat.com>
11665
11666 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11667 together.
11668
1f2bdf09
TT
116692014-01-20 Tom Tromey <tromey@redhat.com>
11670
11671 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11672 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11673 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11674 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11675 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11676 (struct cmd_list_element) <flags>: Remove.
11677 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11678 doc_allocated>: New fields.
11679 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11680 bitfields.
11681 * maint.c (maintenance_do_deprecate): Update.
11682 * top.c (execute_command): Update.
11683
e671835b
BS
116842014-01-20 Baruch Siach <baruch@tkos.co.il>
11685
11686 * xtensa-linux-nat.c: Include asm/ptrace.h.
11687
50367cd2
IB
116882014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11689
11690 * Makefile.in (SFILES): Add d-support.c.
11691 (COMMON_OBS): Add d-support.o.
11692 * d-lang.h (d_parse_symbol): Add comment, now defined in
11693 d-support.c.
11694 * d-lang.c (parse_call_convention)
11695 (parse_attributes, parse_function_types)
11696 (parse_function_args, parse_type, parse_identifier)
11697 (call_convention_p, d_parse_symbol): Move functions to ...
11698 * d-support.c: ... New file.
11699
ec9f644a
IB
117002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11701
11702 * d-lang.h (d_parse_symbol): Add declaration.
11703 * d-lang.c (extract_identifiers)
11704 (extract_type_info): Remove functions.
11705 (parse_call_convention, parse_attributes)
11706 (parse_function_types, parse_function_args)
11707 (parse_type, parse_identifier, call_convention_p)
11708 (d_parse_symbol): New functions.
11709 (d_demangle): Use d_parse_symbol to demangle D symbols.
11710
94b1b47e
IB
117112014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11712
11713 * d-lang.h (struct builtin_d_type): New data type.
11714 (builtin_d_type): Add declaration.
11715 * d-lang.c (d_language_arch_info, build_d_types)
11716 (builtin_d_type): New functions.
11717 (enum d_primitive_types): New data type.
11718 (d_language_defn): Change c_language_arch_info to
11719 d_language_arch_info.
11720 (d_type_data): New static variable.
11721 (_initialize_d_language): Initialize d_type_data.
11722
63778547
IB
117232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11724
11725 * d-lang.h (d_main_name): Add declaration.
11726 * d-lang.c (d_main_name): New function.
11727 * symtab.c (find_main_name): Add call to d_main_name.
11728
3271ba66
IB
117292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11730
11731 * d-lang.c (d_language_defn): Change macro_expansion_c to
11732 macro_expansion_no.
11733
d36b3012
IB
117342014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11735
11736 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11737
c90a6fb7
SDJ
117382014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11739
11740 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11741 gdb_exception" declaration.
11742 * remote.c (getpkt_or_notif_sane): Likewise.
11743
749234e5
DE
117442014-01-17 Doug Evans <dje@google.com>
11745
11746 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11747 function, contents of dirnames_to_char_ptr_vec_append moved here.
11748 (delim_string_to_char_ptr_vec): New function.
11749 (dirnames_to_char_ptr_vec_append): Rewrite.
11750 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11751
df049a58
DE
117522014-01-17 Doug Evans <dje@google.com>
11753
11754 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11755 and moved here ...
11756 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11757 #include "common-utils.h".
11758 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11759 * common/vec.h (VEC_ASSERT_PASS): Update.
11760 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11761 (MACH_CHECK_ERROR): Update.
11762
69f97648
SM
117632014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11764
11765 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11766 comments.
11767 * gdbarch.h: Regenerate.
11768
98b1cfdc
TT
117692014-01-16 Tom Tromey <tromey@redhat.com>
11770
11771 * value.c (struct value) <regnum>: Move earlier.
11772
77a19445
TT
117732014-01-16 Tom Tromey <tromey@redhat.com>
11774
11775 * remote.c (extended_remote_create_inferior): Rename from
11776 extended_remote_create_inferior_1. Add "ops" argument. Remove
11777 old implementation.
11778
62261490
PA
117792014-01-16 Pedro Alves <palves@redhat.com>
11780
11781 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11782 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11783 the backchain.
11784
4d65956b
DE
117852014-01-16 Doug Evans <dje@google.com>
11786
11787 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11788
52834460
MM
117892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11790
11791 * btrace.h (btrace_thread_flag): New.
11792 (struct btrace_thread_info) <flags>: New.
11793 * record-btrace.c (record_btrace_resume_thread)
11794 (record_btrace_find_thread_to_move, btrace_step_no_history)
11795 (btrace_step_stopped, record_btrace_start_replaying)
11796 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11797 (record_btrace_find_resume_thread): New.
11798 (record_btrace_resume, record_btrace_wait): Extend.
11799 (record_btrace_can_execute_reverse): New.
11800 (record_btrace_open): Fail in non-stop mode.
11801 (record_btrace_set_replay): Split into this, ...
11802 (record_btrace_stop_replaying): ... this, ...
11803 (record_btrace_clear_histories): ... and this.
11804 (init_record_btrace_ops): Init to_can_execute_reverse.
11805 * NEWS: Announce it.
11806
118e6252
MM
118072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11808
11809 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11810 (forward_target_decr_pc_after_break)
11811 (target_decr_pc_after_break): New.
11812 * target.c (forward_target_decr_pc_after_break)
11813 (target_decr_pc_after_break): New.
11814 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11815 instead of gdbarch_decr_pc_after_break.
11816 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11817 instead of gdbarch_decr_pc_after_break.
11818 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11819 instead of gdbarch_decr_pc_after_break.
11820 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11821 instead of gdbarch_decr_pc_after_break.
11822 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11823 instead of gdbarch_decr_pc_after_break.
11824 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11825 instead of gdbarch_decr_pc_after_break.
11826
6e07b1d2
MM
118272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11828
11829 * btrace.c: Include regcache.h.
11830 (btrace_add_pc): New.
11831 (btrace_enable): Call btrace_add_pc.
11832 (btrace_is_empty): New.
11833 * btrace.h (btrace_is_empty): New.
11834 * record-btrace.c (require_btrace, record_btrace_info): Call
11835 btrace_is_empty.
11836
969c39fb
MM
118372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11838
11839 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11840 Support delta reads.
11841 (linux_disable_btrace): Change return type.
11842 * common/linux-btrace.h (linux_read_btrace): Change parameters
11843 and return type to allow error reporting. Update users.
11844 (linux_disable_btrace): Change return type. Update users.
11845 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11846 New.
11847 (btrace_error): New.
11848 (btrace_block) <begin>: Comment on BEGIN == 0.
11849 * btrace.c (btrace_compute_ftrace): Start from the end of
11850 the current trace.
11851 (btrace_stitch_trace, btrace_clear_history): New.
11852 (btrace_fetch): Read delta trace, return if replaying.
11853 (btrace_clear): Move clear history code to btrace_clear_history.
11854 (parse_xml_btrace): Throw an error if parsing failed.
11855 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11856 and return type to allow error reporting.
11857 (target_read_btrace): Change parameters and return type to allow
11858 error reporting.
11859 * target.c (target_read_btrace): Update.
11860 * remote.c (remote_read_btrace): Support delta reads. Pass
11861 errors on.
11862 * NEWS: Announce it.
11863
0b722aec
MM
118642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11865
11866 * record.h (record_btrace_frame_unwind)
11867 (record_btrace_tailcall_frame_unwind): New declarations.
11868 * dwarf2-frame: Include record.h
11869 (dwarf2_frame_cfa): Throw an error for btrace frames.
11870 * record-btrace.c: Include hashtab.h.
11871 (btrace_get_bfun_name): New.
11872 (btrace_call_history): Call btrace_get_bfun_name.
11873 (struct btrace_frame_cache): New.
11874 (bfcache): New.
11875 (bfcache_hash, bfcache_eq, bfcache_new): New.
11876 (btrace_get_frame_function): New.
11877 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11878 (record_btrace_frame_this_id): Compute own id.
11879 (record_btrace_frame_prev_register): Provide PC, throw_error
11880 for all other registers.
11881 (record_btrace_frame_sniffer): Detect btrace frames.
11882 (record_btrace_tailcall_frame_sniffer): New.
11883 (record_btrace_frame_dealloc_cache): New.
11884 (record_btrace_frame_unwind): Add new functions.
11885 (record_btrace_tailcall_frame_unwind): New.
11886 (_initialize_record_btrace): Allocate cache.
11887 * btrace.c (btrace_clear): Call reinit_frame_cache.
11888 * NEWS: Announce it.
11889
066ce621
MM
118902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11891
11892 * record-btrace.c (record_btrace_set_replay)
11893 (record_btrace_goto_begin, record_btrace_goto_end)
11894 (record_btrace_goto): New.
11895 (init_record_btrace_ops): Initialize them.
11896 * NEWS: Announce it.
11897
e2887aa3
MM
118982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11899
11900 * record-btrace.c (record_btrace_find_new_threads)
11901 (record_btrace_thread_alive): New.
11902 (init_record_btrace_ops): Initialize to_find_new_threads and
11903 to_thread_alive.
11904
b2f4cfde
MM
119052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11906
11907 * record-btrace.c (record_btrace_resume): New.
11908 (record_btrace_wait): New.
11909 (init_record_btrace_ops): Initialize to_wait and to_resume.
11910
633785ff
MM
119112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11912
11913 * record-btrace.c (record_btrace_xfer_partial)
11914 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11915 (record_btrace_allow_memory_access): New.
11916 (init_record_btrace_ops): Initialize new methods.
11917 * target.c (raw_memory_xfer_partial): Bail out if target reports
11918 that this memory is not available.
11919
3db08215
MM
119202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11921
11922 * target.h (target_ops) <to_insert_breakpoint>
11923 <to_remove_breakpoint>: Add target_ops parameter.
11924 (forward_target_insert_breakpoint): New.
11925 (forward_target_remove_breakpoint): New.
11926 (memory_remove_breakpoint, memory_insert_breakpoint):
11927 Add target_ops parameter.
11928 * target.c (target_insert_breakpoint): Split into this and ...
11929 (forward_target_insert_breakpoint): ... this.
11930 (target_remove_breakpoint): Split into this and ...
11931 (forward_target_remove_breakpoint): ... this.
11932 (debug_to_insert_breakpoint): Add target_ops parameter.
11933 Call forward_target_insert_breakpoint.
11934 (debug_to_remove_breakpoint): Add target_ops parameter.
11935 Call forward_target_remove_breakpoint.
11936 (update_current_target): Do not inherit or default to_insert_breakpoint
11937 and to_remove_breakpoint.
11938 * corelow.c (ignore): Add target_ops parameter.
11939 * exec.c (ignore): Add target_ops parameter.
11940 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11941 Add target_ops parameter.
11942 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11943 Add target_ops parameter.
11944 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11945 Add target_ops parameter.
11946 * record-full.c (record_full_beneath_to_insert_breakpoint)
11947 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11948 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11949 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11950 (record_full_core_remove_breakpoint): Add target_ops parameter.
11951 Update users.
11952 (record_full_beneath_to_insert_breakpoint_ops)
11953 (record_full_beneath_to_remove_breakpoint_ops)
11954 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11955 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11956 tmp_to_remove_breakpoint_ops,
11957 record_full_beneath_to_insert_breakpoint_ops, and
11958 record_full_beneath_to_remove_breakpoint_ops.
11959 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11960 (m32r_remove_breakpoint): Add target_ops parameter.
11961 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11962 Add target_ops parameter.
11963 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11964 Add target_ops parameter.
11965
cecac1ab
MM
119662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11967 Markus Metzger <markus.t.metzger@intel.com>
11968
11969 * record-btrace.c: Include frame-unwind.h.
11970 (record_btrace_frame_unwind_stop_reason)
11971 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11972 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11973 New.
11974 (init_record_btrace_ops): Install it.
11975
824344ca
MM
119762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11977
11978 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11979 get_prev_frame_1.
11980
32261e52
MM
119812014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11982
11983 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11984 earlier.
11985
ea001bdc
MM
119862014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11987
11988 * frame-unwind.c: Include target.h.
11989 (frame_unwind_try_unwinder): New function with code from ...
11990 (frame_unwind_find_by_frame): ... here. New variable
11991 unwinder_from_target, call also target_get_unwinder)
11992 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11993 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11994 * target.h (struct target_ops): New fields to_get_unwinder and
11995 to_get_tailcall_unwinder.
11996 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11997
1f3ef581
MM
119982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11999
12000 * record-btrace.c (record_btrace_fetch_registers)
12001 (record_btrace_store_registers)
12002 (record_btrace_to_prepare_to_store): New.
12003 (init_record_btrace_ops): Add the above.
12004
f32dbf8c
MM
120052014-01-16 Tom Tromey <tromey@redhat.com>
12006
12007 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12008 * target.h (struct target_ops) <to_prepare_to_store>: Add
12009 argument.
12010 (target_prepare_to_store): Add argument.
12011 * target.c (debug_to_prepare_to_store): Add argument.
12012 (update_current_target): Update.
12013 * remote.c (remote_prepare_to_store): Add 'self' argument.
12014 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12015 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12016 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12017 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12018 argument.
12019 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12020 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12021 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12022 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12023 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12024
07bbe694
MM
120252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12026
12027 * btrace.h (replay) <replay>: New.
12028 (btrace_is_replaying): New.
12029 * btrace.c (btrace_clear): Free replay iterator.
12030 (btrace_is_replaying): New.
12031 * record-btrace.c (record_btrace_is_replaying): New.
12032 (record_btrace_info): Print insn number if replaying.
12033 (record_btrace_insn_history): Start at replay position.
12034 (record_btrace_call_history): Start at replay position.
12035 (init_record_btrace_ops): Init to_record_is_replaying.
12036
0688d04e
MM
120372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12038
12039 * record-btrace.c (record_btrace_insn_history_range): Include
12040 end.
12041 (record_btrace_insn_history_from): Adjust range.
12042 (record_btrace_call_history_range): Include
12043 end.
12044 (record_btrace_call_history_from): Adjust range.
12045 * NEWS: Announce changes.
12046
8710b709
MM
120472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12048
12049 * record.h (enum record_print_flag)
12050 <record_print_indent_calls>: New.
12051 * record.c (get_call_history_modifiers): Recognize /c modifier.
12052 (_initialize_record): Document /c modifier.
12053 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12054 Reorder fields. Optionally indent the function name. Update
12055 all users.
12056 * NEWS: Announce changes.
12057
d0fa7535
MM
120582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12059
12060 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12061
5de9129b
MM
120622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12063
12064 * btrace.c (ftrace_new_function): Start counting at one.
12065 * record-btrace.c (record_btrace_info): Adjust number of calls
12066 and insns.
12067 * NEWS: Announce it.
12068
7acbe133
MM
120692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12070
12071 * record-btrace.c (btrace_call_history_insn_range): Print
12072 insn range as [begin, end].
12073
23a7fe75
MM
120742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12075
12076 * btrace.h (struct btrace_func_link): New.
12077 (enum btrace_function_flag): New.
12078 (struct btrace_inst): Rename to ...
12079 (struct btrace_insn): ...this. Update all users.
12080 (struct btrace_func) <ibegin, iend>: Remove.
12081 (struct btrace_func_link): New.
12082 (struct btrace_func): Rename to ...
12083 (struct btrace_function): ...this. Update all users.
12084 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12085 (number, level, flags>: New.
12086 (struct btrace_insn_iterator): Rename to ...
12087 (struct btrace_insn_history): ...this.
12088 Update all users.
12089 (struct btrace_insn_iterator, btrace_call_iterator): New.
12090 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12091 (struct btrace_target_info) <begin, end, level>
12092 <insn_history, call_history>: New.
12093 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12094 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12095 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12096 (btrace_call_number, btrace_call_begin, btrace_call_end)
12097 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12098 (btrace_find_function_by_number, btrace_set_insn_history)
12099 (btrace_set_call_history): New.
12100 * btrace.c (btrace_init_insn_iterator)
12101 (btrace_init_func_iterator, compute_itrace): Remove.
12102 (ftrace_print_function_name, ftrace_print_filename)
12103 (ftrace_skip_file): Change
12104 parameter to const.
12105 (ftrace_init_func): Remove.
12106 (ftrace_debug): Use new btrace_function fields.
12107 (ftrace_function_switched): Also consider gaining and
12108 losing symbol information).
12109 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12110 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12111 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12112 New.
12113 (ftrace_new_function): Move. Remove debug print.
12114 (ftrace_update_lines, ftrace_update_insns): New.
12115 (ftrace_update_function): Check for call, ret, and jump.
12116 (compute_ftrace): Renamed to ...
12117 (btrace_compute_ftrace): ...this. Rewritten to compute call
12118 stack.
12119 (btrace_fetch, btrace_clear): Updated.
12120 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12121 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12122 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12123 (btrace_call_number, btrace_call_begin, btrace_call_end)
12124 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12125 (btrace_find_function_by_number, btrace_set_insn_history)
12126 (btrace_set_call_history): New.
12127 * record-btrace.c (require_btrace): Use new btrace thread
12128 info fields.
12129 (record_btrace_info, btrace_insn_history)
12130 (record_btrace_insn_history, record_btrace_insn_history_range):
12131 Use new btrace thread info fields and new iterator.
12132 (btrace_func_history_src_line): Rename to ...
12133 (btrace_call_history_src_line): ...this. Use new btrace
12134 thread info fields.
12135 (btrace_func_history): Rename to ...
12136 (btrace_call_history): ...this. Use new btrace thread info
12137 fields and new iterator.
12138 (record_btrace_call_history, record_btrace_call_history_range):
12139 Use new btrace thread info fields and new iterator.
12140
8372a7cb
MM
121412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12142
12143 * frame.h (frame_id_build_unavailable_stack_special): New.
12144 * frame.c (frame_id_build_unavailable_stack_special): New.
12145
c2170eef
MM
121462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12147
12148 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12149 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12150 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12151 to gdbarch.
12152 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12153 (i386_insn_is_jump, i386_jmp_p): New.
12154 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12155 insn_is_jump to gdbarch.
12156 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12157 * gdbarch.h: Regenerated.
12158 * gdbarch.c: Regenerated.
12159 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12160 (default_insn_is_jump): New.
12161 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12162 (default_insn_is_jump): New.
12163
864089d2
MM
121642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12165
12166 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12167 Change to ...
12168 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12169 (btrace_read_type) <btrace_read_new>: Change to ...
12170 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12171
ed9edfb5
MM
121722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12173
12174 * common/linux-btrace.c (linux_read_btrace): Free trace from
12175 previous iteration.
12176
fbcbc3fd
DE
121772014-01-15 Doug Evans <dje@google.com>
12178
12179 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12180 uint32_t.
12181
3d548a53
TT
121822014-01-15 Tom Tromey <tromey@redhat.com>
12183
12184 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12185 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12186 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12187 (set_objfile_main_name): New function.
12188 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12189 language_of_main>: New fields.
12190 (set_objfile_main_name): Declare.
12191 * symtab.c (find_main_name): Loop over objfiles to find the main
12192 name and language.
12193 (set_main_name): Now static.
12194 (get_main_info): Add comment.
12195 * symtab.h (set_main_name): Don't declare.
12196
32ac0d11
TT
121972014-01-15 Tom Tromey <tromey@redhat.com>
12198
12199 * symtab.c (main_progspace_key): New global.
12200 (struct main_info): New.
12201 (name_of_main, language_of_main): Remove.
12202 (get_main_info, main_info_cleanup): New function.
12203 (set_main_name, main_name, main_language): Use get_main_info.
12204 (_initialize_symtab): Initialize main_progspace_key.
12205
9e6c82ad
TT
122062014-01-15 Tom Tromey <tromey@redhat.com>
12207
12208 * dbxread.c (process_one_symbol): Update.
12209 * dwarf2read.c (read_partial_die): Update.
12210 * symfile.c (set_initial_language): Call main_language.
12211 * symtab.c (language_of_main): Now static.
12212 (set_main_name): Add 'lang' parameter.
12213 (find_main_name): Update.
12214 (main_language): New function.
12215 (symtab_observer_executable_changed): Update.
12216 * symtab.h (set_main_name): Update.
12217 (language_of_main): Remove.
12218 (main_language): Declare.
12219
6ef55de7
TT
122202014-01-15 Tom Tromey <tromey@redhat.com>
12221
12222 * symfile.c (init_entry_point_info): Use new "initialized" field.
12223 Update.
12224 * objfiles.h (struct entry_point) <initialized>: New field.
12225 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12226 (struct objfile) <ei>: ...here. Remove.
12227 * objfiles.c (entry_point_address_query): Update.
12228
53eddfa6
TT
122292014-01-15 Tom Tromey <tromey@redhat.com>
12230
12231 * objfiles.c (entry_point_address_query): Relocate entry point
12232 address.
12233 (objfile_relocate1): Do not relocate entry point address.
12234 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12235 <the_bfd_section_index>: New field.
12236 * symfile.c (init_entry_point_info): Find the entry point's
12237 section.
12238
d56e56aa
TT
122392014-01-15 Tom Tromey <tromey@redhat.com>
12240
12241 * solib-frv.c (enable_break): Use entry_point_address_query.
12242
33a97bbe
OJ
122432014-01-15 Omair Javaid <omair.javaid@linaro.org>
12244
12245 * NEWS: Add note on improved process record-replay on
12246 arm*-linux* targets.
12247
c6ec2b30
OJ
122482014-01-15 Omair Javaid <omair.javaid@linaro.org>
12249
12250 * arm-tdep.c (enum arm_record_result): New enum.
12251 (arm_record_unsupported_insn): New function.
12252 (arm_record_coproc_data_proc): Removed.
12253 (thumb2_record_ld_st_multiple): New function.
12254 (thumb2_record_ld_st_dual_ex_tbb): New function.
12255 (thumb2_record_data_proc_sreg_mimm): New function.
12256 (thumb2_record_ps_dest_generic): New function.
12257 (thumb2_record_branch_misc_cntrl): New function.
12258 (thumb2_record_str_single_data): New function.
12259 (thumb2_record_ld_mem_hints): New function.
12260 (thumb2_record_ld_word): New function.
12261 (thumb2_record_lmul_lmla_div): New function.
12262 (thumb2_record_decode_insn_handler): New function.
12263 (decode_insn): Add thumb32 instruction handlers.
12264
97dfe206
OJ
122652014-01-15 Omair Javaid <omair.javaid@linaro.org>
12266
12267 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12268 (struct arm_linux_record_tdep): Declare.
12269 (arm_canonicalize_syscall): New function.
12270 (arm_all_but_pc_registers_record): New function.
12271 (arm_linux_syscall_record): New function.
12272 (arm_linux_init_abi): Add syscall recording constructs.
12273 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12274 decoding. (arm_record_coproc_data_proc): Update arm syscall
12275 decoding.
12276 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12277 <arm_syscall_record>: New field.
12278 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12279 gdb_target_obs.
12280
9904a494
OJ
122812014-01-15 Omair Javaid <omair.javaid@linaro.org>
12282
12283 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12284 register for push instruction recording.
12285
f969241e
OJ
122862014-01-15 Omair Javaid <omair.javaid@linaro.org>
12287
12288 * arm-tdep.c (thumb_record_misc): Update to correct logical
12289 error while recording ldm, ldmia and pop instructions.
12290
bfbbec00
OJ
122912014-01-15 Omair Javaid <omair.javaid@linaro.org>
12292
12293 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12294
e40adcc9
PA
122952014-01-15 Pedro Alves <palves@redhat.com>
12296
12297 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12298 (go32_resume, go32_fetch_registers, store_register)
12299 (go32_store_registers, go32_prepare_to_store)
12300 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12301 (go32_create_inferior, go32_can_run, go32_terminal_init)
12302 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12303 declarations.
12304
b0a16e66
TT
123052014-01-15 Tom Tromey <tromey@redhat.com>
12306
12307 * target.h (async_callback_ftype): New typedef.
12308 (struct target_ops) <to_async>: Use it.
12309
bf7105a4
JB
123102014-01-15 Joel Brobecker <brobecker@adacore.com>
12311
12312 * python/py-value.c (get_field_type): Remove unnecessary curly
12313 braces for single-statement if block.
12314
a8f35c2e
JB
123152014-01-15 Joel Brobecker <brobecker@adacore.com>
12316
12317 * python/py-type.c (convert_field): Add missing empty line
12318 after declarations.
12319
bb4142cf
DE
123202014-01-14 Doug Evans <dje@google.com>
12321
12322 * symfile.h (expand_symtabs_matching): Renamed from
12323 expand_partial_symbol_names. Update prototype.
12324 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12325 * symfile.c (expand_symtabs_matching): Renamed from
12326 expand_partial_symbol_names. New args file_matcher, kind.
12327 Rename arg fun to symbol_matcher.
12328 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12329 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12330 ada_expand_partial_symbol_name.
12331 (ada_make_symbol_completion_list): Update to call
12332 expand_symtabs_matching.
12333 (ada_add_global_exceptions): Call expand_symtabs_matching.
12334 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12335 call map_symbol_filenames.
12336 * symtab.c (sources_info): Update to call map_symbol_filenames.
12337 (search_symbols): Call expand_symtabs_matching.
12338 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12339 (default_make_symbol_completion_list_break_on): Update to call
12340 expand_symtabs_matching.
12341 (make_source_files_completion_list): Update to call
12342 map_symbol_filenames.
12343
206f2a57
DE
123442014-01-14 Doug Evans <dje@google.com>
12345
12346 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12347 (expand_symtabs_symbol_matcher_ftype): New typedef.
12348 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12349 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12350 * symfile.c (expand_partial_symbol_names): Update to use
12351 expand_symtabs_symbol_matcher_ftype.
12352 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12353 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12354 Arg name_matcher renamed to symbol_matcher.
12355 * psymtab.c (recursively_search_psymtabs): Update to use
12356 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12357 sym_matcher.
12358 (expand_symtabs_matching_via_partial): Update to use
12359 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12360 Arg name_matcher renamed to symbol_matcher.
12361
540c2971
DE
123622014-01-14 Doug Evans <dje@google.com>
12363
12364 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12365 (map_partial_symbol_filenames): Ditto.
12366 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12367 (map_partial_symbol_filenames): Ditto.
12368 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12369 (map_partial_symbol_filenames): Ditto.
12370 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12371 (map_partial_symbol_filenames): Ditto.
12372 * symtab.c: Delete #include "psymtab.h".
12373
8213266a
PA
123742014-01-14 Pedro Alves <palves@redhat.com>
12375 Tom Tromey <tromey@redhat.com>
12376
12377 * infrun.c (use_displaced_stepping): Use find_record_target
12378 instead of RECORD_IS_USED.
12379 (adjust_pc_after_break): Use record_full_is_used instead of
12380 RECORD_IS_USED.
12381 * record-btrace.c (record_btrace_open): Call record_preopen
12382 instead of checking RECORD_IS_USED.
12383 * record-full.c (record_full_shortname)
12384 (record_full_core_shortname): New globals.
12385 (record_full_is_used): New function.
12386 (find_full_open): Call record_preopen instead of checking
12387 RECORD_IS_USED.
12388 (init_record_full_ops): Set the target's shortname to
12389 record_full_shortname.
12390 (init_record_full_core_ops): Set the target's shortname to
12391 record_full_core_shortname.
12392 * record-full.h (record_full_is_used): Declare.
12393 * record.c (find_record_target): Make extern.
12394 (record_preopen): New function.
12395 * record.h (RECORD_IS_USED): Delete macro.
12396 (find_record_target, record_preopen): Declare functions.
12397
7ec1862d
YQ
123982014-01-14 Yao Qi <yao@codesourcery.com>
12399
12400 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12401 'len''s type to ULONGEST.
12402 (core_xfer_shared_libraries_aix): Likewise.
12403 * gdbarch.c, gdbarch.h: Regenerated.
12404 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12405 Change type of 'len' to ULONGEST.
12406 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12407 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12408
dea80a27
YQ
124092014-01-14 Yao Qi <yao@codesourcery.com>
12410
12411 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12412 type of 'len' to ULONGEST.
12413 (linux_xfer_osdata_processgroups): Likewise.
12414 (linux_xfer_osdata_threads): Likewise.
12415 (linux_xfer_osdata_fds): Likewise.
12416 (linux_xfer_osdata_isockets): Likewise.
12417 (linux_xfer_osdata_shm): Likewise.
12418 (linux_xfer_osdata_sem): Likewise.
12419 (linux_xfer_osdata_msg): Likewise.
12420 (linux_common_xfer_osdata): Likewise.
12421 (struct osdata_type) <getter>: Likewise.
12422 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12423 the declaration.
12424
b55e14c7
YQ
124252014-01-14 Yao Qi <yao@codesourcery.com>
12426
12427 * target.h (target_xfer_partial_ftype): Update.
12428 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12429 ULONGEST.
12430 * aix-thread.c (aix_thread_xfer_partial): Change type of
12431 argument 'len' to ULONGEST.
12432 * auxv.c (procfs_xfer_auxv): Likewise.
12433 (ld_so_xfer_auxv): Likewise.
12434 (memory_xfer_auxv): Likewise.
12435 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12436 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12437 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12438 * corelow.c (core_xfer_partial): Likewise.
12439 * ctf.c (ctf_xfer_partial): Likewise.
12440 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12441 '%u'.
12442 (darwin_read_dyld_info): Likewise.
12443 (darwin_xfer_partial): Likewise.
12444 * exec.c (section_table_xfer_memory_partial): Likewise.
12445 (exec_xfer_partial): Likewise.
12446 * exec.h (section_table_xfer_memory_partial): Update
12447 declaration.
12448 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12449 instead of plongest.
12450 (gnu_xfer_partial): Likewise.
12451 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12452 (ia64_hpux_xfer_solib_got): Likewise.
12453 (ia64_hpux_xfer_partial): Likewise.
12454 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12455 * inf-ptrace.c (inf_ptrace_xfer_partial):
12456 * inf-ttrace.c (inf_ttrace_xfer_partial):
12457 * linux-nat.c (linux_xfer_siginfo): Likewise.
12458 (linux_nat_xfer_partial): Likewise.
12459 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12460 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12461 * monitor.c (monitor_xfer_memory): Likewise.
12462 (monitor_xfer_partial): Likewise.
12463 * procfs.c (procfs_xfer_partial): Likewise.
12464 * record-full.c (record_full_xfer_partial): Likewise.
12465 (record_full_core_xfer_partial): Likewise.
12466 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12467 instead of plongest.
12468 (gdbsim_xfer_partial): Likewise.
12469 * remote.c (remote_xfer_partial): Likewise.
12470 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12471 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12472 declaration.
12473 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12474 (rs6000_xfer_shared_libraries): Likewise.
12475 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12476 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12477 (sparc_xfer_partial): Likewise.
12478 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12479 (spu_xfer_partial): Likewise.
12480 * spu-multiarch.c (spu_xfer_partial): Likewise.
12481 * target.c (target_read_live_memory): Likewise.
12482 (memory_xfer_live_readonly_partial): Likewise.
12483 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12484 (target_xfer_partial, default_xfer_partial): Likewise.
12485 (current_xfer_partial): Likewise.
12486 * tracepoint.c (tfile_xfer_partial): Likewise.
12487 * windows-nat.c (windows_xfer_memory): Likewise. Call
12488 pulongest instead of plongest.
12489 (windows_xfer_partial): Likewise.
12490 (windows_xfer_shared_libraries): Likewise.
12491
05804640
YQ
124922014-01-14 Yao Qi <yao@codesourcery.com>
12493
12494 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12495 target_xfer_partial_ftype.
12496
b5b08fb4
SC
124972014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12498
12499 PR python/15464
12500 PR python/16113
12501 * valops.c (value_struct_elt_bitpos): New function
12502 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12503 object to 'None' if the field name is an empty string ("").
12504 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12505 attribute to look for a field when 'name' is 'None'.
12506 (get_field_type): New function
12507
13aaf454
DE
125082014-01-13 Doug Evans <dje@google.com>
12509
12510 PR symtab/16426
12511 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12512 (try_open_dwop_file): Ditto.
12513 * gdb_bfd.c: #include "vec.h".
12514 (bfdp): New typedef.
12515 (struct gdb_bfd_data): New member included_bfds.
12516 (gdb_bfd_unref): Unref all included bfds.
12517 (gdb_bfd_record_inclusion): New function.
12518 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12519
c2cec97c
TT
125202014-01-13 Tom Tromey <tromey@redhat.com>
12521
12522 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12523
78e5999d
TT
125242014-01-13 Tom Tromey <tromey@redhat.com>
12525
12526 * defs.h (use_windows): Remove.
12527 * gdb.c (main): Update.
12528 * main.c (captured_main, gdb_main): Update.
12529 * main.h (struct captured_main_args) <use_windows>: Remove.
12530 * top.c (use_windows): Remove.
12531
f2052bbe
TT
125322014-01-13 Tom Tromey <tromey@redhat.com>
12533
12534 * defs.h (deprecated_flush_hook): Remove.
12535
fde4f8ed
JK
125362014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12537
12538 PR threads/16216
12539 * linux-thread-db.c (try_thread_db_load): Add parameter
12540 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12541 (try_thread_db_load_from_pdir_1): Move it there from here.
12542 (try_thread_db_load_from_sdir): Update caller.
12543 (try_thread_db_load_from_dir): Move it there from here.
12544
bdf61915
PP
125452014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12546
12547 * regformats/regdat.sh: Always rewrite the register file.
12548
f71e1a8d
PA
125492014-01-13 Pedro Alves <palves@redhat.com>
12550
12551 * Makefile.in (CHECK_HEADERS): New variable.
12552 (check-headers:): New rule.
12553
42c85435
TT
125542014-01-13 Tom Tromey <tromey@redhat.com>
12555
12556 * cli/cli-setshow.c (do_set_command): Update.
12557 * defs.h (deprecated_set_hook): Remove.
12558 * top.c (deprecated_set_hook): Remove.
12559
f8de5129
PA
125602014-01-13 Pedro Alves <palves@redhat.com>
12561
12562 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12563 the tracepoint if the PC is a pseudo-register.
12564
fc270c35
TT
125652014-01-13 Tom Tromey <tromey@redhat.com>
12566
12567 * defs.h (XCALLOC): Remove.
12568 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12569 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12570 * dwarf2loc.c (allocate_piece_closure): Likewise.
12571 * elfread.c (elf_symfile_segments): Likewise.
12572 (elf_symfile_segments): Likewise.
12573 * gdbtypes.c (copy_type_recursive): Likewise.
12574 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12575 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12576 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12577 XCALLOC.
12578 * mt-tdep.c (mt_gdbarch_init): Likewise.
12579 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12580 XCALLOC.
12581 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12582 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12583 * registry.c (registry_alloc_data): Likewise.
12584 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12585 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12586 * serial.c (serial_fdopen_ops): Likewise.
12587 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12588 XCALLOC.
12589 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12590 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12591 not XCALLOC.
12592
70ba0933
TT
125932014-01-13 Tom Tromey <tromey@redhat.com>
12594
12595 * defs.h (XMALLOC): Remove.
12596 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12597 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12598 * cli-out.c (struct ui_out *): Likewise.
12599 * cli/cli-dump.c (add_dump_command): Likewise.
12600 (add_dump_command): Likewise.
12601 * complaints.c (get_complaints): Likewise.
12602 (find_complaint): Likewise.
12603 * dwarf2-frame.c (execute_cfa_program): Likewise.
12604 * dwarf2read.c (abbrev_table_read_table): Likewise.
12605 * gdbarch.sh: Likewise.
12606 * gdbarch.c: Rebuild.
12607 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12608 * interps.c (interp_new): Likewise.
12609 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12610 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12611 * mi/mi-console.c (mi_console_file_new): Likewise.
12612 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12613 * mi/mi-out.c (mi_out_new): Likewise.
12614 * mi/mi-parse.c (mi_parse): Likewise.
12615 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12616 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12617 * observer.c (xalloc_observer_list_node): Likewise.
12618 * regcache.c (regcache_xmalloc_1): Likewise.
12619 * reggroups.c (reggroup_new): Likewise.
12620 (_initialize_reggroup): Likewise.
12621 * registry.c (register_data_with_cleanup): Likewise.
12622 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12623 * ser-base.c (serial_ttystate): Likewise.
12624 * ser-mingw.c (make_pipe_state): Likewise.
12625 * ser-pipe.c (pipe_open): Likewise.
12626 * serial.c (serial_open): Likewise.
12627 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12628 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12629 (tui_alloc_win_info): Likewise.
12630 (tui_add_content_elements): Likewise.
12631 * tui/tui-file.c (tui_file_new): Likewise.
12632 * tui/tui-out.c (tui_out_new): Likewise.
12633 * ui-file.c (mem_file_new): Likewise.
12634 * ui-out.c (push_level): Likewise.
12635 (make_cleanup_ui_out_end): Likewise.
12636 (append_header_to_list): Likewise.
12637 (ui_out_new): Likewise.
12638 * user-regs.c (user_reg_add_builtin): Likewise.
12639
41bf6aca
TT
126402014-01-13 Tom Tromey <tromey@redhat.com>
12641
12642 * defs.h (XZALLOC): Remove.
12643 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12644 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12645 (get_ada_tasks_inferior_data): Likewise.
12646 * auto-load.c (get_auto_load_pspace_data): Likewise.
12647 * auxv.c (get_auxv_inferior_data): Likewise.
12648 * bfd-target.c (target_bfd_reopen): Likewise.
12649 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12650 (deprecated_insert_raw_breakpoint): Likewise.
12651 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12652 * corelow.c (core_open): Likewise.
12653 * darwin-nat.c (darwin_check_new_threads): Likewise.
12654 (darwin_attach_pid): Likewise.
12655 * dummy-frame.c (dummy_frame_push): Likewise.
12656 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12657 * dwarf2loc.c (allocate_piece_closure): Likewise.
12658 * elfread.c (elf_symfile_segments): Likewise.
12659 * eval.c (ptrmath_type_p): Likewise.
12660 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12661 * gdbtypes.c (alloc_type_arch): Likewise.
12662 (alloc_type_instance): Likewise.
12663 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12664 * inf-child.c (inf_child_can_use_agent): Likewise.
12665 * inflow.c (get_inflow_inferior_data): Likewise.
12666 * infrun.c (save_infcall_suspend_state): Likewise.
12667 * jit.c (jit_reader_load): Likewise.
12668 (get_jit_objfile_data): Likewise.
12669 (get_jit_program_space_data): Likewise.
12670 (jit_object_open_impl): Likewise.
12671 (jit_symtab_open_impl): Likewise.
12672 (jit_block_open_impl): Likewise.
12673 (jit_frame_sniffer): Likewise.
12674 * linux-fork.c (add_fork): Likewise.
12675 * maint.c (make_command_stats_cleanup): Likewise.
12676 * objfiles.c (get_objfile_pspace_data): Likewise.
12677 * opencl-lang.c (struct lval_closure): Likewise.
12678 * osdata.c (osdata_start_osdata): Likewise.
12679 * progspace.c (new_address_space): Likewise.
12680 (add_program_space): Likewise.
12681 * remote-sim.c (get_sim_inferior_data): Likewise.
12682 * sh-tdep.c (sh_gdbarch_init): Likewise.
12683 * skip.c (Ignore): Likewise.
12684 (skip_delete_command): Likewise.
12685 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12686 (library_list_start_library): Likewise.
12687 (solib_aix_current_sos): Likewise.
12688 * solib-darwin.c (get_darwin_info): Likewise.
12689 (darwin_current_sos): Likewise.
12690 * solib-dsbt.c (get_dsbt_info): Likewise.
12691 * solib-ia64-hpux.c (new_so_list): Likewise.
12692 (ia64_hpux_get_solib_linkage_addr): Likewise.
12693 * solib-spu.c (append_ocl_sos): Likewise.
12694 (spu_current_sos): Likewise.
12695 * solib-svr4.c (get_svr4_info): Likewise.
12696 (svr4_keep_data_in_core): Likewise.
12697 (library_list_start_library): Likewise.
12698 (svr4_default_sos): Likewise.
12699 (svr4_read_so_list): Likewise.
12700 * solib-target.c (library_list_start_library): Likewise.
12701 (solib_target_current_sos): Likewise.
12702 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12703 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12704 * symfile.c (default_symfile_segments): Likewise.
12705 * target-descriptions.c (tdesc_data_init): Likewise.
12706 (tdesc_create_reg): Likewise.
12707 (struct tdesc_type *): Likewise.
12708 (tdesc_create_vector): Likewise.
12709 (tdesc_set_struct_size): Likewise.
12710 (struct tdesc_type *): Likewise.
12711 (tdesc_free_feature): Likewise.
12712 (tdesc_create_feature): Likewise.
12713 * windows-nat.c (windows_add_thread): Likewise.
12714 (windows_make_so): Likewise.
12715 * xml-support.c (gdb_xml_body_text): Likewise.
12716 (gdb_xml_create_parser_and_cleanup): Likewise.
12717 (xml_process_xincludes): Likewise.
12718 * xml-syscall.c (allocate_syscalls_info): Likewise.
12719 (syscall_create_syscall_desc): Likewise.
12720
5acfdbae
SDJ
127212014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12722
12723 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12724 function, with code from i386_stap_parse_special_token.
12725 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12726 (i386_stap_parse_special_token): Move code to the two functions
12727 above; simplify it.
12728
0000e5cc
PA
127292014-01-09 Pedro Alves <palves@redhat.com>
12730 Hui Zhu <hui@codesourcery.com>
12731
12732 PR gdb/16101
12733 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12734 bp_err_string. Don't mark the location shlib_disabled if the
12735 error thrown wasn't a generic or memory error. Catch errors
12736 thrown while inserting breakpoints in overlayed code. Output
12737 error message of software breakpoints.
12738 * remote.c (remote_insert_breakpoint): If this breakpoint has
12739 target-side commands but this stub doesn't support Z0 packets,
12740 throw NOT_SUPPORTED_ERROR error.
12741 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12742 * target.h (target_insert_breakpoint): Extend comment.
12743 (target_insert_hw_breakpoint): Add comment.
12744
b7ea362b
PA
127452014-01-08 Pedro Alves <palves@redhat.com>
12746
12747 * remote.c (remote_add_thread): Add threads silently if starting
12748 up.
12749 (remote_notice_new_inferior): If in all-stop, and starting up,
12750 don't call notice_new_inferior.
12751 (get_current_thread): New function, factored out from ...
12752 (add_current_inferior_and_thread): ... this. Adjust.
12753 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12754 found any thread, then select the remote's current thread as GDB's
12755 current thread too.
12756
b7bba001
JB
127572014-01-08 Joel Brobecker <brobecker@adacore.com>
12758
12759 * NEWS: Create a new section for the next release branch.
12760 Rename the section of the current branch, now that it has
12761 been cut.
12762
16dfbded
JB
127632014-01-08 Joel Brobecker <brobecker@adacore.com>
12764
12765 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12766 * version.in: Bump version to 7.7.50.DATE-cvs.
12767
22c90ac1
YQ
127682014-01-08 Yao Qi <yao@codesourcery.com>
12769
12770 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12771 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12772 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12773
d64ad97c
YQ
127742014-01-08 Yao Qi <yao@codesourcery.com>
12775
12776 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12777 return value of bfd_get_filename to symbol_file_add_from_bfd.
12778
f93ba80c
PM
127792014-01-08 Pierre Muller <muller@sourceware.org>
12780
12781 Fix PR16201.
12782 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12783 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12784 to prim_record_mininal_symbol_and_info.
12785 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12786 in call to prim_record_minimal_symbol_and_info.
12787 (read_pe_exported_syms): Set index field of section_data.
12788
a4d9ba85
AP
127892014-01-07 Andrew Pinski <apinski@cavium.com>
12790
12791 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12792 * features/aarch64.c: Regenerate.
12793
1b67eb02
AS
127942014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12795
12796 * target.c (return_null): Define.
12797 (update_current_target): Use it instead of return_zero for
12798 functions that return a pointer.
12799
5e3f4fab
EBM
128002014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12801
12802 * source.c (add_path): Fix check for duplicated paths in the previously
12803 included paths.
12804
e2616788
HK
128052014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12806
12807 * ada-lang.c: Remove duplicated include statements.
12808 * alphabsd-nat.c: Ditto.
12809 * amd64-darwin-tdep.c: Ditto.
12810 * amd64fbsd-nat.c: Ditto.
12811 * auto-load.c: Ditto.
12812 * ax-gdb.c: Ditto.
12813 * breakpoint.c: Ditto.
12814 * dbxread.c: Ditto.
12815 * fork-child.c: Ditto.
12816 * gdb_usleep.c: Ditto.
12817 * i386-darwin-tdep.c: Ditto.
12818 * i386fbsd-nat.c: Ditto.
12819 * infcmd.c: Ditto.
12820 * inferior.c: Ditto.
12821 * jv-lang.c: Ditto.
12822 * linux-nat.c: Ditto.
12823 * linux-tdep.c: Ditto.
12824 * m68kbsd-nat.c: Ditto.
12825 * m68klinux-nat.c: Ditto.
12826 * microblaze-tdep.c: Ditto.
12827 * mips-linux-tdep.c: Ditto.
12828 * mn10300-tdep.c: Ditto.
12829 * nto-tdep.c: Ditto.
12830 * opencl-lang.c: Ditto.
12831 * osdata.c: Ditto.
12832 * printcmd.c: Ditto.
12833 * regcache.c: Ditto.
12834 * remote-m32r-sdi.c: Ditto.
12835 * remote.c: Ditto.
12836 * symfile.c: Ditto.
12837 * symtab.c: Ditto.
12838 * tilegx-linux-nat.c: Ditto.
12839 * tilegx-tdep.c: Ditto.
12840 * tracepoint.c: Ditto.
12841 * valops.c: Ditto.
12842 * vaxbsd-nat.c: Ditto.
12843 * windows-nat.c: Ditto.
12844 * xtensa-tdep.c: Ditto.
12845
bd1f7788
YQ
128462014-01-07 Yao Qi <yao@codesourcery.com>
12847
12848 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12849
79301218
JB
128502014-01-07 Yao Qi <yao@codesourcery.com>
12851 Joel Brobecker <brobecker@adacore.com>
12852
12853 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12854 (pdc_write_regs): Likewise.
12855 (fetch_regs_kernel_thread): Likewise.
12856 (store_regs_kernel_thread): Likewise.
12857
128582014-01-07 Joel Brobecker <brobecker@adacore.com>
12859
12860 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12861 tagged type objects to their actual type.
12862
8e355c5d
JB
128632014-01-07 Joel Brobecker <brobecker@adacore.com>
12864
12865 * ada-valprint.c (print_field_values): Add "language" parameter.
12866 Update calls to print_field_values and print_variant_part.
12867 Pass new parameter "language" in call to val_print instead
12868 of "current_language". Replace call to ada_val_print by call
12869 to val_print.
12870 (print_variant_part): Add "language" parameter.
12871 (ada_val_print_struct_union): Update call to print_field_values.
12872
4fbf5aa5
JB
128732014-01-07 Joel Brobecker <brobecker@adacore.com>
12874
12875 * ada-valprint.c (ui_memcpy): Delete.
12876 (ada_print_floating): Update documentation. Add empty line
12877 between between function documentation and implementation.
12878 Delete variable "buffer". Use ui_file_xstrdup in place of
12879 ui_file_put. Minor adjustments following this change.
12880
71855601
JB
128812014-01-07 Joel Brobecker <brobecker@adacore.com>
12882
12883 * ada-valprint.c (ada_val_print_string): New function,
12884 extracted from ada_val_print_array.
12885 (ada_val_print_array): Replace extracted code by call
12886 to ada_val_print_string followed by a return. Move
12887 "else" branch to the function's top block.
12888
4eb27a30
JB
128892014-01-07 Joel Brobecker <brobecker@adacore.com>
12890
12891 * ada-valprint.c (ada_val_print_array): Move implementation
12892 down. Rename parameter "offset" and "val" into "offset_aligned"
12893 and "original_value" respectively. Add parameter "offset".
12894
34b27950
JB
128952014-01-07 Joel Brobecker <brobecker@adacore.com>
12896
12897 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12898 re-organizing the code. Change the "???" message printed
12899 when target type is a TYPE_CODE_UNDEF into
12900 "<ref to undefined type>".
12901
079e4591
JB
129022014-01-07 Joel Brobecker <brobecker@adacore.com>
12903
12904 * ada-valprint.c (print_record): Delete, implementation inlined...
12905 (ada_val_print_struct_union): ... here. Remove call to
12906 ada_check_typedef in inlined implementation.
12907
8004dfd1
JB
129082014-01-07 Joel Brobecker <brobecker@adacore.com>
12909
12910 * ada-valprint.c (ada_val_print_gnat_array): New function,
12911 extracted from ada_val_print_1;
12912 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12913 (ada_val_print_flt, ada_val_print_struct_union)
12914 (ada_val_print_ref): Likewise.
12915 (ada_val_print_1): Delete variables i and elttype.
12916 Replace extracted-out code by call to corresponding
12917 new functions.
12918
760a2db0
JB
129192014-01-07 Joel Brobecker <brobecker@adacore.com>
12920
12921 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12922
3a92c861
JB
129232014-01-07 Joel Brobecker <brobecker@adacore.com>
12924
12925 * ada-valprint.c (ada_val_print_1): Replace calls to
12926 ada_val_print_1 by calls to val_print.
12927
cd1630f9
JB
129282014-01-07 Joel Brobecker <brobecker@adacore.com>
12929
12930 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12931 Update calls to self accordingly. Replace calls to c_val_print
12932 by calls to val_print.
12933
bdf779a0
JB
129342014-01-07 Joel Brobecker <brobecker@adacore.com>
12935
12936 * ada-valprint.c (print_record): Delete declaration.
12937 (adjust_type_signedness, ada_val_print_1): Likewise.
12938 (ada_val_print): Move function implementation down.
12939 (print_variant_part, print_field_values, print_record):
12940 Move function implementation up.
12941
c0d48811
JB
129422014-01-07 Joel Brobecker <brobecker@adacore.com>
12943
12944 * python/py-type.c (typy_get_name): New function.
12945 (type_object_getset): Add entry for attribute "name".
12946 * NEWS: Add entry mentioning this new attribute.
12947
c26e9cbb
YQ
129482014-01-07 Yao Qi <yao@codesourcery.com>
12949
12950 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12951 statement.
12952
0cc6f43d
YQ
129532014-01-07 Yao Qi <yao@codesourcery.com>
12954
12955 * gnu-nat.c (info_port_rights): Add qualifier const to
12956 argument args.
12957
eec03155
YQ
129582014-01-07 Yao Qi <yao@codesourcery.com>
12959
12960 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12961
f04a82ef
YQ
129622014-01-07 Yao Qi <yao@codesourcery.com>
12963
12964 * gnu-nat.c (make_inf) Update declaration.
12965 (make_inf): Make it static.
12966 (inf_set_traced): Likewise.
12967 (inf_port_to_thread, inf_task_died_status): Likewise.
12968
d57dda0a
YQ
129692014-01-07 Yao Qi <yao@codesourcery.com>
12970
12971 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12972
3aa8c969
YQ
129732014-01-07 Yao Qi <yao@codesourcery.com>
12974
12975 * gnu-nat.c (_initialize_gnu_nat): Declare.
12976
94123b4f
YQ
129772014-01-07 Yao Qi <yao@codesourcery.com>
12978
12979 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12980 'enum bfd_endian'.
12981 (struct gdbarch_info) <byte_order>: Change type to
12982 'enum bfd_endian'.
12983 <byte_order_for_code>: Likewise.
12984 * gdbarch.c, gdbarch.h: Regenerated.
12985
dc81d70a
TT
129862014-01-06 Sasha Smundak <asmundak@google.com>
12987
12988 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12989
cc2f3c35
TT
129902014-01-06 Tom Tromey <tromey@redhat.com>
12991
12992 * doublest.c (convert_doublest_to_floatformat): Use const, not
12993 CONST.
12994 * somread.c (som_symtab_read): Likewise.
12995
adcf2eed
HZ
129962014-01-07 Hui Zhu <hui@codesourcery.com>
12997
12998 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12999 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13000 (gdb_bfd_fopen): Ditto.
13001 (gdb_bfd_openr): Ditto.
13002 (gdb_bfd_openw): Ditto.
13003 (gdb_bfd_openr_iovec): Ditto.
13004 (gdb_bfd_fdopenr): Ditto.
13005 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13006 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13007 with xstrdup.
13008 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13009 with xstrdup.
13010 * symfile-mem.c (symbol_file_add_from_memory): Removed
13011 gdb_bfd_stash_filename.
13012
50722198
DE
130132014-01-03 Doug Evans <dje@google.com>
13014
13015 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13016 output.
13017
2fa4b862
JB
130182014-01-01 Joel Brobecker <brobecker@adacore.com>
13019
13020 Update year range in copyright notice of all files.
13021
28498c42
JB
130222014-01-01 Joel Brobecker <brobecker@adacore.com>
13023
13024 * top.c (print_gdb_version): Set copyright year to 2014.
13025
7b6e1046
JB
130262014-01-01 Joel Brobecker <brobecker@adacore.com>
13027
13028 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13029
df96af55 13030For older changes see ChangeLog-2013.
c906108c
SS
13031\f
13032Local Variables:
13033mode: change-log
13034left-margin: 8
13035fill-column: 74
13036version-control: never
57da7796 13037coding: utf-8
c906108c 13038End:
This page took 3.394423 seconds and 4 git commands to generate.