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