gdb/linux-record: Fix size_[ug]id values
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d625f9a9
MK
12015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
2
3 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
4 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
5
aefb52a6
MK
62015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
7
8 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
9 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
10 (amd64_x32_linux_init_abi): Remove size_siginfo.
11 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
12 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
13 * linux-record.c (record_linux_system_call): Change size_siginfo
14 to size_siginfo_t.
15 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
16 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
17
d2242e34
PA
182015-10-29 Pedro Alves <palves@redhat.com>
19
20 * mdebugread.c (add_data_symbol): New function, factored out from
21 ...
22 (parse_symbol): ... here. Delete 'theclass' local.
23
cb0a2700
SM
242015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * jit.c (jit_target_read_impl): Add cast.
27
15cf126c
SM
282015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * jit.c (jit_reader_load): Add cast.
31
b4069958
SM
322015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * dwarf2read.c (partial_die_full_name): Add cast.
35
7535d5ed
PA
362015-10-29 Pedro Alves <palves@redhat.com>
37
38 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
39
fa4c39cb
PA
402015-10-29 Pedro Alves <palves@redhat.com>
41
42 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
43
e681cf3f
EZ
442015-10-29 Eli Zaretskii <eliz@gnu.org>
45
46 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
47 in the environment.
48
ebf05345
PA
492015-10-29 Pedro Alves <palves@redhat.com>
50
51 * gnu-v2-abi.c (gnuv2_is_destructor_name)
52 (gnuv2_is_constructor_name): Add casts.
53
44a8b4df
PA
542015-10-29 Pedro Alves <palves@redhat.com>
55
56 * common/common-exceptions.c (exception_none): Add cast.
57
e3bdafe2
PA
582015-10-29 Pedro Alves <palves@redhat.com>
59
60 * compile/compile-c-types.c (struct type_map_instance)
61 <gcc_type>: Rename to gcc_type_handle.
62 (insert_type, convert_type): Adjust.
63
9c6595ab
PA
642015-10-29 Pedro Alves <palves@redhat.com>
65
66 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
67 assume that "break" breaks out of a TRY/CATCH.
68 * python/py-framefilter.c (py_print_single_arg): Don't assume
69 "continue" breaks out of a TRY/CATCH.
70 * python/py-value.c (valpy_binop_throw): New function, factored
71 out from ...
72 (valpy_binop): ... this.
73 (valpy_richcompare_throw): New function, factored
74 out from ...
75 (valpy_richcompare): ... this.
76 * solib.c (solib_read_symbols): Don't assume "break" breaks out
77 of a TRY/CATCH.
78 * common/common-exceptions.h [USE_RAW_CXX_TRY]
79 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
80
93084fcd
SD
812015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
82
83 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
84 as move along with [d]addu.
85
43cdf5ae
YQ
862015-10-28 Yao Qi <yao.qi@linaro.org>
87
88 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
89 aarch64_decode_insn.
90
b80c3053
PA
912015-10-27 Pedro Alves <palves@redhat.com>
92
93 * common/print-utils.c (host_address_to_string): Rename to ...
94 (host_address_to_string_1): ... this.
95 * common/print-utils.h (host_address_to_string): Reimplement as
96 wrapper around host_address_to_string_1.
97 * utils.c (gdb_print_host_address): Rename to ...
98 (gdb_print_host_address_1): ... this.
99 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
100 around host_address_to_string_1.
101
d09f2c3f
PA
1022015-10-27 Pedro Alves <palves@redhat.com>
103
104 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
105 memory_error. Rename local 'status' to 'res'.
106 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
107 memory_error.
108 * corefile.c (read_stack, read_code, write_memory): Always pass
109 TARGET_XFER_E_IO to memory_error.
110 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
111 memory_error. Rename parameter 'status' to 'err'.
112 (dump_insns): Rename local 'status' to 'err'.
113 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
114 to 'errp'. Rename local 'status' to 'err'. Always pass
115 TARGET_XFER_E_IO to memory_error.
116 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
117 * target.c (target_read_memory, target_read_raw_memory)
118 (target_read_stack, target_read_code, target_write_memory)
119 (target_write_raw_memory): Return -1 on error instead of
120 TARGET_XFER_E_IO.
121 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
122 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
123
c5192092
SM
1242015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * guile/guile-internal.h (gdbscm_with_guile): Change return
127 types to const char *.
128 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
129 (struct c_data) <func>: Likewise.
130 (struct c_data) <result>: Change type to const char *.
131 (scscm_eval_scheme_string): Change return type to
132 const char *.
133 (scscm_source_scheme_script): Likewise.
134 (gdbscm_safe_eval_string): Change type of result variable to
135 const char * and remove cast.
136 (gdbscm_safe_source_script): Likewise.
137 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
138 Change return type to const char *.
139 (gdbscm_disasm_read_memory): Change type of status to
140 const char *.
141
79b289e2
PA
1422015-10-27 Pedro Alves <palves@redhat.com>
143
144 * source.c (openp): New local 'last_errno'. Use it to
145 save/restore errno.
146
709b5518
PA
1472015-10-27 Pedro Alves <palves@redhat.com>
148
149 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
150
e0d13cbd
SM
1512015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * ctf.c (SET_ENUM_FIELD): New macro.
154 (ctf_read_status): Use it.
155 (ctf_read_tp): Use it.
156
c6486df5
SM
1572015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
160 scm_t_dynwind_flags casts.
161 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
162 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
163 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
164
70b8286a
SM
1652015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * ax.h (ax_raw_byte): New declaration.
168 * ax-general.c (ax_raw_byte): New function.
169 (ax_simple): Use ax_raw_byte.
170 * ax-gdb.c (gen_printf): Likewise.
171
a480de35
SM
1722015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * ada-lang.h (GROW_VECT): Add cast.
175
a04a15f5
DE
1762015-10-26 Doug Evans <xdje42@gmail.com>
177
178 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
179
d7f3ff3e
SM
1802015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
183 pointer.
184 (simple_search_memory): Cast return of memmem.
185
bf6778da
SM
1862015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
189
c9244484
SM
1902015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
193 -1 on error.
194
0fde2c53
DE
1952015-10-26 Doug Evans <dje@google.com>
196
197 PR symtab/17391
198 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
199 instead of gdbarch_dwarf2_reg_to_regnum.
200 (dwarf2_frame_cache): Ditto.
201 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
202 gdbarch_dwarf2_reg_to_regnum.
203 (get_reg_value): Ditto.
204 (dwarf2_fetch_cfa_info): Ditto.
205 (dwarf2_frame_prev_register): Ditto.
206 * dwarf2loc.c: #include "complaints.h".
207 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
208 instead of gdbarch_dwarf2_reg_to_regnum.
209 (dwarf_expr_get_reg_value): Ditto.
210 (read_pieced_value): Ditto.
211 (write_pieced_value): Ditto.
212 (dwarf2_evaluate_loc_desc_full): Ditto.
213 (dwarf_reg_to_regnum): New function.
214 (throw_bad_regnum_error): New function.
215 (dwarf_reg_to_regnum_or_error): Renamed from
216 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
217 All callers updated. Call throw_bad_regnum_error.
218 (locexpr_regname): Improve text of bad register number.
219 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
220 (dwarf_reg_to_regnum_or_error): Update prototype.
221 * dwarf2expr.c: #include "dwarf2loc.h".
222 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
223 gdbarch_dwarf2_reg_to_regnum.
224 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
225 * gdbarch.h: Regenerate.
226 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
227 register.
228 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
229 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
230 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
231 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
232 Remove warning for bad register.
233 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
234 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
235 i386_svr4_reg_to_regnum. Return -1 for bad registers.
236 (i386_svr4_reg_to_regnum): New function.
237 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
238 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
239 on bad registers, return -1.
240 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
241 Remove warning for bad register.
242 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
243 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
244 Remove warning for bad register. Return -1 for bad register.
245 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
246 for bad register, return -1.
247 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
248 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
249 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
250 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
251 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
252 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
253 for bad regs.
254 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
255 bad regs. Fix error result.
256 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
257 (reg_value_complaint): Update complaint text.
258 * mdebugread.c (reg_value_complaint): New function.
259 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
260
1a70ae97
DE
2612015-10-26 Doug Evans <dje@google.com>
262
263 PR python/18938
264 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
265 All callers updated.
266
372405a5
DE
2672015-10-26 Doug Evans <dje@google.com>
268
269 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
270 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
271 (maintenance_print_psymbols): Print address map.
272
682b2546
DE
2732015-10-26 Doug Evans <dje@google.com>
274
275 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
276
963843d4
DE
2772015-10-26 Doug Evans <dje@google.com>
278
279 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
280 gdbserver/linux-low.c.
281 (WSETSTOP): Simplify.
282
d41401ac
DE
2832015-10-26 Doug Evans <dje@google.com>
284
285 * linux-thread-db.c (find_new_threads_callback): Ditto.
286 (thread_db_pid_to_str): Ditto.
287
1522597b
SM
2882015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
291 local char array to scm_mode_bits, use a cast instead.
292
7acd011b
SM
2932015-10-26 Simon Marchi <simon.marchi@ericsson.com>
294
295 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
296 result. Change type of element_block_ptr. Change allocation to
297 use XNEWVEC.
298
7cc53fba
LM
2992015-10-26 Luis Machado <lgustavo@codesourcery.com>
300
301 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
302 catch_errors call instead of NULL.
303
48ffa2b8
SM
3042015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
307 char pointer to scm_mode_bits.
308
585a269a
SM
3092015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
312 cast.
313
e0dd41e9
SM
3142015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
317 "data" local variable and use it.
318
74ef968f
SM
3192015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
322 domain_enum cast.
323 (gdbscm_lookup_symbol): Likewise.
324
2d5a88dc
IB
3252015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
326
327 * d-exp.y: Remove an obsolete comment and propagate the block
328 information to the produced expression.
329
f4ee58bd
SM
3302015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
333 cast.
334 (tui_add_content_elements): Likewise.
335
1650ca11
SM
3362015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * cli/cli-setshow.c (do_set_command): Constify p.
339
55e5bf59
SM
3402015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
343 (void *) cast with (gdb_byte *).
344
49e66b4d
SM
3452015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * proc-service.c (ps_pdread): Add cast.
348
cfcb22a5
SM
3492015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
352 valbuf.
353
ce746418
SM
3542015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
357 (ia64_push_dummy_call): Remove cast and change type of "to" to
358 array of gdb_byte.
359
a55515ee
SM
3602015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
363
6ecf4e06
SM
3642015-10-23 Simon Marchi <simon.marchi@ericsson.com>
365
366 * observer.h (observer_${event}_notification_stub): Add cast.
367
034f1a81
YQ
3682015-10-23 Yao Qi <yao.qi@linaro.org>
369
370 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
371 dsd.insn_count to zero.
372
d236ad19
PA
3732015-10-22 Pedro Alves <palves@redhat.com>
374
375 * infrun.c (stop_after_trap): Delete.
376 (clear_proceed_status, handle_signal_stop, struct
377 infcall_control_state, save_infcall_control_state)
378 (restore_infcall_control_state): Remove references to
379 stop_after_trap.
380
db0f0d0c
SM
3812015-10-22 Simon Marchi <simon.marchi@ericsson.com>
382
383 * python/python.c (_initialize_python): Add cast.
384
fb70bc1a
SM
3852015-10-22 Simon Marchi <simon.marchi@ericsson.com>
386
387 * nto-tdep.c (nto_inferior_data): Add cast.
388
c72f45d1
PA
3892015-10-22 Pedro Alves <palves@redhat.com>
390
391 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
392 windows_wait and windows_resume directly instead of
393 wait_for_inferior and resume.
394
60905b1e
SM
3952015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * xtensa-tdep.h (XTREG): Add casts.
398 (XTREG_END): Likewise.
399
5af9928d
SM
4002015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
403
3e45d68b
SM
4042015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
407
709476c3
SM
4082015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
411 buf to gdb_byte*.
412 (supply_32bit_reg): Add cast.
413 (mips64_fill_gregset): Likewise.
414
bed91f4d
SM
4152015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
416
417 PR python/18073
418 * python/py-type.c (typy_get_composite): Allow returning a
419 function type.
420
3f2f83dd
KB
4212015-10-21 Keven Boell <keven.boell@intel.com>
422
423 * dwarf2read.c (set_die_type): Add read of
424 DW_AT_allocated and DW_AT_associated.
425 * f-typeprint.c: New include of typeprint.h
426 (f_print_type): Add check for allocated/associated
427 status of type.
428 (f_type_print_varspec_suffix): Add check for
429 * gdbtypes.c (create_array_type_with_stride):
430 Add check for valid data location of type in
431 case allocated or associated attributes are set.
432 Length of an array should be only calculated if
433 allocated or associated is resolved as true.
434 (is_dynamic_type_internal): Add check for allocated/
435 associated.
436 (resolve_dynamic_array): Evaluate allocated/associated
437 properties.
438 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
439 <DYN_PROP_ASSOCIATED>: New enums.
440 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
441 (type_not_allocated): New function.
442 (type_not_associated): New function.
443 * valarith.c (value_subscripted_rvalue): Add check for
444 allocated/associated.
445 * valprint.c: New include of typeprint.h.
446 (valprint_check_validity): Add check for allocated/associated.
447 (value_check_printable): Add check for allocated/
448 associated.
449 * typeprint.h (val_print_not_allocated): New function.
450 (val_print_not_associated): New function.
451 * typeprint.c (val_print_not_allocated): New function.
452 (val_print_not_associated): New function.
453
8689682c
AT
4542015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
455
456 * Makefile.in: Add arm.c/o.
457 * arch/arm.c: New file.
458 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
459 (MAKE_THUMB_ADDR): Likewise.
460 (UNMAKE_THUMB_ADDR): Likewise.
461 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
462 (IS_THUMB_ADDR): Move to arm.h.
463 (MAKE_THUMB_ADDR): Likewise.
464 (UNMAKE_THUMB_ADDR): Likewise.
465 * configure.tgt: Add arm.o to all ARM configs.
466
80f0110c
YQ
4672015-10-21 Yao Qi <yao.qi@linaro.org>
468
469 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
470 Remove argument exp_vCont_s.
471 * gdb.base/range-stepping.exp: Callers updated.
472 * gdb.trace/range-stepping.exp: Likewise.
473
d7161de4
AR
4742015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
475
476 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
477 (nto_sniff_abi_note_section): New function.
478 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
479 binary.
480
a9889169
AR
4812015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
482
483 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
484 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
485 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
486 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
487 New functions.
488 (_initialize_nto_tdep): New forward declaration, new function.
489 * nto-tdep.h (struct nto_inferior_data): New struct.
490 (nto_inferior_data): New function declaration.
491
5f3ff4f8
JK
4922015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 * findvar.c (address_from_register): Check REGNUM validity.
495
e5343fde
AR
4962015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
497
498 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
499 (init_procfs_targets): Wire new function.
500
8a6c0ccd
AR
5012015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
502
503 * nto-procfs.c (sys/auxv.h): Include.
504 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
505 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
506 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
507
609c3040
AR
5082015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
509
510 * nto-procfs.c (nto_procfs_path): Rename to...
511 (nodestr): ... this, and change type.
512 (nto_node): Use new variable and logic accordingly.
513 (procfs_open_1): Use new variable name. Use local buffer to construct
514 procfrs path.
515 (procfs_pidlist): Use NODESTR to construct procfs path.
516 (procfs_files_info): Use NODESTR to output meaningful text.
517 (do_attach): Construct procfs using NODESTR.
518 (procfs_create_inferior): Compare pointer to NULL.
519
bfd09d20
JS
5202015-10-19 Josh Stone <jistone@redhat.com>
521
522 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
523 return state, even when not actively catching syscalls at all.
524 (linux_handle_extended_wait): Mark syscall_state like an entry.
525 (wait_lwp): Set syscall_state ignored for other traps.
526 (linux_nat_filter_event): Likewise.
527
29090fb6
LM
5282015-10-19 Luis Machado <lgustavo@codesourcery.com>
529
530 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
531 when handling 'E', 'T', 'S', 'X' and 'W' packets.
532 Do not set rs->waiting_for_stop_reply back to 1.
533
774ee6d2
AR
5342015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
535
536 * nto-procfs.c (common/filestuff.h): Include.
537 (procfs_can_use_hw_breakpoint): Fix enum name.
538 (procfs_open_1): Fix compiler warning.
539 (procfs_pidlist): Make static.
540 (procfs_meminfo): Make static, fix type name, add missing argument.
541 (procfs_store_registers): Make static.
542 (procfs_thread_info): Remove unused function.
543 (_initialize_procfs): Forward declare.
544
e66acfb1
YQ
5452015-10-16 Yao Qi <yao.qi@arm.com>
546
547 * MAINTAINERS: Update my email address.
548
8d689ee5
YQ
5492015-10-15 Yao Qi <yao.qi@linaro.org>
550
551 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
552 Call gdbarch_breakpoint_from_pc to instruction length.
553 (aarch64_linux_remove_hw_breakpoint): Likewise.
554 * common/common-regcache.h (regcache_register_size): Declare.
555 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
556 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
557 the process is 32bit, otherwise set alignment to 4.
558 (aarch64_handle_breakpoint): Update comments.
559 * regcache.c (regcache_register_size): New function.
560
89fdc87f
AR
5612015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
562
563 * gdbarch.sh (core_regset_section): Remove.
564 * gdbarch.h: Regenerate.
565
6448a3e4
YQ
5662015-10-14 Yao Qi <yao.qi@linaro.org>
567
568 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
569 out of it.
570 (enum aarch64_memory_operand_type): New.
571
33f914a1
DE
5722015-10-13 David Edelsohn <dje.gcc@gmail.com>
573
574 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
575
e6a959d6
PA
5762015-10-13 Pedro Alves <palves@redhat.com>
577
578 * ada-lang.c (ada_enum_name): Constify local.
579 * ada-typeprint.c (print_range_bound): Constify locals.
580 * c-varobj.c (c_describe_child): Likewise.
581 * cli/cli-setshow.c (do_set_command): Likewise.
582 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
583 * dwarf2read.c (find_file_and_directory): Likewise.
584 (anonymous_struct_prefix, dwarf2_name): Likewise.
585 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
586 * go-lang.c (unpack_mangled_go_symbol): Likewise.
587 * jv-typeprint.c (java_type_print_base): Likewise.
588 * ser-tcp.c (net_open): Likewise.
589 * symfile.c (deduce_language_from_filename): Likewise.
590 * symtab.c (gdb_mangle_name): Likewise.
591 * tui/tui-io.c (tui_redisplay_readline): Likewise.
592
170742de
PA
5932015-10-13 Pedro Alves <palves@redhat.com>
594
595 * infrun.c (restore_execution_direction): New function.
596 (fetch_inferior_event): Use it instead of
597 make_cleanup_restore_integer.
598 (execution_direction): Change type to enum
599 exec_direction_kind.
600 * infrun.h (execution_direction): Likewise.
601
bfb1c796
PA
6022015-10-13 Pedro Alves <palves@redhat.com>
603
604 * ada-lang.c (ada_value_primitive_packed_val): Constify
605 locals. Use value_contents_writeable. Remove casts.
606
aa5c10ce
PA
6072015-10-13 Pedro Alves <palves@redhat.com>
608
609 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
610 and alloca calls.
611
4666fec3
SM
6122015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
615 write_memory with write_memory_unsigned_integer.
616
38bc8217 6172015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
618
619 * solib-dsbt.c (cmp_name): Constify arguments.
620 * solib-frv.c (cmp_name): Likewise.
621 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
622 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
623 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
624 (gdb_bfd_lookup_symbol): Likewise.
625 * solib.h (gdb_bfd_lookup_symbol): Likewise.
626 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
627
a0d34a39
AB
6282015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * stack.c (parse_frame_specification): Remove message parameter,
631 replace with fixed string in function body, update function
632 comment.
633 (frame_info): Remove message to parse_frame_specification.
634 (select_frame_command): Likewise.
635
edbbff4a
AB
6362015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
637
638 * stack.c (parse_frame_specification): Delete.
639 (parse_frame_specification_1): Rename to
640 parse_frame_specification.
641 (frame_info): Use parse_frame_specification.
642 (select_frame_command): Likewise.
643 (return_command): Use select_frame and print_stack_frame rather
644 than frame_command and select_frame_command.
645 (func_command): Use get_current_frame rather than
646 parse_frame_specification.
647
9d622bda
AB
6482015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * stack.c (func_command): Return early when there is no ARG
651 string.
652
8d3fea16
AB
6532015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * stack.c: Include safe-ctype.h not ctype.h.
656 (parse_frame_specification): Use ISSPACE not isspace.
657 (backtrace_command): Use TOLOWER not tolower.
658
f54b226f
SM
6592015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * mep-tdep.c (current_me_module): Add cast.
662 (mep_gdbarch_init): Likewise.
663
6da660c7
SM
6642015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * m32c-tdep.c (m32c_move_reg_t): Replace with...
667 (m32c_write_reg_t): ...this and...
668 (m32c_read_reg_t): ...this.
669 (struct m32c_reg): Update types of read and write.
670 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
671 adjust definition.
672 (m32c_banked_read): Likewise.
673 (m32c_sb_read): Likewise.
674 (m32c_part_read): Likewise.
675 (m32c_cat_read): Likewise.
676 (m32c_r3r2r1r0_read): Likewise.
677 (m32c_raw_write): Change declaration type to m32c_write_reg_t
678 and adjust definition.
679 (m32c_banked_write): Likewise.
680 (m32c_sb_write): Likewise.
681 (m32c_part_write): Likewise.
682 (m32c_cat_write): Likewise.
683 (m32c_r3r2r1r0_write): Likewise.
684
1f713e48
SM
6852015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
688
cb65d272
SM
6892015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
692 gdb_sys_no_syscall instead of -1.
693
eda14cf2
YQ
6942015-10-12 Yao Qi <yao.qi@linaro.org>
695
696 * NEWS: Mention the change.
697
1c2e1515
YQ
6982015-10-12 Yao Qi <yao.qi@linaro.org>
699
700 * arch/aarch64-insn.c (emit_load_store): Rename to ...
701 (aarch64_emit_load_store): ... it. All callers updated.
702
e1c587c3
YQ
7032015-10-12 Yao Qi <yao.qi@linaro.org>
704
705 * arch/aarch64-insn.c (emit_insn): Rename to ...
706 (aarch64_emit_insn): ... it. All callers updated.
707
b6542f81
YQ
7082015-10-12 Yao Qi <yao.qi@linaro.org>
709
710 * aarch64-linux-tdep.c: Include arch-utils.h.
711 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
712 set_gdbarch_displaced_step_copy_insn,
713 set_gdbarch_displaced_step_fixup,
714 set_gdbarch_displaced_step_free_closure,
715 set_gdbarch_displaced_step_location,
716 and set_gdbarch_displaced_step_hw_singlestep.
717 * aarch64-tdep.c (struct displaced_step_closure): New.
718 (struct aarch64_displaced_step_data): New.
719 (aarch64_displaced_step_b): New function.
720 (aarch64_displaced_step_b_cond): Likewise.
721 (aarch64_register): Likewise.
722 (aarch64_displaced_step_cb): Likewise.
723 (aarch64_displaced_step_tb): Likewise.
724 (aarch64_displaced_step_adr): Likewise.
725 (aarch64_displaced_step_ldr_literal): Likewise.
726 (aarch64_displaced_step_others): Likewise.
727 (aarch64_displaced_step_copy_insn): Likewise.
728 (aarch64_displaced_step_fixup): Likewise.
729 (aarch64_displaced_step_hw_singlestep): Likewise.
730 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
731 (aarch64_displaced_step_copy_insn): Declare.
732 (aarch64_displaced_step_fixup): Declare.
733 (aarch64_displaced_step_hw_singlestep): Declare.
734 * arch/aarch64-insn.c (emit_insn): Moved from
735 gdbserver/linux-aarch64-low.c.
736 (emit_load_store): Likewise.
737 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
738 gdbserver/linux-aarch64-low.c.
739 (struct aarch64_register): Likewise.
740 (struct aarch64_memory_operand): Likewise.
741 (ENCODE): Likewise.
742 (can_encode_int32): New macro.
743 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
744 (emit_tb, emit_nop): Likewise.
745 (emit_insn): Declare.
746 (emit_load_store): Declare.
747
246994ce
YQ
7482015-10-12 Yao Qi <yao.qi@linaro.org>
749
750 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
751 gdbserver/linux-aarch64-low.c.
752 (aarch64_relocate_instruction): Likewise.
753 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
754 (struct aarch64_insn_data): Moved from
755 gdbserver/linux-aarch64-low.c.
756 (struct aarch64_insn_visitor): Likewise.
757 (aarch64_relocate_instruction): Declare.
758
2520f728
PMR
7592015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
760
761 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
762 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
763 to the returned value.
764
5b639dea
JB
7652015-10-09 Joel Brobecker <brobecker@adacore.com>
766
767 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
768 is large enough for BIT_SIZE. Update function comment.
769
0cafa88c
JB
7702015-10-09 Joel Brobecker <brobecker@adacore.com>
771
772 * ada-lang.c (ada_value_primitive_packed_val): Move
773 src_len variable to local block where used. Override
774 BIT_SIZE if bigger than size of resolved type.
775
220475ed
JB
7762015-10-09 Joel Brobecker <brobecker@adacore.com>
777
778 * gdbtypes.h (is_scalar_type): Add extern declaration.
779 * gdbtypes.c (is_scalar_type): Make non-static.
780 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
781 to compute IS_SCALAR instead of doing it ourselves.
782
d0a9e810
JB
7832015-10-09 Joel Brobecker <brobecker@adacore.com>
784
785 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
786 of case where TYPE is dynamic.
787
f93fca70
JB
7882015-10-09 Joel Brobecker <brobecker@adacore.com>
789
790 * ada-lang.c (ada_unpack_from_contents): New function,
791 extracted from ada_value_primitive_packed_val.
792 (ada_value_primitive_packed_val): Replace extracted out code
793 by call to ada_unpack_from_contents.
794
a1c95e6b
JB
7952015-10-09 Joel Brobecker <brobecker@adacore.com>
796
797 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
798 variable declarations.
799
fbd000da
JB
8002015-10-09 Joel Brobecker <brobecker@adacore.com>
801
802 * ada-lang.c (ada_value_primitive_packed_val): Change the type
803 of local variables src and unpacked to "gdb_type *" instead of
804 "unsigned char *".
805
086ca51f
JB
8062015-10-09 Joel Brobecker <brobecker@adacore.com>
807
808 * ada-lang.c (ada_value_primitive_packed_val): Make the name
809 of various local variables more explicit and consistent.
810 No real code change otherwise.
811
c5bcd278
SM
8122015-10-09 Simon Marchi <simon.marchi@ericsson.com>
813
814 * i386-tdep.h (struct gdbarch_tdep): Change type of
815 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
816
78c5b882
SM
8172015-10-09 Simon Marchi <simon.marchi@ericsson.com>
818
819 * cris-tdep.c (struct instruction_environment): Change type of
820 byte_order to enum bfd_endian.
821
f9fa37b3
SM
8222015-10-09 Simon Marchi <simon.marchi@ericsson.com>
823
824 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
825 enum gdb_syscall casts.
826
7c543f7b
SM
8272015-10-09 Simon Marchi <simon.marchi@ericsson.com>
828
829 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
830 * arm-tdep.c (struct stack_item): Likewise.
831 (push_stack_item): Add gdb_byte* cast.
832 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
833 (push_stack_item): Add gdb_byte* cast.
834 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
835 and add cast.
836 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
837 (push_stack_item): Add gdb_byte* cast.
838 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
839 add cast.
840 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
841 gdb_byte*.
842 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
843 gdb_byte* and remove unnecessary cast.
844 (h8300h_extract_return_value): Likewise.
845 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
846 (h8300h_store_return_value): Likewise.
847 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
848 gdb_byte* and remove unnecessary cast.
849 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
850 and add cast.
851 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
852 gdb_byte* and remove unnecessary cast.
853 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
854 valbuf.
855 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
856 (mep_pseudo_cr64_read): Likewise.
857 (mep_pseudo_csr_write): Likewise.
858 (mep_pseudo_cr32_write): Likewise.
859 (mep_pseudo_cr64_write): Likewise.
860 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
861 gdb_byte* and add cast.
862 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
863 gdb_byte* and remove unnecessary cast.
864 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
865 valbuf.
866 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
867 gdb_byte*.
868 * printcmd.c (void): Likewise.
869 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
870 gdb_byte* and add cast.
871 (infpy_write_memory): Likewise.
872 (infpy_search_memory): Likewise.
873 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
874 and add cast.
875 (regcache_raw_write_unsigned): Likewise.
876 (regcache_cooked_write_signed): Likewise.
877 (regcache_cooked_write_unsigned): Likewise.
878 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
879 gdb_byte*.
880
7567e115
SM
8812015-10-09 Simon Marchi <simon.marchi@ericsson.com>
882
883 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
884 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
885
f9acce4a
EZ
8862015-10-09 Eli Zaretskii <eliz@gnu.org>
887
888 * stack.c (print_stack_frame):
889 * utils.c (printchar): Fix typos in commentary.
890
d5d8c4e1
IB
8912015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
892
893 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
894 (PostfixExpression): Support `expr.sizeof' expressions.
895 (PrimaryExpression): Support `typeof(expr)' expressions.
896
4e7de155
MR
8972015-10-08 Maciej W. Rozycki <macro@imgtec.com>
898
899 * MAINTAINERS: Update my email address.
900
04c4fe8c
MM
9012015-10-08 Markus Metzger <markus.t.metzger@intel.com>
902
903 * record-btrace.c (record_btrace_resume): Fix void return.
904
f77ee802
YQ
9052015-10-07 Yao Qi <yao.qi@linaro.org>
906
907 * aarch64-tdep.c: Include opcode/aarch64.h.
908 (submask): Move it above.
909 (bit): Likewise.
910 (bits): Likewise.
911 (aarch64_software_single_step): Call aarch64_decode_insn.
912 Decode instruction by aarch64_inst instead of using
913 aarch64_decode_bcond and decode_masked_match.
914
cbd641ed
PS
9152015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
916
917 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
918 only when the file is binary.
919
ae4e2501 9202015-10-02 James Bowman <james.bowman@ftdichip.com>
921
922 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
923 subroutine handling.
924
dd0a637a
SM
9252015-10-01 Simon Marchi <simon.marchi@ericsson.com>
926
927 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
928
1fd60fc0
DE
9292015-09-30 Doug Evans <dje@google.com>
930
931 * dwarf2read.c (setup_type_unit_groups): Add comment.
932
398e0813
PA
9332015-09-30 Pedro Alves <palves@redhat.com>
934
935 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
936 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
937 (x86_linux_create_target): Don't install
938 x86_linux_always_non_stop_p.
939
6ab24463
DB
9402015-09-30 Don Breazeal <donb@codesourcery.com>
941
942 * remote.c (remote_parse_stop_reply): Call strprefix instead
943 of strncmp.
944
ede5f151
SM
9452015-09-30 Simon Marchi <simon.marchi@ericsson.com>
946
947 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
948 * gdbarch.h: Regenerate.
949 * i386-tdep.c (i386_gdbarch_init): Remove cast to
950 struct gdbarch_tdep_info *.
951 * mips-tdep.c (mips_gdbarch_init): Likewise.
952 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
953 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
954 * spu-multiarch.c (spu_gdbarch): Likewise.
955
51c935fa 9562015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
957
958 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
959 record a NULL value.
960
3b1ad7d5
KB
9612015-09-29 Kevin Buettner <kevinb@redhat.com>
962
963 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
964 and union arguments the same as pointer arguments when determining
965 size of argument.
966
86feccb9 9672015-09-29 James Bowman <james.bowman@ftdichip.com>
968
969 * ft32-tdep.c: #include "opcode/ft32.h".
970 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
971 (ft32_analyze_prologue): Use FT32_* macros.
972
2181a6c6
SM
9732015-09-28 Simon Marchi <simon.marchi@ericsson.com>
974
84d73afc 975 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
976 comment.
977
245af596
DE
9782015-09-28 Doug Evans <dje@google.com>
979
980 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
981
c402ef90
DE
9822015-09-28 Doug Evans <dje@google.com>
983
984 * common/filestuff.c (make_cleanup_close): Update comment.
985
38bc8217 9862015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
987
988 * btrace.c (parse_xml_btrace_block): Fix cast of
989 xml_find_attribute's return value.
990 * memory-map.c (memory_map_start_memory): Likewise.
991 * solib-svr4.c (library_list_start_library): Likewise.
992 * solib-target.c (library_list_start_segment): Likewise.
993 (library_list_start_section): Likewise.
994 * tracepoint.c (traceframe_info_start_memory): Likewise.
995
ba587d55
IB
9962015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
997
998 * d-namespace.c (d_lookup_symbol): New arg langdef.
999 All callers updated. Support looking up symbol as a primitive type.
1000 (lookup_module_scope): New arg langdef. All callers updated.
1001 Call d_lookup_symbol directly for simple bare symbols.
1002
19ba03f4
SM
10032015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1004
1005 * macrocmd.c (print_macro_callback): Add cast(s).
1006 * macrotab.c (macro_bcache_str): Likewise.
1007 (new_macro_definition): Likewise.
1008 * main.c (captured_main): Likewise.
1009 * maint.c (print_bfd_section_info): Likewise.
1010 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1011 (basic_type): Likewise.
1012 * memattr.c (mem_region_cmp): Likewise.
1013 * memory-map.c (memory_map_start_memory): Likewise.
1014 (memory_map_end_memory): Likewise.
1015 (memory_map_start_property): Likewise.
1016 (memory_map_end_property): Likewise.
1017 (clear_result): Likewise.
1018 * memrange.c (compare_mem_ranges): Likewise.
1019 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1020 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1021 * mi/mi-console.c (mi_console_file_delete): Likewise.
1022 (mi_console_file_fputs): Likewise.
1023 (mi_console_raw_packet): Likewise.
1024 (mi_console_file_flush): Likewise.
1025 (mi_console_set_raw): Likewise.
1026 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1027 (mi_new_thread): Likewise.
1028 (mi_thread_exit): Likewise.
1029 (mi_record_changed): Likewise.
1030 (mi_inferior_added): Likewise.
1031 (mi_inferior_appeared): Likewise.
1032 (mi_inferior_exit): Likewise.
1033 (mi_inferior_removed): Likewise.
1034 (mi_interp_data): Likewise.
1035 (mi_on_normal_stop): Likewise.
1036 (mi_traceframe_changed): Likewise.
1037 (mi_tsv_created): Likewise.
1038 (mi_tsv_deleted): Likewise.
1039 (mi_tsv_modified): Likewise.
1040 (mi_breakpoint_created): Likewise.
1041 (mi_breakpoint_deleted): Likewise.
1042 (mi_breakpoint_modified): Likewise.
1043 (mi_output_running_pid): Likewise.
1044 (mi_inferior_count): Likewise.
1045 (mi_solib_loaded): Likewise.
1046 (mi_solib_unloaded): Likewise.
1047 (mi_command_param_changed): Likewise.
1048 (mi_memory_changed): Likewise.
1049 (report_initial_inferior): Likewise.
1050 (mi_ui_out): Likewise.
1051 (mi_set_logging): Likewise.
1052 * mi/mi-main.c (collect_cores): Likewise.
1053 (print_one_inferior): Likewise.
1054 (free_vector_of_ints): Likewise.
1055 (free_splay_tree): Likewise.
1056 (mi_execute_command): Likewise.
1057 * mi/mi-out.c (mi_table_body): Likewise.
1058 (mi_table_end): Likewise.
1059 (mi_table_header): Likewise.
1060 (mi_begin): Likewise.
1061 (mi_end): Likewise.
1062 (mi_field_int): Likewise.
1063 (mi_field_string): Likewise.
1064 (mi_field_fmt): Likewise.
1065 (mi_flush): Likewise.
1066 (mi_redirect): Likewise.
1067 (field_separator): Likewise.
1068 (mi_open): Likewise.
1069 (mi_close): Likewise.
1070 (mi_out_buffered): Likewise.
1071 (mi_out_rewind): Likewise.
1072 (mi_out_put): Likewise.
1073 (mi_version): Likewise.
1074 (mi_out_data_dtor): Likewise.
1075 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1076 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1077 * minidebug.c (lzma_open): Likewise.
1078 (lzma_pread): Likewise.
1079 (lzma_close): Likewise.
1080 (lzma_stat): Likewise.
1081 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1082 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1083 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1084 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1085 (mips_micro_frame_cache): Likewise.
1086 (mips_insn32_frame_cache): Likewise.
1087 (mips_stub_frame_cache): Likewise.
1088 (gdb_print_insn_mips): Likewise.
1089 (value_of_mips_user_reg): Likewise.
1090 (mips_gdbarch_init): Likewise.
1091 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1092 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1093 (mipsnbsd_supply_gregset): Likewise.
1094 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1095 (am33_collect_gregset_method): Likewise.
1096 (am33_collect_fpregset_method): Likewise.
1097 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1098 * moxie-tdep.c (moxie_frame_cache): Likewise.
1099 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1100 (msp430_analyze_frame_prologue): Likewise.
1101 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1102 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1103 (nios2_collect_gregset): Likewise.
1104 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1105 (nios2_stub_frame_cache): Likewise.
1106 * objc-lang.c (find_methods): Likewise.
1107 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1108 (get_objfile_pspace_data): Likewise.
1109 (get_objfile_bfd_data): Likewise.
1110 (objfile_bfd_data_free): Likewise.
1111 (add_to_objfile_sections): Likewise.
1112 (do_free_objfile_cleanup): Likewise.
1113 (resume_section_map_updates_cleanup): Likewise.
1114 * opencl-lang.c (builtin_opencl_type): Likewise.
1115 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1116 * osdata.c (osdata_start_osdata): Likewise.
1117 (osdata_start_item): Likewise.
1118 (osdata_start_column): Likewise.
1119 (osdata_end_column): Likewise.
1120 (clear_parsing_data): Likewise.
1121 (osdata_free_cleanup): Likewise.
1122 * parse.c (type_stack_cleanup): Likewise.
1123 (exp_uses_objfile_iter): Likewise.
1124 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1125 (ppc_linux_collect_gregset): Likewise.
1126 (ppu2spu_prev_arch): Likewise.
1127 (ppu2spu_this_id): Likewise.
1128 (ppu2spu_prev_register): Likewise.
1129 (ppu2spu_unwind_register): Likewise.
1130 (ppu2spu_sniffer): Likewise.
1131 (ppu2spu_dealloc_cache): Likewise.
1132 (ppc_linux_init_abi): Likewise.
1133 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1134 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1135 * progspace.c (restore_program_space): Likewise.
1136 * psymtab.c (find_pc_sect_psymtab): Likewise.
1137 (compare_psymbols): Likewise.
1138 (psymbol_bcache_full): Likewise.
1139 (allocate_psymtab): Likewise.
1140 (discard_psymtabs_upto): Likewise.
1141 * python/py-block.c (set_block): Likewise.
1142 (del_objfile_blocks): Likewise.
1143 * python/py-breakpoint.c (build_bp_list): Likewise.
1144 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1145 (build_inferior_list): Likewise.
1146 (py_free_inferior): Likewise.
1147 * python/py-objfile.c (py_free_objfile): Likewise.
1148 (objfile_to_objfile_object): Likewise.
1149 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1150 * python/py-progspace.c (py_free_pspace): Likewise.
1151 (pspace_to_pspace_object): Likewise.
1152 * python/py-symbol.c (set_symbol): Likewise.
1153 (del_objfile_symbols): Likewise.
1154 * python/py-symtab.c (set_sal): Likewise.
1155 (set_symtab): Likewise.
1156 (del_objfile_symtab): Likewise.
1157 (del_objfile_sal): Likewise.
1158 * python/py-type.c (save_objfile_types): Likewise.
1159 (set_type): Likewise.
1160 * python/py-unwind.c (pyuw_prev_register): Likewise.
1161 (pyuw_on_new_gdbarch): Likewise.
1162 * python/py-utils.c (py_decref): Likewise.
1163 (py_xdecref): Likewise.
1164 (gdb_py_generic_dict): Likewise.
1165 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1166 (gdbpy_clone_xmethod_worker_data): Likewise.
1167 (gdbpy_get_xmethod_arg_types): Likewise.
1168 (gdbpy_get_xmethod_result_type): Likewise.
1169 (gdbpy_invoke_xmethod): Likewise.
1170 * python/python.c (gdbpy_apply_type_printers): Likewise.
1171 (gdbpy_free_type_printers): Likewise.
1172 * record-btrace.c (record_btrace_disable_callback): Likewise.
1173 (bfcache_hash): Likewise.
1174 (bfcache_eq): Likewise.
1175 (btrace_get_frame_function): Likewise.
1176 (record_btrace_frame_unwind_stop_reason): Likewise.
1177 (record_btrace_frame_this_id): Likewise.
1178 (record_btrace_frame_prev_register): Likewise.
1179 (record_btrace_frame_dealloc_cache): Likewise.
1180 * record-full.c (record_full_message_wrapper): Likewise.
1181 (record_full_save_cleanups): Likewise.
1182 * regcache.c (regcache_descr): Likewise.
1183 (do_regcache_xfree): Likewise.
1184 (do_regcache_invalidate): Likewise.
1185 (do_cooked_read): Likewise.
1186 (regcache_transfer_regset): Likewise.
1187 * reggroups.c (reggroup_add): Likewise.
1188 (reggroup_next): Likewise.
1189 (reggroup_prev): Likewise.
1190 * remote-fileio.c (do_remote_fileio_request): Likewise.
1191 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1192 (do_notif_event_xfree): Likewise.
1193 * remote.c (get_remote_arch_state): Likewise.
1194 (remote_pspace_data_cleanup): Likewise.
1195 (get_remote_exec_file): Likewise.
1196 (set_pspace_remote_exec_file): Likewise.
1197 (compare_pnums): Likewise.
1198 (clear_threads_listing_context): Likewise.
1199 (remote_newthread_step): Likewise.
1200 (start_thread): Likewise.
1201 (end_thread): Likewise.
1202 (remove_child_of_pending_fork): Likewise.
1203 (remove_stop_reply_for_inferior): Likewise.
1204 (remove_stop_reply_of_remote_state): Likewise.
1205 (remote_notif_remove_once_on_match): Likewise.
1206 (stop_reply_match_ptid_and_ws): Likewise.
1207 (kill_child_of_pending_fork): Likewise.
1208 (register_remote_g_packet_guess): Likewise.
1209 (remote_read_description_p): Likewise.
1210 (remote_read_description): Likewise.
1211 (free_actions_list_cleanup_wrapper): Likewise.
1212 (remote_async_serial_handler): Likewise.
1213 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1214 (rl78_analyze_frame_prologue): Likewise.
1215 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1216 (ppc_supply_fpregset): Likewise.
1217 (ppc_supply_vsxregset): Likewise.
1218 (ppc_supply_vrregset): Likewise.
1219 (ppc_collect_gregset): Likewise.
1220 (ppc_collect_fpregset): Likewise.
1221 (ppc_collect_vsxregset): Likewise.
1222 (ppc_collect_vrregset): Likewise.
1223 (e500_move_ev_register): Likewise.
1224 (do_regcache_raw_write): Likewise.
1225 (rs6000_frame_cache): Likewise.
1226 (rs6000_epilogue_frame_cache): Likewise.
1227 (rs6000_gdbarch_init): Likewise.
1228 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1229 (rx_analyze_frame_prologue): Likewise.
1230 (rx_frame_type): Likewise.
1231 (rx_frame_sniffer_common): Likewise.
1232 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1233 (s390_frame_unwind_cache): Likewise.
1234 (s390_stub_frame_unwind_cache): Likewise.
1235 (s390_sigtramp_frame_unwind_cache): Likewise.
1236 * score-tdep.c (score_make_prologue_cache): Likewise.
1237 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1238 (sentinel_frame_prev_arch): Likewise.
1239 * ser-base.c (fd_event): Likewise.
1240 (push_event): Likewise.
1241 (ser_base_write): Likewise.
1242 * ser-pipe.c (pipe_close): Likewise.
1243 * serial.c (serial_write): Likewise.
1244 * sh-tdep.c (sh_frame_cache): Likewise.
1245 (sh_stub_this_id): Likewise.
1246 * sh64-tdep.c (sh64_frame_cache): Likewise.
1247 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1248 (library_list_start_library): Likewise.
1249 (library_list_start_list): Likewise.
1250 (solib_aix_free_library_list): Likewise.
1251 * solib-darwin.c (get_darwin_info): Likewise.
1252 * solib-dsbt.c (get_dsbt_info): Likewise.
1253 * solib-spu.c (append_ocl_sos): Likewise.
1254 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1255 (get_svr4_info): Likewise.
1256 (library_list_start_library): Likewise.
1257 (svr4_library_list_start_list): Likewise.
1258 (hash_probe_and_action): Likewise.
1259 (equal_probe_and_action): Likewise.
1260 (svr4_update_solib_event_breakpoint): Likewise.
1261 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1262 (svr4_fetch_link_map_offsets): Likewise.
1263 (svr4_have_link_map_offsets): Likewise.
1264 * solib-target.c (library_list_start_segment): Likewise.
1265 (library_list_start_section): Likewise.
1266 (library_list_start_library): Likewise.
1267 (library_list_end_library): Likewise.
1268 (library_list_start_list): Likewise.
1269 (solib_target_free_library_list): Likewise.
1270 * solib.c (solib_ops): Likewise.
1271 (set_solib_ops): Likewise.
1272 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1273 * sparc-tdep.c (sparc_frame_cache): Likewise.
1274 (sparc32_frame_cache): Likewise.
1275 (sparc32_supply_gregset): Likewise.
1276 (sparc32_collect_gregset): Likewise.
1277 (sparc32_supply_fpregset): Likewise.
1278 (sparc32_collect_fpregset): Likewise.
1279 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1280 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1281 (sparc64_collect_gregset): Likewise.
1282 (sparc64_supply_fpregset): Likewise.
1283 (sparc64_collect_fpregset): Likewise.
1284 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1285 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1286 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1287 (sparc64obsd_trapframe_cache): Likewise.
1288 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1289 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1290 * spu-multiarch.c (spu_gdbarch): Likewise.
1291 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1292 (spu2ppu_prev_arch): Likewise.
1293 (spu2ppu_this_id): Likewise.
1294 (spu2ppu_prev_register): Likewise.
1295 (spu2ppu_dealloc_cache): Likewise.
1296 (spu_dis_asm_print_address): Likewise.
1297 (gdb_print_insn_spu): Likewise.
1298 (spu_get_overlay_table): Likewise.
1299 * stabsread.c (rs6000_builtin_type): Likewise.
1300 * stack.c (do_print_variable_and_value): Likewise.
1301 * stap-probe.c (get_stap_base_address_1): Likewise.
1302 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1303 (debug_qf_find_last_source_symtab): Likewise.
1304 (debug_qf_forget_cached_source_info): Likewise.
1305 (debug_qf_map_symtabs_matching_filename): Likewise.
1306 (debug_qf_lookup_symbol): Likewise.
1307 (debug_qf_print_stats): Likewise.
1308 (debug_qf_dump): Likewise.
1309 (debug_qf_relocate): Likewise.
1310 (debug_qf_expand_symtabs_for_function): Likewise.
1311 (debug_qf_expand_all_symtabs): Likewise.
1312 (debug_qf_expand_symtabs_with_fullname): Likewise.
1313 (debug_qf_map_matching_symbols): Likewise.
1314 (debug_qf_expand_symtabs_matching): Likewise.
1315 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1316 (debug_qf_map_symbol_filenames): Likewise.
1317 (debug_sym_get_probes): Likewise.
1318 (debug_sym_new_init): Likewise.
1319 (debug_sym_init): Likewise.
1320 (debug_sym_read): Likewise.
1321 (debug_sym_read_psymbols): Likewise.
1322 (debug_sym_finish): Likewise.
1323 (debug_sym_offsets): Likewise.
1324 (debug_sym_read_linetable): Likewise.
1325 (debug_sym_relocate): Likewise.
1326 (uninstall_symfile_debug_logging): Likewise.
1327 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1328 * symfile.c (place_section): Likewise.
1329 (add_section_size_callback): Likewise.
1330 (load_progress): Likewise.
1331 (load_section_callback): Likewise.
1332 (clear_memory_write_data): Likewise.
1333 (allocate_symtab): Likewise.
1334 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1335 * symtab.c (lookup_symtab_callback): Likewise.
1336 (hash_demangled_name_entry): Likewise.
1337 (eq_demangled_name_entry): Likewise.
1338 (get_symbol_cache): Likewise.
1339 (symbol_cache_cleanup): Likewise.
1340 (set_symbol_cache_size): Likewise.
1341 (symbol_cache_flush): Likewise.
1342 (maintenance_print_symbol_cache): Likewise.
1343 (maintenance_print_symbol_cache_statistics): Likewise.
1344 (delete_filename_seen_cache): Likewise.
1345 (output_partial_symbol_filename): Likewise.
1346 (search_symbols_file_matches): Likewise.
1347 (search_symbols_name_matches): Likewise.
1348 (do_free_completion_list): Likewise.
1349 (maybe_add_partial_symtab_filename): Likewise.
1350 (get_main_info): Likewise.
1351 (main_info_cleanup): Likewise.
1352 * target-dcache.c (target_dcache_cleanup): Likewise.
1353 (target_dcache_init_p): Likewise.
1354 (target_dcache_invalidate): Likewise.
1355 (target_dcache_get): Likewise.
1356 (target_dcache_get_or_init): Likewise.
1357 * target-descriptions.c (target_find_description): Likewise.
1358 (tdesc_find_type): Likewise.
1359 (tdesc_data_cleanup): Likewise.
1360 (tdesc_find_arch_register): Likewise.
1361 (tdesc_register_name): Likewise.
1362 (tdesc_register_type): Likewise.
1363 (tdesc_register_reggroup_p): Likewise.
1364 (set_tdesc_pseudo_register_name): Likewise.
1365 (set_tdesc_pseudo_register_type): Likewise.
1366 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1367 (tdesc_use_registers): Likewise.
1368 (free_target_description): Likewise.
1369 * target-memory.c (compare_block_starting_address): Likewise.
1370 (cleanup_request_data): Likewise.
1371 (cleanup_write_requests_vector): Likewise.
1372 * target.c (open_target): Likewise.
1373 (cleanup_restore_target_terminal): Likewise.
1374 (free_memory_read_result_vector): Likewise.
1375 * thread.c (disable_thread_stack_temporaries): Likewise.
1376 (finish_thread_state_cleanup): Likewise.
1377 (do_restore_current_thread_cleanup): Likewise.
1378 (restore_current_thread_cleanup_dtor): Likewise.
1379 (set_thread_refcount): Likewise.
1380 (tp_array_compar): Likewise.
1381 (do_captured_thread_select): Likewise.
1382 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1383 (tic6x_stub_this_id): Likewise.
1384 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1385 * top.c (do_restore_instream_cleanup): Likewise.
1386 (gdb_readline_wrapper_cleanup): Likewise.
1387 (kill_or_detach): Likewise.
1388 (print_inferior_quit_action): Likewise.
1389 * tracefile-tfile.c (match_blocktype): Likewise.
1390 (build_traceframe_info): Likewise.
1391 * tracefile.c (trace_file_writer_xfree): Likewise.
1392 * tracepoint.c (memrange_cmp): Likewise.
1393 (do_collect_symbol): Likewise.
1394 (do_clear_collection_list): Likewise.
1395 (do_restore_current_traceframe_cleanup): Likewise.
1396 (restore_current_traceframe_cleanup_dtor): Likewise.
1397 (free_current_marker): Likewise.
1398 (traceframe_info_start_memory): Likewise.
1399 (traceframe_info_start_tvar): Likewise.
1400 (free_result): Likewise.
1401 * tramp-frame.c (tramp_frame_cache): Likewise.
1402 * tui/tui-file.c (tui_file_delete): Likewise.
1403 (tui_fileopen): Likewise.
1404 (tui_sfileopen): Likewise.
1405 (tui_file_isatty): Likewise.
1406 (tui_file_rewind): Likewise.
1407 (tui_file_put): Likewise.
1408 (tui_file_fputs): Likewise.
1409 (tui_file_get_strbuf): Likewise.
1410 (tui_file_adjust_strbuf): Likewise.
1411 (tui_file_flush): Likewise.
1412 * tui/tui-layout.c (make_command_window): Likewise.
1413 (make_data_window): Likewise.
1414 (show_source_disasm_command): Likewise.
1415 (show_data): Likewise.
1416 (make_source_or_disasm_window): Likewise.
1417 (show_source_or_disasm_and_command): Likewise.
1418 * tui/tui-out.c (tui_field_int): Likewise.
1419 (tui_field_string): Likewise.
1420 (tui_field_fmt): Likewise.
1421 (tui_text): Likewise.
1422 * typeprint.c (hash_typedef_field): Likewise.
1423 (eq_typedef_field): Likewise.
1424 (do_free_typedef_hash): Likewise.
1425 (copy_typedef_hash_element): Likewise.
1426 (do_free_global_table): Likewise.
1427 (find_global_typedef): Likewise.
1428 (find_typedef_in_hash): Likewise.
1429 * ui-file.c (ui_file_write_for_put): Likewise.
1430 (do_ui_file_xstrdup): Likewise.
1431 (mem_file_delete): Likewise.
1432 (mem_file_rewind): Likewise.
1433 (mem_file_put): Likewise.
1434 (mem_file_write): Likewise.
1435 (stdio_file_delete): Likewise.
1436 (stdio_file_flush): Likewise.
1437 (stdio_file_read): Likewise.
1438 (stdio_file_write): Likewise.
1439 (stdio_file_write_async_safe): Likewise.
1440 (stdio_file_fputs): Likewise.
1441 (stdio_file_isatty): Likewise.
1442 (stdio_file_fseek): Likewise.
1443 (tee_file_delete): Likewise.
1444 (tee_file_flush): Likewise.
1445 (tee_file_write): Likewise.
1446 (tee_file_fputs): Likewise.
1447 (tee_file_isatty): Likewise.
1448 * ui-out.c (do_cleanup_table_end): Likewise.
1449 (do_cleanup_end): Likewise.
1450 * user-regs.c (user_reg_add): Likewise.
1451 (user_reg_map_name_to_regnum): Likewise.
1452 (usernum_to_user_reg): Likewise.
1453 (maintenance_print_user_registers): Likewise.
1454 * utils.c (do_bfd_close_cleanup): Likewise.
1455 (do_fclose_cleanup): Likewise.
1456 (do_obstack_free): Likewise.
1457 (do_ui_file_delete): Likewise.
1458 (do_ui_out_redirect_pop): Likewise.
1459 (do_free_section_addr_info): Likewise.
1460 (restore_integer): Likewise.
1461 (do_unpush_target): Likewise.
1462 (do_htab_delete_cleanup): Likewise.
1463 (do_restore_ui_file): Likewise.
1464 (do_value_free): Likewise.
1465 (do_free_so): Likewise.
1466 (free_current_contents): Likewise.
1467 (do_regfree_cleanup): Likewise.
1468 (core_addr_hash): Likewise.
1469 (core_addr_eq): Likewise.
1470 (do_free_char_ptr_vec): Likewise.
1471 * v850-tdep.c (v850_frame_cache): Likewise.
1472 * varobj.c (do_free_variable_cleanup): Likewise.
1473 * vax-tdep.c (vax_supply_gregset): Likewise.
1474 (vax_frame_cache): Likewise.
1475 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1476 * xml-support.c (gdb_xml_body_text): Likewise.
1477 (gdb_xml_values_cleanup): Likewise.
1478 (gdb_xml_start_element): Likewise.
1479 (gdb_xml_start_element_wrapper): Likewise.
1480 (gdb_xml_end_element): Likewise.
1481 (gdb_xml_end_element_wrapper): Likewise.
1482 (gdb_xml_cleanup): Likewise.
1483 (gdb_xml_fetch_external_entity): Likewise.
1484 (gdb_xml_parse_attr_enum): Likewise.
1485 (xinclude_start_include): Likewise.
1486 (xinclude_end_include): Likewise.
1487 (xml_xinclude_default): Likewise.
1488 (xml_xinclude_start_doctype): Likewise.
1489 (xml_xinclude_end_doctype): Likewise.
1490 (xml_xinclude_cleanup): Likewise.
1491 (xml_fetch_content_from_file): Likewise.
1492 * xml-syscall.c (free_syscalls_info): Likewise.
1493 (syscall_start_syscall): Likewise.
1494 * xml-tdesc.c (tdesc_end_arch): Likewise.
1495 (tdesc_end_osabi): Likewise.
1496 (tdesc_end_compatible): Likewise.
1497 (tdesc_start_target): Likewise.
1498 (tdesc_start_feature): Likewise.
1499 (tdesc_start_reg): Likewise.
1500 (tdesc_start_union): Likewise.
1501 (tdesc_start_struct): Likewise.
1502 (tdesc_start_flags): Likewise.
1503 (tdesc_start_field): Likewise.
1504 (tdesc_start_vector): Likewise.
1505 (fetch_available_features_from_target): Likewise.
1506 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1507 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1508 (xtensa_frame_cache): Likewise.
1509 (xtensa_frame_prev_register): Likewise.
1510 (xtensa_extract_return_value): Likewise.
1511
9a3c8263
SM
15122015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1513
1514 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1515 (aarch64_make_stub_cache): Likewise.
1516 (value_of_aarch64_user_reg): Likewise.
1517 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1518 (get_ada_inferior_data): Likewise.
1519 (get_ada_pspace_data): Likewise.
1520 (ada_pspace_data_cleanup): Likewise.
1521 (ada_complete_symbol_matcher): Likewise.
1522 (ada_exc_search_name_matches): Likewise.
1523 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1524 (get_ada_tasks_inferior_data): Likewise.
1525 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1526 (splay_obstack_alloc): Likewise.
1527 (splay_obstack_free): Likewise.
1528 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1529 (alpha_linux_collect_gregset): Likewise.
1530 (alpha_linux_supply_fpregset): Likewise.
1531 (alpha_linux_collect_fpregset): Likewise.
1532 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1533 * alpha-tdep.c (alpha_lds): Likewise.
1534 (alpha_sts): Likewise.
1535 (alpha_sigtramp_frame_unwind_cache): Likewise.
1536 (alpha_heuristic_frame_unwind_cache): Likewise.
1537 (alpha_supply_int_regs): Likewise.
1538 (alpha_fill_int_regs): Likewise.
1539 (alpha_supply_fp_regs): Likewise.
1540 (alpha_fill_fp_regs): Likewise.
1541 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1542 (alphanbsd_aout_supply_gregset): Likewise.
1543 (alphanbsd_supply_gregset): Likewise.
1544 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1545 (amd64_x32_linux_init_abi): Likewise.
1546 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1547 (amd64_collect_native_gregset): Likewise.
1548 * amd64-tdep.c (amd64_frame_cache): Likewise.
1549 (amd64_sigtramp_frame_cache): Likewise.
1550 (amd64_epilogue_frame_cache): Likewise.
1551 (amd64_supply_fxsave): Likewise.
1552 (amd64_supply_xsave): Likewise.
1553 (amd64_collect_fxsave): Likewise.
1554 (amd64_collect_xsave): Likewise.
1555 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1556 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1557 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1558 (arm_linux_collect_gregset): Likewise.
1559 (arm_linux_supply_nwfpe): Likewise.
1560 (arm_linux_collect_nwfpe): Likewise.
1561 (arm_linux_supply_vfp): Likewise.
1562 (arm_linux_collect_vfp): Likewise.
1563 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1564 (arm_prologue_unwind_stop_reason): Likewise.
1565 (arm_prologue_this_id): Likewise.
1566 (arm_prologue_prev_register): Likewise.
1567 (arm_exidx_data_free): Likewise.
1568 (arm_find_exidx_entry): Likewise.
1569 (arm_stub_this_id): Likewise.
1570 (arm_m_exception_this_id): Likewise.
1571 (arm_m_exception_prev_register): Likewise.
1572 (arm_normal_frame_base): Likewise.
1573 (gdb_print_insn_arm): Likewise.
1574 (arm_objfile_data_free): Likewise.
1575 (arm_record_special_symbol): Likewise.
1576 (value_of_arm_user_reg): Likewise.
1577 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1578 (armbsd_supply_gregset): Likewise.
1579 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1580 (get_auto_load_pspace_data): Likewise.
1581 (hash_loaded_script_entry): Likewise.
1582 (eq_loaded_script_entry): Likewise.
1583 (clear_section_scripts): Likewise.
1584 (collect_matching_scripts): Likewise.
1585 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1586 (get_auxv_inferior_data): Likewise.
1587 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1588 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1589 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1590 (target_bfd_xclose): Likewise.
1591 (target_bfd_get_section_table): Likewise.
1592 * bfin-tdep.c (bfin_frame_cache): Likewise.
1593 * block.c (find_block_in_blockvector): Likewise.
1594 (call_site_for_pc): Likewise.
1595 (block_find_non_opaque_type_preferred): Likewise.
1596 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1597 (signal_catchpoint_remove_location): Likewise.
1598 (signal_catchpoint_breakpoint_hit): Likewise.
1599 (signal_catchpoint_print_one): Likewise.
1600 (signal_catchpoint_print_mention): Likewise.
1601 (signal_catchpoint_print_recreate): Likewise.
1602 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1603 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1604 (bp_location_compare_addrs): Likewise.
1605 (get_first_locp_gte_addr): Likewise.
1606 (check_tracepoint_command): Likewise.
1607 (do_map_commands_command): Likewise.
1608 (get_breakpoint_objfile_data): Likewise.
1609 (free_breakpoint_probes): Likewise.
1610 (do_captured_breakpoint_query): Likewise.
1611 (compare_breakpoints): Likewise.
1612 (bp_location_compare): Likewise.
1613 (bpstat_remove_breakpoint_callback): Likewise.
1614 (do_delete_breakpoint_cleanup): Likewise.
1615 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1616 (bsd_uthread_set_collect_uthread): Likewise.
1617 (bsd_uthread_activate): Likewise.
1618 (bsd_uthread_fetch_registers): Likewise.
1619 (bsd_uthread_store_registers): Likewise.
1620 * btrace.c (check_xml_btrace_version): Likewise.
1621 (parse_xml_btrace_block): Likewise.
1622 (parse_xml_btrace_pt_config_cpu): Likewise.
1623 (parse_xml_btrace_pt_raw): Likewise.
1624 (parse_xml_btrace_pt): Likewise.
1625 (parse_xml_btrace_conf_bts): Likewise.
1626 (parse_xml_btrace_conf_pt): Likewise.
1627 (do_btrace_data_cleanup): Likewise.
1628 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1629 * charset.c (cleanup_iconv): Likewise.
1630 (do_cleanup_iterator): Likewise.
1631 * cli-out.c (cli_uiout_dtor): Likewise.
1632 (cli_table_begin): Likewise.
1633 (cli_table_body): Likewise.
1634 (cli_table_end): Likewise.
1635 (cli_table_header): Likewise.
1636 (cli_begin): Likewise.
1637 (cli_end): Likewise.
1638 (cli_field_int): Likewise.
1639 (cli_field_skip): Likewise.
1640 (cli_field_string): Likewise.
1641 (cli_field_fmt): Likewise.
1642 (cli_spaces): Likewise.
1643 (cli_text): Likewise.
1644 (cli_message): Likewise.
1645 (cli_wrap_hint): Likewise.
1646 (cli_flush): Likewise.
1647 (cli_redirect): Likewise.
1648 (out_field_fmt): Likewise.
1649 (field_separator): Likewise.
1650 (cli_out_set_stream): Likewise.
1651 * cli/cli-cmds.c (compare_symtabs): Likewise.
1652 * cli/cli-dump.c (call_dump_func): Likewise.
1653 (restore_section_callback): Likewise.
1654 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1655 (do_restore_user_call_depth): Likewise.
1656 (do_free_command_lines_cleanup): Likewise.
1657 * coff-pe-read.c (get_section_vmas): Likewise.
1658 (pe_as16): Likewise.
1659 (pe_as32): Likewise.
1660 * coffread.c (coff_symfile_read): Likewise.
1661 * common/agent.c (agent_look_up_symbols): Likewise.
1662 * common/filestuff.c (do_close_cleanup): Likewise.
1663 * common/format.c (free_format_pieces_cleanup): Likewise.
1664 * common/vec.c (vec_o_reserve): Likewise.
1665 * compile/compile-c-support.c (print_one_macro): Likewise.
1666 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1667 (eq_symbol_error): Likewise.
1668 (del_symbol_error): Likewise.
1669 (error_symbol_once): Likewise.
1670 (gcc_convert_symbol): Likewise.
1671 (gcc_symbol_address): Likewise.
1672 (hash_symname): Likewise.
1673 (eq_symname): Likewise.
1674 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1675 (eq_type_map_instance): Likewise.
1676 (insert_type): Likewise.
1677 (convert_type): Likewise.
1678 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1679 (setup_sections): Likewise.
1680 (link_hash_table_free): Likewise.
1681 (copy_sections): Likewise.
1682 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1683 * compile/compile.c (compile_print_value): Likewise.
1684 (do_rmdir): Likewise.
1685 (cleanup_compile_instance): Likewise.
1686 (cleanup_unlink_file): Likewise.
1687 * completer.c (free_completion_tracker): Likewise.
1688 * corelow.c (add_to_spuid_list): Likewise.
1689 * cp-namespace.c (reset_directive_searched): Likewise.
1690 * cp-support.c (reset_directive_searched): Likewise.
1691 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1692 (cris_frame_unwind_cache): Likewise.
1693 * d-lang.c (builtin_d_type): Likewise.
1694 * d-namespace.c (reset_directive_searched): Likewise.
1695 * dbxread.c (dbx_free_symfile_info): Likewise.
1696 (do_free_bincl_list_cleanup): Likewise.
1697 * disasm.c (hash_dis_line_entry): Likewise.
1698 (eq_dis_line_entry): Likewise.
1699 (dis_asm_print_address): Likewise.
1700 (fprintf_disasm): Likewise.
1701 (do_ui_file_delete): Likewise.
1702 * doublest.c (convert_floatformat_to_doublest): Likewise.
1703 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1704 (dummy_frame_prev_register): Likewise.
1705 (dummy_frame_this_id): Likewise.
1706 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1707 (cache_eq): Likewise.
1708 (cache_find): Likewise.
1709 (tailcall_frame_this_id): Likewise.
1710 (dwarf2_tailcall_prev_register_first): Likewise.
1711 (tailcall_frame_prev_register): Likewise.
1712 (tailcall_frame_dealloc_cache): Likewise.
1713 (tailcall_frame_prev_arch): Likewise.
1714 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1715 (dwarf2_frame_set_init_reg): Likewise.
1716 (dwarf2_frame_init_reg): Likewise.
1717 (dwarf2_frame_set_signal_frame_p): Likewise.
1718 (dwarf2_frame_signal_frame_p): Likewise.
1719 (dwarf2_frame_set_adjust_regnum): Likewise.
1720 (dwarf2_frame_adjust_regnum): Likewise.
1721 (clear_pointer_cleanup): Likewise.
1722 (dwarf2_frame_cache): Likewise.
1723 (find_cie): Likewise.
1724 (dwarf2_frame_find_fde): Likewise.
1725 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1726 (free_dwarf_expr_context_cleanup): Likewise.
1727 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1728 (locexpr_get_frame_base): Likewise.
1729 (loclist_find_frame_base_location): Likewise.
1730 (loclist_get_frame_base): Likewise.
1731 (dwarf_expr_dwarf_call): Likewise.
1732 (dwarf_expr_get_base_type): Likewise.
1733 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1734 (dwarf_expr_get_obj_addr): Likewise.
1735 (entry_data_value_coerce_ref): Likewise.
1736 (entry_data_value_copy_closure): Likewise.
1737 (entry_data_value_free_closure): Likewise.
1738 (get_frame_address_in_block_wrapper): Likewise.
1739 (dwarf2_evaluate_property): Likewise.
1740 (dwarf2_compile_property_to_c): Likewise.
1741 (needs_frame_read_addr_from_reg): Likewise.
1742 (needs_frame_get_reg_value): Likewise.
1743 (needs_frame_frame_base): Likewise.
1744 (needs_frame_frame_cfa): Likewise.
1745 (needs_frame_tls_address): Likewise.
1746 (needs_frame_dwarf_call): Likewise.
1747 (needs_dwarf_reg_entry_value): Likewise.
1748 (get_ax_pc): Likewise.
1749 (locexpr_read_variable): Likewise.
1750 (locexpr_read_variable_at_entry): Likewise.
1751 (locexpr_read_needs_frame): Likewise.
1752 (locexpr_describe_location): Likewise.
1753 (locexpr_tracepoint_var_ref): Likewise.
1754 (locexpr_generate_c_location): Likewise.
1755 (loclist_read_variable): Likewise.
1756 (loclist_read_variable_at_entry): Likewise.
1757 (loclist_describe_location): Likewise.
1758 (loclist_tracepoint_var_ref): Likewise.
1759 (loclist_generate_c_location): Likewise.
1760 * dwarf2read.c (line_header_hash_voidp): Likewise.
1761 (line_header_eq_voidp): Likewise.
1762 (dwarf2_has_info): Likewise.
1763 (dwarf2_get_section_info): Likewise.
1764 (locate_dwz_sections): Likewise.
1765 (hash_file_name_entry): Likewise.
1766 (eq_file_name_entry): Likewise.
1767 (delete_file_name_entry): Likewise.
1768 (dw2_setup): Likewise.
1769 (dw2_get_file_names_reader): Likewise.
1770 (dw2_find_pc_sect_compunit_symtab): Likewise.
1771 (hash_signatured_type): Likewise.
1772 (eq_signatured_type): Likewise.
1773 (add_signatured_type_cu_to_table): Likewise.
1774 (create_debug_types_hash_table): Likewise.
1775 (lookup_dwo_signatured_type): Likewise.
1776 (lookup_dwp_signatured_type): Likewise.
1777 (lookup_signatured_type): Likewise.
1778 (hash_type_unit_group): Likewise.
1779 (eq_type_unit_group): Likewise.
1780 (get_type_unit_group): Likewise.
1781 (process_psymtab_comp_unit_reader): Likewise.
1782 (sort_tu_by_abbrev_offset): Likewise.
1783 (process_skeletonless_type_unit): Likewise.
1784 (psymtabs_addrmap_cleanup): Likewise.
1785 (dwarf2_read_symtab): Likewise.
1786 (psymtab_to_symtab_1): Likewise.
1787 (die_hash): Likewise.
1788 (die_eq): Likewise.
1789 (load_full_comp_unit_reader): Likewise.
1790 (reset_die_in_process): Likewise.
1791 (free_cu_line_header): Likewise.
1792 (handle_DW_AT_stmt_list): Likewise.
1793 (hash_dwo_file): Likewise.
1794 (eq_dwo_file): Likewise.
1795 (hash_dwo_unit): Likewise.
1796 (eq_dwo_unit): Likewise.
1797 (create_dwo_cu_reader): Likewise.
1798 (create_dwo_unit_in_dwp_v1): Likewise.
1799 (create_dwo_unit_in_dwp_v2): Likewise.
1800 (lookup_dwo_unit_in_dwp): Likewise.
1801 (dwarf2_locate_dwo_sections): Likewise.
1802 (dwarf2_locate_common_dwp_sections): Likewise.
1803 (dwarf2_locate_v2_dwp_sections): Likewise.
1804 (hash_dwp_loaded_cutus): Likewise.
1805 (eq_dwp_loaded_cutus): Likewise.
1806 (lookup_dwo_cutu): Likewise.
1807 (abbrev_table_free_cleanup): Likewise.
1808 (dwarf2_free_abbrev_table): Likewise.
1809 (find_partial_die_in_comp_unit): Likewise.
1810 (free_line_header_voidp): Likewise.
1811 (follow_die_offset): Likewise.
1812 (follow_die_sig_1): Likewise.
1813 (free_heap_comp_unit): Likewise.
1814 (free_stack_comp_unit): Likewise.
1815 (dwarf2_free_objfile): Likewise.
1816 (per_cu_offset_and_type_hash): Likewise.
1817 (per_cu_offset_and_type_eq): Likewise.
1818 (get_die_type_at_offset): Likewise.
1819 (partial_die_hash): Likewise.
1820 (partial_die_eq): Likewise.
1821 (dwarf2_per_objfile_free): Likewise.
1822 (hash_strtab_entry): Likewise.
1823 (eq_strtab_entry): Likewise.
1824 (add_string): Likewise.
1825 (hash_symtab_entry): Likewise.
1826 (eq_symtab_entry): Likewise.
1827 (delete_symtab_entry): Likewise.
1828 (cleanup_mapped_symtab): Likewise.
1829 (add_indices_to_cpool): Likewise.
1830 (hash_psymtab_cu_index): Likewise.
1831 (eq_psymtab_cu_index): Likewise.
1832 (add_address_entry_worker): Likewise.
1833 (unlink_if_set): Likewise.
1834 (write_one_signatured_type): Likewise.
1835 (save_gdb_index_command): Likewise.
1836 * elfread.c (elf_symtab_read): Likewise.
1837 (elf_gnu_ifunc_cache_hash): Likewise.
1838 (elf_gnu_ifunc_cache_eq): Likewise.
1839 (elf_gnu_ifunc_record_cache): Likewise.
1840 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1841 (elf_get_probes): Likewise.
1842 (probe_key_free): Likewise.
1843 * f-lang.c (builtin_f_type): Likewise.
1844 * frame-base.c (frame_base_append_sniffer): Likewise.
1845 (frame_base_set_default): Likewise.
1846 (frame_base_find_by_frame): Likewise.
1847 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1848 (frame_unwind_append_unwinder): Likewise.
1849 (frame_unwind_find_by_frame): Likewise.
1850 * frame.c (frame_addr_hash): Likewise.
1851 (frame_addr_hash_eq): Likewise.
1852 (frame_stash_find): Likewise.
1853 (do_frame_register_read): Likewise.
1854 (unwind_to_current_frame): Likewise.
1855 (frame_cleanup_after_sniffer): Likewise.
1856 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1857 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1858 * ft32-tdep.c (ft32_frame_cache): Likewise.
1859 * gcore.c (do_bfd_delete_cleanup): Likewise.
1860 (gcore_create_callback): Likewise.
1861 * gdb_bfd.c (hash_bfd): Likewise.
1862 (eq_bfd): Likewise.
1863 (gdb_bfd_open): Likewise.
1864 (free_one_bfd_section): Likewise.
1865 (gdb_bfd_ref): Likewise.
1866 (gdb_bfd_unref): Likewise.
1867 (get_section_descriptor): Likewise.
1868 (gdb_bfd_map_section): Likewise.
1869 (gdb_bfd_crc): Likewise.
1870 (gdb_bfd_mark_parent): Likewise.
1871 (gdb_bfd_record_inclusion): Likewise.
1872 (gdb_bfd_requires_relocations): Likewise.
1873 (print_one_bfd): Likewise.
1874 * gdbtypes.c (type_pair_hash): Likewise.
1875 (type_pair_eq): Likewise.
1876 (builtin_type): Likewise.
1877 (objfile_type): Likewise.
1878 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1879 (vtable_address_point_offset): Likewise.
1880 (gnuv3_get_vtable): Likewise.
1881 (hash_value_and_voffset): Likewise.
1882 (eq_value_and_voffset): Likewise.
1883 (compare_value_and_voffset): Likewise.
1884 (compute_vtable_size): Likewise.
1885 (gnuv3_get_typeid_type): Likewise.
1886 * go-lang.c (builtin_go_type): Likewise.
1887 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1888 (bkscm_eq_block_smob): Likewise.
1889 (bkscm_objfile_block_map): Likewise.
1890 (bkscm_del_objfile_blocks): Likewise.
1891 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1892 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1893 (gdbscm_disasm_print_address): Likewise.
1894 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1895 (frscm_eq_frame_smob): Likewise.
1896 (frscm_inferior_frame_map): Likewise.
1897 (frscm_del_inferior_frames): Likewise.
1898 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1899 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1900 (ofscm_objfile_smob_from_objfile): Likewise.
1901 * guile/scm-ports.c (ioscm_write): Likewise.
1902 (ioscm_file_port_delete): Likewise.
1903 (ioscm_file_port_rewind): Likewise.
1904 (ioscm_file_port_put): Likewise.
1905 (ioscm_file_port_write): Likewise.
1906 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1907 (psscm_pspace_smob_from_pspace): Likewise.
1908 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1909 (scscm_recording_unwind_handler): Likewise.
1910 (gdbscm_with_catch): Likewise.
1911 (scscm_call_0_body): Likewise.
1912 (scscm_call_1_body): Likewise.
1913 (scscm_call_2_body): Likewise.
1914 (scscm_call_3_body): Likewise.
1915 (scscm_call_4_body): Likewise.
1916 (scscm_apply_1_body): Likewise.
1917 (scscm_eval_scheme_string): Likewise.
1918 (gdbscm_safe_eval_string): Likewise.
1919 (scscm_source_scheme_script): Likewise.
1920 (gdbscm_safe_source_script): Likewise.
1921 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1922 (gdbscm_call_scm_from_stringn): Likewise.
1923 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1924 (syscm_eq_symbol_smob): Likewise.
1925 (syscm_get_symbol_map): Likewise.
1926 (syscm_del_objfile_symbols): Likewise.
1927 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1928 (stscm_eq_symtab_smob): Likewise.
1929 (stscm_objfile_symtab_map): Likewise.
1930 (stscm_del_objfile_symtabs): Likewise.
1931 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1932 (tyscm_eq_type_smob): Likewise.
1933 (tyscm_type_map): Likewise.
1934 (tyscm_copy_type_recursive): Likewise.
1935 (save_objfile_types): Likewise.
1936 * guile/scm-utils.c (extract_arg): Likewise.
1937 * h8300-tdep.c (h8300_frame_cache): Likewise.
1938 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1939 * hppa-tdep.c (compare_unwind_entries): Likewise.
1940 (find_unwind_entry): Likewise.
1941 (hppa_frame_cache): Likewise.
1942 (hppa_stub_frame_unwind_cache): Likewise.
1943 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1944 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1945 (hppaobsd_supply_fpregset): Likewise.
1946 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1947 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1948 * i386-tdep.c (i386_frame_cache): Likewise.
1949 (i386_epilogue_frame_cache): Likewise.
1950 (i386_sigtramp_frame_cache): Likewise.
1951 (i386_supply_gregset): Likewise.
1952 (i386_collect_gregset): Likewise.
1953 (i386_gdbarch_init): Likewise.
1954 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1955 (i386obsd_trapframe_cache): Likewise.
1956 * i387-tdep.c (i387_supply_fsave): Likewise.
1957 (i387_collect_fsave): Likewise.
1958 (i387_supply_fxsave): Likewise.
1959 (i387_collect_fxsave): Likewise.
1960 (i387_supply_xsave): Likewise.
1961 (i387_collect_xsave): Likewise.
1962 * ia64-tdep.c (ia64_frame_cache): Likewise.
1963 (ia64_sigtramp_frame_cache): Likewise.
1964 * infcmd.c (attach_command_continuation): Likewise.
1965 (attach_command_continuation_free_args): Likewise.
1966 * inferior.c (restore_inferior): Likewise.
1967 (delete_thread_of_inferior): Likewise.
1968 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1969 (get_inflow_inferior_data): Likewise.
1970 (inflow_inferior_exit): Likewise.
1971 * infrun.c (displaced_step_clear_cleanup): Likewise.
1972 (restore_current_uiout_cleanup): Likewise.
1973 (release_stop_context_cleanup): Likewise.
1974 (do_restore_infcall_suspend_state_cleanup): Likewise.
1975 (do_restore_infcall_control_state_cleanup): Likewise.
1976 (restore_inferior_ptid): Likewise.
1977 * inline-frame.c (block_starting_point_at): Likewise.
1978 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1979 * jit.c (get_jit_objfile_data): Likewise.
1980 (get_jit_program_space_data): Likewise.
1981 (jit_object_close_impl): Likewise.
1982 (jit_find_objf_with_entry_addr): Likewise.
1983 (jit_breakpoint_deleted): Likewise.
1984 (jit_unwind_reg_set_impl): Likewise.
1985 (jit_unwind_reg_get_impl): Likewise.
1986 (jit_dealloc_cache): Likewise.
1987 (jit_frame_sniffer): Likewise.
1988 (jit_frame_prev_register): Likewise.
1989 (jit_prepend_unwinder): Likewise.
1990 (jit_inferior_exit_hook): Likewise.
1991 (free_objfile_data): Likewise.
1992 * jv-lang.c (jv_per_objfile_free): Likewise.
1993 (get_dynamics_objfile): Likewise.
1994 (get_java_class_symtab): Likewise.
1995 (builtin_java_type): Likewise.
1996 * language.c (language_string_char_type): Likewise.
1997 (language_bool_type): Likewise.
1998 (language_lookup_primitive_type): Likewise.
1999 (language_lookup_primitive_type_as_symbol): Likewise.
2000 * linespec.c (hash_address_entry): Likewise.
2001 (eq_address_entry): Likewise.
2002 (iterate_inline_only): Likewise.
2003 (iterate_name_matcher): Likewise.
2004 (decode_line_2_compare_items): Likewise.
2005 (collect_one_symbol): Likewise.
2006 (compare_symbols): Likewise.
2007 (compare_msymbols): Likewise.
2008 (add_symtabs_to_list): Likewise.
2009 (collect_symbols): Likewise.
2010 (compare_msyms): Likewise.
2011 (add_minsym): Likewise.
2012 (cleanup_linespec_result): Likewise.
2013 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2014 * linux-nat.c (delete_lwp_cleanup): Likewise.
2015 (count_events_callback): Likewise.
2016 (select_event_lwp_callback): Likewise.
2017 (resume_stopped_resumed_lwps): Likewise.
2018 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2019 (invalidate_linux_cache_inf): Likewise.
2020 (get_linux_inferior_data): Likewise.
2021 (linux_find_memory_regions_thunk): Likewise.
2022 (linux_make_mappings_callback): Likewise.
2023 (linux_corefile_thread_callback): Likewise.
2024 (find_mapping_size): Likewise.
2025 * linux-thread-db.c (find_new_threads_callback): Likewise.
2026 * lm32-tdep.c (lm32_frame_cache): Likewise.
2027 * m2-lang.c (builtin_m2_type): Likewise.
2028 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2029 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2030 (m32r_linux_supply_gregset): Likewise.
2031 (m32r_linux_collect_gregset): Likewise.
2032 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2033 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2034 * m68k-tdep.c (m68k_frame_cache): Likewise.
2035 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2036 (m68kbsd_supply_gregset): Likewise.
2037 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2038 * m88k-tdep.c (m88k_frame_cache): Likewise.
2039 (m88k_supply_gregset): Likewise.
2040
224c3ddb
SM
20412015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2042
2043 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2044 to allocation result assignment.
2045 * ada-exp.y (write_object_renaming): Likewise.
2046 (write_ambiguous_var): Likewise.
2047 (ada_nget_field_index): Likewise.
2048 (write_var_or_type): Likewise.
2049 * ada-lang.c (ada_decode_symbol): Likewise.
2050 (ada_value_assign): Likewise.
2051 (value_pointer): Likewise.
2052 (cache_symbol): Likewise.
2053 (add_nonlocal_symbols): Likewise.
2054 (ada_name_for_lookup): Likewise.
2055 (symbol_completion_add): Likewise.
2056 (ada_to_fixed_type_1): Likewise.
2057 (ada_get_next_arg): Likewise.
2058 (defns_collected): Likewise.
2059 * ada-lex.l (processId): Likewise.
2060 (processString): Likewise.
2061 * ada-tasks.c (read_known_tasks_array): Likewise.
2062 (read_known_tasks_list): Likewise.
2063 * ada-typeprint.c (decoded_type_name): Likewise.
2064 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2065 * amd64-tdep.c (amd64_push_arguments): Likewise.
2066 (amd64_displaced_step_copy_insn): Likewise.
2067 (amd64_classify_insn_at): Likewise.
2068 (amd64_relocate_instruction): Likewise.
2069 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2070 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2071 (initialize_current_architecture): Likewise.
2072 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2073 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2074 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2075 (arm_push_dummy_call): Likewise.
2076 (extend_buffer_earlier): Likewise.
2077 (arm_adjust_breakpoint_address): Likewise.
2078 (arm_skip_stub): Likewise.
2079 * auto-load.c (filename_is_in_pattern): Likewise.
2080 (maybe_add_script_file): Likewise.
2081 (maybe_add_script_text): Likewise.
2082 (auto_load_objfile_script_1): Likewise.
2083 * auxv.c (ld_so_xfer_auxv): Likewise.
2084 * ax-general.c (new_agent_expr): Likewise.
2085 (grow_expr): Likewise.
2086 (ax_reg_mask): Likewise.
2087 * bcache.c (bcache_full): Likewise.
2088 * breakpoint.c (program_breakpoint_here_p): Likewise.
2089 * btrace.c (parse_xml_raw): Likewise.
2090 * build-id.c (build_id_to_debug_bfd): Likewise.
2091 * buildsym.c (end_symtab_with_blockvector): Likewise.
2092 * c-exp.y (string_exp): Likewise.
2093 (qualified_name): Likewise.
2094 (write_destructor_name): Likewise.
2095 (operator_stoken): Likewise.
2096 (parse_number): Likewise.
2097 (scan_macro_expansion): Likewise.
2098 (yylex): Likewise.
2099 (c_print_token): Likewise.
2100 * c-lang.c (c_get_string): Likewise.
2101 (emit_numeric_character): Likewise.
2102 * charset.c (wchar_iterate): Likewise.
2103 * cli/cli-cmds.c (complete_command): Likewise.
2104 (make_command): Likewise.
2105 * cli/cli-dump.c (restore_section_callback): Likewise.
2106 (restore_binary_file): Likewise.
2107 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2108 * cli/cli-script.c (execute_control_command): Likewise.
2109 * cli/cli-setshow.c (do_set_command): Likewise.
2110 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2111 (read_pe_exported_syms): Likewise.
2112 * coffread.c (coff_read_struct_type): Likewise.
2113 (coff_read_enum_type): Likewise.
2114 * common/btrace-common.c (btrace_data_append): Likewise.
2115 * common/buffer.c (buffer_grow): Likewise.
2116 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2117 * common/format.c (parse_format_string): Likewise.
2118 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2119 * common/xml-utils.c (xml_escape_text): Likewise.
2120 * compile/compile-object-load.c (copy_sections): Likewise.
2121 (compile_object_load): Likewise.
2122 * compile/compile-object-run.c (compile_object_run): Likewise.
2123 * completer.c (filename_completer): Likewise.
2124 * corefile.c (read_memory_typed_address): Likewise.
2125 (write_memory_unsigned_integer): Likewise.
2126 (write_memory_signed_integer): Likewise.
2127 (complete_set_gnutarget): Likewise.
2128 * corelow.c (get_core_register_section): Likewise.
2129 * cp-name-parser.y (d_grab): Likewise.
2130 (allocate_info): Likewise.
2131 (cp_new_demangle_parse_info): Likewise.
2132 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2133 (cp_lookup_symbol_in_namespace): Likewise.
2134 (lookup_namespace_scope): Likewise.
2135 (find_symbol_in_baseclass): Likewise.
2136 (cp_lookup_nested_symbol): Likewise.
2137 (cp_lookup_transparent_type_loop): Likewise.
2138 * cp-support.c (copy_string_to_obstack): Likewise.
2139 (make_symbol_overload_list): Likewise.
2140 (make_symbol_overload_list_namespace): Likewise.
2141 (make_symbol_overload_list_adl_namespace): Likewise.
2142 (first_component_command): Likewise.
2143 * cp-valprint.c (cp_print_value): Likewise.
2144 * ctf.c (ctf_xfer_partial): Likewise.
2145 * d-exp.y (StringExp): Likewise.
2146 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2147 (lookup_module_scope): Likewise.
2148 (find_symbol_in_baseclass): Likewise.
2149 (d_lookup_nested_symbol): Likewise.
2150 * dbxread.c (find_stab_function_addr): Likewise.
2151 (read_dbx_symtab): Likewise.
2152 (dbx_end_psymtab): Likewise.
2153 (cp_set_block_scope): Likewise.
2154 * dcache.c (dcache_alloc): Likewise.
2155 * demangle.c (_initialize_demangler): Likewise.
2156 * dicos-tdep.c (dicos_load_module_p): Likewise.
2157 * dictionary.c (dict_create_hashed_expandable): Likewise.
2158 (dict_create_linear_expandable): Likewise.
2159 (expand_hashtable): Likewise.
2160 (add_symbol_linear_expandable): Likewise.
2161 * dwarf2-frame.c (add_cie): Likewise.
2162 (add_fde): Likewise.
2163 (dwarf2_build_frame_info): Likewise.
2164 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2165 (dwarf_expr_fetch_address): Likewise.
2166 (add_piece): Likewise.
2167 (execute_stack_op): Likewise.
2168 * dwarf2loc.c (chain_candidate): Likewise.
2169 (dwarf_entry_parameter_to_value): Likewise.
2170 (read_pieced_value): Likewise.
2171 (write_pieced_value): Likewise.
2172 * dwarf2read.c (dwarf2_read_section): Likewise.
2173 (add_type_unit): Likewise.
2174 (read_comp_units_from_section): Likewise.
2175 (fixup_go_packaging): Likewise.
2176 (dwarf2_compute_name): Likewise.
2177 (dwarf2_physname): Likewise.
2178 (create_dwo_unit_in_dwp_v1): Likewise.
2179 (create_dwo_unit_in_dwp_v2): Likewise.
2180 (read_func_scope): Likewise.
2181 (read_call_site_scope): Likewise.
2182 (dwarf2_attach_fields_to_type): Likewise.
2183 (process_structure_scope): Likewise.
2184 (mark_common_block_symbol_computed): Likewise.
2185 (read_common_block): Likewise.
2186 (abbrev_table_read_table): Likewise.
2187 (guess_partial_die_structure_name): Likewise.
2188 (fixup_partial_die): Likewise.
2189 (add_file_name): Likewise.
2190 (dwarf2_const_value_data): Likewise.
2191 (dwarf2_const_value_attr): Likewise.
2192 (build_error_marker_type): Likewise.
2193 (guess_full_die_structure_name): Likewise.
2194 (anonymous_struct_prefix): Likewise.
2195 (typename_concat): Likewise.
2196 (dwarf2_canonicalize_name): Likewise.
2197 (dwarf2_name): Likewise.
2198 (write_constant_as_bytes): Likewise.
2199 (dwarf2_fetch_constant_bytes): Likewise.
2200 (copy_string): Likewise.
2201 (parse_macro_definition): Likewise.
2202 * elfread.c (elf_symfile_segments): Likewise.
2203 (elf_rel_plt_read): Likewise.
2204 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2205 (elf_gnu_ifunc_resolve_by_got): Likewise.
2206 (elf_read_minimal_symbols): Likewise.
2207 (elf_gnu_ifunc_record_cache): Likewise.
2208 * event-top.c (top_level_prompt): Likewise.
2209 (command_line_handler): Likewise.
2210 * exec.c (resize_section_table): Likewise.
2211 * expprint.c (print_subexp_standard): Likewise.
2212 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2213 * findcmd.c (parse_find_args): Likewise.
2214 * findvar.c (address_from_register): Likewise.
2215 * frame.c (get_prev_frame_always): Likewise.
2216 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2217 (get_section_descriptor): Likewise.
2218 * gdb_obstack.c (obconcat): Likewise.
2219 (obstack_strdup): Likewise.
2220 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2221 (create_set_type): Likewise.
2222 (lookup_unsigned_typename): Likewise.
2223 (lookup_signed_typename): Likewise.
2224 (resolve_dynamic_union): Likewise.
2225 (resolve_dynamic_struct): Likewise.
2226 (add_dyn_prop): Likewise.
2227 (copy_dynamic_prop_list): Likewise.
2228 (arch_flags_type): Likewise.
2229 (append_composite_type_field_raw): Likewise.
2230 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2231 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2232 * go-exp.y (string_exp): Likewise.
2233 * go-lang.c (go_demangle): Likewise.
2234 * guile/guile.c (compute_scheme_string): Likewise.
2235 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2236 (gdbscm_canonicalize_command_name): Likewise.
2237 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2238 (ioscm_init_memory_port): Likewise.
2239 (ioscm_reinit_memory_port): Likewise.
2240 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2241 (gdbscm_gc_dup_argv): Likewise.
2242 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2243 * hppa-tdep.c (internalize_unwinds): Likewise.
2244 (read_unwind_info): Likewise.
2245 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2246 (windows_core_xfer_shared_libraries): Likewise.
2247 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2248 (i386_stap_parse_special_token_triplet): Likewise.
2249 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2250 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2251 * inf-child.c (inf_child_fileio_readlink): Likewise.
2252 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2253 (inf_ptrace_store_register): Likewise.
2254 * infrun.c (follow_exec): Likewise.
2255 (displaced_step_prepare_throw): Likewise.
2256 (save_stop_context): Likewise.
2257 (save_infcall_suspend_state): Likewise.
2258 * jit.c (jit_read_descriptor): Likewise.
2259 (jit_read_code_entry): Likewise.
2260 (jit_symtab_line_mapping_add_impl): Likewise.
2261 (finalize_symtab): Likewise.
2262 (jit_unwind_reg_get_impl): Likewise.
2263 * jv-exp.y (QualifiedName): Likewise.
2264 * jv-lang.c (get_java_utf8_name): Likewise.
2265 (type_from_class): Likewise.
2266 (java_demangle_type_signature): Likewise.
2267 (java_class_name_from_physname): Likewise.
2268 * jv-typeprint.c (java_type_print_base): Likewise.
2269 * jv-valprint.c (java_value_print): Likewise.
2270 * language.c (add_language): Likewise.
2271 * linespec.c (add_sal_to_sals_basic): Likewise.
2272 (add_sal_to_sals): Likewise.
2273 (decode_objc): Likewise.
2274 (find_linespec_symbols): Likewise.
2275 * linux-fork.c (fork_save_infrun_state): Likewise.
2276 * linux-nat.c (linux_nat_detach): Likewise.
2277 (linux_nat_fileio_readlink): Likewise.
2278 * linux-record.c (record_linux_sockaddr): Likewise.
2279 (record_linux_msghdr): Likewise.
2280 (Do): Likewise.
2281 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2282 (linux_collect_regset_section_cb): Likewise.
2283 (linux_get_siginfo_data): Likewise.
2284 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2285 (try_thread_db_load_from_dir): Likewise.
2286 (thread_db_load_search): Likewise.
2287 (info_auto_load_libthread_db): Likewise.
2288 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2289 (m32c_m16c_pointer_to_address): Likewise.
2290 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2291 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2292 * machoread.c (macho_check_dsym): Likewise.
2293 * macroexp.c (resize_buffer): Likewise.
2294 (gather_arguments): Likewise.
2295 (maybe_expand): Likewise.
2296 * macrotab.c (new_macro_key): Likewise.
2297 (new_source_file): Likewise.
2298 (new_macro_definition): Likewise.
2299 * mdebugread.c (parse_symbol): Likewise.
2300 (parse_type): Likewise.
2301 (parse_partial_symbols): Likewise.
2302 (psymtab_to_symtab_1): Likewise.
2303 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2304 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2305 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2306 (mi_cmd_data_read_memory_bytes): Likewise.
2307 (mi_cmd_data_write_memory_bytes): Likewise.
2308 (mi_cmd_trace_frame_collected): Likewise.
2309 * mi/mi-parse.c (mi_parse_argv): Likewise.
2310 (mi_parse): Likewise.
2311 * minidebug.c (lzma_open): Likewise.
2312 (lzma_pread): Likewise.
2313 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2314 (mips_print_fp_register): Likewise.
2315 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2316 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2317 * mt-tdep.c (mt_register_name): Likewise.
2318 (mt_registers_info): Likewise.
2319 (mt_push_dummy_call): Likewise.
2320 * namespace.c (add_using_directive): Likewise.
2321 * nat/linux-btrace.c (perf_event_read): Likewise.
2322 (linux_enable_bts): Likewise.
2323 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2324 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2325 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2326 (nto_parse_redirection): Likewise.
2327 * objc-lang.c (objc_demangle): Likewise.
2328 (find_methods): Likewise.
2329 * objfiles.c (get_objfile_bfd_data): Likewise.
2330 (set_objfile_main_name): Likewise.
2331 (allocate_objfile): Likewise.
2332 (objfile_relocate): Likewise.
2333 (update_section_map): Likewise.
2334 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2335 * p-exp.y (exp): Likewise.
2336 (yylex): Likewise.
2337 * p-valprint.c (pascal_object_print_value): Likewise.
2338 * parse.c (initialize_expout): Likewise.
2339 (mark_completion_tag): Likewise.
2340 (copy_name): Likewise.
2341 (parse_float): Likewise.
2342 (type_stack_reserve): Likewise.
2343 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2344 (ppu2spu_prev_register): Likewise.
2345 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2346 * printcmd.c (printf_wide_c_string): Likewise.
2347 (printf_pointer): Likewise.
2348 * probe.c (parse_probes): Likewise.
2349 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2350 (cmdpy_init): Likewise.
2351 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2352 * python/py-symtab.c (set_sal): Likewise.
2353 * python/py-unwind.c (pyuw_sniffer): Likewise.
2354 * python/python.c (python_interactive_command): Likewise.
2355 (compute_python_string): Likewise.
2356 * ravenscar-thread.c (get_running_thread_id): Likewise.
2357 * record-full.c (record_full_exec_insn): Likewise.
2358 (record_full_core_open_1): Likewise.
2359 * regcache.c (regcache_raw_read_signed): Likewise.
2360 (regcache_raw_read_unsigned): Likewise.
2361 (regcache_cooked_read_signed): Likewise.
2362 (regcache_cooked_read_unsigned): Likewise.
2363 * remote-fileio.c (remote_fileio_func_open): Likewise.
2364 (remote_fileio_func_rename): Likewise.
2365 (remote_fileio_func_unlink): Likewise.
2366 (remote_fileio_func_stat): Likewise.
2367 (remote_fileio_func_system): Likewise.
2368 * remote-mips.c (mips_xfer_memory): Likewise.
2369 (mips_load_srec): Likewise.
2370 (pmon_end_download): Likewise.
2371 * remote.c (new_remote_state): Likewise.
2372 (map_regcache_remote_table): Likewise.
2373 (remote_register_number_and_offset): Likewise.
2374 (init_remote_state): Likewise.
2375 (get_memory_packet_size): Likewise.
2376 (remote_pass_signals): Likewise.
2377 (remote_program_signals): Likewise.
2378 (remote_start_remote): Likewise.
2379 (remote_check_symbols): Likewise.
2380 (remote_query_supported): Likewise.
2381 (extended_remote_attach): Likewise.
2382 (process_g_packet): Likewise.
2383 (store_registers_using_G): Likewise.
2384 (putpkt_binary): Likewise.
2385 (read_frame): Likewise.
2386 (compare_sections_command): Likewise.
2387 (remote_hostio_pread): Likewise.
2388 (remote_hostio_readlink): Likewise.
2389 (remote_file_put): Likewise.
2390 (remote_file_get): Likewise.
2391 (remote_pid_to_exec_file): Likewise.
2392 (_initialize_remote): Likewise.
2393 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2394 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2395 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2396 (bfd_uses_spe_extensions): Likewise.
2397 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2398 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2399 * solib-dsbt.c (decode_loadmap): Likewise.
2400 (fetch_loadmap): Likewise.
2401 (scan_dyntag): Likewise.
2402 (enable_break): Likewise.
2403 (dsbt_relocate_main_executable): Likewise.
2404 * solib-frv.c (fetch_loadmap): Likewise.
2405 (enable_break2): Likewise.
2406 (frv_relocate_main_executable): Likewise.
2407 * solib-spu.c (spu_relocate_main_executable): Likewise.
2408 (spu_bfd_open): Likewise.
2409 * solib-svr4.c (lm_info_read): Likewise.
2410 (read_program_header): Likewise.
2411 (find_program_interpreter): Likewise.
2412 (scan_dyntag): Likewise.
2413 (elf_locate_base): Likewise.
2414 (open_symbol_file_object): Likewise.
2415 (read_program_headers_from_bfd): Likewise.
2416 (svr4_relocate_main_executable): Likewise.
2417 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2418 * solib.c (solib_find_1): Likewise.
2419 (exec_file_find): Likewise.
2420 (solib_find): Likewise.
2421 * source.c (openp): Likewise.
2422 (print_source_lines_base): Likewise.
2423 (forward_search_command): Likewise.
2424 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2425 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2426 (spu_get_overlay_table): Likewise.
2427 * stabsread.c (patch_block_stabs): Likewise.
2428 (define_symbol): Likewise.
2429 (again:): Likewise.
2430 (read_member_functions): Likewise.
2431 (read_one_struct_field): Likewise.
2432 (read_enum_type): Likewise.
2433 (common_block_start): Likewise.
2434 * stack.c (read_frame_arg): Likewise.
2435 (backtrace_command): Likewise.
2436 * stap-probe.c (stap_parse_register_operand): Likewise.
2437 * symfile.c (syms_from_objfile_1): Likewise.
2438 (find_separate_debug_file): Likewise.
2439 (load_command): Likewise.
2440 (load_progress): Likewise.
2441 (load_section_callback): Likewise.
2442 (reread_symbols): Likewise.
2443 (add_filename_language): Likewise.
2444 (allocate_compunit_symtab): Likewise.
2445 (read_target_long_array): Likewise.
2446 (simple_read_overlay_table): Likewise.
2447 * symtab.c (symbol_set_names): Likewise.
2448 (resize_symbol_cache): Likewise.
2449 (rbreak_command): Likewise.
2450 (completion_list_add_name): Likewise.
2451 (completion_list_objc_symbol): Likewise.
2452 (add_filename_to_list): Likewise.
2453 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2454 * target-memory.c (target_write_memory_blocks): Likewise.
2455 * target.c (target_read_string): Likewise.
2456 (read_whatever_is_readable): Likewise.
2457 (target_read_alloc_1): Likewise.
2458 (simple_search_memory): Likewise.
2459 (target_fileio_read_alloc_1): Likewise.
2460 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2461 * top.c (command_line_input): Likewise.
2462 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2463 * tracefile.c (tracefile_fetch_registers): Likewise.
2464 * tracepoint.c (add_memrange): Likewise.
2465 (init_collection_list): Likewise.
2466 (add_aexpr): Likewise.
2467 (trace_dump_actions): Likewise.
2468 (parse_trace_status): Likewise.
2469 (parse_tracepoint_definition): Likewise.
2470 (parse_tsv_definition): Likewise.
2471 (parse_static_tracepoint_marker_definition): Likewise.
2472 * tui/tui-file.c (tui_sfileopen): Likewise.
2473 (tui_file_adjust_strbuf): Likewise.
2474 * tui/tui-io.c (tui_expand_tabs): Likewise.
2475 * tui/tui-source.c (tui_set_source_content): Likewise.
2476 * typeprint.c (find_global_typedef): Likewise.
2477 * ui-file.c (do_ui_file_xstrdup): Likewise.
2478 (ui_file_obsavestring): Likewise.
2479 (mem_file_write): Likewise.
2480 * utils.c (make_hex_string): Likewise.
2481 (get_regcomp_error): Likewise.
2482 (puts_filtered_tabular): Likewise.
2483 (gdb_realpath_keepfile): Likewise.
2484 (ldirname): Likewise.
2485 (gdb_bfd_errmsg): Likewise.
2486 (substitute_path_component): Likewise.
2487 * valops.c (search_struct_method): Likewise.
2488 (find_oload_champ_namespace_loop): Likewise.
2489 * valprint.c (print_decimal_chars): Likewise.
2490 (read_string): Likewise.
2491 (generic_emit_char): Likewise.
2492 * varobj.c (varobj_delete): Likewise.
2493 (varobj_value_get_print_value): Likewise.
2494 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2495 * windows-tdep.c (display_one_tib): Likewise.
2496 * xcoffread.c (read_xcoff_symtab): Likewise.
2497 (process_xcoff_symbol): Likewise.
2498 (swap_sym): Likewise.
2499 (scan_xcoff_symtab): Likewise.
2500 (xcoff_initial_scan): Likewise.
2501 * xml-support.c (gdb_xml_end_element): Likewise.
2502 (xml_process_xincludes): Likewise.
2503 (xml_fetch_content_from_file): Likewise.
2504 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2505 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2506
623fb775 25072015-09-23 James Bowman <james.bowman@ftdichip.com>
2508
2509 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2510 instead of builtin_func_ptr.
2511 (ft32_pointer_to_address): New function.
2512 (ft32_address_class_type_flags): New function.
2513 (ft32_address_class_type_flags_to_name): New function.
2514 (ft32_address_class_name_to_type_flags): New function.
2515 (ft32_gdbarch_init): Set tdep->pc_type. Call
2516 set_gdbarch_pointer_to_address,
2517 set_gdbarch_address_class_type_flags
2518 set_gdbarch_address_class_name_to_type_flags,
2519 and set_gdbarch_address_class_type_flags_to_name.
2520 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2521
e6c2c623
PMR
25222015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2523
2524 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2525 value is a reference, actually dereference it in order to get
2526 the underlying value.
2527
bc1f8cda
SM
25282015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2529
2530 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2531
acaa662f
SM
25322015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2533
2534 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2535 * linespec.c (linespec_lexer_lex_string): Same.
2536
4d9d419e
PL
25372015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2538
2539 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2540
6ec5f4be
PL
25412015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2542
2543 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2544 variable. Call aarch64_decode_adr instead of
2545 aarch64_decode_adrp.
2546 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2547 (aarch64_decode_adr): New function declaration.
2548 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2549 (aarch64_decode_adr): New function, factored out from
2550 aarch64_decode_adrp to decode both adr and adrp instructions.
2551
787749ea
PL
25522015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2553
2554 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2555 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2556 (aarch64-insn.o): New rule.
2557 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2558 (aarch64*-*-linux*): Likewise.
2559 * arch/aarch64-insn.c: New file.
2560 * arch/aarch64-insn.h: New file.
2561 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2562 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2563 arch/aarch64-insn.h.
2564 (decode_add_sub_imm): Rename to ...
2565 (aarch64_decode_add_sub_imm): ... this.
2566 (decode_adrp): Rename to ...
2567 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2568 Declare in arch/aarch64-insn.h.
2569 (decode_b): Rename to ...
2570 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2571 Declare in arch/aarch64-insn.h.
2572 (decode_bcond): Rename to ...
2573 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2574 Declare in arch/aarch64-insn.h.
2575 (decode_br): Rename to ...
2576 (aarch64_decode_br): ... this.
2577 (decode_cb): Rename to ...
2578 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2579 Declare in arch/aarch64-insn.h.
2580 (decode_eret): Rename to ...
2581 (aarch64_decode_eret): ... this.
2582 (decode_movz): Rename to ...
2583 (aarch64_decode_movz): ... this.
2584 (decode_orr_shifted_register_x): Rename to ...
2585 (aarch64_decode_orr_shifted_register_x): ... this.
2586 (decode_ret): Rename to ...
2587 (aarch64_decode_ret): ... this.
2588 (decode_stp_offset): Rename to ...
2589 (aarch64_decode_stp_offset): ... this.
2590 (decode_stp_offset_wb): Rename to ...
2591 (aarch64_decode_stp_offset_wb): ... this.
2592 (decode_stur): Rename to ...
2593 (aarch64_decode_stur): ... this.
2594 (decode_tb): Rename to ...
2595 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2596 Declare in arch/aarch64-insn.h.
2597 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2598
183dc7ec
DE
25992015-09-20 Doug Evans <xdje42@gmail.com>
2600
2601 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2602
2ee7123e
DE
26032015-09-20 Doug Evans <xdje42@gmail.com>
2604
2605 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2606 variable name that collides with a parameter.
2607
7d1c9c9b
JB
26082015-09-20 Joel Brobecker <brobecker@adacore.com>
2609
2610 * dwarf2loc.c (locexpr_get_frame_base): Renames
2611 block_op_get_frame_base.
2612 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2613 block_op_get_frame_base by reference to locexpr_get_frame_base.
2614 (loclist_get_frame_base): New function, near identical copy of
2615 locexpr_get_frame_base.
2616 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2617 block_op_get_frame_base by reference to loclist_get_frame_base.
2618
7dc7c195
DE
26192015-09-19 Doug Evans <xdje42@gmail.com>
2620
2621 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2622 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2623
be550b6e
DE
26242015-09-18 Doug Evans <xdje42@gmail.com>
2625
2626 * linux-thread-db.c (record_thread): Return the created thread.
2627 (thread_from_lwp): Likewise.
2628 (thread_db_get_thread_local_address): Update.
2629
615b3f62
DE
26302015-09-18 Doug Evans <xdje42@gmail.com>
2631
2632 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2633 move only member demangled_name up. All uses updated.
2634
015d2e7e
DE
26352015-09-18 Doug Evans <xdje42@gmail.com>
2636
2637 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2638 kind of minimal symbol in the error message.
2639 * objfiles.c (objfile_flavour_name): New function.
2640 * objfiles.h (objfile_flavour_name): Declare.
2641
a0cc84cd
YQ
26422015-09-18 Yao Qi <yao.qi@linaro.org>
2643
2644 * nat/aarch64-linux.c: Include elf/common.h,
2645 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2646 (aarch64_ps_get_thread_area): New function.
2647 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2648 (aarch64_ps_get_thread_area): Declare.
2649 * aarch64-linux-nat.c (ps_get_thread_area): Call
2650 aarch64_ps_get_thread_area.
2651
d2939ba2
MM
26522015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2653
2654 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2655
f2665db5
MM
26562015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2657
2658 * NEWS: Announce new scheduler-locking mode.
2659 * infrun.c (schedlock_replay): New.
2660 (scheduler_enums): Add schedlock_replay.
2661 (scheduler_mode): Change default to schedlock_replay.
2662 (user_visible_resume_ptid): Handle schedlock_replay.
2663 (clear_proceed_status_thread): Stop replaying if resumed thread is
2664 not replaying.
2665 (schedlock_applies): Handle schedlock_replay.
2666 (_initialize_infrun): Document new scheduler-locking mode.
2667 * record-btrace.c (record_btrace_resume): Remove code to stop other
2668 threads when not replaying the resumed thread.
2669
7ff27e9b
MM
26702015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2671
2672 * record-btrace.c ((record_btrace_will_replay): New.
2673 (init_record_btrace_ops): Initialize to_record_will_replay.
2674 * record-full.c ((record_full_will_replay): New.
2675 (init_record_full_ops): Initialize to_record_will_replay.
2676 * target-delegates.c: Regenerated.
2677 * target.c (target_record_will_replay): New.
2678 * target.h (struct target_ops) <to_record_will_replay>: New.
2679 (target_record_will_replay): New.
2680
797094dd
MM
26812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2682
2683 * record-btrace.c (record_btrace_resume): Call
2684 target_record_stop_replaying.
2685 (record_btrace_stop_replaying_all): New.
2686 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2687 * record-full.c (record_full_stop_replaying): New.
2688 (init_record_full_ops ): Initialize to_record_stop_replaying.
2689 * target-delegates.c: Regenerated.
2690 * target.c (target_record_stop_replaying): New.
2691 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2692 (target_record_stop_replaying): New.
2693
4d10e986
MM
26942015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2695
2696 * record-btrace.c (record_btrace_xfer_partial)
2697 (record_btrace_store_registers, record_btrace_prepare_to_store):
2698 Call record_btrace_is_replaying with inferior_ptid instead of
2699 minus_one_ptid.
2700 (record_btrace_store_registers): Change error message.
2701
a52eab48
MM
27022015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2703
2704 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2705 Update users to pass minus_one_ptid.
2706 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2707 * record.c (cmd_record_delete): Pass inferior_ptid to
2708 target_record_is_replaying.
2709 * target-delegates.c: Regenerated.
2710 * target.c (target_record_is_replaying): Add ptid argument.
2711 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2712 argument.
2713 (target_record_is_replaying): Add ptid argument.
2714
cbb55fa7
MM
27152015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2716
2717 * record-btrace.c (record_btrace_open): Remove non_stop check.
2718 * NEWS: Announce that record btrace supports non-stop mode.
2719
d1988021
MM
27202015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2721
2722 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2723 in the TARKET_WAITKIND_NO_HISTORY case.
2724
a6b5be76
MM
27252015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2726
2727 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2728 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2729
ec71cc2f
MM
27302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2731
2732 * record-btrace.c (get_thread_current_frame): New.
2733 (record_btrace_start_replaying): Call get_thread_current_frame.
2734
0ca912df
MM
27352015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2736
2737 * record-btrace.c (record_btrace_resume_thread): A move request
2738 overwrites a previous move request.
2739 (record_btrace_find_resume_thread): Removed.
2740 (record_btrace_resume): Resume all requested threads.
2741
e3cfc1c7
MM
27422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2743
2744 * record-btrace.c: Include vec.h.
2745 (record_btrace_find_thread_to_move): Removed.
2746 (btrace_step_no_resumed, btrace_step_again)
2747 (record_btrace_stop_replaying_at_end): New.
2748 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2749 (record_btrace_single_step_forward): Remove calls to
2750 record_btrace_stop_replaying.
2751 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2752 BTHR_RCONT. Keep threads at the end of their history moving.
2753 (record_btrace_wait): Call record_btrace_step_thread for all threads
2754 until one reports an event. Call record_btrace_stop_replaying_at_end
2755 for the eventing thread.
2756
cf8f8f0c
MM
27572015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2758
2759 * record-btrace.c (record_btrace_single_step_forward): Return
2760 NO_HISTORY if a step brings us to the end of the execution history.
2761
011c71b6
MM
27622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2763
2764 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2765 to ...
2766 (record_btrace_single_step_forward): ... here and
2767 (record_btrace_single_step_backward): ... here.
2768
d825d248
MM
27692015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2770
2771 * record-btrace.c (btrace_step_spurious)
2772 (record_btrace_single_step_forward)
2773 (record_btrace_single_step_backward): New.
2774 (record_btrace_step_thread): Call record_btrace_single_step_forward
2775 and record_btrace_single_step_backward.
2776
3c615f99
MM
27772015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2778
2779 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2780 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2781
987e68b1
MM
27822015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2783
2784 * record-btrace.c (btrace_thread_flag_to_str)
2785 (record_btrace_cancel_resume): New.
2786 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2787 (record_btrace_resume): Print execution direction.
2788 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2789 (record_btrace_wait): Call record_btrace_cancel_resume.
2790
6e4879f0
MM
27912015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2792
2793 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2794 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2795 (record_btrace_find_thread_to_move): Also accept threads that have
2796 BTHR_STOP set.
2797 (btrace_step_stopped_on_request, record_btrace_stop): New.
2798 (record_btrace_step_thread): Support BTHR_STOP.
2799 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2800 (init_record_btrace_ops): Initialize to_stop.
2801
5953356c
MM
28022015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2803
2804 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2805 target_is_non_stop_p ().
2806
bfca584f
PMR
28072015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2808
2809 * ada-typeprint.c (print_array_type): Do not describe arrays as
2810 packed when they embed dynamic elements.
2811
5382cfab
PW
28122015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2813
2814 * symtab.h (address_class): Document that TLS variables
2815 are handled by LOC_UNRESOLVED.
2816 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2817 * printcmd.c (address_info): Don't relocate TLS variables.
2818
b277c936
PL
28192015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2820
2821 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2822 (decode_adrp): Likewise.
2823 (decode_b): Likewise.
2824 (decode_bcond): Likewise.
2825 (decode_br): Likewise.
2826 (decode_cb): Likewise.
2827 (decode_eret): Likewise.
2828 (decode_movz): Likewise.
2829 (decode_orr_shifted_register_x): Likewise.
2830 (decode_ret): Likewise.
2831 (decode_stp_offset): Likewise.
2832 (decode_stp_offset_wb): Likewise.
2833 (decode_stur): Likewise.
2834 (decode_tb): Likewise.
2835 (aarch64_analyze_prologue): Likewise.
2836 (pass_in_x): Likewise.
2837 (pass_in_v): Likewise.
2838 (pass_on_stack): Likewise.
2839 (aarch64_push_dummy_call): Likewise.
2840 (aarch64_extract_return_value): Likewise.
2841 (aarch64_store_return_value): Likewise.
2842 (aarch64_return_value): Likewise.
2843 (aarch64_record_asimd_load_store): Likewise.
2844 (aarch64_record_load_store): Likewise.
2845 (aarch64_record_data_proc_simd_fp): Likewise.
2846
141c5cc4
JK
28472015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2848
2849 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2850 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2851 (ppc64_skip_trampoline_code_1): ... here.
2852 (ppc64_skip_trampoline_code): New wrapper function.
2853 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2854
750ce8d1
YQ
28552015-09-15 Yao Qi <yao.qi@linaro.org>
2856
2857 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2858 function.
2859 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2860 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2861 if target_can_do_single_step returns 1.
2862 * remote.c (struct vCont_action_support) <s, S>: New fields.
2863 (PACKET_vContSupported): New enum.
2864 (remote_protocol_features): New element for vContSupported.
2865 (remote_query_supported): Append "vContSupported+".
2866 (remote_vcont_probe): Remove support_s and support_S, use
2867 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2868 vCont packet if c and C actions are not supported.
2869 (remote_can_do_single_step): New function.
2870 (init_remote_ops): Install it to to_can_do_single_step.
2871 (_initialize_remote): Call add_packet_config_cmd.
2872 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2873 (target_can_do_single_step): New macro.
2874 * target-delegates.c: Re-generated.
2875
ade90bde
YQ
28762015-09-15 Yao Qi <yao.qi@linaro.org>
2877
2878 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2879 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2880 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2881 New function.
2882 (aarch64_siginfo_from_compat_siginfo): New function.
2883 * nat/aarch64-linux.h: Include signal.h.
2884 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2885 (compat_timer_t, compat_clock_t): Likewise.
2886 (struct compat_timeval): New.
2887 (union compat_sigval): New.
2888 (struct compat_siginfo): New.
2889 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2890 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2891 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2892 (cpt_si_band, cpt_si_fd): Likewise.
2893
4c2f2a79
PA
28942015-09-14 Pedro Alves <palves@redhat.com>
2895
2896 * infrun.c (current_stop_id): New global.
2897 (get_stop_id, new_stop_id): New functions.
2898 (fetch_inferior_event): Handle normal_stop proceeding the target.
2899 (struct stop_context): New.
2900 (save_stop_context, release_stop_context_cleanup)
2901 (stop_context_changed): New functions.
2902 (normal_stop): Return true if the hook-stop changes the stop
2903 context.
2904 * infrun.h (get_stop_id): Declare.
2905 (normal_stop): Now returns int. Add documentation.
2906
919e6dbe
PMR
29072015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2908
2909 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2910 comment. Handle packed arrays.
2911
b027a8fa
PA
29122015-09-14 Pedro Alves <palves@redhat.com>
2913
2914 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2915 mention of maint set/show target-non-stop.
2916
b459a59b
DB
29172015-09-11 Don Breazeal <donb@codesourcery.com>
2918
2919 * NEWS: Announce new remote packets for the exec-events
2920 feature and the exec-events feature and associated commands.
2921
d46addbb
DB
29222015-09-11 Don Breazeal <donb@codesourcery.com>
2923
2924 * remote.c (remote_exec_event_p): New function.
2925 (remote_insert_exec_catchpoint): New function.
2926 (remote_remove_exec_catchpoint): New function.
2927 (init_extended_remote_ops): Initialize extended_remote_ops
2928 members to_insert_exec_catchpoint and
2929 to_remove_exec_catchpoint.
2930
94585166
DB
29312015-09-11 Don Breazeal <donb@codesourcery.com>
2932 Luis Machado <lgustavo@codesourcery.com>
2933
2934 * infrun.c (follow_exec): Use process-style ptid for
2935 exec message. Call add_inferior_with_spaces and
2936 target_follow_exec.
2937 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2938 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2939 * remote.c (remote_pspace_data): New static variable.
2940 (remote_pspace_data_cleanup): New function.
2941 (get_remote_exec_file): New function.
2942 (set_remote_exec_file_1): New function.
2943 (set_remote_exec_file): New function.
2944 (show_remote_exec_file): New function.
2945 (remote_exec_file): Delete static variable.
2946 (anonymous enum) <PACKET_exec_event_feature>: New
2947 enumeration constant.
2948 (remote_protocol_features): Add entry for exec-events feature.
2949 (remote_query_supported): Add client side of qSupported query
2950 for exec-events feature.
2951 (remote_follow_exec): New function.
2952 (remote_parse_stop_reply): Handle 'exec' stop reason.
2953 (extended_remote_run, extended_remote_create_inferior): Call
2954 get_remote_exec_file and set_remote_exec_file_1.
2955 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2956 member.
2957 (_initialize_remote): Call
2958 register_program_space_data_with_cleanup. Call
2959 add_packet_config_cmd for remote exec-events feature.
2960 Modify call to add_setshow_string_noescape_cmd for exec-file
2961 to use new functions set_remote_exec_file and
2962 show_remote_exec_file.
2963 * target-debug.h, target-delegates.c: Regenerated.
2964 * target.c (target_follow_exec): New function.
2965 * target.h (struct target_ops) <to_follow_exec>: New member.
2966 (target_follow_exec): Declare new function.
2967
669e74e8
PL
29682015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2969
2970 * aarch64-tdep.c (decode_cb): Move up comment describing the
2971 encoding.
2972 (decode_tb): Fix a typo in comment above the function. Move up
2973 comment describing the encoding.
2974
4d50586d
PL
29752015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2976
2977 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2978
6dcaef99
MMN
29792015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2980
2981 PR gdb/18947
2982 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2983 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2984
5da1a4d3
SM
29852015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2986
2987 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2988 operations.
2989
108d56a4
SM
29902015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2991
2992 * ada-lang.c (ada_search_struct_field): Constify parameters
2993 and/or variables..
2994 (xget_renaming_scope): Likewise.
2995 (ada_is_redundant_range_encoding): Likewise.
2996 (scan_discrim_bound): Likewise.
2997 (to_fixed_range_type): Likewise.
2998
dd2e65cc
YQ
29992015-09-10 Yao Qi <yao.qi@linaro.org>
3000
3001 * breakpoint.c (download_tracepoint_locations): New local
3002 can_download_tracepoint. Check the result of
3003 target_can_download_tracepoint and save it in
3004 can_download_tracepoint if there are tracepoints to download.
3005 * linux-nat.h (enum tribool): Move it to ...
3006 * common/common-types.h: ... here.
3007
cfe75703
PA
30082015-09-09 Pedro Alves <palves@redhat.com>
3009
3010 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3011 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3012
a85a3079
PA
30132015-09-09 Pedro Alves <palves@redhat.com>
3014
3015 * continuations.c (add_continuation, restore_thread_cleanup)
3016 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3017 (do_all_continuations_thread, do_all_continuations)
3018 (discard_all_continuations_thread_callback)
3019 (discard_all_continuations_thread, discard_all_continuations)
3020 (add_intermediate_continuation)
3021 (do_all_intermediate_continuations_thread_callback)
3022 (do_all_intermediate_continuations_thread)
3023 (do_all_intermediate_continuations)
3024 (discard_all_intermediate_continuations_thread_callback)
3025 (discard_all_intermediate_continuations_thread)
3026 (discard_all_intermediate_continuations): Delete.
3027 * continuations.h (add_continuation, do_all_continuations)
3028 (do_all_continuations_thread, discard_all_continuations)
3029 (discard_all_continuations_thread, add_intermediate_continuation)
3030 (do_all_intermediate_continuations)
3031 (do_all_intermediate_continuations_thread)
3032 (discard_all_intermediate_continuations)
3033 (discard_all_intermediate_continuations_thread): Delete
3034 declarations.
3035 * event-top.c (stdin_event_handler): Delete references to
3036 continuations.
3037 * gdbthread.h (struct thread_info): Delete continuations and
3038 intermediate_continuations fields.
3039 * inf-loop.c (inferior_event_handler): Remove references to
3040 continuations.
3041 * infrun.c (infrun_thread_stop_requested_callback): Remove
3042 references to continuations.
3043 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3044 * thread.c: Don't include "continuations.h".
3045 (clear_thread_inferior_resources): Remove references to
3046 continuations.
3047
0700e23e
PA
30482015-09-09 Pedro Alves <palves@redhat.com>
3049
3050 * infcall.c (struct dummy_frame_context_saver): Delete.
3051 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3052 (dummy_frame_context_saver_drop)
3053 (dummy_frame_context_saver_cleanup)
3054 (dummy_frame_context_saver_get_regs)
3055 (dummy_frame_context_saver_setup): Delete.
3056 * infcall.h (dummy_frame_context_saver_drop)
3057 (dummy_frame_context_saver_cleanup)
3058 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3059 Delete.
3060 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3061 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3062 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3063
cfc31633
PA
30642015-09-09 Pedro Alves <palves@redhat.com>
3065
3066 * breakpoint.c: Include "thread-fsm.h".
3067 (struct until_break_command_continuation_args): Delete.
3068 (struct until_break_fsm): New.
3069 (until_break_fsm_ops): New global.
3070 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3071 (until_break_command_continuation): Delete.
3072 (until_break_fsm_clean_up): New function.
3073 (until_break_fsm_async_reply_reason): New function.
3074 (until_break_command): Adjust to create an until_break_fsm instead
3075 of a continuation.
3076 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3077 here.
3078 * infcmd.c (struct until_next_fsm): New.
3079 (until_next_fsm_ops): New global.
3080 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3081 (until_next_continuation): Delete.
3082 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3083 functions.
3084 (until_next_command): Adjust to create a new until_next_fsm
3085 instead of a continuation.
3086
388a7084
PA
30872015-09-09 Pedro Alves <palves@redhat.com>
3088
3089 * infcall.c: Include thread_fsm.h.
3090 (struct call_return_meta_info): New.
3091 (get_call_return_value): New function, factored out from
3092 call_function_by_hand_dummy.
3093 (struct call_thread_fsm): New.
3094 (call_thread_fsm_ops): New global.
3095 (new_call_thread_fsm, call_thread_fsm_should_stop)
3096 (call_thread_fsm_should_notify_stop): New functions.
3097 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3098 the thread.
3099 (call_function_by_hand_dummy): Create a new call_thread_fsm
3100 instance, associate it with the thread, and wait for the FSM to
3101 finish. If finished successfully, fetch the function's result
3102 value out of the FSM.
3103 * infrun.c (fetch_inferior_event): If the FSM says the stop
3104 shouldn't be notified, don't call normal_stop.
3105 (maybe_remove_breakpoints): New function, factored out from ...
3106 (normal_stop): ... here. Simplify.
3107 * infrun.h (maybe_remove_breakpoints): Declare.
3108 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3109 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3110 (thread_fsm_should_notify_stop): Declare.
3111
243a9253
PA
31122015-09-09 Pedro Alves <palves@redhat.com>
3113
3114 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3115 * breakpoint.c (handle_jit_event): Print debug output.
3116 (bpstat_what): Split event callback handling to ...
3117 (bpstat_run_callbacks): ... this new function.
3118 (momentary_bkpt_print_it): No longer handle bp_finish here.
3119 * breakpoint.h (bpstat_run_callbacks): Declare.
3120 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3121 <thread_fsm>: New field.
3122 (thread_cancel_execution_command): Declare.
3123 * infcmd.c: Include thread-fsm.h.
3124 (struct step_command_fsm): New.
3125 (step_command_fsm_ops): New global.
3126 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3127 (step_1): Adjust to use step_command_fsm_prepare and
3128 prepare_one_step.
3129 (struct step_1_continuation_args): Delete.
3130 (step_1_continuation): Delete.
3131 (step_command_fsm_should_stop): New function.
3132 (step_once): Delete.
3133 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3134 (prepare_one_step): New function, based on step_once.
3135 (until_next_command): Remove step_multi reference.
3136 (struct return_value_info): New.
3137 (print_return_value): Rename to ...
3138 (print_return_value_1): ... this. New struct return_value_info
3139 parameter. Adjust.
3140 (print_return_value): Reimplement as wrapper around
3141 print_return_value_1.
3142 (struct finish_command_fsm): New.
3143 (finish_command_continuation): Delete.
3144 (finish_command_fsm_ops): New global.
3145 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3146 functions.
3147 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3148 New.
3149 (finish_command_continuation_free_arg): Delete.
3150 (finish_command_fsm_async_reply_reason): New.
3151 (finish_backward, finish_forward): Change symbol parameter to a
3152 finish_command_fsm. Adjust.
3153 (finish_command): Create a finish_command_fsm. Adjust.
3154 * infrun.c: Include "thread-fsm.h".
3155 (clear_proceed_status_thread): Delete the thread's FSM.
3156 (infrun_thread_stop_requested_callback): Cancel the thread's
3157 execution command.
3158 (clean_up_just_stopped_threads_fsms): New function.
3159 (fetch_inferior_event): Handle the event_thread's should_stop
3160 method saying the command isn't done yet.
3161 (process_event_stop_test): Run breakpoint callbacks here.
3162 (print_stop_event): Rename to ...
3163 (print_stop_location): ... this.
3164 (restore_current_uiout_cleanup): New function.
3165 (print_stop_event): Reimplement.
3166 (normal_stop): No longer notify the end_stepping_range observers
3167 here handle "step N" nor "finish" here. No longer call
3168 print_stop_event here.
3169 * infrun.h (struct return_value_info): Forward declare.
3170 (print_return_value): Declare.
3171 (print_stop_event): Change prototype.
3172 * thread-fsm.c: New file.
3173 * thread-fsm.h: New file.
3174 * thread.c: Include "thread-fsm.h".
3175 (thread_cancel_execution_command): New function.
3176 (clear_thread_inferior_resources): Call it.
3177 * cli/cli-interp.c (cli_on_normal_stop): New function.
3178 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3179 observer.
3180 * mi/mi-interp.c: Include "thread-fsm.h".
3181 (restore_current_uiout_cleanup): Delete.
3182 (mi_on_normal_stop): If the thread has an FSM associated, and it
3183 finished, ask it for the async-reply-reason to print. Always call
3184 print_stop_event here, regardless of the top-level interpreter.
3185 Check bpstat_what to tell whether an asynchronous breakpoint hit
3186 triggered.
3187 * tui/tui-interp.c (tui_on_normal_stop): New function.
3188 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3189
0b333c5e
PA
31902015-09-09 Pedro Alves <palves@redhat.com>
3191
3192 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3193 check whether the target can async.
3194 * inf-loop.c (inferior_event_handler): Only call target_async if
3195 the target can async.
3196 * infcall.c: Include top.h and interps.h.
3197 (run_inferior_call): For the interpreter to sync mode while
3198 running the infcall. Call wait_sync_command_done instead of
3199 wait_for_inferior plus normal_stop.
3200 * infcmd.c (prepare_execution_command): Don't check whether the
3201 target can async when running in the foreground.
3202 (step_1): Delete synchronous case handling.
3203 (step_once): Always install a continuation, even in sync mode.
3204 (until_next_command, finish_forward): Don't check whether the
3205 target can async.
3206 (attach_command_post_wait, notice_new_inferior): Always install a
3207 continuation, even in sync mode.
3208 * infrun.c (mark_infrun_async_event_handler): New function.
3209 (proceed): In sync mode, mark infrun's event source instead of
3210 waiting for events here.
3211 (fetch_inferior_event): If the target can't async, do a blocking
3212 wait.
3213 (prepare_to_wait): In sync mode, mark infrun's event source.
3214 (infrun_async_inferior_event_handler): No longer bail out if the
3215 target can't async.
3216 * infrun.h (mark_infrun_async_event_handler): New declaration.
3217 * linux-nat.c (linux_nat_wait_1): Remove calls to
3218 set_sigint_trap/clear_sigint_trap.
3219 (linux_nat_terminal_inferior): No longer check whether the target
3220 can async.
3221 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3222 comment.
3223 (mi_execute_command_input_handler): No longer check whether the
3224 target is async. Update and simplify comment.
3225 * target.c (default_target_wait): New function.
3226 * target.h (struct target_ops) <to_wait>: Now defaults to
3227 default_target_wait.
3228 (default_target_wait): Declare.
3229 * top.c (wait_sync_command_done): New function, factored out from
3230 ...
3231 (maybe_wait_sync_command_done): ... this.
3232 * top.h (wait_sync_command_done): Declare.
3233 * target-delegates.c: Regenerate.
3234
0568462b
MM
32352015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3236
3237 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3238 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3239 Remove include of sys/utsname.h.
3240 (linux_determine_kernel_ptr_bits): Remove.
3241 (linux_determine_kernel_start): New.
3242 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3243 Update check.
3244 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3245 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3246 initialization.
3247 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3248 assignment.
3249
72e02483
PA
32502015-09-07 Pedro Alves <palves@redhat.com>
3251
3252 * guile/guile-internal.h (as_a_scm_t_subr): New.
3253 * guile/guile.c (misc_guile_functions): Use it.
3254 * guile/scm-arch.c (arch_functions): Use it.
3255 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3256 Use it.
3257 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3258 * guile/scm-cmd.c (command_functions): Use it.
3259 * guile/scm-disasm.c (disasm_functions): Use it.
3260 * guile/scm-exception.c (exception_functions)
3261 (private_exception_functions): Use it.
3262 * guile/scm-frame.c (frame_functions)
3263 * guile/scm-gsmob.c (gsmob_functions): Use it.
3264 * guile/scm-iterator.c (iterator_functions): Use it.
3265 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3266 * guile/scm-math.c (math_functions): Use it.
3267 * guile/scm-objfile.c (objfile_functions): Use it.
3268 * guile/scm-param.c (parameter_functions): Use it.
3269 * guile/scm-ports.c (port_functions, private_port_functions): Use
3270 it.
3271 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3272 * guile/scm-progspace.c (pspace_functions): Use it.
3273 * guile/scm-string.c (string_functions): Use it.
3274 * guile/scm-symbol.c (symbol_functions): Use it.
3275 * guile/scm-symtab.c (symtab_functions): Use it.
3276 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3277 it.
3278 * guile/scm-value.c (value_functions): Use it.
3279
e65b5245
AB
32802015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3283 (tui_next_win): Likewise.
3284 (tui_prev_win): Likewise.
3285 (tui_partial_win_by_name): Likewise.
3286 (tui_init_generic_part): Likewise.
3287 (init_content_element): Likewise.
3288 (tui_del_window): Likewise.
3289 (tui_free_window): Likewise.
3290 (tui_del_data_windows): Likewise.
3291 (tui_free_data_content): Likewise.
3292 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3293 * tui/tui-regs.c (tui_show_register_group): Likewise.
3294 * tui/tui-win.c (tui_resize_all): Likewise.
3295 (tui_set_focus): Likewise.
3296 (tui_set_win_height): Likewise.
3297 (make_invisible_and_set_new_height): Likewise.
3298 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3299 * tui/tui-wingeneral.c (make_visible): Likewise.
3300
b03e6ad9
AB
33012015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3304
be903358
AB
33052015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3308 pointer.
3309 * dbxread.c (dbx_end_psymtab): Likewise.
3310 * gnu-nat.c (gnu_write_inferior): Likewise.
3311 * mdebugread.c (cross_ref): Likewise.
3312 * p-valprint.c (pascal_val_print): Likewise.
3313 * xcoffread.c (xcoff_end_psymtab): Likewise.
3314
02f024f9
YQ
33152015-09-04 Yao Qi <yao.qi@linaro.org>
3316
3317 * NEWS: Mention the aarch64 multi-arch debugging support.
3318
cd7c1778
PMR
33192015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3320
3321 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3322 type instead of a TYPE_CODE_INT one for the string_char_type
3323 and the ada_primitive_type_char types.
3324
39edd165
YQ
33252015-09-03 Yao Qi <yao.qi@linaro.org>
3326
3327 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3328 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3329 aarch64_linux_region_ok_for_watchpoint.
3330 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3331 New function.
3332 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3333 Declare it.
3334
6c214e7c
PP
33352015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3336
3337 * gdb_obstack.h (obstack_strdup): Declare.
3338 * gdb_obstack.c (obstack_strdup): Define.
3339 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3340 * gdbarch.c: Regenerate.
3341 * gdbarch.h: Regenerate.
3342 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3343
eed8b28a
PP
33442015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3345
3346 * gdbtypes.c (copy_type_recursive): Update documentation.
3347
73c6b475
SDJ
33482015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3349
3350 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3351 as zero.
3352
ad1c917a
SDJ
33532015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3354
3355 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3356
3bd7e5b7
SDJ
33572015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3358
3359 * solib-svr4.c (solib_event_probe_action): Call
3360 get_probe_argument_count using TRY...CATCH.
3361 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3362
f469e8ce
SDJ
33632015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3364
3365 * probe.h (struct probe_ops) <get_probe_argument_count,
3366 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3367 the comment that the function can throw an exception.
3368 (get_probe_argument_count): Likewise.
3369 (evaluate_probe_argument): Likewise.
3370 * stap-probe.c (stap_get_opcode): Call error instead of
3371 internal_error.
3372 (stap_get_expected_argument_type): Likewise. Add argument
3373 'probe'. Improve error message by mentioning the probe's name.
3374 (stap_parse_probe_arguments): Adjust call to
3375 stap_get_expected_argument_type.
3376 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3377 not zero. Call internal_error if GDB requests an argument but the
3378 probe has no arguments.
3379
dc5c8746
PMR
33802015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3381
3382 * ada-lang.c (ada_resolve_function): Do not ask the user what
3383 match to use when in completion mode.
3384
136765ea
AB
33852015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3388 cast of NULL.
3389
90b81c5f
MF
33902015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3391
3392 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3393 call_abi using XSHAL_ABI macro.
3394
1cd36e54
DE
33952015-08-29 Doug Evans <xdje42@gmail.com>
3396
3397 * symtab.h (struct symbol): Tweak comment.
3398
8f57eec2
PP
33992015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3400
3401 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3402 gdbarch obstack instead of on the heap. Update commentary
3403 accordingly.
3404
38eebd71
JB
34052015-08-28 Joel Brobecker <brobecker@adacore.com>
3406
3407 GDB 7.10 released.
3408
d63dd61e
SM
34092015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3410
3411 * NEWS: Update entry about non-8-bits addressable memory.
3412
6f059256
UW
34132015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3414
3415 Revert:
3416 2014-11-06 Doug Evans <xdje42@gmail.com>
3417 * solib.c (solib_global_lookup): Fetch arch from objfile,
3418 not target_gdbarch.
3419
70987a92 34202015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3421
3422 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3423 attempt to relocate a TLS variable offset.
3424
70987a92 34252015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3426
3427 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3428 registered yet. Set inferior_ptid while calling target_read_memory.
3429
70987a92 34302015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3431
3432 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3433 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3434 * linux-nat.c (check_stopped_by_breakpoint): Use
3435 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3436
70987a92 34372015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3438
3439 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3440 thread was not yet discovered, use thread_from_lwp instead of
3441 calling thread_db_find_new_threads_1.
3442
f5cdf498
SM
34432015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3444
3445 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3446 statements.
3447
fd2ae5d6
SM
34482015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3449
3450 * NEWS: Document support for non-8-bits addressable memory.
3451
14d88147
PA
34522015-08-27 Pedro Alves <palves@redhat.com>
3453
3454 * configure.ac: Remove AC_TYPE_SIGNAL call.
3455 * configure, config.in: Regenerate.
3456
a40805d4
PA
34572015-08-27 Pedro Alves <palves@redhat.com>
3458
3459 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3460 * extension-priv.h: Include signal.h.
3461 (struct signal_handler) <handler>: Change type to sighandler_t.
3462 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3463 * inflow.c (sigint_ours, sigquit_ours): Change type to
3464 sighandler_t.
3465 (child_terminal_inferior): Remove casts.
3466 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3467 (osig): Change type to sighandler_t.
3468 * nto-procfs.c (ofunc): Change type to sighandler_t.
3469 (procfs_wait): Remove casts.
3470 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3471 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3472 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3473
0750520d
PA
34742015-08-27 Pedro Alves <palves@redhat.com>
3475
3476 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3477 * gnulib/aclocal.m4: Renegerate.
3478 * gnulib/config.in: Renegerate.
3479 * gnulib/configure: Renegerate.
3480 * gnulib/import/Makefile.am: Update.
3481 * gnulib/import/Makefile.in: Regenerate.
3482 * gnulib/import/m4/gnulib-cache.m4: Update.
3483 * gnulib/import/m4/gnulib-comp.m4: Update.
3484 * gnulib/import/m4/signal_h.m4: New file.
3485 * gnulib/import/signal.in.h: New file.
3486
a5c0808e
PA
34872015-08-27 Pedro Alves <palves@redhat.com>
3488
3489 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3490 (MIN_MEMORY_PACKET_SIZE): New.
3491 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3492 (get_memory_packet_size): Adjust. No longer limit the max packet
3493 size.
3494 (set_memory_packet_size): Adjust, and remove dead code.
3495 (remote_check_symbols): Use xmalloc and a cleanup instead of
3496 alloca.
3497 (remote_packet_size): No longer cap the packet size.
3498 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3499
cdaec3f3
LM
35002015-08-26 Luis Machado <lgustavo@codesourcery.com>
3501
3502 * compile/compile.c (compile_to_object): Mention language in
3503 error message.
3504
e9756d52
PP
35052015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3506
3507 * target.c (target_pre_inferior): Unset attach_flag.
3508
1dc7a623
SM
35092015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3510
3511 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3512 * gdbarch.c: Re-generate.
3513
8d749320
SM
35142015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3515
6711b7f8
SM
3516 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3517 function with the XNEW-family equivalent.
8d749320
SM
3518 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3519 * ada-exp.y (write_ambiguous_var): Likewise.
3520 * ada-lang.c (resolve_subexp): Likewise.
3521 (user_select_syms): Likewise.
3522 (assign_aggregate): Likewise.
3523 (ada_evaluate_subexp): Likewise.
3524 (cache_symbol): Likewise.
3525 * addrmap.c (allocate_key): Likewise.
3526 (addrmap_create_mutable): Likewise.
3527 * aix-thread.c (sync_threadlists): Likewise.
3528 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3529 (alpha_gdbarch_init): Likewise.
3530 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3531 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3532 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3533 * arm-tdep.c (push_stack_item): Likewise.
3534 (arm_displaced_step_copy_insn): Likewise.
3535 (arm_gdbarch_init): Likewise.
3536 (_initialize_arm_tdep): Likewise.
3537 * avr-tdep.c (push_stack_item): Likewise.
3538 * ax-general.c (new_agent_expr): Likewise.
3539 * block.c (block_initialize_namespace): Likewise.
3540 * breakpoint.c (alloc_counted_command_line): Likewise.
3541 (update_dprintf_command_list): Likewise.
3542 (parse_breakpoint_sals): Likewise.
3543 (decode_static_tracepoint_spec): Likewise.
3544 (until_break_command): Likewise.
3545 (clear_command): Likewise.
3546 (update_global_location_list): Likewise.
3547 (get_breakpoint_objfile_data) Likewise.
3548 * btrace.c (ftrace_new_function): Likewise.
3549 (btrace_set_insn_history): Likewise.
3550 (btrace_set_call_history): Likewise.
3551 * buildsym.c (add_symbol_to_list): Likewise.
3552 (record_pending_block): Likewise.
3553 (start_subfile): Likewise.
3554 (start_buildsym_compunit): Likewise.
3555 (push_subfile): Likewise.
3556 (end_symtab_get_static_block): Likewise.
3557 (buildsym_init): Likewise.
3558 * cli/cli-cmds.c (source_command): Likewise.
3559 * cli/cli-decode.c (add_cmd): Likewise.
3560 * cli/cli-script.c (build_command_line): Likewise.
3561 (setup_user_args): Likewise.
3562 (realloc_body_list): Likewise.
3563 (process_next_line): Likewise.
3564 (copy_command_lines): Likewise.
3565 * cli/cli-setshow.c (do_set_command): Likewise.
3566 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3567 * coffread.c (coff_locate_sections): Likewise.
3568 (coff_symtab_read): Likewise.
3569 (coff_read_struct_type): Likewise.
3570 * common/cleanups.c (make_my_cleanup2): Likewise.
3571 * common/common-exceptions.c (throw_it): Likewise.
3572 * common/filestuff.c (make_cleanup_close): Likewise.
3573 * common/format.c (parse_format_string): Likewise.
3574 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3575 * compile/compile-object-load.c (munmap_list_add): Likewise.
3576 (compile_object_load): Likewise.
3577 * compile/compile-object-run.c (compile_object_run): Likewise.
3578 * compile/compile.c (append_args): Likewise.
3579 * corefile.c (specify_exec_file_hook): Likewise.
3580 * cp-support.c (make_symbol_overload_list): Likewise.
3581 * cris-tdep.c (push_stack_item): Likewise.
3582 (cris_gdbarch_init): Likewise.
3583 * ctf.c (ctf_trace_file_writer_new): Likewise.
3584 * dbxread.c (init_header_files): Likewise.
3585 (add_new_header_file): Likewise.
3586 (init_bincl_list): Likewise.
3587 (dbx_end_psymtab): Likewise.
3588 (start_psymtab): Likewise.
3589 (dbx_end_psymtab): Likewise.
3590 * dcache.c (dcache_init): Likewise.
3591 * dictionary.c (dict_create_hashed): Likewise.
3592 (dict_create_hashed_expandable): Likewise.
3593 (dict_create_linear): Likewise.
3594 (dict_create_linear_expandable): Likewise.
3595 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3596 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3597 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3598 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3599 (decode_frame_entry_1): Likewise.
3600 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3601 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3602 * dwarf2read.c (dwarf2_has_info): Likewise.
3603 (create_signatured_type_table_from_index): Likewise.
3604 (dwarf2_read_index): Likewise.
3605 (dw2_get_file_names_reader): Likewise.
3606 (create_all_type_units): Likewise.
3607 (read_cutu_die_from_dwo): Likewise.
3608 (init_tu_and_read_dwo_dies): Likewise.
3609 (init_cutu_and_read_dies): Likewise.
3610 (create_all_comp_units): Likewise.
3611 (queue_comp_unit): Likewise.
3612 (inherit_abstract_dies): Likewise.
3613 (read_call_site_scope): Likewise.
3614 (dwarf2_add_field): Likewise.
3615 (dwarf2_add_typedef): Likewise.
3616 (dwarf2_add_member_fn): Likewise.
3617 (attr_to_dynamic_prop): Likewise.
3618 (abbrev_table_alloc_abbrev): Likewise.
3619 (abbrev_table_read_table): Likewise.
3620 (add_include_dir): Likewise.
3621 (add_file_name): Likewise.
3622 (dwarf_decode_line_header): Likewise.
3623 (dwarf2_const_value_attr): Likewise.
3624 (dwarf_alloc_block): Likewise.
3625 (parse_macro_definition): Likewise.
3626 (set_die_type): Likewise.
3627 (write_psymtabs_to_index): Likewise.
3628 (create_cus_from_index): Likewise.
3629 (dwarf2_create_include_psymtab): Likewise.
3630 (process_psymtab_comp_unit_reader): Likewise.
3631 (build_type_psymtab_dependencies): Likewise.
3632 (read_comp_units_from_section): Likewise.
3633 (compute_compunit_symtab_includes): Likewise.
3634 (create_dwo_unit_in_dwp_v1): Likewise.
3635 (create_dwo_unit_in_dwp_v2): Likewise.
3636 (read_func_scope): Likewise.
3637 (process_structure_scope): Likewise.
3638 (mark_common_block_symbol_computed): Likewise.
3639 (load_partial_dies): Likewise.
3640 (dwarf2_symbol_mark_computed): Likewise.
3641 * elfread.c (elf_symfile_segments): Likewise.
3642 (elf_read_minimal_symbols): Likewise.
3643 * environ.c (make_environ): Likewise.
3644 * eval.c (evaluate_subexp_standard): Likewise.
3645 * event-loop.c (create_file_handler): Likewise.
3646 (create_async_signal_handler): Likewise.
3647 (create_async_event_handler): Likewise.
3648 (create_timer): Likewise.
3649 * exec.c (build_section_table): Likewise.
3650 * fbsd-nat.c (fbsd_remember_child): Likewise.
3651 * fork-child.c (fork_inferior): Likewise.
3652 * frv-tdep.c (new_variant): Likewise.
3653 * gdbarch.sh (gdbarch_alloc): Likewise.
3654 (append_name): Likewise.
3655 * gdbtypes.c (rank_function): Likewise.
3656 (copy_type_recursive): Likewise.
3657 (add_dyn_prop): Likewise.
3658 * gnu-nat.c (make_proc): Likewise.
3659 (make_inf): Likewise.
3660 (gnu_write_inferior): Likewise.
3661 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3662 (build_std_type_info_type): Likewise.
3663 * guile/scm-param.c (compute_enum_list): Likewise.
3664 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3665 * guile/scm-value.c (gdbscm_value_call): Likewise.
3666 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3667 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3668 (read_unwind_info): Likewise.
3669 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3670 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3671 (call_function_by_hand_dummy): Likewise.
3672 * infcmd.c (step_once): Likewise.
3673 (finish_forward): Likewise.
3674 (attach_command): Likewise.
3675 (notice_new_inferior): Likewise.
3676 * inferior.c (add_inferior_silent): Likewise.
3677 * infrun.c (add_displaced_stepping_state): Likewise.
3678 (save_infcall_control_state): Likewise.
3679 (save_inferior_ptid): Likewise.
3680 (_initialize_infrun): Likewise.
3681 * jit.c (bfd_open_from_target_memory): Likewise.
3682 (jit_gdbarch_data_init): Likewise.
3683 * language.c (add_language): Likewise.
3684 * linespec.c (decode_line_2): Likewise.
3685 * linux-nat.c (add_to_pid_list): Likewise.
3686 (add_initial_lwp): Likewise.
3687 * linux-thread-db.c (add_thread_db_info): Likewise.
3688 (record_thread): Likewise.
3689 (info_auto_load_libthread_db): Likewise.
3690 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3692 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3693 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3694 * macrocmd.c (macro_define_command): Likewise.
3695 * macroexp.c (gather_arguments): Likewise.
3696 * macroscope.c (sal_macro_scope): Likewise.
3697 * macrotab.c (new_macro_table): Likewise.
3698 * mdebugread.c (push_parse_stack): Likewise.
3699 (parse_partial_symbols): Likewise.
3700 (parse_symbol): Likewise.
3701 (psymtab_to_symtab_1): Likewise.
3702 (new_block): Likewise.
3703 (new_psymtab): Likewise.
3704 (mdebug_build_psymtabs): Likewise.
3705 (add_pending): Likewise.
3706 (elfmdebug_build_psymtabs): Likewise.
3707 * mep-tdep.c (mep_gdbarch_init): Likewise.
3708 * mi/mi-main.c (mi_execute_command): Likewise.
3709 * mi/mi-parse.c (mi_parse_argv): Likewise.
3710 * minidebug.c (lzma_open): Likewise.
3711 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3712 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3713 * mips-tdep.c (mips_gdbarch_init): Likewise.
3714 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3715 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3716 * mt-tdep.c (mt_registers_info): Likewise.
3717 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3718 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3719 (linux_enable_pt): Likewise.
3720 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3721 (linux_xfer_osdata_processgroups): Likewise.
3722 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3723 * nto-procfs.c (procfs_meminfo): Likewise.
3724 * objc-lang.c (start_msglist): Likewise.
3725 (selectors_info): Likewise.
3726 (classes_info): Likewise.
3727 (find_methods): Likewise.
3728 * objfiles.c (allocate_objfile): Likewise.
3729 (update_section_map): Likewise.
3730 * osabi.c (gdbarch_register_osabi): Likewise.
3731 (gdbarch_register_osabi_sniffer): Likewise.
3732 * parse.c (start_arglist): Likewise.
3733 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3734 (hwdebug_insert_point): Likewise.
3735 * printcmd.c (display_command): Likewise.
3736 (ui_printf): Likewise.
3737 * procfs.c (create_procinfo): Likewise.
3738 (load_syscalls): Likewise.
3739 (proc_get_LDT_entry): Likewise.
3740 (proc_update_threads): Likewise.
3741 * prologue-value.c (make_pv_area): Likewise.
3742 (pv_area_store): Likewise.
3743 * psymtab.c (extend_psymbol_list): Likewise.
3744 (init_psymbol_list): Likewise.
3745 (allocate_psymtab): Likewise.
3746 * python/py-inferior.c (add_thread_object): Likewise.
3747 * python/py-param.c (compute_enum_values): Likewise.
3748 * python/py-value.c (valpy_call): Likewise.
3749 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3750 * python/python.c (ensure_python_env): Likewise.
3751 * record-btrace.c (record_btrace_start_replaying): Likewise.
3752 * record-full.c (record_full_reg_alloc): Likewise.
3753 (record_full_mem_alloc): Likewise.
3754 (record_full_end_alloc): Likewise.
3755 (record_full_core_xfer_partial): Likewise.
3756 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3757 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3758 * remote-notif.c (remote_notif_state_allocate): Likewise.
3759 * remote.c (demand_private_info): Likewise.
3760 (remote_notif_stop_alloc_reply): Likewise.
3761 (remote_enable_btrace): Likewise.
3762 * reverse.c (save_bookmark_command): Likewise.
3763 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3764 * rx-tdep.c (rx_gdbarch_init): Likewise.
3765 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3766 * ser-go32.c (dos_get_tty_state): Likewise.
3767 (dos_copy_tty_state): Likewise.
3768 * ser-mingw.c (ser_windows_open): Likewise.
3769 (ser_console_wait_handle): Likewise.
3770 (ser_console_get_tty_state): Likewise.
3771 (make_pipe_state): Likewise.
3772 (net_windows_open): Likewise.
3773 * ser-unix.c (hardwire_get_tty_state): Likewise.
3774 (hardwire_copy_tty_state): Likewise.
3775 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3776 * solib-dsbt.c (dsbt_current_sos): Likewise.
3777 (dsbt_relocate_main_executable): Likewise.
3778 * solib-frv.c (frv_current_sos): Likewise.
3779 (frv_relocate_main_executable): Likewise.
3780 * solib-spu.c (spu_bfd_fopen): Likewise.
3781 * solib-svr4.c (lm_info_read): Likewise.
3782 (svr4_copy_library_list): Likewise.
3783 (svr4_default_sos): Likewise.
3784 * source.c (find_source_lines): Likewise.
3785 (line_info): Likewise.
3786 (add_substitute_path_rule): Likewise.
3787 * spu-linux-nat.c (spu_bfd_open): Likewise.
3788 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3789 * stabsread.c (dbx_lookup_type): Likewise.
3790 (read_type): Likewise.
3791 (read_member_functions): Likewise.
3792 (read_struct_fields): Likewise.
3793 (read_baseclasses): Likewise.
3794 (read_args): Likewise.
3795 (_initialize_stabsread): Likewise.
3796 * stack.c (func_command): Likewise.
3797 * stap-probe.c (handle_stap_probe): Likewise.
3798 * symfile.c (addrs_section_sort): Likewise.
3799 (addr_info_make_relative): Likewise.
3800 (load_section_callback): Likewise.
3801 (add_symbol_file_command): Likewise.
3802 (init_filename_language_table): Likewise.
3803 * symtab.c (create_filename_seen_cache): Likewise.
3804 (sort_search_symbols_remove_dups): Likewise.
3805 (search_symbols): Likewise.
3806 * target.c (make_cleanup_restore_target_terminal): Likewise.
3807 * thread.c (new_thread): Likewise.
3808 (enable_thread_stack_temporaries): Likewise.
3809 (make_cleanup_restore_current_thread): Likewise.
3810 (thread_apply_all_command): Likewise.
3811 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3812 * top.c (gdb_readline_wrapper): Likewise.
3813 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3814 * tracepoint.c (trace_find_line_command): Likewise.
3815 (all_tracepoint_actions_and_cleanup): Likewise.
3816 (make_cleanup_restore_current_traceframe): Likewise.
3817 (get_uploaded_tp): Likewise.
3818 (get_uploaded_tsv): Likewise.
3819 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3820 (tui_alloc_win_info): Likewise.
3821 (tui_alloc_content): Likewise.
3822 (tui_add_content_elements): Likewise.
3823 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3824 (tui_set_disassem_content): Likewise.
3825 * ui-file.c (ui_file_new): Likewise.
3826 (stdio_file_new): Likewise.
3827 (tee_file_new): Likewise.
3828 * utils.c (make_cleanup_restore_integer): Likewise.
3829 (add_internal_problem_command): Likewise.
3830 * v850-tdep.c (v850_gdbarch_init): Likewise.
3831 * valops.c (find_oload_champ): Likewise.
3832 * value.c (allocate_value_lazy): Likewise.
3833 (record_latest_value): Likewise.
3834 (create_internalvar): Likewise.
3835 * varobj.c (install_variable): Likewise.
3836 (new_variable): Likewise.
3837 (new_root_variable): Likewise.
3838 (cppush): Likewise.
3839 (_initialize_varobj): Likewise.
3840 * windows-nat.c (windows_make_so): Likewise.
3841 * x86-nat.c (x86_add_process): Likewise.
3842 * xcoffread.c (arrange_linetable): Likewise.
3843 (allocate_include_entry): Likewise.
3844 (process_linenos): Likewise.
3845 (SYMBOL_DUP): Likewise.
3846 (xcoff_start_psymtab): Likewise.
3847 (xcoff_end_psymtab): Likewise.
3848 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3849 * xtensa-tdep.c (xtensa_register_type): Likewise.
3850 * gdbarch.c: Regenerate.
3851 * gdbarch.h: Regenerate.
3852
17d8546e
DB
38532015-08-25 Don Breazeal <donb@codesourcery.com>
3854
3855 * infrun.c (follow_exec): Re-order operations for
3856 handling follow-exec-mode "new".
3857 (handle_inferior_event_1): Assign ecs->event_thread
3858 to the current thread.
3859 * remote.c (get_remote_arch_state): Add an assertion.
3860
ba49e44b
PA
38612015-08-26 Pedro Alves <palves@redhat.com>
3862
3863 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3864
7541ab03 38652015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3866
7541ab03 3867 PR gdb/18804
abc56d60
PA
3868 * defs.h (maybe_quit): Declare.
3869 (QUIT): Now calls maybe_quit.
3870 * event-loop.c (clear_async_signal_handler)
3871 (async_signal_handler_is_marked): New functions.
3872 * event-loop.h (async_signal_handler_is_marked)
3873 (clear_async_signal_handler): New declarations.
3874 * remote.c (remote_check_pending_interrupt): New function.
3875 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3876 longer check whether the target is async. If waiting for a stop
3877 reply, and a Ctrl-C as been sent to the target, offer to
3878 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3879 Otherwise do not disconnect and throw a quit.
3880 (_initialize_remote): Install remote_check_pending_interrupt as
3881 to_check_pending_interrupt.
3882 * target.c (target_check_pending_interrupt): New function.
3883 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3884 field.
3885 (target_check_pending_interrupt): New declaration.
3886 * utils.c (maybe_quit): New function.
3887 * target-delegates.c: Regenerate.
3888
dfe7f77c
YQ
38892015-08-25 Yao Qi <yao.qi@linaro.org>
3890
3891 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3892 Rename local variable pid to tid, and get lwpid of lwp. Update
3893 debug output.
3894
63e43d3a
PMR
38952015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3896
3897 * ada-lang.c (ada_read_var_value): Add a var_block argument
3898 and pass it to default_read_var_value.
3899 * block.c (block_static_link): New accessor.
3900 * block.h (block_static_link): Declare it.
3901 * buildsym.c (finish_block_internal): Add a static_link
3902 argument. If there is a static link, associate it to the new
3903 block.
3904 (finish_block): Add a static link argument and pass it to
3905 finish_block_internal.
3906 (end_symtab_get_static_block): Update calls to finish_block and
3907 to finish_block_internal.
3908 (end_symtab_with_blockvector): Update call to
3909 finish_block_internal.
3910 * buildsym.h: Forward-declare struct dynamic_prop.
3911 (struct context_stack): Add a static_link field.
3912 (finish_block): Add a static link argument.
3913 * c-exp.y: Remove an obsolete comment (evaluation of variables
3914 already start from the selected frame, and now they climb *up*
3915 the call stack) and propagate the block information to the
3916 produced expression.
3917 * d-exp.y: Likewise.
3918 * f-exp.y: Likewise.
3919 * go-exp.y: Likewise.
3920 * jv-exp.y: Likewise.
3921 * m2-exp.y: Likewise.
3922 * p-exp.y: Likewise.
3923 * coffread.c (coff_symtab_read): Update calls to finish_block.
3924 * dbxread.c (process_one_symbol): Likewise.
3925 * xcoffread.c (read_xcoff_symtab): Likewise.
3926 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3927 "sym" parameter to struct block_symbol, update its uses and pass
3928 its block to calls to read_var_value.
3929 (convert_symbol_sym): Update the calls to convert_one_symbol.
3930 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3931 call to read_var_value.
3932 * dwarf2loc.c (block_op_get_frame_base): New.
3933 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3934 get_frame_base method.
3935 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3936 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3937 instead of the selected frame in order to evaluate the
3938 expression.
3939 (dwarf2_evaluate_property): Add a frame argument. Update call
3940 to dwarf2_locexpr_baton_eval to provide a frame in available and
3941 to handle the absence of address stack.
3942 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3943 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3944 declaration.
3945 (read_func_scope): Record any available static link description.
3946 Update call to finish_block.
3947 (read_lexical_block_scope): Update call to finish_block.
3948 * findvar.c (follow_static_link): New.
3949 (get_hosting_frame): New.
3950 (default_read_var_value): Add a var_block argument. Use
3951 get_hosting_frame to handle non-local references.
3952 (read_var_value): Add a var_block argument and pass it to the
3953 LA_READ_VAR_VALUE method.
3954 * gdbtypes.c (resolve_dynamic_range): Update calls to
3955 dwarf2_evaluate_property.
3956 (resolve_dynamic_type_internal): Likewise.
3957 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3958 read_var_value, passing it the block coming from symbol lookup.
3959 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3960 read_var_value (TODO).
3961 * infcmd.c (finish_command_continuation): Update call to
3962 read_var_value, passing it the block coming from symbol lookup.
3963 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3964 * language.h (struct language_defn): Add a var_block argument to
3965 the LA_READ_VAR_VALUE method.
3966 * objfiles.c (struct static_link_htab_entry): New.
3967 (static_link_htab_entry_hash): New.
3968 (static_link_htab_entry_eq): New.
3969 (objfile_register_static_link): New.
3970 (objfile_lookup_static_link): New.
3971 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3972 * objfiles.h: Include hashtab.h.
3973 (struct objfile): Add a static_links field.
3974 (objfile_register_static_link): New.
3975 (objfile_lookup_static_link): New.
3976 * printcmd.c (print_variable_and_value): Update call to
3977 read_var_value.
3978 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3979 * python/py-frame.c (frapy_read_var): Update call to
3980 read_var_value, passing it the block coming from symbol lookup.
3981 * python/py-framefilter.c (extract_sym): Add a sym_block
3982 parameter and set the pointed value to NULL (TODO).
3983 (enumerate_args): Update call to extract_sym.
3984 (enumerate_locals): Update calls to extract_sym and to
3985 read_var_value.
3986 * python/py-symbol.c (sympy_value): Update call to
3987 read_var_value (TODO).
3988 * stack.c (read_frame_local): Update call to read_var_value.
3989 (read_frame_arg): Likewise.
3990 (return_command): Likewise.
3991 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3992 method.
3993 (struct symbol): Add a block field.
3994 (SYMBOL_BLOCK): New accessor.
3995 * valops.c (value_of_variable): Remove frame/block handling and
3996 pass the block argument to read_var_value, which does this job
3997 now.
3998 (value_struct_elt_for_reference): Update calls to
3999 read_var_value.
4000 (value_of_this): Pass the block found to read_var_value.
4001 * value.h (read_var_value): Add a var_block argument.
4002 (default_read_var_value): Likewise.
4003
ed8b7b42
YQ
40042015-08-25 Yao Qi <yao.qi@linaro.org>
4005
4006 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4007 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4008 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4009
db3cb7cb
YQ
40102015-08-25 Yao Qi <yao.qi@linaro.org>
4011
4012 * Makefile.in (aarch64-liunx.o): New rule.
4013 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4014 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4015 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4016 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4017 extern.
4018 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4019 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4020 * nat/aarch64-linux.c: New file.
4021 * nat/aarch64-linux.h: New file.
4022
f6011a1c
YQ
40232015-08-25 Yao Qi <yao.qi@linaro.org>
4024
4025 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4026 lwp_arch_private_info and ptid_of_lwp.
4027
5e35436e
YQ
40282015-08-25 Yao Qi <yao.qi@linaro.org>
4029
4030 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4031 Move it to nat/aarch64-linux-hw-point.c.
4032 (debug_reg_change_callback): Likewise.
4033 (aarch64_notify_debug_reg_change): :Likewise.
4034 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4035 (aarch64_dr_update_callback_param): New.
4036 (debug_reg_change_callback): New function.
4037 (aarch64_notify_debug_reg_change): Likewise.
4038 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4039 Remove the declaration.
4040
4a8a7965
YQ
40412015-08-25 Yao Qi <yao.qi@linaro.org>
4042
4043 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4044 Call current_lwp_ptid.
4045
32a271ee
YQ
40462015-08-25 Yao Qi <yao.qi@linaro.org>
4047
4048 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4049 debug_printf.
4050
5e137137
YQ
40512015-08-25 Yao Qi <yao.qi@linaro.org>
4052
4053 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4054 ptid_get_pid rather than ptid_get_lwp.
4055
73b8c1fd
PA
40562015-08-24 Pedro Alves <palves@redhat.com>
4057
4058 * NEWS (New commands): Mention set/show remote
4059 multiprocess-extensions-packet.
4060 * remote.c (remote_query_supported): Only tell the server to use
4061 the multiprocess extensions if the user hasn't force-disabled them
4062 with "set remote multiprocess-extensions-packet off".
4063
4a626d0a
PA
40642015-08-24 Pedro Alves <palves@redhat.com>
4065
4066 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4067 1029a8112290f6eee9d7878a391c49db42c999bd.
4068 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4069 Regenerate.
4070 * gnulib/import/Makefile.am: Update.
4071 * gnulib/import/Makefile.in: Update.
4072 * gnulib/import/alloca.in.h: Update.
4073 * gnulib/import/basename-lgpl.c: Update.
4074 * gnulib/import/canonicalize-lgpl.c: Update.
4075 * gnulib/import/config.charset: Update.
4076 * gnulib/import/dirent.in.h: Update.
4077 * gnulib/import/dirfd.c: Update.
4078 * gnulib/import/dirname-lgpl.c: Update.
4079 * gnulib/import/dirname.h: Update.
4080 * gnulib/import/dosname.h: Update.
4081 * gnulib/import/errno.in.h: Update.
4082 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4083 * gnulib/import/extra/snippet/c++defs.h: Update.
4084 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4085 * gnulib/import/extra/update-copyright: Update.
4086 * gnulib/import/float+.h: Update.
4087 * gnulib/import/float.c: Update.
4088 * gnulib/import/float.in.h: Update.
4089 * gnulib/import/fnmatch.c: Update.
4090 * gnulib/import/fnmatch.in.h: Update.
4091 * gnulib/import/fnmatch_loop.c: Update.
4092 * gnulib/import/fpucw.h: Update.
4093 * gnulib/import/frexp.c: Update.
4094 * gnulib/import/frexpl.c: Update.
4095 * gnulib/import/gettimeofday.c: Update.
4096 * gnulib/import/inttypes.in.h: Update.
4097 * gnulib/import/isnan.c: Update.
4098 * gnulib/import/isnand-nolibm.h: Update.
4099 * gnulib/import/isnand.c: Update.
4100 * gnulib/import/isnanl-nolibm.h: Update.
4101 * gnulib/import/isnanl.c: Update.
4102 * gnulib/import/itold.c: Update.
4103 * gnulib/import/localcharset.c: Update.
4104 * gnulib/import/localcharset.h: Update.
4105 * gnulib/import/lstat.c: Update.
4106 * gnulib/import/m4/00gnulib.m4: Update.
4107 * gnulib/import/m4/absolute-header.m4: Update.
4108 * gnulib/import/m4/alloca.m4: Update.
4109 * gnulib/import/m4/canonicalize.m4: Update.
4110 * gnulib/import/m4/codeset.m4: Update.
4111 * gnulib/import/m4/configmake.m4: Update.
4112 * gnulib/import/m4/dirent_h.m4: Update.
4113 * gnulib/import/m4/dirfd.m4: Update.
4114 * gnulib/import/m4/dirname.m4: Update.
4115 * gnulib/import/m4/double-slash-root.m4: Update.
4116 * gnulib/import/m4/eealloc.m4: Update.
4117 * gnulib/import/m4/errno_h.m4: Update.
4118 * gnulib/import/m4/exponentd.m4: Update.
4119 * gnulib/import/m4/exponentl.m4: Update.
4120 * gnulib/import/m4/extensions.m4: Update.
4121 * gnulib/import/m4/extern-inline.m4: Update.
4122 * gnulib/import/m4/fcntl-o.m4: Update.
4123 * gnulib/import/m4/float_h.m4: Update.
4124 * gnulib/import/m4/fnmatch.m4: Update.
4125 * gnulib/import/m4/fpieee.m4: Update.
4126 * gnulib/import/m4/frexp.m4: Update.
4127 * gnulib/import/m4/frexpl.m4: Update.
4128 * gnulib/import/m4/gettimeofday.m4: Update.
4129 * gnulib/import/m4/glibc21.m4: Update.
4130 * gnulib/import/m4/gnulib-cache.m4: Update.
4131 * gnulib/import/m4/gnulib-common.m4: Update.
4132 * gnulib/import/m4/gnulib-comp.m4: Update.
4133 * gnulib/import/m4/gnulib-tool.m4: Update.
4134 * gnulib/import/m4/include_next.m4: Update.
4135 * gnulib/import/m4/inttypes-pri.m4: Update.
4136 * gnulib/import/m4/inttypes.m4: Update.
4137 * gnulib/import/m4/isnand.m4: Update.
4138 * gnulib/import/m4/isnanl.m4: Update.
4139 * gnulib/import/m4/largefile.m4: Update.
4140 * gnulib/import/m4/localcharset.m4: Update.
4141 * gnulib/import/m4/locale-fr.m4: Update.
4142 * gnulib/import/m4/locale-ja.m4: Update.
4143 * gnulib/import/m4/locale-zh.m4: Update.
4144 * gnulib/import/m4/longlong.m4: Update.
4145 * gnulib/import/m4/lstat.m4: Update.
4146 * gnulib/import/m4/malloc.m4: Update.
4147 * gnulib/import/m4/malloca.m4: Update.
4148 * gnulib/import/m4/math_h.m4: Update.
4149 * gnulib/import/m4/mbrtowc.m4: Update.
4150 * gnulib/import/m4/mbsinit.m4: Update.
4151 * gnulib/import/m4/mbsrtowcs.m4: Update.
4152 * gnulib/import/m4/mbstate_t.m4: Update.
4153 * gnulib/import/m4/memchr.m4: Update.
4154 * gnulib/import/m4/memmem.m4: Update.
4155 * gnulib/import/m4/mmap-anon.m4: Update.
4156 * gnulib/import/m4/multiarch.m4: Update.
4157 * gnulib/import/m4/nocrash.m4: Update.
4158 * gnulib/import/m4/off_t.m4: Update.
4159 * gnulib/import/m4/pathmax.m4: Update.
4160 * gnulib/import/m4/readlink.m4: Update.
4161 * gnulib/import/m4/rename.m4: Update.
4162 * gnulib/import/m4/rmdir.m4: Update.
4163 * gnulib/import/m4/ssize_t.m4: Update.
4164 * gnulib/import/m4/stat.m4: Update.
4165 * gnulib/import/m4/stdbool.m4: Update.
4166 * gnulib/import/m4/stddef_h.m4: Update.
4167 * gnulib/import/m4/stdint.m4: Update.
4168 * gnulib/import/m4/stdio_h.m4: Update.
4169 * gnulib/import/m4/stdlib_h.m4: Update.
4170 * gnulib/import/m4/string_h.m4: Update.
4171 * gnulib/import/m4/strstr.m4: Update.
4172 * gnulib/import/m4/strtok_r.m4: Update.
4173 * gnulib/import/m4/sys_socket_h.m4: Update.
4174 * gnulib/import/m4/sys_stat_h.m4: Update.
4175 * gnulib/import/m4/sys_time_h.m4: Update.
4176 * gnulib/import/m4/sys_types_h.m4: Update.
4177 * gnulib/import/m4/time_h.m4: Update.
4178 * gnulib/import/m4/unistd_h.m4: Update.
4179 * gnulib/import/m4/warn-on-use.m4: Update.
4180 * gnulib/import/m4/wchar_h.m4: Update.
4181 * gnulib/import/m4/wchar_t.m4: Update.
4182 * gnulib/import/m4/wctype_h.m4: Update.
4183 * gnulib/import/m4/wint_t.m4: Update.
4184 * gnulib/import/malloc.c: Update.
4185 * gnulib/import/malloca.c: Update.
4186 * gnulib/import/malloca.h: Update.
4187 * gnulib/import/math.in.h: Update.
4188 * gnulib/import/mbrtowc.c: Update.
4189 * gnulib/import/mbsinit.c: Update.
4190 * gnulib/import/mbsrtowcs-impl.h: Update.
4191 * gnulib/import/mbsrtowcs-state.c: Update.
4192 * gnulib/import/mbsrtowcs.c: Update.
4193 * gnulib/import/memchr.c: Update.
4194 * gnulib/import/memmem.c: Update.
4195 * gnulib/import/pathmax.h: Update.
4196 * gnulib/import/readlink.c: Update.
4197 * gnulib/import/ref-add.sin: Update.
4198 * gnulib/import/ref-del.sin: Update.
4199 * gnulib/import/rename.c: Update.
4200 * gnulib/import/rmdir.c: Update.
4201 * gnulib/import/same-inode.h: Update.
4202 * gnulib/import/stat.c: Update.
4203 * gnulib/import/stdbool.in.h: Update.
4204 * gnulib/import/stddef.in.h: Update.
4205 * gnulib/import/stdint.in.h: Update.
4206 * gnulib/import/stdio.c: Update.
4207 * gnulib/import/stdio.in.h: Update.
4208 * gnulib/import/stdlib.in.h: Update.
4209 * gnulib/import/str-two-way.h: Update.
4210 * gnulib/import/streq.h: Update.
4211 * gnulib/import/string.in.h: Update.
4212 * gnulib/import/stripslash.c: Update.
4213 * gnulib/import/strnlen1.c: Update.
4214 * gnulib/import/strnlen1.h: Update.
4215 * gnulib/import/strstr.c: Update.
4216 * gnulib/import/strtok_r.c: Update.
4217 * gnulib/import/sys_stat.in.h: Update.
4218 * gnulib/import/sys_time.in.h: Update.
4219 * gnulib/import/sys_types.in.h: Update.
4220 * gnulib/import/time.in.h: Update.
4221 * gnulib/import/unistd.in.h: Update.
4222 * gnulib/import/verify.h: Update.
4223 * gnulib/import/wchar.in.h: Update.
4224 * gnulib/import/wctype.in.h: Update.
4225 * gnulib/import/gettimeofday.c: New file.
4226 * gnulib/import/m4/absolute-header.m4: New file.
4227 * gnulib/import/m4/gettimeofday.m4: New file.
4228 * gnulib/import/m4/sys_socket_h.m4: New file.
4229 * gnulib/import/m4/sys_time_h.m4: New file.
4230 * gnulib/import/stdio.c: Delete file.
4231 * gnulib/import/sys_time.in.h: New file.
4232
438e1e42
PA
42332015-08-24 Pedro Alves <palves@redhat.com>
4234
4235 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4236 * common/gdb_sys_time.h: New file.
4237 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4238 * gdb_select.h: Likewise.
4239 * gdb_usleep.c: Likewise.
4240 * maint.c: Likewise.
4241 * mi/mi-main.c: Likewise.
4242 * mi/mi-parse.h: Likewise.
4243 * remote-fileio.c: Likewise.
4244 * remote-m32r-sdi.c: Likewise.
4245 * remote.c: Likewise.
4246 * ser-base.c: Likewise.
4247 * ser-pipe.c: Likewise.
4248 * ser-tcp.c: Likewise.
4249 * ser-unix.c: Likewise.
4250 * symfile.c: Likewise.
4251 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4252 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4253 * utils.c: Likewise.
4254
40e0b271
PA
42552015-08-24 Pedro Alves <palves@redhat.com>
4256
4257 * NEWS: Mention removed support for the various ROM monitors.
4258 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4259 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4260 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4261 gdb_target_obs.
4262 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4263 gdb_target_obs.
4264 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4265 dsrec.o from gdb_target_obs.
4266 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4267 from gdb_target_obs.
4268 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4269 gdb_target_obs.
4270 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4271 dink32-rom.o from gdb_target_obs.
4272 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4273 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4274 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4275 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4276
f8904751
PA
42772015-08-21 Pedro Alves <palves@redhat.com>
4278
4279 * frame.c (null_frame_id): Explicitly zero-initialize.
4280
049412e3
TT
42812015-08-21 Tom Tromey <tromey@redhat.com>
4282
4283 * dwarf2read.c (struct dwarf2_section_info): Rename field
4284 'asection' to 'section'.
4285 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4286 (dwarf2_locate_sections, dwarf2_locate_sections)
4287 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4288 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4289 (dwarf2_locate_v2_dwp_sections): Adjust.
4290
948578a9
PP
42912015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4292
4293 * top.h (gdb_in_secondary_prompt_p): Declare.
4294 * top.c (gdb_secondary_prompt_depth): Define.
4295 (gdb_in_secondary_prompt_p): Define.
4296 (gdb_readline_wrapper_cleanup): Decrement
4297 gdb_secondary_prompt_depth.
4298 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4299 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4300 are in a secondary prompt.
4301
7a8bcb88
PP
43022015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4303
4304 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4305 emit the newline.
4306
2d7711a3
GB
43072015-08-21 Gary Benson <gbenson@redhat.com>
4308
4309 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4310
4313b8c0
GB
43112015-08-21 Gary Benson <gbenson@redhat.com>
4312
4313 * target.h (struct target_ops) <to_fileio_open>: New argument
4314 warn_if_slow. Update comment. All implementations updated.
4315 (target_fileio_open_warn_if_slow): New declaration.
4316 * target.c (target_fileio_open): Renamed as...
4317 (target_fileio_open_1): ...this. New argument warn_if_slow.
4318 Pass warn_if_slow to implementation. Update debug printing.
4319 (target_fileio_open): New function.
4320 (target_fileio_open_warn_if_slow): Likewise.
4321 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4322 target_fileio_open_warn_if_slow.
4323
f36b8719
GB
43242015-08-21 Gary Benson <gbenson@redhat.com>
4325
4326 * nat/linux-namespaces.c (linux_mntns_access_fs):
4327 Do not overwrite old_chain.
4328
40045d91
MF
43292015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4330
4331 * arch/xtensa.h: New file.
4332 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4333 (ps_get_thread_area): New function.
4334 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4335 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4336 * xtensa-tdep.c (osabi.h): New #include.
4337 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4338 xtensa-specific hooks.
4339 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4340 member and move the structure to arch/xtensa.h.
4341
80152258
PA
43422015-08-21 Pedro Alves <palves@redhat.com>
4343
4344 * remote.c (struct readahead_cache): New.
4345 (struct remote_state) <readahead_cache>: New field.
4346 (remote_open_1): Invalidate the cache.
4347 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4348 functions.
4349 (remote_hostio_pwrite): Invalidate the readahead cache.
4350 (remote_hostio_pread): Rename to ...
4351 (remote_hostio_pread_vFile): ... this.
4352 (remote_hostio_pread_from_cache): New function.
4353 (remote_hostio_pread): Reimplement.
4354 (remote_hostio_close): Invalidate the readahead cache.
4355
88fc5eb7
MC
43562015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4357
4358 PR build/18843
4359 * procfs.c: Include "filestuff.h".
4360
6f1cb6ea
PP
43612015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4362
4363 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4364 curch.
4365 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4366 cur_line or curch, instead call wmove().
4367 (init_win_info) [CMD_WIN]: Likewise.
4368 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4369 instead call getcury().
4370 (tui_redisplay_readline): Don't set cur_line or curch.
4371 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4372 getcury().
4373 (tui_cont_sig): Remove call to wmove.
4374 (tui_getc): Don't read cur_line or curch, instead call getcury()
4375 or getyx(). Don't set curch.
4376 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4377 set cur_line or curch. Always move cursor to (0,0).
4378
221e1a37
PA
43792015-08-20 Pedro Alves <palves@redhat.com>
4380
4381 * infrun.c (print_target_wait_results): Make extern.
4382 * infrun.h (print_target_wait_results): Declare.
4383 * remote.c (set_stop_requested_callback): Delete.
4384 (process_initial_stop_replies): New function.
4385 (remote_start_remote): Use it.
4386 (stop_reply_queue_length): New function.
4387
40e3ad0e
PA
43882015-08-20 Pedro Alves <palves@redhat.com>
4389
4390 * dwarf2read.c (process_full_comp_unit): To tell whether
4391 start_subfile managed to deduce a language, test for
4392 language_unknown instead of language_c.
4393
af39b327
PMR
43942015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4395
4396 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4397 matches attributes.
4398
7d45c7c3
KB
43992015-08-19 Kevin Buettner <kevinb@redhat.com>
4400
4401 * dwarf2read.c (dwarf2_string_attr): New function.
4402 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4403 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4404 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4405 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4406 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4407
4d6cceb4
DE
44082015-08-18 Doug Evans <dje@google.com>
4409 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4410
4411 PR mi/18833
4412 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4413 if MI-like.
4414 * mi/mi-out.c: #include "vec.h".
4415 (ui_filep): New type.
4416 (DEV_VEC_P (ui_filep)): New type.
4417 (struct ui_out_data) <buffer, original_buffer>: Delete.
4418 (struct ui_out_data) <streams>: New member.
4419 (mi_ui_out_impl): Add data_destroy field.
4420 (mi_field_string, mi_field_fmt): Update.
4421 (mi_flush, mi_redirect, field_separator): Update.
4422 (mi_open, mi_close): Update.
4423 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4424 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4425 (mi_out_new): Call mi_out_data_ctor.
4426
26d56a93
SL
44272015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4428
4429 * remote.c (strprefix): New.
4430 (remote_parse_stop_reply): Use strprefix instead of strncmp
4431 to ensure exact match of keyword.
4432
566f5e3b
AB
44332015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * gdb_bfd.c (debug_bfd_cache): New variable.
4436 (show_bfd_cache_debug): New function.
4437 (gdb_bfd_open): Add debug logging.
4438 (gdb_bfd_ref): Likewise.
4439 (gdb_bfd_unref): Likewise.
4440 (_initialize_gdb_bfd): Add new set/show command.
4441 * NEWS: Mention new command.
4442
18989b3c
AB
44432015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4444
4445 * gdb_bfd.c (bfd_sharing): New variable.
4446 (show_bfd_sharing): New function.
4447 (gdb_bfd_open): Check bfd_sharing variable.
4448 (_initialize_gdb_bfd): Add new set/show command.
4449 * NEWS: Mention new command.
4450
c04fe68f
AB
44512015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4454 field.
4455 (struct gdb_bfd_cache_search): Likewise.
4456 (eq_bfd): Compare the size, inode, and device id fields.
4457 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4458 (gdb_bfd_ref): Likewise.
4459 (gdb_bfd_unref): Likewise.
4460
b2a33439
PA
44612015-08-18 Pedro Alves <palves@redhat.com>
4462
4463 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4464 target implements to_always_non_stop_p, call it.
4465 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4466 (x86_linux_create_target): Install it as to_always_non_stop_p
4467 method.
4468
71b57e37
DE
44692015-08-17 Doug Evans <dje@google.com>
4470
4471 * ui-out.c (default_ui_out_impl): Add comment.
4472
7f3706eb
IB
44732015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4474
4475 * d-exp.y (type_aggregate_p): New function.
4476 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4477 (classify_inner_name): Likewise.
4478 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4479
1762568f
DE
44802015-08-15 Doug Evans <xdje42@gmail.com>
4481
4482 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4483 updated.
4484 (add_psymbol_to_list): Ditto.
4485
8763cede
DE
44862015-08-15 Doug Evans <xdje42@gmail.com>
4487
4488 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4489 updated. Call end_psymtab_common.
4490 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4491 end_psymtab_common.
4492 (build_type_psymtabs_reader): Ditto.
4493 * psympriv.h (sort_pst_symbols): Delete.
4494 (end_psymtab_common): Declare.
4495 * psymtab.c (sort_pst_symbols): Make static.
4496 (end_psymtab_common): New function.
4497 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4498
51cdc993
DE
44992015-08-15 Doug Evans <xdje42@gmail.com>
4500
4501 * defs.h (LANGUAGE_BITS): Define.
4502 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4503 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4504 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4505 (minimal_symbol_type): Add nr_minsym_types.
4506 (MINSYM_TYPE_BITS): Define.
4507 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4508 (domain_enum_tag): Add NR_DOMAINS.
4509 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4510 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4511
95cf5869
DE
45122015-08-15 Doug Evans <xdje42@gmail.com>
4513
4514 * objfiles.h: Whitespace cleanup.
4515 * psympriv.h: Whitespace cleanup.
4516 * psymtab.c: Whitespace/coding convention cleanup.
4517
e3ae3c43
PP
45182015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4519
4520 * inferior.c (detach_inferior_command): Don't call
4521 any_thread_of_process when pid is 0.
4522 (kill_inferior_command): Likewise.
4523
6ff0ba5f
DE
45242015-08-14 Doug Evans <xdje42@gmail.com>
4525
4526 PR gdb/11833
4527 * NEWS: Document new /s modifier for the disassemble command.
4528 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4529 (_initialize_cli_cmds): Update online docs of disassemble command.
4530 * disasm.c: #include "source.h".
4531 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4532 All uses updated.
4533 (dis_line_entry): New struct.
4534 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4535 (allocate_dis_line_table): New functions.
4536 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4537 (dump_insns): New arg end_pc. All callers updated.
4538 (do_mixed_source_and_assembly_deprecated): Renamed from
4539 do_mixed_source_and_assembly. All callers updated.
4540 (do_mixed_source_and_assembly): New function.
4541 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4542 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4543 DISASSEMBLY_SOURCE. All uses updated.
4544 (DISASSEMBLY_SOURCE): New macro.
4545 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4546
b56ccc20
KS
45472015-08-14 Keith Seitz <keiths@redhat.com>
4548
4549 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4550 `typename' to `type_name' to avoid C++ reserved word.
4551
ebdad8fc
KS
45522015-08-14 Keith Seitz <keiths@redhat.com>
4553
4554 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4555 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4556 silence ARI errors.
4557
c0fe2ae7
IB
45582015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4559
4560 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4561 xstrprintf instead of malloc and sprintf.
4562 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4563 (lex_one_token): Likewise.
4564
a738da3a
MF
45652015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4566
4567 * solib-svr4.c (read_program_header): Add base_addr argument to
4568 report the runtime address of the segment.
4569 (find_program_interpreter): Update read_program_header call to pass
4570 a NULL pointer for the new argument.
4571 (scan_dyntag): Add ptr_addr argument to report the runtime address
4572 of the tag payload.
4573 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4574 read_program_header to get the base address of the dynamic segment.
4575 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4576 read_program_header.
4577 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4578
f8edc4ff
MF
45792015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4580
4581 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4582
444c1ed8
IB
45832015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4584
4585 * d-exp.y (%union): Add voidval.
4586 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4587 name in the lexing stage.
4588 (PostfixExpression): Move symbol completion handling in grammar here
4589 from PrimaryExpression.
4590 (PrimaryExpression): Move routines to handle resolving identifier
4591 tokens in the grammar here from push_expression_name.
4592 (IdentifierExp): Remove the handling of alternating '.' and identifier
4593 tokens.
4594 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4595 (BasicType): Remove C-style typename rules.
4596 (d_type_from_name, d_module_from_name, push_variable)
4597 (push_fieldnames, push_type_name, push_module_name)
4598 (push_expression_name): Remove.
4599 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4600 (token_and_value): New type.
4601 (token_fifo, popping, name_obstack): New globals.
4602 (classify_name): New function.
4603 (classify_inner_name): Likewise.
4604 (yylex): Likewise.
4605 (d_parse): Initialize token_fifo, popping and name_obstack.
4606
bc7c9fab
IB
46072015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4608
4609 * Makefile.in (SFILES): Add d-namespace.c.
4610 (COMMON_OBS): Add d-namespace.o.
4611 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4612 la_lookup_symbol_nonlocal callback function pointer.
4613 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4614 (d_lookup_nested_symbol): New declaration.
4615 * d-namespace.c: New file.
4616
3207396b
PA
46172015-08-13 Pedro Alves <palves@redhat.com>
4618
4619 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4620 cleanup after the decref cleanup, not before.
4621
5d8c3ed3
PMR
46222015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4623
4624 * ada-lang.c: Include namespace.h
4625 (aux_add_nonlocal_symbols): Fix a function name in comment.
4626 (ada_add_block_renamings): New.
4627 (add_nonlocal_symbols): Add global renamings handling.
4628 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4629 to...
4630 (ada_add_all_symbols): ... this new function.
4631 (ada_add_block_symbols): Try to match the input name against the
4632 "using directives list", perform a recursive symbol lookup on
4633 the matched declarations.
4634 * block.h (struct block): Move the_namespace to top-level as
4635 namespace_info. Remove the language_specific field.
4636 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4637 * buildsym.h (using_directives): Rename into...
4638 (local_using_directives): ... this.
4639 (global_using_directives): New.
4640 (struct context_stack): Rename the using_directives field into
4641 local_using_directives.
4642 * buildsym.c (finish_block_internal): Deal with the proper
4643 using directives repository (local or global).
4644 (prepare_for_building): Reset local_using_directives. Assert
4645 that there is no pending global using directive.
4646 (reset_symtab_globals): Reset global_using_directives and
4647 local_using_directives.
4648 (end_symtab_get_static_block): Don't ignore symtabs that have
4649 only using directives.
4650 (push_context): Update references to local_using_directives.
4651 (buildsym_init): Do not reset using_directives.
4652 * cp-support.c: Include namespace.h.
4653 * cp-support.h (struct using_direct): Move to namespace.h.
4654 (cp_add_using_directives): Move to namespace.h.
4655 * cp-namespace.c: Include namespace.h
4656 (cp_add_using_directive): Move to namespace.c, rename it to
4657 add_using_directive, add a "using_directives" argument and use
4658 it as the pending using directives repository. All callers
4659 updated.
4660 * dwarf2read.c (using_directives): New.
4661 (read_import_statement): Call using_directives.
4662 (read_func_scope): Update references to local_using_directives.
4663 (read_lexical_block_scope): Likewise.
4664 (read_namespace): Update the heading comment, call
4665 using_directives.
4666 * namespace.h: New file.
4667 * namespace.c: New file.
4668 * Makefile.in (SFILES): Add namespace.c.
4669 (COMMON_OBS): Add namespace.o
4670
4dafcdeb
JB
46712015-08-12 Joel Brobecker <brobecker@adacore.com>
4672
4673 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4674 compute RETADDR.
4675
67994074
KS
46762015-08-12 Keith Seitz <keiths@redhat.com>
4677
4678 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4679 reserved C++ keyword "explicit" to "explicit_loc".
4680 * breakpoint.c (create_overlay_event_breakpoint)
4681 (create_longjmp_master_breakpoint)
4682 (create_std_terminate_master_breakpoint)
4683 (create_exception_master_breakpoint, update_static_tracepoint):
4684 Rename reserved C++ keyword "explicit" to "explicit_loc".
4685 * completer.c (collect_explicit_location_matches)
4686 (explicit_location_completer): Rename reserved C++ keyword
4687 "explicit" to "explicit_loc".
4688 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4689 (canonicalize_linespec, create_sals_line_offset)
4690 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4691 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4692 "explicit" to "explicit_loc".
4693 * location.c (struct event_location) <explicit>: Rename to
4694 "explicit_loc".
4695 (initialize_explicit_location, new_explicit_location)
4696 (explicit_location_to_string_internal, explicit_location_to_linespec):
4697 Rename reserved C++ keyword "explicit" to "explicit_loc".
4698 * location.h (explicit_location_to_string)
4699 (explicit_location_to_linespec, initialize_explicit_location)
4700 (new_explicit_location): Rename reserved C++ keyword "explicit"
4701 to "explicit_loc".
4702 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4703 keyword "explicit" to "explicit_loc".
4704
59ecaff3
KS
47052015-08-12 Keith Seitz <keiths@redhat.com>
4706
4707 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4708 and only call decode_line_1 when it is non-NULL.
4709
244558af
LM
47102015-08-12 Luis Machado <lgustavo@codesourcery.com>
4711
4712 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4713 location address is not meaningful.
4714 (breakpoint_address_is_meaningful): Update comment.
4715
629500fa
KS
47162015-08-11 Keith Seitz <keiths@redhat.com>
4717
4718 * NEWS: Mention explicit locations.
4719 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4720 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4721 (_initialize_breakpoint): Update documentation for
4722 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4723
eb8c4e2e
KS
47242015-08-11 Keith Seitz <keiths@redhat.com>
4725
4726 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4727 explicit locations, options "--source", "--function",
4728 "--label", and "--line".
4729
87f0e720
KS
47302015-08-11 Keith Seitz <keiths@redhat.com>
4731
4732 * completer.c: Include location.h.
4733 (enum match_type): New enum.
4734 (location_completer): Rename to ...
4735 (linespec_completer): ... this.
4736 (collect_explicit_location_matches, backup_text_ptr)
4737 (explicit_location_completer): New functions.
4738 (location_completer): "New" function; handle linespec
4739 and explicit location completions.
4740 (complete_line_internal): Remove all location completer-specific
4741 handling.
4742 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4743 (find_toplevel_char): Export.
4744 (linespec_parse_line_offset): Export.
4745 Issue error if STRING is not numerical.
4746 (gdb_get_linespec_parser_quote_characters): New function.
4747 * linespec.h (linespec_parse_line_offset): Declare.
4748 (get_gdb_linespec_parser_quote_characters): Declare.
4749 (is_ada_operator): Declare.
4750 (find_toplevel_char): Declare.
4751 (linespec_lexer_lex_keyword): Declare.
4752 * location.c (explicit_to_event_location): New function.
4753 (explicit_location_lex_one): New function.
4754 (string_to_explicit_location): New function.
4755 (string_to_event_location): Handle explicit locations.
4756 * location.h (explicit_to_event_location): Declare.
4757 (string_to_explicit_location): Declare.
4758
00e52e53
KS
47592015-08-11 Keith Seitz <keiths@redhat.com>
4760
4761 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4762 linespec into explicit location.
4763 * breakpoint.c (create_overlay_breakpoint)
4764 (create_longjmp_master_breakpoint)
4765 (create_std_terminate_master_breakpoint)
4766 (create_exception_master_breakpoint): Convert linespec into explicit
4767 location.
4768 (update_static_tracepoint): Convert linespec into explicit location.
4769 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4770 location.h.
4771 (struct linespec) <expression, expr_pc, source_filename>
4772 <function_name, label_name, line_offset>: Replace with ...
4773 <explicit>: ... this.
4774 <is_linespec>: New member.
4775 (PARSER_EXPLICIT): New accessor macro.
4776 (undefined_label_error): New function.
4777 (source_file_not_found_error): New function.
4778 (linespec_parse_basic): The parser result is now an explicit location.
4779 Use PARSER_EXPLICIT to access it.
4780 Use undefined_label_error.
4781 (canonicalize_linespec): Convert canonical linespec into explicit
4782 location.
4783 Move string representation of location to explicit_location_to_linespec
4784 and use it and explicit_location_to_string to save string
4785 representations of the canonical location.
4786 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4787 explicit location. Update all references.
4788 (convert_explicit_location_to_sals): New function.
4789 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4790 result's explicit location.
4791 (linespec_state_constructor): Initialize is_linespec.
4792 Use PARSER_EXPLICIT.
4793 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4794 result.
4795 (event_location_to_sals): For linespec locations, set is_linespec.
4796 Handle explicit locations.
4797 (decode_objc): 'ls' contains an explicit location now. Update all
4798 references.
4799 (symtabs_from_filename): Use source_file_not_found_error.
4800 * location.c (struct event_location.u) <explicit>: New member.
4801 (initialize_explicit_location): New function.
4802 (initialize_event_location): Initialize explicit locations.
4803 (new_explicit_location, get_explicit_location)
4804 (get_explicit_location_const): New functions.
4805 (explicit_to_string_internal): New function; most of contents moved
4806 from canonicalize_linespec.
4807 (explicit_location_to_string): New function.
4808 (explicit_location_to_linespec): New function.
4809 (copy_event_location, delete_event_location)
4810 (event_location_to_string_const, event_location_empty_p): Handle
4811 explicit locations.
4812 * location.h (enum offset_relative_sign, struct line_offset): Move
4813 here from linespec.h.
4814 (enum event_location_type): Add EXPLICIT_LOCATION.
4815 (struct explicit_location): New structure.
4816 (explicit_location_to_string): Declare.
4817 (explicit_location_to_linespec): Declare.
4818 (new_explicit_location, get_explicit_locationp
4819 (get_explicit_location_const, initialize_explicit_location): Declare.
4820
5b56227b
KS
48212015-08-11 Keith Seitz <keiths@redhat.com>
4822
4823 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4824 linespec for stap probe to probe location.
4825 * breakpoint.c (create_longjmp_master_breakpoint)
4826 (create_exception_master_breakpoint): Likewise.
4827 (break_command_1): Remove local variable `arg_cp'.
4828 Check location type to set appropriate breakpoint ops methods.
4829 (trace_command): Likewise.
4830 * linespec.c (event_location_to_sals): Assert on probe locations.
4831 * location.c (EL_PROBE): Add macro definition.
4832 (new_probe_location, get_probe_location): New functions.
4833 (copy_event_location, delete_event_location, event_location_to_string)
4834 (string_to_event_location, event_location_empty_p): Handle probe
4835 locations.
4836 * location.h (enum event_location_type): Add PROBE_LOCATION.
4837 (new_probe_location, get_probe_location): Declare.
4838 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4839 Convert linespec into probe location.
4840
a06efdd6
KS
48412015-08-11 Keith Seitz <keiths@redhat.com>
4842
4843 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4844 Convert linespec to address location.
4845 * linespec.c (canonicalize_linespec): Do not handle address
4846 locations here.
4847 (convert_address_location_to_sals): New function; contents moved
4848 from ...
4849 (convert_linespc_to_sals): ... here.
4850 (parse_linespec): Remove address locations from linespec grammar.
4851 Remove handling of address locations.
4852 (linespec_lex_to_end): Remove handling of address linespecs.
4853 (event_location_to_sals): Handle ADDRESS_LOCATION.
4854 (linespec_expression_to_pc): Export.
4855 * linespec.h (linespec_expression_to_pc): Add declaration.
4856 * location.c (struct event_location.u) <address>: New member.
4857 (new_address_location, get_address_location): New functions.
4858 (copy_event_location, delete_event_location, event_location_to_string)
4859 (string_to_event_location, event_location_empty_p): Handle address
4860 locations.
4861 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4862 (new_address_location, get_address_location): Declare.
4863 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4864 to address location.
4865 * spu-tdep.c (spu_catch_start): Likewise.
4866
f00aae0f
KS
48672015-08-11 Keith Seitz <keiths@redhat.com>
4868
4869 * ax-gdb.c: Include location.h.
4870 (agent_command_1) Use linespec location instead of address
4871 string.
4872 * break-catch-throw.c: Include location.h.
4873 (re_set_exception_catchpoint): Use linespec locations instead
4874 of address strings.
4875 * breakpoint.c: Include location.h.
4876 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4877 (create_std_terminate_master_breakpoint)
4878 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4879 Use linespec location instead of address string.
4880 (print_breakpoint_location): Use locations and
4881 event_location_to_string.
4882 Print extra_string for pending locations for non-MI streams.
4883 (print_one_breakpoint_location): Use locations and
4884 event_location_to_string.
4885 (init_raw_breakpoint_without_location): Initialize b->location.
4886 (create_thread_event_breakpoint): Use linespec location instead of
4887 address string.
4888 (init_breakpoint_sal): Likewise.
4889 Only save extra_string if it is non-NULL and not the empty string.
4890 Use event_location_to_string instead of `addr_string'.
4891 Constify `p' and `endp'.
4892 Use skip_spaces_const/skip_space_const instead of non-const versions.
4893 Copy the location into the breakpoint.
4894 If LOCATION is NULL, save the breakpoint address as a linespec location
4895 instead of an address string.
4896 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4897 event_location. All uses updated.
4898 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4899 (parse_breakpoint_sals): Use locations instead of address strings.
4900 Remove check for empty linespec with conditional.
4901 Refactor.
4902 (decode_static_tracepoint_spec): Make argument const and update
4903 function.
4904 (create_breakpoint): Change `arg' to a struct event_location and
4905 rename.
4906 Remove `copy_arg' and `addr_start'.
4907 If EXTRA_STRING is empty, set it to NULL.
4908 Don't populate `canonical' for pending breakpoints.
4909 Pass `extra_string' to find_condition_and_thread.
4910 Clear `extra_string' if `rest' was NULL.
4911 Do not error with "garbage after location" if setting a dprintf
4912 breakpoint.
4913 Copy the location into the breakpoint instead of an address string.
4914 (break_command_1): Use string_to_event_location and pass this to
4915 create_breakpoint instead of an address string.
4916 Check against `arg_cp' for a probe linespec.
4917 (dprintf_command): Use string_to_event_location and pass this to
4918 create_breakpoint instead of an address string.
4919 Throw an exception if no format string was specified.
4920 (print_recreate_ranged_breakpoint): Use event_location_to_string
4921 instead of address strings.
4922 (break_range_command, until_break_command)
4923 (init_ada_exception_breakpoint): Use locations instead
4924 of address strings.
4925 (say_where): Print out extra_string for pending locations.
4926 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4927 the breakpoint.
4928 (base_breakpoint_create_sals_from_location): Use struct event_location
4929 instead of address string.
4930 Remove `addr_start' and `copy_arg' parameters.
4931 (base_breakpoint_decode_location): Use struct event_location instead of
4932 address string.
4933 (bkpt_re_set): Use locations instead of address strings.
4934 Use event_location_empty_p to check for unset location.
4935 (bkpt_print_recreate): Use event_location_to_string instead of
4936 an address string.
4937 Print out extra_string for pending locations.
4938 (bkpt_create_sals_from_location, bkpt_decode_location)
4939 (bkpt_probe_create_sals_from_location): Use struct event_location
4940 instead of address string.
4941 (bkpt_probe_decode_location): Use struct event_location instead of
4942 address string.
4943 (tracepoint_print_recreate): Use event_location_to_string to
4944 recreate the tracepoint.
4945 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4946 (tracepoint_probe_create_sals_from_location)
4947 (tracepoint_probe_decode_location): Use struct event_location
4948 instead of address string.
4949 (dprintf_print_recreate): Use event_location_to_string to recreate
4950 the dprintf.
4951 (dprintf_re_set): Remove check for valid/missing format string.
4952 (strace_marker_create_sals_from_location)
4953 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4954 (update_static_tracepoint): Use struct event_location instead of
4955 address string.
4956 (location_to_sals): Likewise.
4957 Pass `extra_string' to find_condition_and_thread.
4958 For newly resolved pending breakpoint locations, clear the location's
4959 string representation.
4960 Assert that the breakpoint's condition string is NULL when
4961 condition_not_parsed.
4962 (breakpoint_re_set_default, create_sals_from_location_default)
4963 (decode_location_default, trace_command, ftrace_command)
4964 (strace_command, create_tracepoint_from_upload): Use locations
4965 instead of address strings.
4966 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4967 Use struct event_location instead of address string.
4968 Update all uses.
4969 <decode_location>: Likewise.
4970 (struct breakpoint) <addr_string>: Change to struct event_location
4971 and rename `location'.
4972 <addr_string_range_end>: Change to struct event_location and rename
4973 `location_range_end'.
4974 (create_breakpoint): Use struct event_location instead of address
4975 string.
4976 * cli/cli-cmds.c: Include location.h.
4977 (edit_command, list_command): Use locations instead of address strings.
4978 * elfread.c: Include location.h.
4979 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4980 * guile/scm-breakpoint.c: Include location.h.
4981 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4982 (gdbscm_register_breakpoint): Use locations instead of address
4983 strings.
4984 * linespec.c: Include location.h.
4985 (struct ls_parser) <stream>: Change to const char *.
4986 (PARSER_STREAM): Update.
4987 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4988 keywords must be followed by whitespace.
4989 (canonicalize_linespec): Save a linespec location into `canonical'.
4990 Save a canonical linespec into `canonical'.
4991 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4992 All uses updated.
4993 Update function description.
4994 (linespec_parser_new): Initialize `parser'.
4995 Update initialization of parsing stream.
4996 (event_location_to_sals): New function.
4997 (decode_line_full): Change `argptr' to a struct event_location and
4998 rename it `location'.
4999 Use locations instead of address strings.
5000 Call event_location_to_sals instead of parse_linespec.
5001 (decode_line_1): Likewise.
5002 (decode_line_with_current_source, decode_line_with_last_displayed)
5003 Use locations instead of address strings.
5004 (decode_objc): Likewise.
5005 Change `argptr' to const char * and rename `arg'.
5006 (destroy_linespec_result): Delete the linespec result's location
5007 instead of freeing the address string.
5008 * linespec.h (struct linespec_result) <addr_string>: Change to
5009 struct event_location and rename to ...
5010 <location>: ... this.
5011 (decode_line_1, decode_line_full): Change `argptr' to struct
5012 event_location. All callers updated.
5013 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5014 (mi_cmd_break_insert_1): Use locations instead of address strings.
5015 Throw an error if there was "garbage" at the end of the specified
5016 linespec.
5017 * probe.c: Include location.h.
5018 (parse_probes): Change `argptr' to struct event_location.
5019 Use event locations instead of address strings.
5020 * probe.h (parse_probes): Change `argptr' to struct event_location.
5021 * python/py-breakpoint.c: Include location.h.
5022 (bppy_get_location): Constify local variable `str'.
5023 Use event_location_to_string.
5024 (bppy_init): Use locations instead of address strings.
5025 * python/py-finishbreakpoint.c: Include location.h.
5026 (bpfinishpy_init): Remove local variable `addr_str'.
5027 Use locations instead of address strings.
5028 * python/python.c: Include location.h.
5029 (gdbpy_decode_line): Use locations instead of address strings.
5030 * remote.c: Include location.h.
5031 (remote_download_tracepoint): Use locations instead of address
5032 strings.
5033 * spu-tdep.c: Include location.h.
5034 (spu_catch_start): Remove local variable `buf'.
5035 Use locations instead of address strings.
5036 * tracepoint.c: Include location.h.
5037 (scope_info): Use locations instead of address strings.
5038 (encode_source_string): Constify parameter `src'.
5039 * tracepoint.h (encode_source_string): Likewise.
5040
c7c1b3e9
KS
50412015-08-11 Keith Seitz <keiths@redhat.com>
5042
5043 * Makefile.in (SFILES): Add location.c.
5044 (HFILES_NO_SRCDIR): Add location.h.
5045 (COMMON_OBS): Add location.o.
5046 * linespec.c (linespec_lex_to_end): New function.
5047 * linespec.h (linespec_lex_to_end): Declare.
5048 * location.c: New file.
5049 * location.h: New file.
5050
5f700d83
KS
50512015-08-11 Keith Seitz <keiths@redhat.com>
5052
5053 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5054 Renamed to create_sals_from_location.
5055 <decode_linespec>: Renamed to decode_location.
5056 Update all callers.
5057 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5058 (create_sals_from_location_default): ... this.
5059 (addr_string_to_sals): Renamed to ...
5060 (location_to_sals): ... this.
5061 (decode_linespec_default): Renamed to ...
5062 (decode_location_default): ... this.
5063 (base_breakpoint_create_sals_from_address): Renamed to ...
5064 (base_breakpoint_create_sals_from_location): ... this.
5065 (bkpt_create_sals_from_address): Renamed to ...
5066 (bkpt_create_sals_from_location): ... this.
5067 (bkpt_decode_linespec): Renamed to ...
5068 (bkpt_decode_location): ... this.
5069 (bkpt_probe_create_sals_from_address): Renamed to ...
5070 (bkpt_probe_create_sals_from_location): ... this.
5071 (tracepoint_create_sals_from_address): Renamed to ...
5072 (tracepoint_create_sals_from_location): ... this.
5073 (tracepoint_decode_linespec): Renamed to ...
5074 (tracepoint_decode_location): ... this.
5075 (tracepoint_probe_create_sals_from_address): Renamed to ...
5076 (tracepoint_probe_create_sals_from_location): ... this.
5077 (tracepoint_probe_decode_linespec): Renamed to ...
5078 (tracepoint_probe_decode_location): ... this.
5079 (strace_marker_create_sals_from_address): Renamed to ...
5080 (strace_marker_create_sals_from_location): ... this.
5081 (decode_linespec_default): Renamed to ...
5082 (decode_location_default): ... this.
5083
e27852be
DE
50842015-08-10 Doug Evans <dje@google.com>
5085 Keith Seitz <keiths@redhat.com>
5086
5087 PR gdb/17960
5088 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5089 make_file_symbol_completion_list and made static.
5090 (make_file_symbol_completion_list): New function.
80af41e0 5091
fd7dcb94
JB
50922015-08-10 Joel Brobecker <brobecker@adacore.com>
5093
5094 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5095 trailing new-line at end of warning message.
5096 (proceed): Add i18n marker to error messages.
5097
f12899e9
PA
50982015-08-07 Pedro Alves <palves@redhat.com>
5099
5100 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5101
5ac21343
PA
51022015-08-07 Pedro Alves <palves@redhat.com>
5103
5104 * s390-linux-tdep.c (is_non_branch_ril)
5105 (s390_displaced_step_copy_insn): New functions.
5106 (s390_displaced_step_fixup): Update comment.
5107 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5108 gdbarch_displaced_step_copy_insn hook.
5109
7f03bd92
PA
51102015-08-07 Pedro Alves <palves@redhat.com>
5111
5112 * infrun.c (displaced_step_prepare_throw): Return -1 if
5113 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5114 comment.
5115 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5116 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5117 in file.
5118 (ppc_displaced_step_copy_insn): New function.
5119 (ppc_displaced_step_fixup): Update comment.
5120 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5121 gdbarch_displaced_step_copy_insn hook.
5122 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5123 NULL return.
5124 * gdbarch.h: Regenerate.
5125
3fc8eb30
PA
51262015-08-07 Pedro Alves <palves@redhat.com>
5127
5128 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5129 field.
5130 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5131 Return false if dispaced stepping failed before.
5132 (resume): Pass the current inferior to
5133 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5134 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5135 displaced_stepping_failed flag, and fall back to an in-line
5136 step-over.
5137
bfedc46a
PA
51382015-08-07 Pedro Alves <palves@redhat.com>
5139
5140 * darwin-nat.c (darwin_stop): Rename to ...
5141 (darwin_interrupt): ... this.
5142 (_initialize_darwin_inferior): Adjust.
5143 * gnu-nat.c (gnu_stop): Delete.
5144 (gnu_target): Don't install gnu_stop.
5145 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5146 (inf_ptrace_interrupt): ... this.
5147 (inf_ptrace_target): Adjust.
5148 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5149 target_stop.
5150 * linux-nat (linux_nat_stop): Rename to ...
5151 (linux_nat_interrupt): ... this.
5152 (linux_nat_stop): Reimplement.
5153 (linux_nat_add_target): Install linux_nat_interrupt.
5154 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5155 (nto_handle_sigint_twice): ... this.
5156 (nto_interrupt): Rename to ...
5157 (nto_handle_sigint): ... this. Call target_interrupt instead of
5158 target_stop.
5159 (procfs_wait): Adjust.
5160 (procfs_stop): Rename to ...
5161 (procfs_interrupt): ... this.
5162 (init_procfs_targets): Adjust.
5163 * procfs.c (procfs_stop): Rename to ...
5164 (procfs_interrupt): ... this.
5165 (procfs_target): Adjust.
5166 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5167 (m32r_interrupt): ... this.
5168 (init_m32r_ops): Adjust.
5169 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5170 (gdbsim_interrupt_inferior): ... this.
5171 (gdbsim_stop): Rename to ...
5172 (gdbsim_interrupt): ... this.
5173 (gdbsim_cntrl_c): Adjust.
5174 (init_gdbsim_ops): Adjust.
5175 * remote.c (sync_remote_interrupt): Adjust comments.
5176 (remote_stop_as): Rename to ...
5177 (remote_interrupt_as): ... this.
5178 (remote_stop): Adjust comment.
5179 (remote_interrupt): New function.
5180 (init_remote_ops): Install remote_interrupt.
5181 * target.c (target_interrupt): New function.
5182 * target.h (struct target_ops) <to_interrupt>: New field.
5183 (target_interrupt): New declaration.
5184 * windows-nat.c (windows_stop): Rename to ...
5185 (windows_interrupt): ... this.
5186 * target-delegates.c: Regenerate.
5187
d55007b5
PA
51882015-08-07 Pedro Alves <palves@redhat.com>
5189
5190 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5191 threads" as alternative to "switching back to stepped thread".
5192
fbea99ea
PA
51932015-08-07 Pedro Alves <palves@redhat.com>
5194
5195 * NEWS: Mention "maint set/show target-non-stop".
5196 * breakpoint.c (update_global_location_list): Check
5197 target_is_non_stop_p instead of non_stop.
5198 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5199 * infrun.c (show_can_use_displaced_stepping)
5200 (can_use_displaced_stepping_p, start_step_over_inferior):
5201 Likewise.
5202 (internal_resume_ptid): New function.
5203 (resume): Use it.
5204 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5205 all-stop mode but the target is always in non-stop mode, start all
5206 the other threads that are implicitly resumed too.
5207 (for_each_just_stopped_thread, fetch_inferior_event)
5208 (adjust_pc_after_break, stop_all_threads): Check
5209 target_is_non_stop_p instead of non_stop.
5210 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5211 with the target always in non-stop mode.
5212 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5213 instead of non_stop.
5214 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5215 instead of non_stop.
5216 (keep_going_stepped_thread): Use internal_resume_ptid.
5217 (stop_waiting): If in all-stop mode, and the target is in non-stop
5218 mode, stop all threads.
5219 (keep_going_pass): Likewise, when starting a new in-line step-over
5220 sequence.
5221 * linux-nat.c (get_pending_status, select_event_lwp)
5222 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5223 target_is_non_stop_p instead of non_stop.
5224 (linux_nat_always_non_stop_p): New function.
5225 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5226 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5227 * target-delegates.c: Regenerate.
5228 * target.c (target_is_non_stop_p): New function.
5229 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5230 (maint_set_target_non_stop_command)
5231 (maint_show_target_non_stop_command): New functions.
5232 (_initilize_target): Install "maint set/show target-non-stop"
5233 commands.
5234 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5235 (target_non_stop_enabled): New declaration.
5236 (target_is_non_stop_p): New declaration.
5237
372316f1
PA
52382015-08-07 Pedro Alves <pedro@codesourcery.com>
5239
5240 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5241 has a pending status, return true.
5242 * gdbthread.h: Include target/waitstatus.h.
5243 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5244 stop_pc>: New fields.
5245 (struct thread_info) <resumed>: New field.
5246 (set_resumed): Declare.
5247 * infrun.c: Include "event-loop.h".
5248 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5249 (infrun_async): New function.
5250 (clear_step_over_info): Add debug output.
5251 (displaced_step_in_progress_any_inferior): New function.
5252 (displaced_step_fixup): New returns int.
5253 (start_step_over): Handle in-line step-overs too. Assert the
5254 thread is marked resumed.
5255 (resume_cleanups): Clear the thread's resumed flag.
5256 (resume): Set the thread's resumed flag. Return early if the
5257 thread has a pending status. Allow stepping a breakpoint with no
5258 signal.
5259 (proceed): Adjust to check 'resumed' instead of 'executing'.
5260 (clear_proceed_status_thread): If the thread has a pending status,
5261 and that status is a finished step, discard the pending status.
5262 (clear_proceed_status): Don't clear step_over_info here.
5263 (random_pending_event_thread, do_target_wait): New functions.
5264 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5265 do_target_wait.
5266 (wait_one): New function.
5267 (THREAD_STOPPED_BY): New macro.
5268 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5269 (thread_stopped_by_hw_breakpoint): New functions.
5270 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5271 functions.
5272 (handle_inferior_event): Also call set_resumed(false) on all
5273 threads implicitly stopped by the event.
5274 (restart_threads, resumed_thread_with_pending_status): New
5275 functions.
5276 (finish_step_over): If we were doing an in-line step-over before,
5277 and no longer are after trying to start a new step-over, restart
5278 all threads. If we have multiple threads with pending events,
5279 save the current event and go through the event loop again.
5280 (handle_signal_stop): Return early if finish_step_over returns
5281 false.
5282 <random signal>: If we get a signal while stepping over a
5283 breakpoint in-line in non-stop mode, restart all threads. Clear
5284 step_over_info before delivering the signal.
5285 (keep_going_stepped_thread): Use internal_error instead of
5286 gdb_assert. Mark the thread as resumed.
5287 (keep_going_pass_signal): Assert the thread isn't already resumed.
5288 If some other thread is doing an in-line step-over, defer the
5289 resume. If we just started a new in-line step-over, stop all
5290 threads. Don't clear step_over_info.
5291 (infrun_async_inferior_event_handler): New function.
5292 (_initialize_infrun): Create async event handler with
5293 infrun_async_inferior_event_handler as callback.
5294 (infrun_async): New declaration.
5295 * target.c (target_async): New function.
5296 * target.h (target_async): Declare macro and readd as function
5297 declaration.
5298 * target/waitstatus.h (enum target_stop_reason)
5299 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5300 * thread.c (new_thread): Clear the new waitstatus field.
5301 (set_resumed): New function.
5302
2ac7589c
PA
53032015-08-07 Pedro Alves <palves@redhat.com>
5304
5305 * infrun.c (keep_going_stepped_thread): New function, factored out
5306 from ...
5307 (switch_back_to_stepped_thread): ... here.
5308
8b061563
PA
53092015-08-07 Pedro Alves <palves@redhat.com>
5310
5311 * infrun.c (currently_stepping): Extend intro comment.
5312 * target.h (target_resume): Extend intro comment.
5313
1afd5965
PA
53142015-08-07 Pedro Alves <palves@redhat.com>
5315
5316 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5317 of inferior_ptid. If the stepped thread vanished, return 0
5318 instead of resuming here. Use reset_ecs. Print the prev_pc and
5319 the current stop_pc in log message. Clear trap_expected if the
5320 thread advanced. Don't pass currently_stepping to
5321 do_target_resume.
5322
4d9d9d04
PA
53232015-08-07 Pedro Alves <palves@redhat.com>
5324
5325 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5326 * infrun.c (struct execution_control_state): Move higher up in the
5327 file.
5328 (reset_ecs): New function.
5329 (start_step_over): Now returns int. Rewrite to use
5330 keep_going_pass_signal instead of manually starting a displaced step.
5331 (resume): Don't call set_running here. If displaced stepping
5332 can't start now, clear trap_expected.
5333 (find_thread_needs_step_over): Delete function.
5334 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5335 If the current thread needs a step over, push it in the step-over
5336 chain. Don't set insert breakpoints nor call resume directly
5337 here. Instead rewrite to use start_step_over and
5338 keep_going_pass_signal.
5339 (finish_step_over): New function.
5340 (handle_signal_stop): Call finish_step_over instead of
5341 start_step_over.
5342 (switch_back_to_stepped_thread): If the event thread needs another
5343 step-over do that first. Use start_step_over.
5344 (keep_going_pass_signal): New function, factored out from ...
5345 (keep_going): ... here.
5346 (_initialize_infrun): Comment moved here.
5347 * thread.c (set_running_thread): New function.
5348 (set_running, finish_thread_state): Use set_running_thread.
5349
c2829269
PA
53502015-08-07 Pedro Alves <palves@redhat.com>
5351
5352 * gdbthread.h (struct thread_info) <step_over_prev,
5353 step_over_next>: New fields.
5354 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5355 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5356 declarations.
5357 * infrun.c (struct displaced_step_request): Delete.
5358 (struct displaced_step_inferior_state) <step_request_queue>:
5359 Delete field.
5360 (displaced_step_prepare): Assert that trap_expected is set. Use
5361 thread_step_over_chain_enqueue. Split starting a new displaced
5362 step to ...
5363 (start_step_over): ... this new function.
5364 (resume): Assert the thread isn't waiting for a step over already.
5365 (proceed): Assert the thread isn't waiting for a step over
5366 already.
5367 (infrun_thread_stop_requested): Adjust to remove threads from the
5368 embedded step-over chain.
5369 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5370 displaced_step_fixup.
5371 (handle_signal_stop): Call start_step_over after
5372 displaced_step_fixup.
5373 * infrun.h (step_over_queue_head): New declaration.
5374 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5375 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5376 (thread_step_over_chain_enqueue)
5377 (thread_step_over_chain_remove): New functions.
5378 (delete_thread_1): Remove thread from the step-over chain.
5379
6c4cfb24
PA
53802015-08-07 Pedro Alves <palves@redhat.com>
5381
5382 * infrun.c (thread_still_needs_step_over): Rename to ...
5383 (thread_still_needs_step_over_bp): ... this.
5384 (enum step_over_what): New.
5385 (thread_still_needs_step_over): Reimplement.
5386
567420d1
PA
53872015-08-07 Pedro Alves <palves@redhat.com>
5388
5389 * remote.c (remote_wait_as): If not waiting for a stop reply,
5390 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5391 requested, don't block waiting forever.
5392
d8dd4d5f
PA
53932015-08-07 Pedro Alves <pedro@codesourcery.com>
5394
5395 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5396 waitstatus pointers instead of an ecs. Adjust.
5397 (handle_inferior_event): Adjust caller.
5398
e1316e60
PA
53992015-08-07 Pedro Alves <palves@redhat.com>
5400
5401 * infrun.c (handle_inferior_event): If we get
5402 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5403 mode, mark all threads of the exiting process as not-executing.
5404 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5405 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5406 exiting process, if inferior_ptid still points at a process.
5407 * thread.c (struct current_thread_cleanup) <next>: New field.
5408 (current_thread_cleanup_chain): New global.
5409 (restore_current_thread_ptid_changed): New function.
5410 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5411 current_thread_cleanup_chain list.
5412 (make_cleanup_restore_current_thread): Add the cleanup data to the
5413 current_thread_cleanup_chain list.
5414 (_initialize_thread): Install restore_current_thread_ptid_changed
5415 as thread_ptid_changed observer.
5416
47e9c225
JB
54172015-08-07 Joel Brobecker <brobecker@adacore.com>
5418
5419 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5420 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5421 smaller than expected.
5422
06096720
AB
54232015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5424
5425 * stack.c (get_frame_language): Moved ...
5426 * frame.c (get_frame_language): ... to here.
5427 * language.h (get_frame_language): Declaration moved to frame.h.
5428 * frame.h: Add language.h include, for language enum.
5429 (get_frame_language): Declaration moved from language.h.
5430 * language.c: Add frame.h include.
5431 * top.c: Add frame.h include.
5432 * symtab.h (struct obj_section): Declare.
5433 (struct cmd_list_element): Declare.
5434
7ff38b1c
AB
54352015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * language.c (show_language_command): Find selected frame before
5438 asking for the language of that frame.
5439 (set_language_command): Likewise.
5440 * language.h (get_frame_language): Add frame parameter.
5441 * stack.c (get_frame_language): Add frame parameter, assert
5442 parameter is not NULL, update comment and reindent.
5443 * top.c (check_frame_language_change): Pass the selected frame
5444 into get_frame_language.
5445
da8c46d2
MM
54462015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5447
5448 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5449 (pt_btrace_insn_flags): New.
5450 (ftrace_add_pt): Call pt_btrace_insn_flags.
5451 * btrace.h (btrace_insn_flag): New.
5452 (btrace_insn) <flags>: New.
5453 * record-btrace.c (btrace_insn_history): Print insn prefix.
5454 * NEWS: Announce it.
5455
5599c404
MM
54562015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5457
5458 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5459 * configure: Regenerate.
5460
016a3251
DD
54612015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5462
5463 * Makefile.in (LIBICONV): Define.
5464 (CLIBS): Add LIBICONV.
5465 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5466 * configure: Regenerate.
5467
aead7601
SM
54682015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5469 Pedro Alves <palves@redhat.com>
5470
5471 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5472 (arm_set_abi): Likewise.
5473 * ax-general.c (ax_print): Likewise.
5474 * c-exp.y (exp : string_exp): Likewise.
5475 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5476 (do_compile_dwarf_expr_to_c): Likewise.
5477 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5478 Likewise.
5479 * dwarf2expr.c (execute_stack_op): Likewise.
5480 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5481 (disassemble_dwarf_expression): Likewise.
5482 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5483 (read_array_order): Likewise.
5484 (abbrev_table_read_table): Likewise.
5485 (read_attribute_value): Likewise.
5486 (skip_unknown_opcode): Likewise.
5487 (dwarf_decode_macro_bytes): Likewise.
5488 (dwarf_decode_macros): Likewise.
5489 * eval.c (value_f90_subarray): Likewise.
5490 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5491 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5492 * infrun.c (handle_command): Likewise.
5493 * memory-map.c (memory_map_start_memory): Likewise.
5494 * osabi.c (set_osabi): Likewise.
5495 * parse.c (operator_length_standard): Likewise.
5496 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5497 single return point.
5498 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5499 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5500 (gdbpy_lookup_global_symbol): Likewise.
5501 * record-full.c (record_full_restore): Likewise.
5502 * regcache.c (regcache_register_status): Likewise.
5503 (regcache_raw_read): Likewise.
5504 (regcache_cooked_read): Likewise.
5505 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5506 * symtab.c (initialize_ordinary_address_classes): Likewise.
5507 * target-debug.h (target_debug_print_signals): Likewise.
5508 * utils.c (do_restore_current_language): Likewise.
5509
ca0a5f0b
CD
55102015-08-06 Clem Dickey <clemd@acm.org>
5511
5512 PR python/17136
5513 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5514
05d999b0
SM
55152015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * complaints.c (enum complaint_series): Add newlines and remove
5518 out of date comment.
5519 (struct complaints) <series>: Change type to enum
5520 complaint_series and remove out of date comment.
5521 (symfile_complaint_hook): Use equivalent enum value
5522 ISOLATED_MESSAGE instead of 0.
5523
bf47e248
PA
55242015-08-06 Pedro Alves <palves@redhat.com>
5525
5526 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5527 returned > 0.
5528
b6b9ffcc
PL
55292015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5530
5531 * common/agent.c (symbol_list) <required>: Remove.
5532
863d01bd
PA
55332015-08-06 Pedro Alves <palves@redhat.com>
5534
5535 * target/waitstatus.h (enum target_stop_reason)
5536 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5537
0a39bb32
PA
55382015-08-05 Pedro Alves <palves@redhat.com>
5539 Joel Brobecker <brobecker@adacore.com>
5540
9d996aba 5541 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5542 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5543 case where BS->STOP is not set.
5544
260439cb
UW
55452015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5546
5547 * nat/gdb_thread_db.h: Add copyright header.
5548 Protect against multiple inclusion.
5549
d89fa914
YQ
55502015-08-05 Yao Qi <yao.qi@linaro.org>
5551
5552 * aarch64-linux-nat.c (get_thread_id): Remove.
5553 (debug_reg_change_callback): Call ptid_get_lwp instead of
5554 get_thread_id.
5555 (fetch_gregs_from_thread): Likewise.
5556 (store_gregs_to_thread): Likewise.
5557 (fetch_fpregs_from_thread): Likewise.
5558 (store_fpregs_to_thread): Likewise.
5559 (aarch64_linux_get_debug_reg_capacity): Likewise.
5560 * arm-linux-nat.c (get_thread_id): Remove.
5561 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5562 * xtensa-linux-nat.c (get_thread_id): Remove.
5563 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5564 * arm-linux-nat.c (get_thread_id): Remove.
5565 (GET_THREAD_ID): Remove.
5566 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5567 (store_fpregs, fetch_regs, store_regs): Likewise.
5568 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5569 (fetch_vfp_regs, store_vfp_regs): Likewise.
5570 (arm_linux_read_description): Likewise.
5571 (arm_linux_get_hwbp_cap): Likewise.
5572 * xtensa-linux-nat.c (get_thread_id): Remove.
5573 (GET_THREAD_ID): Remove.
5574 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5575 GET_THREAD_ID.
5576
4efd80aa
CS
55772015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5578
5579 * python/py-linetable.c: Fix case of Linetable to LineTable
5580 in docstrings and code comments.
5581 * python/py-symtab.c: Same.
5582
c6343a91
JK
55832015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5584
5585 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5586
978b9495
JK
55872015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5588
5589 PR gdb/18767
5590 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5591 use.
5592
96e9210f
PA
55932015-08-04 Pedro Alves <palves@redhat.com>
5594
5595 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5596 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5597 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5598 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5599 (td_thr_validate_ftype, td_thr_get_info_ftype)
5600 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5601 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5602 New typedefs.
5603 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5604 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5605 local macros and use them instead of verbose_dlsym and dlsym
5606 calls.
5607
af60a1ef
SL
56082015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5609
5610 * nios2-tdep.h: Include opcode/nios2.h here.
5611 (NIOS2_CDX_OPCODE_SIZE): New.
5612 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5613 * nios2-tdep.c: Don't include opcode/nios2.h here.
5614 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5615 4-byte read fails.
5616 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5617 (nios2_match_addi, nios2_match_orhi): Likewise.
5618 (nios2_match_stw, nios2_match_ldw): Likewise.
5619 (nios2_match_rdctl): Likewise.
5620 (nios2_match_stwm, nios2_match_ldwm): New.
5621 (nios2_match_branch): Add cases for R2 encodings.
5622 (nios2_match_jmpi, nios2_match_calli): Likewise.
5623 (nios2_match_jmpr, nios2_match_callr): Likewise.
5624 (nios2_match_break, nios2_match_trap): Likewise.
5625 (nios2_in_epilogue_p): Add R2 support.
5626 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5627 prologues.
5628 (nios2_breakpoint_from_pc): Handle R2 instructions.
5629 (nios2_get_next_pc): Likewise. Adjust call to
5630 tdep->syscall_next_pc.
5631 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5632 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5633 instruction field macros instead of literal hex values.
5634 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5635 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5636 Use size field from OP instead of assuming all instructions
5637 are the same size.
5638 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5639
1da03605
UW
56402015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5641
5642 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5643 variable warning with some compilers.
5644
8156fe7f
YQ
56452015-08-03 Yao Qi <yao.qi@linaro.org>
5646
5647 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5648 in comment. Replace "rw" with "type".
5649 (arm_linux_remove_watchpoint): Change type of "rw" to
5650 "enum target_hw_bp_type".
5651
835a09d9
PMR
56522015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5653
5654 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5655 lookup_symbol.
5656 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5657 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5658 * mt-tdep.c (mt_skip_prologue): Likewise.
5659 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5660
d12307c1
PMR
56612015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5662
5663 * ada-exp.y (write_object_renaming): Replace struct
5664 ada_symbol_info with struct block_symbol. Update field
5665 references accordingly.
5666 (block_lookup, select_possible_type_sym): Likewise.
5667 (find_primitive_type): Likewise. Also update call to
5668 ada_lookup_symbol to extract the symbol itself.
5669 (write_var_or_type, write_name_assoc): Likewise.
5670 * ada-lang.h (struct ada_symbol_info): Remove.
5671 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5672 struct block_symbol.
5673 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5674 (ada_lookup_symbol): Return struct block_symbol instead of a
5675 mere symbol.
5676 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5677 with struct block_symbol.
5678 (resolve_subexp, ada_resolve_function, sort_choices,
5679 user_select_syms, is_nonfunction, add_defn_to_vec,
5680 num_defns_collected, defns_collected,
5681 symbols_are_identical_enums, remove_extra_symbols,
5682 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5683 ada_lookup_symbol_list, ada_iterate_over_symbols,
5684 ada_lookup_encoded_symbol, get_var_value): Likewise.
5685 (ada_lookup_symbol): Return a block_symbol instead of a mere
5686 symbol. Replace struct ada_symbol_info with struct
5687 block_symbol.
5688 (ada_lookup_symbol_nonlocal): Likewise.
5689 (standard_lookup): Make block passing explicit through
5690 lookup_symbol_in_language.
5691 * ada-tasks.c (get_tcb_types_info): Update the calls to
5692 lookup_symbol_in_language to extract the mere symbol out of the
5693 returned value.
5694 (ada_tasks_inferior_data_sniffer): Likewise.
5695 * ax-gdb.c (gen_static_field): Likewise for the call to
5696 lookup_symbol.
a5fdf78a 5697 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5698 lookup functions.
5699 (gen_expr): Likewise.
5700 * c-exp.y: Likewise. Remove uses of block_found.
5701 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5702 (classify_name): Likewise. Rename the "sym" local variable to
5703 "bsym".
5704 * c-valprint.c (print_unpacked_pointer): Likewise.
5705 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5706 "sym" parameter from struct symbol * to struct block_symbol.
5707 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5708 block_symbol from lookup functions.
d12307c1
PMR
5709 (gcc_convert_symbol): Likewise. Update the call to
5710 convert_symbol_sym.
5711 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5712 struct block_symbol from lookup functions.
d12307c1
PMR
5713 * cp-namespace.c (cp_lookup_nested_symbol_1,
5714 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5715 cp_search_static_and_baseclasses,
5716 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5717 cp_lookup_symbol_imports_or_template,
5718 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5719 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5720 find_symbol_in_baseclass): Return struct block_symbol instead of
5721 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5722 functions.
5723 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5724 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5725 lookup functions.
5726 * cp-support.h (cp_lookup_symbol_nonlocal,
5727 cp_lookup_symbol_from_namespace,
5728 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5729 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5730 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5731 push_module_name):
a5fdf78a 5732 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5733 uses of block_found.
5734 * eval.c (evaluate_subexp_standard): Update call to
5735 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5736 * f-exp.y: Deal with struct block_symbol from lookup functions.
5737 Remove uses of block_found.
d12307c1
PMR
5738 (yylex): Likewise.
5739 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5740 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5741 struct block_symbol from lookup functions.
d12307c1
PMR
5742 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5743 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5744 (gdbscm_lookup_global_symbol): Likewise.
5745 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5746 * go-exp.y: Likewise. Remove uses of block_found.
5747 (package_name_p, classify_packaged_name, classify_name):
5748 Likewise.
5749 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5750 * jv-exp.y (push_variable): Likewise.
5751 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5752 * language.c (language_bool_type): Likewise.
5753 * language.h (struct language_defn): Update
a5fdf78a
PMR
5754 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5755 than a mere symbol.
5756 * linespec.c (find_label_symbols): Deal with struct block_symbol
5757 from lookup functions.
d12307c1
PMR
5758 * m2-exp.y: Likewise. Remove uses of block_found.
5759 (yylex): Likewise.
5760 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5761 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5762 * p-exp.y: Likewise. Remove uses of block_found.
5763 (yylex): Likewise.
5764 * p-valprint.c (pascal_val_print): Likewise.
5765 * parse.c (write_dollar_variable): Likewise. Remove uses of
5766 block_found.
5767 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5768 struct block_symbol.
5769 * printcmd.c (address_info): Deal with struct block_symbol from
5770 lookup functions.
d12307c1
PMR
5771 * python/py-frame.c (frapy_read_var): Likewise.
5772 * python/py-symbol.c (gdbpy_lookup_symbol,
5773 gdbpy_lookup_global_symbol): Likewise.
5774 * skip.c (skip_function_command): Likewise.
5775 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5776 block_symbol instead of a mere symbol.
d12307c1
PMR
5777 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5778 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5779 * solib.c (solib_global_lookup): Likewise.
5780 * solist.h (solib_global_lookup): Likewise.
5781 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5782 return a struct block_symbol rather than a mere symbol.
5783 * source.c (select_source_symtab): Deal with struct block_symbol
5784 from lookup functions.
d12307c1
PMR
5785 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5786 Likewise.
5787 * symfile.c (set_initial_language): Likewise.
5788 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5789 block_symbol.
d12307c1
PMR
5790 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5791 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5792 block_symbol.
d12307c1 5793 (block_found): Remove.
a5fdf78a 5794 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5795 cache slots.
a5fdf78a
PMR
5796 (symbol_cache_lookup): Return a struct block_symbol rather than
5797 a mere symbol.
d12307c1
PMR
5798 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5799 appropriately the cache slots. Update callers.
5800 (symbol_cache_dump): Update cache slots handling to the type
5801 change.
5802 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5803 lookup_symbol_aux, lookup_local_symbol,
5804 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5805 lookup_symbol_in_objfile_symtabs,
5806 lookup_symbol_in_objfile_from_linkage_name,
5807 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5808 lookup_symbol_in_static_block, lookup_static_symbol,
5809 lookup_global_symbol):
a5fdf78a
PMR
5810 Return a struct block_symbol rather than a mere symbol. Deal
5811 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5812 uses of block_found.
5813 (lookup_symbol_in_block): Remove uses of block_found.
5814 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5815 struct block_symbol.
d12307c1
PMR
5816 (lookup_symbol_global_iterator_cb): Update references to the
5817 RESULT field.
a5fdf78a 5818 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5819 functions.
a5fdf78a 5820 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5821 (block_found): Remove.
5822 (lookup_symbol_in_language, lookup_symbol,
5823 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5824 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5825 lookup_global_symbol_from_objfile): Return a struct block_symbol
5826 rather than just a mere symbol. Update comments to remove
5827 mentions of block_found.
d12307c1
PMR
5828 * valops.c (find_function_in_inferior,
5829 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5830 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5831 functions.
5832 * value.c (value_static_field, value_fn_field): Likewise.
5833
b1c59ddc
SM
58342015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5835
5836 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5837 instead of integer.
5838
f486487f 58392015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5840 Pedro Alves <palves@redhat.com>
f486487f
SM
5841
5842 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5843 type or value instead of integer.
5844 (aarch64_linux_insert_watchpoint): Likewise.
5845 (aarch64_linux_remove_watchpoint): Likewise.
5846 * ada-lang.c (ada_op_print_tab): Likewise.
5847 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5848 (amd64_linux_syscall_record_common): Likewise.
5849 * arch-utils.c (target_byte_order_user): Likewise.
5850 (default_byte_order): Likewise.
5851 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5852 (arm_linux_get_hwbp_type): Likewise.
5853 (arm_linux_hw_watchpoint_initialize): Likewise.
5854 (arm_linux_insert_watchpoint): Likewise.
5855 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5856 (arm_linux_syscall_record): Likewise.
5857 * breakpoint.c (update_watchpoint): Likewise.
5858 (breakpoint_here_p): Likewise.
5859 (bpstat_print): Likewise.
5860 (enable_breakpoint_disp): Likewise.
5861 * c-lang.c (c_op_print_tab): Likewise.
5862 * cli/cli-decode.c (add_info_alias): Likewise.
5863 * d-lang.c (d_op_print_tab): Likewise.
5864 * eval.c (evaluate_subexp_standard): Likewise.
5865 * f-exp.y (dot_ops): Likewise.
5866 (f77_keywords): Likewise.
5867 * f-lang.c (f_op_print_tab): Likewise.
5868 * go-lang.c (go_op_print_tab): Likewise.
5869 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5870 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5871 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5872 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5873 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5874 (struct scm_from_stringn_data): Likewise.
5875 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5876 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5877 (ia64_linux_remove_watchpoint): Likewise.
5878 (ia64_linux_can_use_hw_breakpoint): Likewise.
5879 * infrun.c (print_stop_event): Likewise.
5880 * jv-lang.c (java_op_print_tab): Likewise.
5881 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5882 * linux-nat.h (struct lwp_info): Likewise.
5883 * linux-thread-db.c (enable_thread_event): Likewise.
5884 * m2-lang.c (m2_op_print_tab): Likewise.
5885 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5886 (mi_cmd_stack_list_variables): Likewise.
5887 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5888 * mi/mi-out.c (mi_table_begin): Likewise.
5889 (mi_table_header): Likewise.
5890 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5891 (mips_linux_insert_watchpoint): Likewise.
5892 (mips_linux_remove_watchpoint): Likewise.
5893 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5894 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5895 (mips_linux_watch_type_to_irw): Likewise.
5896 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5897 (procfs_insert_hw_watchpoint): Likewise.
5898 (procfs_remove_hw_watchpoint): Likewise.
5899 (procfs_hw_watchpoint): Likewise.
5900 (procfs_can_use_hw_breakpoint): Likewise.
5901 (procfs_remove_hw_watchpoint): Likewise.
5902 (procfs_insert_hw_watchpoint): Likewise.
5903 * p-lang.c (pascal_op_print_tab): Likewise.
5904 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5905 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5906 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5907 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5908 (procfs_insert_watchpoint): Likewise.
5909 (procfs_remove_watchpoint): Likewise.
5910 * psymtab.c (recursively_search_psymtabs): Likewise.
5911 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5912 (m32r_insert_watchpoint): Likewise.
5913 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5914 (mips_insert_watchpoint): Likewise.
5915 (mips_remove_watchpoint): Likewise.
5916 * remote.c (watchpoint_to_Z_packet): Likewise.
5917 (remote_insert_watchpoint): Likewise.
5918 (remote_remove_watchpoint): Likewise.
5919 (remote_check_watch_resources): Likewise.
5920 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5921 (s390_remove_watchpoint): Likewise.
5922 (s390_can_use_hw_breakpoint): Likewise.
5923 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5924 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5925 * target.h (struct target_ops): Likewise.
5926 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5927 * ui-out.c (struct ui_out_hdr): Likewise.
5928 (append_header_to_list): Likewise.
5929 (get_next_header): Likewise.
5930 (verify_field): Likewise.
5931 (ui_out_begin): Likewise.
5932 (ui_out_field_int): Likewise.
5933 (ui_out_field_fmt_int): Likewise.
5934 (ui_out_field_skip): Likewise.
5935 (ui_out_field_string): Likewise.
5936 (ui_out_field_fmt): Likewise.
5937 * varobj.c (new_variable): Likewise.
5938 * x86-nat.c (x86_insert_watchpoint): Likewise.
5939 (x86_remove_watchpoint): Likewise.
5940 (x86_can_use_hw_breakpoint): Likewise.
5941 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5942 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5943 previously anonymous enumeration type..
5944 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5945 value.
5946 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5947 (target_debug_print_enum_bptype): New.
5948 * target-delegates.c: Regenerate.
5949
e1b5381f
SL
59502015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5951
5952 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5953 already says and disallow non-stack memory writes in the prologue.
5954
9aaf8e3a
SL
59552015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5956
5957 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5958 reflect how current GCC emits stack overflow checks. Match
5959 both trap and break instructions for backward compatbility.
5960 Disallow other trap and break instructions in the prologue.
5961
69dde7dc
PA
59622015-07-30 Pedro Alves <palves@redhat.com>
5963
5964 PR threads/18600
5965 * linux-nat.c (wait_lwp): Report to the core when thread group
5966 leader exits.
5967
4dd63d48
PA
59682015-07-30 Pedro Alves <palves@redhat.com>
5969 Simon Marchi <simon.marchi@ericsson.com>
5970
5971 PR threads/18600
5972 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5973 mark the new thread as resumed. Remove STOPPING parameter.
5974 (wait_lwp): Adjust call to linux_handle_extended_wait.
5975 (linux_nat_filter_event): Adjust call to
5976 linux_handle_extended_wait.
5977 (resume_stopped_resumed_lwps): Add debug output.
5978
6b940e6a
PL
59792015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5980
5981 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5982 isize argument.
5983 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5984 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5985 gdbarch_fast_tracepoint_valid_at.
5986 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5987 * gdbarch.h: Regenerate.
5988 * gdbarch.c: Regenerate.
5989 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5990 argument. Do not set it.
5991 * remote.c (remote_download_tracepoint): Adjust call to
5992 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5993 the instruction length.
5994
ec741292
YQ
59952015-07-30 Yao Qi <yao.qi@linaro.org>
5996
5997 * arm-tdep.h (enum gdb_regnum): Move it to ...
5998 * arch/arm.h: ... here. New file.
5999 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6000
0ea6402e
PL
60012015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6002
6003 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6004 Change its type to int *.
6005 (decode_br): Rename link argument to is_blr. Change its type to
6006 int *.
6007 (decode_cb): Rename op argument to is_cbnz. Change its type to
6008 int *.
6009 (decode_tb): Rename op argument to is_tbnz. Change its type to
6010 int *. Set is_tbnz to either 1 or 0.
6011 (aarch64_analyze_prologue): Change type of is_link to int. Add
6012 new variables is_cbnz and is_tbnz. Adjust call to
6013 aarch64_decode_cb and aarch64_decode_tb.
6014
aa58a496
SM
60152015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6016
6017 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6018 parameter.
6019 (mips_linux_new_thread): Likewise.
6020 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6021
18206ca3
PP
60222015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6023
6024 * top.c: Include "tui/tui.h".
6025 (undo_terminal_modifications_before_exit): New static function.
6026 (quit_force): Use it.
6027
7afa63c6
PP
60282015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6029
6030 * target.c (terminal_state): Initialize to terminal_is_ours.
6031
cc9f16aa
YQ
60322015-07-29 Yao Qi <yao.qi@linaro.org>
6033
6034 PR record/18691
6035 * dcache.c (dcache_read_memory_partial): Call
6036 raw_memory_xfer_partial.
6037 * target.c (raw_memory_xfer_partial): Make it non-static.
6038 * target.h (raw_memory_xfer_partial): Declare.
6039
3ae385af
SM
60402015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6041
6042 * c-valprint.c (c_val_print_array): Consider addressable memory
6043 unit size.
6044 (c_val_print_ptr): Likewise.
6045 (c_val_print_int): Likewise.
6046 * findvar.c (read_frame_register_value): Likewise.
6047 * valarith.c (find_size_for_pointer_math): Likewise.
6048 (value_ptrdiff): Likewise.
6049 (value_subscripted_rvalue): Likewise.
6050 * valops.c (read_value_memory): Likewise (and rename variables).
6051 (value_assign): Likewise.
6052 (value_repeat): Likewise.
6053 (value_array): Likewise.
6054 (value_slice): Likewise.
6055 * valprint.c (generic_val_print_ptr): Likewise.
6056 (generic_val_print_enum): Likewise.
6057 (generic_val_print_bool): Likewise.
6058 (generic_val_print_int): Likewise.
6059 (generic_val_print_char): Likewise.
6060 (generic_val_print_float): Likewise.
6061 (generic_val_print_decfloat): Likewise.
6062 (generic_val_print_complex): Likewise.
6063 (val_print_scalar_formatted): Likewise.
6064 (val_print_array_elements): Likewise.
6065 * value.c (set_value_parent): Likewise.
6066 (value_contents_copy_raw): Likewise.
6067 (set_internalvar_component): Likewise.
6068 (value_primitive_field): Likewise.
6069 (value_fetch_lazy): Likewise.
6070 * value.h (read_value_memory): Update comment.
6071
e512cdbd
SM
60722015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6073
6074 * value.c (get_value_arch): New function.
6075 * value.h (get_value_arch): New declaration.
6076
3723fda8
SM
60772015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6078
6079 * value.c (struct value): Update comments.
6080
2e056931
SM
60812015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6082
6083 * gdbtypes.c (type_length_units): New function.
6084 * gdbtypes.h (type_length_units): New declaration.
6085 (struct type) <length>: Update comment.
6086
0c87c0bf
SM
60872015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6088
6089 * valprint.c (generic_val_print): Factor out complex
6090 printing code to ...
6091 (generic_val_print_complex): ... this new function.
6092
9550ae5e
SM
60932015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6094
6095 * valprint.c (generic_val_print): Factor out decfloat
6096 printing code to ...
6097 (generic_val_print_decfloat): ... this new function.
6098
7784724b
SM
60992015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * valprint.c (generic_val_print): Factor out float
6102 printing code to ...
6103 (generic_val_print_float): ... this new function.
6104
385f5aff
SM
61052015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * valprint.c (generic_val_print): Factor out char
6108 printing code to ...
6109 (generic_val_print_char): ... this new function.
6110
b21b6342
SM
61112015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6112
6113 * valprint.c (generic_val_print): Factor out integer
6114 printing code to ...
6115 (generic_val_print_int): ... this new function.
6116
e5bead4b
SM
61172015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6118
6119 * valprint.c (generic_val_print): Factor out bool
6120 printing code to ...
6121 (generic_val_print_bool): ... this new function.
6122
4a8c372f
SM
61232015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6124
6125 * valprint.c (generic_val_print): Factor out function/method
6126 printing code to ...
6127 (generic_val_print_func): ... this new function.
6128
d93880bd
SM
61292015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6130
6131 * valprint.c (generic_val_print): Factor out flags
6132 printing code to ...
6133 (generic_val_print_flags): ... this new function.
6134
ef0bc0dd
SM
61352015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6136
6137 * valprint.c (generic_val_print): Factor out enum
6138 printing code to ...
6139 (generic_val_print_enum): ... this new function.
6140
fe43fede
SM
61412015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6142
6143 * valprint.c (generic_val_print): Factor out reference
6144 printing code to ...
6145 (generic_val_print_ref): ... this new function.
6146
45000ea2
SM
61472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6148
6149 * valprint.c (generic_val_print): Factor out memberptr
6150 printing code to ...
6151 (generic_val_print_memberptr): ... this new function.
6152
81eb921a
SM
61532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6154
6155 * valprint.c (generic_val_print): Factor out pointer
6156 printing code to ...
6157 (generic_val_print_ptr): ... this new function.
6158
557dbe8a
SM
61592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6160
6161 * valprint.c (generic_val_print): Factor out array
6162 printing code to ...
6163 (generic_val_print_array): ... this new function.
6164
9f436164
SM
61652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6166
6167 * valprint.c (generic_val_print): Factor out
6168 print_unpacked_pointer code to ...
6169 (print_unpacked_pointer): ... this new function.
6170
077836f7
PP
61712015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6172
6173 * event-top.c (handle_sigterm): Don't inspect
6174 target_can_async_p. Always set the quit flag and always mark
6175 the async signal handler.
6176
3a60804f
YQ
61772015-07-27 Yao Qi <yao.qi@linaro.org>
6178
6179 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6180
c9f35b34
KB
61812015-07-25 Kevin Buettner <kevinb@redhat.com>
6182
6183 * remote.c (read_ptid): Return null_ptid when no thread id
6184 is found.
6185 (remote_current_thread): Add log warning for malformed
6186 qC reply.
6187 (remote_start_remote): Add log warning when current thread
6188 not found.
6189
2b4cab86
PA
61902015-07-24 Pedro Alves <palves@redhat.com>
6191
6192 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6193 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6194 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6195
77598427
PA
61962015-07-24 Pedro Alves <palves@redhat.com>
6197
6198 PR gdb/18717
6199 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6200 is resumed, and extend the debug log.
6201
fe23c31f
PA
62022015-07-24 Pedro Alves <palves@redhat.com>
6203
6204 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6205
5826e159
PA
62062015-07-24 Pedro Alves <palves@redhat.com>
6207
6208 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6209 sys/ptrace.h.
6210 * alpha-linux-nat.c: Likewise.
6211 * amd64-linux-nat.c: Likewise.
6212 * arm-linux-nat.c: Likewise.
6213 * hppa-linux-nat.c: Likewise.
6214 * i386-linux-nat.c: Likewise.
6215 * ia64-linux-nat.c: Likewise.
6216 * linux-fork.c: Likewise.
6217 * linux-nat.c: Likewise.
6218 * m32r-linux-nat.c: Likewise.
6219 * m68klinux-nat.c: Likewise.
6220 * mips-linux-nat.c: Likewise.
6221 * nat/linux-btrace.c: Likewise.
6222 * nat/linux-ptrace.c: Likewise.
6223 * nat/linux-ptrace.h
6224 * nat/mips-linux-watch.c: Likewise.
6225 * nat/x86-linux-dregs.c: Likewise.
6226 * ppc-linux-nat.c: Likewise.
6227 * s390-linux-nat.c: Likewise.
6228 * spu-linux-nat.c: Likewise.
6229 * tilegx-linux-nat.c: Likewise.
6230 * x86-linux-nat.c: Likewise.
6231 * xtensa-linux-nat.c: Likewise.
6232
54019719
PA
62332015-07-24 Pedro Alves <palves@redhat.com>
6234
6235 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6236 __ptrace_request as first parameter type instead of int.
6237 (PTRACE_TYPE_ARG1): Define.
6238 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6239 that casts first argument to PTRACE_TYPE_ARG1.
6240 * config.in: Regenerate.
6241 * configure: Regenerate.
6242
e3790375
PA
62432015-07-24 Pedro Alves <palves@redhat.com>
6244
6245 * gdb_ptrace.h: Move ...
6246 * nat/gdb_ptrace.h: ... here.
6247 * inf-ptrace.c: Adjust.
6248
eb7aa561
PA
62492015-07-24 Pedro Alves <palves@redhat.com>
6250
6251 * acinclude.m4: Include ptrace.m4.
6252 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6253 * ptrace.m4: ... to this new file.
6254
cc12ce38
DE
62552015-07-23 Doug Evans <dje@google.com>
6256
6257 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6258 (load_cu): Handle dummy CUs.
6259 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6260 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6261
7b849db4
CS
62622015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6263
6264 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6265 documentation to say that it returns a list rather than
6266 a FrozenSet.
6267 (linetable_object_methods): Update the docstring of the
6268 "source_line" entry.
6269
d0d84780
PMR
62702015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6271
6272 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6273 type to the recursive call instead of the original (maybe
6274 TYPE_CODE_TYPEDEF) type.
6275
c2fbdc59
YQ
62762015-07-23 Yao Qi <yao.qi@linaro.org>
6277
6278 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6279 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6280 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6281
af1b22f3
YQ
62822015-07-21 Yao Qi <yao.qi@linaro.org>
6283
6284 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6285 Move it to nat/aarch64-linux-hw-point.c.
6286 (aarch64_linux_child_post_startup_inferior): Update.
6287 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6288 New function.
6289 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6290 Declare it.
6291
40e050d2
MM
62922015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6293
6294 * common/btrace-common.c (btrace_data_append): Change case label.
6295
3675a06a
YQ
62962015-07-20 Yao Qi <yao.qi@linaro.org>
6297
6298 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6299 Re-indent the code.
6300 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6301 "unsigned long long".
6302
b4e1fd61
KB
63032015-07-18 Kevin Buettner <kevinb@redhat.com>
6304
6305 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6306 to be set for SEC_ALLOC sections too.
6307
554717a3
YQ
63082015-07-17 Yao Qi <yao.qi@linaro.org>
6309
6310 * Makefile.in (HFILES_NO_SRCDIR): Add
6311 nat/aarch64-linux-hw-point.h.
6312 (aarch64-linux-hw-point.o): New rule.
6313 * nat/aarch64-linux-hw-point.h: New file.
6314 * nat/aarch64-linux-hw-point.c: New file.
6315 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6316 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6317 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6318 (AARCH64_HWP_ALIGNMENT): Likewise.
6319 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6320 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6321 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6322 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6323 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6324 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6325 (struct aarch64_debug_reg_state): Likewise.
6326 (struct arch_lwp_info): Likewise.
6327 (aarch64_linux_set_debug_regs): Likewise.
6328 (aarch64_notify_debug_reg_change): Remove static.
6329 (aarch64_align_watchpoint): Likewise.
6330 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6331 (aarch64_watchpoint_length): Likewise.
6332 (aarch64_point_encode_ctrl_reg): Likewise
6333 (aarch64_point_is_aligned): Likewise.
6334 (aarch64_dr_state_insert_one_point): Likewise.
6335 (aarch64_dr_state_remove_one_point): Likewise.
6336 (aarch64_handle_breakpoint): Likewise.
6337 (aarch64_handle_aligned_watchpoint): Likewise.
6338 (aarch64_handle_unaligned_watchpoint): Likewise.
6339 (aarch64_handle_watchpoint): Likewise.
6340 * config/aarch64/linux.mh (NAT_FILE): Add
6341 aarch64-linux-hw-point.o.
6342
c67ca4de
YQ
63432015-07-17 Yao Qi <yao.qi@linaro.org>
6344
6345 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6346 state and don't call aarch64_get_debug_reg_state. All callers
6347 update.
6348 (aarch64_linux_insert_hw_breakpoint): Call
6349 aarch64_get_debug_reg_state earlier.
6350 (aarch64_linux_remove_hw_breakpoint): Likewise.
6351 (aarch64_handle_aligned_watchpoint): Add argument state and
6352 don't call aarch64_get_debug_reg_state. All callers update.
6353 (aarch64_handle_unaligned_watchpoint): Likewise.
6354 (aarch64_handle_watchpoint): Add argument state.
6355 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6356 earlier.
6357 (aarch64_linux_remove_watchpoint): Likewise.
6358
25abf979
YQ
63592015-07-17 Yao Qi <yao.qi@linaro.org>
6360
6361 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6362 debug_printf.
6363 (aarch64_handle_unaligned_watchpoint): Likewise.
6364
2ecd81c2
YQ
63652015-07-17 Yao Qi <yao.qi@linaro.org>
6366
6367 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6368 argument type's type to 'enum target_hw_bp_type'.
6369 (aarch64_dr_state_remove_one_point): Likewise.
6370 (aarch64_handle_breakpoint): Likewise.
6371 (aarch64_linux_insert_hw_breakpoint): Likewise.
6372 (aarch64_linux_remove_hw_breakpoint): Likewise.
6373 (aarch64_handle_aligned_watchpoint): Likewise.
6374
e53b6938
YQ
63752015-07-17 Yao Qi <yao.qi@linaro.org>
6376
6377 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6378 ptid_get_pid instead of get_thread_id.
6379
6a49a997
YQ
63802015-07-17 Yao Qi <yao.qi@linaro.org>
6381
6382 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6383 (add_current_inferior_and_thread): Don't initialise ptid.
6384
4bcddace
PL
63852015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6386
6387 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6388 unavailable if invalid.
6389
db1ff28b
JK
63902015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6391
6392 Revert the previous 6 commits:
6393 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6394 Move gdb_regex* to common/
6395 Prepare linux_find_memory_regions_full & co. for move
6396 Move linux_find_memory_regions_full & co.
6397 gdbserver build-id attribute generator
6398 Validate symbol file using build-id
6399
ca5268b6
JK
64002015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6401 Jan Kratochvil <jan.kratochvil@redhat.com>
6402
6403 Validate symbol file using build-id.
6404 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6405 and 'show validate-build-id'. Add build-id attribute.
6406 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6407 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6408 * solib-frv.c (_initialize_frv_solib): Ditto.
6409 * solib-spu.c (set_spu_solib_ops): Ditto.
6410 * solib-svr4.c: Include rsp-low.h.
6411 (NOTE_GNU_BUILD_ID_NAME): New define.
6412 (svr4_validate): New function.
6413 (svr4_copy_library_list): Duplicate field build_id.
6414 (library_list_start_library): Parse 'build-id' attribute.
6415 (svr4_library_attributes): Add 'build-id' attribute.
6416 (_initialize_svr4_solib): Assign validate value.
6417 * solib-target.c (solib.h): Include.
6418 (_initialize_solib_target): Assign validate value.
6419 * solib.c (validate_build_id, show_validate_build_id): New.
6420 (solib_map_sections): Use ops->validate.
6421 (clear_so): Free build_id.
6422 (default_solib_validate): New function.
6423 (_initialize_solib): Add "validate-build-id".
6424 * solib.h (default_solib_validate): New declaration.
6425 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6426 (target_so_ops): New field 'validate'.
6427
700ca40f
JK
64282015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6429 Jan Kratochvil <jan.kratochvil@redhat.com>
6430
6431 gdbserver build-id attribute generator.
6432 * features/library-list-svr4.dtd (library-list-svr4): New
6433 'build-id' attribute.
6434
9904185c
JK
64352015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6436 Jan Kratochvil <jan.kratochvil@redhat.com>
6437
6438 Move linux_find_memory_regions_full & co.
6439 * linux-tdep.c (nat/linux-maps.h): Include.
6440 (gdb_regex.h): Remove the include.
6441 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6442 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6443 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6444 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6445 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6446 and target/target.h.
6447 (struct smaps_vmflags, read_mapping, decode_vmflags)
6448 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6449 (linux_find_memory_regions_full): Move from linux-tdep.c.
6450 * nat/linux-maps.h (read_mapping): New declaration.
6451 (linux_find_memory_region_ftype, enum filterflags): Moved from
6452 linux-tdep.c.
6453 (linux_find_memory_regions_full): New declaration.
6454 * target.c (target/target-utils.h): Include.
6455 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6456 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6457 definitions to target/target-utils.c.
6458 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6459 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6460 from target.c.
6461 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6462 (read_alloc): New declaration.
6463 (read_stralloc_func_ftype): New typedef.
6464 (read_stralloc): New declaration.
6465 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6466
f7af1fcd
JK
64672015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6468 Jan Kratochvil <jan.kratochvil@redhat.com>
6469
6470 Prepare linux_find_memory_regions_full & co. for move.
6471 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6472 (linux_find_memory_regions_full): Change signature and prepare
6473 for moving to linux-maps.
6474 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6475 (linux_find_memory_regions_thunk): New.
6476 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6477 (linux_find_memory_regions_gdb): New.
6478 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6479 (linux_make_mappings_corefile_notes): Use
6480 linux_find_memory_regions_gdb.
6481 * target.c (read_alloc_pread_ftype): New typedef.
6482 (target_fileio_read_alloc_1_pread): New function.
6483 (read_alloc): Refactor from target_fileio_read_alloc_1.
6484 (read_stralloc_func_ftype): New typedef.
6485 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6486 (read_stralloc): Refactored from target_fileio_read_stralloc.
6487 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6488
6e5b4429
JK
64892015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6490
6491 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6492 common/gdb_regex.h.
6493 (COMMON_OBS): Add gdb_regex.o.
6494 (gdb_regex.o): New.
6495 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6496 --without-included-regex and USE_INCLUDED_REGEX.
6497 * common/gdb_regex.c: New file from utils.c functions.
6498 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6499 file wrapping define name.
6500 * configure: Rebuilt.
6501 * configure.ac (gdb_use_included_regex, --without-included-regex)
6502 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6503 * gdb_regex.h: Move it to common/gdb_regex.h.
6504 * utils.c: Remove include gdb_regex.h.
6505 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6506 (compile_rx_or_error): Move them to common/gdb_regex.c.
6507
ddc98fbf
JK
65082015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6509 Jan Kratochvil <jan.kratochvil@redhat.com>
6510
6511 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6512 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6513 common/target-utils.h.
6514 (COMMON_OBS): Add target-utils.o.
6515 (linux-maps.o, target-utils.o): New.
6516 * target/target-utils.c: New file.
6517 * target/target-utils.h: New file.
6518 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6519 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6520 * nat/linux-maps.c: New file.
6521 * nat/linux-maps.h: New file.
6522
e7b01ce0
MM
65232015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6524 Pedro Alves <palves@redhat.com>
6525
6526 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6527 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6528 (perf_event_read_bts): Change the type of SIZE and READ.
6529 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6530 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6531 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6532 mmap page.
6533 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6534 buffer size to UINT_MAX.
6535 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6536 DATA_TAIL.
6537 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6538 <last_head>: Change type.
6539 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6540 * common/btrace-common.c (btrace_data_append): Change the type of
6541 SIZE.
6542 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6543 check.
6544
f168693b
SM
65452015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6546
6547 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6548 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6549 with check_typedef.
6550 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6551 (ada_array_length): Likewise.
6552 (find_parallel_type_by_descriptive_type): Likewise.
6553 (ada_check_typedef): Likewise.
6554 * arm-tdep.c (arm_return_in_memory): Likewise.
6555 * ax-gdb.c (gen_trace_static_fields): Likewise.
6556 (gen_struct_ref_recursive): Likewise.
6557 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6558 (variable: block COLONCOLON name): Likewise.
6559 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6560 * c-lang.c (classify_type): Likewise.
6561 * c-typeprint.c (c_print_type): Likewise.
6562 (c_print_typedef): Likewise.
6563 (c_type_print_base): Likewise.
6564 * c-valprint.c (c_val_print): Likewise.
6565 * compile/compile-c-types.c (convert_type): Likewise.
6566 * compile/compile-object-load.c (get_out_value_type): Likewise.
6567 * completer.c (add_struct_fields): Likewise.
6568 (expression_completer): Likewise.
6569 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6570 (cp_lookup_nested_symbol_1): Likewise.
6571 (cp_lookup_nested_symbol): Likewise.
6572 * cp-valprint.c (cp_print_value_fields): Likewise.
6573 (cp_print_static_field): Likewise.
6574 * d-valprint.c (d_val_print): Likewise.
6575 * eval.c (evaluate_subexp_standard): Likewise.
6576 (evaluate_subexp_for_sizeof): Likewise.
6577 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6578 * f-typeprint.c (f_type_print_base): Likewise.
6579 * f-valprint.c (f_val_print): Likewise.
6580 * gdbtypes.c (get_discrete_bounds): Likewise.
6581 (create_array_type_with_stride): Likewise.
6582 (type_name_no_tag_or_error): Likewise.
6583 (lookup_struct_elt_type): Likewise.
6584 (get_unsigned_type_max): Likewise.
6585 (internal_type_vptr_fieldno): Likewise.
6586 (set_type_vptr_fieldno): Likewise.
6587 (internal_type_vptr_basetype): Likewise.
6588 (set_type_vptr_basetype): Likewise.
6589 (get_vptr_fieldno): Likewise.
6590 (is_integral_type): Likewise.
6591 (is_scalar_type): Likewise.
6592 (is_scalar_type_recursive): Likewise.
6593 (distance_to_ancestor): Likewise.
6594 (is_unique_ancestor_worker): Likewise.
6595 (check_types_equal): Likewise.
6596 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6597
45280282
IB
65982015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6599
6600 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6601 also test for language_d.
6602 (dwarf2_compute_name): Likewise.
6603 (read_func_scope): Likewise.
6604 (read_structure_type): Likewise.
6605 (new_symbol_full): Likewise.
6606 (determine_prefix): Likewise.
6607 (read_import_statement): Use dot as the separator for language_d.
6608 (typename_concat): Likewise, but don't prefix the D main function.
6609
99fe86f7
PB
66102015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6611
6612 * nat/linux-namespaces.c (setns): Rename from this ...
6613 (do_setns): ... to this. Support calling setns if it exists.
6614 (mnsh_handle_setns): Call do_setns.
6615
d5131498
YQ
66162015-07-13 Yao Qi <yao.qi@linaro.org>
6617
6618 * exec.c (exec_file_attach): Add period at the end of error
6619 message.
6620
97605e61
AB
66212015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * tui/tui-win.c (window_name_completer): New function.
6624 (focus_completer): Call window_name_completer. All old content
6625 moved into window_name_completer.
6626 (winheight_completer): New function.
6627 (_initialize_tui_win): Rename variable. Add completer to
6628 winheight command. Update doc string on winheight.
6629
8d6dbeb4
SL
66302015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6631
6632 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6633 all nios2 mach variants.
6634
a0e28e54
KB
66352015-07-10 Kevin Buettner <kevinb@redhat.com>
6636
6637 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6638 of target_read_memory.
6639
c101f28f
AB
66402015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6643 string copy.
6644 (parse_scrolling_args): Likewise.
6645
150375dc
AB
66462015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6649 names in this function.
6650
6dce28e4
AB
66512015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6654 (CMD_NAME): Likewise.
6655 (DATA_NAME): Likewise.
6656 (DISASSEM_NAME): Likewise.
6657 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6658 (tui_set_win_height): Likewise.
6659 (parse_scrolling_args): Likewise.
6660
485668e5
MM
66612015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6662
6663 * record-btrace.c (record_btrace_goto_begin)
6664 (record_btrace_goto_end, record_btrace_goto): Move call to
6665 print_stack_frame ...
6666 (record_btrace_set_replay): ... here. Set stop_pc.
6667 * record-full.c (record_full_goto_entry): Set stop_pc.
6668
58d2eda5
PL
66692015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6670
6671 * NEWS: Mention support for tracepoints on aarch64-linux.
6672
7671bf47
PL
66732015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6674
6675 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6676 function. Return 1.
6677 (the_low_target): Install it.
6678
7890fb45
PL
66792015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6680
6681 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6682 * gdb.trace/collection.exp: Likewise.
6683 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6684 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6685 * gdb.trace/report.exp: Likewise.
6686 * gdb.trace/trace-break.exp: Likewise.
6687 * gdb.trace/unavailable.exp: Likewise.
6688 * gdb.trace/while-dyn.exp: Likewise.
6689
ea873d8e
PL
66902015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6691
6692 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6693 (aarch64_gen_return_address): New function.
6694 (aarch64_gdbarch_init): Hook it.
6695
02a2a705
PL
66962015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6697
6698 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6699 swallow NOT_AVAILABLE_ERROR.
6700 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6701 available_p is not set.
6702 (aarch64_stub_frame_unwind_stop_reason): New function.
6703 (aarch64_stub_unwind): Install it.
6704
7dfa3edc
PL
67052015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6706
6707 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6708 field.
6709 (aarch64_make_prologue_cache_1): New function, factored out from
6710 aarch64_make_prologue_cache. Do not allocate cache. Set
6711 available_p.
6712 (aarch64_make_prologue_cache): Reimplement wrapping
6713 aarch64_make_prologue_cache_1, and swallowing
6714 NOT_AVAILABLE_ERROR.
6715 (aarch64_prologue_frame_unwind_stop_reason): New function.
6716 Return UNWIND_UNAVAILABLE if available_p is not set.
6717 (aarch64_prologue_unwind): Install it.
6718 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6719 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6720 frame_id_build_unavailable_stack if available_p is not set.
6721
db634143
PL
67222015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6723
6724 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6725 fields.
6726 (aarch64_scan_prologue): Set prev_pc.
6727 (aarch64_make_prologue_cache): Set func.
6728 (aarch64_make_stub_cache): Set prev_pc.
6729 (aarch64_prologue_this_id): Remove local variables id, pc and
6730 func. Read prev_pc and func from cache.
6731 (aarch64_stub_this_id): Read prev_pc from cache.
6732
8b61f75d
PL
67332015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6734
6735 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6736 argument this_cache. Remove unused local variables reg and
6737 unwound_fp. Return early if this_cache is already set. Set
6738 this_cache.
6739 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6740
7c8edfae
PL
67412015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6742
6743 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6744 New argument this_cache. Return early if this_cache is already
6745 set. Set this_cache.
6746 (aarch64_prologue_this_id): Update call to
6747 aarch64_make_prologue_cache.
6748 (aarch64_prologue_prev_register): Likewise.
6749 (aarch64_normal_frame_base): Likewise.
6750
938c69a1
SM
67512015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * c-valprint.c (c_val_print): Factor out memberptr printing code
6754 from c_val_print to ...
6755 (c_val_print_memberptr): ... this new function.
6756
49f7fe28
SM
67572015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6758
6759 * c-valprint.c (c_val_print): Factor out int printing code to ...
6760 (c_val_print_int): ... this new function.
6761
9e4f353c
SM
67622015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6763
6764 * c-valprint.c (c_val_print): Factor out struct and union
6765 printing code to ...
6766 (c_val_print_struct): ... this new function ...
6767 (c_val_print_union): ... and this new function.
6768
1c67f032
SM
67692015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6770
6771 * c-valprint.c (c_val_print): Factor out pointer printing code
6772 to ...
6773 (c_val_print_ptr): ... this new function.
6774
0b6ef777
SM
67752015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6776
6777 * c-valprint.c (c_valprint): Factor our array printing code from
6778 c_val_print to ...
6779 (c_val_print_array): ... this new function.
6780
1033c33c
SM
67812015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6782
6783 * c-valprint.c (c_val_print): Factor out pointer printing code
6784 to ...
6785 (print_unpacked_pointer): ... this new function.
6786
f6b93c34
SM
67872015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6788
6789 * c-valprint.c (c_val_print): Remove an assignment to i and move
6790 its declaration.
6791
0f4576e3
YQ
67922015-07-09 Yao Qi <yao.qi@linaro.org>
6793
6794 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6795 argument ptid. Update comments. Caller update.
6796
37fdfe4c
MM
67972015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6798
6799 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6800 mnt packets.
6801
80a2b330
MM
68022015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6803
6804 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6805
4ab31498
SM
68062015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6807
6808 * progspace.c (delete_program_space): Add missing spaces.
6809
7a41607e
SM
68102015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6811
6812 * inferior.c (delete_inferior_1): Rename to ...
6813 (delete_inferior): ..., remove 'silent' parameter, delete
6814 program space when unused and remove call to prune_program_spaces.
6815 Remove the old, unused, delete_inferior.
6816 (delete_inferior_silent): Remove.
6817 (prune_inferiors): Change call from delete_inferior_1 to
6818 delete_inferior and remove 'silent' parameter. Remove call to
6819 prune_program_spaces.
6820 (remove_inferior_command): Idem.
6821 * inferior.h (delete_inferior_1): Rename to...
6822 (delete_inferior): ..., remove 'silent' parameter and remove the
6823 original delete_inferior.
6824 (delete_inferior_silent): Remove.
6825 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6826 delete_inferior_1 to delete_inferior and remove 'silent'
6827 parameter.
6828 * progspace.c (prune_program_spaces): Remove.
6829 (pspace_empty_p): Rename to...
6830 (program_space_empty_p): ... and make non-static.
6831 (delete_program_space): New.
6832 * progspace.h (prune_program_spaces): Remove declaration.
6833 (program_space_empty_p): New declaration.
6834 (delete_program_space): New declaration.
6835 * monitor.c (monitor_close): Replace call to
6836 delete_thread_silent and delete_inferior_silent with
6837 discard_all_inferiors.
6838
a9bd710f
PP
68392015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6840
6841 * defs.h (deprecated_register_changed_hook): Remove prototype.
6842 * interps.c (clear_iterpreter_hooks): Remove reference to
6843 deprecated_register_changed_hook.
6844 * top.c (deprecated_register_changed_hook): Remove prototype.
6845 * valops.c (value_assign): Remove reference to
6846 deprecated_register_changed_hook.
6847 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6848 Add comment documenting the function.
6849 (tui_register_changed_observer): Define.
6850 (tui_install_hooks): Remove reference to
6851 deprecated_register_changed_hook. Set
6852 tui_register_changed_observer.
6853 (tui_remove_hooks): Remove reference to
6854 deprecated_register_changed_hook. Unset
6855 tui_register_changed_observer.
6856
08464196
JK
68572015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6858
6859 PR compile/18484
6860 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6861
bcf5c1d9
RC
68622015-07-08 Robert O'Callahan <robert@ocallahan.org>
6863
6864 PR exp/18617
6865 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6866
e8643a45
MM
68672015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6868
6869 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6870
76fb6829
MM
68712015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6872
6873 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6874 Use safe_strerror() instead of strerror().
6875
82c40d4b
YQ
68762015-07-07 Yao Qi <yao.qi@linaro.org>
6877
6878 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6879 * features/arm-with-m-fpa-layout.c: Regenerated.
6880 * features/arm-with-m-vfp-d16.xml: Likewise.
6881 * features/arm-with-m-vfp-d16.c: Regenerated.
6882 * features/arm-with-m.xml: Likewise.
6883 * features/arm-with-m.c: Regenerated.
6884 * features/arm-with-neon.xml: Likewise.
6885 * features/arm-with-neon.c: Regenerated.
6886 * features/arm-with-vfpv2.xml: Likewise.
6887 * features/arm-with-vfpv2.c: Regenerated.
6888 * features/arm-with-vfpv3.xml: Likewise.
6889 * features/arm-with-vfpv3.c: Regenerated.
6890
607685ec
YQ
68912015-07-07 Yao Qi <yao.qi@linaro.org>
6892
6893 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6894 arm-linux-nat.c.
6895 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6896 elf/external.h.
6897 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6898 if target is 32-bit.
6899 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6900 if target is 32-bit.
6901 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6902 if target is 32-bit.
6903 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6904 if target is 32-bit.
6905 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6906 (aarch64_linux_read_description): Return the right target
6907 description.
6908 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6909 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6910 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6911 arm-linux-tdep.o.
6912
f1b67888
YQ
69132015-07-07 Yao Qi <yao.qi@linaro.org>
6914
6915 * aarch32-linux-nat.c: New file.
6916 * aarch32-linux-nat.h: New file.
6917 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6918 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6919 aarch32_gp_regcache_supply.
6920 (store_regs): Move code to aarch32-linux-nat.c. Call
6921 aarch32_gp_regcache_collect.
6922 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6923 aarch32_vfp_regcache_supply.
6924 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6925 aarch32_vfp_regcache_collect.
6926 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6927
179bfe82
YQ
69282015-07-07 Yao Qi <yao.qi@linaro.org>
6929
6930 * arm-linux-nat.c (store_fpregister): Remove.
6931 (store_register): Likewise.
6932 (fetch_fpregister): Likewise.
6933 (fetch_register): Likewise.
6934 (arm_linux_store_inferior_registers): Call store_regs and
6935 store_fpregs instead.
6936 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6937 fetch_regs instead.
6938
6008fc5f
AB
69392015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6940
6941 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6942 and focus commands.
6943
7c79d316
JB
69442015-07-06 Joel Brobecker <brobecker@adacore.com>
6945
6946 * NEWS: Create a new section for the next release branch.
6947 Rename the section of the current branch, now that it has
6948 been cut.
6949
f2232bea
JB
69502015-07-06 Joel Brobecker <brobecker@adacore.com>
6951
6952 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6953 * version.in: Bump version to 7.10.50.DATE-cvs.
6954
66c4b3e8
LM
69552015-07-06 Luis Machado <lgustavo@codesourcery.com>
6956
6957 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6958 breakpoints in a special way.
6959 (remove_breakpoint): Likewise.
6960 (mark_breakpoints_out): Likewise.
6961
bcd8537c
AB
69622015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * doc/gdb.texinfo (TUI): Add comma after @xref.
6965
10e9aaa3
AB
69662015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6969 instead of casting the structure type.
6970
8a13d42d
SM
69712015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * valops.c (search_struct_field): Remove OFFSET parameter.
6974 (value_cast_structs): Adjust calls to search_struct_field.
6975 (value_struct_elt): Same.
6976 (find_overload_match): Same.
6977
a844296a
SM
69782015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6979
6980 * value.c (value_fetch_lazy): Update comment, change return
6981 value to void.
6982 * value.h (value_fetch_lazy): Change return value to void.
6983
f41cbf58
AB
69842015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6985
6986 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6987 (tui_win_name): Make parameter and result const.
6988 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6989
118ca224
PP
69902015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6991
6992 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6993 use printf_unfiltered.
6994 (set_mpx_cmd): Add missing trailing space to command string
6995 literal.
6996 (_initialize_i386_tdep): Give the "mpx" prefix command its
6997 correct name.
6998
1b485e67
KB
69992015-07-02 Kevin Buettner <kevinb@redhat.com>
7000
7001 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7002 (enum rx_frame_type): New.
7003 (struct rx_prologue): Add new field `frame_type'.
7004 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7005 parameter in the prologue struct. Add code for recording
7006 locations of PC and PSW for fast interrupt and exception frames.
7007 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7008 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7009 (rx_frame_type): New function.
7010 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7011 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7012 `this_cache'.
7013 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 7014 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
7015 RX_FRAME_TYPE_FAST_INTERRUPT.
7016 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7017 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7018 (rx_frame_unwind): Use rx_frame_sniffer instead of
7019 default_frame_sniffer.
7020 (rx_frame_unwind): New unwinder.
7021 (rx_gdbarch_init): Register new unwinder.
7022
0561fea4
KB
70232015-07-02 Kevin Buettner <kevinb@redhat.com>
7024
7025 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7026 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7027 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7028 and RX_FPSW_REGNUM.
7029 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7030
decf8d9a
JK
70312015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7032
7033 Fix GCC false warning.
7034 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7035
2fd0f80d
YQ
70362015-07-02 Yao Qi <yao.qi@linaro.org>
7037
7038 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7039 typo in the debugging message.
7040
b0627500
MM
70412015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7042
7043 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7044 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7045 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7046 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7047 (btrace_maint_clear): New.
7048 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7049 (pt_print_packet, btrace_maint_decode_pt)
7050 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7051 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7052 (maint_btrace_packet_history_cmd)
7053 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7054 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7055 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7056 (maint_info_btrace_cmd, _initialize_btrace): New.
7057 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7058 (btrace_maint_packet_history, btrace_maint_info): New.
7059 (btrace_thread_info) <maint>: New.
7060 * NEWS: Announce it.
7061
9be54cae
MM
70622015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7063
7064 * btrace.c (btrace_fetch): Append the new trace data.
7065 (btrace_clear): Clear the stored trace data.
7066 * btrace.h (btrace_thread_info) <data>: New.
7067 * common/btrace-common.h (btrace_data_clear)
7068 (btrace_data_append): New.
7069 * common/btrace-common.c (btrace_data_clear)
7070 (btrace_data_append): New.
7071
010a18a1
MM
70722015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7073
7074 * nat/linux-btrace.c (linux_enable_bts): Check for
7075 PERF_ATTR_SIZE_VER5.
7076 Check for data_offset and data_size fields. Use them.
7077
b20a6524
MM
70782015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7079
7080 * NEWS: Announce new commands "record btrace pt" and "record pt".
7081 Announce new options "set|show record btrace pt buffer-size".
7082 * btrace.c: Include "rsp-low.h".
7083 Include "inttypes.h".
7084 (btrace_add_pc): Add forward declaration.
7085 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7086 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7087 (btrace_compute_ftrace_pt): New.
7088 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7089 (check_xml_btrace_version): Update version check.
7090 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7091 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7092 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7093 (btrace_pt_children): New.
7094 (btrace_children): Add support for "pt".
7095 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7096 (btrace_conf_children): Add support for "pt".
7097 * btrace.h: Include "intel-pt.h".
7098 (btrace_pt_error): New.
7099 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7100 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7101 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7102 (struct btrace_config_pt): New.
7103 (struct btrace_config)<pt>: New.
7104 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7105 (struct btrace_data)<pt>: New.
7106 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7107 (pt): New.
7108 * features/btrace.dtd (btrace)<pt>: New.
7109 (pt, pt-config, cpu): New.
7110 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7111 (perf_event_pt_event_type, kernel_supports_pt)
7112 (linux_supports_pt): New.
7113 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7114 (linux_enable_bts): Free tinfo on error.
7115 (linux_enable_pt): New.
7116 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7117 (linux_disable_pt): New.
7118 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7119 (linux_fill_btrace_pt_config, linux_read_pt): New.
7120 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7121 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7122 (struct btrace_target_info)<pt>: New.
7123 * record-btrace.c (set_record_btrace_pt_cmdlist)
7124 (show_record_btrace_pt_cmdlist): New.
7125 (record_btrace_print_pt_conf): New.
7126 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7127 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7128 (cmd_record_btrace_pt_start): New.
7129 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7130 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7131 (_initialize_record_btrace): Add new commands.
7132 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7133 (remote_protocol_features): Add "Qbtrace:pt".
7134 Add "Qbtrace-conf:pt:size".
7135 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7136 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7137 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7138 (_initialize_remote): Add new commands.
7139
58bfce93
MM
71402015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7141
7142 * configure.ac: check for libipt
7143 * configure: Regenerate.
7144 * config.in: Regenerate.
7145 * Makefile.in (LIBIPT): New.
7146 (CLIBS): Add $LIBIPT.
7147 * NEWS: document new configure options
7148
b0fd6b30
JK
71492015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7150
7151 * compile/compile-object-load.c (compile_object_load): Replace debug
7152 message "lookup undefined ELF symbol" by 3 more specific messages.
7153
e6280369
KB
71542015-07-01 Kevin Buettner <kevinb@redhat.com>
7155
7156 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7157 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7158 (rl78_gdbarch_init): Initialize rl78_psw_type.
7159
bbcbf914
PP
71602015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7161
7162 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7163 Update commentary. Always refresh the registers when frame
7164 information has changed.
7165 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7166 Change return type to int. Return 1 if frame information has
7167 changed, 0 otherwise.
7168 (tui_before_prompt): Update commentary.
7169 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7170 int.
7171
0986c744
PP
71722015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7173
7174 PR tui/13378
7175 * frame.c (select_frame): Remove reference to
7176 deprecated_selected_frame_level_changed_hook.
7177 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7178 declaration.
7179 * stack.c (deprecated_selected_frame_level_changed_hook):
7180 Likewise.
7181 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7182 Rename to ...
7183 (tui_refresh_frame_and_register_information): ... this. Bail
7184 out if there is no stack. Don't update register information
7185 unless registers_too_p is true.
7186 (tui_print_frame_info_listing_hook): Rename to ...
7187 (tui_dummy_print_frame_info_listing_hook): ... this.
7188 (tui_before_prompt): New function.
7189 (tui_normal_stop): New function.
7190 (tui_before_prompt_observer): New observer.
7191 (tui_normal_stop_observer): New observer.
7192 (tui_install_hooks): Set
7193 deprecated_print_frame_info_listing_hook to
7194 tui_dummy_print_frame_info_listing_hook. Register
7195 tui_before_prompt_observer to call tui_before_prompt and
7196 tui_normal_stop_observer to call tui_normal_stop. Remove
7197 reference to deprecated_selected_frame_level_changed_hook.
7198 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7199 and tui_normal_stop_observer. Remove reference to
7200 deprecated_selected_frame_level_changed_hook.
7201
b5fca6d7
PP
72022015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7203
7204 PR tui/13378
7205 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7206 return an int instead of void. Return whether the locator
7207 window has changed.
7208 (tui_show_frame_info): If the locator info has not changed, then
7209 bail out early to avoid refreshing the windows.
7210
c45613e3
PP
72112015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7212
7213 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7214 LOCATOR_WIN to tui_alloc_content.
7215
7b9be803
YQ
72162015-06-30 Yao Qi <yao.qi@linaro.org>
7217
7218 PR tdep/18605
7219 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7220 instructions.
7221
fd6e021d
KB
72222015-06-29 Kevin Buettner <kevinb@redhat.com>
7223
78ab7e9d
KB
7224 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7225 (rx_dwarf_reg_to_regnum): New function.
7226 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7227 unwinding.
fd6e021d 7228
28bf096c
PA
72292015-06-29 Pedro Alves <palves@redhat.com>
7230
7231 PR threads/18127
7232 * infcall.c (run_inferior_call): On infcall success, if the thread
7233 was marked stopped before, reset it back to stopped.
7234 * infrun.c (resume): Don't suppress the set_running calls when
7235 doing an infcall.
7236 (normal_stop): Only discard the finish_thread_state cleanup if the
7237 infcall succeeded.
7238
2880b51c 72392015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
7240
7241 * MAINTAINERS (Write After Approval): Update my email address.
7242
ee93cd5e
KS
72432015-06-26 Keith Seitz <keiths@redhat.com>
7244 Doug Evans <dje@google.com>
7245
7246 PR 16253
7247 * block.c (block_lookup_symbol): For non-function blocks,
7248 continue to search for a symbol with an exact domain match
7249 Otherwise, return any previously found "best domain" symbol.
7250 (block_lookup_symbol_primary): Likewise.
7251
fc637f04
PP
72522015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7253
7254 * NEWS: Mention the new option "history remove-duplicates".
7255 * top.c (history_remove_duplicates): New static variable.
7256 (show_history_remove_duplicates): New static function.
7257 (gdb_add_history): Conditionally remove duplicate history
7258 entries.
7259 (init_main): Add "history remove-duplicates" option.
7260
2e52ae68
PP
72612015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7262
7263 * tui/tui-win.c (focus_completer): New static function.
7264 (_initialize_tui_win): Set the completion function of the
7265 "focus" command to focus_completer.
7266
6e22494e
JK
72672015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7268
7269 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7270 and language_asm..
7271 * symtab.c (find_function_start_sal): Likewise.
7272
f8773be1
GB
72732015-06-25 Gary Benson <gbenson@redhat.com>
7274
7275 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7276 it is the empty string after trailing slashes have been stripped.
7277
a3be80c3
GB
72782015-06-25 Gary Benson <gbenson@redhat.com>
7279
7280 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7281 * infrun.c (follow_exec): Likewise.
7282 * remote.c (remote_filesystem_is_local): Likewise.
7283 * solib.c (solib_find_1): Likewise.
7284
32fad71f
KS
72852015-06-24 Keith Seitz <keiths@redhat.com>
7286
7287 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7288 return value from lrealpath.
7289
87d1b309
MF
72902015-06-24 Mike Frysinger <vapier@gentoo.org>
7291
7292 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7293
23bf70af
MF
72942015-06-24 Mike Frysinger <vapier@gentoo.org>
7295
7296 * remote-sim.c: Include gdb_bfd.h.
7297 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7298 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7299
5cd867b4
YQ
73002015-06-24 Yao Qi <yao.qi@linaro.org>
7301
7302 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7303 set_gdbarch_get_siginfo_type.
7304 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7305 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7306 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7307 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7308 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7309 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7310 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7311 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7312 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7313 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7314
dc06243f
GB
73152015-06-24 Gary Benson <gbenson@redhat.com>
7316
7317 * common/buffer.c (stdint.h): Do not include.
7318 * common/print-utils.c (stdint.h): Likewise.
7319 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7320 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7321 * ft32-tdep.c (gdb_assert.h): Likewise.
7322 * guile/scm-utils.c (stdint.h): Likewise.
7323 * i386-linux-tdep.c (stdint.h): Likewise.
7324 * i386-tdep.c (stdint.h): Likewise.
7325 * nat/linux-btrace.c (stdint.h): Likewise.
7326 * nat/linux-btrace.h (stdint.h): Likewise.
7327 * nat/linux-ptrace.c (stdint.h): Likewise.
7328 * nat/mips-linux-watch.h (stdint.h): Likewise.
7329 * ppc-linux-nat.c (stdint.h): Likewise.
7330 * python/python-internal.h (stdint.h): Likewise.
7331 * stub-termcap.c (stdlib.h): Likewise.
7332 * target/target.h (stdint.h): Likewise.
7333 * xtensa-linux-nat.c (stdint.h): Likewise.
7334
0fc26caf
PP
73352015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7336
7337 * top.c (init_history): Look at errno after calling strtol to
7338 properly map large GDBHISTSIZE values to infinity.
7339
a38fe4fe
DE
73402015-06-23 Doug Evans <dje@google.com>
7341
7342 * inferior.h (struct inferior_suspend_state): Delete, unused.
7343 All references deleted.
7344
7564fe45
MF
73452015-06-23 Mike Frysinger <vapier@gentoo.org>
7346
7347 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7348 (microblaze_push_dummy_call): Likewise.
7349 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7350 and set_gdbarch_push_dummy_call.
7351
0bdb2f78
YQ
73522015-06-23 Yao Qi <yao.qi@linaro.org>
7353
7354 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7355 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7356 (amd64_linux_store_inferior_registers): Likewise.
7357 * arm-linux-nat.c (fetch_fpregister): Likewise.
7358 (fetch_fpregs, store_fpregister): Likewise.
7359 (store_fpregister, store_fpregs): Likewise.
7360 (fetch_register, fetch_regs): Likewise.
7361 (store_register, store_regs): Likewise.
7362 (fetch_vfp_regs, store_vfp_regs): Likewise.
7363 (arm_linux_read_description): Check have_ptrace_getregset is
7364 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7365 or TRIBOOL_FALSE.
7366 * i386-linux-nat.c (fetch_xstateregs): Check
7367 have_ptrace_getregset is not TRIBOOL_TRUE.
7368 (store_xstateregs): Likewise.
7369 * linux-nat.c (have_ptrace_getregset): Change its type to
7370 enum tribool.
7371 * linux-nat.h (tribool): New enum.
7372 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7373 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7374
18a94d75
DE
73752015-06-19 Doug Evans <dje@google.com>
7376
7377 * NEWS: Mention Sun's version of stabs is no longer supported.
7378 * elfread.c (free_elfinfo): Delete. All uses updated.
7379 (elfstab_offset_sections): Delete. All uses updated.
7380 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7381 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7382 All uses updated.
7383 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7384 All callers updated.
7385
124e13d9
SM
73862015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * common/rsp-low.c (needs_escaping): New.
7389 (remote_escape_output): Add unit_size parameter. Refactor to
7390 support multi-byte addressable units. Rename parameters.
7391 * common/rsp-low.h (remote_escape_output): Add unit_size
7392 parameter and rename others. Update doc.
7393 * remote.c (align_for_efficient_write): New.
7394 (remote_write_bytes_aux): Add unit_size parameter and use it.
7395 Rename some variables. Update doc.
7396 (remote_xfer_partial): Get unit size and use it.
7397 (remote_read_bytes_1): Add unit_size parameter and use it.
7398 Rename some variables. Update doc.
7399 (remote_write_bytes): Same.
7400 (remote_xfer_live_readonly_partial): Same.
7401 (remote_read_bytes): Same.
7402 (remote_flash_write): Update call to remote_write_bytes_aux.
7403 (remote_write_qxfer): Update call to remote_escape_output.
7404 (remote_search_memory): Same.
7405 (remote_hostio_pwrite): Same.
7406
6ae88661
LM
74072015-06-17 Luis Machado <lgustavo@codesourcery.com>
7408
7409 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7410 locations as inserted.
7411 Update and expand comment about permanent locations.
7412 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7413 Move comment to add_location_to_breakpoint.
7414 (update_global_location_list): Don't error out if a permanent
7415 breakpoint is not marked inserted.
7416 Don't error out if a non-permanent breakpoint location is inserted on
7417 top of a permanent breakpoint.
7418
da4616f6
LM
74192015-06-17 Luis Machado <lgustavo@codesourcery.com>
7420
7421 * breakpoint.c (make_breakpoint_permanent): Remove unused
7422 function.
7423 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7424
bc460514
PP
74252015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7426
7427 PR gdb/16999
7428 * NEWS: Mention new GDBHISTSIZE behavior.
7429 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7430 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7431
b58c513b
PP
74322015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7433
7434 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7435 * top.c (init_history): Read from GDBHISTSIZE instead of
7436 HISTSIZE.
7437 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7438
2093d2d3
PP
74392015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7440
7441 * top.c (gdb_safe_append_history): Do not call
7442 history_truncate_file if the history is not stifled.
7443
fc248485
AA
74442015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7445
7446 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7447 * syscalls/s390x-linux.xml: Likewise.
7448
4da680ad
ME
74492015-06-16 Michael Eager <eager@eagercon.com>
7450
7451 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7452
0a75489f
PP
74532015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7454
7455 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7456 target_terminal_ours_for_output() before calling
7457 tui_show_frame_info(), and restore the original terminal
7458 settings afterwards.
7459
95855ca8
MS
74602015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7461
7462 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7463
cfc32360
SM
74642015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7465
7466 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7467 memory unit size.
7468 (mi_cmd_data_write_memory_bytes): Same.
7469
cb6f16cf
SM
74702015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7471
7472 * corefile.c (write_memory): Update doc.
7473 * gdbcore.h (write_memory): Same.
7474
31b7833d
JK
74752015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7476
7477 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7478 (dump_mapping_p): Use it for parameter filterflags.
7479 (linux_find_memory_regions_full): Use it for variable filterflags.
7480
909c2cda
JK
74812015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7482 Jan Kratochvil <jan.kratochvil@redhat.com>
7483
7484 Merge multiple hex conversions.
7485 * monitor.c: Include rsp-low.h.
7486 (fromhex): Remove definition.
7487
03aef70f
JK
74882015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7489 Jan Kratochvil <jan.kratochvil@redhat.com>
7490
7491 Move utility functions to common/.
7492 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7493 Move defs to common/common-utils.c.
7494 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7495 (skip_to_space_const): Move decls to common/common-utils.h.
7496 * common/common-defs.h: Move include of common-types.h before
7497 common-utils.h.
7498 * common/common-utils.c: Include host-defs.h and ctype.h.
7499 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7500 from utils.c.
7501 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7502 cli/cli-utils.c.
7503 * common/common-utils.h (strtoulst): Move decl from utils.h.
7504 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7505 Move from cli/cli-utils.h.
7506 * common/host-defs.h: Include limits.h.
7507 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7508 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7509 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7510 common/common-utils.h.
7511 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7512 (strtoulst): Move to common/common-utils.c.
7513 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7514
d1168cc1
YQ
75152015-06-15 Yao Qi <yao.qi@linaro.org>
7516
7517 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7518
c74f7d1c
JT
75192015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7520
7521 * build-id.c: Don't include elf-bfd.h.
7522 (build_id_bfd_get): Use bfd_build_id.
7523 (build_id_verify): Ditto.
7524 * build-id.h: Ditto.
7525 (find_separate_debug_file_by_buildid): Ditto.
7526 * python/py-objfile.c: Don't include elf-bfd.h.
7527 (objfpy_get_build_id) Use bfd_build_id.
7528 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7529 * coffread.c: Include build-id.h.
7530 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7531
f20c58f5
JT
75322015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7533
7534 * windows-nat.c (do_windows_fetch_inferior_registers)
7535 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7536 conditional with __CYGWIN__.
7537
51f0e40d
AB
75382015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7539
7540 * completer.c: Add arch-utils.h include.
7541 (enum reg_completer_targets): New enum.
7542 (reg_or_group_completer_1): New function containing old
7543 reg_or_group_completer, add and use new parameter to control what
7544 is completed on. Use get_current_arch rather than architecture of
7545 currently selected frame.
7546 (reg_or_group_completer): Call new reg_or_group_completer_1.
7547 (reggroup_completer): Call new reg_or_group_completer_1.
7548 * completer.h (reggroup_completer): Add declaration.
7549 * tui/tui-regs.c: Add 'completer.h' include.
7550 (tui_reg_next_command): Renamed to...
7551 (tui_reg_next): ...this. Adjust parameters and return rather than
7552 display new group.
7553 (tui_reg_prev_command): Renamed to...
7554 (tui_reg_prev): ...this. Adjust parameters and return rather than
7555 display new group.
7556 (tui_reg_float_command): Delete.
7557 (tui_reg_general_command): Delete.
7558 (tui_reg_system_command): Delete.
7559 (tui_reg_command): Rewrite to perform switching of register group.
7560 Add header comment.
7561 (tuireglist): Remove.
7562 (tui_reggroup_completer): New function.
7563 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7564 creation of 'tui reg' command.
7565 * NEWS: Add comment about 'tui reg' changes.
7566
d309493c
SM
75672015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7568
7569 * target.c (target_read): Consider addressable unit size when
7570 reading from a memory object.
7571 (read_memory_robust): Same.
7572 (read_whatever_is_readable): Same.
7573 (target_write_with_progress): Consider addressable unit size
7574 when writing to a memory object.
7575 * target.h (target_read): Update documentation.
7576 (target_write): Add documentation.
7577
3374165f
SM
75782015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7579
7580 * arch-utils.h (default_addressable_memory_unit_size): New.
7581 * arch-utils.c (default_addressable_memory_unit_size): New.
7582 * gdbarch.sh (addressable_memory_unit_size): New.
7583 * gdbarch.h: Re-generate.
7584 * gdbarch.c: Re-generate.
7585
279a6fed
SM
75862015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7587
7588 * target.c (target_read): Rename variables and use
7589 TARGET_XFER_E_IO.
7590 (target_read_with_progress): Same.
7591 (read_memory_robust): Constify parameters and rename
7592 variables.
7593 (read_whatever_is_readable): Constify parameters,
7594 rename variables, adjust formatting.
7595 * target.h (read_memory_robust): Constify parameters.
7596
1e5338b6 75972015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7598
7599 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7600 synthetic (non-AltiVec) vector types.
7601 (ppc64_sysv_abi_return_value): Likewise.
7602
98aa42ee
AT
76032015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7604
7605 PR breakpoints/16465
7606 * breakpoint.c (create_breakpoint): Save extra_string for
7607 pending breakpoints.
7608
966f0aef
WT
76092015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7610
7611 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7612 and bt_mask to CORE_ADDR.
7613
6449ed0d
GB
76142015-06-11 Gary Benson <gbenson@redhat.com>
7615
7616 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7617 (mnsh_recv_message): Likewise.
7618
34f8ac9f
WT
76192015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7620
7621 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7622 long long int and plongest instead of %ll.
7623
198c808c
GB
76242015-06-11 Gary Benson <gbenson@redhat.com>
7625
7626 * nat/linux-namespaces.c (gdb_wait.h): New include.
7627 (sys/wait.h): Do not include.
7628
e815d2d2
SM
76292015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7630
7631 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7632 end_sequence is true.
7633
8847cac2
JK
76342015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7635
7636 Code cleanup.
7637 * solib-target.c (library_list_start_list): Use explicit NULL
7638 comparison.
7639
24c05f46
JK
76402015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7641
7642 * solib-target.c (library_list_start_list): Do not dereference
7643 variable version in its initialization. Make the VERSION check handle
7644 NULL.
7645 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7646
51aad7cc
GB
76472015-06-10 Gary Benson <gbenson@redhat.com>
7648
7649 * NEWS: Announce support for direct access of executable and
7650 shared library files when attaching to inferiors in containers
7651 on GNU/Linux systems.
7652
15a201c8
GB
76532015-06-10 Gary Benson <gbenson@redhat.com>
7654
7655 * remote.c (struct remote_state) <fs_pid>: New field.
7656 (new_remote_state): Initialize the above.
7657 (PACKET_vFile_setfs): New enum value.
7658 (remote_hostio_set_filesystem): New function.
7659 (remote_hostio_open): Call the above.
7660 (remote_hostio_unlink): Likewise.
7661 (remote_hostio_readlink): Likewise.
7662 (_initialize_remote): Register new "set/show remote
7663 hostio-setfs-packet" command.
7664 * NEWS: Announce new vFile:setfs packet.
7665
7a6a1731
GB
76662015-06-10 Gary Benson <gbenson@redhat.com>
7667
7668 * linux-nat.c (nat/linux-namespaces.h): New include.
7669 (fileio.h): Likewise.
7670 (linux_nat_filesystem_is_local): New function.
7671 (linux_nat_fileio_pid_of): Likewise.
7672 (linux_nat_fileio_open): Likewise.
7673 (linux_nat_fileio_readlink): Likewise.
7674 (linux_nat_fileio_unlink): Likewise.
7675 (linux_nat_add_target): Initialize to_filesystem_is_local,
7676 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7677 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7678 commands.
7679 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7680
07c138c8
GB
76812015-06-10 Gary Benson <gbenson@redhat.com>
7682
7683 * target.h (struct inferior): New forward declaration.
7684 (struct target_ops) <to_filesystem_is_local>: Update comment.
7685 (struct target_ops) <to_fileio_open>: New argument inf.
7686 Update comment. All implementations updated.
7687 (struct target_ops) <to_fileio_unlink>: Likewise.
7688 (struct target_ops) <to_fileio_readlink>: Likewise.
7689 (target_filesystem_is_local): Update comment.
7690 (target_fileio_open): New argument inf. Update comment.
7691 (target_fileio_unlink): Likewise.
7692 (target_fileio_readlink): Likewise.
7693 (target_fileio_read_alloc): Likewise.
7694 (target_fileio_read_stralloc): Likewise.
7695 * target.c (target_fileio_open): New argument inf.
7696 Pass inf to implementation. Update debug printing.
7697 (target_fileio_unlink): Likewise.
7698 (target_fileio_readlink): Likewise.
7699 (target_fileio_read_alloc_1): New argument inf. Pass inf
7700 to target_fileio_open.
7701 (target_fileio_read_alloc): New argument inf. Pass inf to
7702 target_fileio_read_alloc_1.
7703 (target_fileio_read_stralloc): Likewise.
7704 * gdb_bfd.c (inferior.h): New include.
7705 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7706 argument with new argument "inferior". Pass inferior to
7707 target_fileio_open.
7708 (gdb_bfd_open): Supply inferior argument to
7709 gdb_bfd_iovec_fileio_open.
7710 * linux-tdep.c (linux_info_proc): Supply inf argument to
7711 relevant target_fileio calls.
7712 (linux_find_memory_regions_full): Likewise.
7713 (linux_fill_prpsinfo): Likewise.
7714 * remote.c (remote_filesystem_is_local): Supply inf
7715 argument to remote_hostio_open.
7716 (remote_file_put): Likewise.
7717 (remote_file_get): Likewise.
7718 (remote_file_delete): Supply inf argument to
7719 remote_hostio_unlink.
7720
12e2a5fd
GB
77212015-06-10 Gary Benson <gbenson@redhat.com>
7722
7723 * inf-child.c (inf_child_fileio_open): Replace comment.
7724 (inf_child_fileio_pwrite): Likewise.
7725 (inf_child_fileio_pread): Likewise.
7726 (inf_child_fileio_fstat): Insert blank line before comment.
7727 (inf_child_fileio_close): Replace comment.
7728 (inf_child_fileio_unlink): Likewise.
7729 (inf_child_fileio_readlink): Likewise.
7730 * remote.c (remote_hostio_open): Likewise.
7731 (remote_hostio_pread): Likewise.
7732 (remote_hostio_pwrite): Likewise.
7733 (remote_hostio_close): Likewise.
7734 (remote_hostio_unlink): Likewise.
7735 (remote_hostio_readlink): Likewise.
7736 (remote_hostio_fstat): Likewise.
7737 (remote_filesystem_is_local): Likewise.
7738 * target.c (target_fileio_open): Likewise.
7739 (target_fileio_pwrite): Likewise.
7740 (target_fileio_pread): Likewise.
7741 (target_fileio_fstat): Insert blank line before comment.
7742 (target_fileio_close): Replace comment.
7743 (target_fileio_unlink): Likewise.
7744 (target_fileio_readlink): Likewise.
7745 (target_fileio_read_alloc): Likewise.
7746 (target_fileio_read_stralloc): Likewise.
7747
9bc3a976
GB
77482015-06-10 Gary Benson <gbenson@redhat.com>
7749
7750 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7751 (check_pid_namespace_match): Use linux_ns_same rather than
7752 linux_proc_pid_get_ns to spot PID namespace mismatches.
7753 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7754 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7755
4b8b5e72
GB
77562015-06-10 Gary Benson <gbenson@redhat.com>
7757
7758 * configure.ac (AC_CHECK_FUNCS): Add setns.
7759 * config.in: Regenerate.
7760 * configure: Likewise.
7761 * nat/linux-namespaces.h: New file.
7762 * nat/linux-namespaces.c: Likewise.
7763 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7764 (linux-namespaces.o): New rule.
7765 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7766 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7767 * config/arm/linux.mh (NATDEPFILES): Likewise.
7768 * config/i386/linux.mh (NATDEPFILES): Likewise.
7769 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7770 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7771 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7772 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7773 * config/mips/linux.mh (NATDEPFILES): Likewise.
7774 * config/pa/linux.mh (NATDEPFILES): Likewise.
7775 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7776 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7777 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7778 * config/s390/linux.mh (NATDEPFILES): Likewise.
7779 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7780 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7781 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7782 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7783
ca095836
GB
77842015-06-10 Gary Benson <gbenson@redhat.com>
7785
7786 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7787 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7788 (make_cleanup_close): Likewise.
7789 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7790 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7791 (make_cleanup_close): Likewise.
7792
5d9c55d3
JT
77932015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7794
7795 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7796 from SuspendThread().
7797
040ea00b
JT
77982015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7799
7800 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7801 from OutputDebugString.
7802
7d73c23c
WT
78032015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7804 Mircea Gherzan <mircea.gherzan@intel.com>
7805
7806 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7807 MPX_BT_MASK_32): New macros.
7808 (i386_mpx_set_bounds): New function that implements
7809 the command "set-mpx-bound".
7810 (i386_mpx_enabled): Helper function to test MPX availability.
7811 (i386_mpx_bd_base): Helper function to calculate the base directory
7812 address.
7813 (i386_mpx_get_bt_entry): Helper function to access a bound
7814 table entry.
7815 (i386_mpx_print_bounds): Effectively display bound information.
7816 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7817 "show mpx".
7818 (_initialize_i386_tdep):
7819 Add "bound" to the commands "show mpx" and "set mpx" commands.
7820 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7821 and "show mpx" commands.
7822 * NEWS: List new commands for MPX support.
7823
3ac2e371
GB
78242015-06-09 Gary Benson <gbenson@redhat.com>
7825
7826 * common/fileio.h (fileio_to_host_mode): New declaration.
7827 * common/fileio.c (fileio_to_host_mode): New Function.
7828 * inf-child.c (inf_child_fileio_open): Process mode argument
7829 with fileio_to_host_mode.
7830
ecef18c5
GB
78312015-06-09 Gary Benson <gbenson@redhat.com>
7832
7833 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7834 conditional.
7835
e3dd7556
GB
78362015-06-05 Gary Benson <gbenson@redhat.com>
7837
7838 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7839 * remote.c (remote_filesystem_is_local): ...here.
7840
5b74bf7d
YQ
78412015-06-04 Yao Qi <yao.qi@linaro.org>
7842
7843 * gdbarch.c: Regenerate it.
7844
7f361056
JK
78452015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7846
7847 * arch-utils.c (default_infcall_munmap): New.
7848 * arch-utils.h (default_infcall_munmap): New declaration.
7849 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7850 (munmap_list_free, munmap_listp_free_cleanup): New.
7851 (struct setup_sections_data): Add field munmap_list_headp.
7852 (setup_sections): Call munmap_list_add.
7853 (compile_object_load): New variable munmap_list_head, initialize
7854 setup_sections_data.munmap_list_headp, return munmap_list_head.
7855 * compile/compile-object-load.h (struct munmap_list): New declaration.
7856 (struct compile_module): Add field munmap_list_head.
7857 (munmap_list_free): New declaration.
7858 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7859 munmap_list_head.
7860 (do_module_cleanup): Call munmap_list_free.
7861 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7862 * gdbarch.c: Regenerate.
7863 * gdbarch.h: Regenerate.
7864 * gdbarch.sh (infcall_munmap): New.
7865 * linux-tdep.c (linux_infcall_munmap): New.
7866 (linux_init_abi): Install it.
7867
3b462ec2
SM
78682015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7869
7870 PR gdb/15564
7871 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7872
8d683210
YQ
78732015-06-02 Yao Qi <yao.qi@linaro.org>
7874
7875 * i386-linux-nat.c: Include linux-nat.h.
7876
e0619de6
JK
78772015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7878 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 PR symtab/18392
7881 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7882 assertion.
7883 * dwarf2loc.c (chain_candidate): Likewise.
7884
bd16da51
YQ
78852015-06-01 Yao Qi <yao.qi@linaro.org>
7886
7887 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7888 (store_vfp_regs): Use PTRACE_SETREGSET.
7889
df9d7ec9
YQ
78902015-06-01 Yao Qi <yao.qi@linaro.org>
7891
7892 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7893 (fetch_fpregs): Likewise.
7894 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7895 (store_fpregs): Likewise.
7896
10766686
YQ
78972015-06-01 Yao Qi <yao.qi@linaro.org>
7898
7899 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7900 (fetch_regs): Likewise.
7901 (store_regs): Use PTRACE_SETREGSET.
7902 (store_register): Likewise.
7903
7efe48d1
YQ
79042015-06-01 Yao Qi <yao.qi@linaro.org>
7905
7906 * arm-linux-nat.c (arm_linux_read_description): Check whether
7907 kernel supports PTRACE_GETREGSET.
7908
433bbbf8
YQ
79092015-06-01 Yao Qi <yao.qi@linaro.org>
7910
7911 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7912 * linux-nat.c: ... here.
7913 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7914 to ...
7915 * linux-nat.h: ... here.
7916
ca9b78ce
YQ
79172015-06-01 Yao Qi <yao.qi@linaro.org>
7918
7919 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7920 * i386-linux-nat.c: Likewise.
7921 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7922 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7923 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7924 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7925 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7926
99cee7b7
EZ
79272015-05-30 Eli Zaretskii <eliz@gnu.org>
7928
7929 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7930 compatible to what read_child and write_child return. This
7931 unbreaks that DJGPP build of GDB which was broken since v7.7.
7932
2147f5bd
MG
79332015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7934
7935 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7936
c8f6c93c
RM
79372015-05-29 Roland McGrath <mcgrathr@google.com>
7938
7939 PR gdb/18464
7940 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7941 rather than internal_error for an unrecognized value.
7942
8c6a948d
MF
79432015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7944
7945 * xtensa-tdep.c (xtensa_pseudo_register_read)
7946 (xtensa_pseudo_register_write): Don't alias last pseudo register
7947 to a1.
7948
8dd06f7a
DB
79492015-05-28 Don Breazeal <donb@codesourcery.com>
7950
7951 * infrun.c (follow_fork_inferior): Ensure the use of
7952 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7953 messages.
7954
a051152b
DE
79552015-05-28 Doug Evans <dje@google.com>
7956
7957 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7958
a56cc1ce
YQ
79592015-05-28 Yao Qi <yao.qi@linaro.org>
7960
7961 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7962 (arm_linux_fetch_inferior_registers): Use
7963 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7964 (arm_linux_store_inferior_registers): Likewise.
7965 (arm_linux_read_description): Don't set
7966 arm_linux_has_wmmx_registers.
7967 * arm-tdep.c (arm_gdbarch_init): Set
7968 tdep->have_wmmx_registers according target descriptions.
7969 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7970 field.
7971
330c6ca9
YQ
79722015-05-28 Yao Qi <yao.qi@linaro.org>
7973
7974 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7975 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7976 instead of arm_linux_vfp_register_count.
7977 (store_vfp_regs): Likewise.
7978 (arm_linux_fetch_inferior_registers): Likewise.
7979 (arm_linux_store_inferior_registers): Likewise.
7980 (arm_linux_read_description): Don't set
7981 arm_linux_vfp_register_count.
7982 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7983 Adjust.
7984 * arm-tdep.c (arm_gdbarch_init): Add assert on
7985 vfp_register_count.
7986 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7987 field to vfp_register_count. All users updated.
7988
d403db27
KH
79892015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7990
7991 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7992 ELFOSABI_GNU binaries.
7993
d9b3de22
DE
79942015-05-27 Doug Evans <dje@google.com>
7995
7996 * dwarf2read.c (lnp_state_machine): New typedef.
7997 (lnp_reader_state): New typedef.
7998 (dwarf_record_line_1): Renamed from dwarf_record_line.
7999 All callers updated.
8000 (dwarf_record_line): New function.
8001 (init_lnp_state_machine): New function.
8002 (check_line_address): Replace p_record_line parameter with state.
8003 All callers updated.
8004 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8005 Update to record state in lnp_state_machine.
8006
924c2928
DE
80072015-05-27 Doug Evans <dje@google.com>
8008
8009 * dwarf2read.c (record_line_ftype): New typedef.
8010 (check_line_address): New function.
8011 (dwarf_decode_lines_1): Call it.
8012
27e0867f
DE
80132015-05-27 Doug Evans <dje@google.com>
8014
8015 * NEWS: Mention "set debug dwarf-line".
8016 * dwarf2read.c (dwarf_line_debug): New static global.
8017 (add_include_dir): Add debug dwarf-line support.
8018 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8019 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8020
4dcabcc2
DE
80212015-05-27 Doug Evans <dje@google.com>
8022
8023 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8024 All callers updated.
8025 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8026 * cp-support.h (cp_lookup_nested_symbol): Update.
8027
b2e2f908
DE
80282015-05-27 Doug Evans <dje@google.com>
8029
8030 PR symtab/18258
8031 * block.c (block_find_symbol): New function.
8032 (block_find_non_opaque_type): Ditto.
8033 (block_find_non_opaque_type_preferred): Ditto.
8034 * block.h (block_symbol_matcher_ftype): New typedef.
8035 (block_find_symbol): Declare.
8036 (block_find_non_opaque_type): Ditto.
8037 (block_find_non_opaque_type_preferred): Ditto.
8038 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8039 * psymtab.c (psym_lookup_symbol): Ditto.
8040 * symtab.c (basic_lookup_transparent_type_1): New function.
8041 (basic_lookup_transparent_type): Call it.
8042
f62fce35
YQ
80432015-05-27 Yao Qi <yao.qi@linaro.org>
8044
8045 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8046 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8047
5d98d3cd
YQ
80482015-05-27 Yao Qi <yao.qi@linaro.org>
8049
8050 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8051 before operator &&.
8052 (aarch64_record_load_store): Likewise.
8053
82c7be31
DE
80542015-05-26 Doug Evans <dje@google.com>
8055
8056 PR c++/18141, c++/18417.
8057 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8058 a typedef.
8059
b4f54984
DE
80602015-05-26 Doug Evans <dje@google.com>
8061
8062 * NEWS: Add entries for command renamings.
8063 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8064 All uses updated.
8065 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8066 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8067 All uses updated.
8068 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8069 All callers updated. Fix spelling of DWARF in help text.
8070 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8071 All uses updated.
8072 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8073 All uses updated.
8074 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8075 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8076 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8077 All uses updated.
8078 (show_dwarf_always_disassemble): Renamed from
8079 show_dwarf2_always_disassemble. All callers updated.
8080 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8081 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8082 "set/show dwarf max-cache-age". Rename
8083 "set/show dwarf2 always-disassemble" to
8084 "set/show dwarf always-disassemble". Rename
8085 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8086 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8087
4ea6efe9
DE
80882015-05-26 Doug Evans <dje@google.com>
8089
8090 PR python/18438
8091 * python/py-lazy-string.c (stpy_convert_to_value): Use
8092 gdbpy_gdb_memory_error not PyExc_MemoryError.
8093 (gdbpy_create_lazy_string_object): Ditto.
8094
b93fd21d
AB
80952015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8098
55b40027
AB
80992015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8100
8101 * tui/tui-regs.c (tui_reg_prev_command): New function.
8102 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8103 * reggroups.c (reggroup_prev): New function.
8104 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8105
99afc88b
OJ
81062015-05-26 Omair Javaid <omair.javaid@linaro.org>
8107 Yao Qi <yao.qi@linaro.org>
8108
8109 * aarch64-linux-tdep.c: Include linux-record.h and
8110 record-full.h.
8111 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8112 (aarch64_syscall): New enum.
8113 (aarch64_canonicalize_syscall): New function.
8114 (aarch64_all_but_pc_registers_record): New function.
8115 (aarch64_linux_syscall_record): New function.
8116 (aarch64_linux_init_abi): Install AArch64 process record
8117 handler. Update to handle syscall recording.
8118 * aarch64-tdep.c: Include record.h and record-full.h.
8119 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8120 (struct aarch64_mem_r): Define.
8121 (aarch64_record_result): New enum.
8122 (struct insn_decode_record): Define.
8123 (insn_decode_record): New typedef.
8124 (aarch64_record_data_proc_reg): New function.
8125 (aarch64_record_data_proc_imm): New function.
8126 (aarch64_record_branch_except_sys): New function.
8127 (aarch64_record_load_store): New function.
8128 (aarch64_record_data_proc_simd_fp): New function.
8129 (aarch64_record_asimd_load_store): New function.
8130 (aarch64_record_decode_insn_handler): New function.
8131 (deallocate_reg_mem): New function.
8132 (aarch64_process_record): New function.
8133 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8134 New field.
8135 (aarch64_process_record): New extern declaration.
8136 * configure.tgt: Add linux-record.o to gdb_target_obs.
8137 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8138
c16a3f52
OJ
81392015-05-26 Omair Javaid <omair.javaid@linaro.org>
8140
8141 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8142 targets.
8143
c9cf6e20
MG
81442015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8145
8146 * amd64-tdep.c: Replace in_function_epilogue_p with
8147 stack_frame_destroyed_p throughout.
8148 * arch-utils.c: Ditto.
8149 * arch-utils.h: Ditto.
8150 * arm-tdep.c: Ditto.
8151 * breakpoint.c: Ditto.
8152 * gdbarch.sh: Ditto.
8153 * hppa-tdep.c: Ditto.
8154 * i386-tdep.c: Ditto.
8155 * mips-tdep.c: Ditto.
8156 * nios2-tdep.c: Ditto.
8157 * rs6000-tdep.c: Ditto.
8158 * s390-linux-tdep.c: Ditto.
8159 * score-tdep.c: Ditto.
8160 * sh-tdep.c: Ditto.
8161 * sparc-tdep.c: Ditto.
8162 * sparc-tdep.h: Ditto.
8163 * sparc64-tdep.c: Ditto.
8164 * spu-tdep.c: Ditto.
8165 * tic6x-tdep.c: Ditto.
8166 * tilegx-tdep.c: Ditto.
8167 * xstormy16-tdep.c: Ditto.
8168 * gdbarch.c, gdbarch.h: Re-generated.
8169
a4ea0946
AB
81702015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * NEWS: Mention 'tui enable' and 'tui disable'.
8173 * tui/tui.c (tui_enable_command): New function.
8174 (tui_disable_command): New function.
8175 (_initialize_tui): New function.
8176
b75c69bb
AB
81772015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8180
c1b009ee
AB
81812015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8184 buf_ptr is freed.
8185
880d1e40
AB
81862015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8189 into ...
8190 (tui_set_layout_for_display_command): ...here, before calling
8191 tui_set_layout. Only set the layout if gdb has not already
8192 entered the TUI_FAILURE state.
8193
a0145030
AB
81942015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8195
8196 * tui/tui-layout.c (layout_completer): New function.
8197 (_initialize_tui_layout): Set completer on layout command.
8198
7bd0be3a
AB
81992015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8200
8201 * tui/tui-layout.c (tui_set_layout): Remove
8202 tui_register_display_type parameter. Remove all checking of this
8203 parameter, and reindent function. Update header comment.
8204 (tui_set_layout_for_display_command): Rename to...
8205 (tui_set_layout_by_name): ...this, and don't check for different
8206 register class types, don't pass a tui_register_display_type to
8207 tui_set_layout. Update header comment.
8208 (layout_names): Remove register set specific names.
8209 * tui/tui-layout.h (tui_set_layout): Remove
8210 tui_register_display_type parameter.
8211 * tui/tui.c (tui_rl_change_windows): Don't pass a
8212 tui_register_display_type to tui_set_layout.
8213 (tui_rl_delete_other_windows): Likewise.
8214 (tui_enable): Likewise.
8215 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8216 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8217 (TUI_GENERAL_REGS_NAME): Remove.
8218 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8219 (TUI_SPECIAL_REGS_NAME): Remove.
8220 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8221 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8222 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8223 (enum tui_register_display_type): Remove.
8224 (struct tui_layout_def): Remove regs_display_type and
8225 float_regs_display_type fields.
8226 (struct tui_data_info): Remove regs_display_type field.
8227 (tui_layout_command): Use new name for
8228 tui_set_layout_for_display_command.
8229 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8230 (tui_clear_win_detail): Don't initialise removed fields of
8231 win_info.
8232 * tui/tui-regs.c (tui_show_registers): Use new name for
8233 tui_set_layout_for_display_command.
8234 * tui/tui.h (tui_set_layout_for_display_command): Rename
8235 declaration to...
8236 (tui_set_layout_by_name): ...this.
8237 * printcmd.c (display_command): Remove tui related layout call,
8238 and reindent.
8239
0b6e5e10
JB
82402015-05-20 Joel Brobecker <brobecker@adacore.com>
8241
8242 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8243 (handle_inferior_event): New function.
8244
1da0522e
JB
82452015-05-20 Joel Brobecker <brobecker@adacore.com>
8246
8247 * ada-lang.c (to_fixed_array_type): Rename local variable
8248 typename into type_name.
8249
5fe75eec
JK
82502015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8251
8252 Fix ASAN crash for gdb.compile/compile.exp.
8253 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8254
a4063588
JK
82552015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8256
8257 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8258 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8259 * compile/compile-object-load.c (setup_sections, compile_object_load):
8260 Likewise.
8261 * compile/compile.c (compile_to_object): Likewise.
8262
37442ce1
DE
82632015-05-16 Doug Evans <xdje42@gmail.com>
8264
8265 * NEWS: Mention support for unbuffered Guile memory ports.
8266 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8267 (ioscm_lseek_address): Improve overflow calculation.
8268 (gdbscm_memory_port_fill_input): Add assert.
8269 (gdbscm_memory_port_write): Handle unbuffered ports.
8270 Handle large writes identical to Guile's fport_write.
8271 (gdbscm_memory_port_seek): Fix seeking past end check.
8272 (gdbscm_memory_port_close): Handle closing unbuffered port.
8273 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8274 (ioscm_init_memory_port): Handle unbuffered ports.
8275 (ioscm_reinit_memory_port): Ditto.
8276 (ioscm_init_memory_port): Update size calculation.
8277 (gdbscm_open_memory): Support zero sized ports.
8278
d976bace
JK
82792015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8280
8281 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8282 variable compiler warnings.
8283
4d18dfad
JK
82842015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8285
8286 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8287
36de76f9
JK
82882015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8289 Phil Muldoon <pmuldoon@redhat.com>
8290
8291 * NEWS (Changes since GDB 7.9): Add compile print.
8292 * compile/compile-c-support.c (add_code_header, add_code_footer)
8293 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8294 COMPILE_I_PRINT_VALUE_SCOPE.
8295 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8296 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8297 New.
8298 * compile/compile-object-load.c: Include block.h.
8299 (get_out_value_type): New function.
8300 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8301 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8302 OUT_VALUE_TYPE.
8303 * compile/compile-object-load.h (struct compile_module): Add fields
8304 out_value_addr and out_value_type.
8305 * compile/compile-object-run.c: Include valprint.h and compile.h.
8306 (struct do_module_cleanup): Add fields out_value_addr and
8307 out_value_type.
8308 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8309 COMPILE_I_PRINT_VALUE_SCOPE.
8310 (compile_object_run): Propagate out_value_addr and out_value_type.
8311 Pass OUT_VALUE_ADDR.
8312 * compile/compile.c: Include valprint.h.
8313 (compile_print_value, compile_print_command): New functions.
8314 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8315 (_initialize_compile): Update compile code help text. Install
8316 compile_print_command.
8317 * compile/compile.h (compile_print_value): New prototype.
8318 * defs.h (enum compile_i_scope_types): Add
8319 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8320
83d3415e
JK
83212015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8322
8323 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8324 Rely on its parameter count.
8325 (compile_object_load): Replace lookup_minimal_symbol_text by
8326 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8327 return value.
8328 * compile/compile-object-load.h (struct compile_module): Replace
8329 func_addr by func_sym.
8330 * compile/compile-object-run.c: Include block.h.
8331 (compile_object_run): Reset module variable after it is freed. Use
8332 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8333
3a9558c4
JK
83342015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8337 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8338 (c_compute_program): Call generate_register_struct after typedefs.
8339 * compile/compile-loc2c.c (push, pushf_register_address)
8340 (pushf_register): Cast to GCC_UINTPTR.
8341 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8342 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8343 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8344 * compile/compile.c (_initialize_compile): Enable warnings for
8345 COMPILE_ARGS.
8346
5c65b58a
JK
83472015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 * cli/cli-script.c (execute_control_command): Update
8350 eval_compile_command caller.
8351 * compile/compile-object-load.c (compile_object_load): Add parameters
8352 scope and scope_data. Set them.
8353 * compile/compile-object-load.h (struct compile_module): Add fields
8354 scope and scope_data.
8355 (compile_object_load): Add parameters scope and scope_data.
8356 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8357 scope and scope_data.
8358 (compile_object_run): Propagate the fields scope and scope_data.
8359 * compile/compile.c (compile_file_command, compile_code_command):
8360 Update eval_compile_command callers.
8361 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8362 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8363 * defs.h (struct command_line): Add field scope_data.
8364
1c88ceb1
JK
83652015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8366
8367 * printcmd.c (struct format_data): Move it to valprint.h.
8368 (print_command_parse_format, print_value): New functions from ...
8369 (print_command_1): ... here. Call them.
8370 * valprint.h (struct format_data): Move it here from printcmd.c.
8371 (print_command_parse_format, print_value): New declarations.
8372
0b738f27
JK
83732015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8374
8375 * compile/compile-object-load.c (compile_object_load): Add
8376 COMPILE_DEBUG message.
8377
aa715135
JG
83782015-05-15 Jerome Guitton <guitton@adacore.com>
8379
8380 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8381 index to get element instead of enum value.
8382 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8383 of index to compute length, but enum values to compute bounds.
8384 (ada_array_length): Use enum position of index instead of enum value.
8385 (pos_atr): Move position computation to...
8386 (ada_evaluate_subexp): Use enum values to compute bounds.
8387 * gdbtypes.c (discrete_position): ...this new function.
8388 * gdbtypes.h (discrete_position): New function declaration.
8389 * valprint.c (val_print_array_elements): Call discrete_position
8390 to handle array indexed by non-contiguous enumeration types.
8391
931e5bc3
JG
83922015-05-15 Jerome Guitton <guitton@adacore.com>
8393
8394 * ada-lang.c (find_parallel_type_by_descriptive_type):
8395 Go through typedefs during lookup.
8396 (to_fixed_array_type): Add support for non-bit packed arrays
8397 as variable-length fields.
8398
4e63d0ac
PA
83992015-05-15 Pedro Alves <palves@redhat.com>
8400 Simon Marchi <simon.marchi@ericsson.com>
8401
8402 * event-loop.c (gdb_notifier) <next_file_handler,
8403 next_poll_fds_index>: New fields.
8404 (get_next_file_handler_to_handle_and_advance): New function.
8405 (delete_file_handler): If deleting the next file handler to
8406 handle, advance to the next file handler.
8407 (gdb_wait_for_event): Bail early if no event fired. Poll file
8408 handlers in round-robin fashion.
8409
52e48b36
PA
84102015-05-15 Pedro Alves <palves@redhat.com>
8411
8412 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8413 'private' to 'priv'.
8414
2465e12e
PA
84152015-05-15 Pedro Alves <palves@redhat.com>
8416
8417 * nat/linux-nat.h: Include "target/waitstatus.h".
8418
13fa0398
YZ
84192015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8420
8421 * python/py-unwind.c (struct reg_info): Move out of ...
8422 (struct cached_frame_info): ... this scope.
8423 (pending_frame_object_type, unwind_info_object_type): Make extern.
8424
9cd4d857
JB
84252015-05-15 Joel Brobecker <brobecker@adacore.com>
8426
8427 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8428 accumSize is never negative.
8429
e3555239
PP
84302015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8431
8432 * tui/tui-command.c: Remove include of <ctype.h>.
8433 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8434
08a76f8a
MG
84352015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8436
8437 * dwarf2read.c (die_needs_namespace): Return 1 for
8438 DW_TAG_inlined_subroutine.
8439
bd49952b
JK
84402015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8441
8442 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8443 (regcache_cpy_no_passthrough): Make it static, add function comment.
8444 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8445 (regcache_cpy_no_passthrough): Remove declaration.
8446
46c03469
JK
84472015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8448
8449 * gdbthread.h (struct thread_control_state): Update comment for
8450 proceed_to_finish.
8451 * infcall.c (run_inferior_call): Update comment about
8452 proceed_to_finish.
8453 * infcmd.c (get_return_value): Update comment about stop_registers.
8454 (finish_forward): Update comment about proceed_to_finish.
8455 * infrun.c (stop_registers): Remove.
8456 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8457 * infrun.h (stop_registers): Remove.
8458
8a6c4031
JK
84592015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8460
8461 * infcall.c (struct dummy_frame_context_saver)
8462 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8463 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8464 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8465 New.
8466 (call_function_by_hand_dummy): Move discard_cleanups of
8467 inf_status_cleanup before dummy_frame_push. Call
8468 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8469 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8470 * infcall.h (struct dummy_frame_context_saver)
8471 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8472 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8473 New declarations.
8474 * infcmd.c: Include infcall.h.
8475 (get_return_value): Add parameter ctx_saver, use it instead of
8476 stop_registers.
8477 (print_return_value): Add parameter ctx_saver, pass it.
8478 (struct finish_command_continuation_args): Add field ctx_saver.
8479 (finish_command_continuation): Update print_return_value caller.
8480 (finish_command_continuation_free_arg): Free also ctx_saver.
8481 (finish_forward): Call dummy_frame_context_saver_setup.
8482 * inferior.h (struct dummy_frame_context_saver): New declaration.
8483 (get_return_value): Add parameter ctx_saver.
8484 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8485 get_return_value caller.
8486
10989690
JK
84872015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8488
8489 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8490 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8491 (remove_dummy_frame): Process dtor_list.
8492 (pop_dummy_frame): Process dtor_list.
8493 (register_dummy_frame_dtor): Maintain dtor_list.
8494 (find_dummy_frame_dtor): Handle dtor_list.
8495 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8496 Update comments.
8497
5e970501
JK
84982015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8499
8500 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8501 registers_valid.
8502 (compile_object_run): Update do_module_cleanup caller.
8503 * dummy-frame.c: Include infcall.h.
8504 (struct dummy_frame): Update dtor comment.
8505 (remove_dummy_frame): Call dtor.
8506 (pop_dummy_frame): Update dtor caller.
8507 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8508 registers_valid.
8509
1c4eb778
JB
85102015-05-13 Joel Brobecker <brobecker@adacore.com>
8511
8512 GDB 7.9.1 released.
8513
f5f85ab9
JB
85142015-05-13 Joel Brobecker <brobecker@adacore.com>
8515
8516 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8517 Xmethods now being able to specify a result type to that new
8518 sectioin.
8519
242cd84c
PP
85202015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8521
8522 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8523 first before resizing the window.
e3555239 8524 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8525
85262015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8527
8528 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8529 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8530 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8531 dummy_dtor parameter.
8532 * infcall.h: Include dummy-frame.h.
8533 (call_function_by_hand_dummy_dtor_ftype): Remove.
8534 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8535 parameter.
8536
ebfd00d2
PP
85372015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8538
8539 PR gdb/17820
8540 * top.c (history_size_setshow_var): Change type to signed.
8541 Initialize to -2. Update documentation.
8542 (set_readline_history_size): Define.
8543 (set_history_size_command): Use it. Remove logic for handling
8544 out-of-range sizes.
8545 (init_history): Use set_readline_history_size(). Test for a
8546 value of -2 instead of 0 when determining whether to set a
8547 default history size.
8548 (init_main): Decode the argument of the "size" command as a
8549 zuinteger_unlimited.
8550
83769d0b
DE
85512015-05-12 Doug Evans <dje@google.com>
8552
8553 * dwarf2read.c (struct file_entry): Tweak comments.
8554 (get_debug_line_section): Tweak comments.
8555
0d71eef5
DB
85562015-05-12 Don Breazeal <donb@codesourcery.com>
8557
8558 * NEWS: Announce fork support in the RSP and support
8559 for fork debugging in extended mode.
8560
cbb8991c
DB
85612015-05-12 Don Breazeal <donb@codesourcery.com>
8562
8563 * remote.c (remote_insert_fork_catchpoint): New function.
8564 (remote_remove_fork_catchpoint): New function.
8565 (remote_insert_vfork_catchpoint): New function.
8566 (remote_remove_vfork_catchpoint): New function.
8567 (pending_fork_parent_callback): New function.
8568 (remove_new_fork_child): New function.
8569 (remote_update_thread_list): Call remote_notif_get_pending_events
8570 and remove_new_fork_child.
8571 (extended_remote_kill): Kill fork child when killing the
8572 parent before follow_fork completes.
8573 (init_extended_remote_ops): Initialize target vector with
8574 new fork catchpoint functions.
8575
c269dbdb
DB
85762015-05-12 Don Breazeal <donb@codesourcery.com>
8577
8578 * remote.c (remove_vfork_event_p): New function.
8579 (remote_follow_fork): Add vfork event type to event checking.
8580 (remote_parse_stop_reply): New stop reasons "vfork" and
8581 "vforkdone" for RSP 'T' Stop Reply Packet.
8582
de0d863e
DB
85832015-05-12 Don Breazeal <donb@codesourcery.com>
8584
8585 * linux-nat.c (linux_nat_ptrace_options): New function.
8586 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8587 Call linux_nat_ptrace_options and use different argument to
8588 linux_enable_event_reporting.
8589 (_initialize_linux_nat): Delete call to
8590 linux_ptrace_set_additional_flags.
c8f6c93c 8591 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8592 supported_ptrace_options.
8593 (additional_flags): Delete variable.
8594 (linux_check_ptrace_features): Use supported_ptrace_options.
8595 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8596 Likewise, and remove additional_flags check.
8597 (linux_enable_event_reporting): Change 'attached' argument to
8598 'options'. Use supported_ptrace_options.
c8f6c93c 8599 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8600 supported_ptrace_options.
8601 (linux_ptrace_set_additional_flags): Delete function.
8602 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8603 Delete function prototype.
8604 * remote.c (remote_fork_event_p): New function.
8605 (remote_detach_pid): New function.
8606 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8607 if doing detach-on-fork.
8608 (remote_follow_fork): New function.
8609 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8610 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8611 (init_extended_remote_ops): Initialize to_follow_fork.
8612
89245bc0
DB
86132015-05-12 Don Breazeal <donb@codesourcery.com>
8614
8615 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8616 from static to extern.
8617 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8618 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8619 * PACKET_vfork_event_feature>: New enumeration constants.
8620 (remote_protocol_features): Add table entries for new packets.
8621 (remote_query_supported): Add new feature queries to qSupported
8622 packet.
8623
835205d0
GB
86242015-05-12 Gary Benson <gbenson@redhat.com>
8625
8626 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8627 for fake PIDs as well as real ones.
8628 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8629
4c082a81
SC
86302015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8631
8632 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8633 * python/py-value.c (valpy_reference_value): New function.
8634 (valpy_const_value): Likewise.
8635 (value_object_methods): Add new methods.
8636 * value.c (make_cv_value): New function.
8637 * value.h (make_cv_value): Declare.
8638
afa6c9ab
SL
86392015-05-08 Yao Qi <yao@codesourcery.com>
8640 Sandra Loosemore <sandra@codesourcery.com>
8641
8642 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8643 to 'lh->include_dirs' before accessing to it.
8644 (psymtab_include_file_name): Likewise.
8645 (dwarf_decode_lines_1): Likewise.
8646 (dwarf_decode_lines): Likewise.
8647 (file_file_name): Likewise.
8648
35d54293
SL
86492015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8650
8651 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8652 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8653 (nios2_linux_rt_sigreturn_init): Adjust base address of
8654 register save area.
8655
b73c49b7
SL
86562015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8657
8658 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8659 "trap 31" as the breakpoint instruction on all targets.
8660
dd9f02a0
JK
86612015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8662
8663 * infcmd.c (print_return_value): Remove unused declaration.
8664
6ad395a7
JB
86652015-05-08 Joel Brobecker <brobecker@adacore.com>
8666
8667 * dwarf2read.c (attr_to_dynamic_prop)
8668 <DW_AT_data_member_location>: Use read_type_die isntead of
8669 get_die_type.
8670
8344af1e
JB
86712015-05-08 Joel Brobecker <brobecker@adacore.com>
8672
8673 * ada-lang.c (ada_convert_actual): Add handling of formals
8674 passed inside an aligner type.
8675
80b0912b
JB
86762015-05-08 Joel Brobecker <brobecker@adacore.com>
8677
8678 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8679
df2eb078
SC
86802015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8681
8682 PR python/18291
8683 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8684 Print xmethod matcher status.
8685
2492f0d0
AA
86862015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8687
8688 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8689 register in the regcache when treating the PSWM register, and vice
8690 versa.
8691
1c56a84d
GB
86922015-05-07 Gary Benson <gbenson@redhat.com>
8693
8694 * linux-thread-db.c (struct thread_db_info)
8695 <td_ta_map_id2thr_p>: Remove field.
8696 (try_thread_db_load_1): Remove initialization for the above.
8697
74850322
GB
86982015-05-07 Gary Benson <gbenson@redhat.com>
8699
8700 * linux-thread-db.c (struct thread_db_info)
8701 <td_thr_validate_p>: Remove field.
8702 (try_thread_db_load_1): Remove initialization for the above.
8703
e26efa40
JK
87042015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8705
8706 * compile/compile-object-load.c (compile_object_load): Support
8707 mst_text_gnu_ifunc.
8708
851c9091
JK
87092015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8710
8711 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8712 const. Use new variables for the const compatibility.
8713 (eval_compile_command): Make the cmd_string parameter const.
8714 * compile/compile.h (eval_compile_command): Make the cmd_string
8715 parameter const.
8716
f218b647
JB
87172015-05-06 Joel Brobecker <brobecker@adacore.com>
8718
8719 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8720 comment.
8721 * top.c (deprecated_init_ui_hook): Delete.
8722 (gdb_init): Remove handling of deprecated_init_ui_hook.
8723 * interps.c (clear_interpreter_hooks): Remove handling of
8724 deprecated_init_ui_hook.
8725 * main.c (captured_main): Update comment.
8726
b30a0bc3
JB
87272015-05-06 Joel Brobecker <brobecker@adacore.com>
8728
8729 * solib.c (_initialize_solib): Add "info dll" alias creation.
8730 * windows-nat.c (set_windows_aliases): Delete.
8731 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8732 assignment.
8733 * NEWS: Add news entry about "info dll" now being available
8734 on all platforms.
8735
7c512744
JB
87362015-05-05 Joel Brobecker <brobecker@adacore.com>
8737
8738 * ada-lang.c (value_assign_to_component): Reformat and improve
8739 documentation. Remove all trailing spaces.
8740
0fa7fe50
JB
87412015-05-05 Joel Brobecker <brobecker@adacore.com>
8742
8743 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8744 Stop counting inlined frames as soon as an out-of-line function
8745 is found.
8746
3ea89b92
PMR
87472014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8748
8749 * dwarf2read.c (inherit_abstract_dies): Skip
8750 DW_TAG_GNU_call_site dies while inheriting children of an
8751 abstract DIE into a scope.
8752 (read_lexical_block_scope): Inherit abstract DIE's for
8753 lexical scopes.
8754
2478d075
JB
87552015-05-05 Joel Brobecker <brobecker@adacore.com>
8756
8757 * ada-valprint.c (val_print_packed_array_elements): Delete
8758 variable "len". Add a type-length check when comparing two
8759 consecutive elements of the array. Use the element's actual
8760 length in call to value_contents_eq.
8761 * ada-lang.c (ada_value_primitive_packed_val): Always return
8762 a value whose type has been resolved.
8763
fc958966
JB
87642015-05-05 Joel Brobecker <brobecker@adacore.com>
8765
8766 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8767 BIT_SIZE and LEN if the size of the resolved type is smaller
8768 than BIT_SIZE * HOST_CHAR_BIT.
8769
ca34b84f
JB
87702015-05-05 Joel Brobecker <brobecker@adacore.com>
8771
8772 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8773 correct address in call to value_at. Adjust call to
8774 value_address accordingly.
8775
62c67f3c
JB
87762015-05-05 Joel Brobecker <brobecker@adacore.com>
8777
8778 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8779 to print it.
8780
c3345124
JB
87812015-05-05 Joel Brobecker <brobecker@adacore.com>
8782
8783 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8784 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8785 pinfo->valaddr.
8786 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8787 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8788 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8789 Add handling of addr_stack->valaddr.
8790 (resolve_dynamic_type): Add "valaddr" parameter.
8791 Set pinfo.valaddr field.
8792 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8793 resolve_dynamic_type.
8794 (ada_discrete_type_low_bound): Likewise.
8795 * findvar.c (default_read_var_value): Likewise.
8796 * value.c (value_from_contents_and_address): Likewise.
8797
75ea5859
JB
87982015-05-05 Joel Brobecker <brobecker@adacore.com>
8799
8800 * gdbtypes.c (resolve_dynamic_array): Use
8801 create_array_type_with_stride instead of create_array_type.
8802
0952813b
DD
88032015-04-30 DJ Delorie <dj@redhat.com>
8804
8805 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8806 rl78_decode_opcode
8807
2ce1cdbf
DE
88082015-04-29 Doug Evans <dje@google.com>
8809
8810 PR python/18285
8811 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8812 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8813 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8814 * extension-priv.h (struct extension_language_ops)
8815 <get_xmethod_result_type>: New member.
8816 * extension.c (get_xmethod_result_type): New function.
8817 * extension.h (get_xmethod_result_type): Declare.
8818 * python/py-xmethods.c (get_result_type_method_name): New static
8819 global.
8820 (py_get_result_type_method_name): Ditto.
8821 (gdbpy_get_xmethod_result_type): New function.
8822 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8823 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8824 * python/python.c (python_extension_ops): Add
8825 gdbpy_get_xmethod_result_type.
8826 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8827 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8828 xmethods.
8829 (value_x_unop): Ditto.
8830 * value.c (result_type_of_xmethod): New function.
8831 * value.h (result_type_of_xmethod): Declare.
8832
998d2a3e
GB
88332015-04-29 Gary Benson <gbenson@redhat.com>
8834
8835 * solib.c (solib_find_1): Allow fd argument to be NULL.
8836 (exec_file_find): Update comment.
8837 (solib_find): Likewise.
8838 * exec.c (exec_file_locate_attach): Use NULL as fd
8839 argument to exec_file_find to avoid having to close
8840 the opened file.
8841 * infrun.c (follow_exec): Likewise.
8842
34f5f757
DE
88432015-04-28 Doug Evans <dje@google.com>
8844
8845 PR python/18299
8846 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8847 name or __name__ attributes. Handle gdb module as first argument.
8848
69b4374a
DE
88492015-04-28 Doug Evans <dje@google.com>
8850
8851 PR python/18089
8852 * python/py-prettyprint.c (print_children): Verify result of children
8853 iterator. Provide better error message.
8854 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8855 * python/python.c (gdbpy_print_python_errors_p): New function.
8856
5e7cf078
DE
88572015-04-28 Doug Evans <dje@google.com>
8858
8859 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8860
59fb7612
SS
88612015-04-28 Sasha Smundak <asmundak@google.com>
8862
8863 * NEWS: Mention gdb.Type.optimized_out method.
8864 * python/py-type.c (typy_optimized_out): New function.
8865
cea6e4f1
JB
88662015-04-28 John Baldwin <jhb@FreeBSD.org>
8867
8868 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8869
24b73f8e
PP
88702015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8871
8872 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8873 (initialize_utils): Move call of init_page_info() to ...
8874 * top.c (gdb_init): ... here.
8875
a88d0bb3
PP
88762015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8877
8878 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8879 (tui_sigwinch_handler): Still update our idea of
8880 the terminal's width and height even when TUI is not active.
8881
d6e5e7f7
PP
88822015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8883
8884 * utils.h (set_screen_width_and_height): Declare.
8885 * utils.c (set_screen_width_and_height): Define.
8886 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8887
ff862be4
GB
88882015-04-28 Gary Benson <gbenson@redhat.com>
8889
8890 * infrun.c (solist.h): New include.
8891 (follow_exec): Use exec_file_find to prefix execd_pathname
8892 with gdb_sysroot.
8893
2eb639cb
PP
88942015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8895
8896 * tui/tui-source.c (tui_set_source_content): Avoid calling
8897 strcpy() when offset is 0.
8898
97206799
PP
88992015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8900
8901 PR gdb/18155
8902 * tui/tui-data.c (tui_free_window): Don't free the locator
8903 window when passed an SRC_WIN or a DISASSEM_WIN.
8904
63ed8182
PP
89052015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8906
8907 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8908 (tui_win_content): Move declaration.
8909 (struct tui_gen_win_info): Give 'content' field the
8910 type tui_win_content.
8911 * tui/tui-data.c (init_content_element): Remove redundant and
8912 erroneous casts.
8913 (tui_add_content_elements): Remove erroneous cast.
8914 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8915 casts.
8916 (tui_get_begin_asm_address): Likewise.
8917 * tui/tui-regs.c (tui_show_registers): Likewise.
8918 (tui_show_register_group): Likewise.
8919 (tui_display_registers_from): Likewise.
8920 (tui_check_register_values): Likewise.
8921 * tui/tui-source.c (tui_set_source_content): Likewise.
8922 (tui_set_source_content_nil): Likewise.
8923 (tui_source_is_displayed): Likewise.
8924 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8925 (tui_set_locator_fullname): Likewise.
8926 (tui_set_locator_info): Likewise.
8927 (tui_show_frame_info): Likewise.
8928 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8929 (tui_show_source_line): Likewise.
8930 (tui_horizontal_source_scroll): Likewise.
8931 (tui_update_breakpoint_info): Likewise.
8932 (tui_set_exec_info_content): Likewise.
8933 (tui_show_exec_info_content): Likewise.
8934 (tui_alloc_source_buffer): Likewise.
8935 (tui_line_is_displayed): Likewise.
8936 (tui_addr_is_displayed): Likewise.
8937
d2b41ca0
JB
89382015-04-27 John Baldwin <jhb@FreeBSD.org>
8939
8940 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8941 event if PL_FLAG_EXEC is set.
8942 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8943 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8944 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8945 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8946 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8947
e58e05d6
JB
89482015-04-27 John Baldwin <jhb@FreeBSD.org>
8949
8950 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8951 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8952 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8953 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8954 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8955 [PT_LWPINFO] (fbsd_wait): New function.
8956 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8957 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8958 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8959 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8960 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8961 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8962 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8963 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8964 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8965 "fbsd_wait".
8966 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8967 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8968 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8969 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8970 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8971 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8972 Set "to_post_attach" to "fbsd_post_attach".
8973
8f60fe01
JB
89742015-04-27 John Baldwin <jhb@FreeBSD.org>
8975
8976 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8977 (fbsd_find_memory_regions): Mark static.
8978 (fbsd_nat_add_target): New function.
8979 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8980 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8981 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8982 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8983 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8984 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8985
5fbae7d1
GB
89862015-04-27 Gary Benson <gbenson@redhat.com>
8987
8988 * objfiles.c (allocate_objfile): Do not attempt to expand name
8989 if name is a "target:" filename.
8990 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8991 to load auto-load scripts for objfiles with "target:" filenames.
8992
417c80f9
AA
89932015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8994
8995 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8996 (enum s390_vector_abi_kind): New enum.
8997 (struct gdbarch_tdep)<vector_abi>: New field.
8998 (s390_effective_inner_type): Add parameter min_size. Stop
8999 unwrapping if the inner type is smaller than min_size.
9000 (s390_function_arg_float): Adjust call to
9001 s390_effective_inner_type.
9002 (s390_function_arg_vector): New function.
9003 (s390_function_arg_integer): Adjust comment.
9004 (struct s390_arg_state)<vr>: New field.
9005 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9006 arguments according to vector ABI when appropriate.
9007 (s390_push_dummy_call): Initialize the argument state's field
9008 'vr'. Adjust calls to s390_handle_arg.
9009 (s390_register_return_value): Handle vector return values.
9010 (s390_return_value): Apply the "register" return value convention
9011 to a vector when appropriate.
9012 (s390_gdbarch_init): Initialize tdep->vector_abi.
9013 * NEWS: Announce S390 vector ABI support.
9014
4e65a17e
AA
90152015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9016
9017 * s390-linux-tdep.c (s390_return_value_convention): Remove
9018 function. Inline its logic...
9019 (s390_return_value): ...here. Instead, move the handling of the
9020 "register" return value convention...
9021 (s390_register_return_value): ...here. New function.
9022
80f75320
AA
90232015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9024
9025 * s390-linux-tdep.c
9026 (is_float_singleton): Remove function. Move the "singleton" part
9027 of the logic...
9028 (s390_effective_inner_type): ...here. New function.
9029 (is_float_like): Remove function. Inline its logic...
9030 (s390_function_arg_float): ...here.
9031 (is_pointer_like, is_integer_like, is_struct_like): Remove
9032 functions. Inline their logic...
9033 (s390_function_arg_integer): ...here.
9034 (s390_function_arg_pass_by_reference): Remove function.
9035 (extend_simple_arg): Remove function.
9036 (alignment_of): Remove function.
9037 (struct s390_arg_state): New structure.
9038 (s390_handle_arg): New function.
9039 (s390_push_dummy_call): Move parameter placement logic to the new
9040 function s390_handle_arg. Call it for calculating the stack area
9041 sizes first, and again for actually writing the parameters.
9042
6dbc9c04
AA
90432015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9044
9045 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9046 false if the argument is zero.
9047
9e195661
PMR
90482015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9049
9050 * ada-lang.c (template_to_static_fixed_type): Return input type
9051 when it is already fixed. Cache the input type itself when not
9052 creating a static fixed copy. Make it explicit that we never
9053 molestate the input type.
9054 * gdbtypes.c (resolve_dynamic_struct): Reset the
9055 TYPE_TARGET_TYPE field for resolved copies.
9056
460efde1
JB
90572015-04-27 Joel Brobecker <brobecker@adacore.com>
9058
9059 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9060 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9061 (template_to_static_fixed_type): Call ada_check_typedef only
9062 when necessary.
9063
6faec16b
AB
90642015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * cli/cli-dump.c (srec_dump_command): Add internationalization
9067 mark ups.
9068 (ihex_dump_command): Likewise.
9069 (tekhex_dump_command): Likewise.
9070 (binary_dump_command): Likewise.
9071 (binary_append_command): Likewise.
9072
cf75d6c3
AB
90732015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9074
9075 * cli/cli-dump.c (verilog_cmdlist): New variable.
9076 (dump_verilog_memory): New function.
9077 (dump_verilog_value): New function.
9078 (verilog_dump_command): New function.
9079 (_initialize_cli_dump): Add new commands to support verilog dump
9080 format.
9081 * NEWS: Add entry for "dump verilog".
9082
8cd00c59
PMR
90832015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9084
9085 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9086 descriptive type when there is none.
9087
8900d71e
PP
90882015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9089
9090 * tui/tui-win.c (tui_async_resize_screen): Call
9091 rl_resize_terminal().
9092
f16eab5f
JT
90932015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9094
9095 * windows-nat.c (handle_output_debug_string): Don't change
9096 current_event.dwThreadId.
9097 (get_windows_debug_event): Use thread_id, rather than relying on
9098 current_event.dwThreadId being changed.
9099
68ffc902
JT
91002015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9101
9102 * windows-nat.c (windows_continue): Report an error if
9103 ContinueDebugEvent() fails.
9104
23942819
JT
91052015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9106
9107 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9108
e6ad66bd
JT
91092015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9110
9111 * windows-nat.c (get_windows_debug_event): Replace retval with
9112 thread_id throughout. Update stale comment.
9113
776704b9
JT
91142015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9115
9116 * windows-nat.c (get_windows_debug_event): Don't use ternary
9117 conditional operator.
9118
8aae4344
PM
91192015-04-21 Pierre Muller <muller@sourceware.org>
9120
9121 PR pascal/17815
9122 p-exp.y (yylex): Reorganize code to return the matched pattern
9123 for a field of this.
9124
819843c7
GB
91252015-04-21 Gary Benson <gbenson@redhat.com>
9126
9127 * common/fileio.h (fileio_to_host_openflags): New declaration.
9128 * common/fileio.c (fcntl.h): New include.
9129 (fileio_to_host_openflags): New function, factored out from...
9130 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9131 Single use updated.
9132
0bca7f99
KB
91332015-04-21 Kevin Buettner <kevinb@redhat.com>
9134
9135 * rl78-tdep.c (RL78_SP_ADDR): Define.
9136 (opc_reg_to_gdb_regnum): New static function.
9137 (rl78_analyze_prologue): Recognize instructions forming slightly
9138 more interesting prologues.
9139
e771e4be
PMR
91402015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9141
9142 Revert:
9143 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9144 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9145 TYPE_CODE_REF types so that they are not considered as dynamic
9146 depending on the referenced type.
9147 (resolve_dynamic_type_internal): Likewise.
9148
ee715b5a
PMR
91492015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9150
9151 Revert:
9152 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9153 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9154 "top_level" parameter.
9155 (resolve_dynamic_type_internal): Remove the unused "top_level"
9156 parameter. Update call to is_dynamic_type_internal.
9157 (is_dynamic_type): Update call to is_dynamic_type_internal.
9158 (resolve_dynamic_range): Update call to
9159 resolve_dynamic_type_internal.
9160 (resolve_dynamic_union): Likewise.
9161 (resolve_dynamic_struct): Likewise.
9162 (resolve_dynamic_type): Likewise.
9163
e31d7699
GKB
91642015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9165
9166 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9167 xmalloc.
9168
d214e5e7
TS
91692015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9170
110f9112
TS
9171 * reply_mig_hack.awk: Robustify parsing.
9172
d214e5e7
TS
9173 * reply_mig_hack.awk: Don't bother to declare an intermediate
9174 function pointer variable.
9175
8f61baf8
DE
91762015-04-17 Doug Evans <dje@google.com>
9177
9178 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9179 to "exec_displacement" to avoid confusion with inner use of the name.
9180
dbbf180a
YQ
91812015-04-17 Pedro Alves <palves@redhat.com>
9182
9183 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9184 if HW point of TYPE isn't supported.
9185
059790a0
YQ
91862015-04-17 Yao Qi <yao.qi@linaro.org>
9187 Pedro Alves <palves@redhat.com>
9188
9189 * target.h (target_can_use_hardware_watchpoint): Update comments.
9190 Remove trailing ";".
9191
1b6e6f5c
GB
91922015-04-17 Gary Benson <gbenson@redhat.com>
9193
9194 * remote.c (remote_add_inferior): New argument try_open_exec.
9195 If nonzero, attempt to open the inferior's executable file as
9196 the main executable if no main executable is open already.
9197 All callers updated.
9198 * NEWS: Mention that GDB now supports automatic location and
9199 retrieval of executable + files from remote targets.
9200
c78fa86a
GB
92012015-04-17 Gary Benson <gbenson@redhat.com>
9202
9203 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9204 * remote.c (PACKET_qXfer_exec_file): Likewise.
9205 (remote_protocol_features): Register the
9206 "qXfer:exec-file:read" feature.
9207 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9208 (remote_pid_to_exec_file): New function.
9209 (init_remote_ops): Initialize to_pid_to_exec_file.
9210 (_initialize_remote): Register new "set/show remote
9211 pid-to-exec-file-packet" command.
9212 * NEWS: Announce new qXfer:exec-file:read packet.
9213
e0d86d2c
GB
92142015-04-17 Gary Benson <gbenson@redhat.com>
9215
9216 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9217 New declaration.
9218 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9219 New function, factored out from...
9220 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9221
a9a5a3d1
GB
92222015-04-17 Gary Benson <gbenson@redhat.com>
9223
9224 * exec.c (solist.h): New include.
9225 (exec_file_locate_attach): Prefix absolute executable
9226 paths with gdb_sysroot if set.
9227 * NEWS: Mention that executable paths may be prepended
9228 with sysroot.
9229
af1900b0
GB
92302015-04-17 Gary Benson <gbenson@redhat.com>
9231
9232 * solist.h (exec_file_find): New declaration.
9233 * solib.c (solib_find_1): New function, factored out from...
9234 (solib_find): ...here.
9235 (exec_file_find): New function.
9236
a10de604
GB
92372015-04-17 Gary Benson <gbenson@redhat.com>
9238
9239 * gdbcore.h (exec_file_locate_attach): New declaration.
9240 * exec.c (exec_file_locate_attach): New function, factored
9241 out from...
9242 * infcmd.c (attach_command_post_wait): ...here.
9243
92209ddf
MF
92442015-04-17 Mike Frysinger <vapier@gentoo.org>
9245
9246 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9247
8550d3b3
YQ
92482015-04-16 Yao Qi <yao.qi@linaro.org>
9249
9250 * infrun.c (maybe_software_singlestep): Declare.
9251 (displaced_step_fixup): Call maybe_software_singlestep.
9252
30b3dd9d
DE
92532015-04-15 Doug Evans <dje@google.com>
9254
9255 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9256
61d96d7e
DE
92572015-04-15 Doug Evans <dje@google.com>
9258
9259 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9260
40d2f8d6
SM
92612015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9262
9263 * python/lib/gdb/command/unwinders.py: Add parentheses.
9264
6bbbba9b
YQ
92652015-04-15 Yao Qi <yao.qi@linaro.org>
9266
9267 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9268
2bb2dcab
YQ
92692015-04-15 Yao Qi <yao.qi@linaro.org>
9270
9271 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9272
41f071ef
YQ
92732015-04-15 Yao Qi <yao.qi@linaro.org>
9274
9275 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9276 dsc->insn_size instead of 4.
9277
326a5c7e
GB
92782015-04-14 Gary Benson <gbenson@redhat.com>
9279
9280 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9281 * minidebug.c (lzma_stat): Likewise.
9282 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9283 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9284
dd177e81
SS
92852015-04-13 Stan Shebs <stanshebs@google.com>
9286
9287 * MAINTAINERS: Update my email address.
9288
97de3545
JB
92892015-04-13 John Baldwin <jhb@FreeBSD.org>
9290
9291 * amd64-tdep.c (amd64_target_description): New function.
9292 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9293 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9294 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9295 x86 extended save area.
9296 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9297 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9298 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9299 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9300 "amd64fbsd_read_description".
9301 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9302 (amd64fbsd_supply_xstateregset): New function.
9303 (amd64fbsd_collect_xstateregset): New function.
9304 Add "amd64fbsd_xstateregset".
9305 (amd64fbsd_iterate_over_regset_sections): New function.
9306 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9307 "I386_FBSD_XSAVE_XCR0_OFFSET".
9308 Add "iterate_over_regset_sections" gdbarch method.
9309 Add "core_read_description" gdbarch method.
9310 * i386-tdep.c (i386_target_description): New function.
9311 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9312 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9313 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9314 x86 extended save area.
9315 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9316 * i386bsd-nat.h: Export i386bsd_xsave_len.
9317 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9318 (_initialize_i386fbsd_nat): Set "to_read_description" to
9319 "i386fbsd_read_description".
9320 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9321 (i386fbsd_core_read_description): New function.
9322 (i386fbsd_supply_xstateregset): New function.
9323 (i386fbsd_collect_xstateregset): New function.
9324 Add "i386fbsd_xstateregset".
9325 (i386fbsd_iterate_over_regset_sections): New function.
9326 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9327 "I386_FBSD_XSAVE_XCR0_OFFSET".
9328 Add "iterate_over_regset_sections" gdbarch method.
9329 Add "core_read_description" gdbarch method.
9330 * i386fbsd-tdep.h: New file.
9331
4f45d445
JK
93322015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9333
9334 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9335 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9336 conditional.
9337 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9338 and lb.
9339 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9340 va.
9341 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9342 conditional.
9343 * defs.h (xdb_commands): Remove declaration.
9344 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9345 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9346 * infcmd.c (run_no_args_command, go_command): Remove.
9347 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9348 * infrun.c (xdb_handle_command): Remove.
9349 (_initialize_infrun): Remove xdb_commands for lz and z.
9350 * main.c (xdb_commands): Remove variable.
9351 (captured_main): Remove "xdb" from long_options.
9352 (print_gdb_help): Remove --xdb from help.
9353 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9354 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9355 * stack.c (backtrace_full_command, args_plus_locals_info)
9356 (current_frame_command): Remove.
9357 (_initialize_stack): Remove xdb_commands for t, T and l.
9358 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9359 * thread.c (_initialize_thread): Remove xdb_commands condition.
9360 * tui/tui-layout.c (tui_toggle_layout_command)
9361 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9362 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9363 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9364 (tui_scroll_regs_backward_command): Remove.
9365 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9366 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9367 (_initialize_tui_win): Remove xdb_commands for U and w.
9368 * utils.c (pagination_on_command, pagination_off_command): Remove.
9369 (initialize_utils): Remove xdb_commands for am and sm.
9370
cb71640d
PA
93712015-04-10 Pedro Alves <palves@redhat.com>
9372
9373 * infrun.c (displaced_step_fixup): Switch to the event ptid
9374 earlier. If the thread stopped for a watchpoint and the
9375 target/arch has non-continuable watchpoints, cancel the displaced
9376 step.
9377 (resume): Don't start a displaced step if in-line step-over info
9378 is valid.
9379
8f572e5c
PA
93802015-04-10 Pedro Alves <palves@redhat.com>
9381
9382 * infrun.c (displaced_step_in_progress): New function.
9383 (do_target_resume): Advise target to report all signals if
9384 displaced stepping.
9385
8d707a12
PA
93862015-04-10 Pedro Alves <palves@redhat.com>
9387
9388 PR gdb/18216
9389 * infrun.c (process_event_stop_test): Don't assume a step-resume
9390 is set if tp->stepped_breakpoint is true.
9391
ef713951
YQ
93922015-04-10 Yao Qi <yao.qi@linaro.org>
9393
9394 * arm-tdep.c (install_alu_reg): Update comment.
9395 (thumb_copy_alu_reg): Remove local variable rn. Update
9396 debugging message. Use r2 instead of r1 in the modified
9397 instruction.
9398
906d60cf
PA
93992015-04-10 Pedro Alves <palves@redhat.com>
9400
9401 PR gdb/13858
9402 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9403 linux_displaced_step_location as gdbarch_displaced_step_location
9404 hook.
9405 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9406 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9407 * linux-tdep.c (linux_displaced_step_location): New function,
9408 based on ppc_linux_displaced_step_location.
9409 * linux-tdep.h (linux_displaced_step_location): New declaration.
9410 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9411 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9412 Delete.
9413 (ppc_linux_init_abi): Install linux_displaced_step_location as
9414 gdbarch_displaced_step_location hook, even without Cell/B.E..
9415 (_initialize_ppc_linux_tdep): Don't install
9416 ppc_linux_inferior_created as inferior_created observer.
9417 * s390-linux-tdep.c (s390_gdbarch_init): Install
9418 linux_displaced_step_location as gdbarch_displaced_step_location
9419 hook.
9420
7823a941
GB
94212015-04-09 Gary Benson <gbenson@redhat.com>
9422
9423 * common/common-remote-fileio.h: Rename to...
9424 * common/fileio.h: ...this. Update all references.
9425 (remote_fileio_to_fio_error): Rename to...
9426 (host_to_fileio_error): ...this.
9427 (remote_fileio_to_be): Rename to...
9428 (host_to_bigendian): ...this. Update all callers.
9429 (remote_fileio_to_fio_uint): Rename to...
9430 (host_to_fileio_uint): ...this. Update all callers.
9431 (remote_fileio_to_fio_time): Rename to...
9432 (host_to_fileio_time): ...this. Update all callers.
9433 (remote_fileio_to_fio_stat): Rename to...
9434 (host_to_fileio_stat): ...this.
9435 Update all references.
9436 * common/common-remote-fileio.c: Rename to...
9437 * common/fileio.c: ...this. Update all references.
9438 (remote_fileio_to_fio_error): Rename to...
9439 (host_to_fileio_error): ...this. Update all callers.
9440 (remote_fileio_mode_to_target): Rename to...
9441 (fileio_mode_pack): ...this. Update all callers.
9442 (remote_fileio_to_fio_mode): Rename to...
9443 (host_to_fileio_mode): ...this. Update all callers.
9444 (remote_fileio_to_fio_ulong): Rename to...
9445 (host_to_fileio_ulong): ...this. Update all callers.
9446 (remote_fileio_to_fio_stat): Rename to...
9447 (host_to_fileio_stat): ...this. Update all callers.
9448
f2983cc3
AW
94492015-04-09 Andy Wingo <wingo@igalia.com>
9450
9451 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9452 (frame_functions): Bind gdbscm_frame_read_register to
9453 frame-read-register.
9454 * guile/lib/gdb.scm (frame-read-register): Export.
9455
b88bb450
GB
94562015-04-09 Gary Benson <gbenson@redhat.com>
9457
9458 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9459 New declaration.
9460 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9461 New function, factored out the named functions below.
9462 * inf-child.c (gdb/fileio.h): Remove include.
9463 (common-remote-fileio.h): New include.
9464 (inf_child_errno_to_fileio_error): Remove function. Update
9465 all callers to use remote_fileio_to_fio_error.
9466 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9467
2f2680f3
AW
94682015-04-09 Andy Wingo <wingo@igalia.com>
9469
9470 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9471
5a2d4533
L
94722015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9473
9474 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9475 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9476 * configure: Regenerated.
9477
421693b0
PA
94782015-04-09 Pedro Alves <palves@redhat.com>
9479
9480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9481 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9482 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9483 * gnulib/import/Makefile.am: Update.
9484 * gnulib/import/Makefile.in: Update.
9485 * gnulib/import/m4/gnulib-cache.m4: Update.
9486 * gnulib/import/m4/gnulib-comp.m4: Update.
9487 * gnulib/import/m4/strtok_r.m4: New file.
9488 * gnulib/import/strtok_r.c: New file.
9489
f543dc83
PA
94902015-04-09 Pedro Alves <palves@redhat.com>
9491
9492 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9493 "called too early to check prototype".
9494
6d62641c
SDJ
94952015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9496
9497 PR python/16699
9498 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9499 use a caching mechanism. Adjust comments and code to reflect
9500 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9501 (cmdpy_completer_handle_brkchars): Adjust call to
9502 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9503 (cmdpy_completer): Likewise.
9504
85558555
YQ
95052015-04-08 Yao Qi <yao.qi@linaro.org>
9506
9507 * spu-tdep.c (spu_gdbarch_init): Don't call
9508 set_gdbarch_cannot_step_breakpoint.
9509
d249a14a
SDJ
95102015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9511
9512 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9513
8a06aea7
PA
95142015-04-07 Pedro Alves <palves@redhat.com>
9515
9516 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9517 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9518 (delete_exited_threads): New declaration.
9519 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9520 * linux-nat.c (linux_nat_update_thread_list): New function.
9521 (linux_nat_add_target): Install it.
9522 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9523 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9524 (delete_exited_threads): New function.
9525
d9b67d9f
PA
95262015-04-07 Pedro Alves <pedro@codesourcery.com>
9527
9528 * infrun.c (resume) <displaced stepping debug output>: Get the
9529 leader thread's regcache, not resume_ptid's.
9530
2c26b84f
DE
95312015-04-06 Doug Evans <xdje42@gmail.com>
9532
9533 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9534 VAR_DOMAIN.
9535 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9536 Include symbol domain in debugging output.
9537
7a85168d
PA
95382015-04-06 Pedro Alves <palves@redhat.com>
9539 Bernd Edlinger <bernd.edlinger@hotmail.de>
9540
9541 * configure.ac: Remove the mingw32-specific stub-termcap.o
9542 fallback, and instead fallback to the stub termcap on all hosts.
9543 * configure: Regenerate.
9544 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9545 symbols.
9546
25755e2b
PMR
95472015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9548
9549 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9550 "top_level" parameter.
9551 (resolve_dynamic_type_internal): Remove the unused "top_level"
9552 parameter. Update call to is_dynamic_type_internal.
9553 (is_dynamic_type): Update call to is_dynamic_type_internal.
9554 (resolve_dynamic_range): Update call to
9555 resolve_dynamic_type_internal.
9556 (resolve_dynamic_union): Likewise.
9557 (resolve_dynamic_struct): Likewise.
9558 (resolve_dynamic_type): Likewise.
9559
961f4160
PMR
95602015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9561
9562 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9563 TYPE_CODE_REF types so that they are not considered as dynamic
9564 depending on the referenced type.
9565 (resolve_dynamic_type_internal): Likewise.
9566
39f3de7c
L
95672015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9568
9569 * Makefile.in (top_srcdir): New.
9570 * configure: Regenerated.
9571
599bd15c
GB
95722015-04-02 Gary Benson <gbenson@redhat.com>
9573
9574 * NEWS: Announce the new default sysroot of "target:".
9575
fed040c6
GB
95762015-04-02 Gary Benson <gbenson@redhat.com>
9577
9578 * main.c (captured_main): Set gdb_sysroot to "target:"
9579 if not otherwise set.
9580
64c0b5de
GB
95812015-04-02 Gary Benson <gbenson@redhat.com>
9582
9583 * exec.c (exec_file_attach): Support "target:" filenames.
9584
b57fbfba
GB
95852015-04-02 Gary Benson <gbenson@redhat.com>
9586
9587 * solib.c (solib_find): Strip "target:" prefix from sysroot
9588 if accessing local files.
9589
97a41605
GB
95902015-04-02 Gary Benson <gbenson@redhat.com>
9591
9592 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9593 checks and error messages.
9594
2938e6cf
GB
95952015-04-02 Gary Benson <gbenson@redhat.com>
9596
9597 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9598 (remote_filename_p): Remove declaration.
9599 (remote_bfd_open): Likewise.
9600 * remote.c (remote_bfd_iovec_open): Remove function.
9601 (remote_bfd_iovec_close): Likewise.
9602 (remote_bfd_iovec_pread): Likewise.
9603 (remote_bfd_iovec_stat): Likewise.
9604 (remote_filename_p): Likewise.
9605 (remote_bfd_open): Likewise.
9606 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9607 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9608 (gdb_bfd_open_maybe_remote): Remove function.
9609 (symfile_bfd_open): Replace remote filename check with
9610 target filename check.
9611 (reread_symbols): Use gdb_bfd_open.
9612 * build-id.c (gdbcore.h): New include.
9613 (build_id_to_debug_bfd): Use gdb_bfd_open.
9614 * infcmd.c (attach_command_post_wait): Remove remote filename
9615 check.
9616 * solib.c (solib_find): Replace remote-specific handling with
9617 target-specific handling. Update comments where necessary.
9618 (solib_bfd_open): Replace remote-specific handling with
9619 target-specific handling.
9620 (gdb_sysroot_changed): New function.
9621 (_initialize_solib): Call the above when gdb_sysroot changes.
9622 * windows-tdep.c (gdbcore.h): New include.
9623 (windows_xfer_shared_library): Use gdb_bfd_open.
9624
f08e97fe
GB
96252015-04-02 Gary Benson <gbenson@redhat.com>
9626
9627 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9628 (is_target_filename): New declaration.
9629 (gdb_bfd_has_target_filename): Likewise.
9630 (gdb_bfd_open): Update documentation comment.
9631 * gdb_bfd.c (target.h): New include.
9632 (gdb/fileio.h): Likewise.
9633 (is_target_filename): New function.
9634 (gdb_bfd_has_target_filename): Likewise.
9635 (fileio_errno_to_host): Likewise.
9636 (gdb_bfd_iovec_fileio_open): Likewise.
9637 (gdb_bfd_iovec_fileio_pread): Likewise.
9638 (gdb_bfd_iovec_fileio_close): Likewise.
9639 (gdb_bfd_iovec_fileio_fstat): Likewise.
9640 (gdb_bfd_open): Use target fileio to access paths prefixed
9641 with "target:" where necessary.
9642
4bd7dc42
GB
96432015-04-02 Gary Benson <gbenson@redhat.com>
9644
9645 * target.h (struct target_ops) <to_filesystem_is_local>:
9646 New field.
9647 (target_filesystem_is_local): New macro.
9648 * target-delegates.c: Regenerate.
9649 * remote.c (remote_filesystem_is_local): New function.
9650 (init_remote_ops): Initialize to_filesystem_is_local.
9651
9b15c1f0
GB
96522015-04-02 Gary Benson <gbenson@redhat.com>
9653
9654 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9655 (target_fileio_fstat): New declaration.
9656 * target.c (target_fileio_fstat): New function.
9657 * inf-child.c (inf_child_fileio_fstat): Likewise.
9658 (inf_child_target): Initialize to_fileio_fstat.
9659 * remote.c (init_remote_ops): Likewise.
9660
d11916aa
SS
96612015-04-01 Sasha Smundak <asmundak@google.com>
9662
9663 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9664 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9665 (py-unwind.o): New recipe.
9666 * NEWS: mention Python frame unwinding.
9667 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9668 gdb/unwinder.py and gdb/command/unwinder.py
9669 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9670 list.
9671 (execute_unwinders): New function.
9672 * python/lib/gdb/command/unwinders.py: New file.
9673 * python/lib/gdb/unwinder.py: New file.
9674 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9675 (objfpy_dealloc): Decrement frame_unwinders reference count.
9676 (objfpy_initialize): Create frame_unwinders list.
9677 (objfpy_get_frame_unwinders): New function.
9678 (objfpy_set_frame_unwinders): Ditto.
9679 (objfile_getset): Add frame_unwinders attribute to Objfile.
9680 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9681 (pspy_dealloc): Decrement frame_unwinders reference count.
9682 (pspy_initialize): Create frame_unwinders list.
9683 (pspy_get_frame_unwinders): New function.
9684 (pspy_set_frame_unwinders): Ditto.
9685 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9686 * python/py-unwind.c: New file.
9687 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9688 (objpy_get_frame_unwinders): New prototype.
9689 (gdbpy_initialize_unwind): New prototype.
9690 * python/python.c (gdbpy_apply_type_printers): Call
9691 gdbpy_initialize_unwind.
9692
6b403daa
PA
96932015-04-01 Pedro Alves <palves@redhat.com>
9694
9695 * infrun.c (resume): Check currently_stepping after clearing
9696 stepped_breakpoint, not before.
9697
1176ecec
PA
96982015-04-01 Pedro Alves <palves@redhat.com>
9699
9700 * infrun.c (print_target_wait_results): Print all the ptid
9701 elements.
9702
de1fe8c8
PA
97032015-04-01 Pedro Alves <palves@redhat.com>
9704
9705 * infrun.c (keep_going): Also discard cleanups if inserting
9706 breakpoints fails.
9707
e6f5c25b
PA
97082015-04-01 Pedro Alves <palves@redhat.com>
9709
9710 * infrun.c (wait_for_inferior): Install the
9711 finish_thread_state_cleanup cleanup across the whole function, not
9712 just around handle_inferior_event.
9713
1ac806b8
PA
97142015-04-01 Pedro Alves <palves@redhat.com>
9715
9716 * infrun.c (resume) <step past permanent breakpoint>: Use
9717 do_target_resume.
9718
2ee52aa4
PA
97192015-04-01 Pedro Alves <palves@redhat.com>
9720
9721 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9722
5445da1b
PMR
97232015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9724
9725 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9726
4eec2deb
PA
97272015-04-01 Pedro Alves <palves@redhat.com>
9728
9729 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9730 list if it was marked exited.
9731
afa59b79
L
97322015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9733
9734 * configure: Regenerated.
9735
df8411da
SDJ
97362015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9737 Jan Kratochvil <jan.kratochvil@redhat.com>
9738 Oleg Nesterov <oleg@redhat.com>
9739
9740 PR corefiles/16092
9741 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9742 New enum identifying the various options of the coredump_filter
9743 file.
9744 (struct smaps_vmflags): New struct.
9745 (use_coredump_filter): New variable.
9746 (decode_vmflags): New function.
9747 (mapping_is_anonymous_p): Likewise.
9748 (dump_mapping_p): Likewise.
9749 (linux_find_memory_regions_full): New variables
9750 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9751 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9752 parsing of its information. Implement memory mapping filtering
9753 based on its contents.
9754 (show_use_coredump_filter): New function.
9755 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9756 * NEWS: Mention the possibility of using the
9757 '/proc/PID/coredump_filter' file when generating a corefile.
9758 Mention new command 'set use-coredump-filter'.
9759
416f679e
SDJ
97602015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9761
9762 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9763 read_memory_unsigned_integer.
9764
711a72d3
L
97652015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9766
9767 * Makefile.in (ZLIB): New.
9768 (ZLIBINC): Likewise.
9769 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9770 (CLIBS): Add $(ZLIB).
9771 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9772 Add -lz to LIBS.
9773 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9774 * top.c (print_gdb_configuration): Remove --with-zlib and
9775 --without-zlib.
9776 * config.in: Regenerated.
9777 * configure: Likewise.
9778
d33279b3
AT
97792015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9780
9781 * NEWS: Mention info os cpus support.
9782 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9783 (struct osdata_type): Add cpus entry, reorder the entries in
9784 alphabetical order.
9785
71b30f27
MK
97862015-03-31 Matthias Klose <doko@ubuntu.com>
9787
9788 * compile/compile.c (compile_to_object): Allow triplets with or
9789 without vendor set.
9790
13ce9222
DE
97912015-03-30 Doug Evans <dje@google.com>
9792
9793 PR c++/18141
9794 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9795 klass in VAR_DOMAIN.
9796
20f796c9
GB
97972015-03-30 Gary Benson <gbenson@redhat.com>
9798
9799 * remote.c (remote_mourn_1): Remove function. Update all callers
9800 to use remote_mourn.
9801 (extended_remote_mourn_1): Remove function. Update all callers
9802 to use extended_remote_mourn.
9803 (extended_remote_attach_1): Remove function. Update all callers
9804 to use extended_remote_attach.
9805
49d45b20
JB
98062015-03-28 James Bowman <james.bowman@ftdichip.com>
9807
9808 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9809 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9810 (ALLDEPFILES): Add ft32-tdep.c.
9811 * configure.tgt: Add FT32 entry.
9812 * ft32-tdep.c: New file, FT32 target-dependent code.
9813 * ft32-tdep.h: New file, FT32 target-dependent code.
9814
1c4ff080
JK
98152015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9816
9817 Revert:
9818 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 Code cleanup.
9820 * printcmd.c (print_command_1): Move expr variable scope.
9821
79498702
JB
98222015-03-27 Joel Brobecker <brobecker@adacore.com>
9823
9824 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9825
ce9c0ca1
AK
98262015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9827
9828 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9829 sections.
9830
429e1e81
JB
98312015-03-26 Joel Brobecker <brobecker@adacore.com>
9832
9833 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9834 exception raised while parsing the probe arguments.
9835 Force parsing to be done using the C language parser.
9836 * expression.h (parse_expression_with_language): Declare.
9837 * parse.c (parse_expression_with_language): New function.
9838
4593441b
JT
98392015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9840
9841 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9842
ff908ebf
AW
98432015-03-26 Andy Wingo <wingo@igalia.com>
9844
9845 PR symtab/18148
9846 * dwarf2read.c (struct partial_die_info): Add has_const_value
9847 member.
9848 (add_partial_symbol): Don't punt on symbols that have const_value
9849 attributes.
9850 (read_partial_die): Detect DW_AT_const_value.
9851
f30d5c78
JK
98522015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9853
9854 Code cleanup.
9855 * printcmd.c (print_command_1): Move expr variable scope.
9856
8d89f51a
JK
98572015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 Code cleanup.
9860 * printcmd.c (validate_format): Make the parameter cmdname const.
9861
0b736949
DB
98622015-03-26 Don Breazeal <donb@codesourcery.com>
9863
9864 * remote.c (_initialize_remote): Update comment.
9865
20d35291
PA
98662015-03-26 Pedro Alves <palves@redhat.com>
9867 Jon TURNEY <jon.turney@dronecode.org.uk>
9868
9869 * coffread.c (coff_symfile_read): When constructing the name of an
9870 import stub symbol from import symbol for amd64, only skip the
9871 char after _imp_ if the target is underscored (like i386) and the
9872 char is indeed the target's leading char.
9873
6a3753b3
PA
98742015-03-25 Pedro Alves <palves@redhat.com>
9875
9876 * target.h <to_async>: Replace 'callback' and 'context' parameters
9877 with boolean 'enable' parameter.
9878 (target_async): Replace CALLBACK and CONTEXT parameters with
9879 boolean ENABLE parameter.
9880 * inf-loop.c (inferior_event_handler): Adjust.
9881 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9882 (linux_nat_resume): Adjust.
9883 (async_client_callback, async_client_context): Delete.
9884 (handle_target_event): Call inferior_event_handler directly.
9885 (linux_nat_async): Replace 'callback' and 'context' parameters
9886 with boolean 'enable' parameter. Adjust. Remove references to
9887 async_client_callback and async_client_context.
9888 (linux_nat_close): Adjust.
9889 * record-btrace.c (record_btrace_async): Replace 'callback' and
9890 'context' parameters with boolean 'enable' parameter. Adjust.
9891 (record_btrace_resume): Adjust.
9892 * record-full.c (record_full_async): Replace 'callback' and
9893 'context' parameters with boolean 'enable' parameter. Adjust.
9894 (record_full_resume, record_full_core_resume): Adjust.
9895 * remote.c (struct remote_state) <async_client_callback,
9896 async_client_context>: Delete fields.
9897 (remote_start_remote, extended_remote_attach_1, remote_resume)
9898 (extended_remote_create_inferior): Adjust.
9899 (remote_async_serial_handler): Call inferior_event_handler
9900 directly.
9901 (remote_async): Replace 'callback' and 'context' parameters with
9902 boolean 'enable' parameter. Adjust.
9903 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9904 Adjust.
9905 * target-delegates.c: Regenerate.
9906
1c4b552b
GB
99072015-03-25 Gary Benson <gbenson@redhat.com>
9908 Pedro Alves <palves@redhat.com>
9909
9910 * target.c (fileio_ft_t): New typedef, define object vector.
9911 (fileio_fhandles): New static variable.
9912 (is_closed_fileio_fh): New macro.
9913 (lowest_closed_fd): New static variable.
9914 (acquire_fileio_fd): New function.
9915 (release_fileio_fd): Likewise.
9916 (fileio_fd_to_fh): New macro.
9917 (target_fileio_open): Wrap the file descriptor on success.
9918 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9919 (target_fileio_pread): Likewise.
9920 (target_fileio_close): Likewise.
9921
a25d8bf9
PA
99222015-03-24 Pedro Alves <palves@redhat.com>
9923
9924 * thread.c (thread_apply_all_command): Take exited threads into
9925 account.
9926
44a1ee51
PA
99272015-03-24 Pedro Alves <palves@redhat.com>
9928
9929 * infrun.c (resume, proceed): Mention
9930 switch_back_to_stepped_thread, not switch_back_to_stepping.
9931
f3263aa4
PA
99322015-03-24 Pedro Alves <palves@redhat.com>
9933
9934 * infrun.c (user_visible_resume_ptid): Rewrite going from
9935 most-locked to unlocked instead of the opposite. Move comment ...
9936 * infrun.h (user_visible_resume_ptid): ... here.
9937
2bf6fb9d
PA
99382015-03-24 Pedro Alves <palves@redhat.com>
9939
9940 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9941 to resume the event lwp. Use the lwp's ptid instead of the passed
9942 in (maybe wildcard) ptid.
9943 (stop_wait_callback): Tweak debug log output.
9944 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9945 TRAP_TRACE.
9946 (linux_nat_filter_event): In debug output, distinguish a
9947 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9948 before trying to resume the lwp.
9949
283a9958
JB
99502015-03-24 Joel Brobecker <brobecker@adacore.com>
9951
9952 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9953 pointer indirection.
9954 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9955 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9956
93a8e227
JB
99572015-03-24 Joel Brobecker <brobecker@adacore.com>
9958
9959 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9960 Renames DYN_ATTR_DATA_LOCATION.
9961 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9962 DYN_ATTR_DATA_LOCATION.
9963 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9964 instead of DYN_ATTR_DATA_LOCATION.
9965
64ce06e4
PA
99662015-03-24 Pedro Alves <palves@redhat.com>
9967
9968 * breakpoint.c (until_break_command): Adjust call to proceed.
9969 * gdbthread.h (struct thread_control_state) <stepping_command>:
9970 New field.
9971 * infcall.c (run_inferior_call): Adjust call to proceed.
9972 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9973 Adjust calls to proceed.
9974 (set_step_frame): Set the current thread's step_start_function
9975 here.
9976 (step_once): Adjust calls to proceed.
9977 (jump_command, signal_command, until_next_command)
9978 (finish_backward, finish_forward, proceed_after_attach_callback)
9979 (attach_command_post_wait): Adjust calls to proceed.
9980 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9981 (do_target_resume): New function, factored out from ...
9982 (resume): ... here. Remove 'step' parameter. Instead, check
9983 currently_stepping to determine whether the thread should be
9984 single-stepped.
9985 (proceed): Remove 'step' parameter and don't set the thread's
9986 step_start_function here. Adjust call to 'resume'.
9987 (handle_inferior_event): Adjust calls to 'resume'.
9988 (switch_back_to_stepped_thread): Use do_target_resume instead of
9989 'resume'.
9990 (keep_going): Adjust calls to 'resume'.
9991 * infrun.h (proceed): Remove 'step' parameter.
9992 (resume): Likewise.
9993 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9994 'resume'.
9995 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9996
856e7dd6
PA
99972015-03-24 Pedro Alves <palves@redhat.com>
9998
9999 * gdbthread.h (struct thread_control_state) <stepping_command>:
10000 New field.
10001 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10002 the thread's stepping_command field.
10003 * infrun.c (resume): Check the thread's stepping_command flag to
10004 determine which threads should be resumed. Rename 'entry_step'
10005 local to user_step.
10006 (clear_proceed_status_thread): Clear 'stepping_command'.
10007 (schedlock_applies): Change parameter type to struct thread_info
10008 pointer. Adjust.
10009 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10010 (switch_back_to_stepped_thread): Adjust calls to
10011 'schedlock_applies'.
10012 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10013
885eeb5b
PA
100142015-03-24 Pedro Alves <palves@redhat.com>
10015
10016 * infrun.c (step_start_function): Delete and ...
10017 * gdbthread.h (struct thread_control_state) <step_start_function>:
10018 ... now a field here.
10019 * infrun.c (clear_proceed_status_thread): Clear the thread's
10020 step_start_function.
10021 (proceed, process_event_stop_test, print_stop_event): Adjust.
10022
3333f03a
PA
100232015-03-24 Pedro Alves <palves@redhat.com>
10024
10025 * infrun.c (proceed): No longer handle negative step.
10026
369f6daa
GB
100272015-03-24 Gary Benson <gbenson@redhat.com>
10028
10029 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10030 (x86_linux_prepare_to_resume): Likewise.
10031 * x86-linux-nat.c (x86_linux_new_thread):
10032 Moved to nat/x86-linux.c.
10033 (x86_linux_prepare_to_resume): Likewise.
10034 * nat/x86-linux.c (x86_linux_new_thread): New function.
10035 (x86_linux_prepare_to_resume): Likewise.
10036
8e5d4070
GB
100372015-03-24 Gary Benson <gbenson@redhat.com>
10038
10039 * nat/x86-linux-dregs.h: New file.
10040 * nat/x86-linux-dregs.c: Likewise.
10041 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10042 (x86-linux-dregs.o): New rule.
10043 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10044 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10045 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10046 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10047 (x86_linux_dr_get): Likewise.
10048 (x86_linux_dr_set): Likewise.
10049 (x86_linux_dr_get_addr): Likewise.
10050 (x86_linux_dr_get_control): Likewise.
10051 (x86_linux_dr_get_status): Likewise.
10052 (update_debug_registers_callback): Likewise.
10053 (x86_linux_dr_set_control): Likewise.
10054 (x86_linux_dr_set_addr): Likewise.
10055 (x86_linux_update_debug_registers): Likewise.
10056
2b95d440
GB
100572015-03-24 Gary Benson <gbenson@redhat.com>
10058
10059 * x86-linux-nat.c (x86_linux_update_debug_registers):
10060 New function, factored out from...
10061 (x86_linux_prepare_to_resume): ...this.
10062
14b0bc68
GB
100632015-03-24 Gary Benson <gbenson@redhat.com>
10064
10065 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10066 (x86_linux_dr_set): Likewise.
10067 (x86_linux_dr_get_addr): Likewise.
10068 (x86_linux_dr_get_control): Likewise.
10069 (x86_linux_dr_get_status): Likewise.
10070 (update_debug_registers_callback): Likewise.
10071 (x86_linux_dr_set_control): Likewise.
10072 (x86_linux_dr_set_addr): Likewise.
10073 (x86_linux_prepare_to_resume): Likewise.
10074 (x86_linux_new_thread): Likewise.
10075
5dfe6ca8
GB
100762015-03-24 Gary Benson <gbenson@redhat.com>
10077
10078 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10079 (x86_linux_new_thread): Rename argument.
10080
4b134ca1
GB
100812015-03-24 Gary Benson <gbenson@redhat.com>
10082
10083 * nat/x86-linux.h: New file.
10084 * nat/x86-linux.c: Likewise.
10085 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10086 (x86-linux.o): New rule.
10087 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10088 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10089 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10090 (lwp_set_arch_private_info): New declaration.
10091 (lwp_arch_private_info): Likewise.
10092 * linux-nat.c (lwp_set_arch_private_info): New function.
10093 (lwp_arch_private_info): Likewise.
10094 * x86-linux-nat.c: Include nat/x86-linux.h.
10095 (arch_lwp_info): Removed structure.
10096 (update_debug_registers_callback):
10097 Use lwp_set_debug_registers_changed.
10098 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10099 and lwp_set_debug_registers_changed.
10100 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10101
cff068da
GB
101022015-03-24 Gary Benson <gbenson@redhat.com>
10103
10104 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10105 (lwp_is_stopped): Likewise.
10106 (lwp_stop_reason): Likewise.
10107 * linux-nat.c (ptid_of_lwp): New function.
10108 (lwp_is_stopped): Likewise.
10109 (lwp_is_stopped_by_watchpoint): Likewise.
10110 * x86-linux-nat.c (update_debug_registers_callback):
10111 Use lwp_is_stopped.
10112 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10113 lwp_stop_reason.
10114
b2f7c7e8
GB
101152015-03-24 Gary Benson <gbenson@redhat.com>
10116
10117 * linux-nat.h (linux_stop_lwp): Move declaration to...
10118 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10119
6d4ee8c6
GB
101202015-03-24 Gary Benson <gbenson@redhat.com>
10121
10122 * linux-nat.h: Include nat/linux-nat.h.
10123 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10124 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10125 (iterate_over_lwps_ftype): New typedef.
10126 (iterate_over_lwps): New declaration.
10127 * linux-nat.h (iterate_over_lwps): Update comment. Use
10128 iterate_over_lwps_ftype. Update callback return value check.
10129
70a0bb6b
GB
101302015-03-24 Gary Benson <gbenson@redhat.com>
10131
10132 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10133 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10134
7b669087
GB
101352015-03-24 Gary Benson <gbenson@redhat.com>
10136
10137 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10138 * linux-nat.c (current_lwp_ptid): New function.
10139 * x86-linux-nat.c: Include nat/linux-nat.h.
10140 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10141 (x86_linux_dr_get_control): Likewise.
10142 (x86_linux_dr_get_status): Likewise.
10143 (x86_linux_dr_set_control): Likewise.
10144 (x86_linux_dr_set_addr): Likewise.
10145
15630549
AT
101462015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10147
10148 PR breakpoints/16466
10149 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10150
8a4506c0
JB
101512015-03-23 Joel Brobecker <brobecker@adacore.com>
10152
10153 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10154 * ser-unix.c (hardwire_setparity): Likewise.
10155
236af5e3
YG
101562015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10157
10158 * NEWS: Mention set/show serial parity command.
10159 * monitor.c (monitor_open): Call serial_setparity.
10160 * remote.c (remote_open_1): Likewise.
10161 * ser-base.c (ser_base_serparity): New function.
10162 * ser-base.h (ser_base_setparity): Add declaration.
10163 * ser-go32.c (dos_ops): Set "setparity" field.
10164 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10165 state.Parity.
10166 (ser_windows_setparity): New function.
10167 (hardwire_ops): Add ser_windows_setparity.
10168 (tty_ops): Add NULL for setparity field.
10169 (pipe_ops): Add ser_base_setparity.
10170 (tcp_ops): Likewise.
10171 * ser-pipe.c (pipe_ops): Likewise.
10172 * ser-tcp.c (tcp_ops): Likewise.
10173 * ser-unix.c (hardwire_setparity): Add declaration.
10174 (hardwire_raw): Don't reset PARENB flag.
10175 (hardwire_setparity): New function.
10176 (hardwire_ops): Add hardwire_setparity.
10177 * serial.c (serial_setparity): New function.
10178 (serial_parity): New global.
10179 (parity_none, parity_odd, parity_even, parity_enums, parity):
10180 New static globals.
10181 (set_parity): New function.
10182 (_initialize_serial): Add set/show serial parity commands.
10183 * serial.h (GDBPARITY_NONE): Define.
10184 (GDBPARITY_ODD): Define.
10185 (GDBPARITY_EVEN): Define.
10186 (serial_setparity) Add declaration.
10187 (struct serial_ops): Add setparity field.
10188 * target.h (serial_parity): Add declaration.
10189
32b40af9
KS
101902015-03-23 Keith Seitz <keiths@redhat.com>
10191
10192 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10193
693dca06
KS
101942015-03-23 Keith Seitz <keiths@redhat.com>
10195
10196 * breakpoint.c (parse_breakpoint_sals): Use
10197 linespec_lexer_lex_keyword to ascertain if the user specified
10198 a NULL location.
10199 * linespec.c [IF_KEYWORD_INDEX]: Define.
10200 (linespec_lexer_lex_keyword): Export.
10201 (struct ls_parser) <keyword_ok>: Remove.
10202 A keyword is only a keyword if not followed by another keyword.
10203 (linespec_lexer_lex_one): Remove keyword_ok handling.
10204 Add comment explaining why the parsing stream is not advanced
10205 when a keyword is seen.
10206 (parse_linespec): Remove parser->keyword_ok.
10207 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10208
7e993ebf
KS
102092015-03-23 Keith Seitz <keiths@redhat.com>
10210
10211 PR gdb/18021
10212 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10213 if we find a static method with DW_AT_vtable_elem_location.
10214
b1a0f704
EZ
102152015-03-21 Eli Zaretskii <eliz@gnu.org>
10216
10217 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10218 before the second loop, to avoid undefined behavior. Reported by
10219 Anton Blanchard <anton@samba.org>.
10220
d9823cbb
KB
102212015-03-20 Keven Boell <keven.boell@intel.com>
10222
10223 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10224 data_location usage to linked list.
10225 (resolve_dynamic_type_internal): Adapt data_location to
10226 linked list.
10227 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10228 (copy_type_recursive, copy_type): Add copy of linked list.
10229 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10230 (struct dynamic_prop_list): New struct.
10231 * dwarf2read.c (set_die_type): Set data_location data.
10232
2e7bf1d7
PA
102332015-03-20 Pedro Alves <palves@redhat.com>
10234
10235 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10236 inner block and make it const.
10237 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10238
7a26bd4d
PA
102392015-03-20 Pedro Alves <palves@redhat.com>
10240
10241 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10242 * breakpoint.h (set_breakpoint_condition): Update declaration.
10243
cd46431b
PA
102442015-03-20 Pedro Alves <palves@redhat.com>
10245
10246 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10247
e28566f7
PA
102482015-03-20 Pedro Alves <palves@redhat.com>
10249
10250 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10251
f6fc92f6
PA
102522015-03-20 Pedro Alves <palves@redhat.com>
10253
10254 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10255
c32ed3ef
PA
102562015-03-20 Pedro Alves <palves@redhat.com>
10257
10258 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10259 (nto_init_solib_absolute_prefix): Likewise.
10260
53e78085
PA
102612015-03-20 Pedro Alves <palves@redhat.com>
10262
10263 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10264 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10265
bc23328c
JK
102662015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10267
10268 * config/djgpp/README: Remove gdb.hp.
10269
e8ffc436
YQ
102702015-03-20 Yao Qi <yao.qi@linaro.org>
10271
10272 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10273 set_gdbarch_cannot_step_breakpoint.
10274
23f238d3
PA
102752015-03-19 Pedro Alves <palves@redhat.com>
10276
10277 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10278 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10279 instead call perror_with_name.
10280 (check_ptrace_stopped_lwp_gone): New function.
10281 (linux_resume_one_lwp): Reimplement as wrapper around
10282 linux_resume_one_lwp_throw that swallows errors if the LWP is
10283 gone.
10284 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10285 swallows errors if the LWP is gone. Use
10286 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10287
eb54c8bf
PA
102882015-03-19 Pedro Alves <palves@redhat.com>
10289
10290 * linux-nat.c (status_callback): Return early if the LWP has no
10291 status pending.
10292
b90fc188
PA
102932015-03-19 Pedro Alves <palves@redhat.com>
10294
10295 * linux-nat.c (select_event_lwp_callback): Update comment to no
10296 longer mention SIGTRAP.
10297
670f82d4
TG
102982015-03-18 Tristan Gingold <gingold@adacore.com>
10299
72f4393d
L
10300 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10301 redirection code to ...
10302 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10303 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 10304
464b0089
GB
103052015-03-18 Gary Benson <gbenson@redhat.com>
10306
10307 (remote_protocol_features): Remove the "vFile:fstat" feature.
10308 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10309
f68f11b7
YQ
103102015-03-11 Yao Qi <yao.qi@linaro.org>
10311
10312 PR tdep/18107
10313 * aarch64-linux-tdep.c: Include xml-syscall.h
10314 (aarch64_linux_get_syscall_number): New function.
10315 (aarch64_linux_init_abi): Call
10316 set_gdbarch_get_syscall_number.
10317 * syscalls/aarch64-linux.xml: New file.
10318
393bd0c0
YG
103192015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10320
10321 * ser-base.h (ser_base_setstopbits): Change second argument name
10322 from "rate" to "num".
10323
7f3647e2
GB
103242015-03-17 Gary Benson <gbenson@redhat.com>
10325 Luke Allardyce <lukeallardyce@gmail.com>
10326
10327 PR gdb/18131
10328 * common/common-remote-fileio.h (sys/stat.h): New include.
10329 (stuct stat): Remove forward declaration.
10330
3ce5b6e2
JB
103312015-03-16 John Baldwin <jhb@FreeBSD.org>
10332
10333 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10334 before writing core register notes.
10335
d053f6be
YZ
103362015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10337 Pedro Alves <palves@redhat.com>
10338
10339 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10340 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10341 (tgoto): Wrap with extern "C".
10342
b1a921c8
PA
103432015-03-16 Pedro Alves <palves@redhat.com>
10344 Yuanhui Zhang <asmwarrior@gmail.com>
10345
10346 * stub-termcap.c (tputs): Change prototype.
10347
876d1cd7
YZ
103482015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10349 Pedro Alves <palves@redhat.com>
10350
10351 * windows-nat.c (struct thread_info_struct): Rename to ...
10352 (struct windows_thread_info_struct): ... this.
10353 (thread_info): Rename to ...
10354 (windows_thread_info): ... this.
10355 All users updated.
10356
0800b440
JK
103572015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10358 Pedro Alves <palves@redhat.com>
10359
10360 * NEWS: New Removed targets and native configurations.
10361
103622015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
10363
10364 Remove HPUX.
10365 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10366 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10367 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10368 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10369 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10370 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10371 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10372 hppa-hpux-tdep.c.
10373 * config/ia64/hpux.mh: Remove file.
10374 * config/pa/hpux.mh: Remove file.
10375 * configure: Rebuilt.
10376 * configure.ac (dlgetmodinfo, somread.o): Remove.
10377 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10378 (ia64-*-hpux*): Remove its float format exception.
10379 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10380 * hppa-hpux-nat.c: Remove file.
10381 * hppa-hpux-tdep.c: Remove file.
10382 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10383 Move them here from hppa-tdep.h
10384 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10385 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10386 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10387 Move them to hppa-tdep.c.
10388 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10389 declarations.
10390 * ia64-hpux-nat.c: Remove file.
10391 * ia64-hpux-tdep.c: Remove file.
10392 * ia64-hpux-tdep.h: Remove file.
10393 * inf-ttrace.c: Remove file.
10394 * inf-ttrace.h: Remove file.
10395 * solib-ia64-hpux.c: Remove file.
10396 * solib-ia64-hpux.h: Remove file.
10397 * solib-pa64.c: Remove file.
10398 * solib-pa64.h: Remove file.
10399 * solib-som.c: Remove file.
10400 * solib-som.h: Remove file.
10401 * somread.c: Remove file.
10402
25268153
JB
104032015-03-13 John Baldwin <jhb@FreeBSD.org>
10404
10405 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10406 * config.in: Regenerate.
10407 * configure: Regenerate.
10408 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10409 define.
25268153
JB
10410 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10411 enumerate memory regions if present.
10412
773eacf5
JB
104132015-03-13 John Baldwin <jhb@FreeBSD.org>
10414
10415 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10416 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10417 expressions.
10418 (i386fbsd_sigtramp_p): Likewise.
10419
01b6bdb0
JB
104202015-03-12 John Baldwin <jhb@FreeBSD.org>
10421
10422 * MAINTAINERS (Write After Approval): Add John Baldwin.
10423
811a659a
GB
104242015-03-12 Gary Benson <gbenson@redhat.com>
10425
10426 * solib.c (_initialize_solib): Make "set/show sysroot" use
10427 add_setshow_optional_filename_cmd so it can be restored to
10428 empty after being set.
10429
10304ef3
SDJ
104302015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10431
10432 * Makefile.in (SFILES): New source break-catch-syscall.c.
10433 (COMMON_OBS): New object break-catch-syscall.o.
10434 * break-catch-syscall.c: New file.
10435 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10436 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10437 (struct syscall_catchpoint): Likewise.
10438 (dtor_catch_syscall): Likewise.
10439 (catch_syscall_inferior_data): Likewise.
10440 (struct catch_syscall_inferior_data): Likewise.
10441 (get_catch_syscall_inferior_data): Likewise.
10442 (catch_syscall_inferior_data_cleanup): Likewise.
10443 (insert_catch_syscall): Likewise.
10444 (remove_catch_syscall): Likewise.
10445 (breakpoint_hit_catch_syscall): Likewise.
10446 (print_it_catch_syscall): Likewise.
10447 (print_one_catch_syscall): Likewise.
10448 (print_mention_catch_syscall): Likewise.
10449 (print_recreate_catch_syscall): Likewise.
10450 (catch_syscall_breakpoint_ops): Likewise.
10451 (syscall_catchpoint_p): Likewise.
10452 (create_syscall_event_catchpoint): Likewise.
10453 (catch_syscall_split_args): Likewise.
10454 (catch_syscall_command_1): Likewise.
10455 (is_syscall_catchpoint_enabled): Likewise.
10456 (catch_syscall_enabled): Likewise.
10457 (catching_syscall_number): Likewise.
10458 (catch_syscall_completer): Likewise.
10459 (clear_syscall_counts): Likewise.
10460 (initialize_breakpoint_ops): Move initialization of syscall
10461 catchpoints to break-catch-syscall.c.
10462 (_initialize_breakpoint): Move code related to syscall catchpoints
10463 to break-catch-syscall.c.
10464
badd37ce
SDJ
104652015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10466
10467 * breakpoint.c (breakpoint_find_if): New function.
10468 * breakpoint.h (breakpoint_find_if): New prototype.
10469
0a93529c
GB
104702015-03-11 Gary Benson <gbenson@redhat.com>
10471
10472 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10473 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10474 (remote_fileio_to_host_ulong): Likewise.
10475 (remote_fileio_to_host_mode): Likewise.
10476 (remote_fileio_to_host_time): Likewise.
10477 (remote_fileio_to_host_stat): Likewise.
10478 * remote.c (PACKET_vFile_fstat): New enum value.
10479 (remote_protocol_features): Register the "vFile:fstat" feature.
10480 (remote_hostio_fstat): New function.
10481 (remote_bfd_iovec_stat): Use the above.
10482 (_initialize_remote): Register new "set/show remote
10483 hostio-fstat-packet" command.
10484 * symfile.c (separate_debug_file_exists): Update comment.
10485 * NEWS: Announce new vFile:fstat packet.
10486
791c0056
GB
104872015-03-11 Gary Benson <gbenson@redhat.com>
10488
10489 * common/common-remote-fileio.h: New file.
10490 * common/common-remote-fileio.c: Likewise.
10491 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10492 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10493 (COMMON_OBS): Add common-remote-fileio.o.
10494 (common-remote-fileio.o): New rule.
10495 * remote-fileio.h (common-remote-fileio.h): New include.
10496 * remote-fileio.c (gdb/fileio.h): Do not include.
10497 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10498 (remote_fileio_to_fio_uint): Likewise.
10499 (remote_fileio_to_fio_time): Likewise.
10500 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10501 (remote_fileio_to_fio_mode): Likewise.
10502 (remote_fileio_to_fio_ulong): Likewise.
10503 (remote_fileio_to_fio_stat): Likewise.
10504
1390d0ef
AW
105052015-03-11 Andy Wingo <wingo@igalia.com>
10506
10507 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10508 we were checking the cached type, not the cached dynamic type.
10509
84a4591a
AW
105102015-03-11 Andy Wingo <wingo@igalia.com>
10511
10512 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10513 other strings, as these are on the GC'd heap, and will be
10514 collected along with the smob.
10515
85642ba0
AW
105162015-03-11 Andy Wingo <wingo@igalia.com>
10517
10518 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10519 (objfile_functions): Bind gdbscm_objfile_progspace to
10520 objfile-progspace.
10521 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10522
92fab5a6
AW
105232015-03-11 Andy Wingo <wingo@igalia.com>
10524
10525 * guile/guile.c (_initialize_guile): Disable automatic
10526 finalization, if Guile offers us that possibility.
10527 * guile/guile.c (call_initialize_gdb_module):
10528 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10529 finalizers in appropriate places.
10530 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10531 scm_set_automatic_finalization_enabled.
10532 * configure: Regenerated.
10533
f054145e
AA
105342015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10535
10536 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10537 SAL, if possible.
10538
18396193
AA
105392015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10540
10541 * s390-linux-nat.c (struct arch_lwp_info): New.
10542 (s390_fix_watch_points): Rename to...
10543 (s390_prepare_to_resume): ...this. Skip the PER info update
10544 unless the watch points have changed.
10545 (s390_refresh_per_info, s390_new_thread): New functions.
10546 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10547 s390_fix_watch_points.
10548 (s390_remove_watchpoint): Likewise.
10549 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10550 Register s390_prepare_to_resume.
10551
9eb1356e
PA
105522015-03-09 Pedro Alves <palves@redhat.com>
10553
10554 Revert:
10555 2015-03-07 Pedro Alves <palves@redhat.com>
10556 * common/gdb_socket.h: New file.
10557 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10558 sys/socket.h.
10559 (net_open): Use union gdb_sockaddr_u.
10560
aac331e4
PA
105612015-03-07 Pedro Alves <palves@redhat.com>
10562
10563 * configure.ac (build_warnings): Move -Wmissing-prototypes
10564 -Wdeclaration-after-statement -Wmissing-parameter-type
10565 -Wold-style-declaration -Wold-style-definition to the C-specific
10566 set.
10567 * configure: Regenerate.
10568
366c75fc
PA
105692015-03-07 Pedro Alves <palves@redhat.com>
10570
10571 * common/gdb_socket.h: New file.
10572 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10573 sys/socket.h.
10574 (net_open): Use union gdb_sockaddr_u.
10575
72df25b2
PA
105762015-03-07 Pedro Alves <palves@redhat.com>
10577
10578 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10579 (exceptions_state_mc_action_iter)
10580 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10581 Don't define.
10582 [__cplusplus] (try_scope_depth): New global.
10583 [__cplusplus] (exception_try_scope_entry)
10584 (exception_try_scope_exit, gdb_exception_sliced_copy)
10585 (exception_rethrow): New functions.
10586 (throw_exception): In C++ mode, throw
10587 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10588 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10589 (throw_it): In C++ mode, use try_scope_depth.
10590 * common/common-exceptions.h [!__cplusplus]
10591 (exceptions_state_mc_action_iter)
10592 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10593 Don't declare.
10594 [__cplusplus] (exception_try_scope_entry)
10595 (exception_try_scope_exit, exception_rethrow): Declare.
10596 [__cplusplus] (struct exception_try_scope): New struct.
10597 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10598 C++ exceptions.
10599 (struct gdb_exception_RETURN_MASK_ALL)
10600 (struct gdb_exception_RETURN_MASK_ERROR)
10601 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10602
284e6217
PA
106032015-03-07 Pedro Alves <palves@redhat.com>
10604
10605 * main.c (handle_command_errors): Remove volatile qualifier from
10606 parameter.
10607
6c63c96a
PA
106082015-03-07 Pedro Alves <palves@redhat.com>
10609
10610 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10611 TRY and CATCH.
10612 * gdbtypes.c (safe_parse_type): Remove empty line.
10613 (types_deeply_equal):
10614 * guile/scm-frame.c (gdbscm_frame_name):
10615 * linux-thread-db.c (find_new_threads_once):
10616 * python/py-breakpoint.c (bppy_get_commands):
10617 * record-btrace.c (record_btrace_insert_breakpoint)
10618 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10619 (record_btrace_start_replaying): Adjust to avoid code between TRY
10620 and CATCH.
10621
492d29ea
PA
106222015-03-07 Pedro Alves <palves@redhat.com>
10623
10624 * common/common-exceptions.c (struct catcher) <exception>: No
10625 longer a pointer to volatile exception. Now an exception value.
10626 <mask>: Delete field.
10627 (exceptions_state_mc_init): Remove all parameters. Adjust.
10628 (exceptions_state_mc): No longer pop the catcher here.
10629 (exceptions_state_mc_catch): New function.
10630 (throw_exception): Adjust.
10631 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10632 all parameters.
10633 (exceptions_state_mc_catch): Declare.
10634 (TRY_CATCH): Rename to ...
10635 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10636 (CATCH, END_CATCH): New.
10637 All callers adjusted.
10638
ece957c8
TT
106392015-03-07 Tom Tromey <tromey@redhat.com>
10640
10641 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10642
7556d4a4
PA
106432015-03-07 Pedro Alves <palves@redhat.com>
10644
10645 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10646 (amd64_epilogue_frame_cache): Normal exception handling code.
10647 * break-catch-throw.c (check_status_exception_catchpoint)
10648 (re_set_exception_catchpoint): Ditto.
10649 * cli/cli-interp.c (safe_execute_command):
10650 * cli/cli-script.c (script_from_file): Ditto.
10651 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10652 Ditto.
10653 * compile/compile-object-run.c (compile_object_run): Ditto.
10654 * cp-abi.c (baseclass_offset): Ditto.
10655 * cp-valprint.c (cp_print_value): Ditto.
10656 * exceptions.c (catch_exceptions_with_msg):
10657 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10658 * frame.c (get_frame_address_in_block_if_available): Ditto.
10659 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10660 (i386_sigtramp_frame_cache): Ditto.
10661 * infcmd.c (post_create_inferior): Ditto.
10662 * linespec.c (parse_linespec, find_linespec_symbols):
10663 * p-valprint.c (pascal_object_print_value): Ditto.
10664 * parse.c (parse_expression_for_completion): Ditto.
10665 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10666 * remote.c (remote_get_noisy_reply): Ditto.
10667 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10668 * solib-svr4.c (solib_svr4_r_map): Ditto.
10669
f873665f 106702015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10671
10672 * common/common-utils.h (startswith): New inline function.
10673 All places where this logic was used updated to use the above.
10674
68901c4d
PA
106752015-03-05 Pedro Alves <palves@redhat.com>
10676
10677 PR gdb/18002
10678 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10679 after reading the breakpoint's shadow memory.
10680
2dcb2b1a
MK
106812015-03-05 Mark Kettenis <kettenis@gnu.org>
10682
10683 * hppabsd-nat.c: Remove file.
10684 * hppaobsd-nat.c: New file.
10685 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10686 hppaobsd-nat.c.
10687 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10688 hppaobsd-nat.o.
10689
527a273a
PA
106902015-03-04 Pedro Alves <palves@redhat.com>
10691
10692 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10693 (target_decr_pc_after_break): Delete declaration.
10694 * target.c (default_target_decr_pc_after_break)
10695 (target_decr_pc_after_break): Delete.
10696 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10697 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10698 * linux-thread-db.c (check_event): Likewise.
10699 * infrun.c (adjust_pc_after_break): Likewise.
10700 * darwin-nat.c (cancel_breakpoint): Likewise.
10701 * aix-thread.c (aix_thread_wait): Likewise.
10702 * target-delegates.c: Regenerate.
10703
faf09f01
PA
107042015-03-04 Pedro Alves <palves@redhat.com>
10705
10706 * linux-nat.c (save_sigtrap): Check for breakpoints before
10707 checking watchpoints.
10708 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10709 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10710 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10711 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10712 (linux_nat_stopped_by_sw_breakpoint)
10713 (linux_nat_supports_stopped_by_sw_breakpoint)
10714 (linux_nat_stopped_by_hw_breakpoint)
10715 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10716 (linux_nat_wait_1): Don't re-increment the PC if relying on
10717 SIGTRAP's siginfo->si_code.
10718 (linux_nat_add_target): Install new target methods.
10719 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10720 offset if the target already adjusted the PC.
10721 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10722 (GDB_ARCH_TRAP_BRKPT): New.
10723 (TRAP_HWBKPT): Define if not already defined.
10724
f7e6eed5
PA
107252015-03-04 Pedro Alves <palves@redhat.com>
10726
10727 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10728 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10729 Delete field.
10730 <stop_reason>: New field.
10731 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10732 (packet_set_cmd_state): New function.
10733 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10734 features.
10735 (remote_query_supported): If not disabled with the corresponding
10736 "set remote foo-packet" command, report support for the swbreak
10737 and hwbreak features.
10738 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10739 field.
10740 <stop_reason>: New field.
10741 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10742 (remote_wait_as): Adjust.
10743 (remote_stopped_by_sw_breakpoint)
10744 (remote_supports_stopped_by_sw_breakpoint)
10745 (remote_stopped_by_hw_breakpoint)
10746 (remote_supports_stopped_by_hw_breakpoint): New functions.
10747 (remote_stopped_by_watchpoint): New function.
10748 (init_remote_ops): Install them.
10749 (_initialize_remote): Register new "set/show remote
10750 swbreak-feature-packet" and "set/show remote
10751 swbreak-feature-packet" commands.
10752
9e8915c6
PA
107532015-03-04 Pedro Alves <palves@redhat.com>
10754
10755 * btrace.h: Include target/waitstatus.h.
10756 (struct btrace_thread_info) <stop_reason>: New field.
10757 * record-btrace.c (record_btrace_step_thread): Use
10758 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10759 (record_btrace_decr_pc_after_break): Delete.
10760 (record_btrace_stopped_by_sw_breakpoint)
10761 (record_btrace_supports_stopped_by_sw_breakpoint)
10762 (record_btrace_stopped_by_hw_breakpoint)
10763 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10764 (init_record_btrace_ops): Install them.
10765 * record-full.c (record_full_hw_watchpoint): Delete and replace
10766 with ...
10767 (record_full_stop_reason): ... this throughout.
10768 (record_full_exec_insn): Adjust.
10769 (record_full_wait_1): Adjust. No longer re-increment the PC.
10770 (record_full_wait_1): Adjust. Use
10771 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10772 (record_full_stopped_by_watchpoint): Adjust.
10773 (record_full_stopped_by_sw_breakpoint)
10774 (record_full_supports_stopped_by_sw_breakpoint)
10775 (record_full_supports_stopped_by_sw_breakpoint)
10776 (record_full_stopped_by_hw_breakpoint)
10777 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10778 (init_record_full_ops, init_record_full_core_ops): Install them.
10779 * record.c (record_check_stopped_by_breakpoint): New function.
10780 * record.h: Include target/waitstatus.h.
10781 (record_check_stopped_by_breakpoint): New declaration.
10782
15c66dd6
PA
107832015-03-04 Pedro Alves <palves@redhat.com>
10784
10785 enum lwp_stop_reason -> enum target_stop_reason
10786 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10787 (linux_nat_stopped_by_watchpoint, status_callback)
10788 (linux_nat_wait_1): Adjust.
10789 * linux-nat.h (enum lwp_stop_reason): Delete.
10790 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10791 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10792 * target/waitstatus.h (enum target_stop_reason): New.
10793
1cf4d951
PA
107942015-03-04 Pedro Alves <palves@redhat.com>
10795
10796 * breakpoint.c (need_moribund_for_location_type): New function.
10797 (bpstat_stop_status): Don't skipping checking moribund locations
10798 of breakpoint types which the target tell caused a stop.
10799 (program_breakpoint_here_p): New function, factored out from ...
10800 (bp_loc_is_permanent): ... this.
10801 (update_global_location_list): Don't create a moribund location if
10802 the target supports reporting stops of the type of the removed
10803 breakpoint.
10804 * breakpoint.h (program_breakpoint_here_p): New declaration.
10805 * infrun.c (adjust_pc_after_break): Return early if the target has
10806 already adjusted the PC. Add comments.
10807 (handle_signal_stop): If nothing explains a signal, and the target
10808 tells us the stop was caused by a software breakpoint, check if
10809 there's a breakpoint instruction in the memory. If so, adjust the
10810 PC before presenting the stop to the user. Otherwise, ignore the
10811 trap. If nothing explains a signal, and the target tells us the
10812 stop was caused by a hardware breakpoint, ignore the trap.
10813 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10814 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10815 to_supports_stopped_by_hw_breakpoint>: New fields.
10816 (target_stopped_by_sw_breakpoint)
10817 (target_supports_stopped_by_sw_breakpoint)
10818 (target_stopped_by_hw_breakpoint)
10819 (target_supports_stopped_by_hw_breakpoint): Define.
10820 * target-delegates.c: Regenerate.
10821
79639e11
PA
108222015-03-04 Pedro Alves <palves@redhat.com>
10823
10824 * infrun.c (follow_fork_inferior): Use the whole of the
10825 inferior_ptid and pending_follow.related_pid ptids instead of
10826 building ptids from the process components. Adjust verbose output
10827 to use target_pid_to_str.
10828 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10829 inferior_ptid and pending_follow.related_pid ptids instead of
10830 building ptids from the process components.
10831
e85e8e5e
MK
108322015-03-04 Mark Kettenis <kettenis@gnu.org>
10833
10834 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10835 (inf_ptrace_insert_fork_catchpoint): New function.
10836 (inf_ptrace_remove_fork_catchpoint): New function.
10837 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10838
87de11c0
AA
108392015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10840
10841 * s390-linux-tdep.c (s390_register_name): Return empty string
10842 instead of NULL for registers that shouldn't be visible.
10843
d851a69a
AA
108442015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10845
10846 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10847 XML file for 64-bit targets.
10848
b072f6c1
SM
108492015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10850
10851 * target.h (find_default_create_inferior): Remove declaration.
10852 (find_default_attach): Likewise.
10853
c1593e4f
PA
108542015-03-03 Pedro Alves <palves@redhat.com>
10855
10856 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10857 Use ptid_get_pid to get the overall process id when resuming all
10858 threads.
10859
90ad5e1d
PA
108602015-03-03 Pedro Alves <palves@redhat.com>
10861
10862 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10863 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10864 * inf-ptrace.c (get_ptrace_pid): New function.
10865 (inf_ptrace_resume): Use it.
10866 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10867 to the lower layer.
10868
d68e53f4
MM
108692015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10870
10871 * nat/linux-btrace.c: Include sys/utsname.h.
10872 (linux_determine_kernel_ptr_bits): New.
10873 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10874 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10875 ptr_bits.
10876
986b6601
MM
108772015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10878
10879 * btrace.c (ftrace_update_function): Treat return as tailcall for
10880 "_dl_runtime_resolve".
10881
ce0dfbea
MM
108822015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10883
10884 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10885 * btrace.c (ftrace_debug): Do not print the line range.
10886 (ftrace_skip_file, ftrace_update_lines): Remove.
10887 (ftrace_new_function): Remove lbegin and lend initialization.
10888 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10889 * record-btrace.c (btrace_compute_src_line_range): New.
10890 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10891
95e50b27
PA
108922015-03-02 Pedro Alves <palves@redhat.com>
10893
10894 * infrun.c (follow_exec): Delete all threads of the process except
10895 the event thread. Extended comments.
10896
00e474c2
JB
108972015-03-02 Joel Brobecker <brobecker@adacore.com>
10898
10899 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10900
cc7039d3
JB
109012015-03-02 Joel Brobecker <brobecker@adacore.com>
10902
10903 * utils.h: Remove <stdbool.h> #include.
10904 (producer_is_gcc): Change return type to "int".
10905 * utils.c (producer_is_gcc): Change return type to int.
10906 Return 1 instead of true, and 0 instead of false.
10907 Adjust function documentation accordingly.
10908
550bdf96
AA
109092015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10910
10911 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10912 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10913 present.
10914 (s390_linux_store_inferior_registers): Likewise.
10915 (s390_get_hwcap): Remove function. Embed its logic...
10916 (s390_read_description): ...here. Yield a target description with
10917 vector registers if applicable.
10918 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10919 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10920 "features/s390x-tevx-linux64.c".
10921 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10922 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10923 for "GNU/Linux-specific registers".
10924 (s390_dwarf_reg_r0l): New enum value.
10925 (s390_dwarf_reg_to_regnum): Support vector registers.
10926 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10927 of GPR lower halves.
10928 (regnum_is_vxr_full): New function.
10929 (s390_register_name): New function.
10930 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10931 f0-f15 and v0l-v15l.
10932 (s390_pseudo_register_type): Likewise.
10933 (s390_pseudo_register_read): Likewise.
10934 (s390_pseudo_register_write): Likewise.
10935 (s390_value_from_register): Account for the fact that values are
10936 placed left-justified in vector registers.
10937 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10938 the vector reggroup and omit them from the general reggroup.
10939 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10940 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10941 (s390_iterate_over_regset_sections): Add iterations for the two
10942 new vector regsets.
10943 (s390_core_read_description): Yield a target description with
10944 vector registers if applicable.
10945 (s390_gdbarch_init): Handle target descriptions with vector
10946 registers. Add "register_name" gdbarch method.
10947 (_initialize_s390_tdep): Call new tdesc initialization functions.
10948 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10949 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10950 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10951 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10952 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10953 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10954 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10955 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10956 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10957 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10958 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10959 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10960 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10961 (S390_NUM_REGS): Adjust value.
10962 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10963 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10964 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10965 * NEWS: Announce S/390 vector register support.
10966
446899e4
AA
109672015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10968
10969 * features/s390-tevx-linux64.xml: New file.
10970 * features/s390-vx-linux64.xml: New file.
10971 * features/s390-vx.xml: New file.
10972 * features/s390x-tevx-linux64.xml: New file.
10973 * features/s390x-vx-linux64.xml: New file.
10974 * features/Makefile (WHICH): Add s390-vx-linux64,
10975 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10976 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10977 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10978 macros.
10979 * features/s390-tevx-linux64.c: New generated file.
10980 * features/s390-vx-linux64.c: Likewise.
10981 * features/s390x-tevx-linux64.c: Likewise.
10982 * features/s390x-vx-linux64.c: Likewise.
10983 * regformats/s390-tevx-linux64.dat: Likewise.
10984 * regformats/s390-vx-linux64.dat: Likewise.
10985 * regformats/s390x-tevx-linux64.dat: Likewise.
10986 * regformats/s390x-vx-linux64.dat: Likewise.
10987
b7236fbe
DE
109882015-02-28 Doug Evans <xdje42@gmail.com>
10989
10990 * symtab.h (struct symtab) <next>: Fix comment.
10991
02e62830
SM
109922015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10993
10994 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10995 python_GdbMethods.
10996
bf36a1e7
PA
109972015-02-27 Pedro Alves <palves@redhat.com>
10998
10999 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11000
ad6aff7d
PA
110012015-02-27 Pedro Alves <palves@redhat.com>
11002
11003 * common/common-exceptions.h (exception_none): Declare.
11004 * common/common-exceptions.c (exception_none): Moved from
11005 exceptions.c.
11006 (exceptions_state_mc_init): Use exception_none.
11007 * exceptions.c (exception_none): Move to
11008 common/common-exceptions.c.
11009 * exceptions.h (exception_none): Move to
11010 common/common-exceptions.h.
11011
97c18565
PA
110122015-02-27 Pedro Alves <palves@redhat.com>
11013
11014 * main.c (catch_command_errors, catch_command_errors_const):
11015 Remove 'mask' argument. Adjust.
11016 (captured_main): Adjust callers.
11017
e992c591
PA
110182015-02-27 Pedro Alves <palves@redhat.com>
11019
11020 * python/python-internal.h: Include "extension-priv.h".
11021
64166036
PA
110222015-02-27 Pedro Alves <palves@redhat.com>
11023
11024 * breakpoint.h (enum print_stop_action): Move further up in the
11025 file.
11026
8a526fa6
PA
110272015-02-27 Pedro Alves <palves@redhat.com>
11028
11029 * gdbarch.sh: Include regcache.h.
11030 * gdbarch.h: Regenerate.
11031
0fa9c223
PA
110322015-02-27 Pedro Alves <palves@redhat.com>
11033
11034 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11035 Remove duplicate const.
11036 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11037 duplicate const.
11038
7cf99fb1
PA
110392015-02-27 Pedro Alves <palves@redhat.com>
11040
11041 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11042 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11043 * features/feature_to_c.sh: Tag the generated xml_builtin array
11044 with extern const in C++ mode.
11045
1424c16e
TT
110462015-02-27 Tom Tromey <tromey@redhat.com>
11047
11048 * minidebug.c (struct lzma_stream): Rename to ...
11049 (struct gdb_lzma_stream): ... this.
11050 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11051
10367c7c
PA
110522015-02-27 Pedro Alves <palves@redhat.com>
11053
11054 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11055 function.
11056 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11057 (mi_cmd_stack_list_variables): Use it.
11058
4180215b
PA
110592015-02-27 Pedro Alves <palves@redhat.com>
11060
11061 * x86-linux-nat.c (u_debugreg_offset): New function.
11062 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11063
2f56f7c3
PA
110642015-02-27 Pedro Alves <palves@redhat.com>
11065
11066 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11067 declaration.
11068 Include break-common.h.
11069
570dc176
TT
110702015-02-27 Tom Tromey <tromey@redhat.com>
11071 Pedro Alves <palves@redhat.com>
11072
11073 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11074 local used to iterate over enums.
11075 * completer.c (signal_completer): Likewise.
11076 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11077 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11078 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11079 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11080 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11081 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11082 * tui-wingeneral.c (tui_refresh_all): Likewise.
11083
68c14faa
PA
110842015-02-27 Pedro Alves <palves@redhat.com>
11085
11086 * target.h: Include "infrun.h".
11087
749bab01
PA
110882015-02-27 Pedro Alves <palves@redhat.com>
11089
11090 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11091
3c14e5a3
PA
110922015-02-27 Pedro Alves <palves@redhat.com>
11093
11094 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11095 (IPA_SYM): Use it.
11096 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11097
56000a98
PA
110982015-02-27 Pedro Alves <palves@redhat.com>
11099
11100 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11101 cli_mld_erase_entire_line, and make it extern "C".
11102 * common/common-defs.h (EXTERN_C): New.
11103 * completer.c (_rl_completion_prefix_display_length)
11104 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11105 out of gdb_display_match_list_1.
11106 (_rl_qsort_string_compare): Move declaration out of
11107 gdb_display_match_list_1, and make it extern "C".
11108 * defs.h (re_comp): Use EXTERN_C.
11109 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11110 and make it extern "C".
11111 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11112 and make it extern "C".
11113 (main): Move declaration out of maintenance_set_profile_cmd.
11114 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11115 EXTERN_C.
11116
bcabf420
PA
111172015-02-27 Pedro Alves <palves@redhat.com>
11118
11119 * python/python.c (GdbMethods): Rename to ...
11120 (python_GdbMethods): ... this and make extern.
11121 (GdbModuleDef): Rename to ...
11122 (python_GdbModuleDef): ... this and make extern.
11123
928dbe07
PA
111242015-02-27 Pedro Alves <palves@redhat.com>
11125
11126 * record-btrace.c (set_record_btrace_cmdlist)
11127 (show_record_btrace_cmdlist): Remove redefinitions.
11128
52059ffd
TT
111292015-02-27 Tom Tromey <tromey@redhat.com>
11130 Pedro Alves <palves@redhat.com>
11131
11132 * dwarf2-frame.c (enum cfa_how_kind, struct
11133 dwarf2_frame_state_reg_info): Move out of struct
11134 dwarf2_frame_state.
11135 * dwarf2read.c (struct tu_stats): Move out of struct
11136 dwarf2_per_objfile.
11137 (struct file_entry): Move out of struct line_header.
11138 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11139 typedef_field_list): Move out of struct field_info.
11140 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11141 Move out of struct dynamic_prop.
11142 (union type_owner, union field_location, struct field, struct
11143 range_bounds, union type_specific): Move out of struct main_type.
11144 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11145 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11146 (struct call_site_target, union call_site_parameter_u, struct
11147 call_site_parameter): Move out of struct call_site.
11148 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11149 m32c_prologue.
11150 (enum srcdest_kind): Move out of struct srcdest.
11151 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11152 * prologue-value.h (enum prologue_value_kind): Move out of struct
11153 prologue_value.
11154 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11155 gdbarch_tdep.
11156 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11157 out of struct field_info.
11158 * symfile.h (struct other_sections): Move out of struct
11159 section_addr_info.
11160 * symtab.c (struct symbol_cache_slot): Move out struct
11161 block_symbol_cache.
11162 * target-descriptions.c (enum tdesc_type_kind): Move out of
11163 typedef struct tdesc_type.
11164 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11165 struct tui_line_or_address.
11166 * value.c (enum internalvar_kind, union internalvar_data): Move
11167 out of struct internalvar.
11168 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11169 gdbarch_tdep.
11170
fe978cb0
PA
111712015-02-27 Tom Tromey <tromey@redhat.com>
11172 Pedro Alves <palves@redhat.com>
11173
11174 Rename symbols whose names are reserved C++ keywords throughout.
11175
3bc3d82a
PA
111762015-02-27 Pedro Alves <palves@redhat.com>
11177
11178 * Makefile.in (COMPILER): New, get it from autoconf.
11179 (COMPILE.pre, CC_LD): Use COMPILER.
11180 (CXX): Get from autoconf instead.
11181 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11182 * acinclude.m4: Include build-with-cxx.m4.
11183 * build-with-cxx.m4: New file.
11184 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11185 Disable -Werror by default if building in C++ mode.
11186 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11187 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11188 Run supported-warning-flags tests with the C++ compiler.
11189 Save/restore CXXFLAGS too.
11190 * configure: Regenerate.
11191
07697489
PA
111922015-02-27 Pedro Alves <palves@redhat.com>
11193
11194 * libiberty.m4: New file.
11195 * acinclude.m4: Include libiberty.m4.
11196 * configure.ac: Call libiberty_INIT.
11197 * config.in, configure: Regenerate.
11198
60abeae4
AA
111992015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11200
11201 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11202 31-bit targets, but 64-bit targets as well.
11203 (s390_gnu_triplet_regexp): New function.
11204 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11205 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11206 method.
11207
f44466fb 112082015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
11209
11210 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11211 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11212 from CONTEXT_DEBUGGER.
11213
0def5aaa
DE
112142015-02-26 Doug Evans <dje@google.com>
11215
11216 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11217 CHECK_TYPEDEF.
11218 (set_type_vptr_fieldno): Ditto.
11219 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11220 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11221
77b64a49
PA
112222015-02-26 Pedro Alves <palves@redhat.com>
11223
11224 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11225 * complaints.c (vcomplaint): Pass argument FMT directly to
11226 printf-like functions instead of complaint->fmt.
11227 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11228 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11229 * compile/compile-loc2c.c (pushf, unary, binary): Add
11230 ATTRIBUTE_PRINTF.
11231 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11232 to pushf.
11233 (BINARY): Pass string literal as format string to 'binary'.
11234 * compile/compile-object-load.c (link_callbacks_einfo): Add
11235 ATTRIBUTE_PRINTF.
11236 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11237
532f44ed
PA
112382015-02-26 Pedro Alves <palves@redhat.com>
11239
11240 * windows-termcap.c: Rename to ...
11241 * stub-termcap.c: ... this. Adjust header line.
11242 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11243 windows-termcap.c.
11244 * configure: Regenerate.
11245 * configure.ac: Refer to stub-termcap.o instead of
11246 windows-termcap.o.
11247 * gdb_curses.h: Mention stub-termcap.c instead of
11248 windows-termcap.c.
11249
081a1c2c
JK
112502015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11251
11252 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11253 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11254
2f41223f
AT
112552015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11256
11257 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11258
80c57053
JK
112592015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11260
11261 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11262 bfd_canonicalize_symtab.
11263
cf424aef
JB
112642015-02-25 John Baldwin <jhb@FreeBSD.org>
11265
11266 * amd64fbsd-nat.c: Include sys/user.h.
11267 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11268 instead of KERN_PS_STRINGS to locate the signal trampoline.
11269 * i386fbsd-nat.c: Include sys/user.h.
11270 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11271 instead of KERN_PS_STRINGS to locate the signal trampoline.
11272 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11273 (amd64fbsd_sigtramp_p): New.
11274 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11275 longer set default values.
11276 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11277 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11278 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11279 (i386fbsd_freebsd4_sigtramp_start)
11280 (i386fbsd_freebsd4_sigtramp_middle)
11281 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11282 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11283 (i386fbsd_sigtramp_p): New.
11284 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11285 longer set default values.
11286 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11287
c5cb74ee
JB
112882015-02-25 John Baldwin <jhb@freebsd.org>
11289
11290 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11291 get_frame_register instead of frame_unwind_register_unsigned.
11292
17487d85
JK
112932015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11294
11295 PR build/18033
11296 * compile/compile-c-support.c (c_compute_program): Change // comment.
11297 * compile/compile-object-load.c (setup_sections): Change // comment.
11298
9357a9e6
JB
112992015-02-26 Joel Brobecker <brobecker@adacore.com>
11300
11301 PR build/18033:
11302 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11303
1f10ba14
PA
113042015-02-23 Pedro Alves <palves@redhat.com>
11305
11306 * remote.c (skip_to_semicolon): New function.
11307 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11308 special case the stop reasons that look like hex numbers
11309 upfront. Instead handle real register numbers after matching
11310 all the known stop reasons.
11311
96553a0c
DE
113122015-02-21 Doug Evans <dje@google.com>
11313
11314 PR c++/17976, symtab/17821
11315 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11316 is_in_anonymous. All callers updated.
11317 (find_symbol_in_baseclass): Ditto.
11318 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11319 for symbols in an anonymous namespace.
11320 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11321 DW_AT_name directly.
11322 (dwarf2_name): Convert missing namespace name to
11323 CP_ANONYMOUS_NAMESPACE_STR.
11324
2db9a427
PA
113252015-02-20 Pedro Alves <palves@redhat.com>
11326
11327 * linux-nat.c (linux_handle_extended_wait): Call
11328 thread_db_notice_clone whenever a new clone LWP is detected.
11329 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11330 functions.
11331 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11332 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11333 (linux_unstop_all_lwps): Declare.
11334 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11335 (thread_get_info_callback): Delete.
11336 (thread_from_lwp): Use td_thr_get_info and record_thread.
11337 (thread_db_attach_lwp): Delete.
11338 (thread_db_notice_clone): New function.
11339 (try_thread_db_load_1): If /proc is mounted and shows the
11340 process'es task list, walk over all LWPs and call thread_from_lwp
11341 instead of relying on td_ta_thr_iter.
11342 (attach_thread): Don't call check_thread_signals here. Split the
11343 tail part of the function (which adds the thread to the core GDB
11344 thread list) to ...
11345 (record_thread): ... this function. Call check_thread_signals
11346 here.
11347 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11348 call thread_from_lwp.
11349 (thread_db_update_thread_list): Rename to ...
11350 (thread_db_update_thread_list_org): ... this.
11351 (thread_db_update_thread_list): New function.
11352 (thread_db_find_thread_from_tid): Delete.
11353 (thread_db_get_ada_task_ptid): Simplify.
11354 * nat/linux-procfs.c: Include <sys/stat.h>.
11355 (linux_proc_task_list_dir_exists): New function.
11356 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11357
3b27ef47
PA
113582015-02-20 Pedro Alves <palves@redhat.com>
11359
11360 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11361 main LWP. Handle the case of waitpid returning 0 if we're already
11362 attached to the LWP. Don't set the LWP's last_resume_kind to
11363 resume_stop if we already knew about the LWP.
11364 (linux_nat_filter_event): Add debug logs.
11365
1cc28231
PA
113662015-02-20 Pedro Alves <palves@redhat.com>
11367
11368 * target.h (forward_target_decr_pc_after_break): Delete
11369 declaration.
11370
5c5019c2
PA
113712015-02-20 Pedro Alves <palves@redhat.com>
11372
11373 PR threads/18006
11374 * linux-thread-db.c (thread_get_info_callback): Return early if
11375 the thread's lwp id is -1.
11376
f3978e91
JB
113772015-02-20 Joel Brobecker <brobecker@adacore.com>
11378
11379 GDB 7.9 released.
11380
ffdf88ec
SE
113812015-02-19 Steve Ellcey <sellcey@imgtec.com>
11382
11383 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11384 (dtrace_get_probes) Change type of variable 'dof'.
11385
c9587f88
AT
113862015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11387
11388 PR breakpoints/16812
11389 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11390 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11391 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11392
53cf2ee0
DT
113932015-02-19 David Taylor <dtaylor@emc.com>
11394
11395 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11396
acfe0940
PP
113972015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11398
11399 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11400 function.
11401 (tui_putc): Don't call tui_handle_resize_during_io.
11402 (tui_getc): Likewise.
11403 (tui_mld_getc): Likewise.
11404 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11405 (tui_sigwinch_token): New static variable.
11406 (tui_initialize_win): Adjust documentation. Set
11407 tui_sigwinch_token.
11408 (tui_async_resize_screen): New asynchronous callback.
11409 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11410 invoke tui_async_resize_screen.
11411
f6a88844
JM
114122015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11413
11414 * configure: Regenerated.
11415 * configure.ac: Use GDB_AC_TRANSFORM.
11416 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11417 * acinclude.m4: sinclude transform.m4.
11418 * transform.m4: New file.
11419 (GDB_AC_TRANSFORM): New macro.
11420
b05e3b0d
JM
114212015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11422
11423 * NEWS: Announce the support for DTrace SDT probes.
11424
c3e3045e
JM
114252015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11426
11427 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11428 (amd64_dtrace_parse_probe_argument): New function.
11429 (amd64_dtrace_probe_is_enabled): Likewise.
11430 (amd64_dtrace_enable_probe): Likewise.
11431 (amd64_dtrace_disable_probe): Likewise.
11432 (amd64_linux_init_abi): Register the
11433 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11434 `gdbarch_dtrace_disable_probe' and
11435 `gdbarch_dtrace_probe_is_enabled' hooks.
11436 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11437 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11438 (amd64_dtrace_enable_probe_sequence): Likewise.
11439 (amd64_dtrace_disable_probe_sequence): Likewise.
11440
d4777acb
JM
114412015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11442
11443 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11444 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11445 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11446 handle ELF files.
11447 * Makefile.in (SFILES): dtrace-probe.c added.
11448 * configure: Regenerate.
11449 * dtrace-probe.c: New file.
11450 (SHT_SUNW_dof): New constant.
11451 (dtrace_probe_type): New enum.
11452 (dtrace_probe_arg): New struct.
11453 (dtrace_probe_arg_s): New typedef.
11454 (struct dtrace_probe_enabler): New struct.
11455 (dtrace_probe_enabler_s): New typedef.
11456 (dtrace_probe): New struct.
11457 (dtrace_probe_is_linespec): New function.
11458 (dtrace_dof_sect_type): New enum.
11459 (dtrace_dof_dofh_ident): Likewise.
11460 (dtrace_dof_encoding): Likewise.
11461 (DTRACE_DOF_ENCODE_LSB): Likewise.
11462 (DTRACE_DOF_ENCODE_MSB): Likewise.
11463 (dtrace_dof_hdr): New struct.
11464 (dtrace_dof_sect): Likewise.
11465 (dtrace_dof_provider): Likewise.
11466 (dtrace_dof_probe): Likewise.
11467 (DOF_UINT): New macro.
11468 (DTRACE_DOF_PTR): Likewise.
11469 (DTRACE_DOF_SECT): Likewise.
11470 (dtrace_process_dof_probe): New function.
11471 (dtrace_process_dof): Likewise.
11472 (dtrace_build_arg_exprs): Likewise.
11473 (dtrace_get_arg): Likewise.
11474 (dtrace_get_probes): Likewise.
11475 (dtrace_get_probe_argument_count): Likewise.
11476 (dtrace_can_evaluate_probe_arguments): Likewise.
11477 (dtrace_evaluate_probe_argument): Likewise.
11478 (dtrace_compile_to_ax): Likewise.
11479 (dtrace_probe_destroy): Likewise.
11480 (dtrace_gen_info_probes_table_header): Likewise.
11481 (dtrace_gen_info_probes_table_values): Likewise.
11482 (dtrace_probe_is_enabled): Likewise.
11483 (dtrace_probe_ops): New variable.
11484 (info_probes_dtrace_command): New function.
11485 (_initialize_dtrace_probe): Likewise.
11486 (dtrace_type_name): Likewise.
11487
8b367e17
JM
114882015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11489
11490 * gdbarch.sh (dtrace_parse_probe_argument): New.
11491 (dtrace_probe_is_enabled): Likewise.
11492 (dtrace_enable_probe): Likewise.
11493 (dtrace_disable_probe): Likewise.
11494 * gdbarch.c: Regenerate.
11495 * gdbarch.h: Regenerate.
11496
9aca2ff8
JM
114972015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11498
11499 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11500 stap_probe_ops for `enable_probe' and `disable_probe'.
11501 * probe.c (enable_probes_command): New function.
11502 (disable_probes_command): Likewise.
11503 (_initialize_probe): Define the cli commands `enable probe' and
11504 `disable probe'.
11505 (parse_probe_linespec): New function.
11506 (info_probes_for_ops): Use parse_probe_linespec.
11507 * probe.h (probe_ops): New hooks `enable_probe' and
11508 `disable_probe'.
11509
03e98035
JM
115102015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11511
11512 * probe.c (compute_probe_arg): Moved from stap-probe.c
11513 (compile_probe_arg): Likewise.
11514 (probe_funcs): Likewise.
11515 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11516 (compile_probe_arg): Likewise.
11517 (probe_funcs): Likewise.
11518
6f9b8491
JM
115192015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11520
11521 * probe.c (print_ui_out_not_applicables): New function.
11522 (exists_probe_with_pops): Likewise.
11523 (info_probes_for_ops): Do not include column headers for probe
11524 types for which no probe has been actually found on any object.
11525 Also invoke `print_ui_out_not_applicables' in order to match the
11526 column rows with the header when probes of several types are
11527 listed.
11528 Print the "Type" column.
11529 * probe.h (probe_ops): Added a new probe operation `type_name'.
11530 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11531 (stap_type_name): New function.
11532
69efdff1
PP
115332015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11534
11535 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11536 (key_is_command_char): Delete.
11537
f8e5e23e
PA
115382015-02-17 Pedro Alves <palves@redhat.com>
11539
11540 * tui/tui.c (tui_enable): Resize windows before anything
11541 might show a window.
11542
9f2e0721
MO
115432015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11544
11545 PR gdb/17984
11546 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11547 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11548 call.
11549 * aarch64-tdep.h (tdesc_aarch64): Declare.
11550
171e6b1c
MW
115512015-02-12 Mark Wielaard <mjw@redhat.com>
11552
11553 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11554
d5ff0482
DE
115552015-02-13 Doug Evans <dje@google.com>
11556
11557 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11558 anonymous_namespace to is_in_anonymous for consistency with the rest
11559 of the file.
11560 (cp_lookup_bare_symbol): Fix typo in comment.
11561 (cp_search_static_and_baseclasses): Ditto.
11562 (search_symbol_list): Use vertical space in comment better.
11563 (reset_directive_searched): Ditto. Fix typo.
11564 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11565
9f04ac5f
YQ
115662015-02-13 Yao Qi <yao.qi@arm.com>
11567
11568 * MAINTAINERS: Update my email address.
11569
013d0319
DE
115702015-02-12 Doug Evans <dje@google.com>
11571
b615dd20 11572 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11573
9a7e538e
DE
115742015-02-12 Doug Evans <dje@google.com>
11575
11576 * completer.c (complete_line): Remove incorrect comment.
11577
e1fcd575
JK
115782015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11579
11580 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11581 (py_print_frame): Use RETURN_MASK_ERROR.
11582
b99bf4e3
JK
115832015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11584
11585 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11586 function comment. Wrap all function that can throw in cleanups.
11587 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11588 cleanups.
11589
800eb1ce
JK
115902015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11591
11592 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11593 Remove the error label.
11594
34019068
JK
115952015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11596
11597 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11598 with goto first, indent the former else codepath left. Put variable
11599 'elided' to a new inner block.
11600
8d4a54e2
JK
116012015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11602
11603 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11604
18ad82c1
PA
116052015-02-11 Pedro Alves <palves@redhat.com>
11606
11607 * xcoffread.c (within_function): Delete.
11608
e36122e9
TT
116092015-02-11 Tom Tromey <tromey@redhat.com>
11610 Pedro Alves <palves@redhat.com>
11611
11612 * breakpoint.c (base_breakpoint_ops): Delete.
11613 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11614 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11615 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11616 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11617 * python/py-arch.c (arch_object_type): Make extern.
11618 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11619 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11620 * python/py-cmd.c (cmdpy_object_type): Make extern.
11621 * python/py-continueevent.c (continue_event_object_type)
11622 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11623 parameter. Update all callers.
11624 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11625 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11626 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11627 * python/py-function.c (fnpy_object_type): Make extern.
11628 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11629 * python/py-infevents.c (call_pre_event_object_type)
11630 (inferior_call_post_event_object_type).
11631 (memory_changed_event_object_type): Make extern.
11632 * python/py-infthread.c (thread_object_type): Make extern.
11633 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11634 * python/py-linetable.c (linetable_entry_object_type)
11635 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11636 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11637 (clear_objfiles_event_object_type): Make extern.
11638 * python/py-objfile.c (objfile_object_type): Make extern.
11639 * python/py-param.c (parmpy_object_type): Make extern.
11640 * python/py-progspace.c (pspace_object_type): Make extern.
11641 * python/py-signalevent.c (signal_event_object_type): Make extern.
11642 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11643 * python/py-type.c (type_object_type, field_object_type)
11644 (type_iterator_object_type): Make extern.
11645 * python/python.c (python_extension_script_ops)
11646 (python_extension_ops): Make extern.
11647 * stap-probe.c (stap_probe_ops): Make extern.
11648
0703599a
PA
116492015-02-11 Pedro Alves <pedro@codesourcery.com>
11650
11651 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11652 because the event thread is not the current thread.
11653
eaaf76ab
DE
116542015-02-11 Doug Evans <xdje42@gmail.com>
11655
11656 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11657 been initialized yet, return NULL.
11658
e7d52ed3
DE
116592015-02-11 Doug Evans <dje@google.com>
11660
11661 * symfile.h (new_symfile_objfile): Delete.
11662 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11663 All callers updated.
11664
fc6b1256
PP
116652015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11666
11667 * tui/tui-io.c (tui_handle_resize_during_io): Call
11668 tui_update_gdb_sizes() after resizing the screen.
11669 * tui/tui.c (tui_enable): Resize the terminal before
11670 calling tui_update_gdb_sizes().
11671
d9080678
PP
116722015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11673
11674 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11675 line before printing a newline.
11676
9f615e3a
MW
116772015-02-11 Mark Wielaard <mjw@redhat.com>
11678
11679 * utils.c (producer_is_gcc): Return true or false.
11680
d9080678 116812015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11682
11683 * utils.h (producer_is_gcc): Change return type to bool. Add major
11684 argument.
11685 * utils.c (producer_is_gcc): Likewise.
11686 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11687 * dwarf2read.c (check_producer): Likewise.
11688
b052c4fb
PA
116892015-02-10 Pedro Alves <palves@redhat.com>
11690
11691 * infrun.c (displaced_step_fixup): Switch to the event thread
11692 before calling gdbarch_displaced_step_fixup.
11693
3ac240d4
AT
116942015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11695
11696 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11697
c1cc6152
SM
116982015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11699
11700 * ada-varobj.c (ada_name_of_child): Constify parent.
11701 (ada_path_expr_of_child): Same.
11702 (ada_value_of_child): Same.
11703 (ada_type_of_child): Same.
11704 * c-varobj.c (c_is_path_expr_parent): Same.
11705 (c_describe_child): Same.
11706 (c_name_of_child): Same.
11707 (c_value_of_child): Same.
11708 (c_type_of_child): Same.
11709 (cplus_number_of_children): Same.
11710 (cplus_describe_child): Constify var.
11711 (cplus_name_of_child): Constify parent.
11712 (cplus_value_of_child): Same.
11713 (cplus_type_of_child): Same.
11714 * jv-varobj.c (java_name_of_child): Same.
11715 (java_value_of_child): Same.
11716 (java_type_of_child): Same.
11717 * varobj.c (value_of_child): Same.
11718 (varobj_default_is_path_expr_parent): Constify var, parent and return
11719 value.
11720 (varobj_get_path_expr): Constify var, modify path_expr through
11721 mutable_var.
11722 (install_new_value): Constify parent.
11723 (value_of_child): Constify parent.
11724 * varobj.h (struct varobj): Constify parent.
11725 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11726 type_of_child.
11727 (varobj_get_path_expr): Constify var.
11728 (varobj_get_path_expr_parent): Constify var and return value.
11729
c1ee9414
LM
117302015-02-10 Luis Machado <lgustavo@codesourcery.com>
11731
11732 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11733 (arm_prologue_this_id): Move PC and SP limit checks to
11734 arm_prologue_unwind_stop_reason.
11735 (arm_prologue_unwind) <stop_reason> : Set to
11736 arm_prologue_unwind_stop_reason.
11737
f7de9aab
MW
117382015-02-09 Mark Wielaard <mjw@redhat.com>
11739
11740 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11741 DW_LANG_Fortran08 as language_fortran.
11742
0b24eb2d
SDJ
117432015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11744
11745 PR remote/17946
11746 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11747 of pointer against char.
11748
a2c2acaf
MW
117492015-02-09 Mark Wielaard <mjw@redhat.com>
11750
11751 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11752 (c_type_print_modifier): Likewise.
11753 * dwarf2read.c (read_tag_atomic_type): New function.
11754 (read_type_die_1): Handle DW_TAG_atomic_type.
11755 * gdbtypes.c (make_atomic_type): New function.
11756 (recursive_dump_type): Handle TYPE_ATOMIC.
11757 * gdbtypes.h (enum type_flag_values): Renumber.
11758 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11759 (TYPE_ATOMIC): New macro.
11760 (make_atomic_type): Declare.
11761
31fd9caa
MM
117622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11763
11764 * btrace.c (ftrace_find_call): Skip gaps.
11765 (ftrace_new_function): Initialize level.
11766 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11767 (ftrace_new_switch): Update
11768 level computation.
11769 (ftrace_new_gap): New.
11770 (ftrace_update_function): Create new function after gap.
11771 (btrace_compute_ftrace_bts): Create gap on error.
11772 (btrace_stitch_bts): Update parameters. Clear trace if it
11773 becomes empty.
11774 (btrace_stitch_trace): Update parameters. Update callers.
11775 (btrace_clear): Reset the number of gaps.
11776 (btrace_insn_get): Return NULL if the iterator points to a gap.
11777 (btrace_insn_number): Return zero if the iterator points to a gap.
11778 (btrace_insn_end): Allow gaps at the end.
11779 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11780 (btrace_find_insn_by_number): Assert that the found iterator does
11781 not point to a gap.
11782 (btrace_call_next, btrace_call_prev): Assert that the last function
11783 is not a gap.
11784 * btrace.h (btrace_bts_error): New.
11785 (btrace_function): Update comment.
11786 (btrace_function) <insn, insn_offset, number>: Update comment.
11787 (btrace_function) <errcode>: New.
11788 (btrace_thread_info) <ngaps>: New.
11789 (btrace_thread_info) <replay>: Update comment.
11790 (btrace_insn_get): Update comment.
11791 * record-btrace.c (btrace_ui_out_decode_error): New.
11792 (record_btrace_info): Print number of gaps.
11793 (btrace_insn_history, btrace_call_history): Call
11794 btrace_ui_out_decode_error for gaps.
11795 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11796
afb778a2
MM
117972015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11798
11799 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11800 * nat/linux-btrace.c: (btrace_this_cpu): New.
11801 (cpu_supports_bts): Call btrace_this_cpu.
11802 (intel_supports_bts): Add cpu parameter.
11803
7d5c24b3
MM
118042015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11805
11806 * btrace.h (btrace_insn_class): New.
11807 (btrace_insn) <size, iclass>: New.
11808 * btrace.c (ftrace_find_call): Update parameters. Update users.
11809 Use instruction classification.
11810 (ftrace_new_return): Update parameters. Update users.
11811 (ftrace_update_function): Update parameters. Update users. Use
11812 instruction classification.
11813 (ftrace_update_insns): Update parameters. Update users.
11814 (ftrace_classify_insn): New.
11815 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11816 TRY_CATCH around call to gdb_insn_length.
11817
76235df1
MM
118182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11819
11820 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11821 Update parameters. Update users.
11822
d33501a5
MM
118232015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11824
11825 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11826 (btrace_conf_bts_attributes): New.
11827 (btrace_conf_children): Add attributes.
11828 * common/btrace-common.h (btrace_config_bts): New.
11829 (btrace_config)<bts>: New.
11830 (btrace_config): Update comment.
11831 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11832 Use config.
11833 * features/btrace-conf.dtd: Increment version. Add size
11834 attribute to bts element.
11835 * record-btrace.c (set_record_btrace_bts_cmdlist,
11836 show_record_btrace_bts_cmdlist): New.
11837 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11838 record_btrace_print_conf, cmd_set_record_btrace_bts,
11839 cmd_show_record_btrace_bts): New.
11840 (record_btrace_info): Call record_btrace_print_conf.
11841 (_initialize_record_btrace): Add commands.
11842 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11843 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11844 (btrace_sync_conf): Synchronize bts size.
11845 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11846 * NEWS: Announce new commands and new packets.
11847
f4abbc16
MM
118482015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11849
11850 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11851 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11852 (x86_linux_btrace_conf): New.
11853 (x86_linux_create_target): Initialize to_btrace_conf.
11854 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11855 Check format. Split into this and ...
11856 (linux_enable_bts): ... this.
11857 (linux_btrace_conf): New.
11858 (perf_event_skip_record): Renamed into ...
11859 (perf_event_skip_bts_record): ... this. Updated users.
11860 (linux_disable_btrace): Split into this and ...
11861 (linux_disable_bts): ... this.
11862 (linux_read_btrace): Check format.
11863 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11864 (linux_btrace_conf): New.
11865 (btrace_target_info)<ptid>: Moved.
11866 (btrace_target_info)<conf>: New.
11867 (btrace_target_info): Split into this and ...
11868 (btrace_tinfo_bts): ... this. Updated users.
11869 * btrace.c (btrace_enable): Update parameters.
11870 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11871 (btrace_conf_children, btrace_conf_attributes)
11872 (btrace_conf_elements): New.
11873 * btrace.h (btrace_enable): Update parameters.
11874 (btrace_conf, parse_xml_btrace_conf): New.
11875 * common/btrace-common.h (btrace_config): New.
11876 * feature/btrace-conf.dtd: New.
11877 * record-btrace.c (record_btrace_conf): New.
11878 (record_btrace_cmdlist): New.
11879 (record_btrace_enable_warn, record_btrace_open): Pass
11880 &record_btrace_conf.
11881 (record_btrace_info): Print recording format.
11882 (cmd_record_btrace_bts_start): New.
11883 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11884 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11885 Add "record bts" alias command.
11886 * remote.c (remote_state)<btrace_config>: New.
11887 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11888 (remote_protocol_features): Add qXfer:btrace-conf:read.
11889 (remote_open_1): Call remote_btrace_reset.
11890 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11891 (btrace_target_info)<conf>: New.
11892 (btrace_sync_conf, btrace_read_config): New.
11893 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11894 btrace_read_conf.
11895 (remote_btrace_conf): New.
11896 (init_remote_ops): Initialize to_btrace_conf.
11897 (_initialize_remote): Add qXfer:btrace-conf packet.
11898 * target.c (target_enable_btrace): Update parameters.
11899 (target_btrace_conf): New.
11900 * target.h (target_enable_btrace): Update parameters.
11901 (target_btrace_conf): New.
11902 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11903 (target_ops)<to_enable_btrace>: Update parameters and comment.
11904 (target_ops)<to_btrace_conf>: New.
11905 * target-delegates: Regenerate.
11906 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11907 (target_debug_print_const_struct_btrace_target_info_p): New.
11908 * NEWS: Announce new command and new packet.
11909
aadf7753
MM
119102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11911
11912 * nat/linux-btrace.h (perf_event_buffer): New.
11913 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11914 <bts>: ... this.
11915 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11916 (perf_event_buffer_size, perf_event_buffer_begin)
11917 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11918 Updated users.
11919 (perf_event_new_data): New.
11920
043c3577
MM
119212015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11922
11923 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11924 * record-btrace.c (record_btrace_open): Remove call to
11925 target_supports_btrace.
11926 * remote.c (remote_supports_btrace): Update parameters.
11927 * target.c (target_supports_btrace): Update parameters.
11928 * target.h (to_supports_btrace, target_supports_btrace): Update
11929 parameters.
11930 * target-delegates.c: Regenerate.
11931 * target-debug.h (target_debug_print_enum_btrace_format): New.
11932 * nat/linux-btrace.c
11933 (kernel_supports_btrace): Rename into ...
11934 (kernel_supports_bts): ... this. Update users. Update warning text.
11935 (intel_supports_btrace): Rename into ...
11936 (intel_supports_bts): ... this. Update users.
11937 (cpu_supports_btrace): Rename into ...
11938 (cpu_supports_bts): ... this. Update users.
11939 (linux_supports_btrace): Update parameters. Split into this and ...
11940 (linux_supports_bts): ... this.
11941 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11942
734b0e4b
MM
119432015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11944
11945 * Makefile.in (SFILES): Add common/btrace-common.c.
11946 (COMMON_OBS): Add common/btrace-common.o.
11947 (btrace-common.o): Add build rules.
11948 * btrace.c (parse_xml_btrace): Update parameters.
11949 (parse_xml_btrace_block): Set format field.
11950 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11951 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11952 (btrace_compute_ftrace): Split into this and...
11953 (btrace_compute_ftrace_bts): ...this.
11954 (btrace_stitch_trace): Split into this and...
11955 (btrace_stitch_bts): ...this.
11956 * btrace.h (parse_xml_btrace): Update parameters.
11957 (make_cleanup_btrace_data): New.
11958 * common/btrace-common.c: New.
11959 * common/btrace-common.h: Include common-defs.h.
11960 (btrace_block_s): Update comment.
11961 (btrace_format): New.
11962 (btrace_format_string): New.
11963 (btrace_data_bts): New.
11964 (btrace_data): New.
11965 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11966 * remote.c (remote_read_btrace): Update parameters.
11967 * target.c (target_read_btrace): Update parameters.
11968 * target.h (target_read_btrace): Update parameters.
11969 (target_ops)<to_read_btrace>: Update parameters.
11970 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11971 * target-delegates.c: Regenerate.
11972 * target-debug (target_debug_print_struct_btrace_data_p): New.
11973 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11974 (linux_read_bts): ...this.
11975 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11976
bd2e0e9e
DE
119772015-02-06 Doug Evans <dje@google.com>
11978
11979 * remote-m32r-sdi.c: Include symfile.h.
11980
f176c4b5
DE
119812015-02-06 Doug Evans <dje@google.com>
11982
11983 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11984 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11985 to here.
11986
d6c146e9
PA
119872015-02-06 Pedro Alves <palves@redhat.com>
11988
11989 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11990
b9d61307
SM
119912015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11992
11993 PR gdb/15678
11994 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11995 (enable_count_command): Check args for NULL value.
11996
e9fbd043
DE
119972015-02-05 Doug Evans <xdje42@gmail.com>
11998
11999 * guile/scm-frame.c: Fix spelling errors in a comment.
12000
881d5d5d
JK
120012015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12002
12003 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12004 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12005 return type.
12006
20ba1ce6
PA
120072015-02-04 Pedro Alves <palves@redhat.com>
12008
12009 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12010 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12011 returns true.
12012 (resume_stopped_resumed_lwps): Don't check whether the thread is
12013 marked as executing.
12014 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12015
f962539a
AA
120162015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12017
12018 * regset.h (struct regset): Add flags field.
12019 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12020 * corelow.c (get_core_register_section): Add warning if the size
12021 exceeds the requested size and the regset does not have the
12022 REGSET_VARIABLE_SIZE flag set.
12023 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12024 flag.
12025 * armbsd-tdep.c (armbsd_gregset): Likewise.
12026 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12027 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12028 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12029 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12030
dde9acd6
AA
120312015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12032
12033 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12034 For ".reg-xstate", explicitly specify the requested section size
12035 via X86_XSTATE_SIZE instead of just 0 on input and
12036 X86_XSTATE_MAX_SIZE on output.
12037 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12038 Likewise.
12039
1528345d
AA
120402015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12041
12042 PR corefiles/17808:
12043 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12044 function type, particularly its SIZE parameter.
12045 * gdbarch.h: Regenerate.
12046 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12047 actual against required size using ">=" instead of "==".
12048 (amd64_collect_fpregset): Likewise.
12049 * i386-tdep.c (i386_supply_gregset): Likewise.
12050 (i386_collect_gregset): Likewise.
12051 (i386_supply_fpregset): Likewise.
12052 (i386_collect_fpregset): Likewise.
12053 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12054 (mips_fill_gregset_wrapper): Likewise.
12055 (mips_supply_fpregset_wrapper): Likewise.
12056 (mips_fill_fpregset_wrapper): Likewise.
12057 (mips64_supply_gregset_wrapper): Likewise.
12058 (mips64_fill_gregset_wrapper): Likewise.
12059 (mips64_supply_fpregset_wrapper): Likewise.
12060 (mips64_fill_fpregset_wrapper): Likewise.
12061 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12062 (am33_supply_fpregset_method): Likewise.
12063 (am33_collect_gregset_method): Likewise.
12064 (am33_collect_fpregset_method): Likewise.
12065
518be979
DE
120662015-02-04 Doug Evans <dje@google.com>
12067 Pedro Alves <palves@redhat.com>
12068 Eli Zaretskii <eliz@gnu.org>
12069
12070 PR tui/17810
12071 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12072 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12073 * tui/tui-file.c: #include tui/tui-command.h.
12074 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12075 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12076 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12077
80bd5fab
PA
120782015-02-04 Pedro Alves <palves@redhat.com>
12079
12080 Fix build breakage.
12081 * event-loop.c (gdb_do_one_event): Add default switch case.
12082
a7606d80
JK
120832015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12084
12085 Filter out inferior gcc option -fpreprocessed.
12086 * compile/compile.c (filter_args): New function.
12087 (get_args): Use it.
12088
70b66289
PA
120892015-02-03 Pedro Alves <palves@redhat.com>
12090
12091 * event-loop.c: Don't declare nor define a queue type for
12092 gdb_event_p.
12093 (event_queue): Delete.
12094 (create_event, create_file_event, gdb_event_xfree)
12095 (initialize_event_loop, process_event): Delete.
12096 (gdb_do_one_event): Return as soon as one event is handled.
12097 (handle_file_event): Change prototype. Used the passed in
12098 file_handler pointer and ready_mask instead of looping over all
12099 file handlers.
12100 (gdb_wait_for_event): Update the poll/select timeouts before
12101 blocking. Run event handlers directly instead of queueing events.
12102 Return as soon as one event is handled.
12103 (struct async_event_handler_data): Delete.
12104 (invoke_async_event_handler): Delete.
12105 (check_async_event_handlers): Change return type to int. Run
12106 event handlers directly instead of queueing events. Return as
12107 soon as one event is handled.
12108 (handle_timer_event): Delete.
12109 (update_wait_timeout): New function, factored out from
12110 poll_timers.
12111 (poll_timers): Reimplement.
12112 * event-loop.h (initialize_event_loop): Delete declaration.
12113 * top.c (gdb_init): Don't call initialize_event_loop.
12114
b7d2e916
PA
121152015-02-03 Pedro Alves <palves@redhat.com>
12116
12117 * event-loop.c (clear_async_event_handler): New function.
12118 * event-loop.h (clear_async_event_handler): New declaration.
12119 * record-btrace.c (record_btrace_async): New function.
12120 (init_record_btrace_ops): Install record_btrace_async.
12121 * record-full.c (record_full_async): New function.
12122 (record_full_resume): Don't mark the async event source here.
12123 (init_record_full_ops): Install record_full_async.
12124 (record_full_core_resume): Don't mark the async event source here.
12125 (init_record_full_core_ops): Install record_full_async.
12126 * remote.c (remote_async): Mark and clear the async stop reply
12127 queue event-loop token as appropriate.
12128
d9d41e78
PA
121292015-02-03 Pedro Alves <palves@redhat.com>
12130
12131 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12132 target_is_async_p instead of target_can_async.
12133 (linux_nat_wait): Use target_is_async_p instead of
12134 target_can_async. Don't enable async here.
12135 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12136 target_is_async_p instead of target_can_async.
12137
aa3de267
SM
121382015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12139
12140 * varobj.h (lang_varobj_ops): Mention which return values need
12141 to be freed.
12142
2c811c0f
JB
121432015-02-02 Joel Brobecker <brobecker@adacore.com>
12144
12145 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12146
b1eedac9
JB
121472015-02-02 Joel Brobecker <brobecker@adacore.com>
12148
12149 PR gdb/17856:
12150 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12151 results found in the cache.
12152
66c168ae
JB
121532015-02-02 Joel Brobecker <brobecker@adacore.com>
12154
12155 PR gdb/17854:
12156 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12157 when allocating a new one.
12158
4bdc02b2
TT
121592015-02-01 Tom Tromey <tom@tromey.com>
12160
12161 * MAINTAINERS: Remove myself.
12162
ae6ae975
DE
121632015-01-31 Doug Evans <xdje42@gmail.com>
12164
12165 * dwarf2read.c (process_structure_scope): Update setting of
12166 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12167 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12168 (set_type_vptr_fieldno): New function.
12169 (internal_type_vptr_basetype): New function.
12170 (set_type_vptr_basetype): New function.
12171 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12172 TYPE_VPTR_BASETYPE.
12173 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12174 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12175 (print_cplus_stuff): ... moved here.
12176 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12177 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12178 moved to ...
12179 (struct cplus_struct_type): ... here. All uses updated.
12180 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12181 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12182 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12183 * stabsread.c (read_tilde_fields): Update setting of
12184 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12185
09e2d7c7
DE
121862015-01-31 Doug Evans <xdje42@gmail.com>
12187
12188 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12189 to self_p.
12190 (cp_print_class_member): Rename local domain to self_type.
12191 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12192 domain_type to self_type.
12193 (set_die_type) <need_gnat_info>: Handle
12194 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12195 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12196 TYPE_SPECIFIC_SELF_TYPE.
12197 * gdbtypes.c (internal_type_self_type): New function.
12198 (set_type_self_type): New function.
12199 (smash_to_memberptr_type): Rename parameter domain to self_type.
12200 Update setting of TYPE_SELF_TYPE.
12201 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12202 (smash_to_method_type): Rename parameter domain to self_type.
12203 Update setting of TYPE_SELF_TYPE.
12204 (check_stub_method): Call smash_to_method_type.
12205 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12206 (copy_type_recursive): Ditto.
12207 * gdbtypes.h (enum type_specific_kind): New value
12208 TYPE_SPECIFIC_SELF_TYPE.
12209 (struct main_type) <type_specific>: New member self_type.
12210 (struct cplus_struct_type) <fn_field.type>: Update comment.
12211 (TYPE_SELF_TYPE): Rewrite.
12212 (internal_type_self_type, set_type_self_type): Declare.
12213 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12214 self_type.
12215 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12216 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12217 TYPE_TARGET_TYPE.
12218 * stabsread.c (read_member_functions): Mark methods with
12219 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12220 TYPE_SELF_TYPE.
12221
4bfb94b8
DE
122222015-01-31 Doug Evans <xdje42@gmail.com>
12223
12224 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12225 All uses updated.
12226
5f4ce105
DE
122272015-01-31 Doug Evans <xdje42@gmail.com>
12228
12229 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12230 or unions. Return zero if union.
12231 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12232 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12233 gnuv3_get_vtable.
12234 (compute_vtable_size): Assert only passed structs.
12235 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12236
f6b3afbf
DE
122372015-01-31 Doug Evans <xdje42@gmail.com>
12238
12239 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12240 kinds.
12241
cfb069a8
GB
122422015-01-31 Gary Benson <gbenson@redhat.com>
12243 Doug Evans <dje@google.com>
12244
12245 PR cli/9007
12246 PR cli/11920
12247 PR cli/15548
12248 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12249 reached.
12250 * common/common-exceptions.h (enum errors)
12251 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12252 * completer.h (get_max_completions_reached_message): New declaration.
12253 (max_completions): Likewise.
12254 (completion_tracker_t): New typedef.
12255 (new_completion_tracker): New declaration.
12256 (make_cleanup_free_completion_tracker): Likewise.
12257 (maybe_add_completion_enum): New enum.
12258 (maybe_add_completion): New declaration.
12259 (throw_max_completions_reached_error): Likewise.
12260 * completer.c (max_completions): New global variable.
12261 (new_completion_tracker): New function.
12262 (free_completion_tracker): Likewise.
12263 (make_cleanup_free_completion_tracker): Likewise.
12264 (maybe_add_completions): Likewise.
12265 (throw_max_completions_reached_error): Likewise.
12266 (complete_line): Remove duplicates and limit result to max_completions
12267 entries.
12268 (get_max_completions_reached_message): New function.
12269 (gdb_display_match_list): Handle max_completions.
12270 (_initialize_completer): New declaration and function.
12271 * symtab.c: Include completer.h.
12272 (completion_tracker): New static variable.
12273 (completion_list_add_name): Call maybe_add_completion.
12274 (default_make_symbol_completion_list_break_on_1): Renamed from
12275 default_make_symbol_completion_list_break_on. Maintain
12276 completion_tracker across calls to completion_list_add_name.
12277 (default_make_symbol_completion_list_break_on): New function.
12278 * top.c (init_main): Set rl_completion_display_matches_hook.
12279 * tui/tui-io.c: Include completer.h.
12280 (tui_old_rl_display_matches_hook): New static global.
12281 (tui_rl_display_match_list): Notify user if max-completions reached.
12282 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12283 * NEWS (New Options): Mention set/show max-completions.
12284
e11c72c7
GB
122852015-01-31 Gary Benson <gbenson@redhat.com>
12286
12287 * symtab.c (struct add_name_data) <code>: New field.
12288 Updated comments.
12289 (add_symtab_completions): New function.
12290 (symtab_expansion_callback): Likewise.
12291 (default_make_symbol_completion_list_break_on): Set datum.code.
12292 Move minimal symbol scan before calling expand_symtabs_matching.
12293 Scan known primary symtabs for externs and statics before calling
12294 expand_symtabs_matching. Pass symtab_expansion_callback as
12295 expansion_notify argument to expand_symtabs_matching. Do not scan
12296 primary symtabs for externs and statics after calling
12297 expand_symtabs_matching.
12298
276d885b
GB
122992015-01-31 Gary Benson <gbenson@redhat.com>
12300
12301 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12302 (struct quick_symbol_functions) <expand_symtabs_matching>:
12303 New argument expansion_notify. All uses updated.
12304 (expand_symtabs_matching): New argument expansion_notify.
12305 All uses updated.
12306 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12307 Also print expansion notify.
12308 * symtab.c (expand_symtabs_matching_via_partial): Call
12309 expansion_notify whenever a partial symbol table is expanded.
12310 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12311 expansion_notify whenever a symbol table is instantiated.
12312
82083d6d
DE
123132015-01-31 Doug Evans <xdje42@gmail.com>
12314
12315 * cli-out.c: #include completer.h, readline/readline.h.
12316 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12317 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12318 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12319 * cli-out.h (cli_display_match_list): Declare.
12320 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12321 (ELLIPSIS_LEN): Ditto.
12322 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12323 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12324 (gdb_fnprint, gdb_print_filename): Ditto.
12325 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12326 (gdb_display_match_list): Ditto.
12327 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12328 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12329 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12330 (match_list_displayer): New struct.
12331 (gdb_display_match_list): Declare.
12332 * top.c (init_main): Set rl_completion_display_matches_hook.
12333 * tui/tui-io.c: #include completer.h.
12334 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12335 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12336 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12337 (tui_mld_getc, tui_mld_read_key): Ditto.
12338 (tui_rl_display_match_list): Rewrite.
12339 (tui_handle_resize_during_io): New arg for_completion. All callers
12340 updated.
12341
f57d2163
DE
123422015-01-31 Doug Evans <xdje42@gmail.com>
12343
12344 Add symbol lookup cache.
12345 * NEWS: Document new options and commands.
12346 * symtab.c (symbol_cache_key): New static global.
12347 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12348 (SYMBOL_LOOKUP_FAILED): New macro.
12349 (symbol_cache_slot_state): New enum.
12350 (block_symbol_cache): New struct.
12351 (symbol_cache): New struct.
12352 (new_symbol_cache_size, symbol_cache_size): New static globals.
12353 (hash_symbol_entry, eq_symbol_entry): New functions.
12354 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12355 (make_symbol_cache, free_symbol_cache): New functions.
12356 (get_symbol_cache, symbol_cache_cleanup): New function.
12357 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12358 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12359 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12360 (symbol_cache_flush, symbol_cache_dump): New functions.
12361 (maintenance_print_symbol_cache): New function.
12362 (maintenance_flush_symbol_cache): New function.
12363 (symbol_cache_stats): New function.
12364 (maintenance_print_symbol_cache_statistics): New function.
12365 (symtab_new_objfile_observer): New function.
12366 (symtab_free_objfile_observer): New function.
12367 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12368 (_initialize_symtab): Init symbol_cache_key. New parameter
12369 maint symbol-cache-size. New maint commands print symbol-cache,
12370 print symbol-cache-statistics, flush-symbol-cache.
12371 Install new_objfile, free_objfile observers.
12372
e700d1b2
JB
123732015-01-31 Joel Brobecker <brobecker@adacore.com>
12374
12375 PR symtab/17855
12376 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12377 to end.
12378
9f050062
DE
123792015-01-31 Doug Evans <xdje42@gmail.com>
12380
12381 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12382 * auto-load.c: #include ctype.h.
12383 (struct auto_load_pspace_info): Replace member loaded_scripts with
12384 new members loaded_script_files, loaded_script_texts.
12385 (auto_load_pspace_data_cleanup): Update.
12386 (init_loaded_scripts_info): Update.
12387 (get_auto_load_pspace_data_for_loading): Update.
12388 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12389 updated.
12390 (maybe_add_script_text): New function.
12391 (clear_section_scripts): Update.
12392 (source_script_file, execute_script_contents): New functions.
12393 (source_section_scripts): Add support for
12394 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12395 (print_scripts): New function.
12396 (auto_load_info_scripts): Also print inlined scripts.
12397 (maybe_print_unsupported_script_warning): Renamed from
12398 unsupported_script_warning_print. All callers updated.
12399 (maybe_print_script_not_found_warning): Renamed from
12400 script_not_found_warning_print. All callers updated.
12401 * extension-priv.h (struct extension_language_script_ops): New member
12402 objfile_script_executor.
12403 * extension.c (ext_lang_objfile_script_executor): New function.
12404 * extension.h (objfile_script_executor_func): New typedef.
12405 (ext_lang_objfile_script_executor): Declare.
12406 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12407 * guile/guile.c (guile_extension_script_ops): Update.
12408 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12409 * python/python.c (python_extension_script_ops): Update.
12410 (gdbpy_execute_objfile_script): New function.
12411
312809f8
EZ
124122015-01-31 Eli Zaretskii <eliz@gnu.org>
12413
12414 * tui/tui-io.c (tui_expand_tabs): New function.
12415 (tui_puts, tui_redisplay_readline): Expand TABs into the
12416 appropriate number of spaces.
12417 * tui/tui-regs.c: Include tui-io.h.
12418 (tui_register_format): Call tui_expand_tabs to expand TABs into
12419 the appropriate number of spaces.
12420 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12421
b6577aab
DE
124222015-01-30 Doug Evans <dje@google.com>
12423
12424 * NEWS: "info source" command now display producer string if present.
12425 * source.c (source_info): Print producer string if present.
12426
6da58d3e
SM
124272015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12428
12429 * varobj.c (varobj_delete): Fix comment.
12430
837ce252
SM
124312015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12432
12433 * varobj.c (create_child): Modify comment.
12434
b09e2c59
SM
124352015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12436
12437 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12438 parameter.
12439 (ada_name_of_variable): Same.
12440 (ada_path_expr_of_child): Same.
12441 (ada_value_of_variable): Same.
12442 (ada_value_is_changeable_p): Same.
12443 (ada_value_has_mutated): Same.
12444 * c-varobj.c (varobj_is_anonymous_child): Same.
12445 (c_is_path_expr_parent): Same.
12446 (c_number_of_children): Same.
12447 (c_name_of_variable): Same.
12448 (c_path_expr_of_child): Same.
12449 (get_type): Same.
12450 (c_value_of_variable): Same.
12451 (cplus_number_of_children): Same.
12452 (cplus_name_of_variable): Same.
12453 (cplus_path_expr_of_child): Same.
12454 (cplus_value_of_variable): Same.
12455 * jv-varobj.c (java_number_of_children): Same.
12456 (java_name_of_variable): Same.
12457 (java_path_expr_of_child): Same.
12458 (java_value_of_variable): Same.
12459 * varobj.c (number_of_children): Same.
12460 (name_of_variable): Same.
12461 (is_root_p): Same.
12462 (varobj_ensure_python_env): Same.
12463 (varobj_get_objname): Same.
12464 (varobj_get_expression): Same.
12465 (varobj_get_display_format): Same.
12466 (varobj_get_display_hint): Same.
12467 (varobj_has_more): Same.
12468 (varobj_get_thread_id): Same.
12469 (varobj_get_frozen): Same.
12470 (dynamic_varobj_has_child_method): Same.
12471 (varobj_get_gdb_type): Same.
12472 (is_path_expr_parent): Same.
12473 (varobj_default_is_path_expr_parent): Same.
12474 (varobj_get_language): Same.
12475 (varobj_get_attributes): Same.
12476 (varobj_is_dynamic_p): Same.
12477 (varobj_get_child_range): Same.
12478 (varobj_value_has_mutated): Same.
12479 (varobj_get_value_type): Same.
12480 (number_of_children): Same.
12481 (name_of_variable): Same.
12482 (check_scope): Same.
12483 (varobj_editable_p): Same.
12484 (varobj_value_is_changeable_p): Same.
12485 (varobj_floating_p): Same.
12486 (varobj_default_value_is_changeable_p): Same.
12487
2568868e
SM
124882015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12489
12490 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12491 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12492 child->path_expr.
12493 (cplus_path_expr_of_child): Same.
12494
ca83fa81
SM
124952015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12496
12497 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12498 result.
12499 (mi_cmd_var_info_expression): Same.
12500 * varobj.c (varobj_get_expression): Mention in the comment that
12501 the result must by freed by the caller.
12502
afa269ae
SM
125032015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12504
12505 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12506 varobj_get_type.
12507 (varobj_update_one): Same.
12508 * varobj.c (update_type_if_necessary): Free curr_type_str and
12509 new_type_str.
12510 (varobj_get_type): Specify in comment that the result needs to be
12511 freed by the caller.
12512
cd366ee8
DE
125132015-01-29 Doug Evans <dje@google.com>
12514
12515 PR symtab/17890
12516 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12517
38360086
MW
125182015-01-25 Mark Wielaard <mjw@redhat.com>
12519
12520 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12521 * utils.c (producer_is_gcc_ge_4): Likewise.
12522 (producer_is_gcc): New function.
12523 * utils.h (producer_is_gcc): New declaration.
12524
df25ebbd
JB
125252015-01-29 Joel Brobecker <brobecker@adacore.com>
12526
12527 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12528 kind.
12529 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12530 parameter by "addr_stack" parameter.
12531 (resolve_dynamic_range): Replace "addr" parameter by
12532 "stack_addr" parameter. Update function documentation.
12533 Update code accordingly.
12534 (resolve_dynamic_array, resolve_dynamic_union)
12535 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12536 (resolve_dynamic_type): Update code, following the changes made
12537 to resolve_dynamic_type_internal's interface.
12538 * dwarf2loc.h (struct property_addr_info): New.
12539 (dwarf2_evaluate_property): Replace "address" parameter
12540 by "addr_stack" parameter. Adjust function documentation.
12541 (struct dwarf2_offset_baton): New.
12542 (struct dwarf2_property_baton): Update documentation of
12543 field "referenced_type" to be more general. New field
12544 "offset_info" in union data field.
12545 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12546 parameter by "addr_stack" parameter. Adjust code accordingly.
12547 Add support for PROP_ADDR_OFFSET properties.
12548 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12549 DW_AT_data_member_location attributes as well. Use case
12550 statements instead of if/else condition.
12551
4a0ca9ec
JB
125522015-01-29 Joel Brobecker <brobecker@adacore.com>
12553
12554 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12555 Return zero if PARENT_VALUE is NULL and parent_type's
12556 range type is dynamic.
12557
ddb87a81
JB
125582015-01-29 Joel Brobecker <brobecker@adacore.com>
12559
12560 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12561 nonzero if the type's subtype is dynamic.
12562 (resolve_dynamic_range): Also resolve the range's subtype.
12563
3d7ad9b4 125642015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12565
3d7ad9b4 12566 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12567 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12568
3a8b707a
DE
125692015-01-27 Doug Evans <dje@google.com>
12570
12571 * NEWS: Mention gdb.Objfile.username.
12572 * python/py-objfile.c (objfpy_get_username): New function.
12573 (objfile_getset): Add "username".
12574
d35b90fb
MW
125752015-01-24 Mark Wielaard <mjw@redhat.com>
12576
12577 * stack.c (return_command): Markup warning message with _.
12578
734ae125
DE
125792015-01-24 Doug Evans <xdje42@gmail.com>
12580
12581 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12582
527f3840
JK
125832015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12584
12585 Fix 100x slowdown regression on DWZ files.
12586 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12587 (struct line_header): Add offset and offset_in_dwz.
12588 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12589 (free_line_header_voidp): New declaration.
12590 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12591 functions.
12592 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12593 (handle_DW_AT_stmt_list): Use line_header_hash.
12594 (free_line_header_voidp): New function.
12595 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12596 (dwarf_decode_lines): New parameter decode_mapping, use it.
12597 (dwarf2_free_objfile): Free line_header_hash.
12598
f7e5394d
SM
125992015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12600
12601 PR gdb/17416
12602 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12603 value_ind.
12604
743649fd
MW
126052015-01-15 Mark Wielaard <mjw@redhat.com>
12606
12607 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12608 DW_AT_noreturn.
12609 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12610 calling_convention an 8 bit bit field.
12611 (TYPE_NO_RETURN): New macro.
12612 * infcmd.c (finish_command): Query if function does not return
12613 normally.
12614 * stack.c (return_command): Likewise.
12615
198297aa
PA
126162015-01-23 Pedro Alves <palves@redhat.com>
12617
12618 * linux-nat.c (linux_is_async_p): New macro.
12619 (linux_nat_is_async_p):
12620 (linux_nat_terminal_inferior): Check whether the target can async
12621 instead of whether it is already async.
12622 (linux_nat_terminal_ours): Don't check whether the target is
12623 async.
12624 (linux_async_pipe): Use linux_is_async_p.
12625
253828f1
JK
126262015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12627
12628 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12629 '-ascending'.
12630 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12631 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12632 Sort tp_array using tp_array_compar.
12633 (_initialize_thread): Extend thread_apply_all_command help.
12634
f0e8c4c5
JK
126352015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12636
12637 * corelow.c (core_open): Call also thread_command.
12638 * gdbthread.h (thread_command): New prototype moved from ...
12639 * thread.c (thread_command): ... here.
12640 (thread_command): Make it global.
12641
03b79603
PA
126422015-01-22 Pedro Alves <palves@redhat.com>
12643
12644 * configure.ac [*mingw32*]: Check $curses_found instead of
12645 $prefer_curses.
12646 * configure: Regenerate.
12647 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12648 HAVE_NCURSES_NCURSES_H checks.
12649
6b8a872f
EZ
126502015-01-22 Eli Zaretskii <eliz@gnu.org>
12651
bbbbffbb 12652 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12653 fails with the 1st arg NULL, try again with "unknown". Don't test
12654 the "cup" capability: it isn't supported by the Windows port of
12655 ncurses, but the Windows console driver is still capable of
12656 supporting TUI.
12657
4b62a76e
JK
126582015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12659
12660 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12661
82a864f9
EZ
126622015-01-22 Eli Zaretskii <eliz@gnu.org>
12663
12664 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12665 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12666 reason that "make TAGS" is broken.
12667
b35018fd
CG
126682015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12669
12670 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12671 and check additional store instructions.
12672
ffbc4646
WW
126732015-01-21 Wei-cheng Wang <cole945@gmail.com>
12674
12675 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12676
ddeca1df
WW
126772015-01-21 Wei-cheng Wang <cole945@gmail.com>
12678
12679 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12680 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12681 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12682 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12683 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12684 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12685 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12686 ppc_process_record_op19, ppc_process_record_op31,
12687 ppc_process_record_op59, ppc_process_record_op60,
12688 ppc_process_record_op63): Likewise.
12689
049bb5de
JB
126902015-01-20 Joel Brobecker <brobecker@adacore.com>
12691
12692 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12693 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12694 strerror.
12695
42b87c63 126962015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12697
12698 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12699 ppc_process_record_op31, ppc_process_record_op59,
12700 ppc_process_record_op60, ppc_process_record_op63,
12701 ppc_process_record): Fix -Wformat warning.
12702 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12703 Remove unused variables.
12704
569340fc
CG
127052015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12706
12707 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12708
63413d85
EZ
127092015-01-19 Eli Zaretskii <eliz@gnu.org>
12710
12711 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12712 CONFIG_OBS if not building with a curses library.
12713 * configure: Regenerate.
12714
12715 * windows-termcap.c: Include defs.h. Make the whole body empty if
12716 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12717 HAVE_NCURSES_NCURSES_H is defined.
12718
16d8013c
JB
127192015-01-19 Joel Brobecker <brobecker@adacore.com>
12720
12721 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12722 from end of line to start of next line.
12723
cf90fd9a
WW
127242015-01-17 Wei-cheng Wang <cole945@gmail.com>
12725
12726 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12727 Scan PLT stub backward for reverse debugging.
12728 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12729
b4cdae6f
WW
127302015-01-17 Wei-cheng Wang <cole945@gmail.com>
12731 Ulrich Weigand <uweigand@de.ibm.com>
12732
12733 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12734 gdb_target_obs.
12735 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12736 record.
12737 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12738 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12739 (ppc_linux_init_abi): Set process_record, process_record_signal.
12740 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12741 ppc_linux_record_tdep to gdbarch_tdep.
12742 (ppc_process_record): New declaration.
12743 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12744 ppc_process_record_op19, ppc_process_record_op31,
12745 ppc_process_record_op59, ppc_process_record_op60,
12746 ppc_process_record_op63, ppc_process_record): New functions.
12747
2608dbf8
WW
127482015-01-17 Wei-cheng Wang <cole945@gmail.com>
12749
12750 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12751 rs6000_in_function_epilogue_frame_p and add an argument
12752 for frame_info.
12753 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12754 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12755 New functions.
12756 (rs6000_epilogue_frame_unwind): New.
12757 (rs6000_gdbarch_init): Append epilogue unwinder.
12758
4c347be6
SDJ
127592015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12760
12761 * nat/linux-personality.c: Replace "#ifndef
12762 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12763 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12764 systems.
12765
9f2850ba
EZ
127662015-01-16 Eli Zaretskii <eliz@gnu.org>
12767
6cdb25f4
EZ
12768 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12769 functions.
12770 (_initialize_tui_win) <border-kind, border-mode>:
12771 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12772 (tui_set_tab_width_command): Fix the commentary.
12773
6cdb25f4
EZ
12774 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12775
bf555842
EZ
12776 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12777 Doc fix.
cb86fcc1
EZ
12778 (tui_set_tab_width_command): Delete and recreate the source and
12779 the disassembly windows, to show the effect of the changed tab
12780 size immediately.
bf555842 12781
9f2850ba
EZ
12782 * tui/tui-data.h (LINE_PREFIX): Make shorter
12783 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12784 "Thread NNNNN.XXXX" thread ID notation on Windows.
12785
95761b2d
JK
127862015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12787
12788 Fix gcc-5 compilation.
12789 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12790
8cc73a39
SDJ
127912015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12792
12793 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12794 (linux-personality.o): New rule.
12795 * common/common-defs.h: Include <stdint.h>.
12796 * config/aarch64/linux.mh (NATDEPFILES): Include
12797 linux-personality.o.
12798 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12799 * config/arm/linux.mh (NATDEPFILES): Likewise.
12800 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12801 * config/i386/linux.mh (NATDEPFILES): Likewise.
12802 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12803 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12804 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12805 * config/mips/linux.mh (NATDEPFILES): Likewise.
12806 * config/pa/linux.mh (NATDEPFILES): Likewise.
12807 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12808 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12809 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12810 * config/s390/linux.mh (NATDEPFILES): Likewise.
12811 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12812 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12813 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12814 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12815 * defs.h: Remove #include <stdint.h> (moved to
12816 common/common-defs.h).
12817 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12818 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12819 nat/linux-personality.c).
12820 (linux_nat_create_inferior): Remove code to disable address space
12821 randomization (moved to nat/linux-personality.c). Create cleanup
12822 to disable address space randomization.
12823 * nat/linux-personality.c: New file.
12824 * nat/linux-personality.h: Likewise.
12825
fb23d554
SDJ
128262015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12827
12828 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12829 common/posix-strerror.c.
12830 (posix-strerror.o): New rule.
12831 (mingw-strerror.o): Likewise.
12832 * common/common-utils.h (safe_strerror): Move prototype to here,
12833 from utils.h.
12834 * common/common.host: New file.
12835 * common/mingw-strerror.c: Likewise.
12836 * common/posix-strerror.c: Likewise.
12837 * configure: Regenerated.
12838 * configure.ac: Source common/common.host. Add variable
12839 common_host_obs to gdb_host_obs.
12840 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12841 gdb/common/posix-strerror.c when warning about the use of
12842 strerror.
12843 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12844 common/mingw-strerror.c.
12845 * posix-hdep.c (safe_strerror): Remove definition; move it to
12846 common/posix-hdep.c.
12847 * utils.h (safe_strerror): Remove prototype; move to
12848 common/common-utils.h.
12849
3af8af43
JB
128502015-01-15 Joel Brobecker <brobecker@adacore.com>
12851
12852 GDB 7.8.2 released.
12853
bafffb51
JB
128542015-01-15 Joel Brobecker <brobecker@adacore.com>
12855
12856 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12857 ___XA type if the array has already been fixed.
12858
cdf43629
YQ
128592015-01-14 Yao Qi <yao@codesourcery.com>
12860
12861 * Makefile.in (ppc-linux.o): New rule.
12862 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12863 * configure.ac: AC_CHECK_FUNCS(getauxval).
12864 * config.in: Re-generated.
12865 * configure: Re-generated.
12866 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12867 Declare.
12868 * nat/ppc-linux.c: New file.
12869 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12870 Call ppc64_64bit_inferior_p.
12871
514c5338
YQ
128722015-01-14 Yao Qi <yao@codesourcery.com>
12873
12874 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12875 nat/ppc-linux.h.
12876 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12877 (PPC_FEATURE_HAS_DFP): Likewise.
12878 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12879 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12880 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12881 Include "nat/ppc-linux.h".
12882 * nat/ppc-linux.h: New file.
12883 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12884
5589af0e
PA
128852015-01-14 Pedro Alves <palves@redhat.com>
12886
12887 PR gdb/17525
12888 * breakpoint.c: Include "interps.h".
12889 (bpstat_do_actions_1): Also check whether the interpreter is
12890 async.
12891
6c400b59
PA
128922015-01-14 Pedro Alves <palves@redhat.com>
12893
12894 PR cli/17828
12895 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12896 reinstall if the interpreter is sync.
12897
e02c96a7
DE
128982015-01-13 Doug Evans <dje@google.com>
12899
12900 * objfiles.c (objfile_filename): New function.
12901 * objfiles.h (objfile_filename): Declare it.
12902 (objfile_name): Add function comment.
12903 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12904 bfd file name (which may be realpath'd), and the original name.
12905
3b2f13ff
JB
129062015-01-13 Joel Brobecker <brobecker@adacore.com>
12907
12908 * NEWS: Create a new section for the next release branch.
12909 Rename the section of the current branch, now that it has
12910 been cut.
12911
b4cfe7f8
JB
129122015-01-13 Joel Brobecker <brobecker@adacore.com>
12913
12914 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12915 * version.in: Bump version to 7.9.50.DATE-cvs.
12916
92fc2e69
JB
129172015-01-13 Joel Brobecker <brobecker@adacore.com>
12918
12919 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12920 Remove trailing new-line in argument of call to warning.
12921
f71f0b0d
JB
129222015-01-13 Joel Brobecker <brobecker@adacore.com>
12923
12924 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12925 new-line in argument of call to "warning".
12926
04dccad0
JB
129272015-01-13 Joel Brobecker <brobecker@adacore.com>
12928
12929 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12930 in static block, then try searching for primitive types.
12931
08b13bdd
PP
129322015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12933
12934 * top.h (gdb_add_history): Declare.
12935 * top.c (command_count): New variable.
12936 (gdb_add_history): New function.
12937 (gdb_safe_append_history): New static function.
12938 (quit_force): Call it.
12939 (command_line_input): Use gdb_add_history instead of
12940 add_history.
12941 * event-top.c (command_line_handler): Likewise.
12942
4ac15b59
JC
129432015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12944
12945 PR gdb/17046
12946 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12947 <setjmp.h> #include.
12948
005e54bb
DE
129492015-01-11 Doug Evans <xdje42@gmail.com>
12950
12951 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12952
439250fb
DE
129532015-01-11 Doug Evans <xdje42@gmail.com>
12954
12955 PR gdb/15830
12956 * NEWS: The "maint demangle" command is renamed as "demangle".
12957 * demangle.c: #include cli/cli-utils.h, language.h.
12958 (demangle_command): New function.
12959 (_initialize_demangle): Add new command "demangle".
12960 * maint.c (maintenance_demangle): Stub out.
12961 (_initialize_maint_cmds): Update help text for "maint demangle",
12962 and mark as deprecated.
12963
ebf3aa72
MK
129642015-01-11 Mark Kettenis <kettenis@gnu.org>
12965
12966 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12967 inferior_thread is a function.
12968
6bf045cd
PP
129692015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12970
12971 * Makefile.in (.y.c): Don't munge yacc's #line
12972 directives.
12973
588dcc3e
PP
129742015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12975
12976 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12977 to prompt for input.
12978 * tui/tui-hooks.c (tui_query_hook): Remove.
12979 (tui_install_hooks): Don't set deprecated_query_hook.
12980 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12981 height calculation. Always update the command window's cur_line.
12982
9c02b525
PA
129832015-01-09 Pedro Alves <palves@redhat.com>
12984
12985 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12986 function.
12987 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12988 declaration.
12989 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12990 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12991 stop_reason.
12992 (check_stopped_by_watchpoint): New function.
12993 (save_sigtrap): Reimplement.
12994 (linux_nat_stopped_by_watchpoint): Adjust.
12995 (linux_nat_lp_status_is_event): Delete.
12996 (stop_wait_callback): Only call save_sigtrap after storing the
12997 pending status.
12998 (status_callback): If the thread had been stopped for a breakpoint
12999 that has since been removed, discard the event and resume the LWP.
13000 (count_events_callback, select_event_lwp_callback): Use
13001 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13002 (cancel_breakpoint): Rename to ...
13003 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13004 stopped for a software breakpoint or hardware breakpoint.
13005 (select_event_lwp): Only give preference to the stepping LWP in
13006 all-stop mode. Adjust comments.
13007 (stop_and_resume_callback): Remove references to new_pending_p.
13008 (linux_nat_filter_event): Likewise. Leave exit events of the
13009 leader thread pending here. Handle signal short circuiting here.
13010 Only call save_sigtrap after storing the pending waitstatus.
13011 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13012 new_pending. Don't handle leaving events the caller is not
13013 interested in pending here, nor handle signal short-circuiting
13014 here. Also give equal priority to all LWPs that have had events
13015 in non-stop mode. If reporting a software breakpoint event,
13016 unadjust the LWP's PC.
13017 * linux-nat.h (enum lwp_stop_reason): New.
13018 (struct lwp_info) <stop_pc>: New field.
13019 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13020 (struct lwp_info) <stop_reason>: New field.
13021 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13022
8af756ef
PA
130232015-01-09 Pedro Alves <palves@redhat.com>
13024
13025 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13026 Set the LWP's 'resumed' flag.
13027
8a99810d
PA
130282015-01-09 Pedro Alves <palves@redhat.com>
13029
13030 * linux-nat.c (linux_resume_one_lwp): New function.
13031 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13032 (linux_nat_resume): Use lwp_status_pending_p and
13033 linux_resume_one_lwp.
13034 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13035 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13036 (status_callback, running_callback): Use lwp_status_pending_p.
13037 (lwp_status_pending_p): New function.
13038 (stop_and_resume_callback): Use lwp_status_pending_p.
13039 (linux_nat_filter_event): Use linux_resume_one_lwp.
13040 (linux_nat_wait_1): Always use status_callback to look for an LWP
13041 with a pending status. Use linux_resume_one_lwp.
13042 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13043 linux_resume_one_lwp.
13044
f7ce857f
PA
130452015-01-09 Pedro Alves <palves@redhat.com>
13046
13047 * breakpoint.c (bp_location_inserted_here_p): New function,
13048 factored out from ...
13049 (breakpoint_inserted_here_p): ... here. Use
13050 ALL_BP_LOCATIONS_AT_ADDR.
13051 (software_breakpoint_inserted_here_p): Use
13052 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13053
c1a747c1
PA
130542014-01-09 Pedro Alves <palves@redhat.com>
13055
13056 Skip enabling event reporting if the kernel supports
13057 PTRACE_EVENT_CLONE.
13058 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13059 (thread_db_use_events): New function.
13060 (try_thread_db_load_1): Check thread_db_use_events before enabling
13061 event reporting.
13062 (update_thread_state): New function.
13063 (attach_thread): Use it. Check thread_db_use_events before
13064 enabling event reporting.
13065 (thread_db_detach): Check thread_db_use_events before disabling
13066 event reporting.
13067 (find_new_threads_callback): Check thread_db_use_events before
13068 enabling event reporting. Update the thread's state if not using
13069 libthread_db events.
13070
a33e3959
PA
130712015-01-09 Pedro Alves <palves@redhat.com>
13072
13073 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13074 about to wait for is > 0.
13075 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13076 the kernel thread ID is -1.
13077
8784d563
PA
130782015-01-09 Pedro Alves <palves@redhat.com>
13079
13080 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13081 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13082 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13083 ptrace option flags.
13084 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13085 field.
13086 * nat/linux-procfs.c: Include <dirent.h>.
13087 (linux_proc_get_int): New parameter "warn". Handle it.
13088 (linux_proc_get_tgid): Adjust.
13089 (linux_proc_get_tracerpid): Rename to ...
13090 (linux_proc_get_tracerpid_nowarn): ... this.
13091 (linux_proc_pid_get_state): New function, factored out from
13092 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13093 and handle it.
13094 (linux_proc_pid_is_gone): New function.
13095 (linux_proc_pid_is_stopped): Adjust.
13096 (linux_proc_pid_is_zombie_maybe_warn)
13097 (linux_proc_pid_is_zombie_nowarn): New functions.
13098 (linux_proc_pid_is_zombie): Use
13099 linux_proc_pid_is_zombie_maybe_warn.
13100 (linux_proc_attach_tgid_threads): New function.
13101 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13102 (linux_proc_get_tracerpid): Rename to ...
13103 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13104 (linux_proc_pid_is_gone): New declaration.
13105 (linux_proc_pid_is_zombie): Update comment.
13106 (linux_proc_pid_is_zombie_nowarn): New declaration.
13107 (linux_proc_attach_lwp_func): New typedef.
13108 (linux_proc_attach_tgid_threads): New declaration.
13109 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13110 use nowarn functions.
13111 (linux_ptrace_attach_fail_reason_string): Move here from
13112 gdbserver/linux-low.c and rename.
13113 (ptrace_supports_feature): If the current ptrace options are not
13114 known yet, check them now, instead of asserting.
13115 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13116 Declare.
13117
883ed13e
PA
131182015-01-09 Pedro Alves <palves@redhat.com>
13119
13120 * linux-thread-db.c (thread_db_find_new_threads_silently)
13121 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13122 (find_new_threads_once): Print debug output on gdb_stdlog.
13123
1710aab8
CG
131242015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13125 Pedro Alves <palves@redhat.com>
13126
13127 * compile/compile.c: Include "gdb_wait.h".
13128 (do_rmdir): Check return value, and free 'zap'.
13129
b597c318
YQ
131302015-01-08 Pedro Alves <palves@redhat.com>
13131 Yao Qi <yao@codesourcery.com>
13132
13133 * dwarf2loc.c (indirect_pieced_value): Don't call
13134 gdb_sign_extend. Call extract_signed_integer instead.
13135 * utils.c (gdb_sign_extend): Remove.
13136 * utils.h (gdb_sign_extend): Remove declaration.
13137
025ac414
PM
131382015-01-07 Pierre Muller <muller@sourceware.org>
13139
13140 PR symtab/17811
13141 * stabsread.c (define_symbol): Set language for C++ special symbols.
13142
fa5af12a
PP
131432015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13144
13145 * inflow.c (initial_gdb_ttystate): Tweak comment.
13146
ea42d6f8
JB
131472015-01-07 Joel Brobecker <brobecker@adacore.com>
13148
13149 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13150 comment documenting function.
13151
6a06d660
PP
131522015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13153
13154 * terminal.h (set_initial_gdb_ttystate): Declare.
13155 * inflow.c (initial_gdb_ttystate): New static variable.
13156 (set_initial_gdb_ttystate): New setter.
13157 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13158 instead of our current terminal state.
13159 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13160
e810d75b
JB
131612015-01-07 Joel Brobecker <brobecker@adacore.com>
13162
13163 * guile/scm-type.c (tyscm_array_1): Add comment.
13164 * python/py-type.c (typy_array_1): Add comment.
13165
fce10a84
JB
131662015-01-06 Joel Brobecker <brobecker@adacore.com>
13167
13168 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13169 error if N2 is equal to N1 - 1.
13170
8503d6e1
JB
131712015-01-06 Joel Brobecker <brobecker@adacore.com>
13172
13173 * python/py-type.c (typy_array_1): Do not raise negative-length
13174 exception if N2 is equal to N1 - 1.
13175
4d29c0a8
DE
131762015-01-03 Doug Evans <xdje42@gmail.com>
13177
13178 * c-exp.y: Whitespace cleanup.
13179 (classify_inner_name): Remove extra ;.
13180
eaa6a9a4
MR
131812015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13182
13183 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13184 offset signed.
13185
02fe9972
DE
131862015-01-02 Doug Evans <dje@google.com>
13187
13188 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13189
e2ada9cb
DE
131902015-01-02 Doug Evans <dje@google.com>
13191
13192 * symtab.h (struct symbol): Fix typo in comment.
13193
32d0add0
JB
131942015-01-01 Joel Brobecker <brobecker@adacore.com>
13195
13196 Update year range in copyright notice of all files.
13197
76f2b779
JB
131982015-01-01 Joel Brobecker <brobecker@adacore.com>
13199
13200 * top.c (print_gdb_version): Update copyright year to 2015.
13201
077309e2 132022015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 13203
077309e2 13204 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 13205
077309e2 13206For older changes see ChangeLog-2014.
c906108c
SS
13207\f
13208Local Variables:
13209mode: change-log
13210left-margin: 8
13211fill-column: 74
13212version-control: never
57da7796 13213coding: utf-8
c906108c 13214End:
This page took 2.939342 seconds and 4 git commands to generate.