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