1 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
4 * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
5 address in 64-bit mode.
7 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
10 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
11 address to 64-bit in 64-bit mode.
13 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
16 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
18 (amd64_x32_linux_record_tdep): New.
19 (amd64_linux_syscall_record_common): New function.
20 (amd64_linux_syscall_record): Call
21 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
22 (amd64_x32_linux_syscall_record): Call
23 amd64_linux_syscall_record_common with
24 amd64_x32_linux_record_tdep.
25 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
26 initialization and tdep->i386_syscall_record setup to ...
27 (amd64_linux_init_abi): Here.
28 (amd64_x32_linux_init_abi): Initialize
29 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
30 amd64_x32_linux_syscall_record.
31 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
33 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
35 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
36 argument prefixes and suffixes. Initialize gdbarch with them.
37 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
38 * gdbarch.c: Regenerate.
39 * gdbarch.h: Regenerate.
40 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
41 (stap_register_prefix, stap_register_suffix)
42 (stap_register_indirection_prefix)
43 (stap_register_indirection_suffix): Declare as "const char *const
44 *" instead of "const char *". Adjust printing function. Rename
45 all of the variables to the plural.
46 (pstring_list): New function.
47 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
48 argument prefixes and suffixes. Initialize gdbarch with them.
49 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
50 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
51 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
52 * stap-probe.c (stap_is_generic_prefix): New function.
53 (stap_is_register_prefix): Likewise.
54 (stap_is_register_indirection_prefix): Likewise.
55 (stap_is_integer_prefix): Likewise.
56 (stap_generic_check_suffix): Likewise.
57 (stap_check_integer_suffix): Likewise.
58 (stap_check_register_suffix): Likewise.
59 (stap_check_register_indirection_suffix): Likewise.
60 (stap_parse_register_operand): Remove unecessary declarations for
61 variables holding prefix and suffix information. Use the new
62 functions listed above for checking for prefixes and suffixes.
63 (stap_parse_single_operand): Likewise.
65 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
68 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
69 when expected syscall is hit.
71 2013-12-19 Tom Tromey <tromey@redhat.com>
73 * ser-unix.c (hardwire_ops): New global.
74 (_initialize_ser_hardwire): Use it.
75 * ser-tcp.c (tcp_ops): New global.
76 (_initialize_ser_tcp): Use it.
77 * ser-pipe.c (pipe_ops): New global.
78 (_initialize_ser_pipe): Use it.
79 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
81 (_initialize_ser_windows): Use them.
83 2013-12-19 Tom Tromey <tromey@redhat.com>
85 * serial.c (serial_ops_p): New typedef.
86 (serial_ops_list): Now a VEC.
87 (serial_interface_lookup): Return const. Use VEC_iterate.
88 (serial_add_interface): Make parameter const.
89 (serial_open): Update.
90 (serial_fdopen_ops): Make 'ops' const.
91 (serial_pipe): Update.
92 * ser-tcp.c (_initialize_ser_tcp): Update.
93 * ser-pipe.c (_initialize_ser_pipe): Update.
94 * ser-unix.c (_initialize_ser_hardwire): Update.
95 * ser-mingw.c (_initialize_ser_windows): Update.
96 * ser-go32.c (dos_ops): Now const. Update.
97 * serial.h (struct serial) <ops>: Now const.
98 (struct serial_ops) <next>: Remove.
99 (serial_add_interface): Make parameter const.
101 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
103 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
104 iov.iov_len with the real length in use.
106 2013-12-18 Yao Qi <yao@codesourcery.com>
108 * target.h (target_xfer_partial_ftype): New typedef.
109 (target_xfer_partial): Update declaration.
110 * auxv.h (memory_xfer_auxv): Likewise.
111 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
112 * ia64-linux-nat.c (super_xfer_partial): Likewise.
113 * linux-nat.c (super_xfer_partial): Likewise.
114 * procfs.c (procfs_xfer_partial): Likewise.
115 * record-full.c (record_full_beneath_to_xfer_partial):
116 (tmp_to_xfer_partial): Likewise.
117 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
118 * target.c (default_xfer_partial): Likewise.
119 (current_xfer_partial): Likewise.
120 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
122 2013-12-18 Yao Qi <yao@codesourcery.com>
124 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
126 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
127 (linux_proc_pending_signals): Likewise.
129 2013-12-18 Joel Brobecker <brobecker@adacore.com>
131 * value.c (value_entirely_unavailable): ARI fix: Move trailing
132 binary operator to the next line. No actual code change.
134 2013-12-17 Pedro Alves <palves@redhat.com>
136 * frame.h (enum frame_id_stack_status): New enum.
137 (struct frame_id) <stack_addr>: Adjust comment.
138 <stack_addr_p>: Delete field, replaced with ...
139 <stack_status>: ... this new field.
140 (frame_id_build_unavailable_stack): Declare.
141 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
142 (frame_id_build_special): Adjust.
143 (frame_id_build_unavailable_stack): New function.
144 (frame_id_build, frame_id_build_wild): Adjust.
145 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
146 account frames with unavailable stack.
148 * amd64-tdep.c (amd64_frame_this_id)
149 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
150 frame_id_build_unavailable_stack.
151 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
152 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
153 (i386_sigtramp_frame_this_id): Likewise.
155 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
157 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
158 unavailable, use correct bit length.
159 * value.c (struct value): Extend comment on unavailable to
160 indicate that it is bit based.
161 (value_bits_available): New function.
162 (value_bytes_available): Call value_bits_available.
163 (value_entirely_available): Check against the bit length, not byte
165 (mark_value_bits_unavailable): New function.
166 (mark_value_bytes_unavailable): Move contents to
167 mark_value_bits_unavailable, call to same.
168 (memcmp_with_bit_offsets): New function.
169 (value_available_contents_bits_eq): New function, takes the
170 functionality from value_available_contents_eq but uses
171 memcmp_with_bit_offsets now, and is bit not byte based.
172 (value_available_contents_eq): Move implementation into
173 value_available_contents_bits_eq, call to same.
174 (value_contents_copy_raw): Work on bits, not bytes.
175 (unpack_value_bits_as_long_1): Check availability in bits, not
177 * value.h (value_bits_available): Declare new function.
178 (mark_value_bits_unavailable): Declare new function.
180 2013-12-16 Pierre Muller <muller@sourceware.org>
182 Fix compilation error for cygwin native build.
183 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
186 2013-12-16 Pedro Alves <palves@redhat.com>
189 * sol-thread.c (check_for_thread_db): If the target can't run or
190 isn't a core, return without pushing.
192 2013-12-15 Joel Brobecker <brobecker@adacore.com>
194 Revert the following commit:
195 * solib.c (solib_map_sections): Remove code overwriting
196 SO->SO_NAME with the bfd's filename.
198 Make the following changes required after the revert above:
199 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
200 returned bfd to a copy of the synthetic pathname.
201 * solib-darwin.c (darwin_bfd_open): Set the filename of the
202 returned bfd to a copy of PATHNAME.
204 2013-12-13 Joel Brobecker <brobecker@adacore.com>
206 * ada-lang.c (ada_array_bound_from_type): Move the declaration
207 and assignment of variable "elt_type" inside the else block
208 where it is used. Add two missing check_typedef calls.
209 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
210 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
212 2013-12-13 Joel Brobecker <brobecker@adacore.com>
214 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
215 between 'struct type *' and 'arr_type'.
217 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
220 * NEWS (Python Scripting): Add entry for the new feature and the
221 new attribute of gdb.Field objects.
222 * python/py-type.c (gdbpy_is_field): New function
223 (convert_field): Add 'parent_type' attribute to gdb.Field
225 * python/py-value.c (valpy_getitem): Allow subscript value to be
227 (value_has_field): New function
228 (get_field_flag): New function
229 * python/python-internal.h (gdbpy_is_field): Add declaration.
231 2013-12-12 Pedro Alves <palves@redhat.com>
233 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
234 const, and remove casts.
236 2013-12-12 Pedro Alves <palves@redhat.com>
238 * cli/cli-cmds.c (source_script_from_stream) Use have_python
239 instead of catching UNSUPPORTED_ERROR.
240 * exceptions.h (UNSUPPORTED_ERROR): Delete.
241 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
243 * python/python.h (have_python): New static inline function.
245 2013-12-11 Doug Evans <dje@google.com>
247 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
248 "can't find DWO" warning.
250 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
252 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
253 to get_probe_argument_count and evaluate_probe_argument.
254 * probe.c (get_probe_argument_count): Adjust declaration to accept
255 frame. Pass frame to probe_ops's get_probe_argument_count.
256 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
257 (probe_safe_evaluate_at_pc): Pass frame to
258 get_probe_argument_count and evaluate_probe_argument.
259 * probe.h (struct probe_ops) <get_probe_argument_count,
260 evaluate_probe_argument>: Adjust declarations to accept frame.
261 (get_probe_argument_count, evaluate_probe_argument): Likewise.
262 * solib-svr4.c (solib_event_probe_action): Get current frame.
263 Pass it to get_probe_argument_count.
264 (svr4_handle_solib_event): Get current frame. Pass it to
265 get_probe_argument_count and evaluate_probe_argument.
266 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
267 accept gdbarch. Do not obtain it from the probe's objfile.
268 (stap_get_probe_argument_count): Adjust declaration to accept
269 frame. Obtain gdbarch from the frame. Call generic
270 can_evaluate_probe_arguments. Pass gdbarch to
271 stap_parse_probe_arguments.
272 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
273 stap_parse_probe_arguments.
274 (stap_evaluate_probe_argument): Adjust declaration to accept
275 frame. Obtain gdbarch from the frame. Pass gdbarch to
277 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
278 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
279 get_probe_argument_count and evaluate_probe_argument.
281 2013-12-10 Doug Evans <dje@google.com>
284 * c-lang.c (c_get_string): Ignore the declared size of the object
285 if a specific length is requested.
287 2013-12-10 Doug Evans <dje@google.com>
289 * interps.h (interp_exec_p): Delete.
290 * interps.c (interp_exec_p): Delete.
291 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
292 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
294 2013-12-10 Yao Qi <yao@codesourcery.com>
296 * amd64-tdep.c (amd64_analyze_stack_align): Call
297 target_read_code instead of target_read_memory.
298 (amd64_analyze_prologue): Call read_code_unsigned_integer
299 instead of read_memory_unsigned_integer. Call read_code
300 instead of read_memory.
301 (amd64_skip_xmm_prologue): Likewise.
303 2013-12-10 Yao Qi <yao@codesourcery.com>
305 * corefile.c (read_code): New function.
306 (read_code_integer): New function.
307 (read_code_unsigned_integer): New function.
308 * gdbcore.h (read_code): Declare.
309 (read_code_integer): Declare.
310 (read_code_unsigned_integer): Declare.
311 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
312 of target_read_memory. Call read_code_unsigned_integer instead
313 of read_memory_unsigned_integer.
314 (i386_analyze_struct_return): Likewise.
315 (i386_skip_probe): Likewise.
316 (i386_analyze_stack_align): Likewise.
317 (i386_match_pattern): Likewise.
318 (i386_skip_noop): Likewise.
319 (i386_analyze_frame_setup): Likewise.
320 (i386_analyze_register_saves): Likewise.
321 (i386_skip_prologue): Likewise.
322 (i386_skip_main_prologue): Likewise.
323 (i386_frame_cache_1): Likewise.
325 2013-12-10 Yao Qi <yao@codesourcery.com>
327 * infrun.c: Include "target-dcache.h".
328 (prepare_for_detach): Call target_dcache_invalidate.
329 (wait_for_inferior): Likewise.
330 (fetch_inferior_event): Likewise.
331 (infrun_thread_stop_requested_callback): Likewise. Set
332 overlay_cache_invalid to 1.
334 2013-12-10 Joel Brobecker <brobecker@adacore.com>
336 * symtab.c (symbol_find_demangled_name): Add handling of
339 2013-12-10 Joel Brobecker <brobecker@adacore.com>
341 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
342 * NEWS: Expand the entry documenting the new -exec-run --start
343 option to mention the corresponding new entry in the output of
346 2013-12-10 Joel Brobecker <brobecker@adacore.com>
348 * windows-nat.c (handle_load_dll): Add comments.
349 (windows_ensure_ntdll_loaded): New function.
350 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
353 2013-12-08 Joel Brobecker <brobecker@adacore.com>
357 2013-12-08 Yao Qi <yao@codesourcery.com>
359 * stack.c (frame_info): Initialize variable caller_pc.
361 2013-12-06 Pedro Alves <palves@redhat.com>
363 * frame.c (enum cached_copy_status): New enum.
364 (struct frame_info) <prev_pc.p>: Change type to enum
366 (fprint_frame): Handle not saved and unavailable prev_pc values.
367 (frame_unwind_pc_if_available): Delete and merge contents into ...
368 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
369 to use enum cached_copy_status.
370 (frame_unwind_caller_pc_if_available): Delete.
371 (create_new_frame): Adjust.
372 * frame.h (frame_unwind_caller_pc_if_available): Delete
374 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
375 frame_unwind_caller_pc_if_available, and handle
376 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
377 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
378 (val_print_not_saved): New function.
379 * valprint.h (val_print_not_saved): Declare.
381 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
382 Pedro Alves <palves@redhat.com>
384 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
385 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
386 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
387 * spu-tdep.c (spu_software_single_step): Throw
389 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
391 2013-12-06 Tom Tromey <tromey@redhat.com>
393 * objfiles.c (free_objfile): Update comment.
395 2013-12-06 Tom Tromey <tromey@redhat.com>
397 * objfiles.h (objfile_to_front): Remove.
398 * objfiles.c (objfile_to_front): Remove.
400 2013-12-06 Tom Tromey <tromey@redhat.com>
402 * minsyms.c (get_symbol_leading_char): Remove unnecessary
405 2013-12-06 Tom Tromey <tromey@redhat.com>
407 * psympriv.h (struct partial_symtab) <user>: Move earlier.
409 2013-12-06 Tom Tromey <tromey@redhat.com>
411 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
412 (list_command): Likewise.
414 2013-12-06 Tom Tromey <tromey@redhat.com>
416 * psymtab.c (allocate_psymtab): Put the filename in the filename
419 2013-12-06 Tom Tromey <tromey@redhat.com>
421 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
422 * symtab.h (struct symtab) <dirname>: Now const.
424 2013-12-06 Tom Tromey <tromey@redhat.com>
426 * symfile.c (allocate_symtab): Remove cast.
427 * symtab.h (struct symtab) <filename>: Now const.
429 2013-12-06 Tom Tromey <tromey@redhat.com>
431 * break-catch-throw.c (fetch_probe_arguments): Use
432 get_probe_argument_count and evaluate_probe_argument.
433 * elfread.c (elf_get_probe_argument_count)
434 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
435 (elf_compile_to_ax): Remove.
436 (elf_probe_fns): Update.
437 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
438 (evaluate_probe_argument): Call method on probe, not via sym
440 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
441 evaluate_probe_argument.
442 (compile_probe_arg): Use get_probe_argument_count. Call method on
443 probe, not via sym functions.
444 * symfile-debug.c (debug_sym_get_probe_argument_count)
445 (debug_can_evaluate_probe_arguments)
446 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
448 (debug_sym_probe_fns): Remove.
449 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
450 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
451 sym_compile_to_ax>: Remove fields.
453 2013-12-06 Pierre Muller <muller@sourceware.org>
455 Fix completion for pascal language.
456 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
457 (exp : field_exp name COMPLETE): New rule.
458 (exp : SIZEOF): Set correct current_type.
459 (last_was_structop): Remove static variable.
460 (yylex): Remove saw_structop local variable.
461 Adapt code to removal of variables above.
463 2013-12-06 Joel Brobecker <brobecker@adacore.com>
465 * frame.c (get_prev_frame_1): Delete variable "this_id".
466 Replace its use by a call to get_frame_id.
468 2013-12-05 Anthony Green <green@moxielogic.com>
470 * moxie-tdep.c (moxie_software_single_step): New function.
471 (INST2OFFSET): New helper macro.
472 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
473 (moxie_process_readu): Move this up in the file.
475 2013-12-05 Doug Evans <xdje42@gmail.com>
477 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
479 2013-12-05 Joel Brobecker <brobecker@adacore.com>
480 Tristan Gingold <gingold@adacore.com>
482 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
483 Accept version 2. Ignore operations using opcode 6.
485 2013-12-05 Joel Brobecker <brobecker@adacore.com>
487 * ada-lex.l (find_dot_all): Fix coding style violations.
489 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
491 * NEWS: Add section for Intel(R) Architecture Instructions
492 Extesions mentioning MPX.
494 2013-12-03 Joel Brobecker <brobecker@adacore.com>
496 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
498 2013-12-03 Joel Brobecker <brobecker@adacore.com>
500 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
501 when parse_exp_1 threw an error. Add comment.
503 2013-12-03 Joel Brobecker <brobecker@adacore.com>
505 * NEWS: Mention "-list-features" in the entry documenting
506 the support for the "--language" option.
508 2013-12-03 Tom Tromey <tromey@redhat.com>
509 Jan Kratochvil <jan.kratochvil@redhat.com>
510 Doug Evans <dje@google.com>
511 Samuel Bronson <naesten@gmail.com>
513 Bring back gdb-add-index as a contrib script.
514 * contrib/gdb-add-index.sh: New file.
515 * NEWS: Note the addition.
517 2013-12-03 Samuel Bronson <naesten@gmail.com>
519 * MAINTAINERS (Write After Approval): Add myself to the list.
521 2013-12-03 Joel Brobecker <brobecker@adacore.com>
523 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
525 2013-12-03 Joel Brobecker <brobecker@adacore.com>
527 * mi/mi-main.c: Remove trailing spaces throughout.
529 2013-12-03 Pedro Alves <palves@redhat.com>
530 Joel Brobecker <brobecker@adacore.com>
532 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
533 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
534 of a regular error when the GDB/MI command does not exist.
535 * mi/mi-main.c (mi_cmd_list_features): Add
536 "undefined-command-error-code".
537 (mi_print_exception): Print an "undefined-command"
538 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
539 * NEWS: Add entry documenting the new "code" variable in
540 "^error" result records.
542 2013-12-03 Joel Brobecker <brobecker@adacore.com>
544 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
545 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
546 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
547 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
548 field to output of "-list-features".
550 * NEWS: Add entry for new -info-gdb-mi-command.
552 2013-12-02 Doug Evans <dje@google.com>
553 Jan Kratochvil <jan.kratochvil@redhat.com>
555 * objfiles.c (allocate_objfile): Save original_name as an absolute
557 * objfiles.h (struct objfile): Expand comment on original_name.
558 * source.c (openp): Call gdb_abspath.
559 * utils.c (gdb_abspath): New function.
560 * utils.h (gdb_abspath): Declare.
562 2013-12-02 Pedro Alves <palves@redhat.com>
564 * dcache.c (dcache_read_line): Use target_read_raw_memory.
565 * target.c (target_read_raw_memory): New function.
566 (target_read_stack, target_write_memory, target_write_raw_memory):
568 (target_read_code): Add comment.
569 * target.h (target_read_raw_memory): Declare.
571 2013-12-02 Pedro Alves <palves@redhat.com>
573 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
576 2013-12-02 Pedro Alves <pedro@codesourcery.com>
577 Maciej W. Rozycki <macro@codesourcery.com>
579 * remote.c (putpkt_for_catch_errors): Remove function.
580 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
583 2013-12-02 Pedro Alves <palves@redhat.com>
586 * remote-notif.c (handle_notification): Return early if no
587 notification is found.
589 2013-12-02 Joel Brobecker <brobecker@adacore.com>
591 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
594 2013-12-02 Joel Brobecker <brobecker@adacore.com>
596 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
598 2013-12-02 Joel Brobecker <brobecker@adacore.com>
600 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
601 * ctf.c (ctf_start): Remove obsolete comment.
603 2013-12-02 Joel Brobecker <brobecker@adacore.com>
605 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
607 2013-11-30 Doug Evans <xdje42@gmail.com>
609 * auto-load.h (script_language): New members name, auto_load_enabled.
610 Add missing comments on struct members.
611 (auto_load_objfile_script): Delete.
612 * auto-load.c: #include "cli/cli-cmds.h".
613 (auto_load_gdb_scripts_enabled): New function.
614 (script_language_gdb): Update, add new members.
615 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
616 and call to maybe_add_script moved to caller.
617 (auto_load_objfile_script_1): Auto-load safe-checking and
618 call to maybe_add_script moved here.
619 (auto_load_objfile_script): Make static. Early exit if support for
620 scripting language hasn't been compiled in, or auto-loading has been
622 (source_section_scripts): Argument "source_name" renamed to
623 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
624 with section_name. Skip loading script if support for scripting
625 language hasn't been compiled in, or auto-loading has been disabled.
626 Call language->source_script_for_objfile instead of calling
627 source_python_script_for_objfile directly.
628 (load_auto_scripts_for_objfile): Update.
629 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
630 (gdbpy_load_auto_script_for_objfile): Delete.
631 (auto_load_python_scripts_enabled): New function.
632 (script_language_python): Update, add new members.
633 (gdbpy_script_language_defn): New function.
634 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
635 (gdbpy_script_language_defn): Declare.
637 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
638 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
639 (source_section_scripts): Moved here from py-auto-load.c.
640 (auto_load_section_scripts): Ditto.
641 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
642 auto-load.c, renamed AUTO_SECTION_NAME.
643 (source_section_scripts, auto_load_section_scripts): Moved to
646 2013-11-30 Yao Qi <yao@codesourcery.com>
648 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
650 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
652 * gdbarch.sh: Remove include of "gdb_string.h", replace by
655 2013-11-29 Doug Evans <xdje42@gmail.com>
657 * python/py-auto-load.c (source_section_scripts): Move comment to
658 more relevant location.
661 * python/py-breakpoint.c: Remove trailing whitespace.
662 * python/py-cmd.c: Ditto.
663 * python/py-evts.c: Ditto.
664 * python/py-finishbreakpoint.c: Ditto.
665 * python/py-frame.c: Ditto.
666 * python/py-function.c: Ditto.
667 * python/py-inferior.c: Ditto.
668 * python/py-infthread.c: Ditto.
669 * python/py-param.c: Ditto.
670 * python/py-prettyprint.c: Ditto.
671 * python/py-symbol.c: Ditto.
672 * python/py-type.c: Ditto.
673 * python/py-utils.c: Ditto.
674 * python/py-value.c: Ditto.
675 * python/python-internal.h: Ditto.
676 * python/python.c: Ditto.
678 2013-11-29 Pedro Alves <palves@redhat.com>
680 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
682 2013-11-29 Pedro Alves <palves@redhat.com>
684 * breakpoint.c (build_target_condition_list): Release previous
686 (build_target_command_list): Release previous commands.
687 (bp_location_dtor): Release target conditions and commands.
688 * remote.c (remote_add_target_side_condition): Don't release
690 (remote_add_target_side_commands): Don't release commands.
692 2013-11-29 Yao Qi <yao@codesourcery.com>
693 Pedro Alves <palves@redhat.com>
695 * dcache.c (dcache_read_line): Use current_target.beneath
696 instead of ¤t_target.
697 * target.c (memory_xfer_partial_1): Factor code out to ...
698 (raw_memory_xfer_partial): ... it. New function.
699 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
700 is TARGET_OBJECT_RAW_MEMORY.
702 2013-11-28 Doug Evans <xdje42@gmail.com>
704 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
705 breakpoint_object. All uses updated.
706 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
707 breakpoint_object. All uses updated.
708 * python.c (*): All uses of breakpoint_object updated.
709 * python.h (*): All uses of breakpoint_object updated.
710 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
711 * python/py-finishbreakpoint.c (*): Ditto.
713 2013-11-28 Doug Evans <xdje42@gmail.com>
715 * configure.ac: Add comments delineating libpython and libmcheck.
716 * configure: Regenerate.
718 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
719 Pedro Alves <palves@redhat.com>
721 * valprint.c (value_check_printable): If the value is entirely
722 unavailable, print a single "<unavailable>" instead of printing
725 2013-11-28 Pedro Alves <palves@redhat.com>
727 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
728 Add "set debug frame" output.
729 (frame_stop_reason_symbol_string): New function.
731 2013-11-28 Pedro Alves <palves@redhat.com>
733 * frame-unwind.c (default_frame_unwind_stop_reason): Return
734 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
735 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
737 2013-11-28 Pedro Alves <palves@redhat.com>
739 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
740 set the unwind stop reason to UNWIND_OUTERMOST, not
741 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
743 2013-11-28 Pedro Alves <palves@redhat.com>
745 * frame.c (frame_unwind_register): Say the register was "not
746 saved" instead of "optimized out".
748 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
751 * configure: Rebuild.
752 * configure.ac: Tighten cygwin detection check.
754 2013-11-27 Pedro Alves <palves@redhat.com>
756 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
757 register in the previous frame's arch.
759 2013-11-27 Pedro Alves <palves@redhat.com>
761 * frame-unwind.c (frame_unwind_got_optimized): Return
762 an lval_register value instead of a not_lval value.
764 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
766 * frame.c: Include "valprint.h".
767 (frame_unwind_register_value): Use value_optimized_out.
768 * value.c (value_fetch_lazy): Likewise.
770 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
772 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
774 2013-11-26 Tom Tromey <tromey@redhat.com>
776 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
779 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
781 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
782 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
783 (HAS_MPX): New macro.
784 (HAS_AVX): New macro.
785 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
787 2013-11-25 Keith Seitz <keiths@redhat.com>
790 * c-exp.y (classify_inner_name): If no matching symbol was
791 found, try looking up the token as a base class.
792 Likewise if a constructor was found.
793 * cp-namespace.c (find_type_baseclass_by_name): New function.
794 * cp-support.h (find_type_baseclass_by_name): Declare.
795 * valops.c (value_struct_elt_for_reference): If we get
796 a non-static field, try to get a value based on the
797 current instance, if any.
799 2013-11-24 Yao Qi <yao@codesourcery.com>
801 * disasm.c (dis_asm_read_memory): Call target_read_code
802 instead of target_read_memory.
804 2013-11-24 Yao Qi <yao@codesourcery.com>
806 * NEWS: Add note on new "set code-cache" option.
807 * target-dcache.c (code_cache_enabled_1): New variable.
808 (code_cache_enabled): New variable.
809 (show_code_cache, set_code_cache): New function.
810 (code_cache_enabled_p): New function.
811 (_initialize_target_dcache): Register command.
812 * target-dcache.h (code_cache_enabled_p): Declare.
813 * target.c (memory_xfer_partial_1):Handle
814 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
815 (target_read_code): New function.
816 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
818 (target_read_code): Declare.
820 2013-11-24 Yao Qi <yao@codesourcery.com>
822 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
823 (stack_cache_enabled_1): ... this. New variable.
824 (stack_cache_enabled_p): Rename to ...
825 (stack_cache_enabled): ... this. New variable.
826 (set_stack_cache_enabled_p): Rename to ...
827 (set_stack_cache): ... this. Update caller.
828 (show_stack_cache_enabled_p): Rename to ...
829 (show_stack_cache): ... this. Update caller.
830 (stack_cache_enabled): Rename to ...
831 (stack_cache_enabled_p): ... this. Update caller.
832 (_initialize_target_dcache): Replace "data cache" with
833 "target memory cache".
834 * target-dcache.h (stack_cache_enabled): Remove declaration.
835 (stack_cache_enabled_p): Add declaration.
837 2013-11-23 Doug Evans <xdje42@gmail.com>
839 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
842 2013-11-23 Doug Evans <xdje42@gmail.com>
844 * python/py-frame.c (frapy_block): Fix error message text.
846 2013-11-23 Doug Evans <xdje42@gmail.com>
848 * cli/cli-script.c (multi_line_command_p): New function.
849 (recurse_read_control_structure, read_command_lines_1): Call it.
850 (execute_control_command): Consistently have a blank line between
853 2013-11-22 Sterling Augustine <saugustine@google.com>
856 * valprint.c (read_string): Set new variable fetchlen based on
857 fetchlimit and size. Use it in call to partial_memory_read.
860 2013-11-22 Tom Tromey <tromey@redhat.com>
863 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
864 the return address column is unspecified.
866 2013-11-22 Tom Tromey <tromey@redhat.com>
867 Pedro Alves <palves@redhat.com>
870 * value.c (value_fetch_lazy): Internal error if
871 get_frame_register_value returns the same register.
873 2013-11-22 Pedro Alves <palves@redhat.com>
874 Tom Tromey <tromey@redhat.com>
876 * frame.c (frame_stash_add): Now returns whether a frame with the
877 same ID was already known.
878 (compute_frame_id): New function, factored out from get_frame_id.
879 (get_frame_id): No longer lazilly compute the frame id here.
880 (get_prev_frame_if_no_cycle): New function. Detects wider stack
882 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
883 and checking for stack cycles here.
885 2013-11-22 Pedro Alves <palves@redhat.com>
888 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
889 this frame and the new previous frame, not between this frame and
892 2013-11-22 Pedro Alves <palves@redhat.com>
895 * dwarf2-frame.c (struct dwarf2_frame_cache)
896 <checked_tailcall_bottom, entry_cfa_sp_offset,
897 entry_cfa_sp_offset_p>: New fields.
898 (dwarf2_frame_cache): Adjust to use the new cache fields instead
899 of locals. Don't call dwarf2_tailcall_sniffer_first here.
900 (dwarf2_frame_prev_register): Call it here, but only once.
902 2013-11-21 Doug Evans <xdje42@gmail.com>
904 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
905 (type_equality_entry): Move here from python/py-type.c.
906 (type_equality_entry_d): Ditto.
907 (compare_maybe_null_strings, check_types_equal): Ditto.
908 (check_types_worklist, types_deeply_equal): Ditto.
909 * gdbtypes.h (types_deeply_equal): Declare.
910 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
911 (typy_richcompare): Update.
913 2013-11-20 Joel Brobecker <brobecker@adacore.com>
915 * python/py-value.c (is_intlike): Delete.
916 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
917 by use of is_integral_type.
918 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
919 by use of is_integral_type and check for TYPE_CODE_PTR.
921 2013-11-20 Tom Tromey <tromey@redhat.com>
923 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
925 * gnulib/aclocal.m4: Update.
926 * gnulib/config.in: Update.
927 * gnulib/configure: Update.
928 * gnulib/import/Makefile.am: Update.
929 * gnulib/import/Makefile.in: Update.
930 * gnulib/import/errno.in.h: Remove.
931 * gnulib/import/intprops.h: Remove.
932 * gnulib/import/m4/errno_h.m4: Remove.
933 * gnulib/import/m4/gnulib-cache.m4: Update.
934 * gnulib/import/m4/gnulib-comp.m4: Update.
935 * gnulib/import/m4/strerror.m4: Remove.
936 * gnulib/import/m4/sys_socket_h.m4: Remove.
937 * gnulib/import/strerror-override.c: Remove.
938 * gnulib/import/strerror-override.h: Remove.
939 * gnulib/import/strerror.c: Remove.
940 * gnulib/update-gnulib.sh: Update.
942 2013-11-20 Yao Qi <yao@codesourcery.com>
944 * target-dcache.c (target_dcache_get_or_init): Call
945 set_address_space_data if 'dcache' is NULL.
947 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
949 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
951 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
953 * python/lib/gdb/command/bound_register.py: New file.
954 * data-directory/Makefile.in: Copy bond_register.py to the right path
955 to be initialized at gdb startup.
957 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
959 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
961 (amd64_linux_read_description): Add initialization for MPX and
963 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
964 (amd64_linux_gregset_reg_offset): Add MPX registers.
965 (amd64_linux_core_read_description): Add initialization for MPX
967 (_initialize_amd64_linux_tdep): Initialize MPX targets.
968 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
969 register on the list.
970 (tdesc_amd64_mpx_linux) Add new target for MPX.
971 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
972 (amd64_mpx_names): MPX register names.
973 (amd64_init_abi): Add MPX register while initializing the ABI.
974 (_initialize_amd64_tdep): Initialize MPX targets.
975 * amd64-tdep.h (amd64_regnum): Add MPX registers.
976 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
978 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
980 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
981 registers on the range of registers to be read from
983 (i386_linux_read_description): Add case for MPX.
984 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
985 (i386_linux_gregset_reg_offset): Add MPX registers.
986 (i386_linux_core_read_description): Initialize also MPX.
987 (_initialize_i386_linux_tdep): Add mpx initialization.
988 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
990 (i386_regnum): Add MPX registers.
991 (I386_MPX_NUM_REGS): New macro.
992 (i386_bnd_regnum_p): New function.
993 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
994 number of registers to be the number of BNDSTATUS.
995 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
996 * i386-tdep.c: Include features/i386/i386-mpx.c.
997 (i386_mpx_names): Add MPX register names array.
998 (i386_bnd_names): Add bnd pseudo register names array.
999 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1001 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1002 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1004 (i386_bnd_type): New function.
1005 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1007 (i386_pseudo_register_read_into_value): Add bnd case.
1008 (i386_pseudo_register_write): Add bnd pseudo registers.
1009 (i386_register_reggroup_p): Add MPX register to the group all.
1010 (i386_validate_tdesc_p): Add MPX to the target description
1012 (i386_pseudo_register_name): Add bnd pseudo registers.
1013 (i386_gdbarch_init): Add MPX for architecture initialization.
1014 (_initia_initialize_i386_tdep): Add mpx initialization.
1015 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1017 (XSAVE_MPX_ADDR): New macro.
1018 (i387_supply_xsave): Add MPX case.
1019 (i387_collect_xsave): Add MPX case.
1020 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1021 (I387_BNDCFGU_REGNUM): New macro.
1022 (I387_NUM_MPX_REGS): New macro.
1023 (I387_NUM_BND_REGS): New macro.
1024 (I387_NUM_MPX_CTRL_REGS): New macro.
1025 (I387_MPXEND_REGNUM): New macro.
1026 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1027 (I386_XSTATE_BNDCFG): Likewise.
1028 (I386_XSTATE_MPX_MASK): Likewise.
1029 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1030 (I386_XSTATE_BNDREGS_SIZE): New macro.
1031 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1032 (I386_XSTATE_SIZE): Adapt for MPX.
1033 (I386_XSTATE_MAX_SIZE): Likewise.
1035 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1037 * features/i386/Makefile: Adapts for using MPX registers.
1038 * features/i386/32bit-mpx.xml: New file.
1039 * features/i386/64bit-mpx.xml: Likewise.
1040 * features/i386/amd64-mpx-linux.c: Likewise.
1041 * features/i386/amd64-mpx-linux.xml: Likewise.
1042 * features/i386/amd64-mpx.c: Likewise.
1043 * features/i386/amd64-mpx.xml: Likewise.
1044 * features/i386/i386-mpx-linux.c: Likewise.
1045 * features/i386/i386-mpx-linux.xml: Likewise.
1046 * features/i386/i386-mpx.c: Likewise.
1047 * features/i386/i386-mpx.xml: Likewise.
1048 * regformats/i386/amd64-mpx-linux.dat: New file.
1049 * regformats/i386/amd64-mpx.dat: Likewise.
1050 * regformats/i386/i386-mpx-linux.dat: Likewise.
1051 * regformats/i386/i386-mpx.dat: Likewise.
1053 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1055 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1056 Modified logic of creating a bitfield to be in sync with
1059 2013-11-20 Will Newton <will.newton@linaro.org>
1061 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1064 2013-11-20 Yao Qi <yao@codesourcery.com>
1066 * progspace.h (struct address_space_data): Declare.
1067 * target-dcache.c: Include "progspace.h".
1068 (target_dache): Remove.
1069 (target_dcache_aspace_key): New.
1070 (target_dcache_cleanup): New function.
1071 (target_dcache_init_p): Get data through
1072 target_dcache_aspace_key.
1073 (target_dcache_invalidate): Likewise.
1074 (target_dcache_get): Likewise.
1075 (target_dcache_get_or_init): Likewise.
1076 (_initialize_target_dcache): Initialize
1077 target_dcache_aspace_key.
1079 2013-11-20 Yao Qi <yao@codesourcery.com>
1081 * progspace.c (struct address_space): Update comments.
1082 <REGISTRY_FIELDS>: New fields.
1083 DEFINE_REGISTRY for address_space.
1084 (new_address_space): Call address_space_alloc_data.
1085 (free_address_space): Call address_space_free_data.
1086 * progspace.h: Use DECLARE_REGISTRY.
1088 2013-11-20 Yao Qi <yao@codesourcery.com>
1090 * Makefile.in (SFILES):Add target-dcache.c.
1091 (HFILES_NO_SRCDIR): Add target-dcache.h.
1092 (COMMON_OBS): Add target-dcache.o.
1093 * dcache.c: Remove inclusion to "target.h". Include
1095 * memattr.c: Include "target-dcache.h".
1097 * tracepoint.c: Likewise.
1098 * target.c: (stack_cache_enabled_p_1): Move to
1100 (stack_cache_enabled_p): Likewise.
1101 (set_stack_cache_enabled_p): Likewise.
1102 (show_stack_cache_enabled_p): Likewise.
1103 (target_dcache, target_dcache_init_p): Likewise.
1104 (target_dcache_invalidate): Likewise.
1105 (target_dcache_get, target_dcache_get_or_init): Likewise.
1106 (memory_xfer_partial_1): Call function stack_cache_enabled.
1107 (initialize_target): Move code to target-dcache.c.
1108 * target.h (target_dcache_invalidate): Move to
1110 (target_dcache_get): Likewise.
1111 * target-dcache.c: New.
1112 * target-dcache.h: New.
1114 2013-11-20 Yao Qi <yao@codesourcery.com>
1116 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1119 2013-11-20 Yao Qi <yao@codesourcery.com>
1121 * dcache.c (last_cache): Remove.
1122 (dcache_free, dcache_init): Update.
1124 (dcache_print_line): Add parameter 'dcache'. Replace
1125 'target_dcache' with 'dcache'.
1126 (dcache_info): Move code to dcache_info_1. Call
1128 (dcache_info_1): New function.
1129 (set_dcache_size): Call target_dcache_invalidate.
1130 (set_dcache_line_size): Call target_dcache_invalidate.
1131 * target.c (target_dcache_init_p): New function.
1132 (target_dcache_invalidate): Check target_dcache_init_p first.
1133 (target_dcache_get, target_dcache_get_or_init): New function.
1134 (memory_xfer_partial_1): Adjust.
1135 (initialize_target): Don't initialize 'target_dcache'.
1136 * target.h (struct dcache_struct): Declare.
1137 (target_dcache_get): Declare.
1139 2013-11-19 Yao Qi <yao@codesourcery.com>
1141 * varobj.c (varobj_get_type): Fix typo.
1143 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1145 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1147 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1149 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1152 2013-11-18 Tom Tromey <tromey@redhat.com>
1154 * common/gdb_stat.h: Remove.
1155 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1156 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1157 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1158 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1159 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1160 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1161 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1162 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1163 * exec.c: Use sys/stat.h, not gdb_stat.h.
1164 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1165 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1166 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1167 * jit.c: Use sys/stat.h, not gdb_stat.h.
1168 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1169 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1170 * main.c: Use sys/stat.h, not gdb_stat.h.
1171 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1172 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1173 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1174 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1175 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1176 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1177 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1178 * remote.c: Use sys/stat.h, not gdb_stat.h.
1179 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1180 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1181 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1182 * source.c: Use sys/stat.h, not gdb_stat.h.
1183 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1184 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1185 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1186 * top.c: Use sys/stat.h, not gdb_stat.h.
1187 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1189 2013-11-18 Tom Tromey <tromey@redhat.com>
1191 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1193 * gnulib/aclocal.m4: Update.
1194 * gnulib/config.in: Update.
1195 * gnulib/configure: Update.
1196 * gnulib/import/Makefile.am: Update.
1197 * gnulib/import/Makefile.in: Update.
1198 * gnulib/import/m4/gnulib-cache.m4: Update.
1199 * gnulib/import/m4/gnulib-comp.m4: Update.
1200 * gnulib/import/m4/sys_stat_h.m4: New.
1201 * gnulib/import/m4/time_h.m4: New.
1202 * gnulib/import/sys_stat.in.h: New.
1203 * gnulib/import/time.in.h: New.
1205 2013-11-18 Tom Tromey <tromey@redhat.com>
1207 * configure: Rebuild.
1208 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1210 2013-11-18 Tom Tromey <tromey@redhat.com>
1212 * configure: Rebuild.
1213 * configure.ac: Don't check for unistd.h.
1215 2013-11-18 Tom Tromey <tromey@redhat.com>
1217 * configure: Rebuild.
1218 * configure.ac: Don't check for stdlib.h
1219 * defs.h: Include stdlib.h unconditionally.
1221 2013-11-18 Tom Tromey <tromey@redhat.com>
1223 * config.in: Rebuild.
1224 * configure: Rebuild.
1225 * configure.ac: Don't check for stddef.h.
1226 * defs.h: Unconditionally include stddef.h. Remove duplicate
1229 2013-11-18 Tom Tromey <tromey@redhat.com>
1231 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1232 * common/gdb_dirent.h: Remove.
1233 * common/filestuff.c: Use dirent.h.
1234 * common/linux-osdata.c: Use dirent.h.
1236 * config.in: Rebuild.
1237 * configure: Rebuild.
1238 * configure.ac: Don't use AC_HEADER_DIRENT.
1239 * linux-fork.c: Use dirent.h
1240 * linux-nat.c: Use dirent.h.
1241 * nto-procfs.c: Use dirent.h.
1242 * procfs.c: Use dirent.h.
1244 2013-11-18 Tom Tromey <tromey@redhat.com>
1246 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1247 * gnulib/aclocal.m4: Update.
1248 * gnulib/config.in: Update.
1249 * gnulib/configure: Update.
1250 * gnulib/import/Makefile.am: Update.
1251 * gnulib/import/Makefile.in: Update.
1252 * gnulib/import/dirent.in.h: New.
1253 * gnulib/import/m4/dirent_h.m4: New.
1254 * gnulib/import/m4/gnulib-cache.m4: Update.
1255 * gnulib/import/m4/gnulib-comp.m4: Update.
1257 2013-11-18 Tom Tromey <tromey@redhat.com>
1259 * configure: Rebuild.
1260 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1263 2013-11-18 Tom Tromey <tromey@redhat.com>
1265 * common/gdb_string.h: Remove.
1266 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1267 * ada-exp.y: Use string.h, not gdb_string.h.
1268 * ada-lang.c: Use string.h, not gdb_string.h.
1269 * ada-lex.l: Use string.h, not gdb_string.h.
1270 * ada-typeprint.c: Use string.h, not gdb_string.h.
1271 * ada-valprint.c: Use string.h, not gdb_string.h.
1272 * aix-thread.c: Use string.h, not gdb_string.h.
1273 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1274 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1275 * alpha-nat.c: Use string.h, not gdb_string.h.
1276 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1277 * alpha-tdep.c: Use string.h, not gdb_string.h.
1278 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1279 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1280 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1281 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1282 * amd64-nat.c: Use string.h, not gdb_string.h.
1283 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1284 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1285 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1286 * arch-utils.c: Use string.h, not gdb_string.h.
1287 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1288 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1289 * arm-tdep.c: Use string.h, not gdb_string.h.
1290 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1291 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1292 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1293 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1294 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1295 * avr-tdep.c: Use string.h, not gdb_string.h.
1296 * ax-gdb.c: Use string.h, not gdb_string.h.
1297 * ax-general.c: Use string.h, not gdb_string.h.
1298 * bcache.c: Use string.h, not gdb_string.h.
1299 * bfin-tdep.c: Use string.h, not gdb_string.h.
1300 * breakpoint.c: Use string.h, not gdb_string.h.
1301 * build-id.c: Use string.h, not gdb_string.h.
1302 * buildsym.c: Use string.h, not gdb_string.h.
1303 * c-exp.y: Use string.h, not gdb_string.h.
1304 * c-lang.c: Use string.h, not gdb_string.h.
1305 * c-typeprint.c: Use string.h, not gdb_string.h.
1306 * c-valprint.c: Use string.h, not gdb_string.h.
1307 * charset.c: Use string.h, not gdb_string.h.
1308 * cli-out.c: Use string.h, not gdb_string.h.
1309 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1310 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1311 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1312 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1313 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1314 * cli/cli-script.c: Use string.h, not gdb_string.h.
1315 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1316 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1317 * coffread.c: Use string.h, not gdb_string.h.
1318 * common/common-utils.c: Use string.h, not gdb_string.h.
1319 * common/filestuff.c: Use string.h, not gdb_string.h.
1320 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1321 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1322 * common/signals.c: Use string.h, not gdb_string.h.
1323 * common/vec.h: Use string.h, not gdb_string.h.
1324 * core-regset.c: Use string.h, not gdb_string.h.
1325 * corefile.c: Use string.h, not gdb_string.h.
1326 * corelow.c: Use string.h, not gdb_string.h.
1327 * cp-abi.c: Use string.h, not gdb_string.h.
1328 * cp-support.c: Use string.h, not gdb_string.h.
1329 * cp-valprint.c: Use string.h, not gdb_string.h.
1330 * cris-tdep.c: Use string.h, not gdb_string.h.
1331 * d-lang.c: Use string.h, not gdb_string.h.
1332 * dbxread.c: Use string.h, not gdb_string.h.
1333 * dcache.c: Use string.h, not gdb_string.h.
1334 * demangle.c: Use string.h, not gdb_string.h.
1335 * dicos-tdep.c: Use string.h, not gdb_string.h.
1336 * disasm.c: Use string.h, not gdb_string.h.
1337 * doublest.c: Use string.h, not gdb_string.h.
1338 * dsrec.c: Use string.h, not gdb_string.h.
1339 * dummy-frame.c: Use string.h, not gdb_string.h.
1340 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1341 * dwarf2loc.c: Use string.h, not gdb_string.h.
1342 * dwarf2read.c: Use string.h, not gdb_string.h.
1343 * elfread.c: Use string.h, not gdb_string.h.
1344 * environ.c: Use string.h, not gdb_string.h.
1345 * eval.c: Use string.h, not gdb_string.h.
1346 * event-loop.c: Use string.h, not gdb_string.h.
1347 * exceptions.c: Use string.h, not gdb_string.h.
1348 * exec.c: Use string.h, not gdb_string.h.
1349 * expprint.c: Use string.h, not gdb_string.h.
1350 * f-exp.y: Use string.h, not gdb_string.h.
1351 * f-lang.c: Use string.h, not gdb_string.h.
1352 * f-typeprint.c: Use string.h, not gdb_string.h.
1353 * f-valprint.c: Use string.h, not gdb_string.h.
1354 * fbsd-nat.c: Use string.h, not gdb_string.h.
1355 * findcmd.c: Use string.h, not gdb_string.h.
1356 * findvar.c: Use string.h, not gdb_string.h.
1357 * fork-child.c: Use string.h, not gdb_string.h.
1358 * frame.c: Use string.h, not gdb_string.h.
1359 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1360 * frv-tdep.c: Use string.h, not gdb_string.h.
1361 * gdb.c: Use string.h, not gdb_string.h.
1362 * gdb_bfd.c: Use string.h, not gdb_string.h.
1363 * gdbarch.c: Use string.h, not gdb_string.h.
1364 * gdbtypes.c: Use string.h, not gdb_string.h.
1365 * gnu-nat.c: Use string.h, not gdb_string.h.
1366 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1367 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1368 * go-exp.y: Use string.h, not gdb_string.h.
1369 * go-lang.c: Use string.h, not gdb_string.h.
1370 * go32-nat.c: Use string.h, not gdb_string.h.
1371 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1372 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1373 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1374 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1375 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1376 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1377 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1378 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1379 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1380 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1381 * i386-tdep.c: Use string.h, not gdb_string.h.
1382 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1383 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1384 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1385 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1386 * i387-tdep.c: Use string.h, not gdb_string.h.
1387 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1388 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1389 * inf-child.c: Use string.h, not gdb_string.h.
1390 * inf-ptrace.c: Use string.h, not gdb_string.h.
1391 * inf-ttrace.c: Use string.h, not gdb_string.h.
1392 * infcall.c: Use string.h, not gdb_string.h.
1393 * infcmd.c: Use string.h, not gdb_string.h.
1394 * inflow.c: Use string.h, not gdb_string.h.
1395 * infrun.c: Use string.h, not gdb_string.h.
1396 * interps.c: Use string.h, not gdb_string.h.
1397 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1398 * irix5-nat.c: Use string.h, not gdb_string.h.
1399 * jv-exp.y: Use string.h, not gdb_string.h.
1400 * jv-lang.c: Use string.h, not gdb_string.h.
1401 * jv-typeprint.c: Use string.h, not gdb_string.h.
1402 * jv-valprint.c: Use string.h, not gdb_string.h.
1403 * language.c: Use string.h, not gdb_string.h.
1404 * linux-fork.c: Use string.h, not gdb_string.h.
1405 * linux-nat.c: Use string.h, not gdb_string.h.
1406 * lm32-tdep.c: Use string.h, not gdb_string.h.
1407 * m2-exp.y: Use string.h, not gdb_string.h.
1408 * m2-typeprint.c: Use string.h, not gdb_string.h.
1409 * m32c-tdep.c: Use string.h, not gdb_string.h.
1410 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1411 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1412 * m32r-rom.c: Use string.h, not gdb_string.h.
1413 * m32r-tdep.c: Use string.h, not gdb_string.h.
1414 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1415 * m68k-tdep.c: Use string.h, not gdb_string.h.
1416 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1417 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1418 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1419 * m88k-tdep.c: Use string.h, not gdb_string.h.
1420 * macrocmd.c: Use string.h, not gdb_string.h.
1421 * main.c: Use string.h, not gdb_string.h.
1422 * mdebugread.c: Use string.h, not gdb_string.h.
1423 * mem-break.c: Use string.h, not gdb_string.h.
1424 * memattr.c: Use string.h, not gdb_string.h.
1425 * memory-map.c: Use string.h, not gdb_string.h.
1426 * mep-tdep.c: Use string.h, not gdb_string.h.
1427 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1428 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1429 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1430 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1431 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1432 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1433 * mi/mi-console.c: Use string.h, not gdb_string.h.
1434 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1435 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1436 * mi/mi-main.c: Use string.h, not gdb_string.h.
1437 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1438 * microblaze-rom.c: Use string.h, not gdb_string.h.
1439 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1440 * mingw-hdep.c: Use string.h, not gdb_string.h.
1441 * minidebug.c: Use string.h, not gdb_string.h.
1442 * minsyms.c: Use string.h, not gdb_string.h.
1443 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1444 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1445 * mips-tdep.c: Use string.h, not gdb_string.h.
1446 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1447 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1448 * mipsread.c: Use string.h, not gdb_string.h.
1449 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1450 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1451 * monitor.c: Use string.h, not gdb_string.h.
1452 * moxie-tdep.c: Use string.h, not gdb_string.h.
1453 * mt-tdep.c: Use string.h, not gdb_string.h.
1454 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1455 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1456 * nto-procfs.c: Use string.h, not gdb_string.h.
1457 * nto-tdep.c: Use string.h, not gdb_string.h.
1458 * objc-lang.c: Use string.h, not gdb_string.h.
1459 * objfiles.c: Use string.h, not gdb_string.h.
1460 * opencl-lang.c: Use string.h, not gdb_string.h.
1461 * osabi.c: Use string.h, not gdb_string.h.
1462 * osdata.c: Use string.h, not gdb_string.h.
1463 * p-exp.y: Use string.h, not gdb_string.h.
1464 * p-lang.c: Use string.h, not gdb_string.h.
1465 * p-typeprint.c: Use string.h, not gdb_string.h.
1466 * parse.c: Use string.h, not gdb_string.h.
1467 * posix-hdep.c: Use string.h, not gdb_string.h.
1468 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1469 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1470 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1471 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1472 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1473 * printcmd.c: Use string.h, not gdb_string.h.
1474 * procfs.c: Use string.h, not gdb_string.h.
1475 * prologue-value.c: Use string.h, not gdb_string.h.
1476 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1477 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1478 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1479 * regcache.c: Use string.h, not gdb_string.h.
1480 * registry.c: Use string.h, not gdb_string.h.
1481 * remote-fileio.c: Use string.h, not gdb_string.h.
1482 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1483 * remote-mips.c: Use string.h, not gdb_string.h.
1484 * remote-sim.c: Use string.h, not gdb_string.h.
1485 * remote.c: Use string.h, not gdb_string.h.
1486 * reverse.c: Use string.h, not gdb_string.h.
1487 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1488 * ser-base.c: Use string.h, not gdb_string.h.
1489 * ser-go32.c: Use string.h, not gdb_string.h.
1490 * ser-mingw.c: Use string.h, not gdb_string.h.
1491 * ser-pipe.c: Use string.h, not gdb_string.h.
1492 * ser-tcp.c: Use string.h, not gdb_string.h.
1493 * ser-unix.c: Use string.h, not gdb_string.h.
1494 * serial.c: Use string.h, not gdb_string.h.
1495 * sh-tdep.c: Use string.h, not gdb_string.h.
1496 * sh64-tdep.c: Use string.h, not gdb_string.h.
1497 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1498 * skip.c: Use string.h, not gdb_string.h.
1499 * sol-thread.c: Use string.h, not gdb_string.h.
1500 * solib-dsbt.c: Use string.h, not gdb_string.h.
1501 * solib-frv.c: Use string.h, not gdb_string.h.
1502 * solib-osf.c: Use string.h, not gdb_string.h.
1503 * solib-spu.c: Use string.h, not gdb_string.h.
1504 * solib-target.c: Use string.h, not gdb_string.h.
1505 * solib.c: Use string.h, not gdb_string.h.
1506 * somread.c: Use string.h, not gdb_string.h.
1507 * source.c: Use string.h, not gdb_string.h.
1508 * sparc-nat.c: Use string.h, not gdb_string.h.
1509 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1510 * sparc-tdep.c: Use string.h, not gdb_string.h.
1511 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1512 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1513 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1514 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1515 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1516 * spu-multiarch.c: Use string.h, not gdb_string.h.
1517 * spu-tdep.c: Use string.h, not gdb_string.h.
1518 * stabsread.c: Use string.h, not gdb_string.h.
1519 * stack.c: Use string.h, not gdb_string.h.
1520 * std-regs.c: Use string.h, not gdb_string.h.
1521 * symfile.c: Use string.h, not gdb_string.h.
1522 * symmisc.c: Use string.h, not gdb_string.h.
1523 * symtab.c: Use string.h, not gdb_string.h.
1524 * target.c: Use string.h, not gdb_string.h.
1525 * thread.c: Use string.h, not gdb_string.h.
1526 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1527 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1528 * top.c: Use string.h, not gdb_string.h.
1529 * tracepoint.c: Use string.h, not gdb_string.h.
1530 * tui/tui-command.c: Use string.h, not gdb_string.h.
1531 * tui/tui-data.c: Use string.h, not gdb_string.h.
1532 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1533 * tui/tui-file.c: Use string.h, not gdb_string.h.
1534 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1535 * tui/tui-out.c: Use string.h, not gdb_string.h.
1536 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1537 * tui/tui-source.c: Use string.h, not gdb_string.h.
1538 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1539 * tui/tui-win.c: Use string.h, not gdb_string.h.
1540 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1541 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1542 * typeprint.c: Use string.h, not gdb_string.h.
1543 * ui-file.c: Use string.h, not gdb_string.h.
1544 * ui-out.c: Use string.h, not gdb_string.h.
1545 * user-regs.c: Use string.h, not gdb_string.h.
1546 * utils.c: Use string.h, not gdb_string.h.
1547 * v850-tdep.c: Use string.h, not gdb_string.h.
1548 * valarith.c: Use string.h, not gdb_string.h.
1549 * valops.c: Use string.h, not gdb_string.h.
1550 * valprint.c: Use string.h, not gdb_string.h.
1551 * value.c: Use string.h, not gdb_string.h.
1552 * varobj.c: Use string.h, not gdb_string.h.
1553 * vax-tdep.c: Use string.h, not gdb_string.h.
1554 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1555 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1556 * windows-nat.c: Use string.h, not gdb_string.h.
1557 * xcoffread.c: Use string.h, not gdb_string.h.
1558 * xml-support.c: Use string.h, not gdb_string.h.
1559 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1560 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1562 2013-11-18 Tom Tromey <tromey@redhat.com>
1564 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1566 * gnulib/aclocal.m4: Update.
1567 * gnulib/config.in: Update.
1568 * gnulib/configure: Update.
1569 * gnulib/import/Makefile.am: Update.
1570 * gnulib/import/Makefile.in: Update.
1571 * gnulib/import/errno.in.h: New.
1572 * gnulib/import/intprops.h: New.
1573 * gnulib/import/m4/errno_h.m4: New.
1574 * gnulib/import/m4/gnulib-cache.m4: Update.
1575 * gnulib/import/m4/gnulib-comp.m4: Update.
1576 * gnulib/import/m4/strerror.m4: New.
1577 * gnulib/import/m4/strstr.m4: New.
1578 * gnulib/import/m4/sys_socket_h.m4: New.
1579 * gnulib/import/strerror-override.c: New.
1580 * gnulib/import/strerror-override.h: New.
1581 * gnulib/import/strerror.c: New.
1582 * gnulib/import/strstr.c: New.
1584 2013-11-18 Tom Tromey <tromey@redhat.com>
1586 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1589 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1591 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1592 * sparc-tdep.h: And its prototype.
1594 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1596 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1598 2013-11-18 Pedro Alves <palves@redhat.com>
1600 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1603 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1605 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1606 to -list-features output.
1608 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1610 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1611 <read_addr_from_reg>: Renames "read_reg".
1612 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1614 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1615 Use read_addr_from_reg in place of read_reg.
1616 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1617 in place of read_reg.
1618 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1619 dwarf_expr_read_reg.
1620 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1621 with dwarf_expr_read_addr_from_reg.
1622 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1623 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1624 needs_frame_read_addr_from_reg.
1626 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1630 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1632 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1635 2013-11-15 Tom Tromey <tromey@redhat.com>
1638 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1639 (classify_name): Likewise. Prefer a field of "this" over a
1641 (classify_inner_name, yylex): Update.
1643 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1645 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1646 Extend the documentation a bit.
1647 <get_reg_value>: New field.
1648 * dwarf2loc.c (dwarf_expr_get_reg_value)
1649 (needs_frame_get_reg_value): New functions.
1650 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1652 * dwarf2-frame.c (get_reg_value): New function.
1653 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1654 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1655 Use new callback to compute result_val.
1657 2013-11-15 Alan Modra <amodra@gmail.com>
1659 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1660 (ppc64_desc_entry_point): ..this. Update comments here and at
1662 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1663 ppc64_standard_linkage3): Update comments.
1664 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1665 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1667 (ppc64_standard_linkage4_target): New function.
1668 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1669 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1670 nop match. Fix comment wrap.
1672 2013-11-14 Pedro Alves <palves@redhat.com>
1674 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1675 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1677 2013-11-14 Pedro Alves <palves@redhat.com>
1679 * infrun.c (struct execution_control_state)
1680 <stepped_after_stopped_by_watchpoint>: New field.
1681 (get_inferior_stop_soon): New function.
1682 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1683 moved to struct execution_control_state -- adjust. Use
1684 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1686 (handle_signal_stop): New function, factored out from
1687 handle_inferior_event.
1689 2013-11-14 Pedro Alves <palves@redhat.com>
1691 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1693 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1695 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1696 Adjust to return a boolean.
1697 * breakpoint.h (enum bpstat_signal_value): Delete.
1698 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1699 (bpstat_explains_signal): Likewise.
1700 * infrun.c (handle_inferior_event) <random signal checks>:
1701 bpstat_explains_signal now returns a boolean - adjust. No longer
1702 consider hiding signals.
1704 2013-11-14 Pedro Alves <palves@redhat.com>
1706 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1707 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1708 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1710 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1711 instead of BPSTAT_SIGNAL_HIDE.
1712 * infrun.c (handle_inferior_event): Rework random signal checks.
1714 2013-11-14 Pedro Alves <palves@redhat.com>
1716 * infrun.c (struct execution_control_state): Remove
1717 'random_signal' field.
1718 (handle_syscall_event): Use bpstat_causes_stop instead of
1719 bpstat_explains_signal. Don't set ecs->random_signal.
1720 (handle_inferior_event): New 'random_signal' local.
1721 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1722 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1723 bpstat_explains_signal. Don't set ecs->random_signal.
1724 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1727 2013-11-14 Pedro Alves <palves@redhat.com>
1729 * infrun.c (handle_inferior_event): Move comment from the
1730 function's body to the function's description, adjusted.
1732 2013-11-14 Pedro Alves <palves@redhat.com>
1734 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1735 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1736 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1739 2013-11-14 Tom Tromey <tromey@redhat.com>
1741 * python/py-linetable.c (ltpy_has_line)
1742 (ltpy_get_all_source_lines): Fix loop termination condition.
1744 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1746 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1747 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1748 PARSE->LANGUAGE during command execution, if set.
1749 * mi/mi-parse.c: Add "language.h" #include.
1750 (mi_parse): Add parsing of "--language" command option.
1752 * NEWS: Add entry mentioning the new "--language" command option.
1754 2013-11-14 Pedro Alves <palves@redhat.com>
1755 Joel Brobecker <brobecker@adacore.com>
1757 * cli/cli-utils.h (extract_arg_const): Add declaration.
1758 * cli/cli-utils.c (extract_arg_const): New function.
1759 (extract_arg): Reimplement using extract_arg_const.
1761 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1763 * language.h: Add "symtab.h" #include.
1765 2013-11-13 Doug Evans <xdje42@gmail.com>
1767 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1768 specific breakpoints, don't evaluate breakpoint condition if
1771 2013-11-13 Keith Seitz <keiths@redhat.com>
1775 * cp-support.c (insepct_type): Add support for substituting
1776 namespace aliases, too.
1777 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1778 for DW_TAG_imported_declaration.
1779 (add_partial_symbol): Likewise.
1780 (process_die): Handle namespace aliases with
1781 read_namespace_alias.
1782 (die_needs_namespace): Add DW_TAG_imported_declaration.
1783 (read_namespace_alias): New function.
1784 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1785 (new_symbol_full): Handle DW_TAG_imported_declaration.
1787 2013-11-13 Keith Seitz <keiths@redhat.com>
1789 * p-exp.y (uptok): Make first parameter const.
1790 (yylex): Make `tokstart' and `tokptr' const.
1791 Don't copy the lexer input to a temporary buffer.
1793 Remove const workaround for parse_escape.
1794 Create a temporary buffer for a convenience variable instead
1795 of doing in-place modification of the input.
1796 If a match is found with a different case from the input,
1797 do not change the input at all.
1798 Use `tmp' to construct the resultant stoken instead of
1801 2013-11-13 Doug Evans <xdje42@gmail.com>
1803 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1805 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1807 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1808 entry with "ada-exceptions".
1810 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1812 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1813 after re-initialization of OBJFILE's obstack.
1815 2013-11-12 Doug Evans <xdje42@gmail.com>
1817 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1818 bs->stop != 0 on entry. Update function comment. Simplify early
1819 exit for frame mismatch. Reindent rest of function.
1821 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1823 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1826 2013-11-12 Doug Evans <dje@google.com>
1828 Work around gold/15646.
1829 * dwarf2read.c (read_index_from_section): Update comment.
1830 (struct dw2_symtab_iterator): New member global_seen.
1831 (dw2_symtab_iter_init): Initialize it.
1832 (dw2_symtab_iter_next): Skip duplicate global symbols.
1833 (dw2_expand_symtabs_matching): Ditto.
1835 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1837 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1838 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1840 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1841 (mi_cmd_info_ada_exceptions): New function.
1842 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1844 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1846 * ada-lang.h: #include "vec.h".
1847 (struct ada_exc_info): New.
1848 (ada_exc_info): New typedef.
1849 (DEF_VEC_O(ada_exc_info)): New vector.
1850 (ada_exceptions_list): Add declaration.
1851 * ada-lang.c (ada_is_exception_sym)
1852 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1853 (sort_remove_dups_ada_exceptions_list)
1854 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1855 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1856 (ada_exceptions_list_1, ada_exceptions_list)
1857 (info_exceptions_command): New function.
1858 (_initialize_ada_language): Add "info exception" command.
1860 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1863 * NEWS: Add linetable feature.
1864 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1865 * python/py-linetable.c: New file.
1866 * python/py-symtab.c (stpy_get_linetable): New function.
1867 * python/python-internal.h (symtab_to_linetable_object): Declare.
1868 (gdbpy_initialize_linetable): Ditto.
1869 * python/python.c (_initialize_python): Call
1870 gdbpy_initialize_linetable.
1872 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1874 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1875 the documentation of fields "except_string" and "condition".
1876 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1877 CONDITION on the heap before passing it to
1878 create_ada_exception_catchpoint.
1879 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1882 2013-11-11 Tom Tromey <tromey@redhat.com>
1884 * config.in, configure: Rebuild.
1885 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1887 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1889 * remote-sim.c (gdbsim_detach): Break declaration into
1890 shorter lines. No code change.
1892 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1894 * remote-sim.c (gdbsim_detach): Fix prototype.
1896 2013-11-08 Doug Evans <dje@google.com>
1898 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1899 (create_debug_types_hash_table): Only print debugging messages for
1900 each TU if dwarf2-read >= 2.
1901 (process_queue): Ditto.
1902 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1905 2013-11-08 Tom Tromey <tromey@redhat.com>
1907 * configure: Rebuild.
1908 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1910 2013-11-08 Tom Tromey <tromey@redhat.com>
1912 * configure, config.in: Rebuild.
1913 * configure.ac: Remove unused configury.
1915 2013-11-08 Tom Tromey <tromey@redhat.com>
1917 * m32c-tdep.c: Use gdb_string.h.
1919 2013-11-08 Tom Tromey <tromey@redhat.com>
1921 * configure, config.in: Rebuild.
1922 * configure.ac: Remove all link.h-related checks.
1924 2013-11-08 Tom Tromey <tromey@redhat.com>
1926 * acinclude.m4: Include common.m4.
1927 * common/common.m4: New file.
1928 * configure, config.in: Rebuild.
1929 * configure.ac: Use GDB_AC_COMMON.
1931 2013-11-08 Doug Evans <dje@google.com>
1933 * NEWS: Mention that "set debug symtab-create" now accepts a
1935 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1936 to set the symtab's primary flag.
1937 * jit.c (finalize_symtab): Ditto.
1938 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1939 * symfile.c (allocate_symtab): Only print debugging messages for
1940 symtab_create_debug levels 2 and higher.
1941 * symtab.c (symtab_create_debug): Change type to unsigned int.
1942 (set_symtab_primary): New function.
1943 (_initialize_symtab): Change "set debug symtab-create" to a
1945 * symtab.h (set_symtab_primary): Declare.
1946 (symtab_create_debug): Update decl.
1948 2013-11-08 Tom Tromey <tromey@redhat.com>
1950 * aix-thread.c (aix_thread_detach): Update.
1951 * corelow.c (core_detach): Update.
1952 * darwin-nat.c (darwin_detach): Update.
1953 * dec-thread.c (dec_thread_detach): Update.
1954 * gnu-nat.c (gnu_detach): Update.
1955 * go32-nat.c (go32_detach): Update.
1956 * inf-ptrace.c (inf_ptrace_detach): Update.
1957 * inf-ttrace.c (inf_ttrace_detach): Update.
1958 * linux-fork.c (linux_fork_detach): Update.
1959 * linux-fork.h (linux_fork_detach): Update.
1960 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1961 local for const-correctness.
1962 * linux-thread-db.c (thread_db_detach): Update.
1963 * monitor.c (monitor_detach): Update.
1964 * nto-procfs.c (procfs_detach): Update.
1965 * procfs.c (procfs_detach): Update.
1966 * record.c (record_detach): Update.
1967 * record.h (record_detach): Update.
1968 * remote-m32r-sdi.c (m32r_detach): Update.
1969 * remote-mips.c (mips_detach): Update.
1970 * remote-sim.c (gdbsim_detach): Update.
1971 * remote.c (remote_detach_1, remote_detach)
1972 (extended_remote_detach): Update.
1973 * sol-thread.c (sol_thread_detach): Update.
1974 * target.c (target_detach): Make "args" const.
1975 (init_dummy_target): Update.
1976 * target.h (struct target_ops) <to_detach>: Make argument const.
1977 (target_detach): Likewise.
1978 * windows-nat.c (windows_detach): Update.
1980 2013-11-07 Doug Evans <dje@google.com>
1983 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1984 and align fields for PT_GNU_RELRO segments.
1986 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1989 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1991 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1993 * NEWS: Document Python temporary breakpoint support.
1994 * python/py-breakpoint.c (bppy_get_temporary): New function.
1995 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1996 to temporary if True.
1998 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2000 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2001 removed to allow analyzing unconditional branch instructions
2002 with PC-relative offsets of zero.
2004 2013-11-07 Yao Qi <yao@codesourcery.com>
2006 * mi/mi-cmd-var.c: Include "language.h".
2007 (mi_cmd_var_info_expression): Get language name from
2009 * varobj.c (varobj_language_string): Remove.
2010 (variable_language): Remove declaration.
2011 (languages): Remove.
2012 (varobj_get_language): Change the type of return value.
2013 (variable_language): Remove.
2014 * varobj.h (enum varobj_languages): Remove.
2015 (varobj_language_string): Remove declaration.
2016 (varobj_get_language): Update declaration.
2018 2013-11-07 Yao Qi <yao@codesourcery.com>
2020 * language.h (struct language_defn) <la_natural_name>: New
2022 * ada-lang.c (ada_language_defn): Initialize field
2024 * c-lang.c (c_language_defn): Likewise.
2025 (cplus_language_defn, asm_language_defn): Likewise.
2026 * d-lang.c (d_language_defn): Likewise.
2027 * f-lang.c (f_language_defn): Likewise.
2028 * go-lang.c (go_language_defn): Likewise.
2029 * jv-lang.c (java_language_defn): Likewise.
2030 * language.c (unknown_language_defn ): Likewise.
2031 (auto_language_defn): Likewise.
2032 * m2-lang.c (m2_language_defn): Likewise.
2033 * objc-lang.c (objc_language_defn): Likewise.
2034 * opencl-lang.c (opencl_language_defn): Likewise.
2035 * p-lang.c (pascal_language_defn): Likewise.
2037 2013-11-07 Yao Qi <yao@codesourcery.com>
2039 * language.c (language_str): Return const char *.
2040 (add_language): Add const to 'language_names'
2041 * language.h (struct language_defn) <la_name>: Add const.
2042 (language_str: Update declaration.
2044 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2046 * s390-linux-nat.c (s390_read_description): Consider the TE field
2047 in the HWCAP for determining 'have_regset_tdb'.
2049 2013-11-06 Will Newton <will.newton@linaro.org>
2052 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2053 values. (read_partial_die): Likewise.
2055 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2058 * top.c (command_line_input): Unify interactivity tests to use
2059 input_from_terminal_p.
2060 * event-top.c (command_line_handler): Likewise.
2062 2013-11-06 Yao Qi <yao@codesourcery.com>
2064 * Makefile.in (check-perf): New target.
2066 2013-11-05 Will Newton <will.newton@linaro.org>
2069 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2070 (arm_print_float_info): Likewise.
2072 2013-11-04 Anton Blanchard <anton@samba.org>
2074 * target.c (memory_xfer_partial): Cap write to 4KB.
2076 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2078 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2079 probe scan even when the arch provides no get_longjmp_target.
2081 2013-10-31 Pedro Alves <palves@redhat.com>
2083 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2084 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2085 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2086 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2087 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2088 <bpstat handling>: If the bpstat chain wants the signal to be
2089 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2092 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
2094 * breakpoint.c (update_watchpoint): Update error message and add
2095 an additional error message.
2097 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099 * s390-tdep.h: Rename to...
2100 * s390-linux-tdep.h: ...here.
2101 * s390-tdep.c: Rename to...
2102 * s390-linux-tdep.c: ...here. Adjust #include.
2103 * s390-nat.c: Rename to...
2104 * s390-linux-nat.c: ...here. Adjust #include.
2105 * config/s390/s390.mh: Rename to...
2106 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2108 * configure.host: Reflect host rename "s390" -> "linux".
2109 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2110 * Makefile.in (ALL_TARGET_OBS): Likewise.
2111 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2113 (ALLDEPFILES): Reflect rename of .c files.
2115 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117 * s390-nat.c: Whitespace cleanup.
2118 * s390-tdep.c: Likewise.
2119 * s390-tdep.h: Remove empty line at end of file.
2121 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2123 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2126 2013-10-29 Tom Tromey <tromey@redhat.com>
2128 * utils.c (reg): Move undefinition...
2129 * gdb_curses.h: ... here. Update comment to mention AIX.
2131 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2133 * exec.h (add_target_sections_of_objfile): New declaration.
2134 * exec.c (add_target_sections_of_objfile): New function.
2135 * symfile.c (add_symbol_file_command): Update current target sections.
2136 (remove_symbol_file_command): New command.
2137 (symfile_free_objfile): New function.
2138 (_initialize_symfile): Register observer for free_objfile events.
2139 * NEWS: Add description of the remove-symbol-file command.
2140 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2141 * objfiles.c (free_objfile): Notify free_objfile.
2142 (is_addr_in_objfile): New function.
2143 * objfiles.h (is_addr_in_objfile): New declaration.
2144 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2145 events instead of solib_unloaded events.
2146 (_initialize_printcmd): Register observer for free_objfile instead
2147 of solib_unloaded notifications.
2148 * solib.c (remove_user_added_objfile): New function.
2149 (_initialize_symfile): Add remove-symbol-file.
2151 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2153 * infcmd.c (default_print_one_register_info): Use val_print to
2154 print all values even optimized out or unavailable ones. Don't
2155 try to print a raw form of optimized out or unavailable values.
2157 2013-10-29 Yao Qi <yao@codesourcery.com>
2159 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2160 parameter 'arg' instead of from program_space_data.
2161 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2162 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2163 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2164 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2165 * inflow.c (inflow_inferior_data_cleanup): Get data from
2166 parameter 'arg' instead of inferior_data.
2167 * registry.h: Add comments.
2169 2013-10-28 Pedro Alves <palves@redhat.com>
2171 * breakpoint.c (watchpoints_triggered)
2172 <!target_stopped_data_address>: Hardcode return 1.
2174 2013-10-28 Pedro Alves <palves@redhat.com>
2176 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2179 2013-10-28 Pedro Alves <palves@redhat.com>
2181 * infrun.c (process_event_stop_test): New function, factored out
2182 from handle_inferior_event.
2183 (handle_inferior_event): 'process_event_stop_test' is now a
2184 function instead of a goto label -- adjust.
2186 2013-10-28 Pedro Alves <palves@redhat.com>
2188 * infrun.c (handle_inferior_event): Move process_event_stop_test
2189 goto label to the else branch of the ecs->random_signal check,
2190 along with FRAME and GDBARCH re-fetching.
2192 2013-10-28 Pedro Alves <palves@redhat.com>
2194 * infrun.c (switch_back_to_stepped_thread): New function, factored
2195 out from handle_inferior_event.
2196 (handle_inferior_event): Adjust to call
2197 switch_back_to_stepped_thread. Call it also at the tail of the
2198 random signal handling, and return, instead of also handling
2199 random signals just before the stepping tests.
2201 2013-10-28 Pedro Alves <palves@redhat.com>
2203 * infrun.c (clear_stop_func): Delete.
2204 (handle_inferior_event): Don't call clear_stop_func and don't
2205 clear 'ecs->random_signal'.
2207 2013-10-27 Yao Qi <yao@codesourcery.com>
2209 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2210 (varobj_create, varobj_get_path_expr): Update.
2211 (varobj_value_has_mutated, varobj_update): Likewise.
2212 (create_child_with_value, new_root_variable): Likewise.
2213 (number_of_children, name_of_variable): Likewise.
2214 (value_of_child, my_value_of_variable): Likewise.
2215 (varobj_value_is_changeable_p): Likewise.
2217 2013-10-25 Yao Qi <yao@codesourcery.com>
2219 * language.h (struct lang_varobj_ops): Declare.
2220 (struct language_defn) <la_varobj_ops>: New field.
2221 * ada-lang.c: Include "varobj.h"
2222 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2224 * c-lang.c: Include "varobj.h"
2225 (c_language_defn): Initialize field 'la_varobj_ops' with
2227 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2229 (asm_language_defn): Initialize field 'la_varobj_ops' with
2231 (minimal_language_defn): Likewise.
2232 * d-lang.c (d_language_defn): Likewise.
2233 * f-lang.c (f_language_defn): Likewise.
2234 * go-lang.c (go_language_defn): Likewise.
2235 * m2-lang.c (m2_language_defn): Likewise.
2236 * objc-lang.c (objc_language_defn): Likewise.
2237 * opencl-lang.c (opencl_language_defn): Likewise.
2238 * p-lang.c (pascal_language_defn): Likewise.
2239 * language.c (unknown_language_defn): Likewise.
2240 (auto_language_defn): Likewise.
2241 (local_language_defn): Likewise.
2242 * jv-lang.c (java_language_defn): Initialize field
2243 'la_varobj_ops' with java_varobj_ops.
2244 * varobj.c (varobj_create): Update.
2245 * varobj.h (default_varobj_ops): Define macro.
2247 2013-10-25 Pedro Alves <palves@redhat.com>
2249 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2251 (cp_print_static_field): If the value is entirely optimized out,
2252 print <optimized out> here.
2253 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2255 * p-valprint.c (pascal_object_print_static_field): If the value is
2256 entirely optimized out, print <optimized out> here.
2257 * valops.c (do_search_struct_field)
2258 (value_struct_elt_for_reference): No longer handle a NULL static
2260 * value.c (value_static_field): Return an optimized out value
2263 2013-10-25 Yao Qi <yao@codesourcery.com>
2265 * remote.c (remote_traceframe_info): Return early if
2266 traceframe is not selected.
2268 2013-10-25 Yao Qi <yao@codesourcery.com>
2270 * tracepoint.c (traceframe_fun): Remove.
2271 (traceframe_sal): Remove.
2272 (set_traceframe_context): Add local variables.
2274 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2276 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2279 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2281 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2282 failure from register information collection.
2284 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2286 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2288 (linux_corefile_thread_callback): Update accordingly.
2289 (linux_make_corefile_notes): Likewise.
2291 2013-10-24 Pedro Alves <palves@redhat.com>
2293 * NEWS (New options): Mention set/show startup-with-shell.
2294 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2296 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2297 startup-with-shell'.
2298 (show_startup_with_shell): New function.
2299 (_initialize_fork_child): Register the set/show startup-with-shell
2301 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2302 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2303 * procfs.c (procfs_init_inferior): Remove comment.
2304 * infcmd.c (startup_with_shell): New global.
2305 * inferior.h (startup_with_shell): Declare global.
2306 (STARTUP_WITH_SHELL): Delete.
2307 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2309 2013-10-23 Pedro Alves <palves@redhat.com>
2311 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2312 * common/signals.c: Include "gdb_assert.h".
2313 (signals): New field 'symbol'.
2314 (SET): Use the 'symbol' parameter.
2315 (gdb_signal_to_symbol_string): New function.
2316 * infrun.c (handle_inferior_event) <random signal>: In debug
2317 output, print the random signal enum as string in addition to its
2319 * target/waitstatus.c (target_waitstatus_to_string): Print the
2320 signal's enum value as string instead of the (POSIX) signal name.
2322 2013-10-23 Gary Benson <gbenson@redhat.com>
2325 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2326 from 32 to 18. Adjusted fscanf format string accordingly.
2327 (Avoids leaving cmd unterminated.)
2328 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2329 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2330 that local_address and remote_address will not overflow.
2331 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2332 leaving dependencies unterminated. Parse size as "%u" to match
2335 2013-10-22 Pedro Alves <palves@redhat.com>
2337 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2338 set ecs->random signal.
2340 2013-10-22 Pedro Alves <palves@redhat.com>
2342 * infrun.c (keep_going): Update comments.
2344 2013-10-22 Pedro Alves <palves@redhat.com>
2346 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2347 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2349 2013-10-22 Pedro Alves <palves@redhat.com>
2351 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2353 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2354 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2355 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2356 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2357 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2358 (GDB_SIGNAL_LAST): Change description string.
2359 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2360 Adjust to signal renaming.
2361 * darwin-nat.c (darwin_decode_message): Likewise.
2363 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2365 * MAINTAINERS (Write After Approval): Add myself to the list.
2367 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2369 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2370 forced off, downgrade them to software watchpoints if possible,
2371 and error out if not possible.
2372 (watch_command_1): Move watchpoint type selection closer to
2373 watchpoint creation, and extend the comments.
2375 2013-10-18 Pedro Alves <palves@redhat.com>
2378 * infrun.c (handle_inferior_event): Keep going if we got a random
2379 signal we should not stop for, instead of falling through to the
2382 2013-10-18 Yao Qi <yao@codesourcery.com>
2384 * c-varobj.c (cplus_number_of_children): Fix indentation.
2386 2013-10-17 Tom Tromey <tromey@redhat.com>
2389 * printcmd.c (printcmd): Call gdb_flush.
2391 2013-10-17 Tom Tromey <tromey@redhat.com>
2393 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2394 (elf_locate_sections): Update.
2396 2013-10-17 Yao Qi <yao@codesourcery.com>
2398 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2399 * ada-varobj.c: Remove the include of ada-varobj.h.
2400 (ada_varobj_get_number_of_children): Declare.
2401 (ada_varobj_get_name_of_child): Make it static.
2402 (ada_varobj_get_path_expr_of_child): Likewise.
2403 (ada_varobj_get_value_of_child): Likewise.
2404 (ada_varobj_get_type_of_child): Likewise.
2405 (ada_varobj_get_value_of_array_variable): Likewise.
2406 * ada-varobj.h: Remove.
2408 2013-10-17 Yao Qi <yao@codesourcery.com>
2410 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2411 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2412 * ada-varobj.c: Include "varobj.h".
2413 (ada_number_of_children): New. Moved from varobj.c.
2414 (ada_name_of_variable, ada_name_of_child): Likewise.
2415 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2416 (ada_type_of_child, ada_value_of_variable): Likewise.
2417 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2418 (ada_varobj_ops): New.
2419 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2420 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2421 * gdbtypes.h (get_target_type): Declare.
2422 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2424 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2425 (ANONYMOUS_UNION_NAME): Likewise.
2426 (get_type, get_value_type, get_target_type): Remove declarations.
2427 (value_get_print_value, varobj_value_get_print_value): Likewise.
2428 (c_number_of_children, c_name_of_variable): Likewise.
2429 (c_name_of_child, c_path_expr_of_child): Likewise.
2430 (c_value_of_child, c_type_of_child): Likewise.
2431 (c_value_of_variable, cplus_number_of_children): Likewise.
2432 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2433 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2434 (cplus_value_of_child, cplus_type_of_child): Likewise.
2435 (cplus_value_of_variable, java_number_of_children): Likewise.
2436 (java_name_of_variable, java_name_of_child): Likewise.
2437 (java_path_expr_of_child, java_value_of_child): Likewise.
2438 (java_type_of_child, java_value_of_variable): Likewise.
2439 (ada_number_of_children, ada_name_of_variable): Likewise.
2440 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2441 (ada_value_of_child, ada_type_of_child): Likewise.
2442 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2443 (ada_value_has_mutated): Likewise.
2444 (struct language_specific): Move it to varobj.h.
2445 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2446 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2448 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2450 (is_anonymous_child): Move it to c-varobj.c and rename to
2451 varobj_is_anonymous_child. Caller update.
2452 (get_type): Move it to c-varobj.c.
2453 (get_value_type): Rename it varobj_get_value_type. Make it
2455 (get_target_type): Move it gdbtypes.c.
2456 (varobj_formatted_print_options): New function.
2457 (value_get_print_value): Rename it to
2458 varobj_value_get_print_value and make it extern.
2459 (varobj_value_is_changeable_p): Make it extern.
2460 (adjust_value_for_child_access): Move it to c-varobj.c.
2461 (default_value_is_changeable_p): Rename it to
2462 varobj_default_value_is_changeable_p. Make it extern.
2463 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2464 (c_name_of_child, c_path_expr_of_child): Likewise.
2465 (c_value_of_child, c_type_of_child): Likewise.
2466 (c_value_of_variable, cplus_number_of_children): Likewise.
2467 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2468 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2469 (cplus_value_of_child, cplus_type_of_child): Likewise.
2470 (cplus_value_of_variable): Likewise.
2471 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2472 (java_name_of_child, java_path_expr_of_child): Likewise.
2473 (java_value_of_child, java_type_of_child): Likewise.
2474 (java_value_of_variable): Likewise.
2475 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2476 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2477 (ada_value_of_child, ada_type_of_child): Likewise.
2478 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2479 (ada_value_has_mutated): Likewise.
2480 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2481 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2482 (c_varobj_ops, cplus_varobj_ops): Declare.
2483 (java_varobj_ops, ada_varobj_ops): Declare.
2484 (varobj_default_value_is_changeable_p): Declare.
2485 (varobj_value_is_changeable_p): Declare.
2486 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2487 (varobj_get_path_expr_parent): Declare.
2488 (varobj_value_get_print_value): Declare.
2489 (varobj_formatted_print_options): Declare.
2490 (varobj_restrict_range): Declare.
2492 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2494 * target/waitstatus.h (target_waitkind): Remove spurious
2495 character from the comments.
2497 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2499 * gdbarch.sh (get_longjmp_target): Add method documentation.
2500 * gdbarch.h: Regenerate.
2502 2013-10-16 Tom Tromey <tromey@redhat.com>
2504 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2507 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2509 * gcore.in: Call GDB using the full path to the gcore script.
2510 Error out if the GDB binary is not found.
2512 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2515 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2518 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2521 * target.c (target_disable_btrace): Fix invalid return value for
2523 (target_teardown_btrace): Likewise.
2525 2013-10-14 Yao Qi <yao@codesourcery.com>
2527 * varobj.c (struct varobj): Move most of the fields to
2529 (struct varobj_dynamic): New struct.
2530 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2531 (varobj_has_more): Likewise.
2532 (dynamic_varobj_has_child_method): Likewise.
2533 (update_dynamic_varobj_children): Likewise.
2534 (varobj_get_num_children): Likewise.
2535 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2536 (install_new_value_visualizer): Likewise.
2537 (install_new_value_visualizer, install_new_value): Likewise.
2538 (varobj_update, new_variable, free_variable): Likewise.
2539 (my_value_of_variable, value_get_print_value): Likewise.
2540 (install_visualizer): Change the type of parameter 'var' to
2541 'struct varobjd_dynamic *'. Callers update.
2542 * varobj.h (struct varobj): Moved from varobj.c.
2543 (struct varobj) <dynamic>: New field.
2545 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2547 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2548 as the preferred name of r30.
2549 * nios2-linux-tdep.c (reg_offsets): Likewise.
2550 * features/nios2-cpu.xml: Likewise.
2551 * features/nios2-linux.c: Regenerated.
2552 * features/nios2.c: Regenerated.
2553 * regformats/nios2-linux.dat: Regenerated.
2555 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2557 Canonicalize directories for EXEC_FILENAME.
2558 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2560 * utils.c (gdb_realpath_keepfile): New function.
2561 * utils.h (gdb_realpath_keepfile): New declaration.
2563 2013-10-11 Doug Evans <dje@google.com>
2565 * Makefile.in (GDBFLAGS): New variable.
2568 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2570 * NEWS: Add entry documenting the new "-catch-assert" and
2571 "-catch-exception" GDB/MI commands.
2573 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2575 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2577 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2578 "enabled". Set B->ENABLE_STATE accordingly.
2579 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2581 (create_ada_exception_catchpoint): Add declaration.
2582 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2583 (create_ada_exception_catchpoint): Make non-static. Add new
2584 parameter "disabled". Use it in call to
2585 init_ada_exception_breakpoint.
2586 (catch_ada_exception_command): Add parameter "enabled" in call
2587 to create_ada_exception_catchpoint.
2588 (catch_assert_command): Likewise.
2590 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2592 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2593 "catch-exception" commands.
2594 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2595 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2597 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2599 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2600 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2601 of all its enumerates with "ada_". Update the rest of this
2604 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2606 * ada-lang.c (ada_decode_exception_location): Delete.
2607 (create_ada_exception_catchpoint): Remove arguments "sal",
2608 "addr_string" and "ops". Add argument "ex_kind" instead.
2609 Adjust implementation accordingly, calling ada_exception_sal
2610 to get the entities it no longer gets passed as arguments.
2611 Document the function's arguments.
2612 (catch_ada_exception_command): Use catch_ada_exception_command_split
2613 instead of ada_decode_exception_location, and update call to
2614 create_ada_exception_catchpoint.
2615 (catch_ada_assert_command_split): Renames
2616 ada_decode_assert_location. Remove parameters "addr_string" and
2617 "ops", and now returns void. Adjust implementation accordingly.
2618 Update the function documentation.
2619 (catch_assert_command): Use catch_ada_assert_command_split
2620 instead of ada_decode_assert_location. Update call to
2621 create_ada_exception_catchpoint.
2623 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2625 * utils.h (perror_warning_with_name): Add declaration.
2626 * utils.c (perror_warning_with_name): New function.
2627 * cli/cli-cmds.c (source_script_with_search): Add call to
2628 perror_warning_with_name if from_tty is nul.
2630 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2632 * utils.c (perror_string): New function, extracted out of
2633 throw_perror_with_name.
2634 (throw_perror_with_name): Rework to use perror_string.
2636 2013-10-11 Yao Qi <yao@codesourcery.com>
2638 * remote.c (discard_pending_stop_replies_in_queue): Update
2640 (struct stop_reply) <rs>: New field.
2641 (remove_stop_reply_of_remote_state): New function.
2642 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2643 Callers update. Pass remove_stop_reply_of_remote_state to
2645 (remote_parse_stop_reply): Initialize field 'rs'.
2647 2013-10-10 Will Newton <will.newton@linaro.org>
2649 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2652 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2654 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2655 serial_baud_show_cmd.
2656 (_initialize_cli_cmds): Delete the code creating the
2657 "set/show remotebaud" commands.
2658 * serial.c (baud_rate): Move here from top.c.
2659 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2660 (_initialize_serial): Create "set/show serial baud" commands.
2661 Add "set/show remotebaud" command aliases.
2662 * top.c (baud_rate): Moved to serial.c.
2663 * NEWS: Document the new "set/show serial baud" commands,
2664 replacing "set/show remotebaud".
2666 2013-10-09 Pedro Alves <palves@redhat.com>
2668 * breakpoint.c (insert_bp_location): Use memory_error_message to
2669 build the memory error string.
2670 * c-lang.c: Include "gdbcore.h".
2671 (c_get_string): Use memory_error to throw error.
2672 (target_xfer_memory_error): Delete.
2673 (memory_error_message): New, factored out from
2674 target_xfer_memory_error.
2675 (memory_error): Change parameter type to target_xfer_error.
2677 (read_memory): Use memory_error instead of
2678 target_xfer_memory_error.
2679 * gdbcore.h: Include "target.h".
2680 (memory_error): Change parameter type to target_xfer_error.
2681 (memory_error_message): Declare function.
2682 * target.c (target_read_memory, target_read_stack)
2683 (target_write_memory, target_write_raw_memory): Return
2684 TARGET_XFER_E_IO on error. Adjust comments.
2685 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2687 * target.h (target_read, target_insert_breakpoint)
2688 (target_remove_breakpoint): Adjust comments.
2689 * valprint.c (partial_memory_read): Rename parameter, and adjust
2691 (val_print_string): Use memory_error_message to build the memory
2694 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2696 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2697 result variable. Rename variable fopen_e_ever_failed to
2698 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2700 2013-10-09 Pedro Alves <palves@redhat.com>
2702 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2703 (monitor_write_memory_longlongs, monitor_write_memory_block):
2704 Constify 'myaddr' parameter.
2705 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2707 (monitor_xfer_partial): New function.
2708 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2709 hook. Install a to_xfer_partial hook.
2711 2013-10-09 Tom Tromey <tromey@redhat.com>
2713 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2714 bfd_get_alt_debug_link_info.
2716 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 New flag OBJF_NOT_FILENAME.
2719 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2720 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2722 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2723 symbol_file_add_from_bfd.
2724 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2726 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2728 * objfiles.h (OBJF_NOT_FILENAME): New.
2730 2013-10-08 Tom Tromey <tromey@redhat.com>
2732 * Makefile.in (SFILES): Add build-id.c.
2733 (HFILES_NO_SRCDIR): Add build-id.h.
2734 * build-id.c: New file, largely from elfread.c. Modified
2736 * build-id.h: New file.
2737 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2738 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2739 Search for dwz file using build-id.
2740 * elfread.c (build_id_bfd_get, build_id_verify)
2741 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2743 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2745 * ada-lang.c (compare_names_with_case): Renamed from
2746 compare_names, adding a new parameter "casing" and its handling.
2747 New function documentation.
2748 (compare_names): New function, implemented using
2749 compare_names_with_case.
2751 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2753 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2755 2013-10-07 Tom Tromey <tromey@redhat.com>
2757 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2758 demangled_names_hash.
2759 (free_objfile): Don't delete the demangled_names_hash.
2760 * objfiles.h (struct objfile_per_bfd_storage)
2761 <demangled_names_hash>: New field.
2762 (struct objfile) <demangled_names_hash>: Move to
2763 objfile_per_bfd_storage.
2764 * symfile.c (reread_symbols): Don't delete the
2765 demangled_names_hash.
2766 * symtab.c (create_demangled_names_hash): Update.
2767 (symbol_set_names): Update.
2769 2013-10-07 Tom Tromey <tromey@redhat.com>
2771 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2772 needs_relocations>: New fields.
2773 (gdb_bfd_requires_relocations): New function.
2774 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2775 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2776 the BFD needs relocations applied.
2778 2013-10-07 Pedro Alves <palves@redhat.com>
2780 PR breakpoints/11568
2781 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2782 the thread list" instead of "gone".
2784 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2786 * NEWS: Mention new convenience variable $_exitsignal.
2787 * corelow.c (core_open): Reset exit convenience variables. Set
2788 $_exitsignal to the uncaught signal which generated the corefile.
2789 * infrun.c (handle_inferior_event): Reset exit convenience
2790 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2791 (clear_exit_convenience_vars): New function.
2792 * inferior.h (clear_exit_convenience_vars): New prototype.
2794 2013-10-06 Yao Qi <yao@codesourcery.com>
2796 * varobj.h: Add comments to enum varobj_languages.
2798 2013-10-04 Doug Evans <dje@google.com>
2800 Add support for DWP file format version 2.
2801 * NEWS: Mention support for DWP file format version 2.
2802 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2803 union of asection, containing_section. New fields virtual_offset
2804 and is_virtual. Change type of readin filed from int to char.
2805 (dwo_sections, dwo_file): Tweak comments.
2806 (dwp_v2_section_ids): New enum.
2807 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2809 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2811 (virtual_v2_dwo_sections): New struct.
2812 (dwp_hash_table): New fields version, nr_columns. Change type of
2813 section_pool field to a union.
2814 (dwp_file): New field version.
2815 (dwarf2_has_info): Check for virtual sections.
2816 (get_containing_section): New function.
2817 (get_section_bfd_owner, get_section_bfd_section): Call it.
2818 (dwarf2_locate_sections): Update.
2819 (dwarf2_section_empty_p): Update.
2820 (dwarf2_read_section): Handle virtual sections.
2821 (locate_dwz_sections): Update.
2822 (create_dwp_hash_table): Document and handle V2 format.
2823 (locate_v1_virtual_dwo_sections): Renamed from
2824 locate_virtual_dwo_sections and update. All callers updated.
2825 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2826 Delete arg htab. Rename arg section_index to unit_index.
2827 All callers updated.
2828 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2830 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2831 (lookup_dwo_unit_in_dwp): Add V2 support.
2832 (dwarf2_locate_dwo_sections): Update.
2833 (dwarf2_locate_common_dwp_sections): Renamed from
2834 dwarf2_locate_dwp_sections and update. All callers updated.
2835 (dwarf2_locate_v2_dwp_sections): New function.
2836 (open_and_init_dwp_file): Add V2 support.
2837 (read_str_index): New locals str_section, str_offsets_section.
2839 2013-10-04 Pedro Alves <palves@redhat.com>
2841 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2842 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2843 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2844 describing comments with references to ptid.h.
2845 * common/ptid.h: Remove intro description of constructors,
2846 accessors and predicates.
2847 (struct ptid): Reformat.
2848 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2849 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2850 describing comments.
2852 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2854 * aix-thread.c (sync_threadlists): Add missing ')' in call
2857 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2859 * procfs.c (procfs_init_inferior): Fix typo causing the build
2862 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2864 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2866 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2868 * mi/mi-main.c (run_one_inferior): Add function description.
2869 Make ARG a pointer to an integer whose value determines whether
2870 we should "run" or "start" the program.
2871 (mi_cmd_exec_run): Add handling of the "--start" option.
2872 Reject all other command-line options.
2873 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2875 2013-10-04 Yao Qi <yao@codesourcery.com>
2877 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2878 (struct notif_client) <pending_event>: Moved
2879 to struct remote_notif_state.
2881 (struct remote_notif_state) <pending_event>: New field.
2882 (notif_event_xfree): Declare.
2883 * remote-notif.c (handle_notification): Adjust.
2884 (notif_event_xfree): New function.
2885 (do_notif_event_xfree): Call notif_event_xfree.
2886 (remote_notif_state_xfree): Call notif_event_xfree to free
2887 each element in field pending_event.
2888 * remote.c (discard_pending_stop_replies): Remove declaration.
2889 (discard_pending_stop_replies_in_queue): Declare.
2890 (remote_close): Call discard_pending_stop_replies_in_queue
2891 instead of discard_pending_stop_replies.
2892 (remote_start_remote): Adjust.
2893 (stop_reply_xfree): Call notif_event_xfree.
2894 (notif_client_stop): Adjust initialization.
2895 (remote_notif_remove_all): Rename it to ...
2896 (remove_stop_reply_for_inferior): ... this. Update comments.
2897 Don't check INF is NULL.
2898 (discard_pending_stop_replies): Return early if notif_state is
2899 NULL. Adjust. Don't check INF is NULL.
2900 (remote_notif_get_pending_events): Adjust.
2901 (discard_pending_stop_replies_in_queue): New function.
2902 (remote_wait_ns): Likewise.
2904 2013-10-04 Yao Qi <yao@codesourcery.com>
2906 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2907 (notif_queue): Remove.
2908 (remote_notif_process): Add one parameter 'notif_queue'.
2909 Update comments. Callers update.
2910 (remote_async_get_pending_events_token): Remove.
2911 (remote_notif_register_async_event_handler): Remove.
2912 (remote_notif_unregister_async_event_handler): Remove.
2913 (handle_notification): Add parameter 'notif_queue'. Update
2914 comments. Callers update.
2915 (notif_xfree): Remove.
2916 (remote_notif_state_allocate): New function.
2917 (remote_notif_state_xfree): New function.
2918 (_initialize_notif): Remove code to allocate queue.
2919 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2920 (struct remote_notif_state): New.
2921 (handle_notification): Update declaration.
2922 (remote_notif_process): Likewise.
2923 (remote_notif_register_async_event_handler): Remove.
2924 (remote_notif_unregister_async_event_handler): Remove.
2925 (remote_notif_state_allocate): Declare.
2926 (remote_notif_state_xfree): Declare.
2927 * remote.c (struct remote_state) <notif_state>: New field.
2928 (remote_close): Don't call
2929 remote_notif_unregister_async_event_handler. Call
2930 remote_notif_state_xfree.
2931 (remote_open_1): Don't call
2932 remote_notif_register_async_event_handler. Call
2933 remote_notif_state_allocate.
2935 2013-10-04 Yao Qi <yao@codesourcery.com>
2937 * varobj.c (create_child_with_value): Remove 'const' from the
2938 type of parameter 'name'.
2939 (varobj_add_child): Likewise.
2940 (install_dynamic_child): Remove 'const' from the type of
2942 (varobj_add_child): Likewise.
2943 (create_child_with_value): Likewise. Update comments. Don't
2945 (update_dynamic_varobj_children): Duplicate 'name'
2946 and pass it to install_dynamic_child.
2948 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2950 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2951 conversion logic to occur after PyLong_Check. Comment on order
2952 change significance.
2953 * python/py-arch.c (archpy_disassemble): Comment on order of
2954 conversion for integers and longs.
2956 2013-10-03 Pedro Alves <palves@redhat.com>
2958 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2959 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2960 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2961 PTRACE_O_TRACEFORK is not supported.
2962 (linux_test_for_tracesysgood): New function.
2963 (linux_test_for_tracefork): New function, factored out from
2964 linux_check_ptrace_features, and also don't kill child_pid here.
2966 2013-10-03 Tristan Gingold <gingold@adacore.com>
2968 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2969 Remove verbose error reporting. Use detected state to
2970 thread_set_state call.
2971 (i386_darwin_dr_get): Fix return type. Remove verbose error
2973 Remove trailing spaces.
2975 2013-10-02 Pedro Alves <palves@redhat.com>
2977 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2978 val_print_optimized_out.
2979 * jv-valprint.c (java_print_value_fields): Likewise.
2980 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2981 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2982 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2983 new optimized out value.
2984 * findvar.c (address_from_register): Likewise.
2985 * frame.c (put_frame_register): Tweak error string to say the
2986 register was not saved, rather than optimized out.
2987 * infcmd.c (default_print_one_register_info): Adjust call to
2988 val_print_optimized_out. Use value_of_register instead of
2989 get_frame_register_value.
2990 * mi/mi-main.c (output_register): Use value_of_register instead of
2991 get_frame_register_value.
2992 * valprint.c (valprint_check_validity): Likewise.
2993 (val_print_optimized_out): New value parameter. If the value is
2994 lval_register, print <not saved> instead.
2995 (value_check_printable, val_print_scalar_formatted): Adjust calls
2996 to val_print_optimized_out.
2997 * valprint.h (val_print_optimized_out): New value parameter.
2998 * value.c (struct value) <optimized_out>: Extend comment.
2999 (error_value_optimized_out): New function.
3000 (require_not_optimized_out): Use it. Use a different string for
3001 lval_register values.
3002 * value.h (error_value_optimized_out): New declaration.
3003 * NEWS: Mention <not saved>.
3005 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3007 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3008 strcmp to compare two symtab filenames.
3010 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3012 * symtab.c (search_symbols_equal): Delete.
3013 (sort_search_symbols_remove_dups): Replace call to
3014 search_symbols_equal by call to compare_search_syms,
3015 adjusting as necessary.
3017 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3020 * python/python.c: Document gdb.execute command in Python help.
3022 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3024 * python/py-frame.c (frame_info_to_frame_object): Use
3025 gdbpy_convert_exception. Clean up Python object on failure.
3027 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3029 * python/lib/gdb/command/frame_filters.py
3030 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3031 (ShowFrameFilterPriority.invoke): Ditto.
3033 2013-10-01 Keith Seitz <keiths@redhat.com>
3035 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3036 (parse_linespec): Make 'argptr' const.
3037 Remove temporary cast of 'argptr' to const char **.
3038 (decode_line_full): Pass const pointer to parse_linespec.
3039 (decode_line_1): Likewise.
3040 (decode_objc): Make local variable 'new_argptr' const.
3041 (find_function_symbols): Remove temporary cast to char *
3043 * objc-lang.c (find_imps): Make argument 'method' const.
3045 * objc-lang.h (find_imps): Likewise.
3047 2013-10-01 Keith Seitz <keiths@redhat.com>
3049 * completer.c (skip_quoted_chars): Make all arguments const.
3051 (skip_quoted): Likewise.
3052 * completer.h (skip_quoted_chars): Likewise.
3053 (skip_quoted): Likewise.
3054 * defs.h (skip_quoted): Remove duplicate declaration.
3055 * jv-exp.y: Include completer.h.
3056 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3057 * p-exp.y: Include completer.h.
3059 2013-10-01 Keith Seitz <keiths@redhat.com>
3061 * c-exp.y (parse_number): Make first argument const.
3062 Make a copy of the input to manipulate.
3063 (c_parse_escape): Make first argument const.
3064 Make local variable 'tokptr' const.
3065 (parse_string_or_char): Make first two arguments const.
3066 (macro_original_text): Make const.
3067 (lex_one_token): Make local variable 'tokstart' const.
3068 Likewise for local variables named 'p'.
3069 Cast away const for struct stoken (temporary).
3070 * c-lang.h (c_parse_escpae): Make first argument const.
3071 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3073 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3075 * f-exp.y (parse_number): Make first argument const.
3076 (match_string_literal): Make local variable 'tokstart'
3078 (yylex): Make local variable 'p' const.
3079 Cast away const for struct stoken (temporary).
3080 * go-exp.y (parse_number): Make first argument const.
3081 (parse_string_or_char): Likewise.
3082 Make local variable 'tokstart' const.
3083 (lex_one_token): Likewise for numerous locals called 'p'.
3084 Cast away const for struct stoken (temporary).
3085 * jv-exp.y (parse_number): Make first argument const.
3086 Make local variables 'tokstart' and 'tokptr' const.
3087 Cast away const for call to skip_quoted (temporary).
3088 (yylex): Make local variable 'p' const.
3089 Cast away const for struct stoken (temporary).
3090 * m2-exp.y (parse_number): Make local variable 'p' const.
3091 (yylex): Likewise for 'tokstart'.
3092 Cast away const for struct stoken (temporary).
3093 Make local variable 'p' const.
3094 * macroexp.c (get_character_constant): Pass a const string
3096 (get_string_literal): Likewise.
3097 (macro_expand_next): Make first argument const.
3098 Cast away const for init_shared_buffer.
3099 * macroexp.h (macro_expand_next): Make first argument const.
3100 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3101 Pass a const string to c_parse_escape.
3102 Make local variables 'p' and 'namestart' const.
3103 * parse.c (lexptr): Make const.
3104 (prev_lexptr): Likewise.
3105 (find_template_name_end): Return const.
3106 Make argument const, too.
3107 (parse_exp_in_context): Make first argument const.
3108 Remove the entire const_hack.
3109 (parse_exp_in_context_1): Make first argument const.
3110 * parser-defs.h (find_template_name_end): Return const.
3111 Make argument const, too.
3112 (lexptr): Make const.
3113 (prev_lexptr): Likewise.
3114 * utils.c (parse_escape): Make second argument const.
3115 * utils.h (parse_escape): Likewise.
3117 2013-10-01 Keith Seitz <keiths@redhat.com>
3119 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3121 (block_lookup): Make 'raw_name' and 'name' const.
3122 * ada-lex.l (processString): Update for struct stoken.ptr.
3123 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3124 (operator_stoken): Likewise.
3125 (lex_one_token): Remove temporary cast to char * for
3127 * f-exp.y (yylex): Likewise.
3128 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3129 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3130 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3132 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3133 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3134 * linespec.c (struct ls_parser): Make 'stream' const.
3135 (find_parameter_list_end): Make argument 'input' and local
3137 (linespec_lexer_lex_string): Make local variables 'start' and
3139 Use skip_spaces_const instead of skip_spaces.
3140 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3142 (parse_linespec): Temporarily cast 'argptr' to const for
3143 'parser->lexer.stream'.
3144 * m2-exp.y (yylex): Remove temporary cast to char * for
3146 * objc-lang.c (add_msglist): Make local variable 'p' const.
3147 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3148 (exp : STRING): Make 'sp' const.
3149 (parse_number): Make argument 'p' const.
3150 * parser-defs.h (struct stoken): Make 'ptr' const.
3152 2013-10-01 Doug Evans <dje@google.com>
3154 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3156 2013-10-01 Yao Qi <yao@codesourcery.com>
3158 * varobj.c (c_value_of_root): Remove declaration.
3159 (cplus_value_of_root, java_value_of_root): Likewise.
3160 (ada_value_of_root): Likewise.
3161 (struct language_specific) <value_of_root>: Remove.
3162 (languages): Update initialization.
3163 (check_scope): Move earlier.
3164 (c_value_of_root): Move earlier and rename to ...
3165 (value_of_root_1): ... this.
3166 (value_of_root): Caller update.
3167 (cplus_value_of_root, java_value_of_root): Remove.
3168 (ada_value_of_root): Remove.
3170 2013-10-01 Yao Qi <yao@codesourcery.com>
3172 * varobj.c (varobj_format_string): Remove "unknown".
3173 (languages): Remove the first element.
3174 * varobj.h (enum varobj_languages): Remove vlang_c.
3176 2013-10-01 Yao Qi <yao@codesourcery.com>
3178 * varobj.c (struct language_specific) <language>: Remove.
3179 (languages): Update the initialization.
3181 2013-10-01 Yao Qi <yao@codesourcery.com>
3183 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3184 "solib-target.h". Include "windows-tdep.h".
3185 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3186 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3187 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3188 windows-tdep.o to gdb_target_obs.
3190 2013-10-01 Yao Qi <yao@codesourcery.com>
3192 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3194 (amd64_windows_init_abi): Don't call set_solib_ops and
3195 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3196 windows_init_abi instead.
3197 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3199 (i386_cygwin_init_abi): Don't call set_solib_ops,
3200 set_gdbarch_has_dos_based_file_system and
3201 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3202 windows_init_abi instead.
3203 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3204 (windows_init_abi): New function.
3205 (windows_iterate_over_objfiles_in_search_order): Make it
3207 * windows-tdep.h (windows_init_abi): Declare.
3208 (windows_iterate_over_objfiles_in_search_order): Remove
3211 2013-10-01 Jerome Guitton <guitton@adacore.com>
3213 Checked in by Joel Brobecker <brobecker@adacore.com>
3214 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3215 incomplete dictionnary instead of None in case of missing
3216 environment variables.
3217 (elinos_init): in case of an incomplete environment, best
3218 effort to load system libraries instead of abort.
3220 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3222 * ada-lang.c (ada_has_this_exception_support): Ignore
3223 mst_solib_trampoline minimal symbols.
3225 2013-09-30 Tristan Gingold <gingold@adacore.com>
3227 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3228 hardware watchpoint.
3229 (i386_darwin_dr_set): Support 32 and 64 bit states.
3230 (i386_darwin_dr_get): Likewise.
3231 (i386_darwin_dr_set_control): Make static.
3232 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3233 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3235 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3237 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3238 Replace TIDGET with ptid_get_lwp.
3239 Replace GET_LWP with ptid_get_lwp.
3240 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3241 Replace BUILD_THREAD with ptid_build.
3242 Replace BUILD_LWP with ptid_build.
3243 Replace PIDGET with ptid_get_pid.
3244 Replace TIDGET with ptid_get_lwp.
3245 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3246 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3247 Replace TIDGET with ptid_get_lwp.
3248 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3249 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3250 Replace TIDGET with ptid_get_lwp.
3251 Replace GET_LWP with ptid_get_lwp.
3252 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3254 * breakpoint.c: Likewise.
3255 * common/ptid.c (ptid_is_pid): Condense check for
3256 null_ptid and minus_one_ptid.
3257 (ptid_lwp_p): New function.
3258 (ptid_tid_p): New function.
3259 * common/ptid.h: Update comments for accessors.
3260 (ptid_lwp_p): New prototype.
3261 (ptid_tid_p): New prototype.
3262 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3263 * gcore.c: Replace PIDGET with ptid_get_pid.
3264 * gdbthread.h: Likewise.
3265 * gnu-nat.c: Likewise.
3266 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3267 Replace TIDGET with ptid_get_lwp.
3268 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3269 * hppanbsd-nat.c: Likewise.
3270 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3271 Replace TIDGET with ptid_get_lwp.
3272 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3273 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3274 * infcmd.c: Likewise.
3275 * inferior.h: Likewise.
3276 * inflow.c: Likewise.
3277 * infrun.c: Likewise.
3278 * linux-fork.c: Likewise.
3279 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3280 Replace GET_PID with ptid_get_pid.
3281 Replace is_lwp with ptid_lwp_p.
3282 Replace GET_LWP with ptid_get_lwp.
3283 Replace BUILD_LWP with ptid_build.
3285 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3287 * common/linux-btrace.c: Move sys/syscall.h out of the
3288 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3289 Also check for SYS_perf_event_open before attempting to buid.
3291 2013-09-27 Doug Evans <dje@google.com>
3293 * dwarf2read.c (dwarf2_section_info): Add comment.
3294 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3296 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3297 (dwarf2_read_section): Delete unused local "header". Add section
3298 name to error message.
3299 (create_dwo_in_dwp): Tweak comment.
3300 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3302 * dwarf2read.c (die_reader_specs): Tweak comment.
3303 (get_section_bfd_owner, get_section_bfd_section): New functions.
3304 (get_section_name, get_section_file_name): New functions.
3305 (get_section_id, get_section_flags): New functions.
3306 (*): Use new functions to access section fields.
3308 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3309 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3310 arg "htab". All callers updated.
3311 (create_debug_types_hash_table): Remove redundant copy of
3313 (create_dwo_in_dwp): Tweak comments.
3314 (read_str_index): Tweak comment. Record dwarf form name in static
3317 2013-09-27 Pedro Alves <palves@redhat.com>
3319 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3320 (remote_filename_p): Add comment.
3321 * remote.c (remote_filename_p): Adjust to use
3322 REMOTE_SYSROOT_PREFIX.
3323 * solib.c (solib_find): When deciding whether we need to add a
3324 directory separator, check whether the sysroot is "remote:"
3325 instead of checking whether the patch has a drive spec. Add
3328 2013-09-27 Pedro Alves <palves@redhat.com>
3330 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3332 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3335 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 Fix set debug frame output.
3338 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3339 SENTINEL_FRAME entry lower to match enum frame_type order.
3341 2013-09-26 Pierre Muller <muller@sourceware.org>
3343 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3344 AMD64_R15_REGNUM when a register index is expected.
3345 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3346 Substitute in array.
3347 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3348 (amd64_push_arguments): Substitute in integer_regnum array.
3350 2013-09-25 Doug Evans <dje@google.com>
3352 * objfiles.c (allocate_objfile): Move comment to better place.
3354 New option "set debug symfile on".
3355 * NEWS: Mention "set debug symfile".
3356 * Makefile.in (SFILES): Add symfile-debug.c.
3357 (COMMON_OBS): Add symfile-debug.o.
3358 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3359 objfile's symbol functions.
3360 * objfiles.h (objfile_set_sym_fns): Declare.
3361 * symfile-debug.c: New file.
3362 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3363 objfile's symbol functions.
3364 (reread_symbols): Ditto.
3366 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3368 (add_symtab_fns): Update prototype.
3369 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3370 (registered_sym_fns): ... this.
3371 (symtab_fns): Update.
3372 (add_symtab_fns): New arg "flavour". All callers updated.
3373 (find_sym_fns): Rewrite to use new sym_fns registry.
3375 * symfile.h (struct sym_fns): Add "objfile" argument to
3376 sym_read_linetable. All uses updated.
3378 * symtab.c (domain_name, search_domain_name): New functions.
3379 * symtab.h (domain_name, search_domain_name): Declare.
3381 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3382 map_matching_symbols so objfile is first. All uses updated.
3383 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3384 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3386 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3389 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3392 2013-09-24 Doug Evans <dje@google.com>
3394 * objfiles.c (free_objfile): Move comment.
3396 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3398 * ada-exp.y (string_to_operator): Delete.
3399 (dummy_string_to_ada_operator): Delete.
3401 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3404 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3406 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3407 call_dummy_integer_regs, and classify.
3408 * amd64-tdep.h (amd64_classify): Add declaration.
3409 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3410 (amd64_reg_class): Delete, moved to i386-tdep.h.
3411 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3412 Replace call to amd64_classify by call to tdep->classify.
3413 (amd64_push_arguments): Get the list of registers to use for
3414 passing integer parameters from the gdbarch tdep structure,
3415 rather than using a hardcoded one. Replace calls to amd64_classify
3416 by calls to tdep->classify.
3417 (amd64_push_dummy_call): Get the register number used for
3418 the "hidden" argument from tdep->call_dummy_integer_regs.
3419 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3420 and tdep->call_dummy_integer_regs. Set tdep->classify.
3422 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3425 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3426 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3427 where tdep->memory_args_by_pointer is non-zero.
3429 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3432 * i386-tdep.h (struct gdbarch_tdep): Add new field
3433 integer_param_regs_saved_in_caller_frame.
3434 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3435 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3437 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3439 * amd64-windows-tdep.c: #include "value.h"
3440 (amd64_windows_classify): Delete.
3441 (amd64_windows_passed_by_integer_register)
3442 (amd64_windows_passed_by_xmm_register)
3443 (amd64_windows_passed_by_pointer)
3444 (amd64_windows_adjust_args_passed_by_pointer)
3445 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3446 (amd64_windows_push_dummy_call): New functions.
3447 (amd64_windows_init_abi): Remove setting of
3448 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3449 tdep->classify, tdep->memory_args_by_pointer and
3450 tdep->integer_param_regs_saved_in_caller_frame.
3451 Add call to set_gdbarch_push_dummy_call.
3453 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3455 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3456 objfile->original_name.
3458 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 Pass down original filename for objfile.
3461 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3462 * elfread.c (elf_symfile_read): Likewise.
3463 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3464 longer set ORIGINAL_NAME.
3465 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3466 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3467 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3468 symbol_file_add_from_bfd call.
3469 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3470 (macho_check_dsym): Add parameter filenamep. Change function comment.
3472 (macho_symfile_read): New variable dsym_filename. Update
3473 macho_check_dsym call. Use it for symbol_file_add_separate.
3474 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3475 it. Use it for objfile->original_name.
3476 (objfile_name): Return OBFD's filename, if available.
3477 * objfiles.h (allocate_objfile): Add new parameter name.
3478 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3479 * symfile-mem.c (symbol_file_add_from_memory): Update
3480 symbol_file_add_from_bfd call.
3481 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3483 (symbol_file_add_with_addrs): New parameter name, add function comment
3484 for it. Remove variable name. Update allocate_objfile call.
3485 (symbol_file_add_separate): New parameter name, add function comment
3486 for it. Update symbol_file_add_with_addrs call.
3487 (symbol_file_add_from_bfd): New parameter name. Update
3488 symbol_file_add_with_addrs call.
3489 (symbol_file_add): Update symbol_file_add_from_bfd call.
3490 (reread_symbols): New variable original_name. Save
3491 objfile->original_name by it.
3492 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3495 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3497 Code cleanup: Add objfile_name accessor function.
3498 * ada-lang.c (is_known_support_routine): Use objfile_name.
3499 * auto-load.c (source_gdb_script_for_objfile)
3500 (auto_load_objfile_script): Likewise.
3501 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3502 * dbxread.c (dbx_symfile_read): Likewise.
3503 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3504 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3505 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3506 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3507 (lookup_dwp_signatured_type, lookup_dwo_unit)
3508 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3509 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3510 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3511 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3512 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3513 (read_subrange_type, load_partial_dies, read_partial_die)
3514 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3515 (die_containing_type, build_error_marker_type, lookup_die_type)
3516 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3517 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3518 (get_DW_AT_signature_type, write_psymtabs_to_index)
3519 (save_gdb_index_command): Likewise.
3520 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3522 * expprint.c (dump_subexp_body_standard): Likewise.
3523 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3524 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3526 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3527 obj_name, use objfile_name for it, use the variable.
3528 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3530 * machoread.c (macho_symtab_read, macho_check_dsym)
3531 (macho_symfile_relocate): Likewise.
3532 * maint.c (maintenance_translate_address): Likewise.
3533 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3534 * minsyms.c (install_minimal_symbols): Likewise.
3535 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3537 (filter_overlapping_sections): Use objfile_name.
3538 (objfile_name): New function.
3539 * objfiles.h (struct objfile): Rename field name to original_name.
3540 (objfile_name): New prototype.
3541 * printcmd.c (sym_info, address_info): Use objfile_name.
3542 * probe.c (parse_probes, collect_probes, compare_probes)
3543 (info_probes_for_ops): Likewise.
3544 * progspace.c (clone_program_space): Likewise.
3545 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3546 (maintenance_info_psymtabs): Likewise.
3547 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3548 (source_section_scripts): Likewise.
3549 * python/py-objfile.c (objfpy_get_filename): Likewise.
3550 * python/py-progspace.c (pspy_get_filename): Likewise.
3551 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3552 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3553 * solib.c (solib_read_symbols): Likewise.
3554 * stabsread.c (scan_file_globals): Likewise.
3555 * stap-probe.c (handle_stap_probe): Likewise.
3556 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3557 (find_separate_debug_file_by_debuglink): Likewise.
3558 (reread_symbols): Likewise. Use the objfile field name renamed to
3560 (allocate_symtab): Use objfile_name.
3561 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3562 (dump_objfile, dump_msymbols, dump_symtab_1)
3563 (maintenance_print_msymbols, maintenance_print_objfiles)
3564 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3565 * target.c (target_translate_tls_address, target_info): Likewise.
3566 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3569 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3572 * probe.c (parse_probes): Rename variable objfile_name to
3575 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3577 Remove solib-sunos.c.
3578 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3579 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3580 * objfiles.c (rt_common_objfile): Remove.
3581 (free_objfile): Remove rt_common_objfile comparison.
3582 * objfiles.h (rt_common_objfile): Remove.
3583 * solib-sunos.c: Remove.
3584 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3586 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 Remove a.out NetBSD and OpenBSD hosts.
3589 * NEWS (Removed native configurations): New.
3590 * config/arm/nbsdaout.mh: Remove.
3591 * config/i386/nbsdaout.mh: Remove.
3592 * config/i386/obsdaout.mh: Remove.
3593 * config/m68k/nbsdaout.mh: Remove.
3594 * config/sparc/nbsdaout.mh: Remove.
3595 * config/vax/nbsdaout.mh: Remove.
3596 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3597 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3598 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3600 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3601 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3602 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3604 2013-09-23 Tom Tromey <tromey@redhat.com>
3606 * linespec.c (struct minsym_and_objfile): Remove.
3607 (minsym_and_objfile_d): Remove.
3608 (struct linespec, struct collect_info, linespec_parse_basic)
3609 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3610 (compare_msymbols, find_method, find_function_symbols)
3611 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3612 (add_minsym, search_minsyms_for_name): Update.
3614 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3616 * regcache.c: Add include of valprint.h.
3617 (dump_endian_bytes): Delete.
3618 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3620 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3622 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3624 2013-09-19 Pedro Alves <palves@redhat.com>
3626 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3629 2013-09-19 Pedro Alves <palves@redhat.com>
3630 Thomas Schwinge <thomas@codesourcery.com>
3631 Yue Lu <hacklu.newborn@gmail.com>
3633 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3634 Take a gdb_byte pointer instead of a char pointer.
3636 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3637 gnu_xfer_partial helper.
3638 (gnu_xfer_partial): New function.
3639 (gnu_target): Don't install a deprecated_xfer_memory hook.
3640 Install a to_xfer_partial hook.
3642 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3645 * main.c (captured_main): Replace catch_command_errors by
3646 catch_command_errors_const. Twice.
3647 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3648 (symbol_file_add): Make name parameter const.
3649 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3650 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3651 variable name. Change their usage accordingly.
3652 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3654 (symbol_file_add_main): Make args parameter const.
3656 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3657 Ulrich Weigand <uweigand@de.ibm.com>
3659 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3661 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3663 2013-09-18 Pedro Alves <palves@redhat.com>
3664 Yue Lu <hacklu.newborn@gmail.com>
3666 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3667 (gnu_create_inferior)
3668 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3669 (set_sig_thread_cmd): Use the lwpid field of ptids to
3670 store/extract thread ids instead of the tid field.
3671 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3673 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3675 * infcmd.c (default_print_one_register_info): Add detection of
3676 optimized out values.
3677 (default_print_registers_info): Switch to using
3678 get_frame_register_value.
3680 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3682 * infrun.c (handle_inferior_event): Check if we know the
3683 function start address before setting a resume breakpoint.
3685 2013-09-18 Pedro Alves <palves@redhat.com>
3687 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3688 minus_one_ptid instead of looking at the ptid's tid field and
3689 comparing that to -1.
3691 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3693 * main.h (get_gdb_program_name): Remove extra whitespace.
3695 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3697 * main.h (get_gdb_program_name): Add declaration.
3698 * main.c (get_gdb_program_name): Add definition.
3700 2013-09-17 Doug Evans <dje@google.com>
3702 * dwarf2read.c: Move definitions of complaint functions to after
3703 forward declarations of local functions.
3705 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3706 Pedro Alves <palves@redhat.com>
3709 * breakpoint.c (remove_threaded_breakpoints): New function.
3710 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3711 as thread_exit observer.
3713 2013-09-17 Pedro Alves <palves@redhat.com>
3716 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3717 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3718 * corelow.c (core_open):
3719 * frame.h (print_stack_frame, print_frame_info): New
3720 'set_current_sal' parameter.
3721 * infcmd.c (finish_command, kill_command): Adjust call to
3723 * inferior.c (inferior_command): Likewise.
3724 * infrun.c (normal_stop): Likewise.
3725 * linux-fork.c (linux_fork_context): Likewise.
3726 * record-full.c (record_full_goto_entry, record_full_restore):
3728 * remote-mips.c (common_open): Likewise.
3729 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3731 (print_frame_info): New 'set_current_sal' parameter. Set the last
3732 displayed sal depending on the new paremeter instead of looking at
3734 (backtrace_command_1, select_and_print_frame, frame_command)
3735 (current_frame_command, up_command, down_command): Adjust call to
3737 * thread.c (print_thread_info, restore_selected_frame)
3738 (do_captured_thread_select): Adjust call to print_stack_frame.
3739 * tracepoint.c (tfind_1): Likewise.
3740 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3741 (mi_cmd_stack_info_frame): Likewise.
3742 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3743 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3745 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3747 * value.c (isvoid_internal_fn): Replace "parameter" with
3750 2013-09-16 Stan Shebs <stan@codesourcery.com>
3752 * README: Update references to writing code for GDB.
3753 * configure.ac (build_warnings): Remove obsolete comment.
3754 * configure: Regenerate.
3755 * gdbarch.sh: Remove references to gdbint.texinfo.
3756 * gdbarch.h: Regenerate.
3757 * gdbtypes.c (objfile_type): Remove comments referencing internals
3760 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3762 * NEWS: Mention new convenience function $_isvoid.
3763 * value.c (isvoid_internal_fn): New function.
3764 (_initialize_values): Add new convenience function $_isvoid.
3766 2013-09-16 Pierre Muller <muller@sourceware.org>
3768 * arm-linux-tdep.c: Add "elf/common.h" header.
3769 Remove AT_HWCAP macro definintion as it is provided in
3771 * s390-tdep.c: Remove system header <elf.h>
3772 Add "elf/common.h" header for AT_HWCAP definition.
3773 (s390_core_read_description): Use correct CORE_ADDR
3774 for hwcap local variable used as third parameter
3775 of function target_auxv_search.
3777 2013-09-14 Pierre Muller <muller@sourceware.org>
3778 Tom Tromey <tromey@redhat.com>
3779 Pedro Alves <palves@redhat.com>
3781 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3782 mode if operating system doesn't know O_CLOEXEC.
3784 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3790 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3792 * NEWS: Mention TDB support.
3793 * features/s390-tdb.xml: New file.
3794 * features/s390-te-linux64.xml: New file.
3795 * features/s390x-te-linux64.xml: New file.
3796 * features/Makefile (WHICH): Add new tdescs above.
3797 (s390-te-linux64-expedite): Set.
3798 (s390x-te-linux64-expedite): Set.
3799 * features/s390-te-linux64.c: New file (generated).
3800 * features/s390x-te-linux64.c: New file (generated).
3801 * regformats/s390-te-linux64.dat: New file (generated).
3802 * regformats/s390x-te-linux64.dat: New file (generated).
3803 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3804 (HWCAP_S390_TE): Likewise.
3805 (S390_TDB_DWORD0_REGNUM): Likewise.
3806 (S390_TDB_DWORD0_REGNUM): Likewise.
3807 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3808 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3809 (S390_TDB_ATIA_REGNUM): Likewise.
3810 (S390_TDB_R0_REGNUM): Likewise.
3811 (S390_TDB_R1_REGNUM): Likewise.
3812 (S390_TDB_R2_REGNUM): Likewise.
3813 (S390_TDB_R3_REGNUM): Likewise.
3814 (S390_TDB_R4_REGNUM): Likewise.
3815 (S390_TDB_R5_REGNUM): Likewise.
3816 (S390_TDB_R6_REGNUM): Likewise.
3817 (S390_TDB_R7_REGNUM): Likewise.
3818 (S390_TDB_R8_REGNUM): Likewise.
3819 (S390_TDB_R9_REGNUM): Likewise.
3820 (S390_TDB_R10_REGNUM): Likewise.
3821 (S390_TDB_R11_REGNUM): Likewise.
3822 (S390_TDB_R12_REGNUM): Likewise.
3823 (S390_TDB_R13_REGNUM): Likewise.
3824 (S390_TDB_R14_REGNUM): Likewise.
3825 (S390_TDB_R15_REGNUM): Likewise.
3826 (S390_NUM_REGS): Increase.
3827 (S390_IS_TDBREGSET_REGNUM): New macro.
3828 (s390_regmap_tdb): Declare.
3829 (s390_sizeof_tdbregset): Define.
3830 (tdesc_s390_te_linux64): Declare.
3831 (tdesc_s390x_te_linux64): Likewise.
3832 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3833 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3834 (s390_regmap_tdb): New regmap.
3835 (s390_supply_tdb_regset): New function.
3836 (s390_tdb_regset): New regset.
3837 (s390_linux64v2_regset_sections): Add TDB regset to list.
3838 (s390x_linux64v2_regset_sections): Likewise.
3839 (s390_regset_from_core_section): Recognize TDB core note section.
3840 (s390_core_read_description): If HWCAP indicates TE support,
3841 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3842 (s390_gdbarch_init): Handle TDB regset.
3843 (_initialize_s390_tdep): Initialize new tdescs.
3844 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3845 (have_regset_tdb): New variable.
3846 (s390_native_supply): Support register invalidation.
3847 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3848 (check_regset): Treat ENODATA as "regset exists".
3849 (s390_linux_fetch_inferior_registers): Add TDB.
3850 (s390_read_description): Check for TDB existence and select
3852 * gdbserver/Makefile.in (clean): Add removal of new makefile
3854 (s390-te-linux64.c): New makefile target.
3855 (s390x-te-linux64.c): Likewise.
3856 * gdbserver/configure.srv (srv_regobj): Append new objects
3857 s390-te-linux64.o and s390x-te-linux64.o.
3858 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3859 s390x-te-linux64.xml, and s390-tdb.xml.
3860 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3862 (tdesc_s390_te_linux64): Likewise.
3863 (init_registers_s390x_te_linux64): Likewise.
3864 (tdesc_s390x_te_linux64): Likewise.
3865 (s390_check_regset): Treat ENODATA as "regset exists".
3866 (s390_arch_setup): Add TDB regset support.
3867 (initialize_low_arch): Initialize registers for new tdescs.
3869 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3871 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3872 (S390_IS_FPREGSET_REGNUM): New macro.
3873 * s390-tdep.c (s390_dwarf_regmap): Make const.
3874 (regnum_is_gpr_full): New function for replacing repeated code.
3875 (s390_pseudo_register_name): Use it.
3876 (s390_pseudo_register_type): Likewise.
3877 (s390_pseudo_register_read): Likewise.
3878 (s390_pseudo_register_write): Likewise.
3879 (s390_unwind_pseudo_register): Likewise.
3880 (s390_regmap_gregset): New format for regmap.
3881 (s390x_regmap_gregset): Likewise.
3882 (s390_regmap_fpregset): Likewise.
3883 (s390_regmap_upper): Likewise.
3884 (s390_regmap_last_break): Likewise.
3885 (s390_regmap_system_call): Likewise.
3886 (s390_supply_regset): Adjust to new regmap format.
3887 (s390_collect_regset): Likewise.
3888 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3889 (s390_native_collect): Likewise.
3890 (supply_gregset): Likewise.
3891 (fill_gregset): Likewise.
3892 (supply_fpregset): Likewise.
3893 (fill_fpregset): Likewise.
3894 (fetch_regset): Likewise.
3895 (store_regset): Likewise.
3896 (s390_linux_fetch_inferior_registers): Likewise.
3897 (s390_linux_fetch_inferior_registers): Likewise.
3899 2013-09-12 Andrew Pinski <apinski@cavium.com>
3901 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3903 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3905 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3907 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3909 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3911 2013-09-06 Pedro Alves <palves@redhat.com>
3913 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3914 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3915 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3916 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3917 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3920 2013-09-06 Pedro Alves <palves@redhat.com>
3922 * remote-sim.c (dump_mem): Constify buf parameter.
3923 gdbsim_xfer_inferior_memory): Rename to ...
3924 (gdbsim_xfer_memory): ... this. Adjust interface as
3925 target_xfer_partial helper.
3926 (gdbsim_xfer_partial): New function.
3927 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3928 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3930 2013-09-06 Pedro Alves <palves@redhat.com>
3932 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3933 host_address_to_string, and send debug output to gdb_stdlog.
3935 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3937 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3938 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3939 gdb_target_obs for cris target.
3940 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3941 (cris_gdbarch_init): Move calls to
3942 set_gdbarch_fetch_tls_load_module_address and
3943 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3944 Add call to gdbarch_init_osabi.
3945 * cris-linux-tdep.c: New file.
3946 * cris-tdep.h: New file.
3948 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3950 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3951 to deprecated_init_ui_hook.
3953 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3955 * cli/cli-interp.c (_initialize_cli_interp): Add a
3956 command_loop_proc to interp_procs.
3957 * event-top.c (cli_command_loop): Change signature to match
3958 interp_command_loop_ftype.
3959 * event-top.h (cli_command_loop): Same.
3960 * interps.c (interp_new): Require every interpreter to have a
3962 (current_interp_command_loop): Just call the command_loop_proc on
3963 the current interpreter.
3964 * tui/tui-interp.c (_initialize_tui_interp): Add a
3965 command_loop_proc to interp_procs.
3967 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3969 * cris-tdep.c (cris_gdbarch_init): Add call to
3970 get_gdbarch_fetch_tls_load_module_address.
3972 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3974 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3975 (cris_elf_gregset_t): Rename from elf_gregset_t.
3976 (crisv32_elf_gregset_t): Adjust.
3977 (cris_supply_gregset, fetch_core_registers): Adjust.
3979 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3981 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3983 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3985 * defs.h (deprecated_command_loop_hook): Remove, including
3986 references in comments.
3987 * interps.c (current_interp_command_loop): No longer use
3988 deprecated_command_loop_hook.
3989 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3991 * top.c (deprecated_command_loop_hook): Remove.
3993 2013-09-05 Pedro Alves <palves@redhat.com>
3995 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3996 local is now int instead of ULONGEST. Print it with %d
3997 instead of paddress.
3999 2013-09-05 Tristan Gingold <gingold@adacore.com>
4001 * MAINTAINERS: Remove avr maintainership.
4003 2013-09-05 Pedro Alves <palves@redhat.com>
4005 * findvar.c (value_of_register): Rework in terms of
4006 value_of_register_lazy.
4008 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4010 * symfile.c (add_symbol_file_command): Remove trailing
4011 whitespaces and blank line after comment.
4013 2013-09-05 Pedro Alves <palves@redhat.com>
4015 * tui/tui-regs.c (tui_register_format): Don't look at the
4016 register's name here. Return string representing register
4017 value instead of storing it in the data element.
4018 (tui_get_register): Compare register string representations
4019 instead of register value states and contents.
4021 2013-09-05 Pedro Alves <palves@redhat.com>
4024 * tui/tui-regs.c (tui_show_registers): Show registers of the
4025 selected frame, not the current frame.
4027 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
4029 * MAINTAINERS (Write After Approval): Add myself to the list.
4031 2013-09-04 Doug Evans <dje@google.com>
4033 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4034 (queue_and_load_dwo_tu): New function.
4035 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4036 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4037 Make dependent_cu optional.
4038 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4039 and an older .gdb_index is in use, queue and load all its TUs too.
4041 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4043 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4044 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4045 variable search_flags.
4046 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4047 (OPF_RETURN_REALPATH): ... here.
4048 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4049 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4051 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4053 * solib.c (solib_find): Likewise. Four times.
4054 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4055 in the function comment and for the realpath_fptr variable.
4056 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4057 (find_and_open_source): Likewise. Twice.
4058 * symfile.c (symfile_bfd_open): Likewise, also twice.
4060 2013-09-04 Doug Evans <dje@google.com>
4062 * progspace.c (save_current_space_and_thread): Remove unnecessary
4063 call to save_current_inferior.
4065 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
4067 * sh64-tdep.c (sh64_do_register): Return after printing message
4068 about unavailable register contents.
4070 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4071 Pedro Alves <palves@redhat.com>
4073 * symfile.c (add_symbol_file_command): Error out on unknown
4074 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4075 options and collapse into single conditional branch.
4077 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
4079 * inf-child.c (inf_child_follow_fork): New parameter
4081 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4082 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4083 * inferior.h (detach_fork): Remove.
4084 * infrun.c (detach_fork): Adjust comment and make it
4086 (follow_fork): Pass detach_fork parameter to
4088 * linux-nat.c (linux_child_follow_fork): New parameter
4090 * target.c (target_follow_fork): New parameter detach_fork.
4091 Pass detach_fork as parameter and print its value.
4092 * target.h (struct target_ops) <to_follow_fork>: New int
4094 (target_follow_fork): New parameter detach_fork.
4096 2013-09-03 Joel Brobecker <brobecker@adacore.com>
4098 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4099 Replace sec->bfd by sec->the_bfd_section->owner.
4101 2013-09-03 Yao Qi <yao@codesourcery.com>
4103 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4104 from linux_has_shared_address_space.
4105 (linux_has_shared_address_space): Call linux_is_uclinux.
4106 * linux-tdep.h (linux_is_uclinux): Declare.
4107 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4110 2013-09-03 Yao Qi <yao@codesourcery.com>
4112 * config/djgpp/fnchange.lst: Remove entry of
4113 i386-interix-nat.c and i386-interix-tdep.c.
4114 * configure.ac: Remove '*-*-interix*'.
4115 * configure: Re-generated.
4116 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4117 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4119 * osabi.c (gdb_osabi_names): Remove "Interix".
4121 2013-09-03 Yao Qi <yao@codesourcery.com>
4123 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4125 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4127 * record.h (record_print_flag) <record_print_src_line,
4128 record_print_insn_range>: Rename into ...
4129 (record_print_flag) <record_print_src_line,
4130 record_print_insn_range>: ... this. Update all users.
4132 2013-09-02 Pierre Muller <muller@sourceware.org>
4134 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4137 2013-09-02 Pierre Muller <muller@sourceware.org>
4139 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4140 by use of plongest function.
4142 2013-09-02 Tristan Gingold <gingold@adacore.com>
4144 * NEWS: Add entry mentioning support for native Windows x64
4147 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4148 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4149 (struct amd64_windows_frame_cache): New struct.
4150 (amd64_windows_w2gdb_regnum): New global.
4151 (pc_in_range, amd64_windows_frame_decode_epilogue)
4152 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4153 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4154 (amd64_windows_frame_this_id): New functions.
4155 (amd64_windows_frame_unwind): New static global.
4156 (amd64_windows_skip_prologue): New function.
4157 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4158 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4159 with amd64_windows_skip_prologue.
4161 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4165 2013-08-30 Pedro Alves <palves@redhat.com>
4167 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4170 2013-08-30 Pedro Alves <palves@redhat.com>
4172 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4175 2013-08-30 Pedro Alves <palves@redhat.com>
4177 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4178 Adjust arguments to print_stack_frame.
4180 2013-08-30 Pedro Alves <palves@redhat.com>
4182 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4184 2013-08-30 Pedro Alves <palves@redhat.com>
4186 * frame.h (show_and_print_stack_frame): Delete declaration.
4188 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4191 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4192 (archpy_name): Check for valid architecture.
4193 (archpy_disassemble): Ditto.
4195 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4197 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4198 instead of "long long" in call to ptrace64.
4200 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4202 * mi/mi-interp.c (mi_command_loop): Change signature to match
4203 interp_command_loop_ftype.
4204 (mi1_command_loop): Remove.
4205 (mi2_command_loop): Remove.
4206 (mi3_command_loop): Remove.
4207 (mi_interpreter_resume): Remove setting of
4208 deprecated_command_loop_hook.
4209 (_initialize_mi_interp): Set mi_command_loop as the command loop
4212 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4214 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4217 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4219 * value.c (allocate_value_contents): Make static.
4220 * value.h (allocate_value_contents): Remove prototype.
4222 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4224 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4225 of assembling value via allocate_value_lazy and attribute setter.
4226 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4227 assembling value via allocate_value_lazy and attribute setter.
4228 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4229 assembling value via allocate_value_lazy and attribute setter.
4231 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4233 * value.c (value_from_contents_and_address): Replace allocate_value and
4234 memcpy with value_from_contents.
4236 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4238 * python/py-framefilter.c (py_print_frame): Remove usage of
4239 PyString_AsString. Use python_string_to_host_string instead.
4240 Refactor function to work with a string as a new allocation
4241 instead of a pointer.
4242 (py_print_frame): Ditto.
4243 * python/lib/gdb/frames.py (return_list): Cain iterators together
4244 instead of adding them as a list.
4245 (_sort_list): Call return_list, and remove duplicate code.
4246 (execute_frame_filters): Convert iterator to a list with list().
4247 * python/lib/gdb/command/frame_filters.py
4248 (SetFrameFilterPriority._set_filter_priority): Convert priority
4249 attribute to an integer.
4250 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4251 wrapper function __next__.
4252 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4255 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4258 * python/py-framefilter.c (apply_frame_filter): Check
4259 gdb_python_initialized. Exit if the Python frame-filter code
4260 cannot be initialized.
4262 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4265 * top.c (print_gdb_version): Remove erroneous newline after help
4268 2013-08-29 Yao Qi <yao@codesourcery.com>
4270 * varobj.c (install_dynamic_child): Remove trailing space.
4271 Add one blank line after variable declaration.
4273 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4276 * corefile.c (get_exec_file): Use exec_filename.
4277 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4278 * exec.c (exec_close): Free EXEC_FILENAME.
4279 (exec_file_attach): New variable canonical_pathname. Use
4280 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4282 * exec.h (exec_filename): New.
4283 * inferior.c (print_inferior, inferior_command): Use
4284 PSPACE_EXEC_FILENAME.
4285 * mi/mi-main.c (print_one_inferior): Likewise.
4286 * progspace.c (clone_program_space, print_program_space): Likewise.
4287 * progspace.h (struct program_space): New field pspace_exec_filename.
4288 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4289 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4291 2013-08-28 Will Newton <will.newton@linaro.org>
4293 * common/linux-ptrace.c: Include stdint.h unconditionally.
4295 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4298 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4300 2013-08-28 Yao Qi <yao@codesourcery.com>
4301 Pedro Alves <palves@redhat.com>
4303 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4304 instead of stdio_fileopen.
4305 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4306 .Call stderr_fileopen instead of stdio_fileopen.
4307 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4308 [__MINGW32__] (stderr_file_fputs): New function.
4309 (stderr_fileopen): New function.
4310 * ui-file.h (stderr_fileopen): Declare.
4312 2013-08-27 Doug Evans <dje@google.com>
4314 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4315 (struct dwarf2_per_cu_data): Ditto.
4316 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4317 (process_imported_unit_die): Ditto.
4318 (follow_die_sig_1): Simplify assert.
4320 2013-08-27 Pedro Alves <palves@redhat.com>
4322 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4323 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4324 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4325 windows_xfer_memory directly.
4326 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4328 2013-08-27 Pedro Alves <palves@redhat.com>
4330 * darwin-nat.c (darwin_xfer_memory): Delete.
4331 (_initialize_darwin_inferior): Don't install a
4332 deprecated_xfer_memory method.
4334 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4335 Yao Qi <yao@codesourcery.com>
4337 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4338 (parse_no_frames_option): Remove.
4339 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4340 (mi_cmd_stack_list_args): Adjust.
4341 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4342 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4343 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4345 (list_args_or_locals): New parameter 'skip_unavailable'.
4347 * valprint.c (scalar_type_p): Rename to ...
4348 (val_print_scalar_type_p): ... this. Make extern.
4349 (val_print, value_check_printable): Adjust.
4350 * valprint.h (val_print_scalar_type_p): Declare.
4351 * value.c (value_entirely_unavailable): New function.
4352 * value.h (value_entirely_unavailable): Declare.
4354 * NEWS: Mention the new option "--skip-unavailable" to MI
4355 commands '-stack-list-locals', '-stack-list-arguments' and
4356 '-stack-list-variables'.
4358 2013-08-27 Yao Qi <yao@codesourcery.com>
4360 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4361 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4363 * mi/mi-getopt.c (mi_getopt): Remove.
4364 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4366 (mi_getopt): Call mi_getopt_1.
4367 (mi_getopt_silent): New.
4368 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4370 2013-08-26 Doug Evans <dje@google.com>
4373 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4374 .gdb_index is in use.
4375 * symfile.c (reread_symbols): Reset objfile->sf.
4377 * NEWS: Document "mt print objfiles" now takes optional regexp.
4378 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4379 regexp of objfiles to print.
4380 (_initialize_symmisc): Update doc string for "mt print objfiles".
4382 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4383 missing debug info checks.
4385 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4386 Ulrich Weigand <uweigand@de.ibm.com>
4388 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4389 line tables generated by XLC compiled binaries.
4391 2013-08-23 Doug Evans <dje@google.com>
4393 * symmisc.c (dump_symtab): Delete prototype.
4394 (dump_msymbols, dump_objfile): Ditto.
4395 (maintenance_info_symtabs): Mark as dont_repeat.
4396 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4398 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4399 debugging printf to better location.
4401 2013-08-23 Pedro Alves <palves@redhat.com>
4403 * target.c (target_read_live_memory): Change type of 'ret' local
4406 2013-08-23 Pedro Alves <palves@redhat.com>
4408 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4409 (remote_read_bytes): Change return type to LONGEST, and adjust to
4410 return a target_xfer_error on error.
4411 (remote_xfer_memory): Delete.
4412 (remote_flash_write): Change type of 'ret' local to LONGEST.
4413 (remote_xfer_partial, remote_xfer_partial): Adjust.
4414 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4416 2013-08-23 Pierre Muller <muller@sourceware.org>
4418 ARI fix: Push # directives to start of line.
4419 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4421 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4424 * breakpoint.c (enable_command, disable_command): Iterate over
4425 all specified breakpoint locations.
4427 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4429 * common/linux-ptrace.c (linux_fork_to_function): Push #
4430 directives to the start of the line.
4431 (linux_check_ptrace_features): Fix warning message to use
4434 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4436 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4437 nat/linux-waitpid.h.
4438 (linux-waitpid.o): New object file rule.
4439 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4440 (current_ptrace_options): Moved from linux-nat.c.
4441 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4443 (linux_fork_to_function): New function.
4444 (linux_grandchild_function): Likewise.
4445 (linux_child_function): Likewise.
4446 (linux_check_ptrace_features): New function, heavily
4447 based on linux-nat.c:linux_test_for_tracefork.
4448 (linux_enable_event_reporting): New function.
4449 (ptrace_supports_feature): Likewise.
4450 (linux_supports_tracefork): Likewise.
4451 (linux_supports_traceclone): Likewise.
4452 (linux_supports_tracevforkdone): Likewise.
4453 (linux_supports_tracesysgood): Likewise.
4454 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4455 gdbserver/linux-low.c.
4456 (linux_enable_event_reporting): New declaration.
4457 (linux_supports_tracefork): Likewise.
4458 (linux_supports_traceclone): Likewise.
4459 (linux_supports_tracevforkdone): Likewise.
4460 (linux_supports_tracesysgood): Likewise.
4461 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4462 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4463 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4464 * config/arm/linux.mh (NATDEPFILES): Likewise.
4465 * config/i386/linux.mh (NATDEPFILES): Likewise.
4466 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4467 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4468 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4469 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4470 * config/mips/linux.mh (NATDEPFILES): Likewise.
4471 * config/pa/linux.mh (NATDEPFILES): Likewise..
4472 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4473 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4474 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4475 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4476 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4477 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4478 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4479 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4480 ptrace's 4th argument's types.
4481 Check the type of PTRACE_TYPE_ARG4.
4482 * configure: Regenerate.
4483 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4484 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4485 (linux_supports_tracefork_flag): Remove.
4486 (linux_supports_tracesysgood_flag): Likewise.
4487 (linux_supports_tracevforkdone_flag): Likewise.
4488 (current_ptrace_options): Moved to
4489 common/linux-ptrace.c.
4490 (linux_tracefork_child): Remove.
4491 (my_waitpid): Remove.
4492 (linux_test_for_tracefork): Renamed to
4493 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4494 (linux_test_for_tracesysgood): Remove.
4495 (linux_supports_tracesysgood): Remove.
4496 (linux_supports_tracefork): Remove.
4497 (linux_supports_tracevforkdone): Remove.
4498 (linux_enable_tracesysgood): Remove.
4499 (linux_enable_event_reporting): Remove.
4500 (linux_init_ptrace): New function.
4501 (linux_child_post_attach): Call linux_init_ptrace.
4502 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4503 (linux_child_follow_fork): Call linux_supports_tracefork
4504 and linux_supports_tracevforkdone.
4505 (linux_child_insert_fork_catchpoint): Call
4506 linux_supports_tracefork.
4507 (linux_child_insert_vfork_catchpoint): Likewise.
4508 (linux_child_set_syscall_catchpoint): Call
4509 linux_supports_tracesysgood.
4510 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4511 * nat/linux-nat.h: New file.
4512 * nat/linux-waitpid.c: New file.
4513 * nat/linux-waitpid.h: New file.
4515 2013-08-22 Samuel Bronson <naesten@gmail.com>
4517 ARM Linux support for `catch syscall'.
4518 * syscalls/arm-linux.py: New file.
4519 * syscalls/arm-linux.xml: Likewise.
4520 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4521 (arm_linux_init_abi): Register the new function and syscall xml file.
4522 * data-directory/Makefile.in: Install the new syscall xml file.
4523 * NEWS: Brag about this.
4525 2013-08-22 Pedro Alves <palves@redhat.com>
4528 * corefile.c (target_xfer_memory_error): New function.
4529 (memory_error): Defer EIO to target_memory_error.
4530 (read_memory): Use target_xfer_partial, and handle finer-grained
4532 * target.c (target_xfer_error_to_string): New function.
4533 (memory_xfer_partial_1): If memory is known to be
4534 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4535 (target_xfer_partial): Make extern.
4536 * target.h (enum target_xfer_error): New enum.
4537 (target_xfer_error_to_string): Declare function.
4538 (target_xfer_partial): Declare function.
4539 (struct target_ops) <xfer_partial>: Adjust describing comment.
4541 2013-08-22 Alan Modra <amodra@gmail.com>
4543 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4544 * configure.tgt: Likewise as targets.
4546 2013-08-20 Doug Evans <dje@google.com>
4548 * buildsym.c (subfile_stack): Move here from buildsym.h.
4549 (pending_macros): Ditto.
4550 (get_macro_table): New function.
4551 (buildsym_init): Initialize subfile_stack.
4552 * coffread.c (type_vector,type_vector_length): Moved here from
4554 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4555 (coff_symtab_read): Use it.
4556 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4557 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4558 with call to get_macro_table.
4559 * stabsread.c (type_vector,type_vector_length): Moved here from
4561 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4562 * buildsym.h (get_macro_table): Declare.
4564 2013-08-20 Tom Tromey <tromey@redhat.com>
4566 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4568 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4570 2013-08-20 Doug Evans <dje@google.com>
4572 * blockframe.c: Remove #include "psymtab.h".
4573 * cp-support.c: Ditto.
4577 2013-08-20 Tom Tromey <tromey@redhat.com>
4580 * exceptions.h (return_mask): Now an enum.
4581 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4584 2013-08-20 Tom Tromey <tromey@redhat.com>
4586 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4588 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4589 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4590 * jit.c (jit_object_close_impl): Update.
4591 * jv-lang.c (get_dynamics_objfile): Update.
4592 * linespec.c (add_minsym): Use get_dynamics_objfile.
4593 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4594 (allocate_objfile): Don't initialize 'gdbarch' field.
4595 (get_objfile_arch): Update.
4596 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4598 (struct objfile) <gdbarch>: ... here. Remove.
4599 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4601 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4603 2013-08-20 Alan Modra <amodra@gmail.com>
4605 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4606 for IBM long double nan and inf.
4607 (floatformat_is_negative, floatformat_classify,
4608 floatformat_mantissa): Similarly.
4609 (floatformat_ieee_single, floatformat_ieee_double,
4610 floatformat_ieee_quad, floatformat_arm_ext,
4611 floatformat_ia64_spill): Delete unused vars.
4612 (_initialize_doublest): Delete unused function.
4613 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4614 little-endian variants of floatformat_ibm_long_double.
4616 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4618 * Makefile.in (SFILES): Remove common/target-common.c and
4619 add target/waitstatus.c.
4620 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4621 target/resume.h, target/wait.h and target/waitstatus.h.
4622 (COMMON_OBS): Remove target-common.o and add
4624 (target-common.o): Remove.
4625 (waitstatus.o): New target object file.
4626 * common/target-common.c: Move contents to
4627 target/waitstatus.c and remove.
4628 * common/target-common.h: Move contents to other files and
4630 (enum resume_kind: Move to target/resume.h.
4631 (TARGET_WNOHANG): Move to target/wait.h.
4632 (enum target_waitkind): Move to target/waitstatus.h.
4633 (struct target_waitstatus): Likewise.
4634 * target.h: Do not include target-common.h and
4635 include target/resume.h, target/wait.h and
4636 target/waitstatus.h.
4637 * target/resume.h: New file.
4638 * target/wait.h: New file.
4639 * target/waitstatus.h: New file.
4640 * target/waitstatus.c: New file.
4642 2013-08-19 Pedro Alves <palves@redhat.com>
4644 * linux-nat.c (linux_test_for_tracefork)
4645 (linux_test_for_tracesysgood, linux_child_follow_fork)
4646 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4647 (linux_nat_wait_1): Extend comment.
4648 (linux_async_pipe): Add comment.
4650 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4652 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4653 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4654 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4655 Update to account for fact that PC is now a pseudo-register.
4656 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4657 cases for RL78_PC_REGNUM.
4659 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4662 * top.c (quit_force): Skip writing history file
4663 if input is not from terminal.
4665 2013-08-14 Tom Tromey <tromey@redhat.com>
4667 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4668 resultthreadlist>: New fields.
4669 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4670 (remote_get_threadlist, remote_threadlist_iterator): Use
4671 new fields. Remove static variables.
4673 2013-08-14 Tom Tromey <tromey@redhat.com>
4675 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4676 remote_watch_data_address>: New fields.
4677 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4678 (process_stop_reply, remote_wait_as)
4679 (remote_check_watch_resources, remote_stopped_data_address): Update.
4681 2013-08-14 Tom Tromey <tromey@redhat.com>
4683 * remote.c (struct remote_state) <async_client_callback,
4684 async_client_context>: New fields.
4685 (async_client_callback, async_client_context): Remove.
4686 (remote_async_serial_handler, remote_async): Update.
4688 2013-08-14 Tom Tromey <tromey@redhat.com>
4690 * remote.c (sizeof_pkt): Remove.
4691 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4693 2013-08-14 Tom Tromey <tromey@redhat.com>
4695 * remote.c (struct remote_state) <use_threadinfo_query,
4696 use_threadextra_query>: New fields.
4697 (remote_threads_info, remote_threads_extra_info)
4698 (remote_open_1): Update.
4700 2013-08-14 Tom Tromey <tromey@redhat.com>
4702 * remote.c (struct remote_state) <finished_object,
4703 finished_annex, finished_offset>: New fields.
4704 (remote_read_qxfer): Use remote_state fields; remove static
4707 2013-08-14 Tom Tromey <tromey@redhat.com>
4709 * remote.c (struct remote_state) <last_sent_step>:
4711 (last_sent_step): Remove.
4712 (remote_resume, remote_wait_as): Update.
4714 2013-08-14 Tom Tromey <tromey@redhat.com>
4716 * remote.c (struct remote_state) <last_sent_signal>:
4718 (last_sent_signal): Remove.
4719 (new_remote_state, remote_resume, remote_wait_as): Update.
4721 2013-08-14 Tom Tromey <tromey@redhat.com>
4723 * remote.c (struct remote_state) <last_program_signals_packet>:
4725 (last_program_signals_packet): Remove.
4726 (remote_program_signals, remote_open_1): Update.
4728 2013-08-14 Tom Tromey <tromey@redhat.com>
4730 * remote.c (struct remote_state) <last_pass_packet>:
4732 (last_pass_packet): Remove.
4733 (remote_pass_signals, remote_open_1): Update.
4735 2013-08-14 Tom Tromey <tromey@redhat.com>
4737 * remote.c (struct remote_state) <remote_traceframe_number>:
4739 (remote_traceframe_number): Remove.
4740 (new_remote_state, remote_open_1, set_remote_traceframe)
4741 (remote_trace_find): Update.
4743 2013-08-14 Tom Tromey <tromey@redhat.com>
4745 * remote.c (struct remote_state) <general_thread, continue_thread>:
4747 (general_thread, continue_thread): Remove.
4748 (record_currthread, set_thread, set_general_process)
4749 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4750 (extended_remote_mourn_1): Update.
4752 2013-08-14 Tom Tromey <tromey@redhat.com>
4754 * remote.c (struct remote_state) <remote_desc>: New field.
4755 (remote_desc): Remove.
4756 (remote_threads_info, remote_threads_extra_info, remote_close)
4757 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4758 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4759 (remote_hostio_send_command, remote_file_put, remote_file_get)
4760 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4761 (remote_async, remote_new_objfile, set_range_stepping): Update.
4763 2013-08-14 Tom Tromey <tromey@redhat.com>
4765 * remote.c (remote_state): Now a pointer.
4766 (get_remote_state_raw): Update.
4767 (new_remote_state): New function.
4768 (_initialize_remote): Use new_remote_state.
4770 2013-08-14 Tom Tromey <tromey@redhat.com>
4772 * remote.c (remote_protocol_features): Now const.
4774 2013-08-14 Tom Tromey <tromey@redhat.com>
4776 * remote.c (crc32_table, crc32): Remove.
4777 (remote_verify_memory): Use xcrc32.
4779 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4781 * value.h (create_internalvar_type_lazy): Adjust prototype
4784 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4786 * common/format.c (parse_format_string): Don't allow '#' flag for
4787 pointer arguments in format string.
4789 2013-08-13 Pierre Muller <muller@sourceware.org>
4791 * utils.c (init_page_info): Only call tgetnum function
4792 if rl_get_screen_size did not return useful values.
4794 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4796 PR breakpoints/15117
4797 * linespec.c (linespec_parse_basic): Check for convenience
4798 variable or history value while parsing.
4800 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4802 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4804 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4805 different signals between the generic Linux kernel implementation
4807 (avr_linux_gdb_signal_from_target): Delete.
4808 (avr_linux_gdb_signal_to_target): Delete.
4809 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4811 2013-08-09 Doug Evans <dje@google.com>
4813 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4816 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4818 * linux-tdep.c: Define enum with generic signal numbers.
4819 (linux_gdb_signal_from_target): New function.
4820 (linux_gdb_signal_to_target): Likewise.
4821 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4822 methods to the functions above.
4823 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4824 (linux_gdb_signal_to_target): Likewise.
4825 * alpha-linux-tdep.c: Define new enum with signals different
4826 from generic Linux kernel.
4827 (alpha_linux_gdb_signal_from_target): New function.
4828 (alpha_linux_gdb_signal_to_target): Likewise.
4829 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4830 with the functions mentioned above.
4831 * avr-tdep.c: Define enum with differences between Linux kernel
4833 (avr_linux_gdb_signal_from_target): New function.
4834 (avr_linux_gdb_signal_to_target): Likewise.
4835 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4836 the functions mentioned above.
4837 * sparc-linux-tdep.c: Define enum with differences between SPARC
4838 and generic Linux kernel signal numbers.
4839 (sparc32_linux_gdb_signal_from_target): New function.
4840 (sparc32_linux_gdb_signal_to_target): Likewise.
4841 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4842 to the functions defined above.
4843 * xtensa-linux-tdep.c: Define enum with differences between
4844 Xtensa and Linux kernel generic signals.
4845 (xtensa_linux_gdb_signal_from_target): New function.
4846 (xtensa_linux_gdb_signal_to_target): Likewise.
4847 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4848 to the functions defined above.
4849 * mips-linux-tdep.c: Define enum with differences between
4850 signals in MIPS and Linux kernel generic ones.
4851 (mips_gdb_signal_to_target): New function.
4852 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4853 only different signals from the Linux kernel generic.
4854 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4855 the functions defined above.
4856 * mips-linux-tdep.h (enum mips_signals): Remove.
4858 2013-08-09 Pedro Alves <palves@redhat.com>
4860 * avr-tdep.c (XMALLOC): Delete macro.
4861 * cli/cli-dump.c (XMALLOC): Delete macro.
4863 2013-08-09 Pedro Alves <palves@redhat.com>
4865 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4866 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4867 (fopen_with_cleanup, add_dump_command): Make static.
4868 * cli/cli-dump.h: Delete file.
4869 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4872 2013-08-09 Pedro Alves <palves@redhat.com>
4874 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4877 2013-08-09 Pedro Alves <palves@redhat.com>
4879 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4882 2013-08-09 Pedro Alves <palves@redhat.com>
4884 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4885 (gcore_command): Use tilde_expand here, and when showing the
4886 filename to the user, show the expanded version.
4888 2013-08-09 Yao Qi <yao@codesourcery.com>
4890 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4893 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4895 * gcore.c (create_gcore_bfd): Use tilde_expand.
4897 2013-08-08 Yao Qi <yao@codesourcery.com>
4899 * frame.h (read_frame_local): Declare.
4900 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4902 * stack.c (read_frame_local): New.
4904 2013-08-08 Yao Qi <yao@codesourcery.com>
4906 * mi/mi-cmd-stack.c: Update comments to function
4907 list_args_or_locals.
4909 2013-08-07 Tom Tromey <tromey@redhat.com>
4912 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4913 (process_psymtab_comp_unit_reader): Use it.
4914 (process_psymtab_comp_unit): Update. Add "pretend_language"
4916 (dwarf2_build_psymtabs_hard): Update.
4917 (scan_partial_symbols): Pass CU's language to
4918 process_psymtab_comp_unit.
4920 2013-08-07 Tom Tromey <tromey@redhat.com>
4922 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4923 (dwarf2_gdb_index_functions): Update.
4924 * psymtab.c (find_symbol_file_from_partial): Remove.
4925 (psym_functions): Update.
4926 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4929 2013-08-07 Tom Tromey <tromey@redhat.com>
4931 * symfile.c (set_initial_language): Look up "main" symbol
4932 and use its language.
4933 * symtab.c (find_main_filename): Remove.
4934 * symtab.h (find_main_filename): Remove.
4936 2013-08-07 Tom Tromey <tromey@redhat.com>
4938 * dwarf2read.c (recursively_compute_inclusions): Add
4939 "immediate_parent" argument. Set symtab's "user" field
4941 (compute_symtab_includes): Update.
4943 2013-08-07 Tom Tromey <tromey@redhat.com>
4945 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4946 when adding label symbols.
4948 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4949 Ulrich Weigand <uweigand@de.ibm.com>
4951 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4952 * configure.host (powerpc64-*-aix*): Likewise.
4954 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4955 Ulrich Weigand <uweigand@de.ibm.com>
4957 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4959 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4960 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4961 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4962 * configure.ac: Check for ptrace64.
4963 * configure, config.in: Regenerate.
4965 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4966 Ulrich Weigand <uweigand@de.ibm.com>
4968 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4969 Call ptrace64 instead of ptrace if defined.
4970 Add macro addr_ptr to take care of ptrace address argument.
4971 (pdc_read_regs): Likewise.
4972 (pdc_write_regs): Likewise.
4973 (aix_thread_resume): Likewise.
4974 (fetch_regs_kernel_thread): Likewise.
4975 (store_regs_kernel_thread): Likewise.
4977 2013-08-07 Anton Blanchard <anton@samba.org>
4979 * MAINTAINERS: Add myself to Write After Approval.
4981 2013-08-05 Tom Tromey <tromey@redhat.com>
4983 * aix-thread.c (_initialize_aix_thread): Use
4984 complete_target_initialization.
4985 * bsd-uthread.c (_initialize_bsd_uthread): Use
4986 complete_target_initialization.
4987 * dec-thread.c (_initialize_dec_thread): Use
4988 complete_target_initialization.
4989 * ravenscar-thread.c (_initialize_ravenscar): Use
4990 complete_target_initialization.
4991 * sol-thread.c (_initialize_sol_thread): Use
4992 complete_target_initialization.
4993 * spu-multiarch.c (_initialize_spu_multiarch): Use
4994 complete_target_initialization.
4996 2013-08-05 Tom Tromey <tromey@redhat.com>
4998 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4999 * ada-lang.c (ada_lookup_simple_minsym): Return
5000 bound_minimal_symbol.
5001 * ada-lang.h (ada_lookup_simple_minsym): Update.
5002 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5003 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5004 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5005 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5006 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5007 * minsyms.c (msymbol_objfile): Remove.
5008 (lookup_minimal_symbol_internal): New function, from
5009 lookup_minimal_symbol.
5010 (lookup_minimal_symbol): Rewrite using
5011 lookup_minimal_symbol_internal.
5012 (lookup_bound_minimal_symbol): New function.
5013 * minsyms.h (msymbol_objfile): Remove.
5014 (lookup_bound_minimal_symbol): Declare.
5015 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5016 * parse.c (write_exp_msymbol): Change parameter to a
5017 bound_minimal_symbol.
5018 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5019 * parser-defs.h (write_exp_msymbol): Update.
5020 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5021 * symfile.c (simple_read_overlay_table): Use
5022 lookup_bound_minimal_symbol.
5023 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5024 (search_symbols): Likewise.
5025 (print_msymbol_info): Take a bound_minimal_symbol argument.
5026 (symtab_symbol_info, rbreak_command): Update.
5027 * symtab.h (struct symbol_search) <msymbol>: Change type
5028 to bound_minimal_symbol.
5029 * valops.c (find_function_in_inferior): Use
5030 lookup_bound_minimal_symbol.
5031 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5033 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5036 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5038 (async_cleanup_sigint_signal_handler): ... this.
5039 (initialize_sigint_signal_handler): Remove declaration.
5040 (handle_remote_sigint): Rename the declaration to ...
5041 (async_handle_remote_sigint): ... this.
5042 (handle_remote_sigint_twice): Rename the declaration to ...
5043 (async_handle_remote_sigint_twice): ... this.
5044 (async_remote_interrupt, async_remote_interrupt_twice)
5045 (remote_interrupt): Remove the declarations.
5046 (remote_interrupt_twice): Rename the declaration ...
5047 (sync_remote_interrupt_twice): ... this.
5048 (sigint_remote_twice_token): Rename the variable to ...
5049 (async_sigint_remote_twice_token): ... this.
5050 (sigint_remote_token): Rename the variable to ...
5051 (async_sigint_remote_token): ... this.
5052 (initialize_sigint_signal_handler): Rename the function to ...
5053 (async_initialize_sigint_signal_handler): ... this. Update the name
5055 (handle_remote_sigint): Rename the function to ...
5056 (async_handle_remote_sigint): ... this. Update the names inside.
5057 (handle_remote_sigint_twice): Rename the function to ...
5058 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5059 (cleanup_sigint_signal_handler): Rename the function to ...
5060 (async_cleanup_sigint_signal_handler): ... this.
5061 (remote_interrupt): Rename the function to ...
5062 (sync_remote_interrupt): this. Update the names inside.
5063 (remote_interrupt_twice): Rename the function to ...
5064 (sync_remote_interrupt_twice): this. Update the names inside.
5065 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5066 (_initialize_remote): Update the names inside.
5068 2013-08-02 Tom Tromey <tromey@redhat.com>
5071 * breakpoint.c (update_watchpoint, watchpoint_check)
5072 (watch_command_1): Update.
5073 * eval.c (fetch_subexp_value): Add "preserve_errors"
5075 * ppc-linux-nat.c (check_condition): Update.
5076 * value.h (fetch_subexp_value): Update.
5078 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
5080 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5083 2013-08-01 Doug Evans <dje@google.com>
5086 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5087 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5088 Add assert of sig_entry->dwo_unit == NULL.
5089 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5090 had already been read.
5091 (read_signatured_type): Set per_cu.tu_read.
5094 * valops.c (value_struct_elt): Add missing call to check_typedef.
5095 (value_find_oload_method_list): Ditto.
5097 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5098 effectively, struct symbol_search **.
5099 (make_cleanup_free_search_symbols): Change arg to struct
5100 symbol_search **. All callers updated.
5101 (compare_search_syms): Compare symtab file name and block as well.
5102 (search_symbols_equal): New function.
5103 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5104 New args new_head, new_tail. Result is now void. Remove dups after
5105 sorting the symbols.
5106 (search_symbols): Sort all found symbols once, after all have been
5107 found, and remove duplicates. Simplify cleanup tracking of result.
5108 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5110 Further workarounds for binutils/15021.
5111 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5112 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5113 Watch for duplicate symtabs coming from type units.
5114 (compute_symtab_includes): Update call to
5115 recursively_compute_inclusions. Build vector of included symtabs
5117 * symtab.h (symtab_ptr): New typedef.
5118 (DEF_VEC_P (symtab_ptr)): New VEC type.
5119 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5122 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5124 * cli/cli-script.c (script_from_file): Remove use of
5126 * main.c (captured_main): Remove use of error_pre_print and
5128 * utils.c (error_pre_print, quit_pre_print): Remove.
5129 * utils.h (error_pre_print, quit_pre_print): Likewise.
5131 2013-08-01 Yao Qi <yao@codesourcery.com>
5133 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5135 (mi_cmd_stack_list_variables): Likewise.
5137 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5139 * exceptions.c (deprecated_throw_reason): Remove.
5140 * exceptions.h (deprecated_throw_reason): Remove.
5142 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5144 * remote-mips.c (mips_error): Replace use of
5145 deprecated_throw_reason with throw_verror. Use the error message
5146 passed to mips_error as the error message for throw_verror.
5148 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5150 * monitor.c (monitor_interrupt_query): Replace use of
5151 deprecated_throw_reason with quit.
5152 * nto-procfs.c (interrupt_query): Likewise.
5153 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5154 * remote-mips.c (mips_kill): Likewise.
5155 * remote.c (interrupt_query): Likewise.
5157 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5159 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5162 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5163 Yao Qi <yao@codesourcery.com>
5165 * tracepoint.c (trace_dump_command): Select the current frame.
5167 2013-07-30 Doug Evans <dje@google.com>
5169 * dwarf2read.c (process_queue): Add type signature to debug output.
5171 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5173 * value.c (value_fetch_lazy): Mark optimized out values as such
5174 rather than raising an error.
5176 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5178 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5179 before checking which bits of the parent, not the child, value are
5182 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5185 * top.c: Include "filenames.h".
5186 (set_history_filename): New function.
5187 (init_main): Install it as set hook of the "set history filename"
5190 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5192 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5193 attribute parameter.
5194 (dwarf2_const_value_data): Constify struct attribute parameter.
5195 (dwarf2_const_value): Constify struct attribute parameter.
5196 (dwarf2_const_value_attr): Constify struct attribute parameter.
5197 (lookup_die_type): Constify struct attribute parameter.
5198 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5199 (follow_die_ref_or_sig): Constify struct attribute parameter.
5200 (follow_die_ref): Constify struct attribute parameter.
5201 (follow_die_sig): Constify struct attribute parameter.
5202 (get_DW_AT_signature_type): Constify struct attribute parameter.
5203 (get_type_unit_group): Constify struct attribute parameter.
5204 (fill_in_loclist_baton): Constify struct attribute parameter.
5205 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5206 (type_unit_group): Constify struct attribute parameter.
5208 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5210 * dwarf2read.c (attr_form_is_block): Make argument const.
5211 (attr_form_is_section_offset): Make argument const.
5212 (attr_form_is_constant): Make argument const.
5213 (attr_form_is_ref): Make argument const.
5215 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5217 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5219 (attr_form_is_ref): Moved below attr_form_is_constant.
5221 2013-07-29 Doug Evans <dje@google.com>
5223 * main.c (captured_command_loop): Tweak comment.
5225 * target.c (target_async_permitted_1): Fix comment.
5227 * symtab.c (iterate_over_some_symtabs): Add comment.
5229 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5231 2013-07-27 Yao Qi <yao@codesourcery.com>
5233 * NEWS: Mention that GDBserver now supports hardware
5234 watchpoints on the MIPS GNU/Linux target.
5236 2013-07-27 Yao Qi <yao@codesourcery.com>
5238 * Makefile.in (HFILES_NO_SRCDIR): Add
5239 common/mips-linux-watch.h.
5240 (mips-linux-watch.o): New rule.
5241 * common/mips-linux-watch.c: New.
5242 * common/mips-linux-watch.h: New.
5243 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5244 * mips-linux-nat.c: Include mips-linux-watch.h.
5245 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5246 to common/mips-linux-watch.h.
5247 (MAX_DEBUG_REGISTER): Likewise.
5248 (enum pt_watch_style): Likewise.
5249 (struct mips32_watch_regs): Likewise.
5250 (struct mips64_watch_regs): Likewise.
5251 (struct pt_watch_regs): Likewise.
5252 (struct mips_watchpoint): Likewise.
5253 (mips_linux_watch_get_irw_mask): Move to
5254 common/mips-linux-watch.c.
5255 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5256 (mips_linux_watch_get_watchlo): Likewise.
5257 (mips_linux_watch_set_watchlo): Likewise.
5258 (mips_linux_watch_get_watchhi): Likewise.
5259 (mips_linux_watch_set_watchhi): Likewise.
5260 (mips_linux_read_watch_registers): Likewise.
5261 (mips_linux_watch_type_to_irw): Likewise.
5262 (mips_linux_stopped_data_address, fill_mask): Likewise.
5263 (mips_linux_watch_try_one_watch): Likewise.
5264 (mips_linux_watch_populate_regs): Likewise.
5266 2013-07-27 Yao Qi <yao@codesourcery.com>
5268 * mips-linux-nat.c (get_irw_mask): Rename to ...
5269 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5270 'set' to 'n'. Update function comment. All callers changed.
5271 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5272 function comment. All callers changed.
5273 (get_num_valid): Rename to ...
5274 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5275 'set' to 'n'. Update function comment. All callers changed.
5276 (get_watchlo): Rename to ...
5277 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5278 'set' to 'n'. Update function comment. All callers changed.
5279 (set_watchlo): Rename to ...
5280 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5281 'set' to 'n'. Update function comment. All callers changed.
5282 (get_watchhi): Rename to ...
5283 (mips_linux_watch_get_watchhi): ... this. Update function
5284 comment. All callers changed.
5285 (set_watchhi): Rename to ...
5286 (mips_linux_watch_set_watchhi): ... this. Update function
5287 comment. All callers changed.
5288 (mips_linux_read_watch_registers): Update function comment.
5289 Add new parameters 'lwpid', 'watch_readback', and
5290 'watch_readback_valid'. Update.
5291 (type_to_irw): Rename to ...
5292 (mips_linux_watch_type_to_irw): ... this. Update function
5293 comment. All callers changed.
5294 (fill_mask): Update function comment.
5295 (try_one_watch): Rename to ...
5296 (mips_linux_watch_try_one_watch): ... this. Change the type
5297 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5298 (populate_regs_from_watches): Rename to ...
5299 (mips_linux_watch_populate_regs): ... this. Add parameter
5300 'current_watches'. All callers changed.
5302 2013-07-27 Yao Qi <yao@codesourcery.com>
5304 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5306 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5307 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5308 (struct pt_watch_regs): Likewise.
5309 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5310 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5311 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5312 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5313 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5315 2013-07-27 Yao Qi <yao@codesourcery.com>
5317 * breakpoint.h: Include break-common.h.
5318 (enum target_hw_bp_type): Move to ...
5319 * common/break-common.h: ... here. New.
5321 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5323 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5324 process group regardless of having tty on stdin.
5326 2013-07-25 Doug Evans <dje@google.com>
5328 * linux-fork.h (detach_fork): Delete.
5330 2013-07-25 Tom Tromey <tromey@redhat.com>
5332 PR remote/15256, PR remote/15266:
5333 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5334 * monitor.c (monitor_detach): Use unpush_target.
5335 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5336 * remote-mips.c (mips_detach): Use unpush_target. Don't
5338 * remote-sim.c (gdbsim_detach): Use unpush_target.
5339 * target.c (pop_target): Remove.
5340 (pop_all_targets_above): Don't call target_close.
5341 (target_close): Assert that the target is unpushed.
5342 * target.h (pop_target): Don't declare.
5343 * tracepoint.c (tfile_open): Use unpush_target.
5345 2013-07-25 Tom Tromey <tromey@redhat.com>
5347 * linux-thread-db.c (init_thread_db_ops): Call
5348 complete_target_initialization.
5349 (_initialize_thread_db): Don't call add_target.
5350 * target.c (complete_target_initialization): New function.
5351 (add_target_with_completer): Call it.
5352 * target.h (complete_target_initialization): Declare.
5354 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5356 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5357 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5358 (HPPANBSD_SIZEOF_GREGS): New define.
5359 (hppaobsd_supply_gregset): Handle additional registers.
5360 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5361 we provide more registers now.
5362 (hppabsd_supply_gregset): Supply additional registers.
5363 (hppabsd_collect_gregset): Collect additional registers.
5365 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5367 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5368 (hppabsd_dwarf2_frame_init_reg): New function.
5369 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5371 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5373 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5374 'z' format code. Remove error for optimized out values, standard
5375 code will handle these fine.
5377 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5379 * NEWS: Mention new 'z' formatter.
5380 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5381 (_initialize_printcmd): Mention 'z' formatter in help text of the
5384 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5386 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5389 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5391 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5392 interface can evaluate arguments. Fallback to the old mode if it
5394 (create_exception_master_breakpoint): Likewise.
5395 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5396 (struct sym_probe_fns elf_probe_fns): Export function above to the
5398 * probe.c (can_evaluate_probe_arguments): New function.
5399 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5401 (can_evaluate_probe_arguments): New function prototype.
5402 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5403 probe interface can evaluate arguments. Fallback to the old mode
5405 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5406 interface can evaluate arguments. Warning the user if it cannot.
5407 (stap_can_evaluate_probe_arguments): New function.
5408 (struct probe_ops stap_probe_ops): Export function above to the
5410 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5411 New function pointer.
5413 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5415 * Makefile.in (SFILES): Add common/target-common.c.
5416 Add common/target-common.h to headers.
5417 (COMMON_OBS): Add target-common.o.
5418 (target-common.o): New target.
5419 * linux-nat.h (resume_kind): Move to common/target-common.h.
5420 * target.c (target_waitstatus_to_string): Move to
5421 common/target-common.c.
5422 * target.h: Include target-common.h.
5423 (target_waitkind): Move to common/target-common.h.
5424 (target_waitstatus): Likewise.
5425 (TARGET_WNOHANG): Likewise.
5426 * common/target-common.c: New file.
5427 * common/target-common.h: New file.
5429 2013-07-24 Doug Evans <dje@google.com>
5431 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5434 2013-07-23 Yao Qi <yao@codesourcery.com>
5436 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5437 parameter 'gdbarch'.
5438 (i386_stack_tramp_frame_sniffer): Caller update.
5439 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5440 parameter 'gdbarch' and 'target'.
5441 (i386_linux_core_read_description): Caller update.
5442 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5444 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5447 2013-07-23 Tom Tromey <tromey@redhat.com>
5449 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5452 2013-07-22 Doug Evans <dje@google.com>
5454 * exec.h (remove_target_sections): Delete arg abfd.
5455 * exec.c (exec_close): Update call to remove_target_sections.
5456 (remove_target_sections): Delete arg abfd.
5457 * solib.c (update_solib_list): Ditto.
5458 (reload_shared_libraries_1): Ditto.
5459 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5460 * target.h (struct target_section): Rename key to owner.
5463 2013-07-22 Tom Tromey <tromey@redhat.com>
5465 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5467 2013-07-22 Tom Tromey <tromey@redhat.com>
5469 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5470 Simplify cleanup handling.
5472 2013-07-22 Tom Tromey <tromey@redhat.com>
5474 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5475 on all return paths.
5477 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5479 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5480 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5481 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5483 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5485 * top.c (print_gdb_version): Add help, apropos description and
5486 url to online documentation.
5488 2013-07-19 Hui Zhu <hui@codesourcery.com>
5491 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5493 2013-07-19 Yao Qi <yao@codesourcery.com>
5495 * target.c (update_current_target): Change the default action
5496 of 'to_traceframe_info' from tcomplain to return_zero.
5497 * target.h (struct target_ops) <to_traceframe_info>: Add more
5499 * valops.c (read_value_memory): Call
5500 traceframe_available_memory unconditionally.
5502 2013-07-18 Yao Qi <yao@codesourcery.com>
5504 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5505 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5506 symbol without prefix. If found, set its type to
5507 'mst_solib_trampoline'.
5509 2013-07-17 Doug Evans <dje@google.com>
5511 * NEWS: Mention "set print raw frame-arguments".
5512 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5513 * stack.c (print_raw_frame_arguments): New static global.
5514 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5515 (_initialize_stack): New command "set/show print raw frame-arguments".
5516 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5517 (set_print_raw, show_print_raw): New functions.
5518 (_initialize_valprint): New prefix command "set/show print raw".
5519 * valprint.h (value_print_options): Improve comments.
5521 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5522 of all *list variables.
5524 * gdbcmd.h (togglelist): Delete.
5525 * cli/cli-cmds.c (togglelist): Delete.
5526 (init_cmd_lists): Update.
5527 * cli/cli-cmds.h (togglelist): Delete.
5529 2013-07-17 Tom Tromey <tromey@redhat.com>
5531 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5534 2013-07-16 Doug Evans <dje@google.com>
5536 * nto-tdep.c (nto_relocate_section_addresses): Update,
5537 target_section.bfd deleted.
5538 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5539 * s390-tdep.c (s390_load): Ditto.
5540 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5542 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5544 * common/format.c (parse_format_string): Add checks for NULL
5545 character before calling strchr.
5547 2013-07-16 Doug Evans <dje@google.com>
5549 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5550 temp_pathname argument.
5551 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5552 when opening the file fails.
5554 * target.h (struct target_section): Delete member bfd.
5555 All users updated to use the_bfd_section->owner instead.
5556 * exec.c (add_to_section_table): Assert bfd is expected value.
5557 Remove initialization of target_section.bfd.
5558 (remove_target_sections): Update.
5559 (section_table_available_memory): Update.
5560 (section_table_xfer_memory_partial): Update.
5561 (print_section_info): Update.
5562 (exec_set_section_address): Update.
5563 * record-full.c (record_full_core_xfer_partial): Update.
5564 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5565 * solib-target.c (solib_target_relocate_section_addresses): Update.
5566 * symfile.c (build_section_addr_info_from_section_table): Update.
5567 * target.c (memory_xfer_live_readonly_partial): Update.
5568 (memory_xfer_partial_1): Update.
5570 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5572 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5573 now available for embedded (BookE) and server (BookS) processors,
5574 correct mentions of 'booke' and adjust comments accordingly in order to
5575 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5576 (have_ptrace_booke_interface): Rename function and variable
5577 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5578 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5579 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5580 'hwdebug_point_cmp'. Update all uses.
5581 (booke_find_thread_points_by_tid): Rename function
5582 'booke_find_thread_points_by_tid' to
5583 'hwdebug_find_thread_points_by_tid'. Update all uses.
5584 (booke_insert_point): Rename function 'booke_insert_point' to
5585 'hwdebug_insert_point'. Update all uses.
5586 (booke_remove_point): Rename function 'booke_remove_point' to
5587 'hwdebug_remove_point'. Update all uses.
5589 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5591 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5592 numbers with enum values.
5594 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5597 * thread.c (thread_apply_all_command): Check for valid threads
5599 (thread_array_cleanup): New struct.
5600 (set_thread_refcount): New function.
5602 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5604 * infcmd.c (default_print_one_register_info): Reuse function
5607 2013-07-10 Tom Tromey <tromey@redhat.com>
5609 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5610 (ada-exp.o): New target.
5612 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5614 * mt-tdep.c (mt_registers_info): Call
5615 get_no_prettyformat_print_options instead of
5616 get_raw_print_options (regression by last patch from Doug
5619 2013-07-09 Pedro Alves <palves@redhat.com>
5621 Checked in by Joel Brobecker <brobecker@adacore.com>.
5622 * ada-lang.c (coerce_unspec_val_to_type): Use
5623 value_optimized_out_const.
5624 * value.c (value_optimized_out_const): New function.
5625 * value.h (value_optimized_out_const): New declaration.
5627 2013-07-09 Doug Evans <dje@google.com>
5629 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5630 Enum values rename as well. All uses updated.
5631 * valprint.h (value_print_options): Rename member pretty to
5632 pretty format. Rename member prettyprint_arrays to
5633 prettyformat_arrays. Rename member prettyprint_structs to
5634 prettyformat_structs. All uses updated.
5635 (get_no_prettyformat_print_options): Renamed from
5636 get_raw_print_options.
5637 * valprint.c (get_no_prettyformat_print_options): Renamed from
5638 get_raw_print_options. All callers updated.
5639 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5640 All callers updated.
5641 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5642 All callers updated.
5643 (_initialize_valprint): Improve help text for "set print pretty" and
5646 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5648 * value.c (value_bits_valid): Revert previous change, and change
5649 by Pedro on 2013-07-04, due to regressions in
5650 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5652 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5653 Pedro Alves <palves@redhat.com>
5655 * value.c (value_bits_valid): If the value is not lval_computed
5656 or has no check validity handler then the answer is the
5657 optimized_out flag, otherwise defer to the handler.
5659 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5661 * top.c (print_gdb_configuration): Explain in output of
5662 --configuration what does "relocatable" mean.
5664 * main.c (print_gdb_help): Regroup options in the --help text.
5665 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5666 the relevant discussions.
5668 2013-07-06 Yao Qi <yao@codesourcery.com>
5670 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5671 Remove parameter 'lsal'.
5672 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5673 to inner block. Caller update.
5674 (base_breakpoint_create_breakpoints_sal): Update.
5675 (bkpt_create_breakpoints_sal): Likewise.
5676 (tracepoint_create_breakpoints_sal): Likewise.
5677 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5678 element 0 of vector 'canonical->sals'.
5680 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5682 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5683 register number instead of the pseudo register one.
5684 (rs6000_dwarf2_reg_to_regnum): Likewise.
5686 2013-07-04 Pedro Alves <palves@redhat.com>
5688 * findvar.c (value_of_register): Use allocate_optimized_out_value
5689 if the register has been optimized out, instead of
5690 set_value_optimized_out.
5691 * frame-unwind.c (frame_unwind_got_optimized): Use
5692 allocate_optimized_out_value.
5694 2013-07-04 Pedro Alves <palves@redhat.com>
5696 * value.c (value_bits_valid): If the value is not lval_computed,
5697 or doesn't have a check_validity hook, assume the value is entirely
5700 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5702 * stack.c (read_frame_arg): No longer fetch lazy values.
5703 * value.c (value_optimized_out): If the value is not already
5704 marked optimized out, and is lazy then fetch it.
5705 (value_primitive_field): Move optimized out check to later in the
5706 function, after we have loaded any lazy values.
5707 (value_fetch_lazy): Use optimized out flag directly rather than
5708 calling optimized_out method.
5710 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5712 * valops.c: Don't include "user-regs.h".
5713 (value_fetch_lazy): Moved to value.c.
5714 * value.c: Include "user-regs.h".
5715 (value_fetch_lazy): Moved from valops.c.
5717 2013-07-04 Yao Qi <yao@codesourcery.com>
5720 2013-06-27 Yao Qi <yao@codesourcery.com>
5722 * common/create-version.sh: Update comments. Handle the case
5723 that TARGET_ALIAS is empty.
5725 2013-07-03 Pedro Alves <palves@redhat.com>
5727 * Makefile.in (config.status): Depend on development.sh.
5728 (aclocal_m4_deps): Add libmcheck.m4.
5729 * acinclude.m4: Include libmcheck.m4.
5730 * configure.ac: Source development.sh instead of setting
5731 'development' here. --enable-libmcheck/--disable-libmcheck code
5732 factored out to GDB_AC_LIBMCHECK. Run it.
5733 * development.sh: New file.
5734 * libmcheck.m4: New file.
5735 * configure: Regenerate.
5737 2013-07-02 Tom Tromey <tromey@redhat.com>
5739 * contrib/ari/update-web-ari.sh: Update for version.in change.
5741 2013-07-02 Tom Tromey <tromey@redhat.com>
5743 * common/ptid.h: Comment fixes.
5745 2013-07-01 Tom Tromey <tromey@redhat.com>
5747 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5748 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5749 (dwarf2_read_index, create_all_comp_units): Update.
5751 2013-07-01 Tom Tromey <tromey@redhat.com>
5753 * configure.ac (build_warnings): Add -Wold-style-definition.
5754 * configure: Rebuild.
5755 * machoread.c (_initialize_machoread): Use "(void)".
5756 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5759 2013-07-01 Tom Tromey <tromey@redhat.com>
5761 * configure.ac (build_warnings): Add -Wold-style-declaration.
5762 * configure: Rebuild.
5763 * dsrec.c (make_srec): Use "static const", not "const static".
5764 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5766 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5767 Use "static const", not "const static".
5768 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5770 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5772 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5774 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5776 (v850_dbtrap_breakpoint_from_pc): Likewise.
5777 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5780 2013-07-01 Tom Tromey <tromey@redhat.com>
5782 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5783 * configure: Rebuild.
5785 2013-07-01 Pedro Alves <palves@redhat.com>
5787 * defs.h: Include "pathmax.h".
5788 * utils.c: Don't include sys/param.h.
5789 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5790 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5791 instead of MAXPATHLEN.
5792 * solib-sunos.c: Don't include sys/param.h.
5793 * xcoffread.c: Don't include sys/param.h.
5794 * bsd-kvm.c: Don't include sys/param.h.
5795 * darwin-nat.c: Don't include sys/param.h.
5796 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5797 * darwin-nat-info.c: Don't include sys/param.h.
5798 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5800 * i386obsd-nat.c: Don't include sys/param.h.
5801 * inf-child.c: Don't include sys/param.h.
5802 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5803 * linux-fork.c: Don't include sys/param.h.
5804 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5805 * linux-nat.c: Don't include sys/param.h.
5806 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5807 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5808 * m68klinux-nat.c: Don't include sys/param.h.
5809 * nbsd-nat.c: Don't include sys/param.h.
5810 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5811 * ppc-linux-nat.c: Don't include sys/param.h.
5812 * rs6000-nat.c: Don't include sys/param.h.
5813 * spu-linux-nat.c. Don't include sys/param.h.
5814 * windows-nat.c: Don't include sys/param.h.
5815 * xtensa-linux-nat.c: Don't include sys/param.h.
5816 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5818 2013-07-01 Pedro Alves <palves@redhat.com>
5820 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5821 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5822 * gnulib/aclocal.m4: Regenerate.
5823 * gnulib/config.in: Regenerate.
5824 * gnulib/configure: Regenerate.
5825 * gnulib/import/pathmax.h: New file.
5826 * gnulib/import/Makefile.am: Regenerate.
5827 * gnulib/import/Makefile.in: Regenerate.
5828 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5829 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5830 * gnulib/import/m4/pathmax.m4: New file.
5832 2013-07-01 Pedro Alves <palves@redhat.com>
5834 * configure.ac (GDBINIT): Define, depending on host.
5835 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5836 * top.c (PATH_MAX): Delete fallback definition.
5837 (GDBINIT_FILENAME): Delete.
5838 (gdbinit): Reimplement as const char array set to the GDBINIT
5840 * top.h (gdbinit): Make const.
5841 * configure, config.in: Regenerate.
5843 2013-07-01 Pedro Alves <palves@redhat.com>
5845 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5846 * cli/cli-cmds.h (source_script): Likewise.
5847 * exceptions.c (catch_command_errors_const): New function.
5848 * exceptions.h (catch_command_errors_const): Declare.
5849 * main.c (get_init_files): Make parameters const, and adjust.
5850 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5851 'local_gdbinit' locals const. Adjust to use
5852 catch_command_errors_const.
5853 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5854 'local_gdbinit' locals const.
5856 2013-07-01 Pedro Alves <palves@redhat.com>
5858 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5859 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5860 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5863 2013-07-01 Pedro Alves <palves@redhat.com>
5865 Import the "unistd" gnulib module.
5866 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5867 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5868 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5869 import/m4/unistd_h.m4.
5870 * gnulib/aclocal.m4: Renenerate.
5871 * gnulib/config.in: Renenerate.
5872 * gnulib/configure: Renenerate.
5873 * gnulib/import/Makefile.am: Renenerate.
5874 * gnulib/import/Makefile.in: Renenerate.
5875 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5876 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5877 * gnulib/import/m4/off_t.m4: New file.
5878 * gnulib/import/m4/ssize_t.m4: New file.
5879 * gnulib/import/m4/sys_types_h.m4: New file.
5880 * gnulib/import/m4/unistd_h.m4: New file.
5881 * gnulib/import/sys_types.in.h: New file.
5882 * gnulib/import/unistd.c: New file.
5883 * gnulib/import/unistd.in.h: New file.
5885 2013-07-01 Pedro Alves <palves@redhat.com>
5887 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5888 defined instead of checking HAVE_UNISTD_H.
5890 2013-07-01 Pedro Alves <palves@redhat.com>
5892 Reimport gnulib from scratch.
5893 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5894 import/m4/onceonly.m4.
5895 * gnulib/aclocal.m4: Renegerate.
5896 * gnulib/config.in: Renegerate.
5897 * gnulib/configure: Renegerate.
5898 * gnulib/import/Makefile.in: Renegerate.
5899 * gnulib/import/extra/update-copyright: Renegerate.
5900 * gnulib/import/m4/onceonly.m4: Delete.
5902 2013-07-01 Pedro Alves <palves@redhat.com>
5904 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5906 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 * remote.c (async_remote_interrupt_twice): Make it static.
5910 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5912 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5914 * ia64-linux-tdep.c: Include <ctype.h>.
5915 (ia64_linux_stap_is_single_operand): New function.
5916 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5918 2013-06-28 Tom Tromey <tromey@redhat.com>
5920 * Makefile.in (version.c): Use version.in, not
5922 * common/create-version.sh: Likewise.
5923 * common/version.in: Move...
5924 * version.in: ...here.
5926 2013-06-28 Pedro Alves <palves@redhat.com>
5928 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5930 * utils.h (pagination_enabled): Declare.
5932 2013-06-28 Pedro Alves <palves@redhat.com>
5934 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5935 Move higher up in file.
5937 2013-06-28 Tom Tromey <tromey@redhat.com>
5939 * tracepoint.c (deprecated_readline_begin_hook)
5940 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5943 2013-06-28 Pedro Alves <palves@redhat.com>
5946 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5947 checking if they're available.
5948 * value.c (value_available_contents_eq): Change comment.
5949 * value.h (value_available_contents_eq): Expand comment.
5951 2013-06-27 Tom Tromey <tromey@redhat.com>
5953 * target.c (find_run_target): Remove.
5954 * target.h (find_run_target): Remove.
5956 2013-06-27 Tom Tromey <tromey@redhat.com>
5958 * corelow.c (core_gdbarch): Now static.
5960 2013-06-27 Tom Tromey <tromey@redhat.com>
5962 * target.c (target_struct_index): Remove.
5964 2013-06-27 Pedro Alves <palves@redhat.com>
5966 * infrun.c: Remove comment describing the 'stepping over runtime
5967 loader dynamic symbol resolution code' mechanism; moved to
5970 2013-06-27 Pedro Alves <palves@redhat.com>
5972 * exceptions.c (catch_command_errors): Remove spurious space.
5973 * exceptions.h (catch_command_errors): Second parameter is "arg",
5976 2013-06-27 Yao Qi <yao@codesourcery.com>
5978 * common/create-version.sh: Update comments. Handle the case
5979 that TARGET_ALIAS is empty.
5981 2013-06-26 Pedro Alves <palves@redhat.com>
5983 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5986 2013-06-26 Pedro Alves <palves@redhat.com>
5988 * infrun.c: Update comments on stepping over runtime loader
5989 dynamic symbol resolution code.
5991 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5993 * ax-gdb.h (union exp_element): Forward declare.
5994 * parser-defs.h: Include expression.h.
5996 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5998 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
6000 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6002 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6004 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6006 Fix trace-status to output proper start-time and stop-time.
6007 * tracepoint.c (trace_status_command): Fix type of printf arg to
6008 prevent improper type conversion.
6009 (trace_status_mi): Likewise.
6011 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6013 * mips-tdep.c (mips_next_pc): Fix a typo.
6015 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6017 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6019 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6020 Yao Qi <yao@codesourcery.com>
6022 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6023 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6024 * mi/mi-main.c (print_variable_or_computed): New function.
6025 (mi_cmd_trace_frame_collected): New function.
6026 * tracepoint.c (find_trace_state_variable_by_number): New.
6027 (struct traceframe_info): Move to tracepoint.h
6028 (struct collection_list): Likewise.
6029 (do_collect_symbol): Include locals and arguments in the
6030 collected variables list.
6031 (clear_collection_list): Clear wholly collected variables list
6032 and computed variables list.
6033 (append_exp): New function.
6034 (encode_actions_1): Include variables in the wholly
6035 collected variables list. Include memory ranges and
6036 full-fledged expressions in the computed expressions list.
6037 (encode_actions): Move some code to ...
6038 Return the cleanup chain.
6039 (encode_actions_rsp): ... here. New function.
6040 (get_traceframe_location, get_traceframe_info): Remove static.
6041 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6042 (struct collection_list): Moved from tracepoint.c. Add two
6043 new fields 'wholly_collected' and 'computed'.
6044 (find_trace_state_variable_by_number): Declare.
6045 (encode_actions): Adjust declaration.
6046 (encode_actions_rsp): Declare.
6047 (get_traceframe_info, get_traceframe_location): Declare.
6049 * NEWS: Mention new MI command -trace-frame-collected.
6051 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6052 Yao Qi <yao@codesourcery.com>
6054 * ctf.c (ctf_traceframe_info): Push trace state variables
6055 present in the trace data into the traceframe info object.
6056 * breakpoint.c (DEF_VEC_I): Remove.
6057 * common/filestuff.c (DEF_VEC_I): Likewise.
6058 * dwarf2loc.c (DEF_VEC_I): Likewise.
6059 * mi/mi-main.c (DEF_VEC_I): Likewise.
6060 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6061 * features/traceframe-info.dtd: Add tvar element and its
6063 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6064 (build_traceframe_info): Push trace state variables present in
6065 the trace data into the traceframe info object.
6066 (traceframe_info_start_tvar): New function.
6067 (tvar_attributes): New.
6068 (traceframe_info_children): Add "tvar" element.
6069 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6071 * NEWS: Mention the change in GDB and GDBserver.
6073 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6074 Yao Qi <yao@codesourcery.com>
6076 * tracepoint.c (trace_dump_command): Move code to ...
6077 (get_traceframe_location): ... here. New.
6079 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6080 Yao Qi <yao@codesourcery.com>
6082 * tracepoint.c (trace_dump_command): GDB emits an error
6083 instead of a warning when a traceframe is not selected.
6085 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6086 Yao Qi <yao@codesourcery.com>
6088 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6089 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6091 (do_clear_collection_list, init_collection_list): New.
6092 (encode_actions): Add local variables 'tracepoint_list' and
6093 'stepping_list'. Call init_collection_list and make cleanup
6094 which calls do_clear_collection_list. Don't call
6095 clear_collection_list.
6096 (_initialize_tracepoint): Delete references to
6097 'tracepoint_list' and 'stepping_list'.
6099 2013-06-25 Tom Tromey <tromey@redhat.com>
6101 * common/create-version.sh (date): Use "$", not "$$" in sed
6104 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6106 * NEWS (New targets): Add entry for TI MSP430.
6108 2013-06-25 Yao Qi <yao@codesourcery.com>
6110 * remote.c (remote_start_remote): Move code to upload tsv
6113 2013-06-25 Yao Qi <yao@codesourcery.com>
6114 Hui Zhu <hui@codesourcery.com>
6115 Pedro Alves <palves@redhat.com>
6117 PR breakpoints/15075
6118 PR breakpoints/15434
6119 * breakpoint.c (bpstat_stop_status): Call
6120 b->ops->after_condition_true.
6121 (update_dprintf_command_list): Don't append "continue" command
6122 to the command list of dprintf breakpoint.
6123 (base_breakpoint_after_condition_true): New function.
6124 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6125 (dprintf_after_condition_true): New function.
6126 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6127 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6129 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6131 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6132 (ALLDEPFILES): Add msp430-tdep.c.
6133 * configure.tgt (msp430*-*-elf): New target.
6134 * msp430-tdep.c: New file.
6136 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6138 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6139 microMIPS synthetic symbols.
6141 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6143 * objfiles.h (pc_in_section): New prototype.
6144 (in_plt_section): Remove name argument, replace prototype with
6145 static inline function.
6146 * mips-tdep.h: Include "objfiles.h".
6147 (in_mips_stubs_section): New function.
6148 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6149 in_solib_call_trampoline member.
6150 (hppa_in_solib_call_trampoline): Remove name argument.
6151 * objfiles.c (pc_in_section): New function.
6152 (in_plt_section): Remove function.
6153 * mips-linux-tdep.c: Include "objfiles.h".
6154 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6155 name argument. Return 1 rather than the low 16-bit halfword of
6156 any instruction examined.
6157 (mips_linux_in_dynsym_resolve_code): Update
6158 mips_linux_in_dynsym_stub call accordingly.
6159 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6160 rather than an equivalent hand-coded sequence.
6161 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6162 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6163 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6164 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6166 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6167 on call to tdep->in_solib_call_trampoline.
6168 (hppa_in_solib_call_trampoline): Remove name argument, update
6169 according to in_plt_section change.
6170 (hppa_skip_trampoline_code): Update according to in_plt_section
6172 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6173 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6175 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6176 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6177 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6178 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6179 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6180 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6181 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6182 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6183 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6184 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6185 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6186 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6187 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6189 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6191 * common/create-version.sh: Fix expansion of $host_alias
6192 and $target_alias in generation of HOST_NAME and TARGET_NAME
6195 2013-06-24 Tom Tromey <tromey@redhat.com>
6197 * common/create-version.sh: New file.
6198 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6200 (HFILES_NO_SRCDIR): Use common/version.h.
6201 * version.in: Move to ...
6202 * common/version.in: ... here. Replace date with "DATE".
6203 * version.h: Move to ...
6204 * common/version.h: ... here.
6206 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6208 * gdb/gnulib/Makefile.in: Update date in copyright header.
6209 * gdb/gnulib/configure.ac: Ditto.
6210 * gdb/gnulib/update-gnulib.sh: Ditto.
6212 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6214 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6215 "gdb/gnulib/import".
6217 2013-06-21 Will Newton <will.newton@linaro.org>
6219 * doublest.c (ldfrexp): Remove function.
6220 (convert_doublest_to_floatformat): Call frexpl instead of
6223 2013-06-21 Will Newton <will.newton@linaro.org>
6225 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6226 * gnulib/aclocal.m4: Regenerate.
6227 * gnulib/config.in: Regenerate.
6228 * gnulib/configure: Regenerate.
6229 * gnulib/import/Makefile.am: Update.
6230 * gnulib/import/Makefile.in: Update.
6231 * gnulib/import/m4/gnulib-cache.m4: Update.
6232 * gnulib/import/m4/gnulib-comp.m4: Update.
6233 * gnulib/import/float+.h: Import.
6234 * gnulib/import/float.c: Import.
6235 * gnulib/import/float.in.h: Import.
6236 * gnulib/import/fpucw.h: Import.
6237 * gnulib/import/frexp.c: Import.
6238 * gnulib/import/frexpl.c: Import.
6239 * gnulib/import/isnan.c: Import.
6240 * gnulib/import/isnand-nolibm.h: Import.
6241 * gnulib/import/isnand.c: Import.
6242 * gnulib/import/isnanl-nolibm.h: Import.
6243 * gnulib/import/isnanl.c: Import.
6244 * gnulib/import/itold.c: Import.
6245 * gnulib/import/m4/exponentd.m4: Import.
6246 * gnulib/import/m4/exponentl.m4: Import.
6247 * gnulib/import/m4/float_h.m4: Import.
6248 * gnulib/import/m4/fpieee.m4: Import.
6249 * gnulib/import/m4/frexp.m4: Import.
6250 * gnulib/import/m4/frexpl.m4: Import.
6251 * gnulib/import/m4/isnand.m4: Import.
6252 * gnulib/import/m4/isnanl.m4: Import.
6253 * gnulib/import/m4/math_h.m4: Import.
6254 * gnulib/import/math.c: Import.
6255 * gnulib/import/math.in.h: Import.
6257 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6259 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6260 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6261 signature_INTEL_edx comparisons.
6263 2013-06-20 Doug Evans <dje@google.com>
6266 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6267 All callers updated.
6268 (open_dwp_file): If we can't find the dwp file, search the basename
6269 in debug-file-directory.
6271 * dwarf2read.c (struct dwp_file): Fix comment.
6272 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6274 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6277 2013-06-20 Yao Qi <yao@codesourcery.com>
6279 * breakpoint.c (create_breakpoint): Fix code indentation.
6281 2013-06-20 Yao Qi <yao@codesourcery.com>
6283 * breakpoint.c (create_breakpoints_sal_default): Remove
6284 parameter 'lsal'. Update declaration.
6285 (bkpt_create_breakpoints_sal): Caller update.
6286 (tracepoint_create_breakpoints_sal): Likewise.
6288 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6289 Yao Qi <yao@codesourcery.com>
6291 * NEWS: Mention the new option '--skip-unavailable' of command
6292 -data-list-register-values.
6293 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6294 --skip-unavailable option. Adjust to use output_register.
6295 (output_register): Add new 'skip_unavailable' parameter.
6298 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6300 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6301 common/i386-gcc-cpuid.h.
6302 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6303 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6304 Copy the latest version from upstream gcc.
6305 * common/linux-btrace.c: Include i386-cpuid.h.
6306 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6308 (cpu_supports_btrace): Likewise.
6309 * go32-nat.c: Include i386-cpuid.h.
6310 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6312 2013-06-19 Doug Evans <dje@google.com>
6314 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6315 (get_section_index): Ditto.
6317 2013-06-19 Tom Tromey <tromey@redhat.com>
6319 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6322 2013-06-18 Doug Evans <dje@google.com>
6324 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6326 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6327 Move test of cu_index closer to use. Print complaint if cu_index
6330 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6332 * machoread.c (oso_vector): Delete this global.
6333 (macho_register_oso): Add new parameter "oso_vector_ptr".
6334 Use it instead of the "oso_vector" global.
6335 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6336 (macho_symfile_read): Use a local oso_vector, to be free'ed
6337 at the end of this function, in place of the old "oso_vector"
6338 global. Update various function calls accordingly. Use one
6339 single cleanup chain for the entire function.
6341 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6343 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6344 DWARF2_PER_OBJFILE by uses of DATA instead.
6346 2013-06-18 Tom Tromey <tromey@redhat.com>
6348 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6350 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6351 Special case signals other than GDB_SIGNAL_TRAP.
6352 (explains_signal_watchpoint): New function.
6353 (base_breakpoint_explains_signal): Add 'sig' argument.
6354 (initialize_breakpoint_ops): Set 'explains_signal' method for
6356 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6358 (bpstat_explains_signal): Likewise.
6359 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6361 2013-06-18 Tom Tromey <tromey@redhat.com>
6363 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6365 2013-06-18 Tom Tromey <tromey@redhat.com>
6367 * python/python.c (finish_python_initialization): Decref
6368 'pythondir' on failure path as well.
6370 2013-06-18 Tom Tromey <tromey@redhat.com>
6373 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6374 after taking bits_to_skip into account. Sign extend byte_offset.
6375 * utils.h (gdb_sign_extend): Declare.
6376 * utils.c (gdb_sign_extend): New function.
6378 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6380 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6382 2013-06-17 Pierre Muller <muller@sourceware.org>
6384 * corelow.c (core_open): Print GDB signal name instead of target
6387 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6389 * .gitignore: Add /gcore.
6391 2013-06-13 Doug Evans <dje@google.com>
6393 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6394 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6396 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6398 * stack.c (backtrace_command_1): Fix indentation.
6400 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6402 * window-nat.c (thread_rec): Add missing empty line after
6403 local variable declaration.
6405 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6407 * windows-nat.c (thread_rec): Revert format used to print
6408 error code returned by SuspendThread from %d back to %u.
6410 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6412 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6414 (get_windows_debug_event): Likewise, for all debug traces.
6416 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6418 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6421 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6422 Yao Qi <yao@codesourcery.com>
6424 * mi/mi-main.c (get_register): Remove declaration.
6425 (output_register): Declare.
6426 (mi_cmd_data_list_register_values): Remove local variable
6427 'tuple_cleanup'. Move some code into output_register.
6428 (get_register): Renamed to ...
6429 (output_register): ... this. Output the register's
6430 "number" ui_out tuple here.
6432 2013-06-07 Pedro Alves <palves@redhat.com>
6434 * darwin-nat.c: Fix formating in copyright header.
6435 * darwin-nat.h: Likewise.
6436 * gnu-nat.c: Likewise.
6437 * machoread.c: Likewise.
6439 2013-06-07 Pedro Alves <palves@redhat.com>
6442 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6443 static. Output a global target description pointer.
6444 (init_registers_${name}): Adjust to initialize a
6445 target description structure.
6447 2013-06-07 Will Newton <will.newton@linaro.org>
6449 * printcmd.c (build_address_symbolic): Call
6450 gdbarch_addr_bits_remove for text minimal symbols.
6452 2013-06-07 Will Newton <will.newton@linaro.org>
6454 * MAINTAINERS: Add myself to Write After Approval.
6456 2013-06-07 Yao Qi <yao@codesourcery.com>
6458 * tracepoint.c (start_tracing): Move code to ...
6459 (trace_reset_local_state): ... here. New.
6460 (disconnect_tracing): Don't call set_current_traceframe,
6461 set_tracepoint_num, and set_traceframe_context. Call
6462 trace_reset_local_state instead.
6463 (tfile_close): Call trace_reset_local_state.
6464 * ctf.c (ctf_close): Likewise.
6465 * remote.c (remote_close): Likewise.
6466 * tracepoint.h (trace_reset_local_state): Declare.
6468 2013-06-06 Doug Evans <dje@google.com>
6470 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6471 and fix header docs.
6473 2013-06-05 Doug Evans <dje@google.com>
6474 Keith Seitz <keiths@redhat.com>
6477 * cp-namespace.c (find_symbol_in_baseclass): Call
6478 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6479 Check result of call to lookup_symbol_static.
6480 Call lookup_static_symbol_aux unconditionally.
6481 Call check_typedef on base types before accessing them.
6482 (cp_lookup_nested_symbol): Fix comment.
6484 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6486 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6487 minimal symbols pointing to function descriptors.
6489 2013-06-05 Tom Tromey <tromey@redhat.com>
6491 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6493 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6494 Pedro Alves <palves@redhat.com>
6496 * remote.c (remote_wait_as): Restore signal handler before returning
6497 when GDB gets a notification.
6499 2013-06-04 Gary Benson <gbenson@redhat.com>
6502 * breakpoint.h (handle_solib_event): Moved function declaration
6504 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6505 (bpstat_stop_status): Pass new argument to handle_solib_event.
6506 * solib.h (update_solib_breakpoints): New function declaration.
6507 (handle_solib_event): Moved function declaration from
6509 * solib.c (update_solib_breakpoints): New function.
6510 (handle_solib_event): Moved function from breakpoint.c.
6511 Updated to call solib_ops->handle_event if not NULL.
6512 * solist.h (target_so_ops): New fields "update_breakpoints" and
6514 * infrun.c (set_stop_on_solib_events): New function.
6515 (_initialize_infrun): Use the above for "set
6516 stop-on-solib-events".
6517 (handle_inferior_event): Pass new argument to handle_solib_event.
6518 * solib-svr4.c (probe.h): New include.
6519 (svr4_free_library_list): New forward declaration.
6520 (probe_action): New enum.
6521 (probe_info): New struct.
6522 (probe_info): New static variable.
6523 (NUM_PROBES): New definition.
6524 (svr4_info): New fields "using_xfer", "probes_table" and
6526 (free_probes_table): New function.
6527 (free_solib_list): New function.
6528 (svr4_pspace_data_cleanup): Free probes table and solib list.
6529 (svr4_copy_library_list): New function.
6530 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6531 (svr4_read_so_list): New parameter "prev_lm".
6532 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6533 (svr4_current_sos): New function.
6534 (probe_and_action): New struct.
6535 (hash_probe_and_action): New function.
6536 (equal_probe_and_action): Likewise.
6537 (register_solib_event_probe): Likewise.
6538 (solib_event_probe_at): Likewise.
6539 (solib_event_probe_action): Likewise.
6540 (solist_update_full): Likewise.
6541 (solist_update_incremental): Likewise.
6542 (disable_probes_interface_cleanup): Likewise.
6543 (svr4_handle_solib_event): Likewise.
6544 (svr4_update_solib_event_breakpoint): Likewise.
6545 (svr4_update_solib_event_breakpoints): Likewise.
6546 (svr4_create_solib_event_breakpoints): Likewise.
6547 (enable_break): Free probes table before creating breakpoints.
6548 Use svr4_create_solib_event_breakpoints to create breakpoints.
6549 (svr4_solib_create_inferior_hook): Free the solib list.
6550 (_initialize_svr4_solib): Initialise
6551 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6553 2013-06-04 Gary Benson <gbenson@redhat.com>
6555 * target.h (target_ops): New field
6556 "to_augmented_libraries_svr4_read".
6557 (target_augmented_libraries_svr4_read): New macro.
6558 * target.c (update_current_target): Handle
6559 to_augmented_libraries_svr4_read.
6560 * remote.c (remote_state): New field
6561 "augmented_libraries_svr4_read".
6562 (remote_augmented_libraries_svr4_read_feature): New function.
6563 (remote_protocol_features): Add entry for
6564 "augmented-libraries-svr4-read".
6565 (remote_augmented_libraries_svr4_read): New function.
6566 (init_remote_ops): Initialize
6567 remote_ops.to_augmented_libraries_svr4_read.
6569 2013-06-04 Gary Benson <gbenson@redhat.com>
6573 2013-06-04 Gary Benson <gbenson@redhat.com>
6575 * objfiles.h (inhibit_section_map_updates): New function
6577 (resume_section_map_updates): Likewise.
6578 (resume_section_map_updates_cleanup): Likewise.
6579 * objfiles.c (objfile_pspace_info): Removed field
6580 "objfiles_changed_p". New fields "new_objfiles_available",
6581 "section_map_dirty" and "inhibit_updates".
6582 (allocate_objfile): Set new_objfiles_available.
6583 (free_objfile): Set section_map_dirty.
6584 (objfile_relocate1): Likewise.
6585 (in_plt_section): Likewise.
6586 (find_pc_section): Update the conditions under which the
6587 section map will be updated.
6588 (inhibit_section_map_updates): New function.
6589 (resume_section_map_updates): Likewise.
6590 (resume_section_map_updates_cleanup): Likewise.
6592 2013-06-04 Gary Benson <gbenson@redhat.com>
6594 * probe.h (get_probe_argument_count): New declaration.
6595 (evaluate_probe_argument): Likewise.
6596 * probe.c (get_probe_argument_count): New function.
6597 (evaluate_probe_argument): Likewise.
6598 (probe_safe_evaluate_at_pc): Use the above new functions.
6600 2013-06-04 Alan Modra <amodra@gmail.com>
6602 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6603 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6604 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6605 target mem reads on optional insns.
6606 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6607 ppc_insns_match_pattern calls.
6608 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6609 Add match for power7 thread safety insns, and new order of
6610 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6611 invocation in comment, and update rest of comment.
6612 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6613 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6614 (ppc64_standard_linkage2_target): Update insn offsets.
6615 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6616 stubs first. Update calls.
6618 2013-06-04 Yao Qi <yao@codesourcery.com>
6620 * solib.c (solib_find): Don't need dir separator if path has
6623 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6625 Revert (indirectly causes a SIGSEGV):
6626 * machoread.c (macho_symfile_read): Assign first cleanup to
6629 2013-06-03 Yao Qi <yao@codesourcery.com>
6631 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6632 mi-parse.c. Make them static.
6633 (mi_all_values): Likewise.
6634 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6635 mi_parse_print_values. Make it external.
6636 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6637 Remove the declarations.
6638 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6639 * mi/mi-parse.h (mi_parse_print_values): Declare.
6640 * mi/mi-cmd-stack.c: Include mi-parse.h.
6641 (parse_print_values): Remove
6642 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6643 of parse_print_values.
6644 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6646 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6647 Yao Qi <yao@codesourcery.com>
6649 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6650 (encode_actions): Move code to ...
6651 (all_tracepoint_actions_and_cleanup): ... here. New.
6652 (trace_dump_command): Likewise.
6654 2013-05-30 Tom Tromey <tromey@redhat.com>
6656 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6658 2013-05-30 Tom Tromey <tromey@redhat.com>
6660 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6661 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6662 'old_chain' argument. Add 'parser_result' argument.
6663 (gdb_xml_create_parser_and_cleanup): Remove old version.
6664 (gdb_xml_parse_quick): Update.
6665 (xml_process_xincludes): Update.
6666 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6669 2013-05-30 Tom Tromey <tromey@redhat.com>
6671 * probe.c (collect_probes): Check arguments for NULL before
6672 calling compile_rx_or_error.
6673 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6676 2013-05-30 Tom Tromey <tromey@redhat.com>
6678 * infrun.c (adjust_pc_after_break): Introduce an outer null
6681 2013-05-30 Tom Tromey <tromey@redhat.com>
6683 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6685 2013-05-30 Tom Tromey <tromey@redhat.com>
6687 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6688 for 'old_chain'. Do not check 'head' before processing
6691 2013-05-30 Tom Tromey <tromey@redhat.com>
6693 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6696 2013-05-30 Tom Tromey <tromey@redhat.com>
6698 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6699 inner scope. Unconditionally call do_cleanups.
6701 2013-05-30 Tom Tromey <tromey@redhat.com>
6703 * source.c (find_and_open_source): Call do_cleanups.
6705 2013-05-30 Tom Tromey <tromey@redhat.com>
6707 * linux-thread-db.c (thread_db_load_search): Unconditionally
6710 2013-05-30 Tom Tromey <tromey@redhat.com>
6712 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6713 for 'cleanup'; instead use a later one.
6715 2013-05-30 Tom Tromey <tromey@redhat.com>
6717 * python/py-breakpoint.c (bppy_get_commands): Use
6718 explicit, unconditional return.
6719 * python/py-frame.c (frapy_read_var): Likewise.
6720 * python/python.c (gdbpy_decode_line): Likewise.
6722 2013-05-30 Tom Tromey <tromey@redhat.com>
6724 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6725 do_cleanups on all return paths.
6727 2013-05-30 Tom Tromey <tromey@redhat.com>
6729 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6731 2013-05-30 Tom Tromey <tromey@redhat.com>
6733 * stabsread.c (read_struct_type): Call do_cleanups along
6736 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6738 * mips-linux-tdep.c: Adjust formatting throughout.
6740 2013-05-30 Tom Tromey <tromey@redhat.com>
6742 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6743 along all return paths.
6745 2013-05-30 Tom Tromey <tromey@redhat.com>
6747 * symfile.c (find_separate_debug_file): Call do_cleanups
6748 along all return paths.
6750 2013-05-30 Tom Tromey <tromey@redhat.com>
6752 * symtab.c (search_symbols): Introduce a null cleanup for
6755 2013-05-30 Tom Tromey <tromey@redhat.com>
6757 * python/py-value.c (valpy_binop): Call do_cleanups before
6760 2013-05-30 Tom Tromey <tromey@redhat.com>
6762 * python/py-prettyprint.c (print_children): Remove extra
6765 2013-05-30 Tom Tromey <tromey@redhat.com>
6767 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6770 2013-05-30 Tom Tromey <tromey@redhat.com>
6772 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6773 along all return paths.
6775 2013-05-30 Tom Tromey <tromey@redhat.com>
6777 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6780 2013-05-30 Tom Tromey <tromey@redhat.com>
6782 * varobj.c (c_value_of_root): Call do_cleanups along all
6785 2013-05-30 Tom Tromey <tromey@redhat.com>
6787 * tracepoint.c (trace_dump_command): Unconditionally call
6790 2013-05-30 Tom Tromey <tromey@redhat.com>
6792 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6793 do_cleanups earlier.
6795 2013-05-30 Tom Tromey <tromey@redhat.com>
6797 * machoread.c (macho_symfile_read): Assign first cleanup to
6800 2013-05-30 Tom Tromey <tromey@redhat.com>
6802 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6804 2013-05-30 Tom Tromey <tromey@redhat.com>
6806 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6808 2013-05-30 Tom Tromey <tromey@redhat.com>
6810 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6811 call discard_cleanups.
6812 (inf_ptrace_attach): Likewise.
6814 2013-05-30 Tom Tromey <tromey@redhat.com>
6816 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6818 (mips_initialize): Likewise.
6819 (common_open): Call do_cleanups.
6821 2013-05-30 Tom Tromey <tromey@redhat.com>
6823 * utils.c (internal_vproblem): Call do_cleanups.
6825 2013-05-30 Tom Tromey <tromey@redhat.com>
6827 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6829 2013-05-30 Tom Tromey <tromey@redhat.com>
6831 * cli/cli-script.c (setup_user_args): Don't return after error.
6833 2013-05-30 Tom Tromey <tromey@redhat.com>
6835 * somread.c (som_symtab_read): Call do_cleanups.
6837 2013-05-30 Tom Tromey <tromey@redhat.com>
6839 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6841 2013-05-30 Tom Tromey <tromey@redhat.com>
6843 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6844 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6845 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6846 * source.c (show_substitute_path_command): Call do_cleanups.
6847 (unset_substitute_path_command, set_substitute_path_command):
6849 * symfile.c (load_command): Call do_cleanups.
6851 2013-05-30 Tom Tromey <tromey@redhat.com>
6853 * contrib/cleanup_check.py: New file.
6854 * contrib/gcc-with-excheck: Add option parsing.
6856 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6858 * windows-nat.c (windows_delete_thread): Add missing space
6861 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6863 * inferior.c (top level): Include tilde.h.
6864 (add_inferior_command): Call tilde_expand on the value of 'exec'
6867 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6868 Yao Qi <yao@codesourcery.com>
6870 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6872 (encode_actions): Likewise.
6873 * remote.c (remote_download_tracepoint): Caller update.
6874 * tracepoint.h (encode_actions): Update declaration.
6876 2013-05-30 Pedro Alves <palves@redhat.com>
6878 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6881 2013-05-30 Yao Qi <yao@codesourcery.com>
6883 * remote.c (remote_check_symbols): Remove unused parameter
6886 (remote_start_remote, remote_new_objfile): Caller update.
6888 2013-05-30 Yao Qi <yao@codesourcery.com>
6890 * mi/mi-cmds.c (mi_cmds): Define MI command
6891 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6894 2013-05-29 Pedro Alves <palves@redhat.com>
6896 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6897 (remote_insert_watchpoint, remote_remove_watchpoint)
6898 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6899 (remote_verify_memory, compare_sections_command)
6900 (remote_search_memory): Set the general process/thread on the
6903 2013-05-29 Pedro Alves <palves@redhat.com>
6905 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6906 (_initialize_aarch64_tdep): Don't call
6907 initialize_tdesc_aarch64_without_fpu.
6908 * features/Makefile (WHICH): Remove reference to
6909 aarch64-without-fpu.
6910 * features/aarch64-without-fpu.c: Delete file.
6911 * regformats/aarch64-without-fpu.dat: Delete file.
6913 2013-05-28 Yao Qi <yao@codesourcery.com>
6915 * tracepoint.c (stringify_collection_list): Remove parameter
6917 (encode_actions): Caller update. Remove local variables.
6919 2013-05-24 Yao Qi <yao@codesourcery.com>
6921 * tracepoint.c (TFILE_PID): Remove.
6922 (tfile_open): Don't add thread and inferior.
6923 (tfile_close): Don't set 'inferior_ptid'. Don't call
6924 exit_inferior_silent.
6925 (tfile_thread_alive): Remove.
6926 (init_tfile_ops): Don't set field 'to_thread_alive' of
6929 2013-05-23 Doug Evans <dje@google.com>
6931 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6933 2013-05-23 Pedro Alves <palves@redhat.com>
6935 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6936 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6937 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6938 Only define if HAVE_SOCKETS is defined.
6939 * configure.ac: Check for sys/socket.h.
6940 * config.in, configure: Regenerate.
6942 2013-05-23 Pedro Alves <palves@redhat.com>
6944 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6945 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6946 printing uint32_t variables.
6948 2013-05-23 Pedro Alves <palves@redhat.com>
6950 * NEWS: Mention GDBserver range stepping support.
6952 2013-05-23 Yao Qi <yao@codesourcery.com>
6953 Pedro Alves <palves@redhat.com>
6955 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6957 * infcmd.c (step_once, until_next_command): Enable range stepping.
6958 * infrun.c (displaced_step_prepare): Disable range stepping.
6959 (resume): Disable range stepping if stepping over a breakpoint or
6960 we have software watchpoints. If range stepping is enabled,
6961 assert the thread is in the stepping range.
6962 (clear_proceed_status_thread): Clear may_range_step.
6963 (handle_inferior_event): Disable range stepping as soon as we know
6964 the thread that hit the event. Re-enable it whenever we're going
6965 to step with a step range.
6966 * remote.c (struct vCont_action_support) <r>: New field.
6967 (use_range_stepping): New global.
6968 (remote_vcont_probe): Handle 'r' action.
6969 (append_resumption): Append an 'r' action if the thread may range
6971 (show_range_stepping): New function.
6972 (set_range_stepping): New function.
6973 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6974 'set range-stepping' and 'show range-stepping' commands.
6975 * NEWS: Mention range stepping, the new vCont;r action, and the
6976 new "set/show range-stepping" commands.
6978 2013-05-23 Yao Qi <yao@codesourcery.com>
6979 Pedro Alves <palves@redhat.com>
6981 * remote.c (struct vCont_action_support): New struct.
6982 (struct remote_state) <support_vCont_t>: Remove field.
6983 <vCont_actions_support>: New field.
6984 (remote_vcont_probe, remote_stop_ns): Update.
6986 2013-05-23 Yao Qi <yao@codesourcery.com>
6987 Pedro Alves <palves@redhat.com>
6989 * gdbthread.h (pc_in_thread_step_range): New declaration.
6990 * thread.c (pc_in_thread_step_range): New function.
6991 * infrun.c (handle_inferior_event): Use it.
6993 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6995 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6998 2013-05-22 Keith Seitz <keiths@redhat.com>
7000 * ada-lang.c (is_known_support_routine): Add explicit free of
7001 'func_name' from find_frame_funname.
7002 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7003 for func_name from find_frame_funname.
7004 * python/py-frame.c (frapy_name): Add explicit free of
7005 'name' from find_frame_funname.
7006 * stack.c (find_frame_funname): Add comment explaining that
7007 funcp must be freed by the caller.
7008 Return copy of symbol names instead of pointers.
7009 (print_frame): Add a cleanup for 'funname' from
7011 * stack.h (find_frame_funname): Remove "const" from
7012 'funname' parameter.
7014 2013-05-22 Tom Tromey <tromey@redhat.com>
7017 * c-valprint.c (c_value_print): Use value_addr for
7018 references. Convert back to reference type with value_ref.
7020 2013-05-22 Eli Zaretskii <eliz@gnu.org>
7022 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7023 unloaded DLL, it will be done by handle_solib_event. See
7024 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7027 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7029 * ui-out.c: Create typedef ui_out_level_p and define vector
7030 operations for that type.
7031 (struct ui_out): Use a vector instead of an array.
7032 (current_level): Return level from a vector.
7033 (push_level): Create a level in a vector.
7034 (pop_level): Delete a level in a vector.
7035 (ui_out_new): Create initial level zero level, and store in a
7037 (ui_out_destroy): Add vector cleanup.
7039 2013-05-22 Pedro Alves <palves@redhat.com>
7041 * python/python-internal.h (gdb_Py_DECREF): Tag with
7042 "ARI: editCase function".
7044 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7046 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7048 2013-05-21 Pedro Alves <palves@redhat.com>
7050 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7051 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7052 * python/py-utils.c (py_decref): Don't check for NULL before
7055 2013-05-21 Pedro Alves <palves@redhat.com>
7057 * python/py-utils.c (py_decref): Remove extra braces.
7058 (gdb_pymodule_addobject): Remove extra braces.
7059 * python-internal.h (gdb_Py_DECREF): New static inline function.
7060 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7062 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7064 * breakpoints.c (detach_breakpoints): Do not
7065 detach breakpoints locations with loc_type bp_loc_other.
7067 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7069 Workaround Python 2.6.
7070 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7073 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7075 Code cleanup: constification.
7076 * solib.c (solib_ops): Make return type and ops variable type const.
7077 (set_solib_ops): Make the new_ops parameter and ops variable const.
7078 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7079 (solib_add, solib_keep_data_in_core, clear_solib)
7080 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7081 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7083 * solib.h (set_solib_ops): Make the new_ops parameter const.
7085 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7087 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7089 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7090 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7091 (SYSTEM_GDBINIT_FILES): New variables.
7092 (all): Add stamp-system-gdbinit.
7093 (stamp-system-gdbinit): New rule.
7094 (clean-system-gdbinit, install-system-gdbinit)
7095 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7096 (install-only): Add dependency on install-system-gdbinit.
7097 (uninstall): Add dependency on uninstall-system-gdbinit.
7098 (clean): Add dependency on clean-system-gdbinit.
7099 * system-gdbinit/elinos.py: New file.
7100 * system-gdbinit/wrs-linux.py: New file.
7102 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7104 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7106 2013-05-21 Hui Zhu <hui@codesourcery.com>
7108 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7109 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7110 * mi/mi-cmd-break.c (ctype.h): New include.
7111 (gdb_obstack.h): New include.
7112 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7113 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7114 (mi_cmd_dprintf_insert): New.
7115 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7116 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7118 2013-05-20 Tom Tromey <tromey@redhat.com>
7120 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7122 2013-05-20 Tom Tromey <tromey@redhat.com>
7124 * python/py-value.c (valpy_get_dynamic_type): Simplify
7125 dynamic_type assignment. Use Py_XINCREF.
7127 2013-05-20 Tom Tromey <tromey@redhat.com>
7129 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7131 2013-05-20 Tom Tromey <tromey@redhat.com>
7133 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7134 (gdbpy_selected_frame): Move object-construction code
7137 2013-05-20 Tom Tromey <tromey@redhat.com>
7139 * python/py-arch.c (gdbpy_initialize_arch): Use
7140 gdb_pymodule_addobject.
7141 * python/py-block.c (gdbpy_initialize_blocks): Use
7142 gdb_pymodule_addobject.
7143 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7144 gdb_pymodule_addobject.
7145 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7146 gdb_pymodule_addobject.
7147 * python/py-event.c (gdbpy_initialize_event_generic): Use
7148 gdb_pymodule_addobject.
7149 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7150 gdb_pymodule_addobject.
7151 * python/py-evts.c (add_new_registry): Use
7152 gdb_pymodule_addobject.
7153 (gdbpy_initialize_py_events): Likewise.
7154 * python/py-finishbreakpoint.c
7155 (gdbpy_initialize_finishbreakpoints): Use
7156 gdb_pymodule_addobject.
7157 * python/py-frame.c (gdbpy_initialize_frames): Use
7158 gdb_pymodule_addobject.
7159 * python/py-function.c (gdbpy_initialize_functions): Use
7160 gdb_pymodule_addobject.
7161 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7162 gdb_pymodule_addobject.
7163 * python/py-infthread.c (gdbpy_initialize_thread): Use
7164 gdb_pymodule_addobject.
7165 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7166 gdb_pymodule_addobject.
7167 * python/py-param.c (gdbpy_initialize_parameters): Use
7168 gdb_pymodule_addobject.
7169 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7170 gdb_pymodule_addobject.
7171 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7172 gdb_pymodule_addobject.
7173 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7174 gdb_pymodule_addobject.
7175 * python/py-type.c (gdbpy_initialize_types): Use
7176 gdb_pymodule_addobject.
7177 * python/py-utils.c (gdb_pymodule_addobject): New function.
7178 * python/py-value.c (gdbpy_initialize_values): Use
7179 gdb_pymodule_addobject.
7180 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7181 * python/python.c (_initialize_python): Use
7182 gdb_pymodule_addobject.
7184 2013-05-20 Tom Tromey <tromey@redhat.com>
7186 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7187 * python/py-param.c (get_set_value, get_show_value): Use
7189 * python/python.c (start_type_printers, apply_type_printers):
7190 Use explicit decrefs.
7192 2013-05-20 Tom Tromey <tromey@redhat.com>
7194 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7197 2013-05-20 Tom Tromey <tromey@redhat.com>
7199 * python/python.c (gdbpy_run_events): Decref the result
7200 of PyObject_CallObject.
7202 2013-05-20 Tom Tromey <tromey@redhat.com>
7204 * python/py-symtab.c (set_sal): Use
7205 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7206 (symtab_and_line_to_sal_object): Update.
7208 2013-05-20 Tom Tromey <tromey@redhat.com>
7210 * python/py-param.c (compute_enum_values): Decref 'item'.
7212 2013-05-20 Tom Tromey <tromey@redhat.com>
7214 * mi/mi-main.c: Include python-internal.h.
7215 (mi_cmd_list_features): Check gdb_python_initialized.
7216 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7217 (python_inferior_exit, python_new_objfile, add_thread_object)
7218 (delete_thread_object, py_free_inferior): Check
7219 gdb_python_initialized.
7220 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7221 gdb_python_initialized.
7222 * python/py-type.c (save_objfile_types): Check
7223 gdb_python_initialized.
7224 * python/python-internal.h (gdb_python_initialized): Declare.
7225 * python/python.c (ensure_python_env): Throw exception if
7226 Python not initialized.
7227 (before_prompt_hook, source_python_script_for_objfile)
7228 (start_type_printers, apply_type_printers,
7229 free_type_printers): Check gdb_python_initialized.
7230 * varobj.c (varobj_get_display_hint)
7231 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7232 (install_new_value_visualizer, varobj_set_visualizer)
7233 (value_get_print_value): Check gdb_python_initialized.
7235 2013-05-20 Tom Tromey <tromey@redhat.com>
7237 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7239 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7240 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7242 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7244 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7246 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7248 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7249 init function to return 'int'.
7250 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7251 Return 'int'. Check errors.
7252 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7254 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7255 Return 'int'. Check errors.
7256 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7258 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7260 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7262 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7264 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7266 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7268 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7270 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7272 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7274 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7276 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7278 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7280 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7282 * python/python-internal.h (gdbpy_initialize_auto_load,
7283 gdbpy_initialize_values, gdbpy_initialize_frames,
7284 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7285 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7286 gdbpy_initialize_blocks, gdbpy_initialize_types,
7287 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7288 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7289 gdbpy_initialize_finishbreakpoints,
7290 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7291 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7292 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7293 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7294 gdbpy_initialize_signal_event,
7295 gdbpy_initialize_breakpoint_event,
7296 gdbpy_initialize_continue_event,
7297 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7298 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7299 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7300 * python/python.c (gdb_python_initialized): New global.
7301 (gdbpy_initialize_events): Return 'int'. Check errors.
7302 (_initialize_python): Check errors. Set
7303 gdb_python_initialized.
7305 2013-05-20 Tom Tromey <tromey@redhat.com>
7307 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7308 Decref the reslut of PyObject_CallMethod.
7310 2013-05-20 Tom Tromey <tromey@redhat.com>
7312 * python/py-event.c (gdbpy_initialize_event_generic): Return
7313 early if PyType_Ready fails.
7315 2013-05-20 Tom Tromey <tromey@redhat.com>
7317 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7318 as 'default' in the switch.
7320 2013-05-20 Tom Tromey <tromey@redhat.com>
7322 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7323 get_addr_from_python calls out of TRY_CATCH.
7324 (infpy_write_memory, infpy_search_memory): Likewise.
7325 * python/py-utils.c (get_addr_from_python): Return negative
7326 value on error. Use TRY_CATCH.
7327 * python/python-internal.h (get_addr_from_python): Use
7328 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7330 2013-05-20 Tom Tromey <tromey@redhat.com>
7332 * python/py-event.c (evpy_emit_event): Decref the
7333 result of PyObject_CallFunctionObjArgs.
7335 2013-05-20 Tom Tromey <tromey@redhat.com>
7337 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7340 2013-05-20 Tom Tromey <tromey@redhat.com>
7342 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7344 2013-05-20 Tom Tromey <tromey@redhat.com>
7346 * python/py-event.h (gdbpy_initialize_event_generic): Use
7347 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7348 * python/py-evts.c (add_new_registry): Use
7349 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7350 * python/python-internal.h
7351 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7353 2013-05-20 Tom Tromey <tromey@redhat.com>
7355 * python/py-arch.c (archpy_disassemble): Update.
7356 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7357 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7358 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7359 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7361 (GDB_PY_HANDLE_EXCEPTION): Update.
7362 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7364 2013-05-20 Tom Tromey <tromey@redhat.com>
7366 * python/python-internal.h (events_object_type): Remove.
7368 2013-05-20 Tom Tromey <tromey@redhat.com>
7370 * python/py-event.h (evpy_emit_event): Use
7371 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7372 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7375 2013-05-20 Tom Tromey <tromey@redhat.com>
7377 * py-evtregistry.c (create_event_object): Decref
7378 eventregistry_object if PyList_New fails.
7380 2013-05-20 Tom Tromey <tromey@redhat.com>
7382 * py-cmd.c (gdbpy_string_to_argv): Check result of
7385 2013-05-20 Tom Tromey <tromey@redhat.com>
7387 * python/python.c (before_prompt_hook): Add cleanup to
7390 2013-05-20 Tom Tromey <tromey@redhat.com>
7392 * python/py-function.c (fnpy_init): Decref result of
7393 PyObject_GetAttrString.
7395 2013-05-20 Tom Tromey <tromey@redhat.com>
7397 * python/py-threadevent.c (get_event_thread): Use
7398 CPYCHECKER_RETURNS_BORROWED_REF.
7399 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7401 (pspace_to_pspace_object, objfile_to_objfile_object)
7402 (find_thread_object): Use it.
7404 2013-05-20 Tom Tromey <tromey@redhat.com>
7406 * python/py-arch.c (arch_object_type): Use
7407 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7408 * python/py-block.c (block_syms_iterator_object_type):
7409 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7410 * python/py-bpevent.c (breakpoint_event_object_type):
7411 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7412 * python/py-cmd.c (cmdpy_object_type): Use
7413 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7414 * python/py-continueevent.c (continue_event_object_type):
7415 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7416 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7417 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7418 * python/py-events.h (thread_event_object_type):
7419 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7420 * python/py-evtregistry.c (eventregistry_object_type): Use
7421 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7422 * python/py-exitedevent.c (exited_event_object_type):
7423 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7424 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7425 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7426 * python/py-function.c (fnpy_object_type): Use
7427 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7428 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7429 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7430 * python/py-infthread.c (thread_object_type): Use
7431 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7432 * python/py-lazy-string.c (lazy_string_object_type):
7433 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7434 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7435 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7436 * python/py-objfile.c (objfile_object_type): Use
7437 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7438 * python/py-param.c (parmpy_object_type):
7439 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7440 * python/py-progspace.c (pspace_object_type):
7441 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7442 * python/py-signalevent.c (signal_event_object_type):
7443 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7444 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7445 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7446 * python/py-type.c (type_object_type, field_object_type)
7447 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7448 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7450 (value_object_type, block_object_type, symbol_object_type)
7451 (event_object_type, stop_event_object_type, breakpoint_object_type)
7452 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7454 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7456 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7457 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7459 2013-05-20 Doug Evans <dje@google.com>
7461 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7463 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7464 reading_dwo_directly.
7465 (struct signatured_type): New member dwo_unit.
7466 (struct die_reader_specs): New member comp_dir.
7467 (create_signatured_type_table_from_index): Use malloc for
7468 all_type_units instead of objfile's obstack.
7469 (create_all_type_units): Ditto.
7470 (fill_in_sig_entry_from_dwo_entry): New function.
7471 (add_type_unit): New function.
7472 (lookup_dwo_signatured_type): New function.
7473 (lookup_dwp_signatured_type): New function.
7474 (lookup_signatured_type): New arg cu. All callers updated.
7475 (init_cu_die_reader): Initialize comp_dir.
7476 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7477 Change assert of matching type signatures to call error on mismatch.
7478 (lookup_dwo_unit): Add assert.
7479 (init_tu_and_read_dwo_dies): New function.
7480 (init_cutu_and_read_dies): Call it.
7481 (build_type_unit_groups): Handle case of no type unit groups created.
7482 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7483 (lookup_dwo_cutu): Tweak complaint.
7484 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7485 (dwarf2_per_objfile_free): Free all_type_units.
7487 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7489 * windows-nat.c (handle_unload_dll): Add missing empty line.
7491 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7493 * dwarf2read.c (prototyped_function_p): New function.
7494 (read_subroutine_type): Use it.
7496 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7498 * rs6000-aix-tdep.c: De-indent some example code provided
7501 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7503 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7504 region is ok for a hardware watchpoint using the new ptrace interface
7507 2013-05-17 Doug Evans <dje@google.com>
7509 * NEWS: Mention new maintenance commands check-symtabs, and
7510 expand-symtabs, and renamed check-psymtabs.
7511 * psymtab.c (maintenance_check_psymtabs): Renamed from
7512 maintenance_check_symtabs. Only process already-expanded symbol
7514 (_initialize_psymtab): Update.
7515 * symmisc.c (maintenance_check_symtabs): New function.
7516 (maintenance_expand_name_matcher): New function
7517 (maintenance_expand_file_matcher): New function
7518 (maintenance_expand_symtabs): New function.
7519 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7522 2013-05-17 Tom Tromey <tromey@redhat.com>
7524 * python/py-inferior.c (infpy_read_memory): Don't call
7525 PyErr_SetString if PyObject_New fails.
7526 * python/py-frame.c (frame_info_to_frame_object): Don't call
7527 PyErr_SetString if PyObject_New fails.
7529 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7531 * acinclude.m4: Add check for dlopen in libdl.
7532 * configure.ac: Ditto.
7533 * configure: Regenerate.
7535 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7537 * frame.c (frame_stash): Convert to htab.
7538 (frame_addr_hash): New function.
7539 (frame_addr_hash_eq): New function.
7540 (frame_stash_create): Convert function to create
7542 (frame_stash_add): Convert function to add an entry to a hash
7544 (frame_stash_find): Convert function to search the hash table.
7545 (frame_stash_invalidate): Convert function to empty the hash
7547 (get_frame_id): Only add to stash if a frame_id is created.
7548 (_initialize_frame): Call frame_stash_create.
7550 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7552 * configure.ac: Ensure MIG is available when building for GNU Hurd
7554 * configure: Regenerate.
7556 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7558 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7560 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7562 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7563 all cleanups are done before returning from this function.
7565 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7567 * utils.h: #include "exceptions.h".
7568 (enum errors): Remove partial declaration.
7570 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7572 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7573 * gdbarch.h, gdbarch.c: Regenerate.
7574 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7577 * rs6000-aix-tdep.h: New file.
7578 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7579 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7581 (struct field_info, struct ld_info_desc): New types.
7582 (ld_info32_desc, ld_info64_desc): New static constants.
7583 (struct ld_info): New type.
7584 (rs6000_aix_extract_ld_info): New function.
7585 (rs6000_aix_shared_library_to_xml): Likewise.
7586 (rs6000_aix_ld_info_to_xml): Likewise.
7587 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7588 (rs6000_aix_init_osabi): Add call to
7589 set_gdbarch_core_xfer_shared_libraries_aix.
7590 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7591 Remove "xml-utils.h" include.
7592 (LdInfo): Delete typedef.
7593 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7595 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7596 Adjust code accordingly.
7597 (rs6000_core_ldinfo): Delete, folded into
7598 rs6000_aix_core_xfer_shared_libraries_aix.
7599 (rs6000_xfer_shared_library): Delete.
7600 (rs6000_xfer_shared_libraries): Reimplement.
7602 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7604 * record.c (record_goto_cmdlist): New.
7605 (cmd_record_goto): Split into this ...
7606 (cmd_record_goto_begin): ... this
7607 (cmd_record_goto_end): ... and this.
7608 (_initialize_record): Change "record goto" to prefix command.
7609 Add commands for "record goto begin" and "record goto end".
7610 Add an alias for "record goto start" to "record goto begin".
7612 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 * linespec.c (convert_linespec_to_sals): New comment for
7615 SOURCE_FILENAME assignment.
7617 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7619 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7622 2013-05-14 Tom Tromey <tromey@redhat.com>
7624 * eval.c (parse_and_eval_long): Make 'exp' const.
7625 * value.h (parse_and_eval_long): Update.
7627 2013-05-14 Tom Tromey <tromey@redhat.com>
7629 * ui-file.c (gdb_fopen): Make arguments const.
7630 * ui-file.h (gdb_fopen): Make arguments const.
7632 2013-05-14 Tom Tromey <tromey@redhat.com>
7634 * remote.c (remote_set_trace_notes): Make arguments const.
7635 * target.c (update_current_target): Update cast.
7636 * target.h (to_set_trace_notes): Make arguments const.
7638 2013-05-14 Tom Tromey <tromey@redhat.com>
7640 * go32-nat.c (go32_terminal_info): Make 'args' const.
7641 * inferior.h (child_terminal_info): Update.
7642 * inflow.c (child_terminal_info): Make 'args' const.
7643 * target.c (default_terminal_info): Make 'args' const.
7644 (debug_to_terminal_save_ours): Likewise.
7645 * target.h (struct target_ops) <to_terminal_info>: Make argument
7648 2013-05-13 Tom Tromey <tromey@redhat.com>
7650 * gcore.c (create_gcore_bfd): Make 'filename' const.
7651 * gcore.h (create_gcore_bfd): Make 'filename' const.
7652 * record-full.c (record_full_save): Make 'recfilename' const.
7653 * target.c (target_save_record): Make 'filename' const.
7654 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7656 (target_save_record): Likewise.
7658 2013-05-13 Tom Tromey <tromey@redhat.com>
7661 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7662 ranges section has been read.
7664 2013-05-13 Tom Tromey <tromey@redhat.com>
7667 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7668 STRUCTOP_PTR>: Return a not_lval value for
7669 EVAL_AVOID_SIDE_EFFECTS.
7670 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7671 for EVAL_AVOID_SIDE_EFFECTS.
7673 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7675 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7676 floating point registers to register type before storing
7678 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7681 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7682 Tom Tromey <tromey@redhat.com>
7684 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7686 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7688 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7689 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7690 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7691 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7693 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7694 Tom Tromey <tromey@redhat.com>
7697 * configure: Rebuild.
7698 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7701 2013-05-10 Pedro Alves <palves@redhat.com>
7703 * remote.c (_initialize_remote): Fix spelling of
7704 qXfer:traceframe-info:read packet in packet config command.
7706 2013-05-10 David Taylor <dtaylor@emc.com>
7710 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7711 "QTro" at start of packet.
7713 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7715 * solib-aix.c (solib_aix_relocate_section_addresses):
7716 For the .bss section action, apply the same offset as
7719 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7721 * solib-aix.c (solib_aix_relocate_section_addresses):
7722 Remove FIXME comment.
7724 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7727 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7728 New functions, directly copied from sparc-sol-thread.c.
7729 * sparc-sol-thread.c: Delete.
7730 * configure.ac: Remove code handling sparc-solaris-thread.c.
7731 * configure: Regenerate.
7733 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7735 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7737 (backtrace_command): Add "no-filters" option parsing.
7738 (_initialize_stack): Alter help to reflect "no-filters" option.
7739 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7740 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7741 (py-frame.o): Add target
7742 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7744 * python/python.h: Add new frame filter constants, and flag enum.
7745 (apply_frame_filter): Add definition.
7746 * python/python.c (apply_frame_filter): New non-Python
7748 * python/py-utils.c (py_xdecref): New function.
7749 (make_cleanup_py_xdecref): Ditto.
7750 * python/py-objfile.c: Declare frame_filters dictionary.
7751 (objfpy_dealloc): Add frame_filters dealloc.
7752 (objfpy_new): Initialize frame_filters attribute.
7753 (objfile_to_objfile_object): Ditto.
7754 (objfpy_get_frame_filters): New function.
7755 (objfpy_set_frame_filters): New function.
7756 * python/py-progspace.c: Declare frame_filters dictionary.
7757 (pspy_dealloc): Add frame_filters dealloc.
7758 (pspy_new): Initialize frame_filters attribute.
7759 (pspacee_to_pspace_object): Ditto.
7760 (pspy_get_frame_filters): New function.
7761 (pspy_set_frame_filters): New function.
7762 * python/py-framefilter.c: New file.
7763 * python/lib/gdb/command/frame_filters.py: New file.
7764 * python/lib/gdb/frames.py: New file.
7765 * python/lib/gdb/__init__.py: Initialize global frame_filters
7767 * python/lib/gdb/FrameDecorator.py: New file.
7768 * python/lib/gdb/FrameIterator.py: New file.
7769 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7770 * mi/mi-cmds.h: Declare.
7771 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7772 --no-frame-filter logic, and Python frame filter logic.
7773 (stack_enable_frame_filters): New function.
7774 (parse_no_frame_option): Ditto.
7775 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7777 (mi_cmd_stack_list_locals): Ditto.
7778 (mi_cmd_stack_list_args): Ditto.
7779 (mi_cmd_stack_list_variables): Ditto.
7780 * NEWS: Add frame filter note.
7782 2013-05-09 Doug Evans <dje@google.com>
7784 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7785 All callers updated.
7786 (syms_from_objfile): Ditto. Make static.
7787 (symbol_file_add_with_addrs): Renamed from
7788 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7789 num_offsets. All callers updated.
7790 * symfile.h (syms_from_objfile): Delete.
7792 * symfile.c (decrement_reading_symtab): Add assert.
7793 (increment_reading_symtab): Ditto.
7795 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7797 * source.c (forward_search_command): Replace call to getc
7799 (reverse_search_command): Likewise.
7801 2013-05-08 Doug Evans <dje@google.com>
7803 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7806 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7808 * sol-thread.c (info_cb): Factorize the code a little.
7810 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7812 * sol-thread.c (info_cb): Rework the output of the "maintenance
7813 info sol-threads" command a bit.
7815 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7817 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7818 Replace ti.ti_startfunc by ti.ti_pc.
7820 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7822 * solib-aix.c (solib_aix_free_library_list): New function
7823 for the case where HAVE_LIBEXPAT is not defined.
7825 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7827 PR breakpoints/15413:
7828 * breakpoint.c (condition_completer): Simplify the code to
7829 disconsider multiple locations of breakpoints when completing the
7830 "condition" command.
7832 2013-05-07 Pierre Muller <muller@sourceware.org>
7834 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7835 instead of <sys/wait.h>.
7837 2013-05-07 Pierre Muller <muller@sourceware.org>
7839 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7840 trailing new line from warning message.
7842 2013-05-07 Pierre Muller <muller@sourceware.org>
7844 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7845 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7847 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7849 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7850 error message (ARI fix).
7852 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7854 * features/library-list-aix.dtd: Replace library-list by
7856 * rs6000-nat.c: Replace library-list by library-list-aix
7858 * solib-aix.c: Likewise.
7860 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7862 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7863 Renames TARGET_OBJECT_AIX_LIBRARIES.
7864 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7865 TARGET_OBJECT_LIBRARIES_AIX throughout.
7866 * solib-aix.c: Likwise.
7868 2013-05-07 Yao Qi <yao@codesourcery.com>
7870 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7871 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7873 2013-05-07 Yao Qi <yao@codesourcery.com>
7875 * solib-dsbt.c (enable_break): Declare.
7876 (dsbt_current_sos): Remove call to enable_break2.
7877 (enable_break2): Rename to enable_break. Set solib breakpoint
7878 on '_dl_debug_state'.
7879 (enable_break): Remove.
7881 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7883 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7884 debug state prior to replicating existing hardware watchpoints or
7887 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7889 * gcore.c (gcore_create_callback): Ignore sections with
7890 separate_debug_objfile_backlink != NULL.
7892 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7893 Andrew Jenner <andrew@codesourcery.com>
7894 Chung-Lin Tang <cltang@codesourcery.com>
7895 Julian Brown <julian@codesourcery.com>
7897 Based on the nios2-elf port from Altera Corporation.
7899 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7901 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7902 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7903 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7904 * nios2-tdep.h: New.
7905 * nios2-tdep.c: New.
7906 * nios2-linux-tdep.c: New.
7907 * features/Makefile (WHICH): Add nios2-linux.
7908 (nios2-linux-expedite): Set.
7909 * features/nios2-cpu.xml: New.
7910 * features/nios2.xml: New.
7911 * features/nios2-linux.xml: New.
7912 * features/nios2.c: New (autogenerated).
7913 * features/nios2-linux.c: New (autogenerated).
7914 * regformats/nios2-linux.dat: New (autogenerated).
7915 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7918 2013-05-06 Doug Evans <dje@google.com>
7920 * symfile.c: Whitespace cleanup.
7922 * solist.h (struct target_so_ops): New member clear_so.
7923 * solib-svr4.c (svr4_clear_so): New function.
7924 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7925 * solib.c (clear_so): Renamed from free_so_symbols.
7926 All callers updated. Call target clear_so if it exists.
7928 2013-05-06 Tom Tromey <tromey@redhat.com>
7930 * ada-lang.c (ada_value_primitive_packed_val): Don't
7932 * value.c (set_value_parent): Incref the new parent and decref
7934 (value_copy, value_primitive_field): Use set_value_parent.
7936 2013-05-06 Tom Tromey <tromey@redhat.com>
7938 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7939 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7941 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7942 * dwarf2read.c (write_constant_as_bytes)
7943 (dwarf2_fetch_constant_bytes): New functions.
7945 2013-05-06 Tom Tromey <tromey@redhat.com>
7947 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7949 (dwarf2_const_value_attr): Update.
7951 2013-05-06 Tom Tromey <tromey@redhat.com>
7953 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7954 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7955 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7958 2013-05-06 Tom Tromey <tromey@redhat.com>
7960 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7963 2013-05-06 Doug Evans <dje@google.com>
7965 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7966 * stabsread.h (process_one_symbol): Update declaration.
7967 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7968 * elfread.c (elf_symfile_relocate_probe): Ditto.
7969 * psymtab.c (relocate_psymtabs): Ditto.
7970 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7971 (objfile_relocate): Ditto.
7972 * objfiles.h (objfile_relocate): Update declaration.
7973 * symfile.c (relative_addr_info_to_section_offsets): Constify
7975 (default_symfile_offsets): Ditto.
7976 (syms_from_objfile_1): Constify offsets parameter.
7977 (syms_from_objfile): Ditto.
7978 (symbol_file_add_with_addrs_or_offsets): Ditto.
7979 (symfile_map_offsets_to_segments): Constify data parameter.
7980 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7981 delta parameters of member relocate.
7982 (struct sym_probe_fns): Constify new_offsets,
7983 delta parameters of member sym_relocate_probe.
7984 (struct sym_fns): Constify section_addr_info parameter of member
7986 (relative_addr_info_to_section_offsets): Update declaration.
7987 (default_symfile_offsets): Ditto.
7988 (syms_from_objfile): Ditto.
7989 (symfile_map_offsets_to_segments): Ditto.
7991 * symfile.c (syms_from_objfile_1): Use correct section count when
7992 objfile->sf == NULL.
7994 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7996 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7998 2013-05-06 Doug Evans <dje@google.com>
8000 * psympriv.h (struct partial_symtab): Augment comment for member
8003 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8005 Reimplement shared library support on ppc-aix...
8006 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8007 * features/library-list-aix.dtd: New file.
8008 * solib-aix.h, solib-aix.c: New file.
8009 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8010 (rs6000_find_toc_address_hook): Delete.
8011 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8012 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8013 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8015 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8016 (vmap_symtab, fixup_breakpoints): Delete.
8017 (rs6000_xfer_shared_libraries): New function.
8018 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8019 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8020 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8021 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8022 (rs6000_xfer_shared_library): New function.
8023 (find_toc_address): Delete.
8024 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8025 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8026 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8027 before creating minimal symbol. Adjust function description
8029 (scan_xcoff_symtab): Replace call to
8030 prim_record_minimal_symbol_and_info by call to
8031 record_minimal_symbol.
8032 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8033 around default_symfile_offsets.
8034 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8035 powerpc-aix targets.
8036 * config/rs6000/nm-rs6000.h: Delete.
8037 * config/powerpc/aix.mh (NAT_FILE): Delete.
8038 (NATDEPFILES): Remove xcoffsolib.o.
8039 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8040 (ALL_TARGET_OBS): Add solib-aix.o.
8041 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8042 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8043 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8044 * xcoffsolib.h, xcoffsolib.c: Delete.
8046 * solib.c (reload_shared_libraries): Remove reference to
8047 SOLIB_CREATE_INFERIOR_HOOK.
8048 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8049 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8050 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8052 * corelow.c (deprecated_core_resize_section_table): Delete.
8053 * exec.c: Remove include of xcoffsolib.h".
8054 (map_vmap, vmap): Delete.
8055 (exec_close_1): Remove references to vmap.
8056 (exec_file_attach): Remove vmap handling code, and reference
8057 to DEPRECATED_IBM6000_TARGET.
8058 (bfdsec_to_vmap): Delete.
8059 (exec_files_info): Remove block of code handling VMAP.
8060 * infcmd.c (post_create_inferior): Remove reference to
8061 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8062 * infrun.c (follow_exec): Remove reference to
8063 SOLIB_CREATE_INFERIOR_HOOK.
8064 * stack.c (print_frame): Remove reference to PC_SOLIB.
8065 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8066 (dsbt_relocate_main_executable): Likewise.
8067 * solib-frv.c (frv_current_sos): Likewise.
8069 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8071 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8072 to target_write_memory and target_read_memory.
8074 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8076 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8077 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8079 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8081 * darwin-nat.c: Replace all "%x" instances in format strings
8082 into "0x%x" throughout.
8084 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8086 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8087 gdb_assert by call to MACH_CHECK_ERROR.
8088 (darwin_attach_pid): Raise an error rather than a failed
8089 assertion when various system calls failed. Report a warning
8090 instead of raising a failed assertion when PREV_NOT is not NULL
8091 after call to mach_port_request_notification.
8092 (darwin_ptrace_me): Raise an error rather than a failed
8093 assertion when read returns nonzero.
8095 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8097 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8099 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8101 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8103 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8105 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8106 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8107 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8108 a stale cleanup. Fix double free of NAME.
8110 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8112 * windows-nat.c (windows_delete_thread): Accept an additional
8113 argument, the thread's exit code, and announce thread death when
8114 print_thread_events is non-zero and we are deleting a thread that
8115 is not the main thread.
8116 (get_windows_debug_event): Pass thread exit code to
8117 windows_delete_thread.
8119 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8121 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8122 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8123 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8124 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8125 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8126 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8127 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8128 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8129 (gdbarch_tdep): New struct.
8130 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8132 (v850e3v5_register_name): New function.
8133 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8134 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8135 code handling the struct return conventions for the RH850 ABI.
8137 (v850_eight_byte_align_p): New function.
8138 (v850_push_call_dummy): Push structs by value, not by reference
8139 for the RH850 ABI. Add support for eight byte alignment.
8140 (v850_dbtrap_breakpoint_from_pc): New function.
8141 (v850_gdbarch_init): Add ABI detection code. Register
8142 v850e3v5_register_name for the v850e3v5 architecture. Set the
8143 number of registers for v850e3v5. Register
8144 v850_dbtrap_breakpoint_from_pc as appropriate.
8145 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8147 2013-05-03 Doug Evans <dje@google.com>
8149 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8150 of bfd_count_sections.
8151 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8152 * symfile.c (default_symfile_offsets): Ditto.
8153 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8154 one entry, not bfd_count_sections entries.
8156 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8158 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8159 `save' and `restore' register groups. Don't include SPL
8160 or SPH in these groups.
8161 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8162 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8163 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8164 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8165 dwarf2_append_unwinders().
8167 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8169 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8170 ignore SIGINT and SIGTRAP in case these internal signals are
8173 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8175 * darwin-nat.c (darwin_read_write_inferior): Change types
8176 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8177 of copy_count to "mach_msg_type_number_t".
8178 (darwin_read_dyld_info): Change type of parameter
8179 rdaddr to "gdb_byte *".
8181 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8183 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8184 of &info->load_map from "char *" to "gdb_byte *".
8186 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8188 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8189 from "char *" to "gdb_byte *".
8190 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8192 2013-04-30 Doug Evans <dje@google.com>
8194 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8195 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8196 DWO stub. If DWO isn't found, just use stub.
8197 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8199 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8200 calling init_cutu_and_read_dies.
8202 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8204 * target-descriptions.c (maint_print_c_tdesc_cmd):
8205 Add case to parse structures as register types and
8208 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8210 * MAINTAINERS (Write After Approval): Add myself to the list.
8212 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8214 * sol-thread.c (rw_common): Change type of parameter "buf"
8216 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8217 rw_common to "gdb_byte *" instead of "char *".
8219 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8221 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8222 of local variable msym to const struct bound_minimal_symbol.
8223 Adjust use accordingly.
8224 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8226 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8228 * i386gnu-nat.c (CREG_OFFSET): New macro.
8229 (creg_offset): New array.
8230 (CREG_ADDR): Use creg_offset instead of reg_offset.
8232 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8234 * mep-tdep.c (mep_write_pc): Delete.
8235 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8236 Add call to set_gdbarch_pc_regnum.
8238 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8240 * common/filestuff.c: Replace #include <dirent.h> by
8241 #include "gdb_dirent.h".
8243 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8245 * common/filestuff.c: Replace #include <sys/stat.h> by
8246 #include "gdb_stat.h".
8248 2013-04-29 Pierre Muller <muller@sourceware.org>
8250 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8251 editCase function rule.
8252 (get_DW_AT_signature_type): Likewise.
8254 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8256 * m32r-tdep.c (m32r_write_pc): Delete.
8257 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8258 Add call to set_gdbarch_pc_regnum.
8260 2013-04-29 Pierre Muller <muller@sourceware.org>
8262 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8264 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8266 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8268 2013-04-28 Yao Qi <yao@codesourcery.com>
8270 * solib-dsbt.c (fetch_loadmap): Re-indent.
8271 (displacement_from_map, enable_break2): Likewise.
8272 (dsbt_relocate_section_addresses): Likewise.
8274 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8278 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8281 * dwarf2read.c (process_full_comp_unit): Always create a static
8284 2013-04-25 Hui Zhu <hui@codesourcery.com>
8286 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8287 to loc->cmd_bytecode.
8289 2013-04-24 Doug Evans <dje@google.com>
8291 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8293 2013-04-22 Keith Seitz <keiths@redhat.com>
8295 * tracepoint.c (trace_save): Call the writer's start method.
8297 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8300 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8303 2013-04-23 Tom Tromey <tromey@redhat.com>
8305 * common/filestuff.c: Check USE_WIN32API before including
8307 (HAVE_F_GETFD): New define.
8308 (mark_cloexec): Check HAVE_F_GETFD.
8309 (gdb_open_cloexec): Change 'mode' to unsigned long.
8310 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8311 (gdb_pipe_cloexec): Check HAVE_PIPE.
8312 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8315 2013-04-23 Hui Zhu <hui@codesourcery.com>
8318 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8320 2013-04-23 Hui Zhu <hui@codesourcery.com>
8323 * breakpoint.c (dprintf_print_recreate): New.
8324 (save_breakpoints): Let it not save dprintf commands.
8325 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8327 2013-04-22 Tom Tromey <tromey@redhat.com>
8330 * Makefile.in (SFILES): Add filestuff.c
8331 (COMMON_OBS): Add filestuff.o.
8332 (filestuff.o): New target.
8333 * auto-load.c (auto_load_objfile_script_1): Use
8335 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8336 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8337 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8338 * common/agent.c (gdb_connect_sync_socket): Use
8340 * common/filestuff.c: New file.
8341 * common/filestuff.h: New file.
8342 * common/linux-osdata.c (linux_common_core_of_thread)
8343 (command_from_pid, commandline_from_pid, print_source_lines)
8344 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8345 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8347 * common/linux-procfs.c (linux_proc_get_int)
8348 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8349 * config.in, configure: Rebuild.
8350 * configure.ac: Don't check for sys/socket.h. Check for
8352 * corelow.c (core_open): Use gdb_open_cloexec.
8353 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8354 * fork-child.c (fork_inferior): Call close_most_fds.
8355 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8356 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8357 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8358 Use gdb_fopen_cloexec.
8359 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8361 (linux_async_pipe): Use gdb_pipe_cloexec.
8362 * remote-fileio.c (remote_fileio_func_open): Use
8364 * remote.c (remote_file_put, remote_file_get): Use
8366 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8368 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8369 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8370 * solib.c (solib_find): Use gdb_open_cloexec.
8371 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8372 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8373 (tfile_open): Use gdb_open_cloexec.
8374 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8375 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8376 * xml-support.c (xml_fetch_content_from_file): Use
8378 * main.c (captured_main): Call notice_open_fds.
8380 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8382 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8383 'char *' to 'gdb_byte *'.
8384 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8387 2013-04-22 Yao Qi <yao@codesourcery.com>
8389 * infrun.c: Fix typo in comment.
8391 2013-04-22 Andrew Haley <aph@redhat.com>
8393 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8396 2013-04-20 Yao Qi <yao@codesourcery.com>
8398 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8399 'char *' to 'gdb_byte *'. Cast the return value of
8400 'bt_ctf_get_char_array' to 'gdb_byte *'.
8402 2013-04-19 Pedro Alves <palves@redhat.com>
8404 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8406 * configure: Regenerate.
8408 2013-04-19 Pedro Alves <palves@redhat.com>
8410 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8413 2013-04-19 Pedro Alves <palves@redhat.com>
8415 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8416 Change type of 'myaddr' parameter to gdb_byte pointer.
8417 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8418 to 'long long' pointer instead of to 'unsigned long long'.
8419 (monitor_write_memory_block, monitor_read_memory_single)
8420 (monitor_read_memory): Change type of 'myaddr' parameter to
8423 2013-04-19 Pedro Alves <palves@redhat.com>
8425 * record.c (validate_history_size): Make parameter 'setting'
8428 2013-04-19 Pedro Alves <palves@redhat.com>
8430 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8433 2013-04-19 Pedro Alves <palves@redhat.com>
8435 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8438 2013-04-19 Pedro Alves <palves@redhat.com>
8440 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8441 * ada-tasks.c (read_fat_string_value): Likewise.
8443 2013-04-19 Pedro Alves <palves@redhat.com>
8445 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8446 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8447 'offset', and adjust.
8449 2013-04-19 Pedro Alves <palves@redhat.com>
8451 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8452 (read_index_from_section): Add cast to 'char *'.
8454 2013-04-19 Pedro Alves <palves@redhat.com>
8456 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8458 2013-04-19 Pedro Alves <palves@redhat.com>
8460 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8462 2013-04-19 Pedro Alves <palves@redhat.com>
8464 * record-full.c (record_full_get_bookmark): Change local 'ret'
8465 type to char * and add cast to gdb_byte *.
8466 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8468 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8470 2013-04-19 Pedro Alves <palves@redhat.com>
8472 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8473 * python/py-prettyprint.c (print_string_repr): Change type of
8474 'output' local to char *. Add cast to gdb_byte * in
8475 LA_PRINT_STRING call.
8476 (print_children): Change type of 'output' local to char *.
8477 * python/py-value.c (valpy_string): Add cast to const char * in
8478 PyUnicode_Decode call.
8480 2013-04-19 Pedro Alves <palves@redhat.com>
8482 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8483 and change its type to 'const char *'. Adjust.
8484 (mips_send_packet): Add cast to 'char *', and remove cast to
8486 (mips_receive_packet): Remove cast to 'unsigned char *'.
8487 (mips_load_srec): Use bfd_byte.
8488 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8489 (pmon_checkset): Make 'value' parameter unsigned.
8491 2013-04-19 Pedro Alves <palves@redhat.com>
8493 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8495 2013-04-19 Pedro Alves <palves@redhat.com>
8497 * remote.c (remote_write_bytes_aux, compare_sections_command)
8499 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8500 (remote_hostio_readlink, remote_bfd_iovec_pread)
8501 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8502 binary buffer, and char when buffer is used as string.
8503 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8504 (trace_save, tfile_open, traceframe_walk_blocks)
8505 (tfile_fetch_registers): Likewise.
8507 2013-04-19 Pedro Alves <palves@redhat.com>
8509 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8510 buffer and size_t size. Adjust.
8511 * ser-base.h (ser_base_write): Adjust.
8512 * ser-go32.c (cnts): Change type to size_t.
8513 (dos_write): Change prototype -- take 'void *'
8514 buffer and size_t size. Adjust.
8515 (dos_info): Print elements of 'cnts' as unsigned long.
8516 * serial.c (serial_write): Likewise.
8517 * serial.h (serial_write): Adjust.
8518 (struct serial_ops) <write>: Change prototype -- take 'void *'
8519 buffer and size_t size. Adjust.
8521 2013-04-19 Pedro Alves <palves@redhat.com>
8523 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8525 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8527 2013-04-19 Pedro Alves <palves@redhat.com>
8529 * alpha-tdep.c (alpha_extract_return_value): Use
8530 regcache_cooked_read_unsigned to read 'v0'.
8532 2013-04-19 Pedro Alves <palves@redhat.com>
8534 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8535 parameters 'at', 'as' and 'offset' to uint32_t.
8537 2013-04-19 Pedro Alves <palves@redhat.com>
8539 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8540 'is64' to signed 'int'.
8542 2013-04-19 Pedro Alves <palves@redhat.com>
8544 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8547 2013-04-19 Pedro Alves <palves@redhat.com>
8549 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8550 'insnbuf' buffer type to unsigned int[].
8552 2013-04-19 Pedro Alves <palves@redhat.com>
8554 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8556 2013-04-19 Pedro Alves <palves@redhat.com>
8558 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8561 2013-04-19 Pedro Alves <palves@redhat.com>
8563 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8564 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8566 * mips-tdep.c (heuristic_fence_post): Change type to int.
8567 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8569 2013-04-19 Pedro Alves <palves@redhat.com>
8571 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8572 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8573 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8575 2013-04-19 Pedro Alves <palves@redhat.com>
8577 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8578 it to get a string view of the byte buffer.
8579 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8580 type to gdb_byte *. Adjust.
8581 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8582 Change local to char *.
8583 * solib-darwin.c (find_program_interpreter): Change return type to
8585 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8586 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8587 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8588 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8589 * solib-svr4.c (find_program_interpreter): Change return type to
8591 (enable_break): Change local 'interp_name' to char *.
8592 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8593 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8594 (spu_pseudo_register_write_spu): Use char for string buffer.
8596 (info_spu_event_command, info_spu_signal_command): Add casts to
8599 2013-04-19 Pedro Alves <palves@redhat.com>
8601 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8603 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8604 * ada-lang.c (ada_value_assign): Use gdb_byte.
8605 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8606 (alphanbsd_sigtramp_offset): Use gdb_byte.
8607 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8608 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8609 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8610 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8611 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8612 * arm-tdep.c (arm_stub_unwind_sniffer)
8613 (arm_displaced_init_closure): Use gdb_byte.
8614 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8615 (arm_default_thumb_le_breakpoint)
8616 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8617 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8618 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8619 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8620 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8621 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8622 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8623 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8624 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8625 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8626 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8627 (cris_store_return_value, cris_extract_return_value): Use
8629 (constraint): Change type of parameter to char * from signed
8630 char*. Use gdb_byte.
8631 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8632 of local buffer to gdb_byte *.
8633 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8634 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8635 (add_address_entry): Change type of local buffer to gdb_byte[].
8636 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8637 (frv_push_dummy_call): Use gdb_byte.
8638 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8639 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8640 (hppa_hpux_supply_save_state): Use gdb_byte.
8641 * hppa-tdep.c (hppa32_push_dummy_call)
8642 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8643 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8644 (slotN_contents, replace_slotN_contents): Change type of parameter
8646 (fetch_instruction, ia64_pseudo_register_write)
8647 (ia64_register_to_value, ia64_value_to_register)
8648 (ia64_extract_return_value, ia64_store_return_value)
8649 (ia64_push_dummy_call): Use gdb_byte.
8650 * m32c-tdep.c (m32c_return_value): Remove cast.
8651 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8652 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8654 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8655 * mn10300-tdep.c (mn10300_store_return_value)
8656 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8658 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8659 (moxie_process_record): Remove casts.
8660 * ppc-ravenscar-thread.c (supply_register_at_address)
8661 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8662 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8663 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8664 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8665 * remote.c (compare_sections_command): Use gdb_byte.
8666 * score-tdep.c (score7_free_memblock): Change type of parameter to
8668 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8669 gdb_byte *. Use gdb_byte.
8670 (sh_push_dummy_call_fpu): Use gdb_byte.
8671 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8672 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8673 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8674 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8675 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8676 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8677 (sh64_store_return_value, sh64_register_convert_to_virtual):
8678 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8679 (sh64_pseudo_register_write): Use gdb_byte.
8680 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8681 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8683 (irix_current_sos): Use gdb_byte.
8684 * solib-som.c (som_current_sos): Use gdb_byte.
8685 * sparc-ravenscar-thread.c (supply_register_at_address)
8686 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8687 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8688 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8689 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8691 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8693 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8694 * xstormy16-tdep.c (xstormy16_extract_return_value)
8695 (xstormy16_store_return_value): Change parameter type to
8696 'gdb_byte *'. Adjust.
8697 (xstormy16_push_dummy_call): Use gdb_byte.
8698 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8699 (call0_analyze_prologue, execute_code): Use gdb_byte.
8701 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8702 Pedro Alves <palves@redhat.com>
8704 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8707 2013-04-17 Doug Evans <dje@google.com>
8709 * dwarf2read.c (struct signatured_type): New member type.
8710 (struct attribute): Replace member signatured_type with signature.
8711 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8712 (read_call_site_scope): Call follow_die_ref instead of
8713 follow_die_ref_or_sig.
8714 (read_structure_type): Rewrite handling of signatured types.
8715 (read_enumeration_type): Ditto.
8716 (read_attribute_value): Update.
8717 (build_error_marker_type): New function.
8718 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8719 Don't call error for bad types, just build an error marker type.
8720 (dump_die_shallow): Update.
8721 (follow_die_sig_1): Renamed from follow_die_sig.
8722 Don't call error for bad types, instead return NULL.
8723 (follow_die_sig): New function.
8724 (get_signatured_type, get_DW_AT_signature_type): New functions.
8726 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8728 * aarch64-tdep.c (aarch64_write_pc): Removed.
8729 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8732 2013-04-17 Yao Qi <yao@codesourcery.com>
8734 * top.c (print_gdb_configuration): Print configure-time
8735 parameter on using libbabeltrace or not.
8737 2013-04-16 Pedro Alves <palves@redhat.com>
8739 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8741 2013-04-16 Pedro Alves <palves@redhat.com>
8743 * common/glibc_thread_db.h: Update from upstream glibc
8744 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8746 2013-04-16 Pedro Alves <palves@redhat.com>
8748 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8749 * common/glibc_thread_db.h: ... this new file ...
8750 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8752 2013-04-16 Will Newton <will.newton@gmail.com>
8753 Pedro Alves <palves@redhat.com>
8757 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8758 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8761 2013-04-16 Pedro Alves <palves@redhat.com>
8762 Eli Zaretskii <eliz@gnu.org>
8764 * NEWS: Mention "set foo unlimited".
8766 2013-04-15 Doug Evans <dje@google.com>
8768 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8769 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8770 (create_dwo_cu_reader): Renamed from
8771 create_dwo_debug_info_hash_table_reader.
8772 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8773 Remove support for multiple CUs in a DWO file.
8774 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8776 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8778 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8779 (create_dwo_in_dwp): Ditto.
8781 2013-04-15 Tom Tromey <tromey@redhat.com>
8783 * NEWS: Move recent entries into "since 7.6" section.
8785 2013-04-15 Tom Tromey <tromey@redhat.com>
8789 * break-catch-throw.c (struct exception_catchpoint)
8790 <exception_rx, pattern>: New fields.
8791 (fetch_probe_arguments, dtor_exception_catchpoint)
8792 (check_status_exception_catchpoint)
8793 (print_one_detail_exception_catchpoint): New functions.
8794 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8795 Compile regular expression if needed.
8796 (extract_exception_regexp): New function.
8797 (catch_exception_command_1): Use extract_exception_regexp.
8798 (compute_exception): Use fetch_probe_arguments.
8799 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8800 and check_status fields.
8801 * cp-abi.c (cplus_typename_from_type_info): New function.
8802 * cp-abi.h (cplus_typename_from_type_info): Declare.
8803 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8804 * gdb_regex.h (compile_rx_or_error): Declare.
8805 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8807 (init_gnuv3_ops): Set get_type_from_type_info field.
8808 * probe.c (compile_rx_or_error): Move...
8809 * utils.c (compile_rx_or_error): ... here.
8811 2013-04-15 Tom Tromey <tromey@redhat.com>
8815 * break-catch-throw.c (compute_exception): New function.
8816 (exception_funcs): New global.
8817 (_initialize_break_catch_throw): Create $_exception.
8818 * cp-abi.c (cplus_type_from_type_info): New function.
8819 * cp-abi.h (cplus_type_from_type_info): Declare.
8820 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8821 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8822 (gnuv3_get_type_from_type_info): New functions.
8823 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8825 2013-04-15 Tom Tromey <tromey@redhat.com>
8827 * break-catch-throw.c (struct exception_names): New.
8828 (exception_functions): Change type.
8829 (re_set_exception_catchpoint): Look for SDT probes.
8831 2013-04-15 Tom Tromey <tromey@redhat.com>
8834 * break-catch-throw.c (exception_functions): New global.
8835 (gnu_v3_exception_catchpoint_ops): Move earlier.
8836 (struct exception_catchpoint): New.
8837 (classify_exception_breakpoint): Rewrite.
8838 (re_set_exception_catchpoint): New function.
8839 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8840 Allocate a struct exception_catchpoint.
8841 (catch_exception_command_1): Update.
8842 (initialize_throw_catchpoint_ops): Set 're_set' method.
8844 2013-04-15 Tom Tromey <tromey@redhat.com>
8846 * Makefile.in (SFILES): Add break-catch-throw.c
8847 (COMMON_OBS): Add break-catch-throw.o.
8848 * break-catch-throw.c: New file.
8849 * breakpoint.c: Move exception-catching code to new file.
8850 (ep_parse_optional_if_clause): No longer static.
8851 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8853 2013-04-15 Tom Tromey <tromey@redhat.com>
8857 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8858 * c-exp.y (TYPEID): New token.
8859 (exp): Add new TYPEID productions.
8860 (ident_tokens): Add "typeid".
8861 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8862 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8863 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8864 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8865 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8867 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8868 (build_std_type_info_type, gnuv3_get_typeid_type)
8869 (gnuv3_get_typeid): New functions.
8870 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8871 new fields on ABI object.
8872 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8873 * std-operator.def (OP_TYPEID): New.
8875 2013-04-15 Tom Tromey <tromey@redhat.com>
8877 * elfread.c (elf_symtab_read): Install versioned symbol under
8878 unversioned name as well.
8880 2013-04-15 Tom Tromey <tromey@redhat.com>
8883 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8884 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8885 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8886 (gdb_demangle): New function.
8887 * cp-support.h (gdb_demangle): Declare.
8888 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8889 (dwarf2_name): Use gdb_demangle.
8890 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8891 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8893 (gnuv3_print_method_ptr): Use gdb_demangle.
8894 * jv-lang.c (java_demangle): Use gdb_demangle.
8895 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8896 * language.c (unk_lang_demangle): Use gdb_demangle.
8897 * symtab.c (symbol_find_demangled_name)
8898 (demangle_for_lookup): Use gdb_demangle.
8900 2013-04-15 Tom Tromey <tromey@redhat.com>
8904 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8906 (classify_exception_breakpoint): New function.
8907 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8908 (print_mention_exception_catchpoint)
8909 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8910 (catch_exception_command_1): Handle "rethrow" catchpoint.
8911 (catch_rethrow_command): New function.
8912 (_initialize_breakpoint): Add "catch rethrow" command.
8914 2013-04-15 Pierre Muller <muller@sourceware.org>
8916 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8917 set_gdbarch_write_pc as deprecated anymore.
8919 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8921 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8924 2013-04-13 Yao Qi <yao@codesourcery.com>
8926 * ctf.c (_initialize_ctf): Include "completer.h".
8927 Call add_target_with_completer instead of add_target.
8929 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8931 Fix GDB regression related to PR binutils/14813.
8932 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8933 * minidebug.c (lzma_close): Add return value comment.
8934 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8935 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8936 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8938 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 * config.in: Regenerate.
8942 2013-04-12 Tom Tromey <tromey@redhat.com>
8944 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8946 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8947 (struct die_reader_specs) <buffer>: Likewise.
8948 (die_reader_func_ftype): Make 'info_ptr' const.
8949 (struct line_header) <include_dirs, statement_program_start,
8950 statement_program_end>: Now const.
8951 (struct file_entry) <name>: Likewise.
8952 (struct partial_die_info) <sibling>: Likewise.
8953 (struct dwarf_block) <data>: Likewise.
8954 (dwarf2_read_section): Remove cast.
8955 (dwarf2_get_section_info): Make 'bufp' const.
8956 (read_index_from_section): Constify.
8957 (dw2_get_file_names_reader): Make 'info_ptr' const.
8958 (dw2_get_primary_filename_reader): Likewise.
8959 (read_comp_unit_head): Make 'info_ptr' and return type const.
8960 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8962 (read_abbrev_offset): Constify.
8963 (dwarf2_create_include_psymtab): Make 'name' const.
8964 (create_debug_types_hash_table): Update.
8965 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8966 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8968 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8969 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8970 (read_comp_units_from_section): Constify.
8971 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8972 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8974 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8975 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8976 (create_dwp_hash_table, dwarf2_ranges_read)
8977 (dwarf2_record_block_ranges): Constify.
8978 (read_die_and_children, read_die_and_siblings_1)
8979 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8981 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8982 (abbrev_table_read_table): Constify.
8983 (load_partial_dies): Make 'info_ptr' const.
8984 (read_partial_die, read_attribute_value, read_attribute): Make
8985 'info_ptr' and return type const.
8986 (read_address, read_initial_length)
8987 (read_checked_initial_length_and_offset, read_offset)
8988 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8990 (read_direct_string): Make 'buf' and return type const.
8991 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8992 (read_indirect_string): Make return type const.
8993 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8994 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8996 (read_str_index): Make return type const.
8997 (add_include_dir): Make 'include_dir' const.
8998 (add_file_name): Make 'name' const.
8999 (dwarf_decode_line_header): Constify.
9000 (psymtab_include_file_name): Make return type const.
9001 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9002 (dwarf2_start_subfile): Make 'filename' const.
9003 (dwarf2_const_value_attr): Make 'bytes' const.
9004 (read_signatured_type_reader): Make 'info_ptr' const.
9005 (decode_locdesc): Constify.
9006 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9008 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9009 'mac_end', and return type const.
9010 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9011 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9013 (per_cu_header_read_in): Constify.
9014 * symfile.h (dwarf2_get_section_info): Update.
9016 2013-04-12 Tom Tromey <tromey@redhat.com>
9018 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9020 2013-04-12 Eli Zaretskii <eliz@gnu.org>
9022 * NEWS: Mention "show configuration", --configuration.
9023 * top.c (print_gdb_configuration): New function, displays the
9024 details about GDB configure-time parameters.
9025 (print_gdb_version): Mention "show configuration".
9026 * cli/cli-cmds.c (show_configuration): New function.
9027 (_initialize_cli_cmds): Add the "show configuration" command.
9028 * main.c (captured_main) <print_configuration>: New static var.
9029 <long_options>: Use it.
9030 If --configuration was given, call print_gdb_configuration.
9032 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 Pedro Alves <palves@redhat.com>
9035 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9036 (generated_files): Add gcore.
9037 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9038 HAVE_NATIVE_GCORE_HOST.
9040 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9041 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9042 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9043 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9044 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9045 Add HAVE_NATIVE_GCORE_HOST.
9046 * configure: Regenerate.
9047 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9048 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9049 AC_CONFIG_FILES for gcore.
9050 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9052 * gdb_gcore.sh: Rename to ...
9053 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9054 and GCORE_TRANSFORM_NAME substitutions.
9056 Fix parsing tabs in ${gdb_target_obs}.
9057 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9059 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9061 * remote.c (unpush_and_perror): Add output message final dot.
9063 2013-04-11 Yao Qi <yao@codesourcery.com>
9065 * tracepoint.c (tfile_interp_line): Fit parameters line and
9068 2013-04-10 Joel Brobecker <brobecker@adacore.com>
9070 * solib.c (solib_map_sections): Remove code overwriting
9071 SO->SO_NAME with the bfd's filename.
9073 2013-04-10 Pedro Alves <palves@redhat.com>
9075 * cli/cli-decode.c (integer_unlimited_completer): New function.
9076 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9077 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9079 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9080 (is_unlimited_literal): New function.
9081 (do_set_command): Handle literal "unlimited" arguments.
9082 * frame.c (_initialize_frame) <set backtrace limit>: Document
9084 * printcmd.c (_initialize_printcmd) <set print
9085 max-symbolic-offset>: Add help text.
9086 * record-full.c (_initialize_record_full) <set record full
9087 insn-number-max>: Likewise.
9088 * record.c (_initialize_record) <set record
9089 instruction-history-size, set record function-call-history-size>:
9091 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9093 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9095 * source.c (_initialize_source) <set listsize>: Add help text.
9096 * utils.c (initialize_utils) <set height, set width>: Likewise.
9097 <set pagination>: Mention "set height unlimited".
9098 * valprint.c (_initialize_valprint) <set print elements, set print
9099 repeats>: Document "unlimited".
9101 2013-04-10 Pedro Alves <palves@redhat.com>
9103 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9104 instead of disconnect_tracing.
9105 * infcmd.c (detach_command, disconnect_command): Call
9106 query_if_trace_running. Adjust.
9107 * top.c: Include "tracepoint.h".
9108 (quit_target): Delete. Contents moved ...
9109 (quit_force): ... here. Wrap each stage of teardown in
9110 TRY_CATCH. Call disconnect_tracing before detaching.
9112 2013-04-10 Hui Zhu <hui@codesourcery.com>
9113 Yao Qi <yao@codesourcery.com>
9115 * configure.ac: Check libbabeltrace is installed.
9116 * config.in: Regenerate.
9117 * configure: Regenerate.
9118 * Makefile.in (LIBBABELTRACE): New.
9119 (CLIBS): Add LIBBABELTRACE.
9120 * ctf.c: Include "exec.h".
9121 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9122 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9123 (ctf_save_metadata_header): Define new type aliases in
9125 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9126 in metadata. Start a new faked packet for trace status.
9127 (ctf_write_status): Write trace status to CTF.
9128 (ctf_write_uploaded_tsv): Write TSV to CTF.
9129 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9130 (ctf_write_definition_end): End the faked packet.
9132 (ctx, ctf_iter, trace_dirname): New.
9133 (start_pos): New variable.
9134 (ctf_destroy, ctf_open_dir, ctf_open): New.
9135 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9137 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9138 (ctf_fetch_registers, ctf_xfer_partial): New.
9139 (ctf_get_trace_state_variable_value): New.
9140 (ctf_get_tpnum_from_frame_event): New.
9141 (ctf_get_traceframe_address): New.
9142 (ctf_trace_find, ctf_has_stack): New.
9143 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9144 (ctf_get_trace_status, ctf_read_status): New.
9145 (_initialize_ctf): New.
9146 * tracepoint.c (get_tracepoint_number): New
9147 (get_uploaded_tsv): Remove 'static'.
9148 (struct traceframe_info, trace_regblock_size): Move it to ...
9149 * tracepoint.h: ... here.
9150 (get_tracepoint_number): Declare it.
9151 (get_uploaded_tsv): Declare it.
9153 * NEWS: Mention new configure option.
9155 2013-04-10 Pedro Alves <palves@redhat.com>
9156 Hui Zhu <hui@codesourcery.com>
9158 * breakpoint.c (dprintf_re_set): New.
9159 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9162 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9164 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9165 Remove solib-svr4.o from the list.
9167 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9169 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9170 Use gdb_assert_not_reached instead of invalid boolean expression.
9172 2013-04-09 Pedro Alves <palves@redhat.com>
9174 * remote.c (unpush_and_perror): New function.
9175 (readchar, remote_serial_write): Use it.
9177 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9179 * NEWS: Mention new btrace RSP packets.
9181 2013-04-08 Tom Tromey <tromey@redhat.com>
9183 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9186 2013-04-08 Tom Tromey <tromey@redhat.com>
9188 * maint.c (print_bfd_section_info): Print the section index.
9189 * symmisc.c (dump_msymbols): Print the section index.
9191 2013-04-08 Tom Tromey <tromey@redhat.com>
9194 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9195 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9196 * breakpoint.c (resolve_sal_pc): Update.
9197 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9198 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9199 (minsym_lookup_iterator_cb): Use it.
9200 (default_read_var_value): Update.
9201 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9203 * infcmd.c (jump_command): Update.
9204 * linespec.c (minsym_found): Update.
9205 * maint.c (maintenance_translate_address): Update.
9206 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9207 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9208 * parse.c (write_exp_msymbol): Update.
9209 * printcmd.c (address_info): Update.
9210 * psymtab.c (find_pc_sect_psymbol): Update.
9211 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9213 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9214 Don't initialize SYMBOL_OBJ_SECTION.
9215 * spu-tdep.c (spu_catch_start): Update.
9216 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9217 * symmisc.c (dump_msymbols, print_symbol): Update.
9218 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9219 how fallback section is computed.
9220 (fixup_symbol_section): Update.
9221 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9223 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9224 Initialize SYMBOL_SECTION.
9225 * symtab.h (struct general_symbol_info) <section>: Update comment.
9226 <obj_section>: Remove.
9227 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9228 (SYMBOL_OBJFILE): New macro.
9230 2013-04-08 Tom Tromey <tromey@redhat.com>
9232 * coffread.c (record_minimal_symbol): Update.
9233 * dbxread.c (record_minimal_symbol): Update.
9234 * elfread.c (record_minimal_symbol): Update.
9235 * machoread.c (macho_symtab_add_minsym): Update.
9236 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9238 * minsyms.c (prim_record_minimal_symbol): Update.
9239 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9241 (prim_record_minimal_symbol_and_info): Likewise.
9242 * minsyms.h (prim_record_minimal_symbol_full)
9243 (prim_record_minimal_symbol_and_info): Update.
9244 * symtab.c (allocate_symbol, initialize_symbol)
9245 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9246 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9249 2013-04-08 Tom Tromey <tromey@redhat.com>
9252 * solib-som.c (som_solib_section_offsets): Use BFD section
9253 indices. Set offsets for all sections.
9254 * somread.c (som_symtab_read): Compute BFD section for
9255 symbol. Use prim_record_minimal_symbol_and_info.
9256 (som_symfile_read): Fix comment.
9257 (struct find_section_offset_arg): New.
9258 (find_section_offset, set_section_index): New functions.
9259 (som_symfile_offsets): Use set_section_index to compute
9262 2013-04-08 Tom Tromey <tromey@redhat.com>
9264 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9265 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9266 gdb_bfd_section_index.
9267 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9269 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9271 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9273 * objfiles.c (add_to_objfile_sections_full): New function.
9274 (add_to_objfile_sections): Use it.
9275 (build_section_table): Rewrite.
9276 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9277 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9278 (struct objfile) <sections>: Update comment.
9279 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9281 (ALL_OBJSECTIONS): Use it.
9282 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9283 * solib-frv.c (frv_relocate_main_executable): Update.
9284 * solib-target.c (solib_target_relocate_section_addresses):
9285 Use gdb_bfd_section_index.
9286 * symfile.c (build_section_addr_info_from_section_table):
9287 Use gdb_bfd_section_index.
9288 (build_section_addr_info_from_bfd, place_section): Likewise.
9289 * symtab.c (fixup_section): Update.
9290 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9292 2013-04-08 Tom Tromey <tromey@redhat.com>
9294 * minsyms.h (struct bound_minimal_symbol): New.
9295 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9296 Remove objfile argument.
9297 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9298 Return bound_minimal_symbol.
9299 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9300 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9301 Return bound_minimal_symbol.
9302 (in_gnu_ifunc_stub): Update.
9303 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9304 Remove 'objfile_p' argument.
9305 (lookup_solib_trampoline_symbol_by_pc): Update.
9306 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9307 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9308 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9309 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9310 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9311 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9312 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9313 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9314 stack.c, symtab.c, tui/tui-disasm.c: Update.
9316 2013-04-08 Tom Tromey <tromey@redhat.com>
9318 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9319 Use symbol's obstack, not an objfile.
9320 * coffread.c (process_coff_symbol): Update.
9321 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9322 * jv-lang.c (add_class_symbol): Update.
9323 * mdebugread.c (new_symbol): Update.
9324 * minsyms.c (prim_record_minimal_symbol_full)
9325 (terminate_minimal_symbol_table): Update.
9326 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9327 * stabsread.c (define_symbol, read_enum_type): Update.
9328 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9329 Handle Ada specially.
9330 (symbol_set_language): Add 'obstack' argument.
9331 (symbol_set_names): Update.
9332 (symbol_natural_name, symbol_demangled_name): Always use
9334 * symtab.h (struct general_symbol_info)
9335 <language_specific::obstack>: New field.
9336 <ada_mangled>: New field.
9337 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9338 (symbol_set_language): Update.
9340 2013-04-08 Tom Tromey <tromey@redhat.com>
9342 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9343 Take an obstack, not an objfile.
9344 (symbol_set_names): Update.
9345 * symtab.h (symbol_set_demangled_name): Update.
9347 2013-04-08 Tom Tromey <tromey@redhat.com>
9349 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9351 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9352 (read_func_scope): Call allocate_template_symbol.
9353 (new_symbol_full): Call allocate_symbol.
9354 * jit.c (finalize_symtab): Call allocate_symbol.
9355 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9356 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9357 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9358 (common_block_end): Call allocate_symbol.
9359 * symtab.c (allocate_symbol, initialize_symbol)
9360 (allocate_template_symbol): New functions.
9361 * symtab.c (allocate_symbol, initialize_symbol)
9362 (allocate_template_symbol): Declare.
9363 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9365 2013-04-08 Pedro Alves <palves@redhat.com>
9366 Keith Seitz <keiths@redhat.com>
9368 * breakpoint.c (create_breakpoint): Rename
9369 "parse_condition_and_thread" parameter to "parse_arg". Update
9370 describing comment. If !PARSE_ARG, then error out if ARG is not
9371 the empty string after extracting the location.
9372 * breakpoint.h (create_breakpoint): Rename
9373 "parse_condition_and_thread" parameter to "parse_arg".
9375 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9377 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9379 2013-04-07 Yao Qi <yao@codesourcery.com>
9381 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9382 and 'addr2' to CORE_ADDR.
9383 * target.c (update_current_target): Update.
9384 * target.h (struct target_ops) <to_trace_find>: Change parameter
9386 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9387 'addr2' to CORE_ADDR.
9388 (tfile_trace_find): Likewise.
9389 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9390 Change local variable 'addr' to type CORE_ADDR.
9391 * tracepoint.h (tfind_1): Update declaration.
9393 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9395 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9396 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9399 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9401 * main.h (windows_get_absolute_argv0): ...to here.
9403 2013-04-05 Doug Evans <dje@google.com>
9405 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9406 (read_cutu_die_from_dwo): Add comments.
9407 (read_structure_type): Update comment.
9408 (read_enumeration_type, read_namespace_type): Update comment.
9409 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9411 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9413 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9414 * Makefile.in (gdb.z): Remove.
9415 (install-only): Remove $(man1dir) and gdb.1 installation.
9418 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9420 Fix compatibility with Linux kernel 3.8.3.
9421 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9422 to more inner block. Remove parsing of NUMBER from outer block.
9423 Parse NUMBER only if KEYWORD has been identified.
9425 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9427 Fix variable name shadowing.
9428 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9429 filename to mapsfilename and update its uses.
9431 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9433 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9434 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9435 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9436 details of the problem.
9438 2013-04-04 Pedro Alves <palves@redhat.com>
9439 Hui Zhu <hui@codesourcery.com>
9441 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9442 tracepoint, reset its STEP_COUNT and call validate_actionline.
9444 2013-04-03 Doug Evans <dje@google.com>
9446 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9447 read_die_and_siblings.
9448 (read_die_and_siblings): New function.
9449 (read_cutu_die_from_dwo): Dump die if requested.
9450 (read_die_and_children): Call read_full_die_1 and
9451 read_die_and_siblings_1.
9452 (read_full_die): Dump die if requested.
9454 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9456 * dwarf2read.c (struct dwo_file): New member comp_dir.
9457 Rename member name to dwo_name. All uses updated.
9458 (hash_dwo_file): Include comp_dir in computation.
9459 (eq_dwo_file): Ditto.
9460 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9461 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9463 * psymtab.c (read_psymtabs_with_fullname): Don't call
9464 psymtab_to_fullname if the basenames are different.
9466 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9468 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9469 New entry about "fullname" presence.
9471 2013-04-03 Pedro Alves <palves@redhat.com>
9473 * NEWS: Mention x86_64/Cygwin as new native configuration.
9475 2013-04-02 Doug Evans <dje@google.com>
9477 * dwarf2read.c (read_structure_type): Fix typo in comment.
9479 2013-04-02 Pedro Alves <palves@redhat.com>
9481 * NEWS: Mention "set/show debug aarch64", "set/show debug
9482 coff-pe-read" and "set/show debug mach-o".
9484 2013-04-02 Pedro Alves <palves@redhat.com>
9486 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9488 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9490 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9491 gdb_string.h is now in common/.
9493 2013-04-02 Pedro Alves <palves@redhat.com>
9495 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9496 under "New options".
9498 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9502 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9504 2013-04-02 Pedro Alves <palves@redhat.com>
9508 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9509 (remote_serial_write): New function.
9510 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9512 2013-04-01 Jiong Wang <jiwang@tilera.com>
9514 * NEWS: Mention TILE-Gx in "New native configurations" and
9515 "New targets" sections.
9517 2013-04-01 Doug Evans <dje@google.com>
9519 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9520 (process_enumeration_scope): Simplify.
9522 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9524 (struct signatured_type): ... to here.
9525 (sig_type_ptr): New typedef.
9526 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9527 out of union 't'. All uses updated.
9528 (dw2_get_file_names_reader): Assert not called for a type unit.
9529 (dw2_get_file_names): Assert not called for a type unit or type
9531 (build_type_psymtabs_reader): Assert called for a type unit.
9532 (build_type_psymtab_dependencies): Assert called for a type unit group.
9534 * dwarf2read.c (free_dwo_file): Add comment.
9535 (dwarf2_per_objfile_free): Unref dwp bfd.
9537 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9539 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9540 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9541 (read_pe_exported_syms): Remove unused 'exportix'.
9542 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9543 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9544 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9546 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9548 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9549 (print_it_watchpoint): Remove unused 'bl'.
9550 (say_where): Remove unused 'uiout'.
9551 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9552 (bkpt_breakpoint_hit): Remove unused 'b'.
9553 (internal_bkpt_print_it): Remove unused 'uiout'.
9554 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9556 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9558 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9559 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9561 2013-03-29 Doug Evans <dje@google.com>
9563 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9564 Delete arg is_dwp. All callers updated.
9565 (open_dwp_file): New function.
9566 (open_and_init_dwp_file): Call it.
9567 (get_dwp_file): New function.
9568 (lookup_dwo_cutu): Call it.
9570 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9571 unnecessary, cleanup.
9573 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9575 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9576 (lookup_dwo_unit): New function.
9577 (init_cutu_and_read_dies): Move DWO handling to new functions.
9579 * dwarf2read.c (struct signatured_type): Tweak comment.
9580 (struct dwo_unit): Tweak comment.
9581 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9582 (create_dwo_debug_info_hash_table): Tweak comment.
9583 (dwarf2_per_cu_offset_and_type): Tweak comment.
9585 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9586 missing .debug_types section.
9588 2013-03-29 Yao Qi <yao@codesourcery.com>
9590 * corelow.c: Include "completer.h".
9591 (_initialize_corelow): Call add_target_with_completer with
9592 argument 'filename_completer'.
9593 * tracepoint.c: Likewise.
9594 * exec.c (_initialize_exec): Likewise.
9595 * target.c (add_target): Rename to ...
9596 (add_target_with_completer): ... this. Call set_cmd_completer
9597 if parameter completer is not NULL.
9599 * target.h: Include "command.h".
9600 (add_target_with_completer): Declare it.
9602 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9604 * coffread.c (is_import_fixup_symbol): New function.
9605 (record_minimal_symbol): Use is_import_fixup_symbol to
9606 detect import fixup symbols, and discard them.
9608 2013-03-28 Doug Evans <dje@google.com>
9610 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9611 types hash table until we know we need it.
9613 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9616 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9617 All callers updated.
9618 (dw2_print_stats): Print #read CUs too.
9619 (dump_die_shallow): Print signatured types better.
9621 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9622 info_or_types_section to section. All uses updated.
9623 (struct dwo_unit): Ditto.
9625 2013-03-28 Pedro Alves <palves@redhat.com>
9627 * NEWS (New options): New section.
9628 (New options): Mention set/show remote trace-status-packet.
9629 * remote.c (PACKET_qTStatus): New enumeration value.
9630 (remote_get_trace_status): Skip sending qTStatus if the packet is
9631 disabled. Use packet_ok.
9632 (_initialize_remote): Register a configuration command for
9635 2013-03-28 Doug Evans <dje@google.com>
9637 * symfile.c (find_separate_debug_file): Add comment.
9638 (terminate_after_last_dir_separator): Tweak comment.
9640 * dwarf2read.c (create_partial_symtab): Add forward decl.
9641 (create_partial_symtab): Move to be closer to other psymtab functions.
9642 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9644 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9645 (compute_symtab_includes): Remove unnecessary forward declaration.
9646 (die_needs_namespace): Add comment marking group of functions for
9647 dwarf2 name computation.
9649 * typeprint.c (_initialize_typeprint): Improve type help text.
9651 * python/python.c (finish_python_initialization): Provide suggestion
9652 for how to tell gdb to find its python files.
9654 2013-03-28 Pedro Alves <palves@redhat.com>
9658 * source.c (_initialize_source): Change back "set listsize" to an
9661 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9664 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9666 2013-03-27 Pedro Alves <palves@redhat.com>
9668 * top.c (history_size): Rename to ...
9669 (history_size_setshow_var): ... this. Add comment.
9670 (show_commands): Use readline's 'history_length' instead of
9671 computing the history length by calling history_get in a loop.
9672 (set_history_size_command): Error out for sizes over INT_MAX.
9673 Restore previous history size on invalid size.
9674 (init_history): If HISTSIZE is negative, leave the history size as
9676 (init_main): Adjust.
9678 2013-03-27 Pedro Alves <palves@redhat.com>
9680 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9681 coff_pe_read" command to "set debug coff-pe-read".
9683 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9685 * record.c (command_size_to_target_size): Fix size comparison.
9686 Change parameter type from pointer to integer to integer.
9689 2013-03-27 Pierre Muller <muller@sourceware.org>
9691 * windows-nat.c (handle_output_debug_string): Avoid typecast
9692 from integer of different size warning.
9694 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9696 * windows-nat.c (handle_output_debug_string): Add empty line
9697 after local block variable definition.
9699 2013-03-26 Pedro Alves <palves@redhat.com>
9701 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9702 (net_open): Make 'polls' local unsigned.
9704 2013-03-26 Pedro Alves <palves@redhat.com>
9706 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9707 a zuinteger command instead of uinteger.
9709 2013-03-26 Pedro Alves <palves@redhat.com>
9711 * record-full.c (record_full_insn_num): Make it unsigned.
9712 (record_full_check_insn_num, record_full_message)
9713 (record_full_registers_change, record_full_xfer_partial): Remove
9714 record_full_insn_max_num check (it's always != 0).
9715 (record_full_info, record_full_restore): Use %u as format string.
9716 (): Use %u as format string.
9717 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9718 check (it's always != 0).
9720 2013-03-26 Pedro Alves <palves@redhat.com>
9722 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9723 and "set dcache size" commands zuinteger instead of uinteger.
9725 2013-03-26 Pedro Alves <palves@redhat.com>
9727 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9728 command zuinteger instead of uinteger.
9730 2013-03-26 Pedro Alves <palves@redhat.com>
9732 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9733 zuinteger instead of uinteger.
9735 2013-03-26 Pedro Alves <palves@redhat.com>
9737 * record.c (record_insn_history_size_setshow_var)
9738 (record_call_history_size_setshow_var): New globals.
9739 (command_size_to_target_size): New function.
9740 (cmd_record_insn_history, cmd_record_call_history): Use
9741 command_size_to_target_size instead of cast.
9742 (validate_history_size, set_record_insn_history_size)
9743 (set_record_call_history_size): New functions.
9744 (_initialize_record): Install set_record_insn_history_size and
9745 set_record_call_history_size as "set" hooks of "set record
9746 instruction-history-size" and "set record
9747 function-call-history-size".
9749 2013-03-26 Pedro Alves <palves@redhat.com>
9751 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9752 use with history_max_entries use. Remove FIXME note.
9754 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9756 * record-btrace.c (record_btrace_close): Call
9757 record_btrace_auto_disable.
9759 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9761 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9763 2013-03-25 Doug Evans <dje@google.com>
9765 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9767 2013-03-25 Tom Tromey <tromey@redhat.com>
9770 * c-exp.y (exp): Add new productions for destructors after '.' and
9772 (write_destructor_name): New function.
9774 2013-03-25 Tom Tromey <tromey@redhat.com>
9777 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9778 value_struct_elt, not lookup_struct_elt_type.
9779 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9780 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9781 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9783 2013-03-25 Yao Qi <yao@codesourcery.com>
9785 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9786 instead of '_mkdir'.
9788 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9790 * windows-nat.c (windows_get_absolute_argv0): New function.
9791 * windows-nat.h: Add its prototype.
9793 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9794 Use IS_DIR_SEPARATOR instead of looking for a character inside
9795 SLASH_STRING. Include filenames.h.
9796 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9797 relocate_gdb_directory works when passed gdb_program_name.
9798 Include windows-nat.h.
9800 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9802 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9803 * remote.c (trace_error): Remove the special handling of '2'.
9804 (readchar) <SERIAL_EOF>
9805 (readchar) <SERIAL_ERROR>
9806 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9807 (remote_get_trace_status): Call throw_exception if EX is
9809 * utils.c (perror_with_name): Rename to ...
9810 (throw_perror_with_name): ... here. New parameter errcode, describe it
9811 in the function comment.
9812 (perror_with_name): New function wrapper.
9813 * utils.h (enum errors): New stub declaration.
9814 (throw_perror_with_name): New declaration.
9816 2013-03-22 Pedro Alves <palves@redhat.com>
9817 Yao Qi <yao@codesourcery.com>
9818 Mark Kettenis <kettenis@gnu.org>
9820 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9821 Don't let the user set the value to UINT_MAX directly.
9822 <var_integer>: Don't let the user set the value to INT_MAX
9825 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9827 * remote.c (remote_unpush_target): New function.
9828 (remote_open_1): Remove two pop_target calls, update one comment, add
9829 comment to target_preopen call. Replace pop_target call by
9830 remote_unpush_target call.
9831 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9832 pop_target calls by remote_unpush_target calls.
9834 2013-03-22 Pedro Alves <palves@redhat.com>
9836 * linux-nat.c (linux_child_follow_fork): Don't call
9837 linux_enable_event_reporting.
9838 (linux_handle_extended_wait): Don't call
9839 linux_enable_event_reporting.
9841 2013-03-22 Pedro Alves <palves@redhat.com>
9843 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9844 use it to rewrite the trampoline buffers with type gdb_byte[], and
9845 undefine the macro. Remove char* cast.
9847 2013-03-21 Doug Evans <dje@google.com>
9849 New commands "mt set per-command {space,time,symtab} {on,off}".
9851 * event-top.c: #include "maint.h".
9852 * main.c: #include "maint.h".
9853 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9854 timeval-utils.h, maint.h, cli/cli-setshow.h.
9855 (per_command_time, per_command_space): New static globals.
9856 (per_command_symtab): New static global.
9857 (per_command_setlist, per_command_showlist): New static globals.
9858 (struct cmd_stats): Move here from utils.c.
9859 (set_per_command_time): Renamed from set_display_time in utils.c
9860 and moved here. All callers updated.
9861 (set_per_command_space): Renamed from set_display_space in utils.c
9862 and moved here. All callers updated.
9863 (count_symtabs_and_blocks): New function.
9864 (report_command_stats): Moved here from utils.c. Add support for
9865 printing symtab stats. Only print data if enabled before command
9867 (make_command_stats_cleanup): Ditto.
9868 (sert_per_command_cmd, show_per_command_cmd): New functions.
9869 (_initialize_maint_cmds): Add new commands
9870 mt set per-command {space,time,symtab} {on,off}.
9871 * maint.h: New file.
9872 * top.c: #include "maint.h".
9873 * utils.c (reset_prompt_for_continue_wait_time): New function.
9874 (get_prompt_for_continue_wait_time): New function.
9875 * utils.h (reset_prompt_for_continue_wait_time): Declare
9876 (get_prompt_for_continue_wait_time): Declare.
9877 (make_command_stats_cleanup): Moved to maint.h.
9878 (set_display_time, set_display_space): Moved to maint.h and renamed
9879 to set_per_command_time, set_per_command_space.
9880 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9881 parse_binary_operation and made non-static. Don't call error,
9882 just return an error marker. All callers updated.
9883 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9885 2013-03-21 Tom Tromey <tromey@redhat.com>
9887 * symfile.c (alloc_section_addr_info): Update header. Don't set
9888 'num_sections' field.
9889 (build_section_addr_info_from_section_table): Set 'num_sections'.
9890 (build_section_addr_info_from_bfd): Likewise.
9891 (build_section_addr_info_from_objfile): Remove dead loop
9893 (free_section_addr_info): Unconditionally call xfree.
9894 (relative_addr_info_to_section_offsets, addrs_section_sort)
9895 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9897 (syms_from_objfile_1): Remove dead 'if' condition. Check
9899 (add_symbol_file_command): Set 'num_sections'.
9900 * symfile-mem.c (symbol_file_add_from_memory): Set
9902 * somread.c (som_symfile_offsets): Remove dead loop condition.
9903 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9904 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9906 2013-03-21 Tom Tromey <tromey@redhat.com>
9908 * tracepoint.h (decode_agent_options): Add 'trace_string'
9910 * tracepoint.c (decode_agent_options): Add 'trace_string'
9912 (validate_actionline): Update.
9913 (collect_symbol): Add 'trace_string' argument.
9914 (struct add_local_symbols_data) <trace_string>: New field.
9915 (do_collect_symbol): Update.
9916 (add_local_symbols): Add 'trace_string' argument.
9917 (encode_actions_1): Update.
9918 (trace_dump_actions): Update.
9919 * dwarf2loc.c (access_memory): Update.
9920 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9921 * ax-general.c (new_agent_expr): Update.
9922 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9923 (gen_trace_for_return_address): Add argument.
9924 (trace_kludge, trace_string_kludge): Remove.
9925 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9926 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9927 (gen_trace_for_var): Add 'trace_string' argument.
9928 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9929 (gen_printf, agent_eval_command_one): Update.
9931 2013-03-21 Tom Tromey <tromey@redhat.com>
9934 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9935 Handle FILENAME token.
9937 2013-03-21 Tom Tromey <tromey@redhat.com>
9939 * c-exp.y (YYPRINT): Define.
9940 (c_print_token): New function.
9942 2013-03-21 Tom Tromey <tromey@redhat.com>
9944 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9946 2013-03-21 Yao Qi <yao@codesourcery.com>
9948 * ctf.c: Include "gdb_stat.h".
9949 [USE_WIN32API]: New macro 'mkdir'.
9950 (ctf_start): Use permission bits macros if they are defined.
9952 2013-03-20 Keith Seitz <keiths@redhat.com>
9954 * breakpoint.h (struct breakpoint): Add comment to
9955 extra_string indicating that this member is mallod'd.
9956 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9958 2013-03-20 Pedro Alves <palves@redhat.com>
9962 * cli/cli-setshow.c (do_set_command)
9963 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9964 the result of parsing the command argument. Throw error if the
9965 value is greater than UINT_MAX. Print the invalid value with
9967 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9968 result of parsing the command argument. Throw error if the value
9969 is greater than INT_MAX, not greater or equal. Also throw error
9970 if the value is less than INT_MIN. Print the invalid value with
9972 <var_zuinteger_unlimited>: Throw error if the value is greater
9973 than INT_MAX, not greater or equal.
9974 (do_show_command) <var_integer, var_zinteger,
9975 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9977 2013-03-20 Tom Tromey <tromey@redhat.com>
9979 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9981 * dwarf2read.c (read_func_scope): Remove old FIXME.
9982 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9984 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9985 Unconditionally call via computed ops, if possible.
9986 * printcmd.c (address_info): Unconditionally call via computed ops,
9988 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9990 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9991 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9994 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9995 Tom Tromey <tromey@redhat.com>
9998 * coffread.c (coff_register_index): New global.
9999 (process_coff_symbol, coff_read_enum_type): Set
10000 SYMBOL_ACLASS_INDEX.
10001 (_initialize_coffread): Initialize new global.
10002 * dwarf2loc.c (locexpr_find_frame_base_location)
10003 (dwarf2_block_frame_base_locexpr_funcs)
10004 (loclist_find_frame_base_location)
10005 (dwarf2_block_frame_base_loclist_funcs): New.
10006 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10007 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10008 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10009 (dwarf2_block_frame_base_loclist_funcs): New.
10010 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10011 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10013 (read_func_scope): Update.
10014 (fixup_go_packaging, mark_common_block_symbol_computed)
10015 (var_decode_location, new_symbol_full, dwarf2_const_value):
10016 Set SYMBOL_ACLASS_INDEX.
10017 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10018 (_initialize_dwarf2_read): Initialize new globals.
10019 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10020 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10021 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10023 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10024 (_initialize_mdebugread): Initialize new globals.
10025 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10026 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10027 (stab_register_index, stab_regparm_index): New globals.
10028 (define_symbol, read_enum_type, common_block_end): Set
10029 SYMBOL_ACLASS_INDEX.
10030 (_initialize_stabsread): Initialize new globals.
10031 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10033 (MAX_SYMBOL_IMPLS): New define.
10034 (register_symbol_computed_impl, register_symbol_block_impl)
10035 (register_symbol_register_impl)
10036 (initialize_ordinary_address_classes): New functions.
10037 (_initialize_symtab): Call initialize_ordinary_address_classes.
10038 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10039 (struct symbol_impl): New.
10040 (SYMBOL_ACLASS_BITS): New define.
10041 (struct symbol) <aclass, ops>: Remove fields.
10042 <aclass_index>: New field.
10043 (symbol_impls): Declare.
10044 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10045 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10046 (register_symbol_computed_impl, register_symbol_block_impl)
10047 (register_symbol_register_impl): Declare.
10048 (struct symbol_computed_ops): Add location_has_loclist.
10049 (struct symbol_block_ops): New.
10050 (SYMBOL_BLOCK_OPS): New.
10051 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10053 2013-03-20 Tom Tromey <tromey@redhat.com>
10055 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10056 (print_partial_symbols, recursively_search_psymtabs): Use
10059 2013-03-20 Pierre Muller <muller@sourceware.org>
10061 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10062 addtion, subtraction, multiplication and division binary operator.
10064 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10067 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10068 * bsd-kvm.c (bsd_kvm_close): Likewise.
10069 * bsd-uthread.c (bsd_uthread_close): Likewise.
10070 * corelow.c (core_close): Likewise.
10071 (core_close_cleanup): Remove parameter quitting from a caller.
10072 * event-top.c (async_disconnect): Likewise.
10073 * exec.c (exec_close_1): Remove parameter quitting.
10074 * go32-nat.c (go32_close): Likewise.
10075 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10076 parameter quitting from a caller.
10077 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10079 (mips_linux_close): Remove parameter quitting. Remove parameter
10080 quitting from a caller.
10081 * monitor.c (monitor_close): Remove parameter quitting.
10082 * monitor.h (monitor_close): Likewise.
10083 * record-btrace.c (record_btrace_close): Likewise.
10084 * record-full.c (record_full_close): Likewise.
10085 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10086 it also from fprintf_unfiltered.
10087 * remote-mips.c (mips_close): Remove parameter quitting.
10088 (mips_detach): Remove parameter quitting from a caller.
10089 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10090 (gdbsim_close): Remove duplicate function comment. Remove parameter
10091 quitting and remove it also from printf_filtered.
10092 * remote.c (remote_close): Remove parameter quitting.
10093 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10094 * target.c (update_current_target): Remove parameter int from to_close
10096 (push_target, unpush_target, pop_target): Remove parameter quitting from
10098 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10099 Remove parameter quitting from a caller.
10100 (target_preopen): Remove parameter quitting from a caller.
10101 (target_close): Remove parameter quitting. Remove parameter quitting
10102 from a caller two times. Remove parameter quitting also from
10103 fprintf_unfiltered.
10104 * target.h (struct target_ops): Remove parameter quitting and as int
10105 from fields to_xclose and to_close.
10106 (extern struct target_ops current_target):
10107 (target_close, pop_all_targets): Remove parameter quitting. Update the
10109 (pop_all_targets_above): Remove parameter quitting.
10110 * top.c (quit_target): Remove parameter quitting from a caller.
10111 * tracepoint.c (tfile_close): Remove parameter quitting.
10112 * windows-nat.c (windows_close): Remove parameter quitting.
10114 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10116 * windows-nat.c (handle_output_debug_string): Replace call
10117 to string_to_core_addr with call to strtoull.
10119 2013-03-20 Yao Qi <yao@codesourcery.com>
10121 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10122 and write it to CTF metadata.
10124 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10126 * windows-nat.c (handle_output_debug_string): Change type of n to
10127 SIZE_T to avoid crash on 64 bit systems.
10129 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10131 * python/python-internal.h (HAVE_SNPRINTF)
10132 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10133 about redefinition of snprintf by pyerrors.h.
10135 2013-03-15 Steve Ellcey <sellcey@mips.com>
10137 * remote-sim.c (sim_command_completer): Make char arguments const.
10139 2013-03-15 Tom Tromey <tromey@redhat.com>
10142 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10144 2013-03-14 Tom Tromey <tromey@redhat.com>
10146 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10148 (get_file_crc): Move from symfile.c.
10149 (gdb_bfd_crc): New function.
10150 * gdb_bfd.h (gdb_bfd_crc): Declare.
10151 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10152 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10153 (separate_debug_file_exists): Use gdb_bfd_crc.
10155 2013-03-14 Tom Tromey <tromey@redhat.com>
10157 * symfile.c (get_debug_link_info): Remove.
10158 (find_separate_debug_file_by_debuglink): Use
10159 bfd_get_debug_link_info.
10161 2013-03-14 Tom Tromey <tromey@redhat.com>
10163 * symtab.c (error_in_psymtab_expansion): New function.
10164 (lookup_symbol_aux_quick)
10165 (basic_lookup_transparent_type_quick): Remove "last resort"
10166 code. Use error_in_psymtab_expansion.
10168 2013-03-14 Doug Evans <dje@google.com>
10169 Jan Kratochvil <jan.kratochvil@redhat.com>
10171 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10172 any successful compare_filenames_for_search or FILENAME_CMP.
10173 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10174 * symtab.c (iterate_over_some_symtabs): Likewise.
10176 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10178 * source.c (print_source_lines_base): Make a local copy of
10179 symtab_to_fullname.
10181 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10182 Jan Kratochvil <jan.kratochvil@redhat.com>
10184 * source.c (print_source_lines_base): Suppress "file" for TUI.
10186 2013-03-14 Keith Seitz <keiths@redhat.com>
10187 Alan Matsuoka <alanm@redhat.com>
10191 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10193 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10196 2013-03-14 Yao Qi <yao@codesourcery.com>
10198 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10199 status to tfile if trace is stopped by command 'tstop'.
10201 2013-03-14 Yao Qi <yao@codesourcery.com>
10203 * tracepoint.c (tfile_write_status): Write trace notes and user
10204 name into tfile if they are not NULL.
10206 2013-03-14 Hui Zhu <hui@codesourcery.com>
10207 Yao Qi <yao@codesourcery.com>
10209 * Makefile.in (REMOTE_OBS): Add ctf.o.
10210 (SFILES): Add ctf.c.
10211 (HFILES_NO_SRCDIR): Add ctf.h.
10212 * ctf.c, ctf.h: New files.
10213 * tracepoint.c: Include 'ctf.h'.
10214 (collect_pseudocommand): Remove static.
10215 (trace_save_command): Parse option "-ctf".
10216 Produce different trace file writers per option.
10217 Adjust output message.
10218 (trace_save_tfile, trace_save_ctf): New.
10219 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10220 * mi/mi-main.c: Include 'ctf.h'.
10221 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10222 trace_save_tfile or trace_save_ctf.
10223 * NEWS: Mention these changes.
10225 2013-03-14 Yao Qi <yao@codesourcery.com>
10227 * tracepoint.c (trace_file_writer_xfree): New.
10228 (struct tfile_writer_data): New.
10229 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10230 (tfile_write_header, tfile_write_regblock_type): New.
10231 (tfile_write_status, tfile_write_uploaded_tsv): New.
10232 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10233 (tfile_write_raw_data, (tfile_end): New.
10234 (tfile_write_ops): New global variable.
10235 (TRACE_WRITE_R_BLOCK): New macro.
10236 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10237 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10238 (TRACE_WRITE_V_BLOCK): New macro.
10239 (trace_save): Add extra one parameter WRITER. Make it static.
10240 Use WRITER to writer trace.
10241 (tfile_trace_file_writer_new): New.
10242 (trace_save_command): Caller update.
10243 (trace_save_tfile): Write trace data in TFILE format.
10244 * tracepoint.h (struct trace_frame_write_ops): New.
10245 (struct trace_file_write_ops): New.
10246 (struct trace_file_writer): New.
10247 (trace_save): Remove its declaration.
10248 (trace_save_tfile): Declare it.
10249 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10250 instead of trace_save.
10252 2013-03-13 Pedro Alves <palves@redhat.com>
10254 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10256 2013-03-13 Pedro Alves <palves@redhat.com>
10258 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10259 commented out code.
10260 * demangle.c (current_demangling_style_string): Make it const.
10261 (set_demangling_command): Assert the demangling style is known.
10262 Remove all handling of unknown styles. Set
10263 'current_demangling_style_string' to an element of the
10264 demangling_style_names array.
10265 (set_demangling_style): Delete.
10266 (_initialize_demangler): Set current_demangling_style_string to the
10267 element of the demangling_style_names array that corresponds to
10268 the default demangling style. Remove FIXME note. Don't call
10269 set_demangling_style.
10270 * gdb-demangle.h (set_demangling_style): Remove declaration.
10272 2013-03-13 Pedro Alves <palves@redhat.com>
10274 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10276 (ada_make_symbol_completion_list): Make "text0" parameter const.
10277 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10278 * breakpoint.c (condition_completer): Make "text" and "word"
10279 parameters const. Adjust.
10280 (check_tracepoint_command): Adjust to validate_actionline
10282 (catch_syscall_completer): Make "text" and "word" parameters
10284 * cli/cli-cmds.c (show_user): Make "comname" local const.
10285 (valid_command_p): Make "command" parameter const.
10286 (alias_command): Make "alias_prefix" and "command_prefix" locals
10288 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10289 (add_alias_cmd): Make "name" and "oldname" parameters const.
10290 Adjust. No longer make copy of OLDNAME.
10291 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10292 (add_setshow_cmd_full, add_setshow_enum_cmd)
10293 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10294 (add_setshow_filename_cmd, add_setshow_string_cmd)
10295 (add_setshow_string_noescape_cmd)
10296 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10297 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10298 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10299 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10300 Make "name" parameter const.
10301 (help_cmd): Rename "command" parameter to "arg". New const local
10303 (find_cmd): Make "command" parameter const.
10304 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10305 deprecated_cmd_warning prototype change.
10306 (undef_cmd_error): Make "cmdtype" parameter const.
10307 (lookup_cmd): Make "line" parameter const.
10308 (deprecated_cmd_warning): Change type of "text" parameter to
10309 pointer to const char, from pointer to pointer to char. Adjust.
10310 (lookup_cmd_composition): Make "text" parameter const.
10311 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10313 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10315 * cli/cli-script.c (validate_comname): Make "tem" local const.
10316 (define_command): New const local "tem_c". Use it in calls to
10318 (document_command): Make "tem" and "comfull" locals const.
10319 (show_user_1): Make "prefix" and "name" parameters const.
10320 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10322 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10323 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10324 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10325 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10326 (complete_on_enum, add_setshow_enum_cmd)
10327 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10328 (add_setshow_filename_cmd, add_setshow_string_cmd)
10329 (add_setshow_string_noescape_cmd)
10330 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10331 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10332 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10333 Change prototypes, constifying strings.
10334 * completer.c (noop_completer, filename_completer): Make "text"
10335 and "prefix" parameters const.
10336 (location_completer, expression_completer)
10337 (complete_line_internal): Make "text" and "prefix" parameters
10339 (command_completer, signal_completer): Make "text" and "prefix"
10341 * completer.h (noop_completer, filename_completer)
10342 (expression_completer, location_completer, command_completer)
10343 (signal_completer): Change prototypes.
10344 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10346 * cp-abi.c (cp_abi_completer): Likewise.
10347 * expression.h (parse_expression_for_completion): Change
10349 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10351 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10352 * infrun.c (handle_completer): Make "text" and "word" parameters
10354 * interps.c (interpreter_completer): Make "text" and "word"
10356 * language.h (struct language_defn)
10357 <la_make_symbol_completion_list>: Make "text" and "word"
10359 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10360 (parse_exp_in_context): Rename to ...
10361 (parse_exp_in_context_1): ... this.
10362 (parse_exp_in_context): Reimplement, with const hack from
10364 (parse_expression_for_completion): Make "string" parameter const.
10365 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10366 to pointer to const char. Adjust.
10367 (print_command_1): Make "exp" parameter const.
10368 (output_command): Rename to ...
10369 (output_command_const): ... this. Make "exp" parameter const.
10370 (output_command): Reimplement.
10371 (x_command): Adjust.
10372 (display_command): Rename "exp" parameter to "arg". New "exp"
10373 local, const version of "arg".
10374 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10375 "cmd_name" local const.
10376 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10378 (cmdpy_completer): Make "text" and "word" parameters const.
10379 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10380 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10382 * remote.c (_initialize_remote): Make "cmd_name" local const.
10383 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10384 parameters const. Adjust.
10385 (completion_list_add_fields): Make "sym_text", "text" and "word"
10387 (struct add_name_data) <sym_text, text, word>: Make fields const.
10388 (default_make_symbol_completion_list_break_on): Make "text" and
10389 "word" parameters const. Adjust locals.
10390 (default_make_symbol_completion_list)
10391 (make_symbol_completion_list, make_symbol_completion_type)
10392 (make_symbol_completion_list_fn): Make "text" and "word"
10394 (make_file_symbol_completion_list): Make "text", "word" and
10395 "srcfile" parameters const. Adjust locals.
10396 (add_filename_to_list): Make "text" and "word" parameters const.
10397 (struct add_partial_filename_data) <text, word>: Make fields
10399 (make_source_files_completion_list): Make "text" and "word"
10401 * symtab.h (default_make_symbol_completion_list_break_on)
10402 (default_make_symbol_completion_list, make_symbol_completion_list)
10403 (make_symbol_completion_type enum type_code)
10404 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10405 (make_source_files_completion_list): Change prototype.
10406 * top.c (execute_command): Adjust to pass pointer to pointer to
10407 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10409 (set_verbose): Make "cmdname" local const.
10410 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10412 (validate_actionline): Make "line" parameter a pointer to const
10414 (encode_actions_1): Make "action_exp" local const, and adjust.
10415 (encode_actions): Adjust.
10416 (replace_comma): Delete.
10417 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10418 const, and adjust. Don't frob the action string while splitting
10419 it at commas. Instead, make a copy of each split substring in
10421 (trace_dump_command): Adjust to validate_actionline prototype
10423 * tracepoint.h (decode_agent_options, decode_agent_options)
10424 (encode_actions, validate_actionline): Change prototypes.
10425 * valprint.h (output_command): Delete declaration.
10426 (output_command_const): Declare.
10427 * value.c (function_destroyer): Cast const away in xfree call.
10429 2013-03-13 Pedro Alves <palves@redhat.com>
10431 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10432 rather than casting 'const char * const *' to 'const char **'.
10433 * ada-lex.l (processInt): Make "trailer" local const. Remove
10434 'const char **' cast.
10435 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10436 locals, and use those as strtol output pointer, instead than doing
10437 invalid casts to from 'const char **' to 'char **'.
10438 (_initialize_demangle): Remove cast.
10439 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10440 locals, and use those as strtol output pointer, instead than doing
10441 invalid casts to from 'const char **' to 'char **'.
10442 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10444 * stap-probe.c (stap_parse_register_operand)
10445 (stap_parse_single_operand): Likewise.
10447 2013-03-13 Yao Qi <yao@codesourcery.com>
10449 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10450 the last matched 'V' blcok in trace frame.
10452 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10454 * NEWS: Create a new section for the next release branch.
10455 Rename the section of the current branch, now that it has
10458 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10460 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10461 * version.in: Bump version to 7.6.50.20130312-cvs.
10463 2013-03-12 Keith Seitz <keiths@redhat.com>
10465 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10466 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10467 Remove temporary copy of input string.
10468 (mi_execute_command_wrapper): Make "cmd" const.
10469 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10470 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10472 (mi_parse): Make "cmd" const.
10474 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10476 2013-03-12 Keith Seitz <keiths@redhat.com>
10478 * ada-lang.c (ada_read_renaming_var_value): Pass const
10479 pointer to expression string to parse_exp_1.
10480 (create_excep_cond_exprs): Likewise.
10481 * ax-gdb.c (agent_eval_command_one): Likewise.
10482 (maint_agent_printf_command): Likewise.
10483 Constify much of the string handling/parsing.
10484 * breakpoint.c (set_breakpoint_condition): Pass const
10485 pointer to expression string to parse_exp_1.
10486 (update_watchpoint): Likewise.
10487 (parse_cmd_to_aexpr): Constify string handling.
10488 Pass const pointer to parse_exp_1.
10489 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10490 (find_condition_and_thread): Likewise.
10492 (watch_command_1): Make "arg" const.
10493 Constify string handling.
10494 Copy the expression string instead of changing the input
10496 (update_breakpoint_location): Pass const pointer to
10498 * eval.c (parse_and_eval_address): Make "exp" const.
10499 (parse_to_comma_and_eval): Make "expp" const.
10500 (parse_and_eval): Make "exp" const.
10501 * expression.h (parse_expression): Make argument const.
10502 (parse_exp_1): Make first argument const.
10503 * findcmd.c (parse_find_args): Treat "args" as const.
10504 * linespec.c (parse_linespec): Pass const pointer to
10505 linespec_expression_to_pc.
10506 (linespec_expression_to_pc): Make "exp_ptr" const.
10507 * parse.c (parse_exp_1): Make "stringptr" const.
10508 Make a copy of the expression to pass to parse_exp_in_context until
10509 this whole interface can be constified.
10510 (parse_expression): Make "string" const.
10511 * printcmd.c (ui_printf): Treat "arg" as const.
10512 Handle const strings.
10513 * tracepoint.c (validate_actionline): Pass const pointer to
10514 all calls to parse_exp_1.
10515 (encode_actions_1): Likewise.
10516 * value.h (parse_to_comma_and_eval): Make argument const.
10517 (parse_and_eval_address): Likewise.
10518 (parse_and_eval): Likewise.
10519 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10520 (varobj_set_value): Likewise.
10521 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10522 constify string handling.
10523 Pass const pointers to parse_and_eval_address and
10524 parse_to_comman_and_eval.
10525 * cli/cli-utils.c (skip_to_space): Rename to ...
10526 (skip_to_space_const): ... this. Handle const strings.
10527 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10528 skip_to_space_const.
10529 (skip_to_space_const): Declare.
10530 * common/format.c (parse_format_string): Make "arg" const.
10531 Handle const strings.
10532 * common/format.h (parse_format_string): Make "arg" const.
10533 * gdbserver/ax.c (ax_printf): Make "format" const.
10534 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10535 of the expression string.
10537 2013-03-12 Hui Zhu <hui@codesourcery.com>
10539 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10541 2013-03-12 Yao Qi <yao@codesourcery.com>
10542 Hui Zhu <hui@codesourcery.com>
10544 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10545 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10548 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10550 * ada-lex.l (rules): Only recognize 'thread' as a
10551 delimiter when followed by numerals, as for c-exp.y.
10552 Use new rewind_to_char function to rewind the input for
10553 expression-delimiting tokens.
10554 (rewind_to_char): New function.
10556 2013-03-11 Pedro Alves <palves@redhat.com>
10557 Jan Kratochvil <jan.kratochvil@redhat.com>
10559 * configure: Regenerate.
10560 * configure.ac (check dynamic export flag): Link python test with
10563 2013-03-11 Doug Evans <dje@google.com>
10564 Keith Seitz <keiths@redhat.com>
10566 * linespec.c (find_linespec_symbols): Call find_function_symbols
10567 first, and then call lookup_prefix_sym/find_method.
10569 2013-03-11 Pedro Alves <palves@redhat.com>
10571 * charset.c (convert_between_encodings): Don't cast between
10572 different pointer to pointer types. Instead, make the 'inp' local
10573 be of the type iconv expects.
10574 (wchar_iterate): Don't cast between different pointer to pointer
10575 types. Instead, use new pointer local of the type iconv expects.
10576 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10577 Add new local of type char pointer, and use it to get a
10578 char/string view of the byte buffer, instead of casting between
10579 pointer to pointer types.
10581 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10583 * remote.c (remote_set_trace_buffer_size): Move != operator
10584 to the start of next line to fix an ARI warning.
10586 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10588 * NEWS: Add record changes.
10590 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10592 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10593 the instruction history disassembly.
10594 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10595 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10597 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10599 * Makefile.in (SFILES): Add record-btrace.c
10600 (COMMON_OBS): Add record-btrace.o
10601 * record-btrace.c: New.
10602 * objfiles.c: Include btrace.h.
10603 (free_objfile): call btrace_free_objfile.
10605 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10607 * target.c (target_call_history, target_call_history_from,
10608 target_call_history_range): New.
10609 * target.h (target_ops) <to_call_history, to_call_history_from,
10610 to_call_history_range>: New fields.
10611 (target_call_history, target_call_history_from,
10612 target_call_history_range): New declaration.
10613 * record.c (get_call_history_modifiers, cmd_record_call_history,
10614 record_call_history_size): New.
10615 (_initialize_record): Add the "record function-call-history" command.
10616 Add "set/show record function-call-history-size" commands.
10617 * record.h (record_print_flag): New.
10619 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10621 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10622 to_insn_history_range>: New fields.
10623 (target_insn_history): New.
10624 (target_insn_history_from): New.
10625 (target_insn_history_range): New.
10626 * target.c (target_insn_history): New.
10627 (target_insn_history_from): New.
10628 (target_insn_history_range): New.
10629 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10630 (record_insn_history_size): New.
10631 (get_insn_number): New.
10632 (get_context_size): New.
10634 (get_insn_history_modifiers): New.
10635 (cmd_record_insn_history): New.
10636 (_initialize_record): Add "set/show record instruction-history-size"
10637 command. Add "record instruction-history" command.
10639 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10641 * record.h (record_disconnect): New.
10642 (record_detach): New.
10643 (record_mourn_inferior): New.
10644 (record_kill): New.
10645 * record-full.c (record_disconnect, record_detach,
10646 record_mourn_inferior, record_kill): Move to...
10647 * record.c: ...here.
10649 (record_stop): New.
10650 (record_unpush): New.
10651 (cmd_record_stop): Call record_stop. Replace unpush_target
10652 call with record_unpush call.
10653 (record_disconnect, record_detach): Assert that the target
10654 is of record stratum. Call record_unpush, record_stop, and
10656 (record_mourn_inferior, record_kill): Assert that the target
10657 is of record stratum. Call record_unpush and DEBUG.
10659 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10661 * record-full.h, record-full.c (record_memory_query): Rename
10663 (record_full_memory_query): ...this. Update all users.
10664 (record_arch_list_add_reg): Rename to ...
10665 (record_full_arch_list_add_reg): ...this. Update all users.
10666 (record_arch_list_add_mem): Rename to ...
10667 (record_full_arch_list_add_mem): ...this. Update all users.
10668 (record_arch_list_add_end): Rename to ...
10669 (record_full_arch_list_add_end): ...this. Update all users.
10670 (record_gdb_operation_disable_set): Rename to ...
10671 (record_full_gdb_operation_disable_set): ...this.
10674 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10676 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10677 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10678 (RECORD_IS_REPLAY): Renamed to ...
10679 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10680 (RECORD_FILE_MAGIC): Renamed to ...
10681 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10682 (record_mem_entry): Renamed to ...
10683 (record_full_mem_entry): ... this. Updated all users.
10684 (record_reg_entry): Renamed to ...
10685 (record_full_reg_entry): ... this. Updated all users.
10686 (record_end_entry): Renamed to ...
10687 (record_full_end_entry): ... this. Updated all users.
10688 (record_type) <record_end, record_reg, record_mem>: Renamed
10690 (record_full_type) <record_full_end, record_full_reg,
10691 record_full_mem>: ... this. Updated all users.
10692 (record_entry): Renamed to ...
10693 (record_full_entry): ... this. Updated all users.
10694 (record_core_buf_entry): Renamed to ...
10695 (record_full_core_buf_entry): ... this. Updated all users.
10696 (record_core_regbuf): Renamed to ...
10697 (record_full_core_regbuf): ... this. Updated all users.
10698 (record_core_start): Renamed to ...
10699 (record_full_core_start): ... this. Updated all users.
10700 (record_core_end): Renamed to ...
10701 (record_full_core_end): ... this. Updated all users.
10702 (record_core_buf_list): Renamed to ...
10703 (record_full_core_buf_list): ... this. Updated all users.
10704 (record_first): Renamed to ...
10705 (record_full_first): ... this. Updated all users.
10706 (record_list): Renamed to ...
10707 (record_full_list): ... this. Updated all users.
10708 (record_arch_list_head): Renamed to ...
10709 (record_full_arch_list_head): ... this. Updated all users.
10710 (record_arch_list_tail): Renamed to ...
10711 (record_full_arch_list_tail): ... this. Updated all users.
10712 (record_stop_at_limit): Renamed to ...
10713 (record_full_stop_at_limit): ... this. Updated all users.
10714 (record_insn_max_num): Renamed to ...
10715 (record_full_insn_max_num): ... this. Updated all users.
10716 (record_insn_num): Renamed to ...
10717 (record_full_insn_num): ... this. Updated all users.
10718 (record_insn_count): Renamed to ...
10719 (record_full_insn_count): ... this. Updated all users.
10720 (record_ops): Renamed to ...
10721 (record_full_ops): ... this. Updated all users.
10722 (record_core_ops): Renamed to ...
10723 (record_full_core_ops): ... this. Updated all users.
10724 (set_record_cmdlist): Renamed to ...
10725 (set_record_full_cmdlist): ... this. Updated all users.
10726 (show_record_cmdlist): Renamed to ...
10727 (show_record_full_cmdlist): ... this. Updated all users.
10728 (record_cmdlist): Renamed to ...
10729 (record_full_cmdlist): ... this. Updated all users.
10730 (record_beneath_to_resume_ops): Renamed to ...
10731 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10732 (record_beneath_to_resume): Renamed to ...
10733 (record_full_beneath_to_resume): ... this. Updated all users.
10734 (record_beneath_to_wait_ops): Renamed to ...
10735 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10736 (record_beneath_to_wait): Renamed to ...
10737 (record_full_beneath_to_wait): ... this. Updated all users.
10738 (record_beneath_to_store_registers_ops): Renamed to ...
10739 (record_full_beneath_to_store_registers_ops): ... this.
10741 (record_beneath_to_store_registers): Renamed to ...
10742 (record_full_beneath_to_store_registers): ... this.
10744 (record_beneath_to_xfer_partial_ops): Renamed to ...
10745 (record_full_beneath_to_xfer_partial_ops): ... this.
10747 (record_beneath_to_xfer_partial): Renamed to ...
10748 (record_full_beneath_to_xfer_partial): ... this.
10750 (record_beneath_to_insert_breakpoint): Renamed to ...
10751 (record_full_beneath_to_insert_breakpoint): ... this.
10753 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10754 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10756 (record_beneath_to_stopped_data_address): Renamed to ...
10757 (record_full_beneath_to_stopped_data_address): ... this.
10759 (record_beneath_to_async): Renamed to ...
10760 (record_full_beneath_to_async): ... this. Updated all users.
10761 (record_goto_insn): Renamed to ...
10762 (record_full_goto_insn): ... this. Updated all users.
10763 (record_save): Renamed to ...
10764 (record_full_save): ... this. Updated all users.
10765 (record_reg_alloc): Renamed to ...
10766 (record_full_reg_alloc): ... this. Updated all users.
10767 (record_reg_release): Renamed to ...
10768 (record_full_reg_release): ... this. Updated all users.
10769 (record_mem_alloc): Renamed to ...
10770 (record_full_mem_alloc): ... this. Updated all users.
10771 (record_mem_release): Renamed to ...
10772 (record_full_mem_release): ... this. Updated all users.
10773 (record_end_alloc): Renamed to ...
10774 (record_full_end_alloc): ... this. Updated all users.
10775 (record_end_release): Renamed to ...
10776 (record_full_end_release): ... this. Updated all users.
10777 (record_entry_release): Renamed to ...
10778 (record_full_entry_release): ... this. Updated all users.
10779 (record_list_release): Renamed to ...
10780 (record_full_list_release): ... this. Updated all users.
10781 (record_list_release_following): Renamed to ...
10782 (record_full_list_release_following): ... this.
10784 (record_list_release_first): Renamed to ...
10785 (record_full_list_release_first): ... this. Updated all users.
10786 (record_arch_list_add): Renamed to ...
10787 (record_full_arch_list_add): ... this. Updated all users.
10788 (record_get_loc): Renamed to ...
10789 (record_full_get_loc): ... this. Updated all users.
10790 (record_check_insn_num): Renamed to ...
10791 (record_full_check_insn_num): ... this. Updated all users.
10792 (record_arch_list_cleanups): Renamed to ...
10793 (record_full_arch_list_cleanups): ... this. Updated all users.
10794 (record_message): Renamed to ...
10795 (record_full_message): ... this. Updated all users.
10796 (record_message_wrapper): Renamed to ...
10797 (record_full_message_wrapper): ... this. Updated all users.
10798 (record_message_wrapper_safe): Renamed to ...
10799 (record_full_message_wrapper_safe): ... this. Updated all users.
10800 (record_gdb_operation_disable): Renamed to ...
10801 (record_full_gdb_operation_disable): ... this. Updated all users.
10802 (record_hw_watchpoint): Renamed to ...
10803 (record_full_hw_watchpoint): ... this. Updated all users.
10804 (record_exec_insn): Renamed to ...
10805 (record_full_exec_insn): ... this. Updated all users.
10806 (record_restore): Renamed to ...
10807 (record_full_restore): ... this. Updated all users.
10808 (record_async_inferior_event_token): Renamed to ...
10809 (record_full_async_inferior_event_token): ... this.
10811 (record_async_inferior_event_handler): Renamed to ...
10812 (record_full_async_inferior_event_handler): ... this.
10814 (record_core_open_1): Renamed to ...
10815 (record_full_core_open_1): ... this. Updated all users.
10816 (record_open_1): Renamed to ...
10817 (record_full_open_1): ... this. Updated all users.
10818 (record_open): Renamed to ...
10819 (record_full_open): ... this. Updated all users.
10820 (record_close): Renamed to ...
10821 (record_full_close): ... this. Updated all users.
10822 (record_resume_step): Renamed to ...
10823 (record_full_resume_step): ... this. Updated all users.
10824 (record_resumed): Renamed to ...
10825 (record_full_resumed): ... this. Updated all users.
10826 (record_execution_dir): Renamed to ...
10827 (record_full_execution_dir): ... this. Updated all users.
10828 (record_resume): Renamed to ...
10829 (record_full_resume): ... this. Updated all users.
10830 (record_get_sig): Renamed to ...
10831 (record_full_get_sig): ... this. Updated all users.
10832 (record_sig_handler): Renamed to ...
10833 (record_full_sig_handler): ... this. Updated all users.
10834 (record_wait_cleanups): Renamed to ...
10835 (record_full_wait_cleanups): ... this. Updated all users.
10836 (record_wait_1): Renamed to ...
10837 (record_full_wait_1): ... this. Updated all users.
10838 (record_wait): Renamed to ...
10839 (record_full_wait): ... this. Updated all users.
10840 (record_stopped_by_watchpoint): Renamed to ...
10841 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10842 (record_disconnect): Renamed to ...
10843 (record_full_disconnect): ... this. Updated all users.
10844 (record_detach): Renamed to ...
10845 (record_full_detach): ... this. Updated all users.
10846 (record_mourn_inferior): Renamed to ...
10847 (record_full_mourn_inferior): ... this. Updated all users.
10848 (record_kill): Renamed to ...
10849 (record_full_kill): ... this. Updated all users.
10850 (record_stopped_data_address): Renamed to ...
10851 (record_full_stopped_data_address): ... this. Updated all users.
10852 (record_registers_change): Renamed to ...
10853 (record_full_registers_change): ... this. Updated all users.
10854 (record_store_registers): Renamed to ...
10855 (record_full_store_registers): ... this. Updated all users.
10856 (record_xfer_partial): Renamed to ...
10857 (record_full_xfer_partial): ... this. Updated all users.
10858 (record_breakpoint): Renamed to ...
10859 (record_full_breakpoint): ... this. Updated all users.
10860 (record_breakpoint_p): Renamed to ...
10861 (record_full_breakpoint_p): ... this. Updated all users.
10862 (record_breakpoints): Renamed to ...
10863 (record_full_breakpoints): ... this. Updated all users.
10864 (record_sync_record_breakpoints): Renamed to ...
10865 (record_full_sync_record_breakpoints): ... this.
10867 (record_init_record_breakpoints): Renamed to ...
10868 (record_full_init_record_breakpoints): ... this.
10870 (record_insert_breakpoint): Renamed to ...
10871 (record_full_insert_breakpoint): ... this. Updated all users.
10872 (record_remove_breakpoint): Renamed to ...
10873 (record_full_remove_breakpoint): ... this. Updated all users.
10874 (record_can_execute_reverse): Renamed to ...
10875 (record_full_can_execute_reverse): ... this. Updated all users.
10876 (record_get_bookmark): Renamed to ...
10877 (record_full_get_bookmark): ... this. Updated all users.
10878 (record_goto_bookmark): Renamed to ...
10879 (record_full_goto_bookmark): ... this. Updated all users.
10880 (record_async): Renamed to ...
10881 (record_full_async): ... this. Updated all users.
10882 (record_can_async_p): Renamed to ...
10883 (record_full_can_async_p): ... this. Updated all users.
10884 (record_is_async_p): Renamed to ...
10885 (record_full_is_async_p): ... this. Updated all users.
10886 (record_execution_direction): Renamed to ...
10887 (record_full_execution_direction): ... this. Updated all users.
10888 (record_info): Renamed to ...
10889 (record_full_info): ... this. Updated all users.
10890 (record_delete): Renamed to ...
10891 (record_full_delete): ... this. Updated all users.
10892 (record_is_replaying): Renamed to ...
10893 (record_full_is_replaying): ... this. Updated all users.
10894 (record_goto_entry): Renamed to ...
10895 (record_full_goto_entry): ... this. Updated all users.
10896 (record_goto_begin): Renamed to ...
10897 (record_full_goto_begin): ... this. Updated all users.
10898 (record_goto_end): Renamed to ...
10899 (record_full_goto_end): ... this. Updated all users.
10900 (record_goto): Renamed to ...
10901 (record_full_goto): ... this. Updated all users.
10902 (init_record_ops): Renamed to ...
10903 (init_record_full_ops): ... this. Updated all users.
10904 (record_core_resume): Renamed to ...
10905 (record_full_core_resume): ... this. Updated all users.
10906 (record_core_kill): Renamed to ...
10907 (record_full_core_kill): ... this. Updated all users.
10908 (record_core_fetch_registers): Renamed to ...
10909 (record_full_core_fetch_registers): ... this. Updated all users.
10910 (record_core_prepare_to_store): Renamed to ...
10911 (record_full_core_prepare_to_store): ... this. Updated all users.
10912 (record_core_store_registers): Renamed to ...
10913 (record_full_core_store_registers): ... this. Updated all users.
10914 (record_core_xfer_partial): Renamed to ...
10915 (record_full_core_xfer_partial): ... this. Updated all users.
10916 (record_core_insert_breakpoint): Renamed to ...
10917 (record_full_core_insert_breakpoint): ... this. Updated all users.
10918 (record_core_remove_breakpoint): Renamed to ...
10919 (record_full_core_remove_breakpoint): ... this. Updated all users.
10920 (record_core_has_execution): Renamed to ...
10921 (record_full_core_has_execution): ... this. Updated all users.
10922 (init_record_core_ops): Renamed to ...
10923 (init_record_full_core_ops): ... this. Updated all users.
10924 (cmd_record_restore): Renamed to ...
10925 (cmd_record_full_restore): ... this. Updated all users.
10926 (record_save_cleanups): Renamed to ...
10927 (record_full_save_cleanups): ... this. Updated all users.
10928 (cmd_record_start): Renamed to ...
10929 (cmd_record_full_start): ... this. Updated all users.
10930 (set_record_insn_max_num): Renamed to ...
10931 (set_record_full_insn_max_num): ... this. Updated all users.
10932 (set_record_command): Renamed to ...
10933 (set_record_full_command): ... this. Updated all users.
10934 (show_record_command): Renamed to ...
10935 (show_record_full_command): ... this. Updated all users.
10936 (_initialize_record): Renamed to ...
10937 (_initialize_record_full): ... this. Updated all users.
10939 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10941 * record.h: Split into this and ...
10942 * record-full.h: ... this.
10943 * record.c: Split into this and ...
10944 * record-full.c: ... this.
10945 * target.h (target_ops): Add new fields to_info_record,
10946 to_save_record, to_delete_record, to_record_is_replaying,
10947 to_goto_record_begin, to_goto_record_end, to_goto_record.
10948 (target_info_record): New.
10949 (target_save_record): New.
10950 (target_supports_delete_record): New.
10951 (target_delete_record): New.
10952 (target_record_is_replaying): New.
10953 (target_goto_record_begin): New.
10954 (target_goto_record_end): New.
10955 (target_goto_record): New.
10956 * target.c (target_info_record): New.
10957 (target_save_record): New.
10958 (target_supports_delete_record): New.
10959 (target_delete_record): New.
10960 (target_record_is_replaying): New.
10961 (target_goto_record_begin): New.
10962 (target_goto_record_end): New.
10963 (target_goto_record): New.
10964 * record.h: Declare struct cmd_list_element.
10965 (record_cmdlist): New declaration.
10966 (set_record_cmdlist): New declaration.
10967 (show_record_cmdlist): New declaration.
10968 (info_record_cmdlist): New declaration.
10969 (cmd_record_goto): New declaration.
10970 * record.c: Remove unnecessary includes.
10971 Include inferior.h.
10972 (cmd_record_goto): Remove declaration.
10973 (record_cmdlist): Now extern. Initialize.
10974 (set_record_cmdlist): Now extern. Initialize.
10975 (show_record_cmdlist): Now extern. Initialize.
10976 (info_record_cmdlist): Now extern. Initialize.
10977 (find_record_target): New.
10978 (require_record_target): New.
10979 (cmd_record_start): Update.
10980 (cmd_record_delete): Remove target-specific code.
10981 Call target_delete_record.
10982 (cmd_record_stop): Unpush any record target.
10983 (set_record_insn_max_num): Move to record-full.c
10984 (set_record_command): Add comment.
10985 (show_record_command): Add comment.
10986 (info_record_command): Update comment.
10987 Remove target-specific code.
10988 Call the record target's to_info_record.
10989 (cmd_record_start): New.
10990 (cmd_record_goto): Now extern.
10991 Remove target-specific code.
10992 Call target_goto_begin, target_goto_end, or target_goto.
10993 (_initialize_record): Move record target ops initialization to
10995 Change "record" command help text.
10996 Move "record restore", "record set", and "record show" commands to
10998 * Makefile.in (SFILES): Add record-full.c.
10999 (HFILES_NO_SRCDIR): Add record-full.h.
11000 (COMMON_OBS): Add record-full.o.
11001 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11002 * arm-tdep.c: Include record-full.h.
11003 * i386-linux-tdep.c: Include record-full.h instead of record.h.
11004 * i386-tdep.c: Include record-full.h.
11005 * infrun.c: Include record-full.h.
11006 * linux-record.c: Include record-full.h.
11007 * moxie-tdep.c: Include record-full.h.
11008 * record-full.c: Include record-full.h.
11009 Change module comment.
11010 (set_record_full_cmdlist): New.
11011 (show_record_full_cmdlist): New.
11012 (record_full_cmdlist): New.
11013 (record_goto_insn): New declaration.
11014 (record_save): New declaration.
11015 (record_check_insn_num): Change query string.
11016 (record_info): New.
11017 (record_delete): New.
11018 (record_is_replaying): New.
11019 (record_goto_entry): New.
11020 (record_goto_begin): New.
11021 (record_goto_end): New.
11022 (record_goto): New.
11023 (init_record_ops): Update.
11024 (init_record_core_ops): Update.
11025 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11026 (cmd_record_start): New.
11027 (set_record_insn_max_num): Moved from record.c
11028 (set_record_full_command): New.
11029 (show_record_full_command): New.
11030 (_initialize_record_full): New.
11032 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11034 * target.h (add_deprecated_target_alias): New.
11035 * target.c (add_deprecated_target_alias): New.
11037 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11039 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11041 (linux_supports_btrace): Add kernel and
11043 (kernel_supports_btrace): New function.
11044 (cpu_supports_btrace): New function.
11045 (intel_supports_btrace): New function.
11047 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11049 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11050 * remote.c: Include btrace.h.
11051 (struct btrace_target_info): New struct.
11052 (remote_supports_btrace): New function.
11053 (send_Qbtrace): New function.
11054 (remote_enable_btrace): New function.
11055 (remote_disable_btrace): New function.
11056 (remote_teardown_btrace): New function.
11057 (remote_read_btrace): New function.
11058 (init_remote_ops): Add btrace ops.
11059 (enum <unnamed>): Add btrace packets.
11060 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11061 (_initialize_remote): Add packet configuration for branch tracing.
11063 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11065 * features/btrace.dtd: New file.
11066 * Makefile.in (XMLFILES): Add btrace.dtd.
11067 * btrace.h (parse_xml_btrace): New declaration.
11068 * btrace.c: Include xml-support.h.
11069 (parse_xml_btrace): New function.
11070 (parse_xml_btrace_block): New function.
11071 (block_attributes): New struct.
11072 (btrace_attributes): New struct.
11073 (btrace_children): New struct.
11074 (btrace_elements): New struct.
11076 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11078 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11079 (amd64_linux_enable_btrace): New.
11080 (amd64_linux_disable_btrace): New.
11081 (amd64_linux_teardown_btrace): New.
11082 (_initialize_amd64_linux_nat): Initialize btrace ops.
11083 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11084 (i386_linux_enable_btrace): New.
11085 (i386_linux_disable_btrace): New.
11086 (i386_linux_teardown_btrace): New.
11087 (_initialize_i386_linux_nat): Initialize btrace ops.
11088 * config/i386/linux.mh: Add linux-btrace.o.
11089 * config/i386/linux64.mh: Add linux-btrace.o.
11091 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11093 * common/linux_btrace.h: New file.
11094 * common/linux_btrace.c: New file.
11095 * Makefile.in (SFILES): Add btrace.c.
11096 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11097 (COMMON_OBS): Add btrace.o.
11098 (linux-btrace.o): New rule.
11100 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11102 * target.h: Include btrace.h.
11103 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11104 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11105 * target.c (target_supports_btrace): New function.
11106 (target_enable_btrace): New function.
11107 (target_disable_btrace): New function.
11108 (target_teardown_btrace): New function.
11109 (target_read_btrace): New function.
11110 * btrace.h: New file.
11111 * btrace.c: New file.
11112 * Makefile.in: Add btrace.c.
11113 * gdbthread.h: Include btrace.h.
11114 (struct thread_info): Add btrace field.
11115 * thread.c: Include btrace.h.
11116 (clear_thread_inferior_resources): Call target_teardown_btrace.
11117 * common/btrace-common.h: New file.
11119 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11121 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11122 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11123 kill_status to outer block.
11125 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11127 Fix entry-values if the callee called a noreturn function.
11128 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11129 get_frame_address_in_block. Add new comment.
11131 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11133 Fix entry-values in C++ across CUs.
11134 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11135 lookup_minimal_symbol. Add a comment.
11137 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11138 DW_AT_linkage_name.
11140 2013-03-08 Yao Qi <yao@codesourcery.com>
11142 * tracepoint.c (_initialize_tracepoint): Indent the code.
11144 2013-03-08 Pedro Alves <palves@redhat.com>
11146 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11147 (parse_find_args, find_command): Change type of pattern buffer
11148 locals to 'gdb_byte *'.
11150 2013-03-08 Stan Shebs <stan@codesourcery.com>
11151 Hafiz Abid Qadeer <abidh@codesourcery.com>
11153 * NEWS: Mention set and show trace-buffer-size commands.
11154 Mention new packet.
11155 * target.h (struct target_ops): New method
11156 to_set_trace_buffer_size.
11157 (target_set_trace_buffer_size): New macro.
11158 * target.c (update_current_target): Set up new method.
11159 * tracepoint.c (trace_buffer_size): New global.
11160 (start_tracing): Send it to the target.
11161 (set_trace_buffer_size): New function.
11162 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11163 * remote.c (remote_set_trace_buffer_size): New function.
11164 (_initialize_remote): Use it.
11165 (QTBuffer:size) New remote command.
11166 (PACKET_QTBuffer_size): New enum.
11167 (remote_protocol_features): Add an entry for
11168 PACKET_QTBuffer_size.
11170 2013-03-08 Tom Tromey <tromey@redhat.com>
11172 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11175 2013-03-07 Pedro Alves <palves@redhat.com>
11177 * target.c (target_read_stralloc, target_fileio_read_alloc):
11178 *Cast pointer to 'gdb_byte *' in target call.
11180 2013-03-07 Pedro Alves <palves@redhat.com>
11182 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11185 2013-03-07 Keith Seitz <keiths@redhat.com>
11187 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11188 (trace_pass_command): Likewise.
11189 * cli/cli-cmds.c: Include cli/cli-utils.h.
11190 (source_command): Use skip-spaces.
11191 (disassemble_command): Likewise.
11192 * findcmd.c: Include cli/cli-utils.h.
11193 (parse_find_args): Use skip_spaces.
11194 * go32-nat.c: Include cli/cli-utils.h.
11195 (go32_sldt): Use skip_spaces.
11196 (go32_sgdt): Likewise.
11197 (go32_sidt): Likewise.
11198 (go32_pde): Likewise.
11199 (go32_pte): Likewise.
11200 (go32_pte_for_address): Likewise.
11201 * infcmd.c: Include cli/cli-utils.h.
11202 (registers_info): Use skip_spaces.
11203 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11204 (linux_info_proc): Likewise.
11205 * linux-thread-db.c: Include cli/cli-utils.h.
11206 (info_auto_load_libthread_db): Use skip_spaces_const.
11207 * m32r-rom.c: Include cli/cli-utils.h.
11208 (m32r_upload_command): Use skip_spaces.
11209 * maint.c: Include cli/cli-utils.h.
11210 (maintenance_translate_address): Use skip_spaces.
11211 * mi/mi-parse.c: Include cli/cli-utils.h.
11212 (mi_parse_argv): Use skip_spaces.
11213 (mi_parse): Likewise.
11214 * minsyms.c: Include cli/cli-utils.h.
11215 (msymbol_hash_iw): Use skip_spaces_const.
11216 * objc-lang.c: Include cli/cli-utils.h.
11217 (parse_selector): Use skip_spaces.
11218 (parse_method): Likewise.
11219 * python/python.c: Include cli/cli-utils.h.
11220 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11221 (python_command)[HAVE_PYTHON]: Likewise.
11222 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11223 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11224 (m32r_load): Use skip_spaces.
11225 * serial.c: Include cli/cli-utils.h.
11226 (serial_open): Use skip_spaces_const.
11227 * stack.c: Include cli/cli-utils.h.
11228 (parse_frame_specification_1): Use skip_spaces_const.
11229 * symfile.c: Include cli/cli-utils.h.
11230 (set_ext_lang_command): Use skip_spaces.
11231 * symtab.c: Include cli/cli-utils.h.
11232 (rbreak_command): Use skip_spaces.
11233 * thread.c (thread_name_command): Use skip_spaces.
11234 * tracepoint.c (validate_actionline): Use skip_spaces.
11235 (encode_actions_1): Likewise.
11236 (trace_find_range_command): Likewise.
11237 (trace_find_outside_command): Likewise.
11238 (trace_dump_actions): Likewise.
11240 2013-03-07 Pedro Alves <palves@redhat.com>
11242 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11243 * expprint.c (print_subexp_standard): Likewise.
11244 * utils.c (host_char_to_target): Likewise.
11245 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11246 * varobj.c (value_get_print_value): Change type of local to char*.
11247 Cast it gdb_byte * in call to language printer.
11249 2013-03-07 Pedro Alves <palves@redhat.com>
11251 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11253 (make_wchar_iterator): Remove cast to char*.
11254 (wchar_iterate): Change type of local.
11256 2013-03-07 Pedro Alves <palves@redhat.com>
11258 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11259 for 'regcache->register_status'.
11261 2013-03-07 Pedro Alves <palves@redhat.com>
11263 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11266 2013-03-07 Pedro Alves <palves@redhat.com>
11268 * stap-probe.c (handle_stap_probe): Add cast to char*.
11270 2013-03-07 Pedro Alves <palves@redhat.com>
11272 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11273 RECORD_MSGRCV>: Pass a signed variable to
11274 regcache_raw_read_signed, instead of an unsigned one.
11276 2013-03-07 Pedro Alves <palves@redhat.com>
11278 * remote-notif.c (notif_debug): Change type to int.
11279 * remote-notif.h (notif_debug): Likewise.
11281 2013-03-07 Pedro Alves <palves@redhat.com>
11283 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11285 2013-03-07 Pedro Alves <palves@redhat.com>
11287 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11288 * remote.h (hex2bin, bin2hex): ... here.
11289 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11291 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11293 * utils.c (initialize_utils): Improve doc strings of "set/show
11294 width", "set/show height", and "set/show pagination".
11296 2013-03-06 Keith Seitz <keiths@redhat.com>
11298 * ax-gdb.c (gen_printf): Make FORMAT const.
11299 * ax-gdb.h (gen_printf): Likewise.
11300 * ax-general.c (ax_string): Make STR const.
11301 * ax.h (ax_string): Likewise.
11303 2013-03-06 Doug Evans <dje@google.com>
11305 * elfread.c (elf_symfile_read): Move debugging printf to more
11308 2013-03-06 Pedro Alves <palves@redhat.com>
11310 * python/py-utils.c (target_string_to_unicode): Delete function.
11311 * python/python-internal.h (target_string_to_unicode): Delete
11314 2013-03-06 Pierre Muller <muller@sourceware.org>
11316 * linespec.c (get_current_search_block): ARI fix, use (void)
11317 for empty parameter list.
11319 2013-03-05 Doug Evans <dje@google.com>
11321 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11322 of old ada_lookup_symbol_list. In !full_search case, don't
11323 search superblocks.
11324 (ada_lookup_symbol_list): Delete arg full_search, all callers
11325 updated. Call ada_lookup_symbol_list_worker.
11326 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11327 * ada-lang.h (ada_lookup_symbol_list): Update.
11328 * language.h (language_defn): Update comment for
11329 la_iterate_over_symbols.
11330 * linespec.c (iterate_over_file_blocks): New function.
11331 (iterate_over_all_matching_symtabs): Call it.
11332 (lookup_prefix_sym): Ditto.
11333 (get_current_search_block): New function.
11334 (get_search_block): Delete.
11335 (find_label_symbols): Call get_current_search_block.
11336 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11337 * symtab.c (iterate_over_symbols): Don't search superblocks.
11339 2013-03-05 Yao Qi <yao@codesourcery.com>
11341 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11342 parameter VAR's type from "unsigned int" to "int".
11343 * command.h (var_zuinteger_unlimited): Update its comments.
11344 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11346 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11348 * NEWS: Mention new target x86_64-*-cygwin*.
11350 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11352 * configure.host: Add x86_64-*-cygwin* as host.
11353 * configure.tgt: Add x86_64-*-cygwin* as target.
11354 * config/i386/cygwin64.mh: New file.
11356 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11358 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11360 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11362 * linespec.c (struct linespec_canonical_name): New.
11363 (struct linespec_state): Change canonical_names type to it.
11364 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11365 xrealloc element size. Initialize the different CANONICAL fields.
11366 (canonical_to_fullform): New.
11367 (filter_results): Use it. Add variables canonical, fullform and
11369 (struct decode_line_2_item, decode_line_2_compare_items): New.
11370 (decode_line_2): Remove variables iter and item_names, add variables
11371 items and items_count. Modify the code for these new variables.
11373 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11375 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11376 calling do_cleanup.
11378 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11380 * tracepoint.c (build_traceframe_info): Add code for byte order.
11382 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11384 * v850-tdep.c: (v850e2_register_name): Revise system register
11385 names to match current V850E2M architecture specifications.
11386 Update register number enum comments too.
11388 2013-03-01 Jiong Wang <jiwang@tilera.com>
11389 Pedro Alves <palves@redhat.com>
11391 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11393 (tilegx_skip_prologue): Limit prologue analysis to section end.
11395 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11397 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11400 2013-03-01 Pedro Alves <palves@redhat.com>
11402 Use gdb_byte for bytes from the program being debugged.
11404 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11405 Change type of local 'buf' to gdb_byte.
11406 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11407 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11408 * cris-tdep.c (cris_sigcontext_addr)
11409 (cris_sigtramp_frame_unwind_cache): Likewise.
11410 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11411 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11413 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11414 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11415 (hppa32_hpux_search_dummy_call_sequence)
11416 (hppa_hpux_supply_save_state): Likewise.
11417 * hppa-linux-tdep.c (insns_match_pattern)
11418 (hppa_linux_find_global_pointer): Likewise.
11419 * hppa-tdep.c (hppa_in_function_epilogue_p)
11420 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11421 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11422 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11423 (i386fbsd_collect_uthread): Likewise.
11424 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11425 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11426 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11427 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11428 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11429 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11430 (ia64_libunwind_frame_prev_register)
11431 (ia64_libunwind_sigtramp_frame_this_id)
11432 (ia64_find_global_pointer_from_dynamic_section)
11433 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11434 (ia64_unwind_pc): Likewise.
11435 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11436 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11437 (m68hc11_extract_return_value): Likewise.
11438 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11439 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11440 (mep_get_insn, mep_push_dummy_call): Likewise.
11441 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11442 (mips_linux_in_dynsym_stub): Likewise.
11443 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11444 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11445 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11447 * remote-mips.c (mips_set_register): Likewise.
11448 * remote-sim.c (gdbsim_fetch_register): Likewise.
11449 * score-tdep.c (score7_fetch_inst): Change type of parameter
11450 'memblock' and local 'buf' to gdb_byte.
11451 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11452 Change type of local 'buf' to gdb_byte. Adjust.
11453 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11455 (score7_analyze_prologue): Change type of 'memblock' and
11456 'memblock_ptr' locals to gdb_byte*.
11457 * sh64-tdep.c (sh64_extract_return_value)
11458 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11459 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11460 * solib-pa64.c (pa64_solib_create_inferior_hook)
11461 (pa64_open_symbol_file_object): Remove local 'buf'.
11462 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11463 (som_open_symbol_file_object): Likewise.
11464 * solib-spu.c (spu_current_sos): Likewise.
11465 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11466 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11467 (spu_store_registers): Likewise.
11468 * target.c (debug_print_register): Likewise.
11469 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11470 * xstormy16-tdep.c (xstormy16_store_return_value)
11471 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11472 (xstormy16_find_jmp_table_entry): Likewise.
11474 2013-03-01 Jiong Wang <jiwang@tilera.com>
11476 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11477 (tilegx_gdbarch_init): Install it.
11479 2013-02-28 Tom Tromey <tromey@redhat.com>
11481 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11484 2013-02-28 Doug Evans <dje@google.com>
11486 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11487 * python/python.c (gdbpy_find_pc_line): Ditto.
11489 2013-02-28 Tom Tromey <tromey@redhat.com>
11491 * contrib/excheck.py: New file.
11492 * contrib/exsummary.py: New file.
11493 * contrib/gcc-with-excheck: New file.
11495 2013-02-28 Tom Tromey <tromey@redhat.com>
11497 * python/python.c (gdbpy_print_stack): Call begin_line and
11498 fprintf_filtered inside TRY_CATCH.
11500 2013-02-28 Tom Tromey <tromey@redhat.com>
11502 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11505 2013-02-28 Tom Tromey <tromey@redhat.com>
11507 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11508 frame_object_to_frame_info inside TRY_CATCH.
11510 2013-02-28 Tom Tromey <tromey@redhat.com>
11512 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11515 2013-02-28 Tom Tromey <tromey@redhat.com>
11517 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11519 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11521 * windows-nat.c: Throughout, fix format strings and casts of
11522 printf-like functions to avoid type related warnings on all
11524 (handle_output_debug_string): Fetch context information address
11525 from debug string using string_to_core_addr.
11527 2013-02-27 Jiong Wang <jiwang@tilera.com>
11529 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11530 * regformats/reg-tilegx32.dat: New.
11532 2013-02-27 Jiong Wang <jiwang@tilera.com>
11534 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11536 2013-02-27 Jiong Wang <jiwang@tilera.com>
11538 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11540 2013-02-27 Yao Qi <yao@codesourcery.com>
11541 Pedro Alves <palves@redhat.com>
11543 * tracepoint.c (tfile_trace_find): For tfind
11544 pc/tp/range/outside, look for the next trace frame instead of
11545 always starting from frame 0.
11547 2013-02-26 Anthony Green <green@moxielogic.com>
11549 * configure.tgt: Add support for moxie-*-rtems* target.
11551 2013-02-25 Pedro Alves <palves@redhat.com>
11553 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11556 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11558 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11559 if $fp is used as the virtual frame pointer.
11561 2013-02-23 Alan Modra <amodra@gmail.com>
11563 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11565 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11566 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11567 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11568 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11570 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11573 * elfread.c (build_id_bfd_get): Make the return type const.
11574 (build_id_verify): Make the check parameter const.
11575 (build_id_to_debug_filename): Make the build_id parameter and variable
11577 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11579 2013-02-21 Alan Modra <amodra@gmail.com>
11581 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11583 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11585 Add a new method 'disassemble' to gdb.Architecture class.
11586 * python/py-arch.c (archpy_disassmble): Implementation of the
11587 new method gdb.Architecture.disassemble.
11588 (arch_object_methods): Add entry for the new method.
11590 2013-02-20 Jiong Wang <jiwang@tilera.com>
11592 * MAINTAINERS (Write After Approval): Add myself to the list.
11594 2013-02-19 Pedro Alves <palves@redhat.com>
11596 Garbage collect 'struct monitor_ops'::load_routine.
11598 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11599 * monitor.c (monitor_load): No longer call
11600 current_monitor->load_routine.
11601 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11602 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11603 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11605 2013-02-19 Pedro Alves <palves@redhat.com>
11609 Harmonize with generic_load.
11611 * monitor.c: Include "readline/readline.h".
11612 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11613 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11614 long/strtol for the 'load_offset' local. Error out if no argument
11615 is given or if too many arguments are given. Tilde expand the
11616 passed in file name.
11618 2013-02-19 Kai Tietz <ktietz@redhat.com>
11621 * symfile.c (load_section_data): Change type of load_offset
11623 (generic_load): User strtoulst instead of strtoul for conversion
11626 2013-02-19 Jiong Wang <jiwang@tilera.com>
11628 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11629 for return address, "lr" register, saved on stack.
11630 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11631 after we invoke tilegx_analyze_prologue.
11633 2013-02-19 Jiong Wang <jiwang@tilera.com>
11635 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11637 2013-02-19 Jiong Wang <jiwang@tilera.com>
11639 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11641 2013-02-19 Jiong Wang <jiwang@tilera.com>
11643 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11644 (tilegx_write_pc): New function.
11645 (tilegx_cannot_reference_register): Return zero if REGNO
11646 is TILEGX_FAULTNUM_REGNUM.
11647 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11648 (tilegx_register_name): Add handling of "faultnum" register.
11649 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11650 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11651 handling of TILEGX_FAULTNUM_REGNUM.
11652 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11654 2013-02-19 Jiong Wang <jiwang@tilera.com>
11656 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11657 should be aligned to 64bit.
11659 2013-02-19 Kai Tietz <ktietz@redhat.com>
11661 * windows-nat.c (windows_xfer_memory): Fix debug-output
11664 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11666 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11667 Don't check DSP register number if HAVE_DSP is not set.
11669 2013-02-19 Alan Modra <amodra@gmail.com>
11671 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11672 throughout file instead.
11673 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11674 Don't xmalloc return value.
11675 (build_id_verify): Similarly. Don't xfree.
11676 (build_id_to_debug_filename): Update.
11677 (find_separate_debug_file_by_buildid): Update, don't xfree.
11679 2013-02-18 Tom Tromey <tromey@redhat.com>
11682 * dwarf2read.c (read_subrange_type): Use result of
11685 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11687 * frame.c: Remove one extra white space after #include
11690 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11692 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11694 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11696 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11697 and dir commands into an if block.
11699 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11701 * python/py-breakpoint (struct pybp_code): Use int instead of
11704 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11705 Hafiz Abid Qadeer <abidh@codesourcery.com>
11707 * NEWS: Mention new field "trace-file".
11708 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11709 (tfile_open): Record the trace file's filename in the trace
11711 (tfile_files_info): Mention the name of the trace file.
11712 Check the "filename" field explicitely.
11713 (trace_status_command): Explicitely check "filename" field.
11714 (trace_find_command): Ditto.
11715 (trace_find_pc_command): Ditto.
11716 (trace_find_tracepoint_command): Ditto.
11717 (trace_find_line_command): Ditto.
11718 (trace_find_range_command): Ditto.
11719 (trace_find_outside_command): Ditto.
11720 * tracepoint.h (struct trace_status) <from_file>: Rename it
11721 to "filename" and make it hold the trace file's filename
11722 instead of a boolean.
11723 * remote.c (remote_get_trace_status): Initialize "filename"
11724 field with NULL instead of 0.
11726 2013-02-15 Yao Qi <yao@codesourcery.com>
11728 * remote.c: Fix a typo.
11730 2013-02-14 Pierre Muller <muller@sourceware.org>
11732 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11734 2013-02-14 Pedro Alves <palves@redhat.com>
11736 * utils.c (savestring): Don't #undef it. Move function to
11737 common/common-utils.c.
11738 * common/common-utils.c: Include gdb_string.h.
11739 (savestring): Move here from utils.c.
11740 * common/common-utils.h (savestring): Declare.
11742 2013-02-14 Pedro Alves <palves@redhat.com>
11744 * utils.c (savestring): Rename parameter 'size' to 'len'.
11746 2013-02-14 Pedro Alves <palves@redhat.com>
11747 Yufeng Zhang <yufeng.zhang@arm.com>
11749 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11750 (aarch64_inferior_data, struct aarch64_inferior_data):
11752 (struct aarch64_process_info): New.
11753 (aarch64_process_list): New global.
11754 (aarch64_find_process_pid, aarch64_add_process)
11755 (aarch64_process_info_get): New functions.
11756 (aarch64_inferior_data_get): Delete.
11757 (aarch64_process_info_get): New function.
11758 (aarch64_forget_process): New function.
11759 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11760 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11761 aarch64_get_debug_reg_state.
11762 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11763 instead of linux_nat_iterate_watchpoint_lwps.
11764 (aarch64_linux_new_fork): New function.
11765 (aarch64_linux_child_post_startup_inferior): Use
11766 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11767 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11768 (aarch64_linux_remove_hw_breakpoint)
11769 (aarch64_handle_aligned_watchpoint)
11770 (aarch64_handle_unaligned_watchpoint)
11771 (aarch64_linux_insert_watchpoint)
11772 (aarch64_linux_remove_watchpoint)
11773 (aarch64_linux_stopped_data_address): Adjust to pass the current
11774 process id to aarch64_debug_reg_state.
11775 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11776 linux_nat_new_fork hook, and aarch64_forget_process as
11777 linux_nat_forget_process hook; remove the call to
11778 register_inferior_data_with_cleanup.
11780 2013-02-14 Pedro Alves <palves@redhat.com>
11782 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11783 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11786 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11787 Hafiz Abid Qadeer <abidh@codesourcery.com>
11789 * tracepoint.h (validate_trace_state_variable_name): Declare.
11790 * tracepoint.c (validate_trace_state_variable_name): New.
11791 (trace_variable_command): Parse the trace state variable's name
11792 without using parse_expression. Do several validations.
11793 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11794 trace state variable's name with parse_expression. Validate it.
11796 2013-02-14 Yao Qi <yao@codesourcery.com>
11798 * infcmd.c (breakpoint_proceeded): Remove it.
11800 2013-02-14 Yao Qi <yao@codesourcery.com>
11802 * tracepoint.c (end_actions_pseudocommand): Make it static.
11803 (while_stepping_pseudocommand): Likewise.
11804 * tracepoint.h (end_actions_pseudocommand): Remove the
11806 (while_stepping_pseudocommand): Likewise.
11808 2013-02-14 Yao Qi <yao@codesourcery.com>
11810 * cli/cli-decode.c (help_cmd): Remove the declaration of
11812 (help_all): Likewise.
11814 2013-02-13 Pedro Alves <palves@redhat.com>
11816 * amd64-linux-nat.c (update_debug_registers_callback):
11818 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11820 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11821 i386_debug_reg_state.
11822 (amd64_linux_new_fork): New function.
11823 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11824 linux_nat_new_fork hook, and i386_forget_process as
11825 linux_nat_forget_process hook.
11826 * i386-linux-nat.c (update_debug_registers_callback):
11828 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11830 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11831 i386_debug_reg_state.
11832 (i386_linux_new_fork): New function.
11833 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11834 linux_nat_new_fork hook, and i386_forget_process as
11835 linux_nat_forget_process hook.
11836 * i386-nat.c (i386_init_dregs): Delete.
11837 (i386_inferior_data, struct i386_inferior_data):
11839 (struct i386_process_info): New.
11840 (i386_process_list): New global.
11841 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11843 (i386_inferior_data_get): Delete.
11844 (i386_process_info_get): New function.
11845 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11846 (i386_forget_process): New function.
11847 (i386_cleanup_dregs): Rewrite.
11848 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11849 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11850 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11851 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11852 to i386_debug_reg_state.
11853 (i386_use_watchpoints): Don't register inferior data.
11854 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11856 (i386_forget_process): Declare.
11857 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11858 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11859 New static globals.
11860 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11861 (add_initial_lwp): New, factored out from ...
11862 (add_lwp): ... this. Don't check the number of lwps before
11863 calling linux_nat_new_thread.
11864 (linux_nat_iterate_watchpoint_lwps): Delete.
11865 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11866 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11868 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11870 (linux_nat_kill, linux_nat_mourn_inferior): Call
11871 linux_nat_forget_process.
11872 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11873 (linux_nat_forget_process): New functions.
11874 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11876 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11877 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11879 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11880 (linux_nat_forget_process): New declarations.
11882 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11883 (amd64fbsd_mourn_inferior): New function.
11884 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11885 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11887 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11889 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11892 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11894 * aarch64-linux-nat.c (debug_reg_change_callback)
11895 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11898 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11900 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11903 2013-02-13 Pedro Alves <palves@redhat.com>
11904 Hafiz Abid Qadeer <abidh@codesourcery.com>
11906 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11908 2013-02-12 Tom Tromey <tromey@redhat.com>
11911 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11913 (classify_inner_name): Remove 'first_name' argument, add
11914 'context'. Remove unused variable.
11915 (yylex): Explicitly maintain the context type. Exit loop earlier
11916 if NAME result is seen.
11918 2013-02-12 Pedro Alves <palves@redhat.com>
11920 * amd64-darwin-tdep.c: Add (C) after Copyright.
11921 * cli/cli-cmds.h: Ditto.
11922 * cli/cli-decode.c: Ditto.
11923 * cli/cli-decode.h: Ditto.
11924 * cli/cli-dump.c: Ditto.
11925 * cli/cli-dump.h: Ditto.
11926 * cli/cli-interp.c: Ditto.
11927 * cli/cli-logging.c: Ditto.
11928 * cli/cli-script.c: Ditto.
11929 * cli/cli-script.h: Ditto.
11930 * cli/cli-setshow.c: Ditto.
11931 * cli/cli-setshow.h: Ditto.
11932 * cli/cli-utils.c: Ditto.
11933 * cli/cli-utils.h: Ditto.
11934 * config/alpha/nm-osf3.h: Ditto.
11935 * config/djgpp/djconfig.sh: Ditto.
11936 * config/i386/nm-fbsd.h: Ditto.
11937 * config/i386/nm-i386gnu.h: Ditto.
11938 * config/nm-linux.h: Ditto.
11939 * config/nm-nto.h: Ditto.
11940 * config/rs6000/nm-rs6000.h: Ditto.
11941 * config/sparc/nm-sol2.h: Ditto.
11942 * darwin-nat-info.c: Ditto.
11945 * gdb-demangle.h: Ditto.
11946 * i386-darwin-nat.c: Ditto.
11947 * i386-darwin-tdep.c: Ditto.
11948 * linux-fork.h: Ditto.
11949 * m32c-tdep.c: Ditto.
11950 * microblaze-linux-tdep.c: Ditto.
11951 * microblaze-rom.c: Ditto.
11952 * microblaze-tdep.c: Ditto.
11953 * microblaze-tdep.h: Ditto.
11954 * mips-linux-tdep.h: Ditto.
11955 * ppc-ravenscar-thread.c: Ditto.
11956 * ppc-ravenscar-thread.h: Ditto.
11957 * prologue-value.c: Ditto.
11958 * prologue-value.h: Ditto.
11959 * ravenscar-thread.c: Ditto.
11960 * ravenscar-thread.h: Ditto.
11961 * sparc-ravenscar-thread.c: Ditto.
11962 * sparc-ravenscar-thread.h: Ditto.
11963 * tilegx-linux-tdep.c: Ditto.
11964 * unwind_stop_reasons.def: Ditto.
11965 * windows-nat.h: Ditto.
11966 * xtensa-linux-tdep.c: Ditto.
11967 * xtensa-xtregs.c: Ditto.
11968 * regformats/regdat.sh: Ditto.
11969 * regformats/regdef.h: Ditto.
11971 2013-02-12 Pedro Alves <palves@redhat.com>
11973 * break-catch-sig.c: Update copyright years.
11975 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11977 Add support for a destructor for ui_out data and use it to
11978 provide a ui_out destructor.
11979 * ui-out.h: Declare the new ui_out destructor.
11980 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11981 * ui-out.c (default_data_destroy): Add a default data destructor
11982 which does nothing.
11983 (default_ui_out_impl): Set the new data_destroy field to
11984 default_data_destroy
11985 (uo_data_destroy): Local function which invokes the data
11986 destructor if present.
11987 (clear_table): Local function which clears the table data of a
11989 (ui_out_destroy): Public function which frees a ui_out object.
11990 (ui_out_table_end): Use the new clear_table function.
11991 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11993 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11996 2013-02-11 Doug Evans <dje@google.com>
11998 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11999 (printf_decfloat): New function. Broken out from ui_printf.
12000 Remove unnecessary code to shift the entire format string down.
12001 (printf_pointer): New function.
12002 (ui_printf): Code to print C strings, wide C strings, decfloats,
12003 and pointers moved to separate functions.
12005 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12007 * valops.c (value_assign): Handling bitfield offset in
12008 `lval_internalvar_component' case.
12010 2013-02-08 Doug Evans <dje@google.com>
12012 * common/format.c (parse_format_string): Fix whitespace.
12014 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12016 * stack.c (return_command): Work around uninitialized variable
12019 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12021 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12022 number of the registers from 36 to 34.
12024 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12026 * NEWS: Mention new AArch64 native and target support.
12028 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12030 * MAINTAINERS (Write After Approval): Add myself.
12032 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12033 Marcus Shawcroft <marcus.shawcroft@arm.com>
12034 Nigel Stephens <nigel.stephens@arm.com>
12035 Yufeng Zhang <yufeng.zhang@arm.com>
12037 * aarch64-linux-nat.c: New file.
12038 * config/aarch64/linux.mh: New file.
12039 * configure.host: Add AArch64.
12040 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12042 2013-02-07 Doug Evans <dje@google.com>
12044 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12045 disassemble command.
12047 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12049 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12050 set_gdbarch_fetch_tls_load_module_address.
12052 2013-02-06 David S. Miller <davem@davemloft.net>
12054 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12055 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12056 * value.c (struct_return_convention): New function.
12057 (using_struct_return): Implement in terms of struct_return_convention.
12058 * value.h (struct_return_convention): Declare.
12059 * stack.c (return_command): Allow successful overriding of the return
12060 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12062 2013-02-06 Tom Tromey <tromey@redhat.com>
12064 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12065 outside of TRY_CATCH.
12067 2013-02-06 Yao Qi <yao@codesourcery.com>
12069 * mi/mi-interp.c: Include "tracepoint.h".
12070 (mi_tsv_modified): Declare.
12071 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12072 (mi_interpreter_init): Call observer_attach_tsv_modified.
12073 (mi_tsv_modified): New.
12074 (mi_tsv_created, mi_tsv_deleted): Update.
12075 * tracepoint.c (trace_variable_command): Call
12076 observer_notify_tsv_modified if the initial value of tsv is
12078 (delete_trace_state_variable): Call
12079 observer_notify_tsv_deleted earlier.
12080 (trace_variable_command): Caller update.
12081 (create_tsv_from_upload): Likewise.
12082 * observer.sh: Declare "struct trace_state_variable".
12084 * NEWS: Mention the new MI notification "=tsv-modified".
12086 2013-02-05 Doug Evans <dje@google.com>
12088 * completer.c (location_completer): Fix typo in comment.
12090 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12092 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12095 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12097 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12098 Refactor if statement to avoid trailing || operator.
12100 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
12102 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12104 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12106 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12107 * configure.host: Add powerpc*-*-freebsd* target.
12108 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12109 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12110 * config/powerpc/fbsd.mh: New file.
12112 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12113 Denys Vlasenko <dvlasenk@redhat.com>
12114 Pedro Alves <palves@redhat.com>
12116 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12117 (struct elf_internal_linux_prpsinfo): Forward declare.
12118 * gdbarch.h, gdbarch.c: Regenerate.
12119 * linux-tdep.c: Include `cli/cli-utils.h'.
12120 (linux_fill_prpsinfo): New function.
12121 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12122 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12123 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12124 depending on gdbarch pointer bitness.
12125 * ppc-linux-tdep.c: Include elf-bfd.h.
12126 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12129 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12130 Marcus Shawcroft <marcus.shawcroft@arm.com>
12131 Nigel Stephens <nigel.stephens@arm.com>
12132 Yufeng Zhang <yufeng.zhang@arm.com>
12134 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12136 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12137 Marcus Shawcroft <marcus.shawcroft@arm.com>
12138 Nigel Stephens <nigel.stephens@arm.com>
12139 Yufeng Zhang <yufeng.zhang@arm.com>
12141 * aarch64-newlib-tdep.c: New file.
12142 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12144 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12145 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12146 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12147 * osabi.c (gdb_osabi_names): Add "Newlib".
12149 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12150 Marcus Shawcroft <marcus.shawcroft@arm.com>
12151 Nigel Stephens <nigel.stephens@arm.com>
12152 Yufeng Zhang <yufeng.zhang@arm.com>
12154 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12155 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12156 * aarch64-linux-tdep.c: New file.
12157 * aarch64-linux-tdep.h: New file.
12158 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12159 * configure.tgt: Add aarch64-none-linux-gnu.
12161 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12162 Marcus Shawcroft <marcus.shawcroft@arm.com>
12163 Nigel Stephens <nigel.stephens@arm.com>
12164 Yufeng Zhang <yufeng.zhang@arm.com>
12166 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12167 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12168 (ALLDEPFILES): Add aarch64-tdep.c.
12169 * aarch64-tdep.c: New file.
12170 * aarch64-tdep.h: New file.
12171 * configure.tgt: Add AArch64.
12172 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12173 (aarch64-expedite): New definition.
12174 * features/aarch64-core.xml: New file.
12175 * features/aarch64-fpu.xml: New file.
12176 * features/aarch64-without-fpu.c: New file (generated).
12177 * features/aarch64-without-fpu.xml: New file.
12178 * features/aarch64.c: New file (generated).
12179 * features/aarch64.xml: New file.
12180 * regformats/aarch64-without-fpu.dat: New file (generated).
12181 * regformats/aarch64.dat: New file (generated).
12183 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12185 * contrib/expect-read1.c: New file.
12186 * contrib/expect-read1.sh: New file.
12188 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12190 * dwarf2read.c (file_file_name): New function with code from
12192 (file_full_name): Move most of the code to file_file_name.
12193 (macro_start_file): Rename variable full_name to file_name and use
12194 file_file_name for it. Add comp_dir parameter to new_macro_table.
12195 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12196 macro_source_file->filename access by macro_source_fullname call.
12197 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12199 * macrotab.c (struct macro_table): New field comp_dir.
12200 (macro_include): New variables link_fullname and source_fullname.
12201 Replace any macro_source_file->filename access by macro_source_fullname
12203 (macro_lookup_inclusion): Remove the partial filenames checking code.
12204 (check_for_redefinition): New variables source_fullname and
12205 found_key_fullname. Replace any macro_source_file->filename access by
12206 macro_source_fullname call.
12207 (macro_undef): New variables source_fullname and key_fullname. Replace
12208 any macro_source_file->filename access by macro_source_fullname call.
12209 (macro_lookup_definition): New variables retval and source_fullname.
12210 Replace any macro_source_file->filename access by macro_source_fullname
12212 (foreach_macro): New variable key_fullname. Replace any
12213 macro_source_file->filename access by macro_source_fullname call.
12214 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12215 macro_source_file->filename access by macro_source_fullname call.
12216 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12217 (macro_source_fullname): New function.
12218 * macrotab.h (struct macro_source_file): Extent the filename field
12220 (new_macro_table): New parameter comp_dir, add a comment for it.
12221 (macro_source_fullname): new declaration.
12223 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12225 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12226 this_real_name to outer block. Use it also for
12227 compare_filenames_for_search.
12228 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12229 with dw2_get_real_path for file_matcher, considering also
12230 BASENAMES_MAY_DIFFER.
12231 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12233 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12235 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12236 to the file_matcher parameter. Pass 0 to it.
12237 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12238 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12239 NULL psymtab_to_fullname result.
12240 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12241 an expected filename instead.
12242 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12243 file_matcher parameter. Call also psymtab_to_fullname, after newly
12244 considering BASENAMES_MAY_DIFFER.
12245 * source.c (rewrite_source_path): Remove static.
12246 * source.h (rewrite_source_path): New declaration.
12247 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12248 the expand_symtabs_matching field. Comment it.
12249 * symtab.c (file_matches): New function comment. Add parameter
12250 basenames, implement it.
12251 (search_symbols_file_matches): Add basenames parameter. Update the
12252 file_matches caller.
12253 (search_symbols): Match FILES also against symtab_to_fullname.
12254 Optimize it for BASENAMES_MAY_DIFFER.
12256 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12258 * source.c (print_source_lines_base): Print for TUI also "fullname".
12259 * tui/tui-data.c (init_content_element): Change tui_locator_element
12260 field to full_name.
12261 * tui/tui-data.h (struct tui_locator_element): Likewise.
12262 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12263 tui_update_locator_filename calls to tui_update_locator_fullname.
12264 Replace symtab->filename refererence by symtab_to_fullname call.
12265 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12266 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12267 field to full_name. Replace symtab->filename refererence by
12268 symtab_to_fullname call.
12269 (tui_show_symtab_source): Rename parameter to fullname. Change
12270 tui_locator_element field to full_name.
12271 * tui/tui-stack.c: Include source.h.
12272 (tui_set_locator_filename): Rename the declaration to ...
12273 (tui_set_locator_fullname): ... here. Rename its parameter to
12274 fullname, updates its comment.
12275 (tui_set_locator_info): Rename its parameter to fullname.
12276 (tui_set_locator_filename): Rename the definition to ...
12277 (tui_set_locator_fullname): ... here. Rename its parameter to
12278 fullname, updates its comment. Change tui_locator_element field to
12280 (tui_set_locator_info): Rename its parameter to fullname.
12281 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12282 (tui_update_locator_filename): Rename to ...
12283 (tui_update_locator_fullname): ... here. Rename callee to
12284 tui_set_locator_fullname.
12285 (tui_show_frame_info): Replace symtab->filename refererence by
12286 symtab_to_fullname call.
12287 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12288 (tui_update_locator_fullname): ... here.
12289 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12290 tui_update_locator_fullname. Replace symtab->filename refererence by
12291 symtab_to_fullname call.
12292 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12293 Rename the callee to tui_update_locator_fullname.
12294 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12296 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12298 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12299 by symtab_to_filename_for_display calls.
12300 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12301 (clear_command): New variable sal_fullname, initialize it. Replace
12302 compare_filenames_for_search by filename_cmp with sal_fullname.
12303 (say_where, update_static_tracepoint): Replace symtab->filename
12304 refererences by symtab_to_filename_for_display calls.
12305 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12307 * dwarf2read.c: Include source.h.
12308 (fixup_go_packaging): Replace symtab->filename refererences by
12309 symtab_to_filename_for_display calls.
12310 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12311 Replace symtab->filename refererences by symtab_to_filename_for_display
12313 (create_sals_line_offset, convert_linespec_to_sals): New variable
12314 fullname, initialize it, replace symtab->filename reference by the
12316 * linux-fork.c: Include source.h.
12317 (info_checkpoints_command): Replace symtab->filename refererences by
12318 symtab_to_filename_for_display calls.
12319 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12320 by symtab_to_filename_for_display calls.
12321 * mdebugread.c: Include source.h.
12322 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12323 symtab_to_filename_for_display calls.
12324 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12325 (mi_cmd_file_list_exec_source_files): Likewise.
12326 * printcmd.c: Include source.h.
12327 (build_address_symbolic): Replace symtab->filename refererences by
12328 symtab_to_filename_for_display calls.
12329 * psymtab.c (partial_map_symtabs_matching_filename)
12330 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12331 with psymtab_to_fullname.
12332 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12333 by symtab_to_filename_for_display calls.
12334 (stpy_get_filename): New variable filename, initialize it, use instead
12335 of symtab->filename refererences.
12336 (salpy_str): Make variable filename const char *. Replace
12337 symtab->filename refererences by symtab_to_filename_for_display calls.
12338 * skip.c: Include source.h and filenames.h.
12339 (skip_file_command): Remove const from the symtab variable. Replace
12340 symtab->filename refererences by symtab_to_fullname call.
12341 (function_name_is_marked_for_skip): New variables searched_for_fullname
12342 and fullname. Use them to search also with symtab's fullname.
12343 * source.c (find_source_lines): Replace symtab->filename refererences
12344 by symtab_to_filename_for_display calls.
12345 (print_source_lines_base): New variable filename, use it instead of
12346 symtab->filename. Replace symtab->filename refererences by
12347 symtab_to_filename_for_display calls.
12348 (line_info, forward_search_command): Replace symtab->filename
12349 refererences by symtab_to_filename_for_display calls.
12350 (reverse_search_command): Replace symtab->filename refererences by
12351 symtab_to_filename_for_display calls. New variable filename for it.
12352 * stack.c (frame_info): Likewise.
12353 * symmisc.c: Include source.h.
12354 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12355 (maintenance_info_symtabs): Replace symtab->filename refererences by
12356 symtab_to_filename_for_display calls.
12357 * symtab.c (iterate_over_some_symtabs): Call
12358 compare_filenames_for_search also with symtab_to_fullname.
12359 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12360 symtab->filename refererences by symtab_to_filename_for_display calls.
12361 (find_line_symtab): Replace symtab->filename refererences by
12362 symtab_to_filename_for_display calls.
12363 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12364 (print_symbol_info): Make the last parameter const char *. New
12365 variable s_filename. Use it in the function.
12366 (symtab_symbol_info): Make the last_filename variable const char *.
12367 Replace symtab->filename refererences by symtab_to_filename_for_display
12369 (rbreak_command): New variable fullname. Use it. Replace
12370 symtab->filename refererence by symtab_to_filename_for_display call.
12371 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12372 (print_one_static_tracepoint_marker): Replace symtab->filename
12373 refererences by symtab_to_filename_for_display calls.
12374 * tui/tui-source.c (tui_set_source_content): New variables filename and
12375 s_filename. Replace symtab->filename refererences by this variable.
12376 Replace other symtab->filename refererences by
12377 symtab_to_filename_for_display calls.
12379 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12380 Jan Kratochvil <jan.kratochvil@redhat.com>
12382 Add a new variable that controls a way in which filenames are
12384 * NEWS (set filename-display): New entry.
12385 * source.c (filename_display_basename, filename_display_relative)
12386 (filename_display_absolute, filename_display_kind_names)
12387 (filename_display_string, show_filename_display_string)
12388 (symtab_to_filename_for_display): New.
12389 (_initialize_source): Added initialization of 'filename-display'
12391 * source.h (symtab_to_filename_for_display): Added declaration.
12392 * stack.c (print_frame): Added new variable and calling of a new
12393 function and condition with this variable. Changed third argument of
12394 calling of a function.
12396 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12398 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12399 Rename field reference filename to fullname.
12400 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12401 fullname. New comment for it.
12402 * tui/tui-source.c (tui_set_source_content): Rename field reference
12403 filename to fullname. Initialize field by symtab_to_fullname now.
12404 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12405 reference filename to fullname. Use symtab_to_fullname during
12408 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12411 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12412 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12413 filename to fullname. Rename variable this_name to this_fullname.
12414 Lowercase FILENAME_CMP call.
12415 (dw2_find_symbol_file): New comment for the returned string.
12416 (dwarf2_gdb_index_functions): Rename the function to
12417 dw2_expand_symtabs_with_fullname.
12418 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12419 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12421 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12422 * symfile.h (struct quick_symbol_functions): Rename field
12423 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12424 parameter filename to fullname. Document returned string meaning for
12426 * symtab.c (find_line_symtab): Rename the called function to
12427 expand_symtabs_with_fullname.
12429 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12432 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12433 call of filename_cmp with compare_filenames_for_search.
12434 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12435 is_abs, unify the call of FILENAME_CMP with
12436 compare_filenames_for_search. New gdb_asserts for real_path and name.
12437 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12438 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12439 * symfile.h (struct quick_symbol_functions): Extend the comment for
12440 map_symtabs_matching_filename.
12441 * symtab.c (compare_filenames_for_search): Remove the function comment
12442 relative path requirement. Handle absolute filenames, with a comment.
12443 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12444 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12445 real_path and name. Unify the call of compare_filenames_for_search
12447 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12449 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12452 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12453 source_file references by symtab field references. Remove variables
12455 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12456 (clear_command, say_where): Replace bp_location field source_file
12457 references by symtab field references.
12458 (bp_location_dtor): Remove the source_file reference.
12459 (update_static_tracepoint): Replace bp_location field source_file
12460 references by symtab field references.
12461 (breakpoint_free_objfile): New function.
12462 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12463 Replace the field source_file by field symtab, extend its comment.
12464 (breakpoint_free_objfile): New declaration.
12465 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12466 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12467 field source_file references by symtab field references.
12469 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12471 Replace xfullpath calls by gdb_realpath calls.
12472 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12474 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12475 Remove it from the iterate_over_some_symtabs call.
12476 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12477 Remove it from the dw2_map_expand_apply calls, remove a block handling
12479 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12480 Remove it from the iterate_over_some_symtabs call.
12481 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12482 Remove it from the partial_map_expand_apply calls, remove a block
12483 handling it. Drop gdb_realpath call and cleanups from the real_path
12485 * source.c (openp): Drop the comment part about xfullpath. Replace
12486 xfullpath calls by gdb_realpath calls.
12487 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12488 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12489 from method map_symtabs_matching_filename and its comment.
12490 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12492 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12493 remove it also from the function comment, remove a block handling it.
12494 Drop gdb_realpath call and cleanups from the real_path handling.
12495 (iterate_over_symtabs): Drop variable full_path and its use.
12496 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12497 * utils.c (xfullpath): Remove.
12498 * utils.h (xfullpath): Remove.
12500 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12502 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12503 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12504 (ALLDEPFILES): Add ppc64-tdep.c.
12505 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12506 ppc64-tdep.o to gdb_target_obs.
12507 * ppc64-tdep.h: New file.
12508 * ppc64-tdep.c: New file.
12509 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12510 ppc-linux-tdep.c to here.
12511 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12512 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12513 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12514 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12515 from ppc-linux-tdep.c to here.
12516 (ppc64_convert_from_func_ptr_addr): Rename from
12517 ppc64_linux_convert_from_func_ptr_addr to
12518 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12521 (read_insn): Move from ppc-linux-tdep.c to here.
12522 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12523 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12524 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12525 Removed above functions.
12526 (ppc_linux_init_abi): Adjust.
12528 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12530 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12532 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12534 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12536 2013-02-01 Pedro Alves <palves@redhat.com>
12538 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12539 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12541 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12543 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12544 files with no separate debug info.
12545 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12546 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12547 only for files with no separate debug info.
12549 2013-01-31 Tom Tromey <tromey@redhat.com>
12551 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12553 (struct jit_program_space_data): Rename from jit_inferior_data.
12555 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12556 Change return type. Attach data to program space.
12557 (jit_program_space_data_cleanup): Rename from
12558 jit_inferior_data_cleanup; change argument type.
12559 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12561 (jit_register_code): Update.
12562 (jit_update_inferior_cache): Remove.
12563 (jit_breakpoint_deleted): Get jit data from the location's program
12565 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12566 'ps_data', change type.
12567 (jit_inferior_init, jit_breakpoint_re_set_internal)
12568 (jit_event_handler): Update.
12569 (free_objfile_data): Get data from objfile's program space.
12570 (_initialize_jit): Update.
12572 2013-01-31 Tom Tromey <tromey@redhat.com>
12575 * jit.c (struct jit_inferior_data) <cached_code_address,
12576 jit_breakpoint>: New fields.
12577 (jit_breakpoint_re_set_internal): Fix logging. Only create
12578 breakpoint if cached address has changed.
12579 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12581 (_initialize_jit): Register breakpoint deleted observer.
12583 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12585 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12586 (save_infcall_suspend_state): Ifdef out unused inf.
12587 (restore_infcall_suspend_state): Ifdef out unused inf.
12588 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12589 (jit_frame_sniffer): Remove unused inf_data.
12591 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12593 * c-exp.y (classify_inner_name): Remove unused type.
12594 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12595 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12597 (c_get_string): Remove unused kind.
12598 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12600 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12602 * charset.c (intermediate_encoding): Remove unused i.
12603 * completer.c (signal_completer): Remove unused i.
12604 * continuations.c (discard_my_continuations_1): Remove unused
12606 * corelow.c (core_close): Remove unuseD name.
12607 (get_core_siginfo): Remove unused pid.
12608 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12610 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12611 (loclist_describe_location): Remove unused first.
12612 * event-top.c (command_line_handler): Remove unused got_eof.
12613 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12614 (resize_section_table): Remove unused old_value.
12615 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12616 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12617 * i386-tdep.c (i386_process_record): Remove unused rex.
12618 * infcmd.c (get_return_value): Remove unused uiout.
12619 * jv-lang.c (type_from_class): Remove unused is_array.
12620 * jv-valprint.c (java_val_print): Remove unused i.
12621 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12622 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12623 * m2-typeprint.c (m2_print_type): Remove unused code.
12624 * macroexp.c (get_character_constant): Remove unused body_start.
12625 (macro_stringify): Remove unused result.
12626 * objc-lang.c (find_methods): Remove unused gdbarch.
12627 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12628 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12629 * stack.c (print_frame_args): Remove unused summary.
12630 * thread.c (thread_apply_command): Remove unused p.
12631 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12632 * valops.c (search_struct_method): Remove unused skip.
12633 * valprint.c (generic_val_print): Remove unused byte_order.
12634 * varobj.c (varobj_update): Remove unused changed.
12635 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12636 (alias_command): Remove unused c.
12637 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12638 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12640 (mi_cmd_data_write_memory): Remove unused word_format.
12641 (mi_cmd_data_write_memory_bytes): Remove unused r.
12642 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12644 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12645 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12648 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12650 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12651 * symtab.c (iterate_over_symtabs): Remove unused s.
12652 (find_pc_sect_symtab): Remove unused pspAce.
12653 (find_pc_sect_line): Remove unused alt_symtab.
12654 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12655 (completion_list_add_name): Remove unused newsize.
12657 2013-01-31 Tom Tromey <tromey@redhat.com>
12660 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12663 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12665 * target.c (target_read_string): Remove unused origlen.
12667 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12669 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12670 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12671 * ax-general.c (ax_print): Remove unused is_float.
12672 * blockframe.c (block_innermost_frame): Remove unused start, end.
12673 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12675 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12677 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12678 (svr4_read_so_list): Remove unused lmo.
12679 * solib-target.c (solib_target_relocate_section_addresses): Remove
12682 2013-01-30 Tom Tromey <tromey@redhat.com>
12684 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12686 2013-01-30 Tom Tromey <tromey@redhat.com>
12688 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12689 * utils.c (gnu_debuglink_crc32): Remove.
12690 * utils.h (gnu_debuglink_crc32): Don't declare.
12692 2013-01-30 Tom Tromey <tromey@redhat.com>
12694 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12695 (read_structure_type, read_enumeration_type): Remove cast.
12697 2013-01-30 Tom Tromey <tromey@redhat.com>
12699 * dwarf2read.c (read_namespace_type): Remove cast.
12700 (read_typedef): Likewise.
12702 2013-01-29 Tom Tromey <tromey@redhat.com>
12704 * dwarf2read.c (free_dwo_file): Remove assert.
12706 2013-01-29 Tom Tromey <tromey@redhat.com>
12708 * value.c (deprecated_set_value_modifiable): Remove.
12709 * value.h (deprecated_set_value_modifiable): Remove.
12711 2013-01-28 Doug Evans <dje@google.com>
12713 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12714 to addresses from dwo files.
12716 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12718 * valops.c (find_overload_match): Remove unused argument 'lax'.
12719 * value.h: Remove unused argument 'lax' from the declaration of
12720 find_overload_match.
12721 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12722 to find_overload_match.
12723 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12724 argument to find_overload_match.
12726 2013-01-25 Tom Tromey <tromey@redhat.com>
12728 * dwarf2read.c (processing_has_namespace_info): Remove.
12729 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12730 (process_die, read_func_scope, dwarf2_start_symtab)
12731 (new_symbol_full): Update.
12733 2013-01-25 Tom Tromey <tromey@redhat.com>
12735 * cp-namespace.c (cp_set_block_scope): Remove.
12736 * cp-support.h (cp_set_block_scope): Remove.
12737 * dbxread.c: Include block.h.
12738 (cp_set_block_scope): New function.
12739 (process_one_symbol): Update.
12740 * dwarf2read.c (read_func_scope): Use block_set_scope.
12742 2013-01-25 Pedro Alves <palves@redhat.com>
12744 * remote.c (add_current_inferior_and_thread): Tweak comment.
12746 2013-01-25 Tom Tromey <tromey@redhat.com>
12748 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12749 (cp_add_using_directive): Add 'copy_names' argument.
12750 * cp-support.h (cp_add_using_directive): Update.
12751 (struct using_direct) <import_src, import_dest, alias,
12752 declaration>: Now const.
12753 * dwarf2read.c (read_import_statement): Use obconcat.
12754 Don't copy names passed to cp_add_using_directive.
12756 2013-01-25 Tom Tromey <tromey@redhat.com>
12758 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12760 2013-01-25 Pedro Alves <palves@redhat.com>
12762 * remote.c (stop_reply_extract_thread): New.
12763 (add_current_inferior_and_thread): New parameter 'wait_status'.
12765 (remote_start_remote): Pass wait status to
12766 add_current_inferior_and_thread.
12767 (extended_remote_run): Update comment.
12768 (extended_remote_create_inferior_1): Pass wait status to
12769 add_current_inferior_and_thread.
12771 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12772 Ulrich Weigand <uweigand@de.ibm.com>
12774 * valarith.c (value_vector_widen): New function for replicating a
12775 scalar into a vector.
12776 (value_binop): Use value_vector_widen to widen scalar to vector
12777 rather than casting, this better matches gcc C behaviour.
12778 * valops.c (value_casst): Update logic for casting between vector
12779 types, and for casting from scalar to vector, try to match gcc C
12781 * value.h (value_vector_widen): Declare.
12782 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12783 function, handle special case for casting scalar to vector.
12784 (opencl_relop): Use opencl_value_cast.
12785 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12786 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12787 in order to use opencl_value_cast.
12789 2013-01-25 Yao Qi <yao@codesourcery.com>
12791 * event-loop.c: Include "queue.h".
12792 (gdb_event_p): New typedef.
12793 (DECLARE_QUEUE_P): Use.
12794 (DEFINE_QUEUE_P): Use.
12795 (async_queue_event): Remove.
12796 (gdb_event_xfree): New.
12797 (initialize_event_loop): New.
12798 (process_event): Use QUEUE macros.
12799 (event_queue): Remove.
12800 (gdb_wait_for_event): Caller update.
12801 (check_async_event_handlers): Likewise.
12802 (poll_timers): Likewise.
12803 * event-loop.h (initialize_event_loop): Declare.
12804 * event-loop.c (gdb_event_xfree): New.
12805 * top.c (gdb_init): Call initialize_event_loop.
12807 2013-01-25 Yao Qi <yao@codesourcery.com>
12809 * event-loop.c (async_queue_event): Remove one parameter
12810 'position'. Remove code handling 'position' == TAIL.
12811 (gdb_wait_for_event): Caller update.
12812 (check_async_event_handlers): Caller update.
12813 (poll_timers): Caller update.
12814 * event-loop.h (enum queue_position): Remove.
12816 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12818 * MAINTAINERS: Update my email.
12820 2013-01-25 Yao Qi <yao@codesourcery.com>
12822 * main.c (print_gdb_help): Remove "--epoch" from the help
12825 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12827 * symtab.c (skip_prologue_using_sal): Consider a file
12828 change the same as an increased line number
12830 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12832 * MAINTAINERS (Write After Approval): Add myself to the list.
12834 2013-01-24 Tom Tromey <tromey@redhat.com>
12836 * ada-lang.h (ada_decode_symbol): Make return type const.
12837 * ada-lang.c (ada_decode_symbol): Likewise.
12839 2013-01-23 Doug Evans <dje@google.com>
12841 * linespec.c (find_linespec_symbols): Make static.
12843 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12845 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12846 type on float conversion for complex type.
12848 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12850 Add a new class gdb.Architecture which exposes GDB's
12851 internal representation of architecture via GDB Python API.
12852 * Makefile.in: Add entries corresponding to the new file
12854 * NEWS (Python Scripting): Add entries for the new class
12855 gdb.Architecture and the new method gdb.Frame.architecture.
12856 * python/py-arch.c: Implement gdb.Architecture class.
12857 * python/py-frame.c (frapy_arch): Implement the method
12858 gdb.Frame.architecture().
12859 (frame_object_methods): Add 'architecture' to the method table.
12860 * python/python-internal.h: Add declarations of new utility
12862 * python/python.c (_initialize_python): Initialize
12863 gdb.Architecture class.
12865 2013-01-23 Doug Evans <dje@google.com>
12867 Work around binutils/15021.
12868 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12869 type_unit_group out of union s. All uses updated.
12870 (read_index_from_section): Watch for index version 8.
12871 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12872 an imported symtab.
12873 (write_psymtabs_to_index): Increment version number to 8.
12875 2013-01-22 Pedro Alves <palves@redhat.com>
12877 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12880 2013-01-22 Pedro Alves <palves@redhat.com>
12882 * annotate.c (annotate_breakpoints_changed): Rename to ...
12883 (annotate_breakpoints_invalid): ... this. Make static.
12884 (breakpoint_changed): Adjust.
12885 (_initialize_annotate): Always install the observers. Install a
12886 "breakpoint_created" observer.
12887 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12888 * breakpoint.c (set_breakpoint_condition)
12889 (breakpoint_set_commands, do_map_commands_command)
12890 (init_raw_breakpoint, clear_command, set_ignore_count)
12891 (enable_breakpoint_disp): No longer call
12892 annotate_breakpoints_changed.
12894 2013-01-22 Pedro Alves <palves@redhat.com>
12896 * annotate.c: Include "inferior.h".
12897 (frames_invalid_emitted)
12898 (breakpoints_invalid_emitted): New globals.
12899 (async_background_execution_p): New function.
12900 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12901 emitting the annotation if it has already been emitted.
12902 (annotate_display_prompt): New function.
12903 * annotate.h (annotate_display_prompt): New declaration.
12904 * event-top.c: Include annotate.h.
12905 (display_gdb_prompt): Call annotate_display_prompt.
12907 2013-01-22 Pedro Alves <palves@redhat.com>
12909 * annotate.c (ignore_count_changed): Delete.
12910 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12911 (annotate_ignore_count_change): Delete.
12912 (annotate_stopped): Don't emit a delayed breakpoints-changed
12914 * annotate.h (annotate_ignore_count_change): Delete.
12915 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12916 annotate_ignore_count_change.
12918 2013-01-22 Tom Tromey <tromey@redhat.com>
12920 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12921 require_rvalue for a register location.
12923 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12925 * breakpoint.c (print_one_breakpoint_location): Add MI
12926 field 'thread-groups' when printing a breakpoint.
12927 (output_thread_groups): New function.
12929 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12931 * python/lib/gdb/commands/explore.py
12932 (CompoundExplorer.explore_expr): Correct the name of a method
12934 (ExploreTypeCommand.invoke): Add a missing 'return'.
12936 2013-01-21 Tom Tromey <tromey@redhat.com>
12938 * gdb_obstack.h (obconcat): Move declaration here, from...
12939 * symfile.h (obconcat): ... here.
12940 * gdb_obstack.c: New file.
12941 (obconcat): Move from...
12942 * symfile.c (obconcat): ... here.
12943 * Makefile.in (SFILES): Add gdb_obstack.c.
12944 (COMMON_OBS): Add gdb_obstack.o.
12946 2013-01-21 Tom Tromey <tromey@redhat.com>
12948 * symfile.h (obsavestring): Don't declare.
12949 * symfile.c (obsavestring): Remove.
12950 * ada-exp.y: Use obstack_copy0, not obsavestring.
12951 * ada-lang.c: Use obstack_copy0, not obsavestring.
12952 * coffread.c: Use obstack_copy0, not obsavestring.
12953 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12954 * dbxread.c: Use obstack_copy0, not obsavestring.
12955 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12956 * jit.c: Use obstack_copy0, not obsavestring.
12957 * mdebugread.c: Use obstack_copy0, not obsavestring.
12958 * psymtab.c: Use obstack_copy0, not obsavestring.
12959 * stabsread.c: Use obstack_copy0, not obsavestring.
12960 * xcoffread.c: Use obstack_copy0, not obsavestring.
12962 2013-01-21 Tom Tromey <tromey@redhat.com>
12964 * dwarf2read.c (fixup_go_packaging): Save package name
12965 on objfile obstack.
12966 * gdbtypes.c (init_type): Don't copy name.
12968 2013-01-21 Tom Tromey <tromey@redhat.com>
12970 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12972 (struct attribute) <u.str>: Now const.
12973 (struct fnfieldlist) <name>: Now const.
12974 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12975 (partial_die_parent_scope): Make return type const.
12976 (partial_die_full_name, add_partial_symbol): Update.
12977 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12979 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12980 (read_file_scope, read_func_scope, dwarf2_add_field)
12981 (dwarf2_add_member_fn, read_structure_type)
12982 (process_enumeration_scope, read_array_type, read_module_type)
12983 (read_base_type, read_subrange_type): Update.
12984 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12985 (new_symbol_full, guess_full_die_structure_name): Update.
12986 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12987 (dwarf2_name): Return const type.
12988 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12991 2013-01-21 Tom Tromey <tromey@redhat.com>
12993 * gdbtypes.c (init_type): Make 'name' const.
12994 * gdbtypes.h (init_type): Update.
12996 2013-01-21 Tom Tromey <tromey@redhat.com>
12998 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12999 (start_symtab): Make 'name' and 'dirname' const. Use
13000 set_last_source_file.
13001 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13002 (last_source_file): Define. Now static.
13003 (set_last_source_file, get_last_source_file): New functions.
13004 * buildsym.h (last_source_file): Don't declare.
13005 (start_symtab): Update.
13006 (set_last_source_file, get_last_source_file): Declare.
13007 * coffread.c (complete_symtab): Use set_last_source_file.
13008 (coff_end_symtab): Likewise.
13009 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13010 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13011 set_last_source_file.
13012 (process_one_symbol): Use get_last_source_file.
13013 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13014 (psymtab_to_symtab_1): Use get_last_source_file.
13015 * xcoffread.c (process_linenos): Use get_last_source_file.
13016 (complete_symtab): Use set_last_source_file.
13017 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13018 (scan_xcoff_symtab): Use set_last_source_file.
13020 2013-01-21 Tom Tromey <tromey@redhat.com>
13022 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13023 (symbol_set_names): Remove casts. Handle field const-ness.
13025 2013-01-21 Tom Tromey <tromey@redhat.com>
13027 * dwarf2read.c (new_symbol_full): Remove cast.
13028 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13029 * symtab.h (symbol_set_demangled_name): Update.
13031 2013-01-21 Tom Tromey <tromey@redhat.com>
13033 * main.c (captured_main): Call bfd_init.
13035 2013-01-21 Tom Tromey <tromey@redhat.com>
13037 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13038 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13039 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13042 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13044 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13046 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13048 Fix gdb.fortran/common-block.exp crash in PIE mode.
13049 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13051 * f-valprint.c (info_common_command_for_block): Expect
13052 LOC_COMMON_BLOCK in gdb_assert.
13053 * symtab.h (struct general_symbol_info): Update comment for the
13054 common_block member.
13055 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13056 (enum address_class): New member LOC_COMMON_BLOCK.
13058 2013-01-18 David Blaikie <dblaikie@gmail.com>
13060 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13062 2013-01-18 Tom Tromey <tromey@redhat.com>
13065 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13066 Call require_rvalue.
13068 2013-01-18 Yao Qi <yao@codesourcery.com>
13070 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13071 (dbx_read_symtab): New declaration.
13072 (dbx_psymtab_to_symtab): Delete.
13073 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13074 Rename parameter PST to SELF. Exchanged two parameters.
13075 (start_psymtab): Caller update.
13076 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13077 (dwarf2_read_symtab): New declaration.
13078 (dwarf2_psymtab_to_symtab): Delete.
13079 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13080 Rename parameter PST to SELF. Exchanged two parameters.
13081 (create_partial_symtab): Caller update.
13082 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13083 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13084 Rename parameter PST to SELF. Exchanged two parameters.
13085 (parse_partial_symbols, new_psymtab): Caller update.
13086 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13088 * psymtab.c (psymtab_to_symtab): Caller update.
13089 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13090 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13091 Rename parameter PST to SELF. Exchanged two parameters.
13092 (xcoff_start_psymtab): Caller update.
13094 2013-01-18 Yao Qi <yao@codesourcery.com>
13096 * infrun.c (proceed): Rename local variable 'oneproc' to
13099 2013-01-17 Doug Evans <dje@google.com>
13101 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13102 (dw2_build_type_unit_groups): Delete. All uses updated.
13104 * symtab.h (struct symbol_search): Add comment.
13106 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13108 * symtab.c (compare_filenames_for_search): New comment for
13111 2013-01-17 Tom Tromey <tromey@redhat.com>
13113 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13115 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13117 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13118 initialize it by existing make_cleanup. Call new do_cleanups.
13120 2013-01-17 Tom Tromey <tromey@redhat.com>
13122 * cp-abi.c (cp_abi_completer): New function.
13123 (_initialize_cp_abi): Set completer for "set cp-abi".
13125 2013-01-17 Tom Tromey <tromey@redhat.com>
13127 * mem-break.c: Remove obsolete comment.
13128 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13130 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13132 * jit.c (jit_reader_load_command): Interpret the jit reader name
13133 as an absolute path if it begins with a forward slash.
13135 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13139 * jit.c (finalize_symtab): Ensure that only the global block has a
13142 2013-01-17 Pedro Alves <palves@redhat.com>
13144 * acinclude.m4: Include ../config/plugins.m4,
13145 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13146 * Makefile.in (aclocal_m4_deps): Update.
13147 * aclocal.m4: Renegerate.
13149 2013-01-16 Doug Evans <dje@google.com>
13151 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13153 2013-01-16 Pedro Alves <palves@redhat.com>
13154 Tom Tromey <tromey@redhat.com>
13157 * NEWS: Add "catch signal".
13158 * breakpoint.c (base_breakpoint_ops): No longer static.
13159 (bpstat_explains_signal): New function.
13160 (init_catchpoint): No longer static.
13161 (base_breakpoint_explains_signal): New function.
13162 (base_breakpoint_ops): Initialize new field.
13163 * breakpoint.h (enum bpstat_signal_value): New.
13164 (struct breakpoint_ops) <explains_signal>: New field.
13165 (bpstat_explains_signal): Remove macro, declare as function.
13166 (base_breakpoint_ops, init_catchpoint): Declare.
13167 * break-catch-sig.c: New file.
13168 * inferior.h (signal_catch_update): Declare.
13169 * infrun.c (signal_catch): New global.
13170 (handle_syscall_event): Update for change to
13171 bpstat_explains_signal.
13172 (handle_inferior_event): Likewise. Always handle random signals
13174 (signal_cache_update): Check signal_catch.
13175 (signal_catch_update): New function.
13176 (_initialize_infrun): Initialize signal_catch.
13177 * Makefile.in (SFILES): Add break-catch-sig.c.
13178 (COMMON_OBS): Add break-catch-sig.o.
13180 2013-01-16 Tom Tromey <tromey@redhat.com>
13182 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13183 (print_one_catch_solib, print_one_catch_syscall)
13184 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13187 2013-01-16 Yao Qi <yao@codesourcery.com>
13189 * printcmd.c (current_display_number): Make it static.
13191 2013-01-16 Yao Qi <yao@codesourcery.com>
13193 * infcmd.c (step_once): Don't check '!single_inst' as it was
13196 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13198 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13200 2013-01-14 Tom Tromey <tromey@redhat.com>
13202 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13204 * command.h (add_setshow_string_noescape_cmd): Update.
13205 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13206 (complete_set_gnutarget): New function.
13207 (_initialize_core): Set the "set gnutarget" completer.
13209 2013-01-14 Tom Tromey <tromey@redhat.com>
13212 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13213 (c_type_print_modifier): Likewise.
13214 * dwarf2read.c (read_tag_restrict_type): New function.
13215 (read_type_die_1): Handle DW_TAG_restrict_type.
13216 * gdbtypes.c (make_restrict_type): New function.
13217 (recursive_dump_type): Handle TYPE_RESTRICT.
13218 * gdbtypes.h (enum type_flag_values): Renumber.
13219 (enum type_instance_flag_value): Add
13220 TYPE_INSTANCE_FLAG_RESTRICT.
13221 (TYPE_RESTRICT): New macro.
13222 (make_restrict_type): Declare.
13224 2013-01-14 Tom Tromey <tromey@redhat.com>
13227 * psymtab.c (struct psymtab_state): New.
13228 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13230 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13231 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13233 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13234 Pedro Alves <palves@redhat.com>
13238 * remote.c (remote_threads_info): Make a copy of the reply from
13239 qfThreadInfo and use that instead of rs->buf.
13241 2013-01-14 Yao Qi <yao@codesourcery.com>
13243 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13244 (dbx_psymtab_to_symtab): Likewise.
13245 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13246 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13247 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13249 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13251 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13252 make_cleanup_restore_current_language. Call set_language. Move
13253 OLD_CHAIN and INNER_CHAIN cleanups.
13254 * utils.c (do_restore_current_language)
13255 (make_cleanup_restore_current_language): New functions.
13256 * utils.h (make_cleanup_restore_current_language): New declaration.
13258 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13260 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13261 non-existing files.
13263 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13264 non-existing files if FILENAME is already absolute.
13266 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13268 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13269 fputs_filtered. Append trailing newline.
13271 2013-01-11 Yao Qi <yao@codesourcery.com>
13272 Stan Shebs <stan@codesourcery.com>
13274 * psymtab.c (init_psymbol_list): Clarify the comment.
13276 2013-01-11 Yao Qi <yao@codesourcery.com>
13278 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13279 (update_dprintf_command_list): Assert that 'printf_line' is
13280 non-null. Remove condition check.
13282 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13285 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13287 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13289 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13291 2013-01-09 Anthony Green <green@moxielogic.com>
13293 * cp-abi.c (cplus_print_vtable): Don't return value from void
13295 * ada-lang.c (re_set_catch_assert): Ditto.
13297 2013-01-09 Doug Evans <dje@google.com>
13299 * symfile.h (quick_symbol_functions): Delete member
13300 pre_expand_symtabs_matching. All uses removed.
13301 * dwarf2read.c (dw2_lookup_symbol): Implement.
13302 (dw2_do_expand_symtabs_matching): Delete.
13303 (dw2_pre_expand_symtabs_matching): Delete.
13304 (struct dw2_symtab_iterator): New type.
13305 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13306 (dw2_expand_symtabs_for_function): Rewrite.
13307 (dwarf2_gdb_index_functions): Update.
13308 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13309 (psym_functions): Update.
13311 2013-01-09 Tom Tromey <tromey@redhat.com>
13313 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13314 * configure: Rebuild.
13315 * configure.ac: Add somread.o to the build if BFD has SOM
13317 * somread.c: Include som/aout.h, not syms.h.
13318 (som_symtab_read): Use som_external_symbol_dictionary_record.
13319 Unpack records manually.
13320 (_initialize_somread): Declare.
13322 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13324 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13325 Cast return_address to 64bits.
13327 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13329 * printcmd.c: Remove define of function output_command.
13330 * tracepoint.c: Remove extern of function output_command.
13331 * valprint.h: (output_command): New extern.
13333 2013-01-07 Tom Tromey <tromey@redhat.com>
13335 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13337 (objc_language_defn): Use c_printchar, c_printstr,
13340 2013-01-07 Tom Tromey <tromey@redhat.com>
13344 * ada-valprint.c (printstr, print_field_values): Remove
13346 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13348 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13350 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13351 * main.c (captured_main): Remove "epoch" argument.
13352 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13353 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13354 * p-valprint.c (pascal_object_print_value_fields): Remove
13356 * printcmd.c (print_command_1): Remove 'inspect' argument.
13357 (print_command, call_command): Update.
13358 (inspect_command): Remove.
13359 (_initialize_printcmd): Make "inspect" an alias for "print".
13360 * top.c (epoch_interface): Remove.
13361 * top.h (epoch_interface): Remove.
13362 * valprint.c (user_print_options): Update.
13363 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13364 * valprint.h (struct value_print_options) <inspect_it>: Remove
13367 2013-01-04 Tom Tromey <tromey@redhat.com>
13369 * valprint.h (read_string): Add 'extern'.
13371 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13373 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13374 used to decide whether to define darwin_read_dyld_info or not.
13376 2013-01-03 Pierre Muller <muller@sourceware.org>
13378 * main.c (relocate_gdb_directory): Avoid calling stat function
13381 2013-01-03 Yao Qi <yao@codesourcery.com>
13383 * psymtab.c (fixup_psymbol_section): Update declaration.
13384 (fixup_psymbol_section): Remove code returning value.
13386 2013-01-03 Yao Qi <yao@codesourcery.com>
13388 * symtab.h: Remove some out of date comments.
13389 (enum exception_event_kind): Move it ...
13390 * breakpoint.c: ... here.
13392 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13395 * darwin-nat.c (darwin_read_dyld_info): Only build if
13396 TASK_DYLD_INFO_COUNT is defined.
13397 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13398 TASK_DYLD_INFO_COUNT is defined.
13400 2013-01-02 Tom Tromey <tromey@redhat.com>
13402 * symfile.h (struct ecoff_debug_hack): Remove.
13403 * objfiles.c: Don't include mdebugread.h.
13405 2013-01-02 Tom Tromey <tromey@redhat.com>
13407 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13408 * configure.ac: Check for Mach-O support in BFD. Update
13410 * configure: Rebuild.
13412 2013-01-02 Tom Tromey <tromey@redhat.com>
13414 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13415 * configure.ac: Use GDB_AC_CHECK_BFD.
13416 * configure: Rebuild.
13418 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13420 * MAINTAINERS: Update my email.
13422 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13424 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13426 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13428 * rs6000-nat.c (bss_data_overlap): New function.
13429 (vmap_symtab): Use it to adjust the .bss section's offset.
13431 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13433 Update year range in copyright notice of all files.
13435 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13437 * top.c (print_gdb_version): Update copyright year.
13439 For older changes see ChangeLog-2012.
13445 version-control: never