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