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