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