[GDB] Hurd: Robustify the reply_mig_hack.awk script.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d214e5e7
TS
12015-04-20 Thomas Schwinge <thomas@codesourcery.com>
2
110f9112
TS
3 * reply_mig_hack.awk: Robustify parsing.
4
d214e5e7
TS
5 * reply_mig_hack.awk: Don't bother to declare an intermediate
6 function pointer variable.
7
8f61baf8
DE
82015-04-17 Doug Evans <dje@google.com>
9
10 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
11 to "exec_displacement" to avoid confusion with inner use of the name.
12
dbbf180a
YQ
132015-04-17 Pedro Alves <palves@redhat.com>
14
15 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
16 if HW point of TYPE isn't supported.
17
059790a0
YQ
182015-04-17 Yao Qi <yao.qi@linaro.org>
19 Pedro Alves <palves@redhat.com>
20
21 * target.h (target_can_use_hardware_watchpoint): Update comments.
22 Remove trailing ";".
23
1b6e6f5c
GB
242015-04-17 Gary Benson <gbenson@redhat.com>
25
26 * remote.c (remote_add_inferior): New argument try_open_exec.
27 If nonzero, attempt to open the inferior's executable file as
28 the main executable if no main executable is open already.
29 All callers updated.
30 * NEWS: Mention that GDB now supports automatic location and
31 retrieval of executable + files from remote targets.
32
c78fa86a
GB
332015-04-17 Gary Benson <gbenson@redhat.com>
34
35 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
36 * remote.c (PACKET_qXfer_exec_file): Likewise.
37 (remote_protocol_features): Register the
38 "qXfer:exec-file:read" feature.
39 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
40 (remote_pid_to_exec_file): New function.
41 (init_remote_ops): Initialize to_pid_to_exec_file.
42 (_initialize_remote): Register new "set/show remote
43 pid-to-exec-file-packet" command.
44 * NEWS: Announce new qXfer:exec-file:read packet.
45
e0d86d2c
GB
462015-04-17 Gary Benson <gbenson@redhat.com>
47
48 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
49 New declaration.
50 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
51 New function, factored out from...
52 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
53
a9a5a3d1
GB
542015-04-17 Gary Benson <gbenson@redhat.com>
55
56 * exec.c (solist.h): New include.
57 (exec_file_locate_attach): Prefix absolute executable
58 paths with gdb_sysroot if set.
59 * NEWS: Mention that executable paths may be prepended
60 with sysroot.
61
af1900b0
GB
622015-04-17 Gary Benson <gbenson@redhat.com>
63
64 * solist.h (exec_file_find): New declaration.
65 * solib.c (solib_find_1): New function, factored out from...
66 (solib_find): ...here.
67 (exec_file_find): New function.
68
a10de604
GB
692015-04-17 Gary Benson <gbenson@redhat.com>
70
71 * gdbcore.h (exec_file_locate_attach): New declaration.
72 * exec.c (exec_file_locate_attach): New function, factored
73 out from...
74 * infcmd.c (attach_command_post_wait): ...here.
75
92209ddf
MF
762015-04-17 Mike Frysinger <vapier@gentoo.org>
77
78 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
79
8550d3b3
YQ
802015-04-16 Yao Qi <yao.qi@linaro.org>
81
82 * infrun.c (maybe_software_singlestep): Declare.
83 (displaced_step_fixup): Call maybe_software_singlestep.
84
30b3dd9d
DE
852015-04-15 Doug Evans <dje@google.com>
86
87 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
88
61d96d7e
DE
892015-04-15 Doug Evans <dje@google.com>
90
91 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
92
40d2f8d6
SM
932015-04-15 Simon Marchi <simon.marchi@ericsson.com>
94
95 * python/lib/gdb/command/unwinders.py: Add parentheses.
96
6bbbba9b
YQ
972015-04-15 Yao Qi <yao.qi@linaro.org>
98
99 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
100
2bb2dcab
YQ
1012015-04-15 Yao Qi <yao.qi@linaro.org>
102
103 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
104
41f071ef
YQ
1052015-04-15 Yao Qi <yao.qi@linaro.org>
106
107 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
108 dsc->insn_size instead of 4.
109
326a5c7e
GB
1102015-04-14 Gary Benson <gbenson@redhat.com>
111
112 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
113 * minidebug.c (lzma_stat): Likewise.
114 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
115 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
116
dd177e81
SS
1172015-04-13 Stan Shebs <stanshebs@google.com>
118
119 * MAINTAINERS: Update my email address.
120
97de3545
JB
1212015-04-13 John Baldwin <jhb@FreeBSD.org>
122
123 * amd64-tdep.c (amd64_target_description): New function.
124 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
125 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
126 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
127 x86 extended save area.
128 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
129 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
130 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
131 (_initialize_amd64fbsd_nat): Set "to_read_description" to
132 "amd64fbsd_read_description".
133 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
134 (amd64fbsd_supply_xstateregset): New function.
135 (amd64fbsd_collect_xstateregset): New function.
136 Add "amd64fbsd_xstateregset".
137 (amd64fbsd_iterate_over_regset_sections): New function.
138 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
139 "I386_FBSD_XSAVE_XCR0_OFFSET".
140 Add "iterate_over_regset_sections" gdbarch method.
141 Add "core_read_description" gdbarch method.
142 * i386-tdep.c (i386_target_description): New function.
143 * i386-tdep.h: Export i386_target_description and tdesc_i386.
144 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
145 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
146 x86 extended save area.
147 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
148 * i386bsd-nat.h: Export i386bsd_xsave_len.
149 * i386fbsd-nat.c (i386fbsd_read_description): New function.
150 (_initialize_i386fbsd_nat): Set "to_read_description" to
151 "i386fbsd_read_description".
152 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
153 (i386fbsd_core_read_description): New function.
154 (i386fbsd_supply_xstateregset): New function.
155 (i386fbsd_collect_xstateregset): New function.
156 Add "i386fbsd_xstateregset".
157 (i386fbsd_iterate_over_regset_sections): New function.
158 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
159 "I386_FBSD_XSAVE_XCR0_OFFSET".
160 Add "iterate_over_regset_sections" gdbarch method.
161 Add "core_read_description" gdbarch method.
162 * i386fbsd-tdep.h: New file.
163
4f45d445
JK
1642015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 * NEWS (Changes since GDB 7.9): Add removed -xdb.
167 * breakpoint.c (command_line_is_silent): Remove xdb_commands
168 conditional.
169 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
170 and lb.
171 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
172 va.
173 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
174 conditional.
175 * defs.h (xdb_commands): Remove declaration.
176 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
177 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
178 * infcmd.c (run_no_args_command, go_command): Remove.
179 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
180 * infrun.c (xdb_handle_command): Remove.
181 (_initialize_infrun): Remove xdb_commands for lz and z.
182 * main.c (xdb_commands): Remove variable.
183 (captured_main): Remove "xdb" from long_options.
184 (print_gdb_help): Remove --xdb from help.
185 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
186 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
187 * stack.c (backtrace_full_command, args_plus_locals_info)
188 (current_frame_command): Remove.
189 (_initialize_stack): Remove xdb_commands for t, T and l.
190 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
191 * thread.c (_initialize_thread): Remove xdb_commands condition.
192 * tui/tui-layout.c (tui_toggle_layout_command)
193 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
194 (_initialize_tui_layout): Remove xdb_commands for td and ts.
195 * tui/tui-regs.c (tui_scroll_regs_forward_command)
196 (tui_scroll_regs_backward_command): Remove.
197 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
198 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
199 (_initialize_tui_win): Remove xdb_commands for U and w.
200 * utils.c (pagination_on_command, pagination_off_command): Remove.
201 (initialize_utils): Remove xdb_commands for am and sm.
202
cb71640d
PA
2032015-04-10 Pedro Alves <palves@redhat.com>
204
205 * infrun.c (displaced_step_fixup): Switch to the event ptid
206 earlier. If the thread stopped for a watchpoint and the
207 target/arch has non-continuable watchpoints, cancel the displaced
208 step.
209 (resume): Don't start a displaced step if in-line step-over info
210 is valid.
211
8f572e5c
PA
2122015-04-10 Pedro Alves <palves@redhat.com>
213
214 * infrun.c (displaced_step_in_progress): New function.
215 (do_target_resume): Advise target to report all signals if
216 displaced stepping.
217
8d707a12
PA
2182015-04-10 Pedro Alves <palves@redhat.com>
219
220 PR gdb/18216
221 * infrun.c (process_event_stop_test): Don't assume a step-resume
222 is set if tp->stepped_breakpoint is true.
223
ef713951
YQ
2242015-04-10 Yao Qi <yao.qi@linaro.org>
225
226 * arm-tdep.c (install_alu_reg): Update comment.
227 (thumb_copy_alu_reg): Remove local variable rn. Update
228 debugging message. Use r2 instead of r1 in the modified
229 instruction.
230
906d60cf
PA
2312015-04-10 Pedro Alves <palves@redhat.com>
232
233 PR gdb/13858
234 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
235 linux_displaced_step_location as gdbarch_displaced_step_location
236 hook.
237 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
238 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
239 * linux-tdep.c (linux_displaced_step_location): New function,
240 based on ppc_linux_displaced_step_location.
241 * linux-tdep.h (linux_displaced_step_location): New declaration.
242 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
243 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
244 Delete.
245 (ppc_linux_init_abi): Install linux_displaced_step_location as
246 gdbarch_displaced_step_location hook, even without Cell/B.E..
247 (_initialize_ppc_linux_tdep): Don't install
248 ppc_linux_inferior_created as inferior_created observer.
249 * s390-linux-tdep.c (s390_gdbarch_init): Install
250 linux_displaced_step_location as gdbarch_displaced_step_location
251 hook.
252
7823a941
GB
2532015-04-09 Gary Benson <gbenson@redhat.com>
254
255 * common/common-remote-fileio.h: Rename to...
256 * common/fileio.h: ...this. Update all references.
257 (remote_fileio_to_fio_error): Rename to...
258 (host_to_fileio_error): ...this.
259 (remote_fileio_to_be): Rename to...
260 (host_to_bigendian): ...this. Update all callers.
261 (remote_fileio_to_fio_uint): Rename to...
262 (host_to_fileio_uint): ...this. Update all callers.
263 (remote_fileio_to_fio_time): Rename to...
264 (host_to_fileio_time): ...this. Update all callers.
265 (remote_fileio_to_fio_stat): Rename to...
266 (host_to_fileio_stat): ...this.
267 Update all references.
268 * common/common-remote-fileio.c: Rename to...
269 * common/fileio.c: ...this. Update all references.
270 (remote_fileio_to_fio_error): Rename to...
271 (host_to_fileio_error): ...this. Update all callers.
272 (remote_fileio_mode_to_target): Rename to...
273 (fileio_mode_pack): ...this. Update all callers.
274 (remote_fileio_to_fio_mode): Rename to...
275 (host_to_fileio_mode): ...this. Update all callers.
276 (remote_fileio_to_fio_ulong): Rename to...
277 (host_to_fileio_ulong): ...this. Update all callers.
278 (remote_fileio_to_fio_stat): Rename to...
279 (host_to_fileio_stat): ...this. Update all callers.
280
f2983cc3
AW
2812015-04-09 Andy Wingo <wingo@igalia.com>
282
283 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
284 (frame_functions): Bind gdbscm_frame_read_register to
285 frame-read-register.
286 * guile/lib/gdb.scm (frame-read-register): Export.
287
b88bb450
GB
2882015-04-09 Gary Benson <gbenson@redhat.com>
289
290 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
291 New declaration.
292 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
293 New function, factored out the named functions below.
294 * inf-child.c (gdb/fileio.h): Remove include.
295 (common-remote-fileio.h): New include.
296 (inf_child_errno_to_fileio_error): Remove function. Update
297 all callers to use remote_fileio_to_fio_error.
298 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
299
2f2680f3
AW
3002015-04-09 Andy Wingo <wingo@igalia.com>
301
302 * MAINTAINERS (Write After Approval): Add Andy Wingo.
303
5a2d4533
L
3042015-04-09 H.J. Lu <hongjiu.lu@intel.com>
305
306 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
307 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
308 * configure: Regenerated.
309
421693b0
PA
3102015-04-09 Pedro Alves <palves@redhat.com>
311
312 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
313 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
314 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
315 * gnulib/import/Makefile.am: Update.
316 * gnulib/import/Makefile.in: Update.
317 * gnulib/import/m4/gnulib-cache.m4: Update.
318 * gnulib/import/m4/gnulib-comp.m4: Update.
319 * gnulib/import/m4/strtok_r.m4: New file.
320 * gnulib/import/strtok_r.c: New file.
321
f543dc83
PA
3222015-04-09 Pedro Alves <palves@redhat.com>
323
324 * gnulib/update-gnulib.sh (aclocal version check): Filter out
325 "called too early to check prototype".
326
6d62641c
SDJ
3272015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
328
329 PR python/16699
330 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
331 use a caching mechanism. Adjust comments and code to reflect
332 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
333 (cmdpy_completer_handle_brkchars): Adjust call to
334 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
335 (cmdpy_completer): Likewise.
336
85558555
YQ
3372015-04-08 Yao Qi <yao.qi@linaro.org>
338
339 * spu-tdep.c (spu_gdbarch_init): Don't call
340 set_gdbarch_cannot_step_breakpoint.
341
d249a14a
SDJ
3422015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
343
344 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
345
8a06aea7
PA
3462015-04-07 Pedro Alves <palves@redhat.com>
347
348 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
349 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
350 (delete_exited_threads): New declaration.
351 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
352 * linux-nat.c (linux_nat_update_thread_list): New function.
353 (linux_nat_add_target): Install it.
354 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
355 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
356 (delete_exited_threads): New function.
357
d9b67d9f
PA
3582015-04-07 Pedro Alves <pedro@codesourcery.com>
359
360 * infrun.c (resume) <displaced stepping debug output>: Get the
361 leader thread's regcache, not resume_ptid's.
362
2c26b84f
DE
3632015-04-06 Doug Evans <xdje42@gmail.com>
364
365 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
366 VAR_DOMAIN.
367 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
368 Include symbol domain in debugging output.
369
7a85168d
PA
3702015-04-06 Pedro Alves <palves@redhat.com>
371 Bernd Edlinger <bernd.edlinger@hotmail.de>
372
373 * configure.ac: Remove the mingw32-specific stub-termcap.o
374 fallback, and instead fallback to the stub termcap on all hosts.
375 * configure: Regenerate.
376 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
377 symbols.
378
25755e2b
PMR
3792015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
380
381 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
382 "top_level" parameter.
383 (resolve_dynamic_type_internal): Remove the unused "top_level"
384 parameter. Update call to is_dynamic_type_internal.
385 (is_dynamic_type): Update call to is_dynamic_type_internal.
386 (resolve_dynamic_range): Update call to
387 resolve_dynamic_type_internal.
388 (resolve_dynamic_union): Likewise.
389 (resolve_dynamic_struct): Likewise.
390 (resolve_dynamic_type): Likewise.
391
961f4160
PMR
3922015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
393
394 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
395 TYPE_CODE_REF types so that they are not considered as dynamic
396 depending on the referenced type.
397 (resolve_dynamic_type_internal): Likewise.
398
39f3de7c
L
3992015-04-02 H.J. Lu <hongjiu.lu@intel.com>
400
401 * Makefile.in (top_srcdir): New.
402 * configure: Regenerated.
403
599bd15c
GB
4042015-04-02 Gary Benson <gbenson@redhat.com>
405
406 * NEWS: Announce the new default sysroot of "target:".
407
fed040c6
GB
4082015-04-02 Gary Benson <gbenson@redhat.com>
409
410 * main.c (captured_main): Set gdb_sysroot to "target:"
411 if not otherwise set.
412
64c0b5de
GB
4132015-04-02 Gary Benson <gbenson@redhat.com>
414
415 * exec.c (exec_file_attach): Support "target:" filenames.
416
b57fbfba
GB
4172015-04-02 Gary Benson <gbenson@redhat.com>
418
419 * solib.c (solib_find): Strip "target:" prefix from sysroot
420 if accessing local files.
421
97a41605
GB
4222015-04-02 Gary Benson <gbenson@redhat.com>
423
424 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
425 checks and error messages.
426
2938e6cf
GB
4272015-04-02 Gary Benson <gbenson@redhat.com>
428
429 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
430 (remote_filename_p): Remove declaration.
431 (remote_bfd_open): Likewise.
432 * remote.c (remote_bfd_iovec_open): Remove function.
433 (remote_bfd_iovec_close): Likewise.
434 (remote_bfd_iovec_pread): Likewise.
435 (remote_bfd_iovec_stat): Likewise.
436 (remote_filename_p): Likewise.
437 (remote_bfd_open): Likewise.
438 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
439 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
440 (gdb_bfd_open_maybe_remote): Remove function.
441 (symfile_bfd_open): Replace remote filename check with
442 target filename check.
443 (reread_symbols): Use gdb_bfd_open.
444 * build-id.c (gdbcore.h): New include.
445 (build_id_to_debug_bfd): Use gdb_bfd_open.
446 * infcmd.c (attach_command_post_wait): Remove remote filename
447 check.
448 * solib.c (solib_find): Replace remote-specific handling with
449 target-specific handling. Update comments where necessary.
450 (solib_bfd_open): Replace remote-specific handling with
451 target-specific handling.
452 (gdb_sysroot_changed): New function.
453 (_initialize_solib): Call the above when gdb_sysroot changes.
454 * windows-tdep.c (gdbcore.h): New include.
455 (windows_xfer_shared_library): Use gdb_bfd_open.
456
f08e97fe
GB
4572015-04-02 Gary Benson <gbenson@redhat.com>
458
459 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
460 (is_target_filename): New declaration.
461 (gdb_bfd_has_target_filename): Likewise.
462 (gdb_bfd_open): Update documentation comment.
463 * gdb_bfd.c (target.h): New include.
464 (gdb/fileio.h): Likewise.
465 (is_target_filename): New function.
466 (gdb_bfd_has_target_filename): Likewise.
467 (fileio_errno_to_host): Likewise.
468 (gdb_bfd_iovec_fileio_open): Likewise.
469 (gdb_bfd_iovec_fileio_pread): Likewise.
470 (gdb_bfd_iovec_fileio_close): Likewise.
471 (gdb_bfd_iovec_fileio_fstat): Likewise.
472 (gdb_bfd_open): Use target fileio to access paths prefixed
473 with "target:" where necessary.
474
4bd7dc42
GB
4752015-04-02 Gary Benson <gbenson@redhat.com>
476
477 * target.h (struct target_ops) <to_filesystem_is_local>:
478 New field.
479 (target_filesystem_is_local): New macro.
480 * target-delegates.c: Regenerate.
481 * remote.c (remote_filesystem_is_local): New function.
482 (init_remote_ops): Initialize to_filesystem_is_local.
483
9b15c1f0
GB
4842015-04-02 Gary Benson <gbenson@redhat.com>
485
486 * target.h (struct target_ops) <to_fileio_fstat>: New field.
487 (target_fileio_fstat): New declaration.
488 * target.c (target_fileio_fstat): New function.
489 * inf-child.c (inf_child_fileio_fstat): Likewise.
490 (inf_child_target): Initialize to_fileio_fstat.
491 * remote.c (init_remote_ops): Likewise.
492
d11916aa
SS
4932015-04-01 Sasha Smundak <asmundak@google.com>
494
495 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
496 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
497 (py-unwind.o): New recipe.
498 * NEWS: mention Python frame unwinding.
499 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
500 gdb/unwinder.py and gdb/command/unwinder.py
501 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
502 list.
503 (execute_unwinders): New function.
504 * python/lib/gdb/command/unwinders.py: New file.
505 * python/lib/gdb/unwinder.py: New file.
506 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
507 (objfpy_dealloc): Decrement frame_unwinders reference count.
508 (objfpy_initialize): Create frame_unwinders list.
509 (objfpy_get_frame_unwinders): New function.
510 (objfpy_set_frame_unwinders): Ditto.
511 (objfile_getset): Add frame_unwinders attribute to Objfile.
512 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
513 (pspy_dealloc): Decrement frame_unwinders reference count.
514 (pspy_initialize): Create frame_unwinders list.
515 (pspy_get_frame_unwinders): New function.
516 (pspy_set_frame_unwinders): Ditto.
517 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
518 * python/py-unwind.c: New file.
519 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
520 (objpy_get_frame_unwinders): New prototype.
521 (gdbpy_initialize_unwind): New prototype.
522 * python/python.c (gdbpy_apply_type_printers): Call
523 gdbpy_initialize_unwind.
524
6b403daa
PA
5252015-04-01 Pedro Alves <palves@redhat.com>
526
527 * infrun.c (resume): Check currently_stepping after clearing
528 stepped_breakpoint, not before.
529
1176ecec
PA
5302015-04-01 Pedro Alves <palves@redhat.com>
531
532 * infrun.c (print_target_wait_results): Print all the ptid
533 elements.
534
de1fe8c8
PA
5352015-04-01 Pedro Alves <palves@redhat.com>
536
537 * infrun.c (keep_going): Also discard cleanups if inserting
538 breakpoints fails.
539
e6f5c25b
PA
5402015-04-01 Pedro Alves <palves@redhat.com>
541
542 * infrun.c (wait_for_inferior): Install the
543 finish_thread_state_cleanup cleanup across the whole function, not
544 just around handle_inferior_event.
545
1ac806b8
PA
5462015-04-01 Pedro Alves <palves@redhat.com>
547
548 * infrun.c (resume) <step past permanent breakpoint>: Use
549 do_target_resume.
550
2ee52aa4
PA
5512015-04-01 Pedro Alves <palves@redhat.com>
552
553 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
554
5445da1b
PMR
5552015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
556
557 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
558
4eec2deb
PA
5592015-04-01 Pedro Alves <palves@redhat.com>
560
561 * linux-thread-db.c (record_thread): Readd the thread to gdb's
562 list if it was marked exited.
563
afa59b79
L
5642015-04-01 H.J. Lu <hongjiu.lu@intel.com>
565
566 * configure: Regenerated.
567
df8411da
SDJ
5682015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
569 Jan Kratochvil <jan.kratochvil@redhat.com>
570 Oleg Nesterov <oleg@redhat.com>
571
572 PR corefiles/16092
573 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
574 New enum identifying the various options of the coredump_filter
575 file.
576 (struct smaps_vmflags): New struct.
577 (use_coredump_filter): New variable.
578 (decode_vmflags): New function.
579 (mapping_is_anonymous_p): Likewise.
580 (dump_mapping_p): Likewise.
581 (linux_find_memory_regions_full): New variables
582 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
583 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
584 parsing of its information. Implement memory mapping filtering
585 based on its contents.
586 (show_use_coredump_filter): New function.
587 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
588 * NEWS: Mention the possibility of using the
589 '/proc/PID/coredump_filter' file when generating a corefile.
590 Mention new command 'set use-coredump-filter'.
591
416f679e
SDJ
5922015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
593
594 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
595 read_memory_unsigned_integer.
596
711a72d3
L
5972015-03-31 H.J. Lu <hongjiu.lu@intel.com>
598
599 * Makefile.in (ZLIB): New.
600 (ZLIBINC): Likewise.
601 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
602 (CLIBS): Add $(ZLIB).
603 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
604 Add -lz to LIBS.
605 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
606 * top.c (print_gdb_configuration): Remove --with-zlib and
607 --without-zlib.
608 * config.in: Regenerated.
609 * configure: Likewise.
610
d33279b3
AT
6112015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
612
613 * NEWS: Mention info os cpus support.
614 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
615 (struct osdata_type): Add cpus entry, reorder the entries in
616 alphabetical order.
617
71b30f27
MK
6182015-03-31 Matthias Klose <doko@ubuntu.com>
619
620 * compile/compile.c (compile_to_object): Allow triplets with or
621 without vendor set.
622
13ce9222
DE
6232015-03-30 Doug Evans <dje@google.com>
624
625 PR c++/18141
626 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
627 klass in VAR_DOMAIN.
628
20f796c9
GB
6292015-03-30 Gary Benson <gbenson@redhat.com>
630
631 * remote.c (remote_mourn_1): Remove function. Update all callers
632 to use remote_mourn.
633 (extended_remote_mourn_1): Remove function. Update all callers
634 to use extended_remote_mourn.
635 (extended_remote_attach_1): Remove function. Update all callers
636 to use extended_remote_attach.
637
49d45b20
JB
6382015-03-28 James Bowman <james.bowman@ftdichip.com>
639
640 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
641 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
642 (ALLDEPFILES): Add ft32-tdep.c.
643 * configure.tgt: Add FT32 entry.
644 * ft32-tdep.c: New file, FT32 target-dependent code.
645 * ft32-tdep.h: New file, FT32 target-dependent code.
646
1c4ff080
JK
6472015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 Revert:
650 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
651 Code cleanup.
652 * printcmd.c (print_command_1): Move expr variable scope.
653
79498702
JB
6542015-03-27 Joel Brobecker <brobecker@adacore.com>
655
656 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
657
ce9c0ca1
AK
6582015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
659
660 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
661 sections.
662
429e1e81
JB
6632015-03-26 Joel Brobecker <brobecker@adacore.com>
664
665 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
666 exception raised while parsing the probe arguments.
667 Force parsing to be done using the C language parser.
668 * expression.h (parse_expression_with_language): Declare.
669 * parse.c (parse_expression_with_language): New function.
670
4593441b
JT
6712015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
672
673 * MAINTAINERS (Write After Approval): Add "Jon Turney".
674
ff908ebf
AW
6752015-03-26 Andy Wingo <wingo@igalia.com>
676
677 PR symtab/18148
678 * dwarf2read.c (struct partial_die_info): Add has_const_value
679 member.
680 (add_partial_symbol): Don't punt on symbols that have const_value
681 attributes.
682 (read_partial_die): Detect DW_AT_const_value.
683
f30d5c78
JK
6842015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
685
686 Code cleanup.
687 * printcmd.c (print_command_1): Move expr variable scope.
688
8d89f51a
JK
6892015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
690
691 Code cleanup.
692 * printcmd.c (validate_format): Make the parameter cmdname const.
693
0b736949
DB
6942015-03-26 Don Breazeal <donb@codesourcery.com>
695
696 * remote.c (_initialize_remote): Update comment.
697
20d35291
PA
6982015-03-26 Pedro Alves <palves@redhat.com>
699 Jon TURNEY <jon.turney@dronecode.org.uk>
700
701 * coffread.c (coff_symfile_read): When constructing the name of an
702 import stub symbol from import symbol for amd64, only skip the
703 char after _imp_ if the target is underscored (like i386) and the
704 char is indeed the target's leading char.
705
6a3753b3
PA
7062015-03-25 Pedro Alves <palves@redhat.com>
707
708 * target.h <to_async>: Replace 'callback' and 'context' parameters
709 with boolean 'enable' parameter.
710 (target_async): Replace CALLBACK and CONTEXT parameters with
711 boolean ENABLE parameter.
712 * inf-loop.c (inferior_event_handler): Adjust.
713 * linux-nat.c (linux_nat_attach, linux_nat_resume)
714 (linux_nat_resume): Adjust.
715 (async_client_callback, async_client_context): Delete.
716 (handle_target_event): Call inferior_event_handler directly.
717 (linux_nat_async): Replace 'callback' and 'context' parameters
718 with boolean 'enable' parameter. Adjust. Remove references to
719 async_client_callback and async_client_context.
720 (linux_nat_close): Adjust.
721 * record-btrace.c (record_btrace_async): Replace 'callback' and
722 'context' parameters with boolean 'enable' parameter. Adjust.
723 (record_btrace_resume): Adjust.
724 * record-full.c (record_full_async): Replace 'callback' and
725 'context' parameters with boolean 'enable' parameter. Adjust.
726 (record_full_resume, record_full_core_resume): Adjust.
727 * remote.c (struct remote_state) <async_client_callback,
728 async_client_context>: Delete fields.
729 (remote_start_remote, extended_remote_attach_1, remote_resume)
730 (extended_remote_create_inferior): Adjust.
731 (remote_async_serial_handler): Call inferior_event_handler
732 directly.
733 (remote_async): Replace 'callback' and 'context' parameters with
734 boolean 'enable' parameter. Adjust.
735 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
736 Adjust.
737 * target-delegates.c: Regenerate.
738
1c4b552b
GB
7392015-03-25 Gary Benson <gbenson@redhat.com>
740 Pedro Alves <palves@redhat.com>
741
742 * target.c (fileio_ft_t): New typedef, define object vector.
743 (fileio_fhandles): New static variable.
744 (is_closed_fileio_fh): New macro.
745 (lowest_closed_fd): New static variable.
746 (acquire_fileio_fd): New function.
747 (release_fileio_fd): Likewise.
748 (fileio_fd_to_fh): New macro.
749 (target_fileio_open): Wrap the file descriptor on success.
750 (target_fileio_pwrite): Updated to use wrapped file descriptor.
751 (target_fileio_pread): Likewise.
752 (target_fileio_close): Likewise.
753
a25d8bf9
PA
7542015-03-24 Pedro Alves <palves@redhat.com>
755
756 * thread.c (thread_apply_all_command): Take exited threads into
757 account.
758
44a1ee51
PA
7592015-03-24 Pedro Alves <palves@redhat.com>
760
761 * infrun.c (resume, proceed): Mention
762 switch_back_to_stepped_thread, not switch_back_to_stepping.
763
f3263aa4
PA
7642015-03-24 Pedro Alves <palves@redhat.com>
765
766 * infrun.c (user_visible_resume_ptid): Rewrite going from
767 most-locked to unlocked instead of the opposite. Move comment ...
768 * infrun.h (user_visible_resume_ptid): ... here.
769
2bf6fb9d
PA
7702015-03-24 Pedro Alves <palves@redhat.com>
771
772 * linux-nat.c (linux_nat_resume): Output debug logs before trying
773 to resume the event lwp. Use the lwp's ptid instead of the passed
774 in (maybe wildcard) ptid.
775 (stop_wait_callback): Tweak debug log output.
776 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
777 TRAP_TRACE.
778 (linux_nat_filter_event): In debug output, distinguish a
779 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
780 before trying to resume the lwp.
781
283a9958
JB
7822015-03-24 Joel Brobecker <brobecker@adacore.com>
783
784 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
785 pointer indirection.
786 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
787 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
788
93a8e227
JB
7892015-03-24 Joel Brobecker <brobecker@adacore.com>
790
791 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
792 Renames DYN_ATTR_DATA_LOCATION.
793 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
794 DYN_ATTR_DATA_LOCATION.
795 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
796 instead of DYN_ATTR_DATA_LOCATION.
797
64ce06e4
PA
7982015-03-24 Pedro Alves <palves@redhat.com>
799
800 * breakpoint.c (until_break_command): Adjust call to proceed.
801 * gdbthread.h (struct thread_control_state) <stepping_command>:
802 New field.
803 * infcall.c (run_inferior_call): Adjust call to proceed.
804 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
805 Adjust calls to proceed.
806 (set_step_frame): Set the current thread's step_start_function
807 here.
808 (step_once): Adjust calls to proceed.
809 (jump_command, signal_command, until_next_command)
810 (finish_backward, finish_forward, proceed_after_attach_callback)
811 (attach_command_post_wait): Adjust calls to proceed.
812 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
813 (do_target_resume): New function, factored out from ...
814 (resume): ... here. Remove 'step' parameter. Instead, check
815 currently_stepping to determine whether the thread should be
816 single-stepped.
817 (proceed): Remove 'step' parameter and don't set the thread's
818 step_start_function here. Adjust call to 'resume'.
819 (handle_inferior_event): Adjust calls to 'resume'.
820 (switch_back_to_stepped_thread): Use do_target_resume instead of
821 'resume'.
822 (keep_going): Adjust calls to 'resume'.
823 * infrun.h (proceed): Remove 'step' parameter.
824 (resume): Likewise.
825 * windows-nat.c (do_initial_windows_stuff): Adjust call to
826 'resume'.
827 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
828
856e7dd6
PA
8292015-03-24 Pedro Alves <palves@redhat.com>
830
831 * gdbthread.h (struct thread_control_state) <stepping_command>:
832 New field.
833 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
834 the thread's stepping_command field.
835 * infrun.c (resume): Check the thread's stepping_command flag to
836 determine which threads should be resumed. Rename 'entry_step'
837 local to user_step.
838 (clear_proceed_status_thread): Clear 'stepping_command'.
839 (schedlock_applies): Change parameter type to struct thread_info
840 pointer. Adjust.
841 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
842 (switch_back_to_stepped_thread): Adjust calls to
843 'schedlock_applies'.
844 (_initialize_infrun): Adjust "set scheduler-locking step" help.
845
885eeb5b
PA
8462015-03-24 Pedro Alves <palves@redhat.com>
847
848 * infrun.c (step_start_function): Delete and ...
849 * gdbthread.h (struct thread_control_state) <step_start_function>:
850 ... now a field here.
851 * infrun.c (clear_proceed_status_thread): Clear the thread's
852 step_start_function.
853 (proceed, process_event_stop_test, print_stop_event): Adjust.
854
3333f03a
PA
8552015-03-24 Pedro Alves <palves@redhat.com>
856
857 * infrun.c (proceed): No longer handle negative step.
858
369f6daa
GB
8592015-03-24 Gary Benson <gbenson@redhat.com>
860
861 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
862 (x86_linux_prepare_to_resume): Likewise.
863 * x86-linux-nat.c (x86_linux_new_thread):
864 Moved to nat/x86-linux.c.
865 (x86_linux_prepare_to_resume): Likewise.
866 * nat/x86-linux.c (x86_linux_new_thread): New function.
867 (x86_linux_prepare_to_resume): Likewise.
868
8e5d4070
GB
8692015-03-24 Gary Benson <gbenson@redhat.com>
870
871 * nat/x86-linux-dregs.h: New file.
872 * nat/x86-linux-dregs.c: Likewise.
873 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
874 (x86-linux-dregs.o): New rule.
875 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
876 * config/i386/linux64.mh (NATDEPFILES): Likewise.
877 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
878 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
879 (x86_linux_dr_get): Likewise.
880 (x86_linux_dr_set): Likewise.
881 (x86_linux_dr_get_addr): Likewise.
882 (x86_linux_dr_get_control): Likewise.
883 (x86_linux_dr_get_status): Likewise.
884 (update_debug_registers_callback): Likewise.
885 (x86_linux_dr_set_control): Likewise.
886 (x86_linux_dr_set_addr): Likewise.
887 (x86_linux_update_debug_registers): Likewise.
888
2b95d440
GB
8892015-03-24 Gary Benson <gbenson@redhat.com>
890
891 * x86-linux-nat.c (x86_linux_update_debug_registers):
892 New function, factored out from...
893 (x86_linux_prepare_to_resume): ...this.
894
14b0bc68
GB
8952015-03-24 Gary Benson <gbenson@redhat.com>
896
897 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
898 (x86_linux_dr_set): Likewise.
899 (x86_linux_dr_get_addr): Likewise.
900 (x86_linux_dr_get_control): Likewise.
901 (x86_linux_dr_get_status): Likewise.
902 (update_debug_registers_callback): Likewise.
903 (x86_linux_dr_set_control): Likewise.
904 (x86_linux_dr_set_addr): Likewise.
905 (x86_linux_prepare_to_resume): Likewise.
906 (x86_linux_new_thread): Likewise.
907
5dfe6ca8
GB
9082015-03-24 Gary Benson <gbenson@redhat.com>
909
910 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
911 (x86_linux_new_thread): Rename argument.
912
4b134ca1
GB
9132015-03-24 Gary Benson <gbenson@redhat.com>
914
915 * nat/x86-linux.h: New file.
916 * nat/x86-linux.c: Likewise.
917 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
918 (x86-linux.o): New rule.
919 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
920 * config/i386/linux64.mh (NATDEPFILES): Likewise.
921 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
922 (lwp_set_arch_private_info): New declaration.
923 (lwp_arch_private_info): Likewise.
924 * linux-nat.c (lwp_set_arch_private_info): New function.
925 (lwp_arch_private_info): Likewise.
926 * x86-linux-nat.c: Include nat/x86-linux.h.
927 (arch_lwp_info): Removed structure.
928 (update_debug_registers_callback):
929 Use lwp_set_debug_registers_changed.
930 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
931 and lwp_set_debug_registers_changed.
932 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
933
cff068da
GB
9342015-03-24 Gary Benson <gbenson@redhat.com>
935
936 * nat/linux-nat.h (ptid_of_lwp): New declaration.
937 (lwp_is_stopped): Likewise.
938 (lwp_stop_reason): Likewise.
939 * linux-nat.c (ptid_of_lwp): New function.
940 (lwp_is_stopped): Likewise.
941 (lwp_is_stopped_by_watchpoint): Likewise.
942 * x86-linux-nat.c (update_debug_registers_callback):
943 Use lwp_is_stopped.
944 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
945 lwp_stop_reason.
946
b2f7c7e8
GB
9472015-03-24 Gary Benson <gbenson@redhat.com>
948
949 * linux-nat.h (linux_stop_lwp): Move declaration to...
950 * nat/linux-nat.h (linux_stop_lwp): New declaration.
951
6d4ee8c6
GB
9522015-03-24 Gary Benson <gbenson@redhat.com>
953
954 * linux-nat.h: Include nat/linux-nat.h.
955 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
956 * nat/linux-nat.h (struct lwp_info): New forward declaration.
957 (iterate_over_lwps_ftype): New typedef.
958 (iterate_over_lwps): New declaration.
959 * linux-nat.h (iterate_over_lwps): Update comment. Use
960 iterate_over_lwps_ftype. Update callback return value check.
961
70a0bb6b
GB
9622015-03-24 Gary Benson <gbenson@redhat.com>
963
964 * x86-nat.h (x86_debug_reg_state): Move declaration to...
965 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
966
7b669087
GB
9672015-03-24 Gary Benson <gbenson@redhat.com>
968
969 * nat/linux-nat.h (current_lwp_ptid): New declaration.
970 * linux-nat.c (current_lwp_ptid): New function.
971 * x86-linux-nat.c: Include nat/linux-nat.h.
972 (x86_linux_dr_get_addr): Use current_lwp_ptid.
973 (x86_linux_dr_get_control): Likewise.
974 (x86_linux_dr_get_status): Likewise.
975 (x86_linux_dr_set_control): Likewise.
976 (x86_linux_dr_set_addr): Likewise.
977
15630549
AT
9782015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
979
980 PR breakpoints/16466
981 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
982
8a4506c0
JB
9832015-03-23 Joel Brobecker <brobecker@adacore.com>
984
985 * ser-mingw.c (ser_windows_setparity): Fix indentation.
986 * ser-unix.c (hardwire_setparity): Likewise.
987
236af5e3
YG
9882015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
989
990 * NEWS: Mention set/show serial parity command.
991 * monitor.c (monitor_open): Call serial_setparity.
992 * remote.c (remote_open_1): Likewise.
993 * ser-base.c (ser_base_serparity): New function.
994 * ser-base.h (ser_base_setparity): Add declaration.
995 * ser-go32.c (dos_ops): Set "setparity" field.
996 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
997 state.Parity.
998 (ser_windows_setparity): New function.
999 (hardwire_ops): Add ser_windows_setparity.
1000 (tty_ops): Add NULL for setparity field.
1001 (pipe_ops): Add ser_base_setparity.
1002 (tcp_ops): Likewise.
1003 * ser-pipe.c (pipe_ops): Likewise.
1004 * ser-tcp.c (tcp_ops): Likewise.
1005 * ser-unix.c (hardwire_setparity): Add declaration.
1006 (hardwire_raw): Don't reset PARENB flag.
1007 (hardwire_setparity): New function.
1008 (hardwire_ops): Add hardwire_setparity.
1009 * serial.c (serial_setparity): New function.
1010 (serial_parity): New global.
1011 (parity_none, parity_odd, parity_even, parity_enums, parity):
1012 New static globals.
1013 (set_parity): New function.
1014 (_initialize_serial): Add set/show serial parity commands.
1015 * serial.h (GDBPARITY_NONE): Define.
1016 (GDBPARITY_ODD): Define.
1017 (GDBPARITY_EVEN): Define.
1018 (serial_setparity) Add declaration.
1019 (struct serial_ops): Add setparity field.
1020 * target.h (serial_parity): Add declaration.
1021
32b40af9
KS
10222015-03-23 Keith Seitz <keiths@redhat.com>
1023
1024 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1025
693dca06
KS
10262015-03-23 Keith Seitz <keiths@redhat.com>
1027
1028 * breakpoint.c (parse_breakpoint_sals): Use
1029 linespec_lexer_lex_keyword to ascertain if the user specified
1030 a NULL location.
1031 * linespec.c [IF_KEYWORD_INDEX]: Define.
1032 (linespec_lexer_lex_keyword): Export.
1033 (struct ls_parser) <keyword_ok>: Remove.
1034 A keyword is only a keyword if not followed by another keyword.
1035 (linespec_lexer_lex_one): Remove keyword_ok handling.
1036 Add comment explaining why the parsing stream is not advanced
1037 when a keyword is seen.
1038 (parse_linespec): Remove parser->keyword_ok.
1039 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1040
7e993ebf
KS
10412015-03-23 Keith Seitz <keiths@redhat.com>
1042
1043 PR gdb/18021
1044 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1045 if we find a static method with DW_AT_vtable_elem_location.
1046
b1a0f704
EZ
10472015-03-21 Eli Zaretskii <eliz@gnu.org>
1048
1049 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1050 before the second loop, to avoid undefined behavior. Reported by
1051 Anton Blanchard <anton@samba.org>.
1052
d9823cbb
KB
10532015-03-20 Keven Boell <keven.boell@intel.com>
1054
1055 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1056 data_location usage to linked list.
1057 (resolve_dynamic_type_internal): Adapt data_location to
1058 linked list.
1059 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1060 (copy_type_recursive, copy_type): Add copy of linked list.
1061 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1062 (struct dynamic_prop_list): New struct.
1063 * dwarf2read.c (set_die_type): Set data_location data.
1064
2e7bf1d7
PA
10652015-03-20 Pedro Alves <palves@redhat.com>
1066
1067 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1068 inner block and make it const.
1069 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1070
7a26bd4d
PA
10712015-03-20 Pedro Alves <palves@redhat.com>
1072
1073 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1074 * breakpoint.h (set_breakpoint_condition): Update declaration.
1075
cd46431b
PA
10762015-03-20 Pedro Alves <palves@redhat.com>
1077
1078 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1079
e28566f7
PA
10802015-03-20 Pedro Alves <palves@redhat.com>
1081
1082 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1083
f6fc92f6
PA
10842015-03-20 Pedro Alves <palves@redhat.com>
1085
1086 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1087
c32ed3ef
PA
10882015-03-20 Pedro Alves <palves@redhat.com>
1089
1090 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1091 (nto_init_solib_absolute_prefix): Likewise.
1092
53e78085
PA
10932015-03-20 Pedro Alves <palves@redhat.com>
1094
1095 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1096 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1097
bc23328c
JK
10982015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1099
1100 * config/djgpp/README: Remove gdb.hp.
1101
e8ffc436
YQ
11022015-03-20 Yao Qi <yao.qi@linaro.org>
1103
1104 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1105 set_gdbarch_cannot_step_breakpoint.
1106
23f238d3
PA
11072015-03-19 Pedro Alves <palves@redhat.com>
1108
1109 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1110 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1111 instead call perror_with_name.
1112 (check_ptrace_stopped_lwp_gone): New function.
1113 (linux_resume_one_lwp): Reimplement as wrapper around
1114 linux_resume_one_lwp_throw that swallows errors if the LWP is
1115 gone.
1116 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1117 swallows errors if the LWP is gone. Use
1118 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1119
eb54c8bf
PA
11202015-03-19 Pedro Alves <palves@redhat.com>
1121
1122 * linux-nat.c (status_callback): Return early if the LWP has no
1123 status pending.
1124
b90fc188
PA
11252015-03-19 Pedro Alves <palves@redhat.com>
1126
1127 * linux-nat.c (select_event_lwp_callback): Update comment to no
1128 longer mention SIGTRAP.
1129
670f82d4
TG
11302015-03-18 Tristan Gingold <gingold@adacore.com>
1131
1132 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1133 redirection code to ...
1134 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1135 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1136
464b0089
GB
11372015-03-18 Gary Benson <gbenson@redhat.com>
1138
1139 (remote_protocol_features): Remove the "vFile:fstat" feature.
1140 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1141
f68f11b7
YQ
11422015-03-11 Yao Qi <yao.qi@linaro.org>
1143
1144 PR tdep/18107
1145 * aarch64-linux-tdep.c: Include xml-syscall.h
1146 (aarch64_linux_get_syscall_number): New function.
1147 (aarch64_linux_init_abi): Call
1148 set_gdbarch_get_syscall_number.
1149 * syscalls/aarch64-linux.xml: New file.
1150
393bd0c0
YG
11512015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1152
1153 * ser-base.h (ser_base_setstopbits): Change second argument name
1154 from "rate" to "num".
1155
7f3647e2
GB
11562015-03-17 Gary Benson <gbenson@redhat.com>
1157 Luke Allardyce <lukeallardyce@gmail.com>
1158
1159 PR gdb/18131
1160 * common/common-remote-fileio.h (sys/stat.h): New include.
1161 (stuct stat): Remove forward declaration.
1162
3ce5b6e2
JB
11632015-03-16 John Baldwin <jhb@FreeBSD.org>
1164
1165 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1166 before writing core register notes.
1167
d053f6be
YZ
11682015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1169 Pedro Alves <palves@redhat.com>
1170
1171 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1172 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1173 (tgoto): Wrap with extern "C".
1174
b1a921c8
PA
11752015-03-16 Pedro Alves <palves@redhat.com>
1176 Yuanhui Zhang <asmwarrior@gmail.com>
1177
1178 * stub-termcap.c (tputs): Change prototype.
1179
876d1cd7
YZ
11802015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1181 Pedro Alves <palves@redhat.com>
1182
1183 * windows-nat.c (struct thread_info_struct): Rename to ...
1184 (struct windows_thread_info_struct): ... this.
1185 (thread_info): Rename to ...
1186 (windows_thread_info): ... this.
1187 All users updated.
1188
0800b440
JK
11892015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1190 Pedro Alves <palves@redhat.com>
1191
1192 * NEWS: New Removed targets and native configurations.
1193
11942015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
1195
1196 Remove HPUX.
1197 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1198 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1199 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1200 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1201 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1202 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1203 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1204 hppa-hpux-tdep.c.
1205 * config/ia64/hpux.mh: Remove file.
1206 * config/pa/hpux.mh: Remove file.
1207 * configure: Rebuilt.
1208 * configure.ac (dlgetmodinfo, somread.o): Remove.
1209 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1210 (ia64-*-hpux*): Remove its float format exception.
1211 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1212 * hppa-hpux-nat.c: Remove file.
1213 * hppa-hpux-tdep.c: Remove file.
1214 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1215 Move them here from hppa-tdep.h
1216 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1217 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1218 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1219 Move them to hppa-tdep.c.
1220 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1221 declarations.
1222 * ia64-hpux-nat.c: Remove file.
1223 * ia64-hpux-tdep.c: Remove file.
1224 * ia64-hpux-tdep.h: Remove file.
1225 * inf-ttrace.c: Remove file.
1226 * inf-ttrace.h: Remove file.
1227 * solib-ia64-hpux.c: Remove file.
1228 * solib-ia64-hpux.h: Remove file.
1229 * solib-pa64.c: Remove file.
1230 * solib-pa64.h: Remove file.
1231 * solib-som.c: Remove file.
1232 * solib-som.h: Remove file.
1233 * somread.c: Remove file.
1234
25268153
JB
12352015-03-13 John Baldwin <jhb@FreeBSD.org>
1236
1237 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1238 * config.in: Regenerate.
1239 * configure: Regenerate.
1240 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1241 define.
1242 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1243 enumerate memory regions if present.
1244
773eacf5
JB
12452015-03-13 John Baldwin <jhb@FreeBSD.org>
1246
1247 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1248 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1249 expressions.
1250 (i386fbsd_sigtramp_p): Likewise.
1251
01b6bdb0
JB
12522015-03-12 John Baldwin <jhb@FreeBSD.org>
1253
1254 * MAINTAINERS (Write After Approval): Add John Baldwin.
1255
811a659a
GB
12562015-03-12 Gary Benson <gbenson@redhat.com>
1257
1258 * solib.c (_initialize_solib): Make "set/show sysroot" use
1259 add_setshow_optional_filename_cmd so it can be restored to
1260 empty after being set.
1261
10304ef3
SDJ
12622015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1263
1264 * Makefile.in (SFILES): New source break-catch-syscall.c.
1265 (COMMON_OBS): New object break-catch-syscall.o.
1266 * break-catch-syscall.c: New file.
1267 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1268 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1269 (struct syscall_catchpoint): Likewise.
1270 (dtor_catch_syscall): Likewise.
1271 (catch_syscall_inferior_data): Likewise.
1272 (struct catch_syscall_inferior_data): Likewise.
1273 (get_catch_syscall_inferior_data): Likewise.
1274 (catch_syscall_inferior_data_cleanup): Likewise.
1275 (insert_catch_syscall): Likewise.
1276 (remove_catch_syscall): Likewise.
1277 (breakpoint_hit_catch_syscall): Likewise.
1278 (print_it_catch_syscall): Likewise.
1279 (print_one_catch_syscall): Likewise.
1280 (print_mention_catch_syscall): Likewise.
1281 (print_recreate_catch_syscall): Likewise.
1282 (catch_syscall_breakpoint_ops): Likewise.
1283 (syscall_catchpoint_p): Likewise.
1284 (create_syscall_event_catchpoint): Likewise.
1285 (catch_syscall_split_args): Likewise.
1286 (catch_syscall_command_1): Likewise.
1287 (is_syscall_catchpoint_enabled): Likewise.
1288 (catch_syscall_enabled): Likewise.
1289 (catching_syscall_number): Likewise.
1290 (catch_syscall_completer): Likewise.
1291 (clear_syscall_counts): Likewise.
1292 (initialize_breakpoint_ops): Move initialization of syscall
1293 catchpoints to break-catch-syscall.c.
1294 (_initialize_breakpoint): Move code related to syscall catchpoints
1295 to break-catch-syscall.c.
1296
badd37ce
SDJ
12972015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1298
1299 * breakpoint.c (breakpoint_find_if): New function.
1300 * breakpoint.h (breakpoint_find_if): New prototype.
1301
0a93529c
GB
13022015-03-11 Gary Benson <gbenson@redhat.com>
1303
1304 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1305 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1306 (remote_fileio_to_host_ulong): Likewise.
1307 (remote_fileio_to_host_mode): Likewise.
1308 (remote_fileio_to_host_time): Likewise.
1309 (remote_fileio_to_host_stat): Likewise.
1310 * remote.c (PACKET_vFile_fstat): New enum value.
1311 (remote_protocol_features): Register the "vFile:fstat" feature.
1312 (remote_hostio_fstat): New function.
1313 (remote_bfd_iovec_stat): Use the above.
1314 (_initialize_remote): Register new "set/show remote
1315 hostio-fstat-packet" command.
1316 * symfile.c (separate_debug_file_exists): Update comment.
1317 * NEWS: Announce new vFile:fstat packet.
1318
791c0056
GB
13192015-03-11 Gary Benson <gbenson@redhat.com>
1320
1321 * common/common-remote-fileio.h: New file.
1322 * common/common-remote-fileio.c: Likewise.
1323 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1324 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1325 (COMMON_OBS): Add common-remote-fileio.o.
1326 (common-remote-fileio.o): New rule.
1327 * remote-fileio.h (common-remote-fileio.h): New include.
1328 * remote-fileio.c (gdb/fileio.h): Do not include.
1329 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1330 (remote_fileio_to_fio_uint): Likewise.
1331 (remote_fileio_to_fio_time): Likewise.
1332 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1333 (remote_fileio_to_fio_mode): Likewise.
1334 (remote_fileio_to_fio_ulong): Likewise.
1335 (remote_fileio_to_fio_stat): Likewise.
1336
1390d0ef
AW
13372015-03-11 Andy Wingo <wingo@igalia.com>
1338
1339 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1340 we were checking the cached type, not the cached dynamic type.
1341
84a4591a
AW
13422015-03-11 Andy Wingo <wingo@igalia.com>
1343
1344 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1345 other strings, as these are on the GC'd heap, and will be
1346 collected along with the smob.
1347
85642ba0
AW
13482015-03-11 Andy Wingo <wingo@igalia.com>
1349
1350 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1351 (objfile_functions): Bind gdbscm_objfile_progspace to
1352 objfile-progspace.
1353 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1354
92fab5a6
AW
13552015-03-11 Andy Wingo <wingo@igalia.com>
1356
1357 * guile/guile.c (_initialize_guile): Disable automatic
1358 finalization, if Guile offers us that possibility.
1359 * guile/guile.c (call_initialize_gdb_module):
1360 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1361 finalizers in appropriate places.
1362 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1363 scm_set_automatic_finalization_enabled.
1364 * configure: Regenerated.
1365
f054145e
AA
13662015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1367
1368 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1369 SAL, if possible.
1370
18396193
AA
13712015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1372
1373 * s390-linux-nat.c (struct arch_lwp_info): New.
1374 (s390_fix_watch_points): Rename to...
1375 (s390_prepare_to_resume): ...this. Skip the PER info update
1376 unless the watch points have changed.
1377 (s390_refresh_per_info, s390_new_thread): New functions.
1378 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1379 s390_fix_watch_points.
1380 (s390_remove_watchpoint): Likewise.
1381 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1382 Register s390_prepare_to_resume.
1383
9eb1356e
PA
13842015-03-09 Pedro Alves <palves@redhat.com>
1385
1386 Revert:
1387 2015-03-07 Pedro Alves <palves@redhat.com>
1388 * common/gdb_socket.h: New file.
1389 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1390 sys/socket.h.
1391 (net_open): Use union gdb_sockaddr_u.
1392
aac331e4
PA
13932015-03-07 Pedro Alves <palves@redhat.com>
1394
1395 * configure.ac (build_warnings): Move -Wmissing-prototypes
1396 -Wdeclaration-after-statement -Wmissing-parameter-type
1397 -Wold-style-declaration -Wold-style-definition to the C-specific
1398 set.
1399 * configure: Regenerate.
1400
366c75fc
PA
14012015-03-07 Pedro Alves <palves@redhat.com>
1402
1403 * common/gdb_socket.h: New file.
1404 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1405 sys/socket.h.
1406 (net_open): Use union gdb_sockaddr_u.
1407
72df25b2
PA
14082015-03-07 Pedro Alves <palves@redhat.com>
1409
1410 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1411 (exceptions_state_mc_action_iter)
1412 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1413 Don't define.
1414 [__cplusplus] (try_scope_depth): New global.
1415 [__cplusplus] (exception_try_scope_entry)
1416 (exception_try_scope_exit, gdb_exception_sliced_copy)
1417 (exception_rethrow): New functions.
1418 (throw_exception): In C++ mode, throw
1419 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1420 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1421 (throw_it): In C++ mode, use try_scope_depth.
1422 * common/common-exceptions.h [!__cplusplus]
1423 (exceptions_state_mc_action_iter)
1424 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1425 Don't declare.
1426 [__cplusplus] (exception_try_scope_entry)
1427 (exception_try_scope_exit, exception_rethrow): Declare.
1428 [__cplusplus] (struct exception_try_scope): New struct.
1429 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1430 C++ exceptions.
1431 (struct gdb_exception_RETURN_MASK_ALL)
1432 (struct gdb_exception_RETURN_MASK_ERROR)
1433 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1434
284e6217
PA
14352015-03-07 Pedro Alves <palves@redhat.com>
1436
1437 * main.c (handle_command_errors): Remove volatile qualifier from
1438 parameter.
1439
6c63c96a
PA
14402015-03-07 Pedro Alves <palves@redhat.com>
1441
1442 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1443 TRY and CATCH.
1444 * gdbtypes.c (safe_parse_type): Remove empty line.
1445 (types_deeply_equal):
1446 * guile/scm-frame.c (gdbscm_frame_name):
1447 * linux-thread-db.c (find_new_threads_once):
1448 * python/py-breakpoint.c (bppy_get_commands):
1449 * record-btrace.c (record_btrace_insert_breakpoint)
1450 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1451 (record_btrace_start_replaying): Adjust to avoid code between TRY
1452 and CATCH.
1453
492d29ea
PA
14542015-03-07 Pedro Alves <palves@redhat.com>
1455
1456 * common/common-exceptions.c (struct catcher) <exception>: No
1457 longer a pointer to volatile exception. Now an exception value.
1458 <mask>: Delete field.
1459 (exceptions_state_mc_init): Remove all parameters. Adjust.
1460 (exceptions_state_mc): No longer pop the catcher here.
1461 (exceptions_state_mc_catch): New function.
1462 (throw_exception): Adjust.
1463 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1464 all parameters.
1465 (exceptions_state_mc_catch): Declare.
1466 (TRY_CATCH): Rename to ...
1467 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1468 (CATCH, END_CATCH): New.
1469 All callers adjusted.
1470
ece957c8
TT
14712015-03-07 Tom Tromey <tromey@redhat.com>
1472
1473 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1474
7556d4a4
PA
14752015-03-07 Pedro Alves <palves@redhat.com>
1476
1477 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1478 (amd64_epilogue_frame_cache): Normal exception handling code.
1479 * break-catch-throw.c (check_status_exception_catchpoint)
1480 (re_set_exception_catchpoint): Ditto.
1481 * cli/cli-interp.c (safe_execute_command):
1482 * cli/cli-script.c (script_from_file): Ditto.
1483 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1484 Ditto.
1485 * compile/compile-object-run.c (compile_object_run): Ditto.
1486 * cp-abi.c (baseclass_offset): Ditto.
1487 * cp-valprint.c (cp_print_value): Ditto.
1488 * exceptions.c (catch_exceptions_with_msg):
1489 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1490 * frame.c (get_frame_address_in_block_if_available): Ditto.
1491 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1492 (i386_sigtramp_frame_cache): Ditto.
1493 * infcmd.c (post_create_inferior): Ditto.
1494 * linespec.c (parse_linespec, find_linespec_symbols):
1495 * p-valprint.c (pascal_object_print_value): Ditto.
1496 * parse.c (parse_expression_for_completion): Ditto.
1497 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1498 * remote.c (remote_get_noisy_reply): Ditto.
1499 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1500 * solib-svr4.c (solib_svr4_r_map): Ditto.
1501
f873665f 15022015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
1503
1504 * common/common-utils.h (startswith): New inline function.
1505 All places where this logic was used updated to use the above.
1506
68901c4d
PA
15072015-03-05 Pedro Alves <palves@redhat.com>
1508
1509 PR gdb/18002
1510 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1511 after reading the breakpoint's shadow memory.
1512
2dcb2b1a
MK
15132015-03-05 Mark Kettenis <kettenis@gnu.org>
1514
1515 * hppabsd-nat.c: Remove file.
1516 * hppaobsd-nat.c: New file.
1517 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1518 hppaobsd-nat.c.
1519 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1520 hppaobsd-nat.o.
1521
527a273a
PA
15222015-03-04 Pedro Alves <palves@redhat.com>
1523
1524 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1525 (target_decr_pc_after_break): Delete declaration.
1526 * target.c (default_target_decr_pc_after_break)
1527 (target_decr_pc_after_break): Delete.
1528 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1529 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1530 * linux-thread-db.c (check_event): Likewise.
1531 * infrun.c (adjust_pc_after_break): Likewise.
1532 * darwin-nat.c (cancel_breakpoint): Likewise.
1533 * aix-thread.c (aix_thread_wait): Likewise.
1534 * target-delegates.c: Regenerate.
1535
faf09f01
PA
15362015-03-04 Pedro Alves <palves@redhat.com>
1537
1538 * linux-nat.c (save_sigtrap): Check for breakpoints before
1539 checking watchpoints.
1540 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1541 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1542 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1543 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1544 (linux_nat_stopped_by_sw_breakpoint)
1545 (linux_nat_supports_stopped_by_sw_breakpoint)
1546 (linux_nat_stopped_by_hw_breakpoint)
1547 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1548 (linux_nat_wait_1): Don't re-increment the PC if relying on
1549 SIGTRAP's siginfo->si_code.
1550 (linux_nat_add_target): Install new target methods.
1551 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1552 offset if the target already adjusted the PC.
1553 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1554 (GDB_ARCH_TRAP_BRKPT): New.
1555 (TRAP_HWBKPT): Define if not already defined.
1556
f7e6eed5
PA
15572015-03-04 Pedro Alves <palves@redhat.com>
1558
1559 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1560 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1561 Delete field.
1562 <stop_reason>: New field.
1563 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1564 (packet_set_cmd_state): New function.
1565 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1566 features.
1567 (remote_query_supported): If not disabled with the corresponding
1568 "set remote foo-packet" command, report support for the swbreak
1569 and hwbreak features.
1570 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1571 field.
1572 <stop_reason>: New field.
1573 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1574 (remote_wait_as): Adjust.
1575 (remote_stopped_by_sw_breakpoint)
1576 (remote_supports_stopped_by_sw_breakpoint)
1577 (remote_stopped_by_hw_breakpoint)
1578 (remote_supports_stopped_by_hw_breakpoint): New functions.
1579 (remote_stopped_by_watchpoint): New function.
1580 (init_remote_ops): Install them.
1581 (_initialize_remote): Register new "set/show remote
1582 swbreak-feature-packet" and "set/show remote
1583 swbreak-feature-packet" commands.
1584
9e8915c6
PA
15852015-03-04 Pedro Alves <palves@redhat.com>
1586
1587 * btrace.h: Include target/waitstatus.h.
1588 (struct btrace_thread_info) <stop_reason>: New field.
1589 * record-btrace.c (record_btrace_step_thread): Use
1590 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1591 (record_btrace_decr_pc_after_break): Delete.
1592 (record_btrace_stopped_by_sw_breakpoint)
1593 (record_btrace_supports_stopped_by_sw_breakpoint)
1594 (record_btrace_stopped_by_hw_breakpoint)
1595 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1596 (init_record_btrace_ops): Install them.
1597 * record-full.c (record_full_hw_watchpoint): Delete and replace
1598 with ...
1599 (record_full_stop_reason): ... this throughout.
1600 (record_full_exec_insn): Adjust.
1601 (record_full_wait_1): Adjust. No longer re-increment the PC.
1602 (record_full_wait_1): Adjust. Use
1603 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1604 (record_full_stopped_by_watchpoint): Adjust.
1605 (record_full_stopped_by_sw_breakpoint)
1606 (record_full_supports_stopped_by_sw_breakpoint)
1607 (record_full_supports_stopped_by_sw_breakpoint)
1608 (record_full_stopped_by_hw_breakpoint)
1609 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1610 (init_record_full_ops, init_record_full_core_ops): Install them.
1611 * record.c (record_check_stopped_by_breakpoint): New function.
1612 * record.h: Include target/waitstatus.h.
1613 (record_check_stopped_by_breakpoint): New declaration.
1614
15c66dd6
PA
16152015-03-04 Pedro Alves <palves@redhat.com>
1616
1617 enum lwp_stop_reason -> enum target_stop_reason
1618 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1619 (linux_nat_stopped_by_watchpoint, status_callback)
1620 (linux_nat_wait_1): Adjust.
1621 * linux-nat.h (enum lwp_stop_reason): Delete.
1622 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1623 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1624 * target/waitstatus.h (enum target_stop_reason): New.
1625
1cf4d951
PA
16262015-03-04 Pedro Alves <palves@redhat.com>
1627
1628 * breakpoint.c (need_moribund_for_location_type): New function.
1629 (bpstat_stop_status): Don't skipping checking moribund locations
1630 of breakpoint types which the target tell caused a stop.
1631 (program_breakpoint_here_p): New function, factored out from ...
1632 (bp_loc_is_permanent): ... this.
1633 (update_global_location_list): Don't create a moribund location if
1634 the target supports reporting stops of the type of the removed
1635 breakpoint.
1636 * breakpoint.h (program_breakpoint_here_p): New declaration.
1637 * infrun.c (adjust_pc_after_break): Return early if the target has
1638 already adjusted the PC. Add comments.
1639 (handle_signal_stop): If nothing explains a signal, and the target
1640 tells us the stop was caused by a software breakpoint, check if
1641 there's a breakpoint instruction in the memory. If so, adjust the
1642 PC before presenting the stop to the user. Otherwise, ignore the
1643 trap. If nothing explains a signal, and the target tells us the
1644 stop was caused by a hardware breakpoint, ignore the trap.
1645 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1646 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1647 to_supports_stopped_by_hw_breakpoint>: New fields.
1648 (target_stopped_by_sw_breakpoint)
1649 (target_supports_stopped_by_sw_breakpoint)
1650 (target_stopped_by_hw_breakpoint)
1651 (target_supports_stopped_by_hw_breakpoint): Define.
1652 * target-delegates.c: Regenerate.
1653
79639e11
PA
16542015-03-04 Pedro Alves <palves@redhat.com>
1655
1656 * infrun.c (follow_fork_inferior): Use the whole of the
1657 inferior_ptid and pending_follow.related_pid ptids instead of
1658 building ptids from the process components. Adjust verbose output
1659 to use target_pid_to_str.
1660 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1661 inferior_ptid and pending_follow.related_pid ptids instead of
1662 building ptids from the process components.
1663
e85e8e5e
MK
16642015-03-04 Mark Kettenis <kettenis@gnu.org>
1665
1666 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1667 (inf_ptrace_insert_fork_catchpoint): New function.
1668 (inf_ptrace_remove_fork_catchpoint): New function.
1669 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1670
87de11c0
AA
16712015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1672
1673 * s390-linux-tdep.c (s390_register_name): Return empty string
1674 instead of NULL for registers that shouldn't be visible.
1675
d851a69a
AA
16762015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1677
1678 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1679 XML file for 64-bit targets.
1680
b072f6c1
SM
16812015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1682
1683 * target.h (find_default_create_inferior): Remove declaration.
1684 (find_default_attach): Likewise.
1685
c1593e4f
PA
16862015-03-03 Pedro Alves <palves@redhat.com>
1687
1688 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1689 Use ptid_get_pid to get the overall process id when resuming all
1690 threads.
1691
90ad5e1d
PA
16922015-03-03 Pedro Alves <palves@redhat.com>
1693
1694 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1695 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
1696 * inf-ptrace.c (get_ptrace_pid): New function.
1697 (inf_ptrace_resume): Use it.
1698 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1699 to the lower layer.
1700
d68e53f4
MM
17012015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1702
1703 * nat/linux-btrace.c: Include sys/utsname.h.
1704 (linux_determine_kernel_ptr_bits): New.
1705 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1706 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1707 ptr_bits.
1708
986b6601
MM
17092015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1710
1711 * btrace.c (ftrace_update_function): Treat return as tailcall for
1712 "_dl_runtime_resolve".
1713
ce0dfbea
MM
17142015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1715
1716 * btrace.h (btrace_function) <lbegin, lend>: Remove.
1717 * btrace.c (ftrace_debug): Do not print the line range.
1718 (ftrace_skip_file, ftrace_update_lines): Remove.
1719 (ftrace_new_function): Remove lbegin and lend initialization.
1720 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
1721 * record-btrace.c (btrace_compute_src_line_range): New.
1722 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
1723
95e50b27
PA
17242015-03-02 Pedro Alves <palves@redhat.com>
1725
1726 * infrun.c (follow_exec): Delete all threads of the process except
1727 the event thread. Extended comments.
1728
00e474c2
JB
17292015-03-02 Joel Brobecker <brobecker@adacore.com>
1730
1731 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
1732
cc7039d3
JB
17332015-03-02 Joel Brobecker <brobecker@adacore.com>
1734
1735 * utils.h: Remove <stdbool.h> #include.
1736 (producer_is_gcc): Change return type to "int".
1737 * utils.c (producer_is_gcc): Change return type to int.
1738 Return 1 instead of true, and 0 instead of false.
1739 Adjust function documentation accordingly.
1740
550bdf96
AA
17412015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1742
1743 * s390-linux-nat.c (have_regset_vxrs): New static variable.
1744 (s390_linux_fetch_inferior_registers): Handle vector registers, if
1745 present.
1746 (s390_linux_store_inferior_registers): Likewise.
1747 (s390_get_hwcap): Remove function. Embed its logic...
1748 (s390_read_description): ...here. Yield a target description with
1749 vector registers if applicable.
1750 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
1751 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
1752 "features/s390x-tevx-linux64.c".
1753 (struct gdbarch_tdep) <v0_full_regnum>: New field.
1754 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
1755 for "GNU/Linux-specific registers".
1756 (s390_dwarf_reg_r0l): New enum value.
1757 (s390_dwarf_reg_to_regnum): Support vector registers.
1758 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
1759 of GPR lower halves.
1760 (regnum_is_vxr_full): New function.
1761 (s390_register_name): New function.
1762 (s390_pseudo_register_name): Handle v0-v15, which are composed of
1763 f0-f15 and v0l-v15l.
1764 (s390_pseudo_register_type): Likewise.
1765 (s390_pseudo_register_read): Likewise.
1766 (s390_pseudo_register_write): Likewise.
1767 (s390_value_from_register): Account for the fact that values are
1768 placed left-justified in vector registers.
1769 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
1770 the vector reggroup and omit them from the general reggroup.
1771 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
1772 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
1773 (s390_iterate_over_regset_sections): Add iterations for the two
1774 new vector regsets.
1775 (s390_core_read_description): Yield a target description with
1776 vector registers if applicable.
1777 (s390_gdbarch_init): Handle target descriptions with vector
1778 registers. Add "register_name" gdbarch method.
1779 (_initialize_s390_tdep): Call new tdesc initialization functions.
1780 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
1781 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
1782 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
1783 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
1784 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
1785 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
1786 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
1787 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
1788 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
1789 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
1790 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
1791 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
1792 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
1793 (S390_NUM_REGS): Adjust value.
1794 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
1795 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
1796 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
1797 * NEWS: Announce S/390 vector register support.
1798
446899e4
AA
17992015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1800
1801 * features/s390-tevx-linux64.xml: New file.
1802 * features/s390-vx-linux64.xml: New file.
1803 * features/s390-vx.xml: New file.
1804 * features/s390x-tevx-linux64.xml: New file.
1805 * features/s390x-vx-linux64.xml: New file.
1806 * features/Makefile (WHICH): Add s390-vx-linux64,
1807 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
1808 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
1809 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
1810 macros.
1811 * features/s390-tevx-linux64.c: New generated file.
1812 * features/s390-vx-linux64.c: Likewise.
1813 * features/s390x-tevx-linux64.c: Likewise.
1814 * features/s390x-vx-linux64.c: Likewise.
1815 * regformats/s390-tevx-linux64.dat: Likewise.
1816 * regformats/s390-vx-linux64.dat: Likewise.
1817 * regformats/s390x-tevx-linux64.dat: Likewise.
1818 * regformats/s390x-vx-linux64.dat: Likewise.
1819
b7236fbe
DE
18202015-02-28 Doug Evans <xdje42@gmail.com>
1821
1822 * symtab.h (struct symtab) <next>: Fix comment.
1823
02e62830
SM
18242015-02-27 Simon Marchi <simon.marchi@ericsson.com>
1825
1826 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
1827 python_GdbMethods.
1828
bf36a1e7
PA
18292015-02-27 Pedro Alves <palves@redhat.com>
1830
1831 * dtrace-probe.c (dtrace_probe_ops): Make extern.
1832
ad6aff7d
PA
18332015-02-27 Pedro Alves <palves@redhat.com>
1834
1835 * common/common-exceptions.h (exception_none): Declare.
1836 * common/common-exceptions.c (exception_none): Moved from
1837 exceptions.c.
1838 (exceptions_state_mc_init): Use exception_none.
1839 * exceptions.c (exception_none): Move to
1840 common/common-exceptions.c.
1841 * exceptions.h (exception_none): Move to
1842 common/common-exceptions.h.
1843
97c18565
PA
18442015-02-27 Pedro Alves <palves@redhat.com>
1845
1846 * main.c (catch_command_errors, catch_command_errors_const):
1847 Remove 'mask' argument. Adjust.
1848 (captured_main): Adjust callers.
1849
e992c591
PA
18502015-02-27 Pedro Alves <palves@redhat.com>
1851
1852 * python/python-internal.h: Include "extension-priv.h".
1853
64166036
PA
18542015-02-27 Pedro Alves <palves@redhat.com>
1855
1856 * breakpoint.h (enum print_stop_action): Move further up in the
1857 file.
1858
8a526fa6
PA
18592015-02-27 Pedro Alves <palves@redhat.com>
1860
1861 * gdbarch.sh: Include regcache.h.
1862 * gdbarch.h: Regenerate.
1863
0fa9c223
PA
18642015-02-27 Pedro Alves <palves@redhat.com>
1865
1866 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
1867 Remove duplicate const.
1868 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
1869 duplicate const.
1870
7cf99fb1
PA
18712015-02-27 Pedro Alves <palves@redhat.com>
1872
1873 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
1874 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
1875 * features/feature_to_c.sh: Tag the generated xml_builtin array
1876 with extern const in C++ mode.
1877
1424c16e
TT
18782015-02-27 Tom Tromey <tromey@redhat.com>
1879
1880 * minidebug.c (struct lzma_stream): Rename to ...
1881 (struct gdb_lzma_stream): ... this.
1882 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
1883
10367c7c
PA
18842015-02-27 Pedro Alves <palves@redhat.com>
1885
1886 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
1887 function.
1888 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1889 (mi_cmd_stack_list_variables): Use it.
1890
4180215b
PA
18912015-02-27 Pedro Alves <palves@redhat.com>
1892
1893 * x86-linux-nat.c (u_debugreg_offset): New function.
1894 (x86_linux_dr_get, x86_linux_dr_set): Use it.
1895
2f56f7c3
PA
18962015-02-27 Pedro Alves <palves@redhat.com>
1897
1898 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
1899 declaration.
1900 Include break-common.h.
1901
570dc176
TT
19022015-02-27 Tom Tromey <tromey@redhat.com>
1903 Pedro Alves <palves@redhat.com>
1904
1905 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
1906 local used to iterate over enums.
1907 * completer.c (signal_completer): Likewise.
1908 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
1909 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1910 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
1911 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
1912 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
1913 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
1914 * tui-wingeneral.c (tui_refresh_all): Likewise.
1915
68c14faa
PA
19162015-02-27 Pedro Alves <palves@redhat.com>
1917
1918 * target.h: Include "infrun.h".
1919
749bab01
PA
19202015-02-27 Pedro Alves <palves@redhat.com>
1921
1922 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
1923
3c14e5a3
PA
19242015-02-27 Pedro Alves <palves@redhat.com>
1925
1926 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
1927 (IPA_SYM): Use it.
1928 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
1929
56000a98
PA
19302015-02-27 Pedro Alves <palves@redhat.com>
1931
1932 * cli-out.c (_rl_erase_entire_line): Move declaration out of
1933 cli_mld_erase_entire_line, and make it extern "C".
1934 * common/common-defs.h (EXTERN_C): New.
1935 * completer.c (_rl_completion_prefix_display_length)
1936 (_rl_print_completions_horizontally, QSFUNC): Move declarations
1937 out of gdb_display_match_list_1.
1938 (_rl_qsort_string_compare): Move declaration out of
1939 gdb_display_match_list_1, and make it extern "C".
1940 * defs.h (re_comp): Use EXTERN_C.
1941 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
1942 and make it extern "C".
1943 (monstartup): Move declaration out of maintenance_set_profile_cmd,
1944 and make it extern "C".
1945 (main): Move declaration out of maintenance_set_profile_cmd.
1946 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
1947 EXTERN_C.
1948
bcabf420
PA
19492015-02-27 Pedro Alves <palves@redhat.com>
1950
1951 * python/python.c (GdbMethods): Rename to ...
1952 (python_GdbMethods): ... this and make extern.
1953 (GdbModuleDef): Rename to ...
1954 (python_GdbModuleDef): ... this and make extern.
1955
928dbe07
PA
19562015-02-27 Pedro Alves <palves@redhat.com>
1957
1958 * record-btrace.c (set_record_btrace_cmdlist)
1959 (show_record_btrace_cmdlist): Remove redefinitions.
1960
52059ffd
TT
19612015-02-27 Tom Tromey <tromey@redhat.com>
1962 Pedro Alves <palves@redhat.com>
1963
1964 * dwarf2-frame.c (enum cfa_how_kind, struct
1965 dwarf2_frame_state_reg_info): Move out of struct
1966 dwarf2_frame_state.
1967 * dwarf2read.c (struct tu_stats): Move out of struct
1968 dwarf2_per_objfile.
1969 (struct file_entry): Move out of struct line_header.
1970 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
1971 typedef_field_list): Move out of struct field_info.
1972 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
1973 Move out of struct dynamic_prop.
1974 (union type_owner, union field_location, struct field, struct
1975 range_bounds, union type_specific): Move out of struct main_type.
1976 (struct fn_fieldlist, struct fn_field, struct typedef_field)
1977 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
1978 (struct call_site_target, union call_site_parameter_u, struct
1979 call_site_parameter): Move out of struct call_site.
1980 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
1981 m32c_prologue.
1982 (enum srcdest_kind): Move out of struct srcdest.
1983 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
1984 * prologue-value.h (enum prologue_value_kind): Move out of struct
1985 prologue_value.
1986 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
1987 gdbarch_tdep.
1988 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
1989 out of struct field_info.
1990 * symfile.h (struct other_sections): Move out of struct
1991 section_addr_info.
1992 * symtab.c (struct symbol_cache_slot): Move out struct
1993 block_symbol_cache.
1994 * target-descriptions.c (enum tdesc_type_kind): Move out of
1995 typedef struct tdesc_type.
1996 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
1997 struct tui_line_or_address.
1998 * value.c (enum internalvar_kind, union internalvar_data): Move
1999 out of struct internalvar.
2000 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2001 gdbarch_tdep.
2002
fe978cb0
PA
20032015-02-27 Tom Tromey <tromey@redhat.com>
2004 Pedro Alves <palves@redhat.com>
2005
2006 Rename symbols whose names are reserved C++ keywords throughout.
2007
3bc3d82a
PA
20082015-02-27 Pedro Alves <palves@redhat.com>
2009
2010 * Makefile.in (COMPILER): New, get it from autoconf.
2011 (COMPILE.pre, CC_LD): Use COMPILER.
2012 (CXX): Get from autoconf instead.
2013 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2014 * acinclude.m4: Include build-with-cxx.m4.
2015 * build-with-cxx.m4: New file.
2016 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2017 Disable -Werror by default if building in C++ mode.
2018 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2019 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2020 Run supported-warning-flags tests with the C++ compiler.
2021 Save/restore CXXFLAGS too.
2022 * configure: Regenerate.
2023
07697489
PA
20242015-02-27 Pedro Alves <palves@redhat.com>
2025
2026 * libiberty.m4: New file.
2027 * acinclude.m4: Include libiberty.m4.
2028 * configure.ac: Call libiberty_INIT.
2029 * config.in, configure: Regenerate.
2030
60abeae4
AA
20312015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2032
2033 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2034 31-bit targets, but 64-bit targets as well.
2035 (s390_gnu_triplet_regexp): New function.
2036 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2037 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2038 method.
2039
f44466fb 20402015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
2041
2042 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2043 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2044 from CONTEXT_DEBUGGER.
2045
0def5aaa
DE
20462015-02-26 Doug Evans <dje@google.com>
2047
2048 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2049 CHECK_TYPEDEF.
2050 (set_type_vptr_fieldno): Ditto.
2051 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2052 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2053
77b64a49
PA
20542015-02-26 Pedro Alves <palves@redhat.com>
2055
2056 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2057 * complaints.c (vcomplaint): Pass argument FMT directly to
2058 printf-like functions instead of complaint->fmt.
2059 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2060 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2061 * compile/compile-loc2c.c (pushf, unary, binary): Add
2062 ATTRIBUTE_PRINTF.
2063 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2064 to pushf.
2065 (BINARY): Pass string literal as format string to 'binary'.
2066 * compile/compile-object-load.c (link_callbacks_einfo): Add
2067 ATTRIBUTE_PRINTF.
2068 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2069
532f44ed
PA
20702015-02-26 Pedro Alves <palves@redhat.com>
2071
2072 * windows-termcap.c: Rename to ...
2073 * stub-termcap.c: ... this. Adjust header line.
2074 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2075 windows-termcap.c.
2076 * configure: Regenerate.
2077 * configure.ac: Refer to stub-termcap.o instead of
2078 windows-termcap.o.
2079 * gdb_curses.h: Mention stub-termcap.c instead of
2080 windows-termcap.c.
2081
081a1c2c
JK
20822015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2083
2084 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2085 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2086
2f41223f
AT
20872015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2088
2089 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2090
80c57053
JK
20912015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2092
2093 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2094 bfd_canonicalize_symtab.
2095
cf424aef
JB
20962015-02-25 John Baldwin <jhb@FreeBSD.org>
2097
2098 * amd64fbsd-nat.c: Include sys/user.h.
2099 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2100 instead of KERN_PS_STRINGS to locate the signal trampoline.
2101 * i386fbsd-nat.c: Include sys/user.h.
2102 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2103 instead of KERN_PS_STRINGS to locate the signal trampoline.
2104 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2105 (amd64fbsd_sigtramp_p): New.
2106 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2107 longer set default values.
2108 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2109 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2110 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2111 (i386fbsd_freebsd4_sigtramp_start)
2112 (i386fbsd_freebsd4_sigtramp_middle)
2113 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2114 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2115 (i386fbsd_sigtramp_p): New.
2116 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2117 longer set default values.
2118 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2119
c5cb74ee
JB
21202015-02-25 John Baldwin <jhb@freebsd.org>
2121
2122 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2123 get_frame_register instead of frame_unwind_register_unsigned.
2124
17487d85
JK
21252015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 PR build/18033
2128 * compile/compile-c-support.c (c_compute_program): Change // comment.
2129 * compile/compile-object-load.c (setup_sections): Change // comment.
2130
9357a9e6
JB
21312015-02-26 Joel Brobecker <brobecker@adacore.com>
2132
2133 PR build/18033:
2134 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2135
1f10ba14
PA
21362015-02-23 Pedro Alves <palves@redhat.com>
2137
2138 * remote.c (skip_to_semicolon): New function.
2139 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2140 special case the stop reasons that look like hex numbers
2141 upfront. Instead handle real register numbers after matching
2142 all the known stop reasons.
2143
96553a0c
DE
21442015-02-21 Doug Evans <dje@google.com>
2145
2146 PR c++/17976, symtab/17821
2147 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2148 is_in_anonymous. All callers updated.
2149 (find_symbol_in_baseclass): Ditto.
2150 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2151 for symbols in an anonymous namespace.
2152 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2153 DW_AT_name directly.
2154 (dwarf2_name): Convert missing namespace name to
2155 CP_ANONYMOUS_NAMESPACE_STR.
2156
2db9a427
PA
21572015-02-20 Pedro Alves <palves@redhat.com>
2158
2159 * linux-nat.c (linux_handle_extended_wait): Call
2160 thread_db_notice_clone whenever a new clone LWP is detected.
2161 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2162 functions.
2163 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2164 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2165 (linux_unstop_all_lwps): Declare.
2166 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2167 (thread_get_info_callback): Delete.
2168 (thread_from_lwp): Use td_thr_get_info and record_thread.
2169 (thread_db_attach_lwp): Delete.
2170 (thread_db_notice_clone): New function.
2171 (try_thread_db_load_1): If /proc is mounted and shows the
2172 process'es task list, walk over all LWPs and call thread_from_lwp
2173 instead of relying on td_ta_thr_iter.
2174 (attach_thread): Don't call check_thread_signals here. Split the
2175 tail part of the function (which adds the thread to the core GDB
2176 thread list) to ...
2177 (record_thread): ... this function. Call check_thread_signals
2178 here.
2179 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2180 call thread_from_lwp.
2181 (thread_db_update_thread_list): Rename to ...
2182 (thread_db_update_thread_list_org): ... this.
2183 (thread_db_update_thread_list): New function.
2184 (thread_db_find_thread_from_tid): Delete.
2185 (thread_db_get_ada_task_ptid): Simplify.
2186 * nat/linux-procfs.c: Include <sys/stat.h>.
2187 (linux_proc_task_list_dir_exists): New function.
2188 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2189
3b27ef47
PA
21902015-02-20 Pedro Alves <palves@redhat.com>
2191
2192 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2193 main LWP. Handle the case of waitpid returning 0 if we're already
2194 attached to the LWP. Don't set the LWP's last_resume_kind to
2195 resume_stop if we already knew about the LWP.
2196 (linux_nat_filter_event): Add debug logs.
2197
1cc28231
PA
21982015-02-20 Pedro Alves <palves@redhat.com>
2199
2200 * target.h (forward_target_decr_pc_after_break): Delete
2201 declaration.
2202
5c5019c2
PA
22032015-02-20 Pedro Alves <palves@redhat.com>
2204
2205 PR threads/18006
2206 * linux-thread-db.c (thread_get_info_callback): Return early if
2207 the thread's lwp id is -1.
2208
f3978e91
JB
22092015-02-20 Joel Brobecker <brobecker@adacore.com>
2210
2211 GDB 7.9 released.
2212
ffdf88ec
SE
22132015-02-19 Steve Ellcey <sellcey@imgtec.com>
2214
2215 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2216 (dtrace_get_probes) Change type of variable 'dof'.
2217
c9587f88
AT
22182015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2219
2220 PR breakpoints/16812
2221 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2222 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2223 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2224
53cf2ee0
DT
22252015-02-19 David Taylor <dtaylor@emc.com>
2226
2227 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2228
acfe0940
PP
22292015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2230
2231 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2232 function.
2233 (tui_putc): Don't call tui_handle_resize_during_io.
2234 (tui_getc): Likewise.
2235 (tui_mld_getc): Likewise.
2236 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2237 (tui_sigwinch_token): New static variable.
2238 (tui_initialize_win): Adjust documentation. Set
2239 tui_sigwinch_token.
2240 (tui_async_resize_screen): New asynchronous callback.
2241 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2242 invoke tui_async_resize_screen.
2243
f6a88844
JM
22442015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2245
2246 * configure: Regenerated.
2247 * configure.ac: Use GDB_AC_TRANSFORM.
2248 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2249 * acinclude.m4: sinclude transform.m4.
2250 * transform.m4: New file.
2251 (GDB_AC_TRANSFORM): New macro.
2252
b05e3b0d
JM
22532015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2254
2255 * NEWS: Announce the support for DTrace SDT probes.
2256
c3e3045e
JM
22572015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2258
2259 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2260 (amd64_dtrace_parse_probe_argument): New function.
2261 (amd64_dtrace_probe_is_enabled): Likewise.
2262 (amd64_dtrace_enable_probe): Likewise.
2263 (amd64_dtrace_disable_probe): Likewise.
2264 (amd64_linux_init_abi): Register the
2265 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2266 `gdbarch_dtrace_disable_probe' and
2267 `gdbarch_dtrace_probe_is_enabled' hooks.
2268 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2269 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2270 (amd64_dtrace_enable_probe_sequence): Likewise.
2271 (amd64_dtrace_disable_probe_sequence): Likewise.
2272
d4777acb
JM
22732015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2274
2275 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2276 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2277 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2278 handle ELF files.
2279 * Makefile.in (SFILES): dtrace-probe.c added.
2280 * configure: Regenerate.
2281 * dtrace-probe.c: New file.
2282 (SHT_SUNW_dof): New constant.
2283 (dtrace_probe_type): New enum.
2284 (dtrace_probe_arg): New struct.
2285 (dtrace_probe_arg_s): New typedef.
2286 (struct dtrace_probe_enabler): New struct.
2287 (dtrace_probe_enabler_s): New typedef.
2288 (dtrace_probe): New struct.
2289 (dtrace_probe_is_linespec): New function.
2290 (dtrace_dof_sect_type): New enum.
2291 (dtrace_dof_dofh_ident): Likewise.
2292 (dtrace_dof_encoding): Likewise.
2293 (DTRACE_DOF_ENCODE_LSB): Likewise.
2294 (DTRACE_DOF_ENCODE_MSB): Likewise.
2295 (dtrace_dof_hdr): New struct.
2296 (dtrace_dof_sect): Likewise.
2297 (dtrace_dof_provider): Likewise.
2298 (dtrace_dof_probe): Likewise.
2299 (DOF_UINT): New macro.
2300 (DTRACE_DOF_PTR): Likewise.
2301 (DTRACE_DOF_SECT): Likewise.
2302 (dtrace_process_dof_probe): New function.
2303 (dtrace_process_dof): Likewise.
2304 (dtrace_build_arg_exprs): Likewise.
2305 (dtrace_get_arg): Likewise.
2306 (dtrace_get_probes): Likewise.
2307 (dtrace_get_probe_argument_count): Likewise.
2308 (dtrace_can_evaluate_probe_arguments): Likewise.
2309 (dtrace_evaluate_probe_argument): Likewise.
2310 (dtrace_compile_to_ax): Likewise.
2311 (dtrace_probe_destroy): Likewise.
2312 (dtrace_gen_info_probes_table_header): Likewise.
2313 (dtrace_gen_info_probes_table_values): Likewise.
2314 (dtrace_probe_is_enabled): Likewise.
2315 (dtrace_probe_ops): New variable.
2316 (info_probes_dtrace_command): New function.
2317 (_initialize_dtrace_probe): Likewise.
2318 (dtrace_type_name): Likewise.
2319
8b367e17
JM
23202015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2321
2322 * gdbarch.sh (dtrace_parse_probe_argument): New.
2323 (dtrace_probe_is_enabled): Likewise.
2324 (dtrace_enable_probe): Likewise.
2325 (dtrace_disable_probe): Likewise.
2326 * gdbarch.c: Regenerate.
2327 * gdbarch.h: Regenerate.
2328
9aca2ff8
JM
23292015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2330
2331 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2332 stap_probe_ops for `enable_probe' and `disable_probe'.
2333 * probe.c (enable_probes_command): New function.
2334 (disable_probes_command): Likewise.
2335 (_initialize_probe): Define the cli commands `enable probe' and
2336 `disable probe'.
2337 (parse_probe_linespec): New function.
2338 (info_probes_for_ops): Use parse_probe_linespec.
2339 * probe.h (probe_ops): New hooks `enable_probe' and
2340 `disable_probe'.
2341
03e98035
JM
23422015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2343
2344 * probe.c (compute_probe_arg): Moved from stap-probe.c
2345 (compile_probe_arg): Likewise.
2346 (probe_funcs): Likewise.
2347 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2348 (compile_probe_arg): Likewise.
2349 (probe_funcs): Likewise.
2350
6f9b8491
JM
23512015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2352
2353 * probe.c (print_ui_out_not_applicables): New function.
2354 (exists_probe_with_pops): Likewise.
2355 (info_probes_for_ops): Do not include column headers for probe
2356 types for which no probe has been actually found on any object.
2357 Also invoke `print_ui_out_not_applicables' in order to match the
2358 column rows with the header when probes of several types are
2359 listed.
2360 Print the "Type" column.
2361 * probe.h (probe_ops): Added a new probe operation `type_name'.
2362 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2363 (stap_type_name): New function.
2364
69efdff1
PP
23652015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2366
2367 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2368 (key_is_command_char): Delete.
2369
f8e5e23e
PA
23702015-02-17 Pedro Alves <palves@redhat.com>
2371
2372 * tui/tui.c (tui_enable): Resize windows before anything
2373 might show a window.
2374
9f2e0721
MO
23752015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2376
2377 PR gdb/17984
2378 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2379 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2380 call.
2381 * aarch64-tdep.h (tdesc_aarch64): Declare.
2382
171e6b1c
MW
23832015-02-12 Mark Wielaard <mjw@redhat.com>
2384
2385 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2386
d5ff0482
DE
23872015-02-13 Doug Evans <dje@google.com>
2388
2389 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2390 anonymous_namespace to is_in_anonymous for consistency with the rest
2391 of the file.
2392 (cp_lookup_bare_symbol): Fix typo in comment.
2393 (cp_search_static_and_baseclasses): Ditto.
2394 (search_symbol_list): Use vertical space in comment better.
2395 (reset_directive_searched): Ditto. Fix typo.
2396 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2397
9f04ac5f
YQ
23982015-02-13 Yao Qi <yao.qi@arm.com>
2399
2400 * MAINTAINERS: Update my email address.
2401
013d0319
DE
24022015-02-12 Doug Evans <dje@google.com>
2403
b615dd20 2404 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 2405
9a7e538e
DE
24062015-02-12 Doug Evans <dje@google.com>
2407
2408 * completer.c (complete_line): Remove incorrect comment.
2409
e1fcd575
JK
24102015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2413 (py_print_frame): Use RETURN_MASK_ERROR.
2414
b99bf4e3
JK
24152015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2416
2417 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2418 function comment. Wrap all function that can throw in cleanups.
2419 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2420 cleanups.
2421
800eb1ce
JK
24222015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2425 Remove the error label.
2426
34019068
JK
24272015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2428
2429 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2430 with goto first, indent the former else codepath left. Put variable
2431 'elided' to a new inner block.
2432
8d4a54e2
JK
24332015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2436
18ad82c1
PA
24372015-02-11 Pedro Alves <palves@redhat.com>
2438
2439 * xcoffread.c (within_function): Delete.
2440
e36122e9
TT
24412015-02-11 Tom Tromey <tromey@redhat.com>
2442 Pedro Alves <palves@redhat.com>
2443
2444 * breakpoint.c (base_breakpoint_ops): Delete.
2445 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2446 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2447 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2448 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2449 * python/py-arch.c (arch_object_type): Make extern.
2450 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2451 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2452 * python/py-cmd.c (cmdpy_object_type): Make extern.
2453 * python/py-continueevent.c (continue_event_object_type)
2454 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2455 parameter. Update all callers.
2456 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2457 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2458 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2459 * python/py-function.c (fnpy_object_type): Make extern.
2460 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2461 * python/py-infevents.c (call_pre_event_object_type)
2462 (inferior_call_post_event_object_type).
2463 (memory_changed_event_object_type): Make extern.
2464 * python/py-infthread.c (thread_object_type): Make extern.
2465 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2466 * python/py-linetable.c (linetable_entry_object_type)
2467 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2468 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2469 (clear_objfiles_event_object_type): Make extern.
2470 * python/py-objfile.c (objfile_object_type): Make extern.
2471 * python/py-param.c (parmpy_object_type): Make extern.
2472 * python/py-progspace.c (pspace_object_type): Make extern.
2473 * python/py-signalevent.c (signal_event_object_type): Make extern.
2474 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2475 * python/py-type.c (type_object_type, field_object_type)
2476 (type_iterator_object_type): Make extern.
2477 * python/python.c (python_extension_script_ops)
2478 (python_extension_ops): Make extern.
2479 * stap-probe.c (stap_probe_ops): Make extern.
2480
0703599a
PA
24812015-02-11 Pedro Alves <pedro@codesourcery.com>
2482
2483 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2484 because the event thread is not the current thread.
2485
eaaf76ab
DE
24862015-02-11 Doug Evans <xdje42@gmail.com>
2487
2488 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2489 been initialized yet, return NULL.
2490
e7d52ed3
DE
24912015-02-11 Doug Evans <dje@google.com>
2492
2493 * symfile.h (new_symfile_objfile): Delete.
2494 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2495 All callers updated.
2496
fc6b1256
PP
24972015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2498
2499 * tui/tui-io.c (tui_handle_resize_during_io): Call
2500 tui_update_gdb_sizes() after resizing the screen.
2501 * tui/tui.c (tui_enable): Resize the terminal before
2502 calling tui_update_gdb_sizes().
2503
d9080678
PP
25042015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2505
2506 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2507 line before printing a newline.
2508
9f615e3a
MW
25092015-02-11 Mark Wielaard <mjw@redhat.com>
2510
2511 * utils.c (producer_is_gcc): Return true or false.
2512
d9080678 25132015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
2514
2515 * utils.h (producer_is_gcc): Change return type to bool. Add major
2516 argument.
2517 * utils.c (producer_is_gcc): Likewise.
2518 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2519 * dwarf2read.c (check_producer): Likewise.
2520
b052c4fb
PA
25212015-02-10 Pedro Alves <palves@redhat.com>
2522
2523 * infrun.c (displaced_step_fixup): Switch to the event thread
2524 before calling gdbarch_displaced_step_fixup.
2525
3ac240d4
AT
25262015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2527
2528 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2529
c1cc6152
SM
25302015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2531
2532 * ada-varobj.c (ada_name_of_child): Constify parent.
2533 (ada_path_expr_of_child): Same.
2534 (ada_value_of_child): Same.
2535 (ada_type_of_child): Same.
2536 * c-varobj.c (c_is_path_expr_parent): Same.
2537 (c_describe_child): Same.
2538 (c_name_of_child): Same.
2539 (c_value_of_child): Same.
2540 (c_type_of_child): Same.
2541 (cplus_number_of_children): Same.
2542 (cplus_describe_child): Constify var.
2543 (cplus_name_of_child): Constify parent.
2544 (cplus_value_of_child): Same.
2545 (cplus_type_of_child): Same.
2546 * jv-varobj.c (java_name_of_child): Same.
2547 (java_value_of_child): Same.
2548 (java_type_of_child): Same.
2549 * varobj.c (value_of_child): Same.
2550 (varobj_default_is_path_expr_parent): Constify var, parent and return
2551 value.
2552 (varobj_get_path_expr): Constify var, modify path_expr through
2553 mutable_var.
2554 (install_new_value): Constify parent.
2555 (value_of_child): Constify parent.
2556 * varobj.h (struct varobj): Constify parent.
2557 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2558 type_of_child.
2559 (varobj_get_path_expr): Constify var.
2560 (varobj_get_path_expr_parent): Constify var and return value.
2561
c1ee9414
LM
25622015-02-10 Luis Machado <lgustavo@codesourcery.com>
2563
2564 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2565 (arm_prologue_this_id): Move PC and SP limit checks to
2566 arm_prologue_unwind_stop_reason.
2567 (arm_prologue_unwind) <stop_reason> : Set to
2568 arm_prologue_unwind_stop_reason.
2569
f7de9aab
MW
25702015-02-09 Mark Wielaard <mjw@redhat.com>
2571
2572 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2573 DW_LANG_Fortran08 as language_fortran.
2574
0b24eb2d
SDJ
25752015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2576
2577 PR remote/17946
2578 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2579 of pointer against char.
2580
a2c2acaf
MW
25812015-02-09 Mark Wielaard <mjw@redhat.com>
2582
2583 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2584 (c_type_print_modifier): Likewise.
2585 * dwarf2read.c (read_tag_atomic_type): New function.
2586 (read_type_die_1): Handle DW_TAG_atomic_type.
2587 * gdbtypes.c (make_atomic_type): New function.
2588 (recursive_dump_type): Handle TYPE_ATOMIC.
2589 * gdbtypes.h (enum type_flag_values): Renumber.
2590 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2591 (TYPE_ATOMIC): New macro.
2592 (make_atomic_type): Declare.
2593
31fd9caa
MM
25942015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2595
2596 * btrace.c (ftrace_find_call): Skip gaps.
2597 (ftrace_new_function): Initialize level.
2598 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2599 (ftrace_new_switch): Update
2600 level computation.
2601 (ftrace_new_gap): New.
2602 (ftrace_update_function): Create new function after gap.
2603 (btrace_compute_ftrace_bts): Create gap on error.
2604 (btrace_stitch_bts): Update parameters. Clear trace if it
2605 becomes empty.
2606 (btrace_stitch_trace): Update parameters. Update callers.
2607 (btrace_clear): Reset the number of gaps.
2608 (btrace_insn_get): Return NULL if the iterator points to a gap.
2609 (btrace_insn_number): Return zero if the iterator points to a gap.
2610 (btrace_insn_end): Allow gaps at the end.
2611 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2612 (btrace_find_insn_by_number): Assert that the found iterator does
2613 not point to a gap.
2614 (btrace_call_next, btrace_call_prev): Assert that the last function
2615 is not a gap.
2616 * btrace.h (btrace_bts_error): New.
2617 (btrace_function): Update comment.
2618 (btrace_function) <insn, insn_offset, number>: Update comment.
2619 (btrace_function) <errcode>: New.
2620 (btrace_thread_info) <ngaps>: New.
2621 (btrace_thread_info) <replay>: Update comment.
2622 (btrace_insn_get): Update comment.
2623 * record-btrace.c (btrace_ui_out_decode_error): New.
2624 (record_btrace_info): Print number of gaps.
2625 (btrace_insn_history, btrace_call_history): Call
2626 btrace_ui_out_decode_error for gaps.
2627 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2628
afb778a2
MM
26292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2630
2631 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2632 * nat/linux-btrace.c: (btrace_this_cpu): New.
2633 (cpu_supports_bts): Call btrace_this_cpu.
2634 (intel_supports_bts): Add cpu parameter.
2635
7d5c24b3
MM
26362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2637
2638 * btrace.h (btrace_insn_class): New.
2639 (btrace_insn) <size, iclass>: New.
2640 * btrace.c (ftrace_find_call): Update parameters. Update users.
2641 Use instruction classification.
2642 (ftrace_new_return): Update parameters. Update users.
2643 (ftrace_update_function): Update parameters. Update users. Use
2644 instruction classification.
2645 (ftrace_update_insns): Update parameters. Update users.
2646 (ftrace_classify_insn): New.
2647 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2648 TRY_CATCH around call to gdb_insn_length.
2649
76235df1
MM
26502015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2651
2652 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2653 Update parameters. Update users.
2654
d33501a5
MM
26552015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2656
2657 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2658 (btrace_conf_bts_attributes): New.
2659 (btrace_conf_children): Add attributes.
2660 * common/btrace-common.h (btrace_config_bts): New.
2661 (btrace_config)<bts>: New.
2662 (btrace_config): Update comment.
2663 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2664 Use config.
2665 * features/btrace-conf.dtd: Increment version. Add size
2666 attribute to bts element.
2667 * record-btrace.c (set_record_btrace_bts_cmdlist,
2668 show_record_btrace_bts_cmdlist): New.
2669 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2670 record_btrace_print_conf, cmd_set_record_btrace_bts,
2671 cmd_show_record_btrace_bts): New.
2672 (record_btrace_info): Call record_btrace_print_conf.
2673 (_initialize_record_btrace): Add commands.
2674 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2675 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2676 (btrace_sync_conf): Synchronize bts size.
2677 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2678 * NEWS: Announce new commands and new packets.
2679
f4abbc16
MM
26802015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2681
2682 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2683 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2684 (x86_linux_btrace_conf): New.
2685 (x86_linux_create_target): Initialize to_btrace_conf.
2686 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2687 Check format. Split into this and ...
2688 (linux_enable_bts): ... this.
2689 (linux_btrace_conf): New.
2690 (perf_event_skip_record): Renamed into ...
2691 (perf_event_skip_bts_record): ... this. Updated users.
2692 (linux_disable_btrace): Split into this and ...
2693 (linux_disable_bts): ... this.
2694 (linux_read_btrace): Check format.
2695 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2696 (linux_btrace_conf): New.
2697 (btrace_target_info)<ptid>: Moved.
2698 (btrace_target_info)<conf>: New.
2699 (btrace_target_info): Split into this and ...
2700 (btrace_tinfo_bts): ... this. Updated users.
2701 * btrace.c (btrace_enable): Update parameters.
2702 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2703 (btrace_conf_children, btrace_conf_attributes)
2704 (btrace_conf_elements): New.
2705 * btrace.h (btrace_enable): Update parameters.
2706 (btrace_conf, parse_xml_btrace_conf): New.
2707 * common/btrace-common.h (btrace_config): New.
2708 * feature/btrace-conf.dtd: New.
2709 * record-btrace.c (record_btrace_conf): New.
2710 (record_btrace_cmdlist): New.
2711 (record_btrace_enable_warn, record_btrace_open): Pass
2712 &record_btrace_conf.
2713 (record_btrace_info): Print recording format.
2714 (cmd_record_btrace_bts_start): New.
2715 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2716 (_initialize_record_btrace): Add "record btrace bts" subcommand.
2717 Add "record bts" alias command.
2718 * remote.c (remote_state)<btrace_config>: New.
2719 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
2720 (remote_protocol_features): Add qXfer:btrace-conf:read.
2721 (remote_open_1): Call remote_btrace_reset.
2722 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
2723 (btrace_target_info)<conf>: New.
2724 (btrace_sync_conf, btrace_read_config): New.
2725 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
2726 btrace_read_conf.
2727 (remote_btrace_conf): New.
2728 (init_remote_ops): Initialize to_btrace_conf.
2729 (_initialize_remote): Add qXfer:btrace-conf packet.
2730 * target.c (target_enable_btrace): Update parameters.
2731 (target_btrace_conf): New.
2732 * target.h (target_enable_btrace): Update parameters.
2733 (target_btrace_conf): New.
2734 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
2735 (target_ops)<to_enable_btrace>: Update parameters and comment.
2736 (target_ops)<to_btrace_conf>: New.
2737 * target-delegates: Regenerate.
2738 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
2739 (target_debug_print_const_struct_btrace_target_info_p): New.
2740 * NEWS: Announce new command and new packet.
2741
aadf7753
MM
27422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2743
2744 * nat/linux-btrace.h (perf_event_buffer): New.
2745 (btrace_target_info) <buffer, size, data_head>: Replace with ...
2746 <bts>: ... this.
2747 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
2748 (perf_event_buffer_size, perf_event_buffer_begin)
2749 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
2750 Updated users.
2751 (perf_event_new_data): New.
2752
043c3577
MM
27532015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2754
2755 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
2756 * record-btrace.c (record_btrace_open): Remove call to
2757 target_supports_btrace.
2758 * remote.c (remote_supports_btrace): Update parameters.
2759 * target.c (target_supports_btrace): Update parameters.
2760 * target.h (to_supports_btrace, target_supports_btrace): Update
2761 parameters.
2762 * target-delegates.c: Regenerate.
2763 * target-debug.h (target_debug_print_enum_btrace_format): New.
2764 * nat/linux-btrace.c
2765 (kernel_supports_btrace): Rename into ...
2766 (kernel_supports_bts): ... this. Update users. Update warning text.
2767 (intel_supports_btrace): Rename into ...
2768 (intel_supports_bts): ... this. Update users.
2769 (cpu_supports_btrace): Rename into ...
2770 (cpu_supports_bts): ... this. Update users.
2771 (linux_supports_btrace): Update parameters. Split into this and ...
2772 (linux_supports_bts): ... this.
2773 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
2774
734b0e4b
MM
27752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2776
2777 * Makefile.in (SFILES): Add common/btrace-common.c.
2778 (COMMON_OBS): Add common/btrace-common.o.
2779 (btrace-common.o): Add build rules.
2780 * btrace.c (parse_xml_btrace): Update parameters.
2781 (parse_xml_btrace_block): Set format field.
2782 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
2783 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
2784 (btrace_compute_ftrace): Split into this and...
2785 (btrace_compute_ftrace_bts): ...this.
2786 (btrace_stitch_trace): Split into this and...
2787 (btrace_stitch_bts): ...this.
2788 * btrace.h (parse_xml_btrace): Update parameters.
2789 (make_cleanup_btrace_data): New.
2790 * common/btrace-common.c: New.
2791 * common/btrace-common.h: Include common-defs.h.
2792 (btrace_block_s): Update comment.
2793 (btrace_format): New.
2794 (btrace_format_string): New.
2795 (btrace_data_bts): New.
2796 (btrace_data): New.
2797 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
2798 * remote.c (remote_read_btrace): Update parameters.
2799 * target.c (target_read_btrace): Update parameters.
2800 * target.h (target_read_btrace): Update parameters.
2801 (target_ops)<to_read_btrace>: Update parameters.
2802 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
2803 * target-delegates.c: Regenerate.
2804 * target-debug (target_debug_print_struct_btrace_data_p): New.
2805 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
2806 (linux_read_bts): ...this.
2807 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
2808
bd2e0e9e
DE
28092015-02-06 Doug Evans <dje@google.com>
2810
2811 * remote-m32r-sdi.c: Include symfile.h.
2812
f176c4b5
DE
28132015-02-06 Doug Evans <dje@google.com>
2814
2815 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
2816 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
2817 to here.
2818
d6c146e9
PA
28192015-02-06 Pedro Alves <palves@redhat.com>
2820
2821 * linux-thread-db.c (find_new_threads_callback): Add debug output.
2822
b9d61307
SM
28232015-02-06 Simon Marchi <simon.marchi@ericsson.com>
2824
2825 PR gdb/15678
2826 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
2827 (enable_count_command): Check args for NULL value.
2828
e9fbd043
DE
28292015-02-05 Doug Evans <xdje42@gmail.com>
2830
2831 * guile/scm-frame.c: Fix spelling errors in a comment.
2832
881d5d5d
JK
28332015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
2836 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
2837 return type.
2838
20ba1ce6
PA
28392015-02-04 Pedro Alves <palves@redhat.com>
2840
2841 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
2842 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
2843 returns true.
2844 (resume_stopped_resumed_lwps): Don't check whether the thread is
2845 marked as executing.
2846 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
2847
f962539a
AA
28482015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2849
2850 * regset.h (struct regset): Add flags field.
2851 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
2852 * corelow.c (get_core_register_section): Add warning if the size
2853 exceeds the requested size and the regset does not have the
2854 REGSET_VARIABLE_SIZE flag set.
2855 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
2856 flag.
2857 * armbsd-tdep.c (armbsd_gregset): Likewise.
2858 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2859 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
2860 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
2861 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
2862
dde9acd6
AA
28632015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2864
2865 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
2866 For ".reg-xstate", explicitly specify the requested section size
2867 via X86_XSTATE_SIZE instead of just 0 on input and
2868 X86_XSTATE_MAX_SIZE on output.
2869 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
2870 Likewise.
2871
1528345d
AA
28722015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2873
2874 PR corefiles/17808:
2875 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
2876 function type, particularly its SIZE parameter.
2877 * gdbarch.h: Regenerate.
2878 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
2879 actual against required size using ">=" instead of "==".
2880 (amd64_collect_fpregset): Likewise.
2881 * i386-tdep.c (i386_supply_gregset): Likewise.
2882 (i386_collect_gregset): Likewise.
2883 (i386_supply_fpregset): Likewise.
2884 (i386_collect_fpregset): Likewise.
2885 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
2886 (mips_fill_gregset_wrapper): Likewise.
2887 (mips_supply_fpregset_wrapper): Likewise.
2888 (mips_fill_fpregset_wrapper): Likewise.
2889 (mips64_supply_gregset_wrapper): Likewise.
2890 (mips64_fill_gregset_wrapper): Likewise.
2891 (mips64_supply_fpregset_wrapper): Likewise.
2892 (mips64_fill_fpregset_wrapper): Likewise.
2893 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
2894 (am33_supply_fpregset_method): Likewise.
2895 (am33_collect_gregset_method): Likewise.
2896 (am33_collect_fpregset_method): Likewise.
2897
518be979
DE
28982015-02-04 Doug Evans <dje@google.com>
2899 Pedro Alves <palves@redhat.com>
2900 Eli Zaretskii <eliz@gnu.org>
2901
2902 PR tui/17810
2903 * tui/tui-command.c (tui_refresh_cmd_win): New function.
2904 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
2905 * tui/tui-file.c: #include tui/tui-command.h.
2906 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
2907 (tui_file_flush): Refresh command window if stream is gdb_stdout.
2908 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
2909
80bd5fab
PA
29102015-02-04 Pedro Alves <palves@redhat.com>
2911
2912 Fix build breakage.
2913 * event-loop.c (gdb_do_one_event): Add default switch case.
2914
a7606d80
JK
29152015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 Filter out inferior gcc option -fpreprocessed.
2918 * compile/compile.c (filter_args): New function.
2919 (get_args): Use it.
2920
70b66289
PA
29212015-02-03 Pedro Alves <palves@redhat.com>
2922
2923 * event-loop.c: Don't declare nor define a queue type for
2924 gdb_event_p.
2925 (event_queue): Delete.
2926 (create_event, create_file_event, gdb_event_xfree)
2927 (initialize_event_loop, process_event): Delete.
2928 (gdb_do_one_event): Return as soon as one event is handled.
2929 (handle_file_event): Change prototype. Used the passed in
2930 file_handler pointer and ready_mask instead of looping over all
2931 file handlers.
2932 (gdb_wait_for_event): Update the poll/select timeouts before
2933 blocking. Run event handlers directly instead of queueing events.
2934 Return as soon as one event is handled.
2935 (struct async_event_handler_data): Delete.
2936 (invoke_async_event_handler): Delete.
2937 (check_async_event_handlers): Change return type to int. Run
2938 event handlers directly instead of queueing events. Return as
2939 soon as one event is handled.
2940 (handle_timer_event): Delete.
2941 (update_wait_timeout): New function, factored out from
2942 poll_timers.
2943 (poll_timers): Reimplement.
2944 * event-loop.h (initialize_event_loop): Delete declaration.
2945 * top.c (gdb_init): Don't call initialize_event_loop.
2946
b7d2e916
PA
29472015-02-03 Pedro Alves <palves@redhat.com>
2948
2949 * event-loop.c (clear_async_event_handler): New function.
2950 * event-loop.h (clear_async_event_handler): New declaration.
2951 * record-btrace.c (record_btrace_async): New function.
2952 (init_record_btrace_ops): Install record_btrace_async.
2953 * record-full.c (record_full_async): New function.
2954 (record_full_resume): Don't mark the async event source here.
2955 (init_record_full_ops): Install record_full_async.
2956 (record_full_core_resume): Don't mark the async event source here.
2957 (init_record_full_core_ops): Install record_full_async.
2958 * remote.c (remote_async): Mark and clear the async stop reply
2959 queue event-loop token as appropriate.
2960
d9d41e78
PA
29612015-02-03 Pedro Alves <palves@redhat.com>
2962
2963 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
2964 target_is_async_p instead of target_can_async.
2965 (linux_nat_wait): Use target_is_async_p instead of
2966 target_can_async. Don't enable async here.
2967 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
2968 target_is_async_p instead of target_can_async.
2969
aa3de267
SM
29702015-02-02 Simon Marchi <simon.marchi@ericsson.com>
2971
2972 * varobj.h (lang_varobj_ops): Mention which return values need
2973 to be freed.
2974
2c811c0f
JB
29752015-02-02 Joel Brobecker <brobecker@adacore.com>
2976
2977 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
2978
b1eedac9
JB
29792015-02-02 Joel Brobecker <brobecker@adacore.com>
2980
2981 PR gdb/17856:
2982 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
2983 results found in the cache.
2984
66c168ae
JB
29852015-02-02 Joel Brobecker <brobecker@adacore.com>
2986
2987 PR gdb/17854:
2988 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
2989 when allocating a new one.
2990
4bdc02b2
TT
29912015-02-01 Tom Tromey <tom@tromey.com>
2992
2993 * MAINTAINERS: Remove myself.
2994
ae6ae975
DE
29952015-01-31 Doug Evans <xdje42@gmail.com>
2996
2997 * dwarf2read.c (process_structure_scope): Update setting of
2998 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
2999 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3000 (set_type_vptr_fieldno): New function.
3001 (internal_type_vptr_basetype): New function.
3002 (set_type_vptr_basetype): New function.
3003 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3004 TYPE_VPTR_BASETYPE.
3005 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3006 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3007 (print_cplus_stuff): ... moved here.
3008 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3009 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3010 moved to ...
3011 (struct cplus_struct_type): ... here. All uses updated.
3012 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3013 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3014 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3015 * stabsread.c (read_tilde_fields): Update setting of
3016 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3017
09e2d7c7
DE
30182015-01-31 Doug Evans <xdje42@gmail.com>
3019
3020 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3021 to self_p.
3022 (cp_print_class_member): Rename local domain to self_type.
3023 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3024 domain_type to self_type.
3025 (set_die_type) <need_gnat_info>: Handle
3026 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3027 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3028 TYPE_SPECIFIC_SELF_TYPE.
3029 * gdbtypes.c (internal_type_self_type): New function.
3030 (set_type_self_type): New function.
3031 (smash_to_memberptr_type): Rename parameter domain to self_type.
3032 Update setting of TYPE_SELF_TYPE.
3033 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3034 (smash_to_method_type): Rename parameter domain to self_type.
3035 Update setting of TYPE_SELF_TYPE.
3036 (check_stub_method): Call smash_to_method_type.
3037 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3038 (copy_type_recursive): Ditto.
3039 * gdbtypes.h (enum type_specific_kind): New value
3040 TYPE_SPECIFIC_SELF_TYPE.
3041 (struct main_type) <type_specific>: New member self_type.
3042 (struct cplus_struct_type) <fn_field.type>: Update comment.
3043 (TYPE_SELF_TYPE): Rewrite.
3044 (internal_type_self_type, set_type_self_type): Declare.
3045 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3046 self_type.
3047 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3048 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3049 TYPE_TARGET_TYPE.
3050 * stabsread.c (read_member_functions): Mark methods with
3051 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3052 TYPE_SELF_TYPE.
3053
4bfb94b8
DE
30542015-01-31 Doug Evans <xdje42@gmail.com>
3055
3056 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3057 All uses updated.
3058
5f4ce105
DE
30592015-01-31 Doug Evans <xdje42@gmail.com>
3060
3061 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3062 or unions. Return zero if union.
3063 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3064 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3065 gnuv3_get_vtable.
3066 (compute_vtable_size): Assert only passed structs.
3067 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3068
f6b3afbf
DE
30692015-01-31 Doug Evans <xdje42@gmail.com>
3070
3071 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3072 kinds.
3073
cfb069a8
GB
30742015-01-31 Gary Benson <gbenson@redhat.com>
3075 Doug Evans <dje@google.com>
3076
3077 PR cli/9007
3078 PR cli/11920
3079 PR cli/15548
3080 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3081 reached.
3082 * common/common-exceptions.h (enum errors)
3083 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3084 * completer.h (get_max_completions_reached_message): New declaration.
3085 (max_completions): Likewise.
3086 (completion_tracker_t): New typedef.
3087 (new_completion_tracker): New declaration.
3088 (make_cleanup_free_completion_tracker): Likewise.
3089 (maybe_add_completion_enum): New enum.
3090 (maybe_add_completion): New declaration.
3091 (throw_max_completions_reached_error): Likewise.
3092 * completer.c (max_completions): New global variable.
3093 (new_completion_tracker): New function.
3094 (free_completion_tracker): Likewise.
3095 (make_cleanup_free_completion_tracker): Likewise.
3096 (maybe_add_completions): Likewise.
3097 (throw_max_completions_reached_error): Likewise.
3098 (complete_line): Remove duplicates and limit result to max_completions
3099 entries.
3100 (get_max_completions_reached_message): New function.
3101 (gdb_display_match_list): Handle max_completions.
3102 (_initialize_completer): New declaration and function.
3103 * symtab.c: Include completer.h.
3104 (completion_tracker): New static variable.
3105 (completion_list_add_name): Call maybe_add_completion.
3106 (default_make_symbol_completion_list_break_on_1): Renamed from
3107 default_make_symbol_completion_list_break_on. Maintain
3108 completion_tracker across calls to completion_list_add_name.
3109 (default_make_symbol_completion_list_break_on): New function.
3110 * top.c (init_main): Set rl_completion_display_matches_hook.
3111 * tui/tui-io.c: Include completer.h.
3112 (tui_old_rl_display_matches_hook): New static global.
3113 (tui_rl_display_match_list): Notify user if max-completions reached.
3114 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3115 * NEWS (New Options): Mention set/show max-completions.
3116
e11c72c7
GB
31172015-01-31 Gary Benson <gbenson@redhat.com>
3118
3119 * symtab.c (struct add_name_data) <code>: New field.
3120 Updated comments.
3121 (add_symtab_completions): New function.
3122 (symtab_expansion_callback): Likewise.
3123 (default_make_symbol_completion_list_break_on): Set datum.code.
3124 Move minimal symbol scan before calling expand_symtabs_matching.
3125 Scan known primary symtabs for externs and statics before calling
3126 expand_symtabs_matching. Pass symtab_expansion_callback as
3127 expansion_notify argument to expand_symtabs_matching. Do not scan
3128 primary symtabs for externs and statics after calling
3129 expand_symtabs_matching.
3130
276d885b
GB
31312015-01-31 Gary Benson <gbenson@redhat.com>
3132
3133 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3134 (struct quick_symbol_functions) <expand_symtabs_matching>:
3135 New argument expansion_notify. All uses updated.
3136 (expand_symtabs_matching): New argument expansion_notify.
3137 All uses updated.
3138 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3139 Also print expansion notify.
3140 * symtab.c (expand_symtabs_matching_via_partial): Call
3141 expansion_notify whenever a partial symbol table is expanded.
3142 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3143 expansion_notify whenever a symbol table is instantiated.
3144
82083d6d
DE
31452015-01-31 Doug Evans <xdje42@gmail.com>
3146
3147 * cli-out.c: #include completer.h, readline/readline.h.
3148 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3149 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3150 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3151 * cli-out.h (cli_display_match_list): Declare.
3152 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3153 (ELLIPSIS_LEN): Ditto.
3154 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3155 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3156 (gdb_fnprint, gdb_print_filename): Ditto.
3157 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3158 (gdb_display_match_list): Ditto.
3159 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3160 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3161 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3162 (match_list_displayer): New struct.
3163 (gdb_display_match_list): Declare.
3164 * top.c (init_main): Set rl_completion_display_matches_hook.
3165 * tui/tui-io.c: #include completer.h.
3166 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3167 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3168 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3169 (tui_mld_getc, tui_mld_read_key): Ditto.
3170 (tui_rl_display_match_list): Rewrite.
3171 (tui_handle_resize_during_io): New arg for_completion. All callers
3172 updated.
3173
f57d2163
DE
31742015-01-31 Doug Evans <xdje42@gmail.com>
3175
3176 Add symbol lookup cache.
3177 * NEWS: Document new options and commands.
3178 * symtab.c (symbol_cache_key): New static global.
3179 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3180 (SYMBOL_LOOKUP_FAILED): New macro.
3181 (symbol_cache_slot_state): New enum.
3182 (block_symbol_cache): New struct.
3183 (symbol_cache): New struct.
3184 (new_symbol_cache_size, symbol_cache_size): New static globals.
3185 (hash_symbol_entry, eq_symbol_entry): New functions.
3186 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3187 (make_symbol_cache, free_symbol_cache): New functions.
3188 (get_symbol_cache, symbol_cache_cleanup): New function.
3189 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3190 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3191 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3192 (symbol_cache_flush, symbol_cache_dump): New functions.
3193 (maintenance_print_symbol_cache): New function.
3194 (maintenance_flush_symbol_cache): New function.
3195 (symbol_cache_stats): New function.
3196 (maintenance_print_symbol_cache_statistics): New function.
3197 (symtab_new_objfile_observer): New function.
3198 (symtab_free_objfile_observer): New function.
3199 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3200 (_initialize_symtab): Init symbol_cache_key. New parameter
3201 maint symbol-cache-size. New maint commands print symbol-cache,
3202 print symbol-cache-statistics, flush-symbol-cache.
3203 Install new_objfile, free_objfile observers.
3204
e700d1b2
JB
32052015-01-31 Joel Brobecker <brobecker@adacore.com>
3206
3207 PR symtab/17855
3208 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3209 to end.
3210
9f050062
DE
32112015-01-31 Doug Evans <xdje42@gmail.com>
3212
3213 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3214 * auto-load.c: #include ctype.h.
3215 (struct auto_load_pspace_info): Replace member loaded_scripts with
3216 new members loaded_script_files, loaded_script_texts.
3217 (auto_load_pspace_data_cleanup): Update.
3218 (init_loaded_scripts_info): Update.
3219 (get_auto_load_pspace_data_for_loading): Update.
3220 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3221 updated.
3222 (maybe_add_script_text): New function.
3223 (clear_section_scripts): Update.
3224 (source_script_file, execute_script_contents): New functions.
3225 (source_section_scripts): Add support for
3226 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3227 (print_scripts): New function.
3228 (auto_load_info_scripts): Also print inlined scripts.
3229 (maybe_print_unsupported_script_warning): Renamed from
3230 unsupported_script_warning_print. All callers updated.
3231 (maybe_print_script_not_found_warning): Renamed from
3232 script_not_found_warning_print. All callers updated.
3233 * extension-priv.h (struct extension_language_script_ops): New member
3234 objfile_script_executor.
3235 * extension.c (ext_lang_objfile_script_executor): New function.
3236 * extension.h (objfile_script_executor_func): New typedef.
3237 (ext_lang_objfile_script_executor): Declare.
3238 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3239 * guile/guile.c (guile_extension_script_ops): Update.
3240 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3241 * python/python.c (python_extension_script_ops): Update.
3242 (gdbpy_execute_objfile_script): New function.
3243
312809f8
EZ
32442015-01-31 Eli Zaretskii <eliz@gnu.org>
3245
3246 * tui/tui-io.c (tui_expand_tabs): New function.
3247 (tui_puts, tui_redisplay_readline): Expand TABs into the
3248 appropriate number of spaces.
3249 * tui/tui-regs.c: Include tui-io.h.
3250 (tui_register_format): Call tui_expand_tabs to expand TABs into
3251 the appropriate number of spaces.
3252 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3253
b6577aab
DE
32542015-01-30 Doug Evans <dje@google.com>
3255
3256 * NEWS: "info source" command now display producer string if present.
3257 * source.c (source_info): Print producer string if present.
3258
6da58d3e
SM
32592015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3260
3261 * varobj.c (varobj_delete): Fix comment.
3262
837ce252
SM
32632015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3264
3265 * varobj.c (create_child): Modify comment.
3266
b09e2c59
SM
32672015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3268
3269 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3270 parameter.
3271 (ada_name_of_variable): Same.
3272 (ada_path_expr_of_child): Same.
3273 (ada_value_of_variable): Same.
3274 (ada_value_is_changeable_p): Same.
3275 (ada_value_has_mutated): Same.
3276 * c-varobj.c (varobj_is_anonymous_child): Same.
3277 (c_is_path_expr_parent): Same.
3278 (c_number_of_children): Same.
3279 (c_name_of_variable): Same.
3280 (c_path_expr_of_child): Same.
3281 (get_type): Same.
3282 (c_value_of_variable): Same.
3283 (cplus_number_of_children): Same.
3284 (cplus_name_of_variable): Same.
3285 (cplus_path_expr_of_child): Same.
3286 (cplus_value_of_variable): Same.
3287 * jv-varobj.c (java_number_of_children): Same.
3288 (java_name_of_variable): Same.
3289 (java_path_expr_of_child): Same.
3290 (java_value_of_variable): Same.
3291 * varobj.c (number_of_children): Same.
3292 (name_of_variable): Same.
3293 (is_root_p): Same.
3294 (varobj_ensure_python_env): Same.
3295 (varobj_get_objname): Same.
3296 (varobj_get_expression): Same.
3297 (varobj_get_display_format): Same.
3298 (varobj_get_display_hint): Same.
3299 (varobj_has_more): Same.
3300 (varobj_get_thread_id): Same.
3301 (varobj_get_frozen): Same.
3302 (dynamic_varobj_has_child_method): Same.
3303 (varobj_get_gdb_type): Same.
3304 (is_path_expr_parent): Same.
3305 (varobj_default_is_path_expr_parent): Same.
3306 (varobj_get_language): Same.
3307 (varobj_get_attributes): Same.
3308 (varobj_is_dynamic_p): Same.
3309 (varobj_get_child_range): Same.
3310 (varobj_value_has_mutated): Same.
3311 (varobj_get_value_type): Same.
3312 (number_of_children): Same.
3313 (name_of_variable): Same.
3314 (check_scope): Same.
3315 (varobj_editable_p): Same.
3316 (varobj_value_is_changeable_p): Same.
3317 (varobj_floating_p): Same.
3318 (varobj_default_value_is_changeable_p): Same.
3319
2568868e
SM
33202015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3321
3322 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3323 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3324 child->path_expr.
3325 (cplus_path_expr_of_child): Same.
3326
ca83fa81
SM
33272015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3328
3329 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3330 result.
3331 (mi_cmd_var_info_expression): Same.
3332 * varobj.c (varobj_get_expression): Mention in the comment that
3333 the result must by freed by the caller.
3334
afa269ae
SM
33352015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3336
3337 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3338 varobj_get_type.
3339 (varobj_update_one): Same.
3340 * varobj.c (update_type_if_necessary): Free curr_type_str and
3341 new_type_str.
3342 (varobj_get_type): Specify in comment that the result needs to be
3343 freed by the caller.
3344
cd366ee8
DE
33452015-01-29 Doug Evans <dje@google.com>
3346
3347 PR symtab/17890
3348 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3349
38360086
MW
33502015-01-25 Mark Wielaard <mjw@redhat.com>
3351
3352 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3353 * utils.c (producer_is_gcc_ge_4): Likewise.
3354 (producer_is_gcc): New function.
3355 * utils.h (producer_is_gcc): New declaration.
3356
df25ebbd
JB
33572015-01-29 Joel Brobecker <brobecker@adacore.com>
3358
3359 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3360 kind.
3361 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3362 parameter by "addr_stack" parameter.
3363 (resolve_dynamic_range): Replace "addr" parameter by
3364 "stack_addr" parameter. Update function documentation.
3365 Update code accordingly.
3366 (resolve_dynamic_array, resolve_dynamic_union)
3367 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3368 (resolve_dynamic_type): Update code, following the changes made
3369 to resolve_dynamic_type_internal's interface.
3370 * dwarf2loc.h (struct property_addr_info): New.
3371 (dwarf2_evaluate_property): Replace "address" parameter
3372 by "addr_stack" parameter. Adjust function documentation.
3373 (struct dwarf2_offset_baton): New.
3374 (struct dwarf2_property_baton): Update documentation of
3375 field "referenced_type" to be more general. New field
3376 "offset_info" in union data field.
3377 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3378 parameter by "addr_stack" parameter. Adjust code accordingly.
3379 Add support for PROP_ADDR_OFFSET properties.
3380 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3381 DW_AT_data_member_location attributes as well. Use case
3382 statements instead of if/else condition.
3383
4a0ca9ec
JB
33842015-01-29 Joel Brobecker <brobecker@adacore.com>
3385
3386 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3387 Return zero if PARENT_VALUE is NULL and parent_type's
3388 range type is dynamic.
3389
ddb87a81
JB
33902015-01-29 Joel Brobecker <brobecker@adacore.com>
3391
3392 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3393 nonzero if the type's subtype is dynamic.
3394 (resolve_dynamic_range): Also resolve the range's subtype.
3395
3d7ad9b4 33962015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 3397
3d7ad9b4 3398 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
3399 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3400
3a8b707a
DE
34012015-01-27 Doug Evans <dje@google.com>
3402
3403 * NEWS: Mention gdb.Objfile.username.
3404 * python/py-objfile.c (objfpy_get_username): New function.
3405 (objfile_getset): Add "username".
3406
d35b90fb
MW
34072015-01-24 Mark Wielaard <mjw@redhat.com>
3408
3409 * stack.c (return_command): Markup warning message with _.
3410
734ae125
DE
34112015-01-24 Doug Evans <xdje42@gmail.com>
3412
3413 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3414
527f3840
JK
34152015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 Fix 100x slowdown regression on DWZ files.
3418 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3419 (struct line_header): Add offset and offset_in_dwz.
3420 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3421 (free_line_header_voidp): New declaration.
3422 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3423 functions.
3424 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3425 (handle_DW_AT_stmt_list): Use line_header_hash.
3426 (free_line_header_voidp): New function.
3427 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3428 (dwarf_decode_lines): New parameter decode_mapping, use it.
3429 (dwarf2_free_objfile): Free line_header_hash.
3430
f7e5394d
SM
34312015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3432
3433 PR gdb/17416
3434 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3435 value_ind.
3436
743649fd
MW
34372015-01-15 Mark Wielaard <mjw@redhat.com>
3438
3439 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3440 DW_AT_noreturn.
3441 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3442 calling_convention an 8 bit bit field.
3443 (TYPE_NO_RETURN): New macro.
3444 * infcmd.c (finish_command): Query if function does not return
3445 normally.
3446 * stack.c (return_command): Likewise.
3447
198297aa
PA
34482015-01-23 Pedro Alves <palves@redhat.com>
3449
3450 * linux-nat.c (linux_is_async_p): New macro.
3451 (linux_nat_is_async_p):
3452 (linux_nat_terminal_inferior): Check whether the target can async
3453 instead of whether it is already async.
3454 (linux_nat_terminal_ours): Don't check whether the target is
3455 async.
3456 (linux_async_pipe): Use linux_is_async_p.
3457
253828f1
JK
34582015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3461 '-ascending'.
3462 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3463 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3464 Sort tp_array using tp_array_compar.
3465 (_initialize_thread): Extend thread_apply_all_command help.
3466
f0e8c4c5
JK
34672015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3468
3469 * corelow.c (core_open): Call also thread_command.
3470 * gdbthread.h (thread_command): New prototype moved from ...
3471 * thread.c (thread_command): ... here.
3472 (thread_command): Make it global.
3473
03b79603
PA
34742015-01-22 Pedro Alves <palves@redhat.com>
3475
3476 * configure.ac [*mingw32*]: Check $curses_found instead of
3477 $prefer_curses.
3478 * configure: Regenerate.
3479 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3480 HAVE_NCURSES_NCURSES_H checks.
3481
6b8a872f
EZ
34822015-01-22 Eli Zaretskii <eliz@gnu.org>
3483
bbbbffbb 3484 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
3485 fails with the 1st arg NULL, try again with "unknown". Don't test
3486 the "cup" capability: it isn't supported by the Windows port of
3487 ncurses, but the Windows console driver is still capable of
3488 supporting TUI.
3489
4b62a76e
JK
34902015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3491
3492 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3493
82a864f9
EZ
34942015-01-22 Eli Zaretskii <eliz@gnu.org>
3495
3496 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3497 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3498 reason that "make TAGS" is broken.
3499
b35018fd
CG
35002015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3501
3502 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3503 and check additional store instructions.
3504
ffbc4646
WW
35052015-01-21 Wei-cheng Wang <cole945@gmail.com>
3506
3507 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3508
ddeca1df
WW
35092015-01-21 Wei-cheng Wang <cole945@gmail.com>
3510
3511 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3512 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3513 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3514 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3515 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3516 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3517 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3518 ppc_process_record_op19, ppc_process_record_op31,
3519 ppc_process_record_op59, ppc_process_record_op60,
3520 ppc_process_record_op63): Likewise.
3521
049bb5de
JB
35222015-01-20 Joel Brobecker <brobecker@adacore.com>
3523
3524 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3525 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3526 strerror.
3527
42b87c63 35282015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
3529
3530 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3531 ppc_process_record_op31, ppc_process_record_op59,
3532 ppc_process_record_op60, ppc_process_record_op63,
3533 ppc_process_record): Fix -Wformat warning.
3534 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3535 Remove unused variables.
3536
569340fc
CG
35372015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3538
3539 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3540
63413d85
EZ
35412015-01-19 Eli Zaretskii <eliz@gnu.org>
3542
3543 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3544 CONFIG_OBS if not building with a curses library.
3545 * configure: Regenerate.
3546
3547 * windows-termcap.c: Include defs.h. Make the whole body empty if
3548 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3549 HAVE_NCURSES_NCURSES_H is defined.
3550
16d8013c
JB
35512015-01-19 Joel Brobecker <brobecker@adacore.com>
3552
3553 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3554 from end of line to start of next line.
3555
cf90fd9a
WW
35562015-01-17 Wei-cheng Wang <cole945@gmail.com>
3557
3558 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3559 Scan PLT stub backward for reverse debugging.
3560 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3561
b4cdae6f
WW
35622015-01-17 Wei-cheng Wang <cole945@gmail.com>
3563 Ulrich Weigand <uweigand@de.ibm.com>
3564
3565 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3566 gdb_target_obs.
3567 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3568 record.
3569 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3570 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3571 (ppc_linux_init_abi): Set process_record, process_record_signal.
3572 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3573 ppc_linux_record_tdep to gdbarch_tdep.
3574 (ppc_process_record): New declaration.
3575 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3576 ppc_process_record_op19, ppc_process_record_op31,
3577 ppc_process_record_op59, ppc_process_record_op60,
3578 ppc_process_record_op63, ppc_process_record): New functions.
3579
2608dbf8
WW
35802015-01-17 Wei-cheng Wang <cole945@gmail.com>
3581
3582 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3583 rs6000_in_function_epilogue_frame_p and add an argument
3584 for frame_info.
3585 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3586 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3587 New functions.
3588 (rs6000_epilogue_frame_unwind): New.
3589 (rs6000_gdbarch_init): Append epilogue unwinder.
3590
4c347be6
SDJ
35912015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3592
3593 * nat/linux-personality.c: Replace "#ifndef
3594 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3595 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3596 systems.
3597
9f2850ba
EZ
35982015-01-16 Eli Zaretskii <eliz@gnu.org>
3599
6cdb25f4
EZ
3600 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3601 functions.
3602 (_initialize_tui_win) <border-kind, border-mode>:
3603 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
3604 (tui_set_tab_width_command): Fix the commentary.
3605
6cdb25f4
EZ
3606 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3607
bf555842
EZ
3608 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3609 Doc fix.
cb86fcc1
EZ
3610 (tui_set_tab_width_command): Delete and recreate the source and
3611 the disassembly windows, to show the effect of the changed tab
3612 size immediately.
bf555842 3613
9f2850ba
EZ
3614 * tui/tui-data.h (LINE_PREFIX): Make shorter
3615 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3616 "Thread NNNNN.XXXX" thread ID notation on Windows.
3617
95761b2d
JK
36182015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 Fix gcc-5 compilation.
3621 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3622
8cc73a39
SDJ
36232015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3624
3625 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3626 (linux-personality.o): New rule.
3627 * common/common-defs.h: Include <stdint.h>.
3628 * config/aarch64/linux.mh (NATDEPFILES): Include
3629 linux-personality.o.
3630 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3631 * config/arm/linux.mh (NATDEPFILES): Likewise.
3632 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3633 * config/i386/linux.mh (NATDEPFILES): Likewise.
3634 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3635 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3636 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3637 * config/mips/linux.mh (NATDEPFILES): Likewise.
3638 * config/pa/linux.mh (NATDEPFILES): Likewise.
3639 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3640 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3641 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3642 * config/s390/linux.mh (NATDEPFILES): Likewise.
3643 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3644 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3645 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3646 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3647 * defs.h: Remove #include <stdint.h> (moved to
3648 common/common-defs.h).
3649 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3650 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3651 nat/linux-personality.c).
3652 (linux_nat_create_inferior): Remove code to disable address space
3653 randomization (moved to nat/linux-personality.c). Create cleanup
3654 to disable address space randomization.
3655 * nat/linux-personality.c: New file.
3656 * nat/linux-personality.h: Likewise.
3657
fb23d554
SDJ
36582015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3659
3660 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3661 common/posix-strerror.c.
3662 (posix-strerror.o): New rule.
3663 (mingw-strerror.o): Likewise.
3664 * common/common-utils.h (safe_strerror): Move prototype to here,
3665 from utils.h.
3666 * common/common.host: New file.
3667 * common/mingw-strerror.c: Likewise.
3668 * common/posix-strerror.c: Likewise.
3669 * configure: Regenerated.
3670 * configure.ac: Source common/common.host. Add variable
3671 common_host_obs to gdb_host_obs.
3672 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3673 gdb/common/posix-strerror.c when warning about the use of
3674 strerror.
3675 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3676 common/mingw-strerror.c.
3677 * posix-hdep.c (safe_strerror): Remove definition; move it to
3678 common/posix-hdep.c.
3679 * utils.h (safe_strerror): Remove prototype; move to
3680 common/common-utils.h.
3681
3af8af43
JB
36822015-01-15 Joel Brobecker <brobecker@adacore.com>
3683
3684 GDB 7.8.2 released.
3685
bafffb51
JB
36862015-01-15 Joel Brobecker <brobecker@adacore.com>
3687
3688 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3689 ___XA type if the array has already been fixed.
3690
cdf43629
YQ
36912015-01-14 Yao Qi <yao@codesourcery.com>
3692
3693 * Makefile.in (ppc-linux.o): New rule.
3694 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3695 * configure.ac: AC_CHECK_FUNCS(getauxval).
3696 * config.in: Re-generated.
3697 * configure: Re-generated.
3698 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3699 Declare.
3700 * nat/ppc-linux.c: New file.
3701 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3702 Call ppc64_64bit_inferior_p.
3703
514c5338
YQ
37042015-01-14 Yao Qi <yao@codesourcery.com>
3705
3706 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3707 nat/ppc-linux.h.
3708 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3709 (PPC_FEATURE_HAS_DFP): Likewise.
3710 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3711 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3712 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3713 Include "nat/ppc-linux.h".
3714 * nat/ppc-linux.h: New file.
3715 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3716
5589af0e
PA
37172015-01-14 Pedro Alves <palves@redhat.com>
3718
3719 PR gdb/17525
3720 * breakpoint.c: Include "interps.h".
3721 (bpstat_do_actions_1): Also check whether the interpreter is
3722 async.
3723
6c400b59
PA
37242015-01-14 Pedro Alves <palves@redhat.com>
3725
3726 PR cli/17828
3727 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
3728 reinstall if the interpreter is sync.
3729
e02c96a7
DE
37302015-01-13 Doug Evans <dje@google.com>
3731
3732 * objfiles.c (objfile_filename): New function.
3733 * objfiles.h (objfile_filename): Declare it.
3734 (objfile_name): Add function comment.
3735 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
3736 bfd file name (which may be realpath'd), and the original name.
3737
3b2f13ff
JB
37382015-01-13 Joel Brobecker <brobecker@adacore.com>
3739
3740 * NEWS: Create a new section for the next release branch.
3741 Rename the section of the current branch, now that it has
3742 been cut.
3743
b4cfe7f8
JB
37442015-01-13 Joel Brobecker <brobecker@adacore.com>
3745
3746 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
3747 * version.in: Bump version to 7.9.50.DATE-cvs.
3748
92fc2e69
JB
37492015-01-13 Joel Brobecker <brobecker@adacore.com>
3750
3751 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
3752 Remove trailing new-line in argument of call to warning.
3753
f71f0b0d
JB
37542015-01-13 Joel Brobecker <brobecker@adacore.com>
3755
3756 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
3757 new-line in argument of call to "warning".
3758
04dccad0
JB
37592015-01-13 Joel Brobecker <brobecker@adacore.com>
3760
3761 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
3762 in static block, then try searching for primitive types.
3763
08b13bdd
PP
37642015-01-12 Patrick Palka <patrick@parcs.ath.cx>
3765
3766 * top.h (gdb_add_history): Declare.
3767 * top.c (command_count): New variable.
3768 (gdb_add_history): New function.
3769 (gdb_safe_append_history): New static function.
3770 (quit_force): Call it.
3771 (command_line_input): Use gdb_add_history instead of
3772 add_history.
3773 * event-top.c (command_line_handler): Likewise.
3774
4ac15b59
JC
37752015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
3776
3777 PR gdb/17046
3778 * darwin-nat.c: Replace <machine/setjmp.h> #include by
3779 <setjmp.h> #include.
3780
005e54bb
DE
37812015-01-11 Doug Evans <xdje42@gmail.com>
3782
3783 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
3784
439250fb
DE
37852015-01-11 Doug Evans <xdje42@gmail.com>
3786
3787 PR gdb/15830
3788 * NEWS: The "maint demangle" command is renamed as "demangle".
3789 * demangle.c: #include cli/cli-utils.h, language.h.
3790 (demangle_command): New function.
3791 (_initialize_demangle): Add new command "demangle".
3792 * maint.c (maintenance_demangle): Stub out.
3793 (_initialize_maint_cmds): Update help text for "maint demangle",
3794 and mark as deprecated.
3795
ebf3aa72
MK
37962015-01-11 Mark Kettenis <kettenis@gnu.org>
3797
3798 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
3799 inferior_thread is a function.
3800
6bf045cd
PP
38012015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3802
3803 * Makefile.in (.y.c): Don't munge yacc's #line
3804 directives.
3805
588dcc3e
PP
38062015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3807
3808 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
3809 to prompt for input.
3810 * tui/tui-hooks.c (tui_query_hook): Remove.
3811 (tui_install_hooks): Don't set deprecated_query_hook.
3812 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
3813 height calculation. Always update the command window's cur_line.
3814
9c02b525
PA
38152015-01-09 Pedro Alves <palves@redhat.com>
3816
3817 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
3818 function.
3819 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
3820 declaration.
3821 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
3822 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
3823 stop_reason.
3824 (check_stopped_by_watchpoint): New function.
3825 (save_sigtrap): Reimplement.
3826 (linux_nat_stopped_by_watchpoint): Adjust.
3827 (linux_nat_lp_status_is_event): Delete.
3828 (stop_wait_callback): Only call save_sigtrap after storing the
3829 pending status.
3830 (status_callback): If the thread had been stopped for a breakpoint
3831 that has since been removed, discard the event and resume the LWP.
3832 (count_events_callback, select_event_lwp_callback): Use
3833 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
3834 (cancel_breakpoint): Rename to ...
3835 (check_stopped_by_breakpoint): ... this. Record whether the LWP
3836 stopped for a software breakpoint or hardware breakpoint.
3837 (select_event_lwp): Only give preference to the stepping LWP in
3838 all-stop mode. Adjust comments.
3839 (stop_and_resume_callback): Remove references to new_pending_p.
3840 (linux_nat_filter_event): Likewise. Leave exit events of the
3841 leader thread pending here. Handle signal short circuiting here.
3842 Only call save_sigtrap after storing the pending waitstatus.
3843 (linux_nat_wait_1): Remove 'retry' label. Remove references to
3844 new_pending. Don't handle leaving events the caller is not
3845 interested in pending here, nor handle signal short-circuiting
3846 here. Also give equal priority to all LWPs that have had events
3847 in non-stop mode. If reporting a software breakpoint event,
3848 unadjust the LWP's PC.
3849 * linux-nat.h (enum lwp_stop_reason): New.
3850 (struct lwp_info) <stop_pc>: New field.
3851 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
3852 (struct lwp_info) <stop_reason>: New field.
3853 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3854
8af756ef
PA
38552015-01-09 Pedro Alves <palves@redhat.com>
3856
3857 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
3858 Set the LWP's 'resumed' flag.
3859
8a99810d
PA
38602015-01-09 Pedro Alves <palves@redhat.com>
3861
3862 * linux-nat.c (linux_resume_one_lwp): New function.
3863 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
3864 (linux_nat_resume): Use lwp_status_pending_p and
3865 linux_resume_one_lwp.
3866 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
3867 (linux_handle_extended_wait): Use linux_resume_one_lwp.
3868 (status_callback, running_callback): Use lwp_status_pending_p.
3869 (lwp_status_pending_p): New function.
3870 (stop_and_resume_callback): Use lwp_status_pending_p.
3871 (linux_nat_filter_event): Use linux_resume_one_lwp.
3872 (linux_nat_wait_1): Always use status_callback to look for an LWP
3873 with a pending status. Use linux_resume_one_lwp.
3874 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
3875 linux_resume_one_lwp.
3876
f7ce857f
PA
38772015-01-09 Pedro Alves <palves@redhat.com>
3878
3879 * breakpoint.c (bp_location_inserted_here_p): New function,
3880 factored out from ...
3881 (breakpoint_inserted_here_p): ... here. Use
3882 ALL_BP_LOCATIONS_AT_ADDR.
3883 (software_breakpoint_inserted_here_p): Use
3884 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
3885
c1a747c1
PA
38862014-01-09 Pedro Alves <palves@redhat.com>
3887
3888 Skip enabling event reporting if the kernel supports
3889 PTRACE_EVENT_CLONE.
3890 * linux-thread-db.c: Include "nat/linux-ptrace.h".
3891 (thread_db_use_events): New function.
3892 (try_thread_db_load_1): Check thread_db_use_events before enabling
3893 event reporting.
3894 (update_thread_state): New function.
3895 (attach_thread): Use it. Check thread_db_use_events before
3896 enabling event reporting.
3897 (thread_db_detach): Check thread_db_use_events before disabling
3898 event reporting.
3899 (find_new_threads_callback): Check thread_db_use_events before
3900 enabling event reporting. Update the thread's state if not using
3901 libthread_db events.
3902
a33e3959
PA
39032015-01-09 Pedro Alves <palves@redhat.com>
3904
3905 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
3906 about to wait for is > 0.
3907 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
3908 the kernel thread ID is -1.
3909
8784d563
PA
39102015-01-09 Pedro Alves <palves@redhat.com>
3911
3912 * linux-nat.c (attach_proc_task_lwp_callback): New function.
3913 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
3914 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
3915 ptrace option flags.
3916 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
3917 field.
3918 * nat/linux-procfs.c: Include <dirent.h>.
3919 (linux_proc_get_int): New parameter "warn". Handle it.
3920 (linux_proc_get_tgid): Adjust.
3921 (linux_proc_get_tracerpid): Rename to ...
3922 (linux_proc_get_tracerpid_nowarn): ... this.
3923 (linux_proc_pid_get_state): New function, factored out from
3924 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
3925 and handle it.
3926 (linux_proc_pid_is_gone): New function.
3927 (linux_proc_pid_is_stopped): Adjust.
3928 (linux_proc_pid_is_zombie_maybe_warn)
3929 (linux_proc_pid_is_zombie_nowarn): New functions.
3930 (linux_proc_pid_is_zombie): Use
3931 linux_proc_pid_is_zombie_maybe_warn.
3932 (linux_proc_attach_tgid_threads): New function.
3933 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
3934 (linux_proc_get_tracerpid): Rename to ...
3935 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
3936 (linux_proc_pid_is_gone): New declaration.
3937 (linux_proc_pid_is_zombie): Update comment.
3938 (linux_proc_pid_is_zombie_nowarn): New declaration.
3939 (linux_proc_attach_lwp_func): New typedef.
3940 (linux_proc_attach_tgid_threads): New declaration.
3941 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
3942 use nowarn functions.
3943 (linux_ptrace_attach_fail_reason_string): Move here from
3944 gdbserver/linux-low.c and rename.
3945 (ptrace_supports_feature): If the current ptrace options are not
3946 known yet, check them now, instead of asserting.
3947 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
3948 Declare.
3949
883ed13e
PA
39502015-01-09 Pedro Alves <palves@redhat.com>
3951
3952 * linux-thread-db.c (thread_db_find_new_threads_silently)
3953 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
3954 (find_new_threads_once): Print debug output on gdb_stdlog.
3955
1710aab8
CG
39562015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
3957 Pedro Alves <palves@redhat.com>
3958
3959 * compile/compile.c: Include "gdb_wait.h".
3960 (do_rmdir): Check return value, and free 'zap'.
3961
b597c318
YQ
39622015-01-08 Pedro Alves <palves@redhat.com>
3963 Yao Qi <yao@codesourcery.com>
3964
3965 * dwarf2loc.c (indirect_pieced_value): Don't call
3966 gdb_sign_extend. Call extract_signed_integer instead.
3967 * utils.c (gdb_sign_extend): Remove.
3968 * utils.h (gdb_sign_extend): Remove declaration.
3969
025ac414
PM
39702015-01-07 Pierre Muller <muller@sourceware.org>
3971
3972 PR symtab/17811
3973 * stabsread.c (define_symbol): Set language for C++ special symbols.
3974
fa5af12a
PP
39752015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3976
3977 * inflow.c (initial_gdb_ttystate): Tweak comment.
3978
ea42d6f8
JB
39792015-01-07 Joel Brobecker <brobecker@adacore.com>
3980
3981 * inflow.c (set_initial_gdb_ttystate): Add empty line after
3982 comment documenting function.
3983
6a06d660
PP
39842015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3985
3986 * terminal.h (set_initial_gdb_ttystate): Declare.
3987 * inflow.c (initial_gdb_ttystate): New static variable.
3988 (set_initial_gdb_ttystate): New setter.
3989 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
3990 instead of our current terminal state.
3991 * top.c (gdb_init): Call set_initial_gdb_ttystate.
3992
e810d75b
JB
39932015-01-07 Joel Brobecker <brobecker@adacore.com>
3994
3995 * guile/scm-type.c (tyscm_array_1): Add comment.
3996 * python/py-type.c (typy_array_1): Add comment.
3997
fce10a84
JB
39982015-01-06 Joel Brobecker <brobecker@adacore.com>
3999
4000 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4001 error if N2 is equal to N1 - 1.
4002
8503d6e1
JB
40032015-01-06 Joel Brobecker <brobecker@adacore.com>
4004
4005 * python/py-type.c (typy_array_1): Do not raise negative-length
4006 exception if N2 is equal to N1 - 1.
4007
4d29c0a8
DE
40082015-01-03 Doug Evans <xdje42@gmail.com>
4009
4010 * c-exp.y: Whitespace cleanup.
4011 (classify_inner_name): Remove extra ;.
4012
eaa6a9a4
MR
40132015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4014
4015 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4016 offset signed.
4017
02fe9972
DE
40182015-01-02 Doug Evans <dje@google.com>
4019
4020 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4021
e2ada9cb
DE
40222015-01-02 Doug Evans <dje@google.com>
4023
4024 * symtab.h (struct symbol): Fix typo in comment.
4025
32d0add0
JB
40262015-01-01 Joel Brobecker <brobecker@adacore.com>
4027
4028 Update year range in copyright notice of all files.
4029
76f2b779
JB
40302015-01-01 Joel Brobecker <brobecker@adacore.com>
4031
4032 * top.c (print_gdb_version): Update copyright year to 2015.
4033
077309e2 40342015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 4035
077309e2 4036 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 4037
077309e2 4038For older changes see ChangeLog-2014.
c906108c
SS
4039\f
4040Local Variables:
4041mode: change-log
4042left-margin: 8
4043fill-column: 74
4044version-control: never
57da7796 4045coding: utf-8
c906108c 4046End:
This page took 1.969381 seconds and 4 git commands to generate.