1 2013-12-23 Sterling Augustine <saugustine@google.com>
3 * linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol
6 2013-12-23 Sergio Durigan JUnior <sergiodj@redhat.com>
8 * stap-probe.c (struct stap_probe) <args_parsed>: Add comment.
9 (stap_is_generic_prefix): Delete extra brackets. Reindent.
10 (stap_parse_register_operand): Remove spurious newlines. Simplify
11 code to parse special token.
12 (stap_parse_argument_conditionally): Add gdb_assert.
13 (stap_parse_argument_1): Likewise. Explicitly check for NULL and
15 (stap_parse_probe_arguments): Likewise.
16 (handle_stap_probe): Likewise. Reindent code.
17 (get_stap_base_address): Explicitly check for NULL.
18 (stap_get_probes): Likewise. Reindent code.
19 (stap_relocate): Explicitly check for 0.
20 (stap_gen_info_probes_table_values): Likewise.
22 2013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
24 * nios2-linux-tdep.c (nios2_linux_sigreturn_init): Remove.
25 (nios2_linux_sigreturn_tramp_frame): Remove.
26 (nios2_linux_rt_sigreturn_tramp_frame): Update rt_sigreturn syscall
28 (nios2_linux_syscall_next_pc): Likewise. Remove sigreturn case.
29 (nios2_linux_init_abi): Remove registration of
30 nios2_linux_sigreturn_tramp_frame.
32 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
35 * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
36 adding prefix to opcode.
38 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
41 * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
42 address in 64-bit mode.
44 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
47 * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
48 address to 64-bit in 64-bit mode.
50 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
53 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
55 (amd64_x32_linux_record_tdep): New.
56 (amd64_linux_syscall_record_common): New function.
57 (amd64_linux_syscall_record): Call
58 amd64_linux_syscall_record_common with amd64_linux_record_tdep.
59 (amd64_x32_linux_syscall_record): Call
60 amd64_linux_syscall_record_common with
61 amd64_x32_linux_record_tdep.
62 (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
63 initialization and tdep->i386_syscall_record setup to ...
64 (amd64_linux_init_abi): Here.
65 (amd64_x32_linux_init_abi): Initialize
66 amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
67 amd64_x32_linux_syscall_record.
68 * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
70 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
72 * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
73 argument prefixes and suffixes. Initialize gdbarch with them.
74 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
75 * gdbarch.c: Regenerate.
76 * gdbarch.h: Regenerate.
77 * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
78 (stap_register_prefix, stap_register_suffix)
79 (stap_register_indirection_prefix)
80 (stap_register_indirection_suffix): Declare as "const char *const
81 *" instead of "const char *". Adjust printing function. Rename
82 all of the variables to the plural.
83 (pstring_list): New function.
84 * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
85 argument prefixes and suffixes. Initialize gdbarch with them.
86 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
87 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
88 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
89 * stap-probe.c (stap_is_generic_prefix): New function.
90 (stap_is_register_prefix): Likewise.
91 (stap_is_register_indirection_prefix): Likewise.
92 (stap_is_integer_prefix): Likewise.
93 (stap_generic_check_suffix): Likewise.
94 (stap_check_integer_suffix): Likewise.
95 (stap_check_register_suffix): Likewise.
96 (stap_check_register_indirection_suffix): Likewise.
97 (stap_parse_register_operand): Remove unecessary declarations for
98 variables holding prefix and suffix information. Use the new
99 functions listed above for checking for prefixes and suffixes.
100 (stap_parse_single_operand): Likewise.
102 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
105 * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
106 when expected syscall is hit.
108 2013-12-19 Tom Tromey <tromey@redhat.com>
110 * ser-unix.c (hardwire_ops): New global.
111 (_initialize_ser_hardwire): Use it.
112 * ser-tcp.c (tcp_ops): New global.
113 (_initialize_ser_tcp): Use it.
114 * ser-pipe.c (pipe_ops): New global.
115 (_initialize_ser_pipe): Use it.
116 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
118 (_initialize_ser_windows): Use them.
120 2013-12-19 Tom Tromey <tromey@redhat.com>
122 * serial.c (serial_ops_p): New typedef.
123 (serial_ops_list): Now a VEC.
124 (serial_interface_lookup): Return const. Use VEC_iterate.
125 (serial_add_interface): Make parameter const.
126 (serial_open): Update.
127 (serial_fdopen_ops): Make 'ops' const.
128 (serial_pipe): Update.
129 * ser-tcp.c (_initialize_ser_tcp): Update.
130 * ser-pipe.c (_initialize_ser_pipe): Update.
131 * ser-unix.c (_initialize_ser_hardwire): Update.
132 * ser-mingw.c (_initialize_ser_windows): Update.
133 * ser-go32.c (dos_ops): Now const. Update.
134 * serial.h (struct serial) <ops>: Now const.
135 (struct serial_ops) <next>: Remove.
136 (serial_add_interface): Make parameter const.
138 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
140 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
141 iov.iov_len with the real length in use.
143 2013-12-18 Yao Qi <yao@codesourcery.com>
145 * target.h (target_xfer_partial_ftype): New typedef.
146 (target_xfer_partial): Update declaration.
147 * auxv.h (memory_xfer_auxv): Likewise.
148 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
149 * ia64-linux-nat.c (super_xfer_partial): Likewise.
150 * linux-nat.c (super_xfer_partial): Likewise.
151 * procfs.c (procfs_xfer_partial): Likewise.
152 * record-full.c (record_full_beneath_to_xfer_partial):
153 (tmp_to_xfer_partial): Likewise.
154 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
155 * target.c (default_xfer_partial): Likewise.
156 (current_xfer_partial): Likewise.
157 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
159 2013-12-18 Yao Qi <yao@codesourcery.com>
161 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
163 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
164 (linux_proc_pending_signals): Likewise.
166 2013-12-18 Joel Brobecker <brobecker@adacore.com>
168 * value.c (value_entirely_unavailable): ARI fix: Move trailing
169 binary operator to the next line. No actual code change.
171 2013-12-17 Pedro Alves <palves@redhat.com>
173 * frame.h (enum frame_id_stack_status): New enum.
174 (struct frame_id) <stack_addr>: Adjust comment.
175 <stack_addr_p>: Delete field, replaced with ...
176 <stack_status>: ... this new field.
177 (frame_id_build_unavailable_stack): Declare.
178 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
179 (frame_id_build_special): Adjust.
180 (frame_id_build_unavailable_stack): New function.
181 (frame_id_build, frame_id_build_wild): Adjust.
182 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
183 account frames with unavailable stack.
185 * amd64-tdep.c (amd64_frame_this_id)
186 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
187 frame_id_build_unavailable_stack.
188 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
189 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
190 (i386_sigtramp_frame_this_id): Likewise.
192 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
194 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
195 unavailable, use correct bit length.
196 * value.c (struct value): Extend comment on unavailable to
197 indicate that it is bit based.
198 (value_bits_available): New function.
199 (value_bytes_available): Call value_bits_available.
200 (value_entirely_available): Check against the bit length, not byte
202 (mark_value_bits_unavailable): New function.
203 (mark_value_bytes_unavailable): Move contents to
204 mark_value_bits_unavailable, call to same.
205 (memcmp_with_bit_offsets): New function.
206 (value_available_contents_bits_eq): New function, takes the
207 functionality from value_available_contents_eq but uses
208 memcmp_with_bit_offsets now, and is bit not byte based.
209 (value_available_contents_eq): Move implementation into
210 value_available_contents_bits_eq, call to same.
211 (value_contents_copy_raw): Work on bits, not bytes.
212 (unpack_value_bits_as_long_1): Check availability in bits, not
214 * value.h (value_bits_available): Declare new function.
215 (mark_value_bits_unavailable): Declare new function.
217 2013-12-16 Pierre Muller <muller@sourceware.org>
219 Fix compilation error for cygwin native build.
220 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
223 2013-12-16 Pedro Alves <palves@redhat.com>
226 * sol-thread.c (check_for_thread_db): If the target can't run or
227 isn't a core, return without pushing.
229 2013-12-15 Joel Brobecker <brobecker@adacore.com>
231 Revert the following commit:
232 * solib.c (solib_map_sections): Remove code overwriting
233 SO->SO_NAME with the bfd's filename.
235 Make the following changes required after the revert above:
236 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
237 returned bfd to a copy of the synthetic pathname.
238 * solib-darwin.c (darwin_bfd_open): Set the filename of the
239 returned bfd to a copy of PATHNAME.
241 2013-12-13 Joel Brobecker <brobecker@adacore.com>
243 * ada-lang.c (ada_array_bound_from_type): Move the declaration
244 and assignment of variable "elt_type" inside the else block
245 where it is used. Add two missing check_typedef calls.
246 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
247 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
249 2013-12-13 Joel Brobecker <brobecker@adacore.com>
251 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
252 between 'struct type *' and 'arr_type'.
254 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
257 * NEWS (Python Scripting): Add entry for the new feature and the
258 new attribute of gdb.Field objects.
259 * python/py-type.c (gdbpy_is_field): New function
260 (convert_field): Add 'parent_type' attribute to gdb.Field
262 * python/py-value.c (valpy_getitem): Allow subscript value to be
264 (value_has_field): New function
265 (get_field_flag): New function
266 * python/python-internal.h (gdbpy_is_field): Add declaration.
268 2013-12-12 Pedro Alves <palves@redhat.com>
270 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
271 const, and remove casts.
273 2013-12-12 Pedro Alves <palves@redhat.com>
275 * cli/cli-cmds.c (source_script_from_stream) Use have_python
276 instead of catching UNSUPPORTED_ERROR.
277 * exceptions.h (UNSUPPORTED_ERROR): Delete.
278 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
280 * python/python.h (have_python): New static inline function.
282 2013-12-11 Doug Evans <dje@google.com>
284 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
285 "can't find DWO" warning.
287 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
289 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
290 to get_probe_argument_count and evaluate_probe_argument.
291 * probe.c (get_probe_argument_count): Adjust declaration to accept
292 frame. Pass frame to probe_ops's get_probe_argument_count.
293 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
294 (probe_safe_evaluate_at_pc): Pass frame to
295 get_probe_argument_count and evaluate_probe_argument.
296 * probe.h (struct probe_ops) <get_probe_argument_count,
297 evaluate_probe_argument>: Adjust declarations to accept frame.
298 (get_probe_argument_count, evaluate_probe_argument): Likewise.
299 * solib-svr4.c (solib_event_probe_action): Get current frame.
300 Pass it to get_probe_argument_count.
301 (svr4_handle_solib_event): Get current frame. Pass it to
302 get_probe_argument_count and evaluate_probe_argument.
303 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
304 accept gdbarch. Do not obtain it from the probe's objfile.
305 (stap_get_probe_argument_count): Adjust declaration to accept
306 frame. Obtain gdbarch from the frame. Call generic
307 can_evaluate_probe_arguments. Pass gdbarch to
308 stap_parse_probe_arguments.
309 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
310 stap_parse_probe_arguments.
311 (stap_evaluate_probe_argument): Adjust declaration to accept
312 frame. Obtain gdbarch from the frame. Pass gdbarch to
314 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
315 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
316 get_probe_argument_count and evaluate_probe_argument.
318 2013-12-10 Doug Evans <dje@google.com>
321 * c-lang.c (c_get_string): Ignore the declared size of the object
322 if a specific length is requested.
324 2013-12-10 Doug Evans <dje@google.com>
326 * interps.h (interp_exec_p): Delete.
327 * interps.c (interp_exec_p): Delete.
328 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
329 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
331 2013-12-10 Yao Qi <yao@codesourcery.com>
333 * amd64-tdep.c (amd64_analyze_stack_align): Call
334 target_read_code instead of target_read_memory.
335 (amd64_analyze_prologue): Call read_code_unsigned_integer
336 instead of read_memory_unsigned_integer. Call read_code
337 instead of read_memory.
338 (amd64_skip_xmm_prologue): Likewise.
340 2013-12-10 Yao Qi <yao@codesourcery.com>
342 * corefile.c (read_code): New function.
343 (read_code_integer): New function.
344 (read_code_unsigned_integer): New function.
345 * gdbcore.h (read_code): Declare.
346 (read_code_integer): Declare.
347 (read_code_unsigned_integer): Declare.
348 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
349 of target_read_memory. Call read_code_unsigned_integer instead
350 of read_memory_unsigned_integer.
351 (i386_analyze_struct_return): Likewise.
352 (i386_skip_probe): Likewise.
353 (i386_analyze_stack_align): Likewise.
354 (i386_match_pattern): Likewise.
355 (i386_skip_noop): Likewise.
356 (i386_analyze_frame_setup): Likewise.
357 (i386_analyze_register_saves): Likewise.
358 (i386_skip_prologue): Likewise.
359 (i386_skip_main_prologue): Likewise.
360 (i386_frame_cache_1): Likewise.
362 2013-12-10 Yao Qi <yao@codesourcery.com>
364 * infrun.c: Include "target-dcache.h".
365 (prepare_for_detach): Call target_dcache_invalidate.
366 (wait_for_inferior): Likewise.
367 (fetch_inferior_event): Likewise.
368 (infrun_thread_stop_requested_callback): Likewise. Set
369 overlay_cache_invalid to 1.
371 2013-12-10 Joel Brobecker <brobecker@adacore.com>
373 * symtab.c (symbol_find_demangled_name): Add handling of
376 2013-12-10 Joel Brobecker <brobecker@adacore.com>
378 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
379 * NEWS: Expand the entry documenting the new -exec-run --start
380 option to mention the corresponding new entry in the output of
383 2013-12-10 Joel Brobecker <brobecker@adacore.com>
385 * windows-nat.c (handle_load_dll): Add comments.
386 (windows_ensure_ntdll_loaded): New function.
387 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
390 2013-12-08 Joel Brobecker <brobecker@adacore.com>
394 2013-12-08 Yao Qi <yao@codesourcery.com>
396 * stack.c (frame_info): Initialize variable caller_pc.
398 2013-12-06 Pedro Alves <palves@redhat.com>
400 * frame.c (enum cached_copy_status): New enum.
401 (struct frame_info) <prev_pc.p>: Change type to enum
403 (fprint_frame): Handle not saved and unavailable prev_pc values.
404 (frame_unwind_pc_if_available): Delete and merge contents into ...
405 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
406 to use enum cached_copy_status.
407 (frame_unwind_caller_pc_if_available): Delete.
408 (create_new_frame): Adjust.
409 * frame.h (frame_unwind_caller_pc_if_available): Delete
411 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
412 frame_unwind_caller_pc_if_available, and handle
413 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
414 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
415 (val_print_not_saved): New function.
416 * valprint.h (val_print_not_saved): Declare.
418 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
419 Pedro Alves <palves@redhat.com>
421 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
422 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
423 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
424 * spu-tdep.c (spu_software_single_step): Throw
426 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
428 2013-12-06 Tom Tromey <tromey@redhat.com>
430 * objfiles.c (free_objfile): Update comment.
432 2013-12-06 Tom Tromey <tromey@redhat.com>
434 * objfiles.h (objfile_to_front): Remove.
435 * objfiles.c (objfile_to_front): Remove.
437 2013-12-06 Tom Tromey <tromey@redhat.com>
439 * minsyms.c (get_symbol_leading_char): Remove unnecessary
442 2013-12-06 Tom Tromey <tromey@redhat.com>
444 * psympriv.h (struct partial_symtab) <user>: Move earlier.
446 2013-12-06 Tom Tromey <tromey@redhat.com>
448 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
449 (list_command): Likewise.
451 2013-12-06 Tom Tromey <tromey@redhat.com>
453 * psymtab.c (allocate_psymtab): Put the filename in the filename
456 2013-12-06 Tom Tromey <tromey@redhat.com>
458 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
459 * symtab.h (struct symtab) <dirname>: Now const.
461 2013-12-06 Tom Tromey <tromey@redhat.com>
463 * symfile.c (allocate_symtab): Remove cast.
464 * symtab.h (struct symtab) <filename>: Now const.
466 2013-12-06 Tom Tromey <tromey@redhat.com>
468 * break-catch-throw.c (fetch_probe_arguments): Use
469 get_probe_argument_count and evaluate_probe_argument.
470 * elfread.c (elf_get_probe_argument_count)
471 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
472 (elf_compile_to_ax): Remove.
473 (elf_probe_fns): Update.
474 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
475 (evaluate_probe_argument): Call method on probe, not via sym
477 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
478 evaluate_probe_argument.
479 (compile_probe_arg): Use get_probe_argument_count. Call method on
480 probe, not via sym functions.
481 * symfile-debug.c (debug_sym_get_probe_argument_count)
482 (debug_can_evaluate_probe_arguments)
483 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
485 (debug_sym_probe_fns): Remove.
486 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
487 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
488 sym_compile_to_ax>: Remove fields.
490 2013-12-06 Pierre Muller <muller@sourceware.org>
492 Fix completion for pascal language.
493 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
494 (exp : field_exp name COMPLETE): New rule.
495 (exp : SIZEOF): Set correct current_type.
496 (last_was_structop): Remove static variable.
497 (yylex): Remove saw_structop local variable.
498 Adapt code to removal of variables above.
500 2013-12-06 Joel Brobecker <brobecker@adacore.com>
502 * frame.c (get_prev_frame_1): Delete variable "this_id".
503 Replace its use by a call to get_frame_id.
505 2013-12-05 Anthony Green <green@moxielogic.com>
507 * moxie-tdep.c (moxie_software_single_step): New function.
508 (INST2OFFSET): New helper macro.
509 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
510 (moxie_process_readu): Move this up in the file.
512 2013-12-05 Doug Evans <xdje42@gmail.com>
514 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
516 2013-12-05 Joel Brobecker <brobecker@adacore.com>
517 Tristan Gingold <gingold@adacore.com>
519 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
520 Accept version 2. Ignore operations using opcode 6.
522 2013-12-05 Joel Brobecker <brobecker@adacore.com>
524 * ada-lex.l (find_dot_all): Fix coding style violations.
526 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
528 * NEWS: Add section for Intel(R) Architecture Instructions
529 Extesions mentioning MPX.
531 2013-12-03 Joel Brobecker <brobecker@adacore.com>
533 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
535 2013-12-03 Joel Brobecker <brobecker@adacore.com>
537 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
538 when parse_exp_1 threw an error. Add comment.
540 2013-12-03 Joel Brobecker <brobecker@adacore.com>
542 * NEWS: Mention "-list-features" in the entry documenting
543 the support for the "--language" option.
545 2013-12-03 Tom Tromey <tromey@redhat.com>
546 Jan Kratochvil <jan.kratochvil@redhat.com>
547 Doug Evans <dje@google.com>
548 Samuel Bronson <naesten@gmail.com>
550 Bring back gdb-add-index as a contrib script.
551 * contrib/gdb-add-index.sh: New file.
552 * NEWS: Note the addition.
554 2013-12-03 Samuel Bronson <naesten@gmail.com>
556 * MAINTAINERS (Write After Approval): Add myself to the list.
558 2013-12-03 Joel Brobecker <brobecker@adacore.com>
560 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
562 2013-12-03 Joel Brobecker <brobecker@adacore.com>
564 * mi/mi-main.c: Remove trailing spaces throughout.
566 2013-12-03 Pedro Alves <palves@redhat.com>
567 Joel Brobecker <brobecker@adacore.com>
569 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
570 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
571 of a regular error when the GDB/MI command does not exist.
572 * mi/mi-main.c (mi_cmd_list_features): Add
573 "undefined-command-error-code".
574 (mi_print_exception): Print an "undefined-command"
575 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
576 * NEWS: Add entry documenting the new "code" variable in
577 "^error" result records.
579 2013-12-03 Joel Brobecker <brobecker@adacore.com>
581 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
582 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
583 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
584 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
585 field to output of "-list-features".
587 * NEWS: Add entry for new -info-gdb-mi-command.
589 2013-12-02 Doug Evans <dje@google.com>
590 Jan Kratochvil <jan.kratochvil@redhat.com>
592 * objfiles.c (allocate_objfile): Save original_name as an absolute
594 * objfiles.h (struct objfile): Expand comment on original_name.
595 * source.c (openp): Call gdb_abspath.
596 * utils.c (gdb_abspath): New function.
597 * utils.h (gdb_abspath): Declare.
599 2013-12-02 Pedro Alves <palves@redhat.com>
601 * dcache.c (dcache_read_line): Use target_read_raw_memory.
602 * target.c (target_read_raw_memory): New function.
603 (target_read_stack, target_write_memory, target_write_raw_memory):
605 (target_read_code): Add comment.
606 * target.h (target_read_raw_memory): Declare.
608 2013-12-02 Pedro Alves <palves@redhat.com>
610 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
613 2013-12-02 Pedro Alves <pedro@codesourcery.com>
614 Maciej W. Rozycki <macro@codesourcery.com>
616 * remote.c (putpkt_for_catch_errors): Remove function.
617 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
620 2013-12-02 Pedro Alves <palves@redhat.com>
623 * remote-notif.c (handle_notification): Return early if no
624 notification is found.
626 2013-12-02 Joel Brobecker <brobecker@adacore.com>
628 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
631 2013-12-02 Joel Brobecker <brobecker@adacore.com>
633 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
635 2013-12-02 Joel Brobecker <brobecker@adacore.com>
637 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
638 * ctf.c (ctf_start): Remove obsolete comment.
640 2013-12-02 Joel Brobecker <brobecker@adacore.com>
642 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
644 2013-11-30 Doug Evans <xdje42@gmail.com>
646 * auto-load.h (script_language): New members name, auto_load_enabled.
647 Add missing comments on struct members.
648 (auto_load_objfile_script): Delete.
649 * auto-load.c: #include "cli/cli-cmds.h".
650 (auto_load_gdb_scripts_enabled): New function.
651 (script_language_gdb): Update, add new members.
652 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
653 and call to maybe_add_script moved to caller.
654 (auto_load_objfile_script_1): Auto-load safe-checking and
655 call to maybe_add_script moved here.
656 (auto_load_objfile_script): Make static. Early exit if support for
657 scripting language hasn't been compiled in, or auto-loading has been
659 (source_section_scripts): Argument "source_name" renamed to
660 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
661 with section_name. Skip loading script if support for scripting
662 language hasn't been compiled in, or auto-loading has been disabled.
663 Call language->source_script_for_objfile instead of calling
664 source_python_script_for_objfile directly.
665 (load_auto_scripts_for_objfile): Update.
666 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
667 (gdbpy_load_auto_script_for_objfile): Delete.
668 (auto_load_python_scripts_enabled): New function.
669 (script_language_python): Update, add new members.
670 (gdbpy_script_language_defn): New function.
671 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
672 (gdbpy_script_language_defn): Declare.
674 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
675 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
676 (source_section_scripts): Moved here from py-auto-load.c.
677 (auto_load_section_scripts): Ditto.
678 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
679 auto-load.c, renamed AUTO_SECTION_NAME.
680 (source_section_scripts, auto_load_section_scripts): Moved to
683 2013-11-30 Yao Qi <yao@codesourcery.com>
685 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
687 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
689 * gdbarch.sh: Remove include of "gdb_string.h", replace by
692 2013-11-29 Doug Evans <xdje42@gmail.com>
694 * python/py-auto-load.c (source_section_scripts): Move comment to
695 more relevant location.
698 * python/py-breakpoint.c: Remove trailing whitespace.
699 * python/py-cmd.c: Ditto.
700 * python/py-evts.c: Ditto.
701 * python/py-finishbreakpoint.c: Ditto.
702 * python/py-frame.c: Ditto.
703 * python/py-function.c: Ditto.
704 * python/py-inferior.c: Ditto.
705 * python/py-infthread.c: Ditto.
706 * python/py-param.c: Ditto.
707 * python/py-prettyprint.c: Ditto.
708 * python/py-symbol.c: Ditto.
709 * python/py-type.c: Ditto.
710 * python/py-utils.c: Ditto.
711 * python/py-value.c: Ditto.
712 * python/python-internal.h: Ditto.
713 * python/python.c: Ditto.
715 2013-11-29 Pedro Alves <palves@redhat.com>
717 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
719 2013-11-29 Pedro Alves <palves@redhat.com>
721 * breakpoint.c (build_target_condition_list): Release previous
723 (build_target_command_list): Release previous commands.
724 (bp_location_dtor): Release target conditions and commands.
725 * remote.c (remote_add_target_side_condition): Don't release
727 (remote_add_target_side_commands): Don't release commands.
729 2013-11-29 Yao Qi <yao@codesourcery.com>
730 Pedro Alves <palves@redhat.com>
732 * dcache.c (dcache_read_line): Use current_target.beneath
733 instead of ¤t_target.
734 * target.c (memory_xfer_partial_1): Factor code out to ...
735 (raw_memory_xfer_partial): ... it. New function.
736 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
737 is TARGET_OBJECT_RAW_MEMORY.
739 2013-11-28 Doug Evans <xdje42@gmail.com>
741 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
742 breakpoint_object. All uses updated.
743 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
744 breakpoint_object. All uses updated.
745 * python.c (*): All uses of breakpoint_object updated.
746 * python.h (*): All uses of breakpoint_object updated.
747 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
748 * python/py-finishbreakpoint.c (*): Ditto.
750 2013-11-28 Doug Evans <xdje42@gmail.com>
752 * configure.ac: Add comments delineating libpython and libmcheck.
753 * configure: Regenerate.
755 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
756 Pedro Alves <palves@redhat.com>
758 * valprint.c (value_check_printable): If the value is entirely
759 unavailable, print a single "<unavailable>" instead of printing
762 2013-11-28 Pedro Alves <palves@redhat.com>
764 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
765 Add "set debug frame" output.
766 (frame_stop_reason_symbol_string): New function.
768 2013-11-28 Pedro Alves <palves@redhat.com>
770 * frame-unwind.c (default_frame_unwind_stop_reason): Return
771 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
772 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
774 2013-11-28 Pedro Alves <palves@redhat.com>
776 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
777 set the unwind stop reason to UNWIND_OUTERMOST, not
778 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
780 2013-11-28 Pedro Alves <palves@redhat.com>
782 * frame.c (frame_unwind_register): Say the register was "not
783 saved" instead of "optimized out".
785 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
788 * configure: Rebuild.
789 * configure.ac: Tighten cygwin detection check.
791 2013-11-27 Pedro Alves <palves@redhat.com>
793 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
794 register in the previous frame's arch.
796 2013-11-27 Pedro Alves <palves@redhat.com>
798 * frame-unwind.c (frame_unwind_got_optimized): Return
799 an lval_register value instead of a not_lval value.
801 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
803 * frame.c: Include "valprint.h".
804 (frame_unwind_register_value): Use value_optimized_out.
805 * value.c (value_fetch_lazy): Likewise.
807 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
809 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
811 2013-11-26 Tom Tromey <tromey@redhat.com>
813 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
816 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
818 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
819 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
820 (HAS_MPX): New macro.
821 (HAS_AVX): New macro.
822 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
824 2013-11-25 Keith Seitz <keiths@redhat.com>
827 * c-exp.y (classify_inner_name): If no matching symbol was
828 found, try looking up the token as a base class.
829 Likewise if a constructor was found.
830 * cp-namespace.c (find_type_baseclass_by_name): New function.
831 * cp-support.h (find_type_baseclass_by_name): Declare.
832 * valops.c (value_struct_elt_for_reference): If we get
833 a non-static field, try to get a value based on the
834 current instance, if any.
836 2013-11-24 Yao Qi <yao@codesourcery.com>
838 * disasm.c (dis_asm_read_memory): Call target_read_code
839 instead of target_read_memory.
841 2013-11-24 Yao Qi <yao@codesourcery.com>
843 * NEWS: Add note on new "set code-cache" option.
844 * target-dcache.c (code_cache_enabled_1): New variable.
845 (code_cache_enabled): New variable.
846 (show_code_cache, set_code_cache): New function.
847 (code_cache_enabled_p): New function.
848 (_initialize_target_dcache): Register command.
849 * target-dcache.h (code_cache_enabled_p): Declare.
850 * target.c (memory_xfer_partial_1):Handle
851 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
852 (target_read_code): New function.
853 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
855 (target_read_code): Declare.
857 2013-11-24 Yao Qi <yao@codesourcery.com>
859 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
860 (stack_cache_enabled_1): ... this. New variable.
861 (stack_cache_enabled_p): Rename to ...
862 (stack_cache_enabled): ... this. New variable.
863 (set_stack_cache_enabled_p): Rename to ...
864 (set_stack_cache): ... this. Update caller.
865 (show_stack_cache_enabled_p): Rename to ...
866 (show_stack_cache): ... this. Update caller.
867 (stack_cache_enabled): Rename to ...
868 (stack_cache_enabled_p): ... this. Update caller.
869 (_initialize_target_dcache): Replace "data cache" with
870 "target memory cache".
871 * target-dcache.h (stack_cache_enabled): Remove declaration.
872 (stack_cache_enabled_p): Add declaration.
874 2013-11-23 Doug Evans <xdje42@gmail.com>
876 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
879 2013-11-23 Doug Evans <xdje42@gmail.com>
881 * python/py-frame.c (frapy_block): Fix error message text.
883 2013-11-23 Doug Evans <xdje42@gmail.com>
885 * cli/cli-script.c (multi_line_command_p): New function.
886 (recurse_read_control_structure, read_command_lines_1): Call it.
887 (execute_control_command): Consistently have a blank line between
890 2013-11-22 Sterling Augustine <saugustine@google.com>
893 * valprint.c (read_string): Set new variable fetchlen based on
894 fetchlimit and size. Use it in call to partial_memory_read.
897 2013-11-22 Tom Tromey <tromey@redhat.com>
900 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
901 the return address column is unspecified.
903 2013-11-22 Tom Tromey <tromey@redhat.com>
904 Pedro Alves <palves@redhat.com>
907 * value.c (value_fetch_lazy): Internal error if
908 get_frame_register_value returns the same register.
910 2013-11-22 Pedro Alves <palves@redhat.com>
911 Tom Tromey <tromey@redhat.com>
913 * frame.c (frame_stash_add): Now returns whether a frame with the
914 same ID was already known.
915 (compute_frame_id): New function, factored out from get_frame_id.
916 (get_frame_id): No longer lazilly compute the frame id here.
917 (get_prev_frame_if_no_cycle): New function. Detects wider stack
919 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
920 and checking for stack cycles here.
922 2013-11-22 Pedro Alves <palves@redhat.com>
925 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
926 this frame and the new previous frame, not between this frame and
929 2013-11-22 Pedro Alves <palves@redhat.com>
932 * dwarf2-frame.c (struct dwarf2_frame_cache)
933 <checked_tailcall_bottom, entry_cfa_sp_offset,
934 entry_cfa_sp_offset_p>: New fields.
935 (dwarf2_frame_cache): Adjust to use the new cache fields instead
936 of locals. Don't call dwarf2_tailcall_sniffer_first here.
937 (dwarf2_frame_prev_register): Call it here, but only once.
939 2013-11-21 Doug Evans <xdje42@gmail.com>
941 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
942 (type_equality_entry): Move here from python/py-type.c.
943 (type_equality_entry_d): Ditto.
944 (compare_maybe_null_strings, check_types_equal): Ditto.
945 (check_types_worklist, types_deeply_equal): Ditto.
946 * gdbtypes.h (types_deeply_equal): Declare.
947 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
948 (typy_richcompare): Update.
950 2013-11-20 Joel Brobecker <brobecker@adacore.com>
952 * python/py-value.c (is_intlike): Delete.
953 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
954 by use of is_integral_type.
955 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
956 by use of is_integral_type and check for TYPE_CODE_PTR.
958 2013-11-20 Tom Tromey <tromey@redhat.com>
960 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
962 * gnulib/aclocal.m4: Update.
963 * gnulib/config.in: Update.
964 * gnulib/configure: Update.
965 * gnulib/import/Makefile.am: Update.
966 * gnulib/import/Makefile.in: Update.
967 * gnulib/import/errno.in.h: Remove.
968 * gnulib/import/intprops.h: Remove.
969 * gnulib/import/m4/errno_h.m4: Remove.
970 * gnulib/import/m4/gnulib-cache.m4: Update.
971 * gnulib/import/m4/gnulib-comp.m4: Update.
972 * gnulib/import/m4/strerror.m4: Remove.
973 * gnulib/import/m4/sys_socket_h.m4: Remove.
974 * gnulib/import/strerror-override.c: Remove.
975 * gnulib/import/strerror-override.h: Remove.
976 * gnulib/import/strerror.c: Remove.
977 * gnulib/update-gnulib.sh: Update.
979 2013-11-20 Yao Qi <yao@codesourcery.com>
981 * target-dcache.c (target_dcache_get_or_init): Call
982 set_address_space_data if 'dcache' is NULL.
984 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
986 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
988 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
990 * python/lib/gdb/command/bound_register.py: New file.
991 * data-directory/Makefile.in: Copy bond_register.py to the right path
992 to be initialized at gdb startup.
994 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
996 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
998 (amd64_linux_read_description): Add initialization for MPX and
1000 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
1001 (amd64_linux_gregset_reg_offset): Add MPX registers.
1002 (amd64_linux_core_read_description): Add initialization for MPX
1004 (_initialize_amd64_linux_tdep): Initialize MPX targets.
1005 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
1006 register on the list.
1007 (tdesc_amd64_mpx_linux) Add new target for MPX.
1008 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
1009 (amd64_mpx_names): MPX register names.
1010 (amd64_init_abi): Add MPX register while initializing the ABI.
1011 (_initialize_amd64_tdep): Initialize MPX targets.
1012 * amd64-tdep.h (amd64_regnum): Add MPX registers.
1013 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
1015 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1017 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
1018 registers on the range of registers to be read from
1020 (i386_linux_read_description): Add case for MPX.
1021 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
1022 (i386_linux_gregset_reg_offset): Add MPX registers.
1023 (i386_linux_core_read_description): Initialize also MPX.
1024 (_initialize_i386_linux_tdep): Add mpx initialization.
1025 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
1027 (i386_regnum): Add MPX registers.
1028 (I386_MPX_NUM_REGS): New macro.
1029 (i386_bnd_regnum_p): New function.
1030 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
1031 number of registers to be the number of BNDSTATUS.
1032 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
1033 * i386-tdep.c: Include features/i386/i386-mpx.c.
1034 (i386_mpx_names): Add MPX register names array.
1035 (i386_bnd_names): Add bnd pseudo register names array.
1036 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1038 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1039 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1041 (i386_bnd_type): New function.
1042 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1044 (i386_pseudo_register_read_into_value): Add bnd case.
1045 (i386_pseudo_register_write): Add bnd pseudo registers.
1046 (i386_register_reggroup_p): Add MPX register to the group all.
1047 (i386_validate_tdesc_p): Add MPX to the target description
1049 (i386_pseudo_register_name): Add bnd pseudo registers.
1050 (i386_gdbarch_init): Add MPX for architecture initialization.
1051 (_initia_initialize_i386_tdep): Add mpx initialization.
1052 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1054 (XSAVE_MPX_ADDR): New macro.
1055 (i387_supply_xsave): Add MPX case.
1056 (i387_collect_xsave): Add MPX case.
1057 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1058 (I387_BNDCFGU_REGNUM): New macro.
1059 (I387_NUM_MPX_REGS): New macro.
1060 (I387_NUM_BND_REGS): New macro.
1061 (I387_NUM_MPX_CTRL_REGS): New macro.
1062 (I387_MPXEND_REGNUM): New macro.
1063 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1064 (I386_XSTATE_BNDCFG): Likewise.
1065 (I386_XSTATE_MPX_MASK): Likewise.
1066 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1067 (I386_XSTATE_BNDREGS_SIZE): New macro.
1068 (I386_XSTATE_BNDCFG_SIZE): Likewise.
1069 (I386_XSTATE_SIZE): Adapt for MPX.
1070 (I386_XSTATE_MAX_SIZE): Likewise.
1072 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1074 * features/i386/Makefile: Adapts for using MPX registers.
1075 * features/i386/32bit-mpx.xml: New file.
1076 * features/i386/64bit-mpx.xml: Likewise.
1077 * features/i386/amd64-mpx-linux.c: Likewise.
1078 * features/i386/amd64-mpx-linux.xml: Likewise.
1079 * features/i386/amd64-mpx.c: Likewise.
1080 * features/i386/amd64-mpx.xml: Likewise.
1081 * features/i386/i386-mpx-linux.c: Likewise.
1082 * features/i386/i386-mpx-linux.xml: Likewise.
1083 * features/i386/i386-mpx.c: Likewise.
1084 * features/i386/i386-mpx.xml: Likewise.
1085 * regformats/i386/amd64-mpx-linux.dat: New file.
1086 * regformats/i386/amd64-mpx.dat: Likewise.
1087 * regformats/i386/i386-mpx-linux.dat: Likewise.
1088 * regformats/i386/i386-mpx.dat: Likewise.
1090 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1092 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1093 Modified logic of creating a bitfield to be in sync with
1096 2013-11-20 Will Newton <will.newton@linaro.org>
1098 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1101 2013-11-20 Yao Qi <yao@codesourcery.com>
1103 * progspace.h (struct address_space_data): Declare.
1104 * target-dcache.c: Include "progspace.h".
1105 (target_dache): Remove.
1106 (target_dcache_aspace_key): New.
1107 (target_dcache_cleanup): New function.
1108 (target_dcache_init_p): Get data through
1109 target_dcache_aspace_key.
1110 (target_dcache_invalidate): Likewise.
1111 (target_dcache_get): Likewise.
1112 (target_dcache_get_or_init): Likewise.
1113 (_initialize_target_dcache): Initialize
1114 target_dcache_aspace_key.
1116 2013-11-20 Yao Qi <yao@codesourcery.com>
1118 * progspace.c (struct address_space): Update comments.
1119 <REGISTRY_FIELDS>: New fields.
1120 DEFINE_REGISTRY for address_space.
1121 (new_address_space): Call address_space_alloc_data.
1122 (free_address_space): Call address_space_free_data.
1123 * progspace.h: Use DECLARE_REGISTRY.
1125 2013-11-20 Yao Qi <yao@codesourcery.com>
1127 * Makefile.in (SFILES):Add target-dcache.c.
1128 (HFILES_NO_SRCDIR): Add target-dcache.h.
1129 (COMMON_OBS): Add target-dcache.o.
1130 * dcache.c: Remove inclusion to "target.h". Include
1132 * memattr.c: Include "target-dcache.h".
1134 * tracepoint.c: Likewise.
1135 * target.c: (stack_cache_enabled_p_1): Move to
1137 (stack_cache_enabled_p): Likewise.
1138 (set_stack_cache_enabled_p): Likewise.
1139 (show_stack_cache_enabled_p): Likewise.
1140 (target_dcache, target_dcache_init_p): Likewise.
1141 (target_dcache_invalidate): Likewise.
1142 (target_dcache_get, target_dcache_get_or_init): Likewise.
1143 (memory_xfer_partial_1): Call function stack_cache_enabled.
1144 (initialize_target): Move code to target-dcache.c.
1145 * target.h (target_dcache_invalidate): Move to
1147 (target_dcache_get): Likewise.
1148 * target-dcache.c: New.
1149 * target-dcache.h: New.
1151 2013-11-20 Yao Qi <yao@codesourcery.com>
1153 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1156 2013-11-20 Yao Qi <yao@codesourcery.com>
1158 * dcache.c (last_cache): Remove.
1159 (dcache_free, dcache_init): Update.
1161 (dcache_print_line): Add parameter 'dcache'. Replace
1162 'target_dcache' with 'dcache'.
1163 (dcache_info): Move code to dcache_info_1. Call
1165 (dcache_info_1): New function.
1166 (set_dcache_size): Call target_dcache_invalidate.
1167 (set_dcache_line_size): Call target_dcache_invalidate.
1168 * target.c (target_dcache_init_p): New function.
1169 (target_dcache_invalidate): Check target_dcache_init_p first.
1170 (target_dcache_get, target_dcache_get_or_init): New function.
1171 (memory_xfer_partial_1): Adjust.
1172 (initialize_target): Don't initialize 'target_dcache'.
1173 * target.h (struct dcache_struct): Declare.
1174 (target_dcache_get): Declare.
1176 2013-11-19 Yao Qi <yao@codesourcery.com>
1178 * varobj.c (varobj_get_type): Fix typo.
1180 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1182 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1184 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1186 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1189 2013-11-18 Tom Tromey <tromey@redhat.com>
1191 * common/gdb_stat.h: Remove.
1192 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1193 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1194 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1195 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1196 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1197 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1198 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1199 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1200 * exec.c: Use sys/stat.h, not gdb_stat.h.
1201 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1202 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1203 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1204 * jit.c: Use sys/stat.h, not gdb_stat.h.
1205 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1206 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1207 * main.c: Use sys/stat.h, not gdb_stat.h.
1208 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1209 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1210 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1211 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1212 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1213 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1214 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1215 * remote.c: Use sys/stat.h, not gdb_stat.h.
1216 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1217 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1218 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1219 * source.c: Use sys/stat.h, not gdb_stat.h.
1220 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1221 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1222 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1223 * top.c: Use sys/stat.h, not gdb_stat.h.
1224 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1226 2013-11-18 Tom Tromey <tromey@redhat.com>
1228 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1230 * gnulib/aclocal.m4: Update.
1231 * gnulib/config.in: Update.
1232 * gnulib/configure: Update.
1233 * gnulib/import/Makefile.am: Update.
1234 * gnulib/import/Makefile.in: Update.
1235 * gnulib/import/m4/gnulib-cache.m4: Update.
1236 * gnulib/import/m4/gnulib-comp.m4: Update.
1237 * gnulib/import/m4/sys_stat_h.m4: New.
1238 * gnulib/import/m4/time_h.m4: New.
1239 * gnulib/import/sys_stat.in.h: New.
1240 * gnulib/import/time.in.h: New.
1242 2013-11-18 Tom Tromey <tromey@redhat.com>
1244 * configure: Rebuild.
1245 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1247 2013-11-18 Tom Tromey <tromey@redhat.com>
1249 * configure: Rebuild.
1250 * configure.ac: Don't check for unistd.h.
1252 2013-11-18 Tom Tromey <tromey@redhat.com>
1254 * configure: Rebuild.
1255 * configure.ac: Don't check for stdlib.h
1256 * defs.h: Include stdlib.h unconditionally.
1258 2013-11-18 Tom Tromey <tromey@redhat.com>
1260 * config.in: Rebuild.
1261 * configure: Rebuild.
1262 * configure.ac: Don't check for stddef.h.
1263 * defs.h: Unconditionally include stddef.h. Remove duplicate
1266 2013-11-18 Tom Tromey <tromey@redhat.com>
1268 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1269 * common/gdb_dirent.h: Remove.
1270 * common/filestuff.c: Use dirent.h.
1271 * common/linux-osdata.c: Use dirent.h.
1273 * config.in: Rebuild.
1274 * configure: Rebuild.
1275 * configure.ac: Don't use AC_HEADER_DIRENT.
1276 * linux-fork.c: Use dirent.h
1277 * linux-nat.c: Use dirent.h.
1278 * nto-procfs.c: Use dirent.h.
1279 * procfs.c: Use dirent.h.
1281 2013-11-18 Tom Tromey <tromey@redhat.com>
1283 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1284 * gnulib/aclocal.m4: Update.
1285 * gnulib/config.in: Update.
1286 * gnulib/configure: Update.
1287 * gnulib/import/Makefile.am: Update.
1288 * gnulib/import/Makefile.in: Update.
1289 * gnulib/import/dirent.in.h: New.
1290 * gnulib/import/m4/dirent_h.m4: New.
1291 * gnulib/import/m4/gnulib-cache.m4: Update.
1292 * gnulib/import/m4/gnulib-comp.m4: Update.
1294 2013-11-18 Tom Tromey <tromey@redhat.com>
1296 * configure: Rebuild.
1297 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1300 2013-11-18 Tom Tromey <tromey@redhat.com>
1302 * common/gdb_string.h: Remove.
1303 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1304 * ada-exp.y: Use string.h, not gdb_string.h.
1305 * ada-lang.c: Use string.h, not gdb_string.h.
1306 * ada-lex.l: Use string.h, not gdb_string.h.
1307 * ada-typeprint.c: Use string.h, not gdb_string.h.
1308 * ada-valprint.c: Use string.h, not gdb_string.h.
1309 * aix-thread.c: Use string.h, not gdb_string.h.
1310 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1311 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1312 * alpha-nat.c: Use string.h, not gdb_string.h.
1313 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1314 * alpha-tdep.c: Use string.h, not gdb_string.h.
1315 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1316 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1317 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1318 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1319 * amd64-nat.c: Use string.h, not gdb_string.h.
1320 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1321 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1322 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1323 * arch-utils.c: Use string.h, not gdb_string.h.
1324 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1325 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1326 * arm-tdep.c: Use string.h, not gdb_string.h.
1327 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1328 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1329 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1330 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1331 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1332 * avr-tdep.c: Use string.h, not gdb_string.h.
1333 * ax-gdb.c: Use string.h, not gdb_string.h.
1334 * ax-general.c: Use string.h, not gdb_string.h.
1335 * bcache.c: Use string.h, not gdb_string.h.
1336 * bfin-tdep.c: Use string.h, not gdb_string.h.
1337 * breakpoint.c: Use string.h, not gdb_string.h.
1338 * build-id.c: Use string.h, not gdb_string.h.
1339 * buildsym.c: Use string.h, not gdb_string.h.
1340 * c-exp.y: Use string.h, not gdb_string.h.
1341 * c-lang.c: Use string.h, not gdb_string.h.
1342 * c-typeprint.c: Use string.h, not gdb_string.h.
1343 * c-valprint.c: Use string.h, not gdb_string.h.
1344 * charset.c: Use string.h, not gdb_string.h.
1345 * cli-out.c: Use string.h, not gdb_string.h.
1346 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1347 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1348 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1349 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1350 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1351 * cli/cli-script.c: Use string.h, not gdb_string.h.
1352 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1353 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1354 * coffread.c: Use string.h, not gdb_string.h.
1355 * common/common-utils.c: Use string.h, not gdb_string.h.
1356 * common/filestuff.c: Use string.h, not gdb_string.h.
1357 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1358 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1359 * common/signals.c: Use string.h, not gdb_string.h.
1360 * common/vec.h: Use string.h, not gdb_string.h.
1361 * core-regset.c: Use string.h, not gdb_string.h.
1362 * corefile.c: Use string.h, not gdb_string.h.
1363 * corelow.c: Use string.h, not gdb_string.h.
1364 * cp-abi.c: Use string.h, not gdb_string.h.
1365 * cp-support.c: Use string.h, not gdb_string.h.
1366 * cp-valprint.c: Use string.h, not gdb_string.h.
1367 * cris-tdep.c: Use string.h, not gdb_string.h.
1368 * d-lang.c: Use string.h, not gdb_string.h.
1369 * dbxread.c: Use string.h, not gdb_string.h.
1370 * dcache.c: Use string.h, not gdb_string.h.
1371 * demangle.c: Use string.h, not gdb_string.h.
1372 * dicos-tdep.c: Use string.h, not gdb_string.h.
1373 * disasm.c: Use string.h, not gdb_string.h.
1374 * doublest.c: Use string.h, not gdb_string.h.
1375 * dsrec.c: Use string.h, not gdb_string.h.
1376 * dummy-frame.c: Use string.h, not gdb_string.h.
1377 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1378 * dwarf2loc.c: Use string.h, not gdb_string.h.
1379 * dwarf2read.c: Use string.h, not gdb_string.h.
1380 * elfread.c: Use string.h, not gdb_string.h.
1381 * environ.c: Use string.h, not gdb_string.h.
1382 * eval.c: Use string.h, not gdb_string.h.
1383 * event-loop.c: Use string.h, not gdb_string.h.
1384 * exceptions.c: Use string.h, not gdb_string.h.
1385 * exec.c: Use string.h, not gdb_string.h.
1386 * expprint.c: Use string.h, not gdb_string.h.
1387 * f-exp.y: Use string.h, not gdb_string.h.
1388 * f-lang.c: Use string.h, not gdb_string.h.
1389 * f-typeprint.c: Use string.h, not gdb_string.h.
1390 * f-valprint.c: Use string.h, not gdb_string.h.
1391 * fbsd-nat.c: Use string.h, not gdb_string.h.
1392 * findcmd.c: Use string.h, not gdb_string.h.
1393 * findvar.c: Use string.h, not gdb_string.h.
1394 * fork-child.c: Use string.h, not gdb_string.h.
1395 * frame.c: Use string.h, not gdb_string.h.
1396 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1397 * frv-tdep.c: Use string.h, not gdb_string.h.
1398 * gdb.c: Use string.h, not gdb_string.h.
1399 * gdb_bfd.c: Use string.h, not gdb_string.h.
1400 * gdbarch.c: Use string.h, not gdb_string.h.
1401 * gdbtypes.c: Use string.h, not gdb_string.h.
1402 * gnu-nat.c: Use string.h, not gdb_string.h.
1403 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1404 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1405 * go-exp.y: Use string.h, not gdb_string.h.
1406 * go-lang.c: Use string.h, not gdb_string.h.
1407 * go32-nat.c: Use string.h, not gdb_string.h.
1408 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1409 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1410 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1411 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1412 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1413 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1414 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1415 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1416 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1417 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1418 * i386-tdep.c: Use string.h, not gdb_string.h.
1419 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1420 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1421 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1422 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1423 * i387-tdep.c: Use string.h, not gdb_string.h.
1424 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1425 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1426 * inf-child.c: Use string.h, not gdb_string.h.
1427 * inf-ptrace.c: Use string.h, not gdb_string.h.
1428 * inf-ttrace.c: Use string.h, not gdb_string.h.
1429 * infcall.c: Use string.h, not gdb_string.h.
1430 * infcmd.c: Use string.h, not gdb_string.h.
1431 * inflow.c: Use string.h, not gdb_string.h.
1432 * infrun.c: Use string.h, not gdb_string.h.
1433 * interps.c: Use string.h, not gdb_string.h.
1434 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1435 * irix5-nat.c: Use string.h, not gdb_string.h.
1436 * jv-exp.y: Use string.h, not gdb_string.h.
1437 * jv-lang.c: Use string.h, not gdb_string.h.
1438 * jv-typeprint.c: Use string.h, not gdb_string.h.
1439 * jv-valprint.c: Use string.h, not gdb_string.h.
1440 * language.c: Use string.h, not gdb_string.h.
1441 * linux-fork.c: Use string.h, not gdb_string.h.
1442 * linux-nat.c: Use string.h, not gdb_string.h.
1443 * lm32-tdep.c: Use string.h, not gdb_string.h.
1444 * m2-exp.y: Use string.h, not gdb_string.h.
1445 * m2-typeprint.c: Use string.h, not gdb_string.h.
1446 * m32c-tdep.c: Use string.h, not gdb_string.h.
1447 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1448 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1449 * m32r-rom.c: Use string.h, not gdb_string.h.
1450 * m32r-tdep.c: Use string.h, not gdb_string.h.
1451 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1452 * m68k-tdep.c: Use string.h, not gdb_string.h.
1453 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1454 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1455 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1456 * m88k-tdep.c: Use string.h, not gdb_string.h.
1457 * macrocmd.c: Use string.h, not gdb_string.h.
1458 * main.c: Use string.h, not gdb_string.h.
1459 * mdebugread.c: Use string.h, not gdb_string.h.
1460 * mem-break.c: Use string.h, not gdb_string.h.
1461 * memattr.c: Use string.h, not gdb_string.h.
1462 * memory-map.c: Use string.h, not gdb_string.h.
1463 * mep-tdep.c: Use string.h, not gdb_string.h.
1464 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1465 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1466 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1467 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1468 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1469 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1470 * mi/mi-console.c: Use string.h, not gdb_string.h.
1471 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1472 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1473 * mi/mi-main.c: Use string.h, not gdb_string.h.
1474 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1475 * microblaze-rom.c: Use string.h, not gdb_string.h.
1476 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1477 * mingw-hdep.c: Use string.h, not gdb_string.h.
1478 * minidebug.c: Use string.h, not gdb_string.h.
1479 * minsyms.c: Use string.h, not gdb_string.h.
1480 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1481 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1482 * mips-tdep.c: Use string.h, not gdb_string.h.
1483 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1484 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1485 * mipsread.c: Use string.h, not gdb_string.h.
1486 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1487 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1488 * monitor.c: Use string.h, not gdb_string.h.
1489 * moxie-tdep.c: Use string.h, not gdb_string.h.
1490 * mt-tdep.c: Use string.h, not gdb_string.h.
1491 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1492 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1493 * nto-procfs.c: Use string.h, not gdb_string.h.
1494 * nto-tdep.c: Use string.h, not gdb_string.h.
1495 * objc-lang.c: Use string.h, not gdb_string.h.
1496 * objfiles.c: Use string.h, not gdb_string.h.
1497 * opencl-lang.c: Use string.h, not gdb_string.h.
1498 * osabi.c: Use string.h, not gdb_string.h.
1499 * osdata.c: Use string.h, not gdb_string.h.
1500 * p-exp.y: Use string.h, not gdb_string.h.
1501 * p-lang.c: Use string.h, not gdb_string.h.
1502 * p-typeprint.c: Use string.h, not gdb_string.h.
1503 * parse.c: Use string.h, not gdb_string.h.
1504 * posix-hdep.c: Use string.h, not gdb_string.h.
1505 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1506 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1507 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1508 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1509 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1510 * printcmd.c: Use string.h, not gdb_string.h.
1511 * procfs.c: Use string.h, not gdb_string.h.
1512 * prologue-value.c: Use string.h, not gdb_string.h.
1513 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1514 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1515 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1516 * regcache.c: Use string.h, not gdb_string.h.
1517 * registry.c: Use string.h, not gdb_string.h.
1518 * remote-fileio.c: Use string.h, not gdb_string.h.
1519 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1520 * remote-mips.c: Use string.h, not gdb_string.h.
1521 * remote-sim.c: Use string.h, not gdb_string.h.
1522 * remote.c: Use string.h, not gdb_string.h.
1523 * reverse.c: Use string.h, not gdb_string.h.
1524 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1525 * ser-base.c: Use string.h, not gdb_string.h.
1526 * ser-go32.c: Use string.h, not gdb_string.h.
1527 * ser-mingw.c: Use string.h, not gdb_string.h.
1528 * ser-pipe.c: Use string.h, not gdb_string.h.
1529 * ser-tcp.c: Use string.h, not gdb_string.h.
1530 * ser-unix.c: Use string.h, not gdb_string.h.
1531 * serial.c: Use string.h, not gdb_string.h.
1532 * sh-tdep.c: Use string.h, not gdb_string.h.
1533 * sh64-tdep.c: Use string.h, not gdb_string.h.
1534 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1535 * skip.c: Use string.h, not gdb_string.h.
1536 * sol-thread.c: Use string.h, not gdb_string.h.
1537 * solib-dsbt.c: Use string.h, not gdb_string.h.
1538 * solib-frv.c: Use string.h, not gdb_string.h.
1539 * solib-osf.c: Use string.h, not gdb_string.h.
1540 * solib-spu.c: Use string.h, not gdb_string.h.
1541 * solib-target.c: Use string.h, not gdb_string.h.
1542 * solib.c: Use string.h, not gdb_string.h.
1543 * somread.c: Use string.h, not gdb_string.h.
1544 * source.c: Use string.h, not gdb_string.h.
1545 * sparc-nat.c: Use string.h, not gdb_string.h.
1546 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1547 * sparc-tdep.c: Use string.h, not gdb_string.h.
1548 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1549 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1550 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1551 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1552 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1553 * spu-multiarch.c: Use string.h, not gdb_string.h.
1554 * spu-tdep.c: Use string.h, not gdb_string.h.
1555 * stabsread.c: Use string.h, not gdb_string.h.
1556 * stack.c: Use string.h, not gdb_string.h.
1557 * std-regs.c: Use string.h, not gdb_string.h.
1558 * symfile.c: Use string.h, not gdb_string.h.
1559 * symmisc.c: Use string.h, not gdb_string.h.
1560 * symtab.c: Use string.h, not gdb_string.h.
1561 * target.c: Use string.h, not gdb_string.h.
1562 * thread.c: Use string.h, not gdb_string.h.
1563 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1564 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1565 * top.c: Use string.h, not gdb_string.h.
1566 * tracepoint.c: Use string.h, not gdb_string.h.
1567 * tui/tui-command.c: Use string.h, not gdb_string.h.
1568 * tui/tui-data.c: Use string.h, not gdb_string.h.
1569 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1570 * tui/tui-file.c: Use string.h, not gdb_string.h.
1571 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1572 * tui/tui-out.c: Use string.h, not gdb_string.h.
1573 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1574 * tui/tui-source.c: Use string.h, not gdb_string.h.
1575 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1576 * tui/tui-win.c: Use string.h, not gdb_string.h.
1577 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1578 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1579 * typeprint.c: Use string.h, not gdb_string.h.
1580 * ui-file.c: Use string.h, not gdb_string.h.
1581 * ui-out.c: Use string.h, not gdb_string.h.
1582 * user-regs.c: Use string.h, not gdb_string.h.
1583 * utils.c: Use string.h, not gdb_string.h.
1584 * v850-tdep.c: Use string.h, not gdb_string.h.
1585 * valarith.c: Use string.h, not gdb_string.h.
1586 * valops.c: Use string.h, not gdb_string.h.
1587 * valprint.c: Use string.h, not gdb_string.h.
1588 * value.c: Use string.h, not gdb_string.h.
1589 * varobj.c: Use string.h, not gdb_string.h.
1590 * vax-tdep.c: Use string.h, not gdb_string.h.
1591 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1592 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1593 * windows-nat.c: Use string.h, not gdb_string.h.
1594 * xcoffread.c: Use string.h, not gdb_string.h.
1595 * xml-support.c: Use string.h, not gdb_string.h.
1596 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1597 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1599 2013-11-18 Tom Tromey <tromey@redhat.com>
1601 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1603 * gnulib/aclocal.m4: Update.
1604 * gnulib/config.in: Update.
1605 * gnulib/configure: Update.
1606 * gnulib/import/Makefile.am: Update.
1607 * gnulib/import/Makefile.in: Update.
1608 * gnulib/import/errno.in.h: New.
1609 * gnulib/import/intprops.h: New.
1610 * gnulib/import/m4/errno_h.m4: New.
1611 * gnulib/import/m4/gnulib-cache.m4: Update.
1612 * gnulib/import/m4/gnulib-comp.m4: Update.
1613 * gnulib/import/m4/strerror.m4: New.
1614 * gnulib/import/m4/strstr.m4: New.
1615 * gnulib/import/m4/sys_socket_h.m4: New.
1616 * gnulib/import/strerror-override.c: New.
1617 * gnulib/import/strerror-override.h: New.
1618 * gnulib/import/strerror.c: New.
1619 * gnulib/import/strstr.c: New.
1621 2013-11-18 Tom Tromey <tromey@redhat.com>
1623 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1626 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1628 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1629 * sparc-tdep.h: And its prototype.
1631 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1633 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1635 2013-11-18 Pedro Alves <palves@redhat.com>
1637 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1640 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1642 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1643 to -list-features output.
1645 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1647 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1648 <read_addr_from_reg>: Renames "read_reg".
1649 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1651 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1652 Use read_addr_from_reg in place of read_reg.
1653 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1654 in place of read_reg.
1655 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1656 dwarf_expr_read_reg.
1657 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1658 with dwarf_expr_read_addr_from_reg.
1659 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1660 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1661 needs_frame_read_addr_from_reg.
1663 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1665 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1667 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1669 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1672 2013-11-15 Tom Tromey <tromey@redhat.com>
1675 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1676 (classify_name): Likewise. Prefer a field of "this" over a
1678 (classify_inner_name, yylex): Update.
1680 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1682 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1683 Extend the documentation a bit.
1684 <get_reg_value>: New field.
1685 * dwarf2loc.c (dwarf_expr_get_reg_value)
1686 (needs_frame_get_reg_value): New functions.
1687 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1689 * dwarf2-frame.c (get_reg_value): New function.
1690 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1691 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1692 Use new callback to compute result_val.
1694 2013-11-15 Alan Modra <amodra@gmail.com>
1696 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1697 (ppc64_desc_entry_point): ..this. Update comments here and at
1699 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1700 ppc64_standard_linkage3): Update comments.
1701 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1702 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1704 (ppc64_standard_linkage4_target): New function.
1705 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1706 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1707 nop match. Fix comment wrap.
1709 2013-11-14 Pedro Alves <palves@redhat.com>
1711 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1712 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1714 2013-11-14 Pedro Alves <palves@redhat.com>
1716 * infrun.c (struct execution_control_state)
1717 <stepped_after_stopped_by_watchpoint>: New field.
1718 (get_inferior_stop_soon): New function.
1719 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1720 moved to struct execution_control_state -- adjust. Use
1721 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1723 (handle_signal_stop): New function, factored out from
1724 handle_inferior_event.
1726 2013-11-14 Pedro Alves <palves@redhat.com>
1728 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1730 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1732 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1733 Adjust to return a boolean.
1734 * breakpoint.h (enum bpstat_signal_value): Delete.
1735 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1736 (bpstat_explains_signal): Likewise.
1737 * infrun.c (handle_inferior_event) <random signal checks>:
1738 bpstat_explains_signal now returns a boolean - adjust. No longer
1739 consider hiding signals.
1741 2013-11-14 Pedro Alves <palves@redhat.com>
1743 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1744 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1745 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1747 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1748 instead of BPSTAT_SIGNAL_HIDE.
1749 * infrun.c (handle_inferior_event): Rework random signal checks.
1751 2013-11-14 Pedro Alves <palves@redhat.com>
1753 * infrun.c (struct execution_control_state): Remove
1754 'random_signal' field.
1755 (handle_syscall_event): Use bpstat_causes_stop instead of
1756 bpstat_explains_signal. Don't set ecs->random_signal.
1757 (handle_inferior_event): New 'random_signal' local.
1758 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1759 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1760 bpstat_explains_signal. Don't set ecs->random_signal.
1761 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1764 2013-11-14 Pedro Alves <palves@redhat.com>
1766 * infrun.c (handle_inferior_event): Move comment from the
1767 function's body to the function's description, adjusted.
1769 2013-11-14 Pedro Alves <palves@redhat.com>
1771 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1772 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1773 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1776 2013-11-14 Tom Tromey <tromey@redhat.com>
1778 * python/py-linetable.c (ltpy_has_line)
1779 (ltpy_get_all_source_lines): Fix loop termination condition.
1781 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1783 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1784 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1785 PARSE->LANGUAGE during command execution, if set.
1786 * mi/mi-parse.c: Add "language.h" #include.
1787 (mi_parse): Add parsing of "--language" command option.
1789 * NEWS: Add entry mentioning the new "--language" command option.
1791 2013-11-14 Pedro Alves <palves@redhat.com>
1792 Joel Brobecker <brobecker@adacore.com>
1794 * cli/cli-utils.h (extract_arg_const): Add declaration.
1795 * cli/cli-utils.c (extract_arg_const): New function.
1796 (extract_arg): Reimplement using extract_arg_const.
1798 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1800 * language.h: Add "symtab.h" #include.
1802 2013-11-13 Doug Evans <xdje42@gmail.com>
1804 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1805 specific breakpoints, don't evaluate breakpoint condition if
1808 2013-11-13 Keith Seitz <keiths@redhat.com>
1812 * cp-support.c (insepct_type): Add support for substituting
1813 namespace aliases, too.
1814 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1815 for DW_TAG_imported_declaration.
1816 (add_partial_symbol): Likewise.
1817 (process_die): Handle namespace aliases with
1818 read_namespace_alias.
1819 (die_needs_namespace): Add DW_TAG_imported_declaration.
1820 (read_namespace_alias): New function.
1821 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1822 (new_symbol_full): Handle DW_TAG_imported_declaration.
1824 2013-11-13 Keith Seitz <keiths@redhat.com>
1826 * p-exp.y (uptok): Make first parameter const.
1827 (yylex): Make `tokstart' and `tokptr' const.
1828 Don't copy the lexer input to a temporary buffer.
1830 Remove const workaround for parse_escape.
1831 Create a temporary buffer for a convenience variable instead
1832 of doing in-place modification of the input.
1833 If a match is found with a different case from the input,
1834 do not change the input at all.
1835 Use `tmp' to construct the resultant stoken instead of
1838 2013-11-13 Doug Evans <xdje42@gmail.com>
1840 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1842 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1844 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1845 entry with "ada-exceptions".
1847 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1849 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1850 after re-initialization of OBJFILE's obstack.
1852 2013-11-12 Doug Evans <xdje42@gmail.com>
1854 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1855 bs->stop != 0 on entry. Update function comment. Simplify early
1856 exit for frame mismatch. Reindent rest of function.
1858 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1860 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1863 2013-11-12 Doug Evans <dje@google.com>
1865 Work around gold/15646.
1866 * dwarf2read.c (read_index_from_section): Update comment.
1867 (struct dw2_symtab_iterator): New member global_seen.
1868 (dw2_symtab_iter_init): Initialize it.
1869 (dw2_symtab_iter_next): Skip duplicate global symbols.
1870 (dw2_expand_symtabs_matching): Ditto.
1872 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1874 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1875 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1877 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1878 (mi_cmd_info_ada_exceptions): New function.
1879 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1881 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1883 * ada-lang.h: #include "vec.h".
1884 (struct ada_exc_info): New.
1885 (ada_exc_info): New typedef.
1886 (DEF_VEC_O(ada_exc_info)): New vector.
1887 (ada_exceptions_list): Add declaration.
1888 * ada-lang.c (ada_is_exception_sym)
1889 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1890 (sort_remove_dups_ada_exceptions_list)
1891 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1892 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1893 (ada_exceptions_list_1, ada_exceptions_list)
1894 (info_exceptions_command): New function.
1895 (_initialize_ada_language): Add "info exception" command.
1897 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1900 * NEWS: Add linetable feature.
1901 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1902 * python/py-linetable.c: New file.
1903 * python/py-symtab.c (stpy_get_linetable): New function.
1904 * python/python-internal.h (symtab_to_linetable_object): Declare.
1905 (gdbpy_initialize_linetable): Ditto.
1906 * python/python.c (_initialize_python): Call
1907 gdbpy_initialize_linetable.
1909 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1911 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1912 the documentation of fields "except_string" and "condition".
1913 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1914 CONDITION on the heap before passing it to
1915 create_ada_exception_catchpoint.
1916 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1919 2013-11-11 Tom Tromey <tromey@redhat.com>
1921 * config.in, configure: Rebuild.
1922 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1924 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1926 * remote-sim.c (gdbsim_detach): Break declaration into
1927 shorter lines. No code change.
1929 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1931 * remote-sim.c (gdbsim_detach): Fix prototype.
1933 2013-11-08 Doug Evans <dje@google.com>
1935 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1936 (create_debug_types_hash_table): Only print debugging messages for
1937 each TU if dwarf2-read >= 2.
1938 (process_queue): Ditto.
1939 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1942 2013-11-08 Tom Tromey <tromey@redhat.com>
1944 * configure: Rebuild.
1945 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1947 2013-11-08 Tom Tromey <tromey@redhat.com>
1949 * configure, config.in: Rebuild.
1950 * configure.ac: Remove unused configury.
1952 2013-11-08 Tom Tromey <tromey@redhat.com>
1954 * m32c-tdep.c: Use gdb_string.h.
1956 2013-11-08 Tom Tromey <tromey@redhat.com>
1958 * configure, config.in: Rebuild.
1959 * configure.ac: Remove all link.h-related checks.
1961 2013-11-08 Tom Tromey <tromey@redhat.com>
1963 * acinclude.m4: Include common.m4.
1964 * common/common.m4: New file.
1965 * configure, config.in: Rebuild.
1966 * configure.ac: Use GDB_AC_COMMON.
1968 2013-11-08 Doug Evans <dje@google.com>
1970 * NEWS: Mention that "set debug symtab-create" now accepts a
1972 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1973 to set the symtab's primary flag.
1974 * jit.c (finalize_symtab): Ditto.
1975 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1976 * symfile.c (allocate_symtab): Only print debugging messages for
1977 symtab_create_debug levels 2 and higher.
1978 * symtab.c (symtab_create_debug): Change type to unsigned int.
1979 (set_symtab_primary): New function.
1980 (_initialize_symtab): Change "set debug symtab-create" to a
1982 * symtab.h (set_symtab_primary): Declare.
1983 (symtab_create_debug): Update decl.
1985 2013-11-08 Tom Tromey <tromey@redhat.com>
1987 * aix-thread.c (aix_thread_detach): Update.
1988 * corelow.c (core_detach): Update.
1989 * darwin-nat.c (darwin_detach): Update.
1990 * dec-thread.c (dec_thread_detach): Update.
1991 * gnu-nat.c (gnu_detach): Update.
1992 * go32-nat.c (go32_detach): Update.
1993 * inf-ptrace.c (inf_ptrace_detach): Update.
1994 * inf-ttrace.c (inf_ttrace_detach): Update.
1995 * linux-fork.c (linux_fork_detach): Update.
1996 * linux-fork.h (linux_fork_detach): Update.
1997 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1998 local for const-correctness.
1999 * linux-thread-db.c (thread_db_detach): Update.
2000 * monitor.c (monitor_detach): Update.
2001 * nto-procfs.c (procfs_detach): Update.
2002 * procfs.c (procfs_detach): Update.
2003 * record.c (record_detach): Update.
2004 * record.h (record_detach): Update.
2005 * remote-m32r-sdi.c (m32r_detach): Update.
2006 * remote-mips.c (mips_detach): Update.
2007 * remote-sim.c (gdbsim_detach): Update.
2008 * remote.c (remote_detach_1, remote_detach)
2009 (extended_remote_detach): Update.
2010 * sol-thread.c (sol_thread_detach): Update.
2011 * target.c (target_detach): Make "args" const.
2012 (init_dummy_target): Update.
2013 * target.h (struct target_ops) <to_detach>: Make argument const.
2014 (target_detach): Likewise.
2015 * windows-nat.c (windows_detach): Update.
2017 2013-11-07 Doug Evans <dje@google.com>
2020 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
2021 and align fields for PT_GNU_RELRO segments.
2023 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2026 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
2028 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
2030 * NEWS: Document Python temporary breakpoint support.
2031 * python/py-breakpoint.c (bppy_get_temporary): New function.
2032 (bppy_init): New keyword: temporary. Parse it and set breakpoint
2033 to temporary if True.
2035 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2037 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2038 removed to allow analyzing unconditional branch instructions
2039 with PC-relative offsets of zero.
2041 2013-11-07 Yao Qi <yao@codesourcery.com>
2043 * mi/mi-cmd-var.c: Include "language.h".
2044 (mi_cmd_var_info_expression): Get language name from
2046 * varobj.c (varobj_language_string): Remove.
2047 (variable_language): Remove declaration.
2048 (languages): Remove.
2049 (varobj_get_language): Change the type of return value.
2050 (variable_language): Remove.
2051 * varobj.h (enum varobj_languages): Remove.
2052 (varobj_language_string): Remove declaration.
2053 (varobj_get_language): Update declaration.
2055 2013-11-07 Yao Qi <yao@codesourcery.com>
2057 * language.h (struct language_defn) <la_natural_name>: New
2059 * ada-lang.c (ada_language_defn): Initialize field
2061 * c-lang.c (c_language_defn): Likewise.
2062 (cplus_language_defn, asm_language_defn): Likewise.
2063 * d-lang.c (d_language_defn): Likewise.
2064 * f-lang.c (f_language_defn): Likewise.
2065 * go-lang.c (go_language_defn): Likewise.
2066 * jv-lang.c (java_language_defn): Likewise.
2067 * language.c (unknown_language_defn ): Likewise.
2068 (auto_language_defn): Likewise.
2069 * m2-lang.c (m2_language_defn): Likewise.
2070 * objc-lang.c (objc_language_defn): Likewise.
2071 * opencl-lang.c (opencl_language_defn): Likewise.
2072 * p-lang.c (pascal_language_defn): Likewise.
2074 2013-11-07 Yao Qi <yao@codesourcery.com>
2076 * language.c (language_str): Return const char *.
2077 (add_language): Add const to 'language_names'
2078 * language.h (struct language_defn) <la_name>: Add const.
2079 (language_str: Update declaration.
2081 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
2083 * s390-linux-nat.c (s390_read_description): Consider the TE field
2084 in the HWCAP for determining 'have_regset_tdb'.
2086 2013-11-06 Will Newton <will.newton@linaro.org>
2089 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2090 values. (read_partial_die): Likewise.
2092 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
2095 * top.c (command_line_input): Unify interactivity tests to use
2096 input_from_terminal_p.
2097 * event-top.c (command_line_handler): Likewise.
2099 2013-11-06 Yao Qi <yao@codesourcery.com>
2101 * Makefile.in (check-perf): New target.
2103 2013-11-05 Will Newton <will.newton@linaro.org>
2106 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2107 (arm_print_float_info): Likewise.
2109 2013-11-04 Anton Blanchard <anton@samba.org>
2111 * target.c (memory_xfer_partial): Cap write to 4KB.
2113 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2115 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2116 probe scan even when the arch provides no get_longjmp_target.
2118 2013-10-31 Pedro Alves <palves@redhat.com>
2120 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2121 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2122 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2123 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
2124 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2125 <bpstat handling>: If the bpstat chain wants the signal to be
2126 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2129 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
2131 * breakpoint.c (update_watchpoint): Update error message and add
2132 an additional error message.
2134 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2136 * s390-tdep.h: Rename to...
2137 * s390-linux-tdep.h: ...here.
2138 * s390-tdep.c: Rename to...
2139 * s390-linux-tdep.c: ...here. Adjust #include.
2140 * s390-nat.c: Rename to...
2141 * s390-linux-nat.c: ...here. Adjust #include.
2142 * config/s390/s390.mh: Rename to...
2143 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2145 * configure.host: Reflect host rename "s390" -> "linux".
2146 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2147 * Makefile.in (ALL_TARGET_OBS): Likewise.
2148 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2150 (ALLDEPFILES): Reflect rename of .c files.
2152 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2154 * s390-nat.c: Whitespace cleanup.
2155 * s390-tdep.c: Likewise.
2156 * s390-tdep.h: Remove empty line at end of file.
2158 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2160 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2163 2013-10-29 Tom Tromey <tromey@redhat.com>
2165 * utils.c (reg): Move undefinition...
2166 * gdb_curses.h: ... here. Update comment to mention AIX.
2168 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2170 * exec.h (add_target_sections_of_objfile): New declaration.
2171 * exec.c (add_target_sections_of_objfile): New function.
2172 * symfile.c (add_symbol_file_command): Update current target sections.
2173 (remove_symbol_file_command): New command.
2174 (symfile_free_objfile): New function.
2175 (_initialize_symfile): Register observer for free_objfile events.
2176 * NEWS: Add description of the remove-symbol-file command.
2177 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2178 * objfiles.c (free_objfile): Notify free_objfile.
2179 (is_addr_in_objfile): New function.
2180 * objfiles.h (is_addr_in_objfile): New declaration.
2181 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2182 events instead of solib_unloaded events.
2183 (_initialize_printcmd): Register observer for free_objfile instead
2184 of solib_unloaded notifications.
2185 * solib.c (remove_user_added_objfile): New function.
2186 (_initialize_symfile): Add remove-symbol-file.
2188 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2190 * infcmd.c (default_print_one_register_info): Use val_print to
2191 print all values even optimized out or unavailable ones. Don't
2192 try to print a raw form of optimized out or unavailable values.
2194 2013-10-29 Yao Qi <yao@codesourcery.com>
2196 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2197 parameter 'arg' instead of from program_space_data.
2198 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2199 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2200 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2201 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2202 * inflow.c (inflow_inferior_data_cleanup): Get data from
2203 parameter 'arg' instead of inferior_data.
2204 * registry.h: Add comments.
2206 2013-10-28 Pedro Alves <palves@redhat.com>
2208 * breakpoint.c (watchpoints_triggered)
2209 <!target_stopped_data_address>: Hardcode return 1.
2211 2013-10-28 Pedro Alves <palves@redhat.com>
2213 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2216 2013-10-28 Pedro Alves <palves@redhat.com>
2218 * infrun.c (process_event_stop_test): New function, factored out
2219 from handle_inferior_event.
2220 (handle_inferior_event): 'process_event_stop_test' is now a
2221 function instead of a goto label -- adjust.
2223 2013-10-28 Pedro Alves <palves@redhat.com>
2225 * infrun.c (handle_inferior_event): Move process_event_stop_test
2226 goto label to the else branch of the ecs->random_signal check,
2227 along with FRAME and GDBARCH re-fetching.
2229 2013-10-28 Pedro Alves <palves@redhat.com>
2231 * infrun.c (switch_back_to_stepped_thread): New function, factored
2232 out from handle_inferior_event.
2233 (handle_inferior_event): Adjust to call
2234 switch_back_to_stepped_thread. Call it also at the tail of the
2235 random signal handling, and return, instead of also handling
2236 random signals just before the stepping tests.
2238 2013-10-28 Pedro Alves <palves@redhat.com>
2240 * infrun.c (clear_stop_func): Delete.
2241 (handle_inferior_event): Don't call clear_stop_func and don't
2242 clear 'ecs->random_signal'.
2244 2013-10-27 Yao Qi <yao@codesourcery.com>
2246 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2247 (varobj_create, varobj_get_path_expr): Update.
2248 (varobj_value_has_mutated, varobj_update): Likewise.
2249 (create_child_with_value, new_root_variable): Likewise.
2250 (number_of_children, name_of_variable): Likewise.
2251 (value_of_child, my_value_of_variable): Likewise.
2252 (varobj_value_is_changeable_p): Likewise.
2254 2013-10-25 Yao Qi <yao@codesourcery.com>
2256 * language.h (struct lang_varobj_ops): Declare.
2257 (struct language_defn) <la_varobj_ops>: New field.
2258 * ada-lang.c: Include "varobj.h"
2259 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2261 * c-lang.c: Include "varobj.h"
2262 (c_language_defn): Initialize field 'la_varobj_ops' with
2264 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2266 (asm_language_defn): Initialize field 'la_varobj_ops' with
2268 (minimal_language_defn): Likewise.
2269 * d-lang.c (d_language_defn): Likewise.
2270 * f-lang.c (f_language_defn): Likewise.
2271 * go-lang.c (go_language_defn): Likewise.
2272 * m2-lang.c (m2_language_defn): Likewise.
2273 * objc-lang.c (objc_language_defn): Likewise.
2274 * opencl-lang.c (opencl_language_defn): Likewise.
2275 * p-lang.c (pascal_language_defn): Likewise.
2276 * language.c (unknown_language_defn): Likewise.
2277 (auto_language_defn): Likewise.
2278 (local_language_defn): Likewise.
2279 * jv-lang.c (java_language_defn): Initialize field
2280 'la_varobj_ops' with java_varobj_ops.
2281 * varobj.c (varobj_create): Update.
2282 * varobj.h (default_varobj_ops): Define macro.
2284 2013-10-25 Pedro Alves <palves@redhat.com>
2286 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2288 (cp_print_static_field): If the value is entirely optimized out,
2289 print <optimized out> here.
2290 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2292 * p-valprint.c (pascal_object_print_static_field): If the value is
2293 entirely optimized out, print <optimized out> here.
2294 * valops.c (do_search_struct_field)
2295 (value_struct_elt_for_reference): No longer handle a NULL static
2297 * value.c (value_static_field): Return an optimized out value
2300 2013-10-25 Yao Qi <yao@codesourcery.com>
2302 * remote.c (remote_traceframe_info): Return early if
2303 traceframe is not selected.
2305 2013-10-25 Yao Qi <yao@codesourcery.com>
2307 * tracepoint.c (traceframe_fun): Remove.
2308 (traceframe_sal): Remove.
2309 (set_traceframe_context): Add local variables.
2311 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2313 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2316 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2318 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2319 failure from register information collection.
2321 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2323 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2325 (linux_corefile_thread_callback): Update accordingly.
2326 (linux_make_corefile_notes): Likewise.
2328 2013-10-24 Pedro Alves <palves@redhat.com>
2330 * NEWS (New options): Mention set/show startup-with-shell.
2331 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2333 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2334 startup-with-shell'.
2335 (show_startup_with_shell): New function.
2336 (_initialize_fork_child): Register the set/show startup-with-shell
2338 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2339 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2340 * procfs.c (procfs_init_inferior): Remove comment.
2341 * infcmd.c (startup_with_shell): New global.
2342 * inferior.h (startup_with_shell): Declare global.
2343 (STARTUP_WITH_SHELL): Delete.
2344 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2346 2013-10-23 Pedro Alves <palves@redhat.com>
2348 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2349 * common/signals.c: Include "gdb_assert.h".
2350 (signals): New field 'symbol'.
2351 (SET): Use the 'symbol' parameter.
2352 (gdb_signal_to_symbol_string): New function.
2353 * infrun.c (handle_inferior_event) <random signal>: In debug
2354 output, print the random signal enum as string in addition to its
2356 * target/waitstatus.c (target_waitstatus_to_string): Print the
2357 signal's enum value as string instead of the (POSIX) signal name.
2359 2013-10-23 Gary Benson <gbenson@redhat.com>
2362 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2363 from 32 to 18. Adjusted fscanf format string accordingly.
2364 (Avoids leaving cmd unterminated.)
2365 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2366 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2367 that local_address and remote_address will not overflow.
2368 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2369 leaving dependencies unterminated. Parse size as "%u" to match
2372 2013-10-22 Pedro Alves <palves@redhat.com>
2374 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2375 set ecs->random signal.
2377 2013-10-22 Pedro Alves <palves@redhat.com>
2379 * infrun.c (keep_going): Update comments.
2381 2013-10-22 Pedro Alves <palves@redhat.com>
2383 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2384 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2386 2013-10-22 Pedro Alves <palves@redhat.com>
2388 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2390 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2391 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2392 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2393 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2394 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2395 (GDB_SIGNAL_LAST): Change description string.
2396 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2397 Adjust to signal renaming.
2398 * darwin-nat.c (darwin_decode_message): Likewise.
2400 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2402 * MAINTAINERS (Write After Approval): Add myself to the list.
2404 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2406 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2407 forced off, downgrade them to software watchpoints if possible,
2408 and error out if not possible.
2409 (watch_command_1): Move watchpoint type selection closer to
2410 watchpoint creation, and extend the comments.
2412 2013-10-18 Pedro Alves <palves@redhat.com>
2415 * infrun.c (handle_inferior_event): Keep going if we got a random
2416 signal we should not stop for, instead of falling through to the
2419 2013-10-18 Yao Qi <yao@codesourcery.com>
2421 * c-varobj.c (cplus_number_of_children): Fix indentation.
2423 2013-10-17 Tom Tromey <tromey@redhat.com>
2426 * printcmd.c (printcmd): Call gdb_flush.
2428 2013-10-17 Tom Tromey <tromey@redhat.com>
2430 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2431 (elf_locate_sections): Update.
2433 2013-10-17 Yao Qi <yao@codesourcery.com>
2435 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2436 * ada-varobj.c: Remove the include of ada-varobj.h.
2437 (ada_varobj_get_number_of_children): Declare.
2438 (ada_varobj_get_name_of_child): Make it static.
2439 (ada_varobj_get_path_expr_of_child): Likewise.
2440 (ada_varobj_get_value_of_child): Likewise.
2441 (ada_varobj_get_type_of_child): Likewise.
2442 (ada_varobj_get_value_of_array_variable): Likewise.
2443 * ada-varobj.h: Remove.
2445 2013-10-17 Yao Qi <yao@codesourcery.com>
2447 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2448 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2449 * ada-varobj.c: Include "varobj.h".
2450 (ada_number_of_children): New. Moved from varobj.c.
2451 (ada_name_of_variable, ada_name_of_child): Likewise.
2452 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2453 (ada_type_of_child, ada_value_of_variable): Likewise.
2454 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2455 (ada_varobj_ops): New.
2456 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2457 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2458 * gdbtypes.h (get_target_type): Declare.
2459 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2461 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2462 (ANONYMOUS_UNION_NAME): Likewise.
2463 (get_type, get_value_type, get_target_type): Remove declarations.
2464 (value_get_print_value, varobj_value_get_print_value): Likewise.
2465 (c_number_of_children, c_name_of_variable): Likewise.
2466 (c_name_of_child, c_path_expr_of_child): Likewise.
2467 (c_value_of_child, c_type_of_child): Likewise.
2468 (c_value_of_variable, cplus_number_of_children): Likewise.
2469 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2470 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2471 (cplus_value_of_child, cplus_type_of_child): Likewise.
2472 (cplus_value_of_variable, java_number_of_children): Likewise.
2473 (java_name_of_variable, java_name_of_child): Likewise.
2474 (java_path_expr_of_child, java_value_of_child): Likewise.
2475 (java_type_of_child, java_value_of_variable): Likewise.
2476 (ada_number_of_children, ada_name_of_variable): Likewise.
2477 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2478 (ada_value_of_child, ada_type_of_child): Likewise.
2479 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2480 (ada_value_has_mutated): Likewise.
2481 (struct language_specific): Move it to varobj.h.
2482 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2483 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2485 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2487 (is_anonymous_child): Move it to c-varobj.c and rename to
2488 varobj_is_anonymous_child. Caller update.
2489 (get_type): Move it to c-varobj.c.
2490 (get_value_type): Rename it varobj_get_value_type. Make it
2492 (get_target_type): Move it gdbtypes.c.
2493 (varobj_formatted_print_options): New function.
2494 (value_get_print_value): Rename it to
2495 varobj_value_get_print_value and make it extern.
2496 (varobj_value_is_changeable_p): Make it extern.
2497 (adjust_value_for_child_access): Move it to c-varobj.c.
2498 (default_value_is_changeable_p): Rename it to
2499 varobj_default_value_is_changeable_p. Make it extern.
2500 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2501 (c_name_of_child, c_path_expr_of_child): Likewise.
2502 (c_value_of_child, c_type_of_child): Likewise.
2503 (c_value_of_variable, cplus_number_of_children): Likewise.
2504 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2505 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2506 (cplus_value_of_child, cplus_type_of_child): Likewise.
2507 (cplus_value_of_variable): Likewise.
2508 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2509 (java_name_of_child, java_path_expr_of_child): Likewise.
2510 (java_value_of_child, java_type_of_child): Likewise.
2511 (java_value_of_variable): Likewise.
2512 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2513 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2514 (ada_value_of_child, ada_type_of_child): Likewise.
2515 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2516 (ada_value_has_mutated): Likewise.
2517 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2518 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2519 (c_varobj_ops, cplus_varobj_ops): Declare.
2520 (java_varobj_ops, ada_varobj_ops): Declare.
2521 (varobj_default_value_is_changeable_p): Declare.
2522 (varobj_value_is_changeable_p): Declare.
2523 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2524 (varobj_get_path_expr_parent): Declare.
2525 (varobj_value_get_print_value): Declare.
2526 (varobj_formatted_print_options): Declare.
2527 (varobj_restrict_range): Declare.
2529 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2531 * target/waitstatus.h (target_waitkind): Remove spurious
2532 character from the comments.
2534 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2536 * gdbarch.sh (get_longjmp_target): Add method documentation.
2537 * gdbarch.h: Regenerate.
2539 2013-10-16 Tom Tromey <tromey@redhat.com>
2541 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2544 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2546 * gcore.in: Call GDB using the full path to the gcore script.
2547 Error out if the GDB binary is not found.
2549 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2552 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2555 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2558 * target.c (target_disable_btrace): Fix invalid return value for
2560 (target_teardown_btrace): Likewise.
2562 2013-10-14 Yao Qi <yao@codesourcery.com>
2564 * varobj.c (struct varobj): Move most of the fields to
2566 (struct varobj_dynamic): New struct.
2567 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2568 (varobj_has_more): Likewise.
2569 (dynamic_varobj_has_child_method): Likewise.
2570 (update_dynamic_varobj_children): Likewise.
2571 (varobj_get_num_children): Likewise.
2572 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2573 (install_new_value_visualizer): Likewise.
2574 (install_new_value_visualizer, install_new_value): Likewise.
2575 (varobj_update, new_variable, free_variable): Likewise.
2576 (my_value_of_variable, value_get_print_value): Likewise.
2577 (install_visualizer): Change the type of parameter 'var' to
2578 'struct varobjd_dynamic *'. Callers update.
2579 * varobj.h (struct varobj): Moved from varobj.c.
2580 (struct varobj) <dynamic>: New field.
2582 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2584 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2585 as the preferred name of r30.
2586 * nios2-linux-tdep.c (reg_offsets): Likewise.
2587 * features/nios2-cpu.xml: Likewise.
2588 * features/nios2-linux.c: Regenerated.
2589 * features/nios2.c: Regenerated.
2590 * regformats/nios2-linux.dat: Regenerated.
2592 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 Canonicalize directories for EXEC_FILENAME.
2595 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2597 * utils.c (gdb_realpath_keepfile): New function.
2598 * utils.h (gdb_realpath_keepfile): New declaration.
2600 2013-10-11 Doug Evans <dje@google.com>
2602 * Makefile.in (GDBFLAGS): New variable.
2605 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2607 * NEWS: Add entry documenting the new "-catch-assert" and
2608 "-catch-exception" GDB/MI commands.
2610 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2612 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2614 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2615 "enabled". Set B->ENABLE_STATE accordingly.
2616 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2618 (create_ada_exception_catchpoint): Add declaration.
2619 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2620 (create_ada_exception_catchpoint): Make non-static. Add new
2621 parameter "disabled". Use it in call to
2622 init_ada_exception_breakpoint.
2623 (catch_ada_exception_command): Add parameter "enabled" in call
2624 to create_ada_exception_catchpoint.
2625 (catch_assert_command): Likewise.
2627 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2629 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2630 "catch-exception" commands.
2631 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2632 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2634 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2636 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2637 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2638 of all its enumerates with "ada_". Update the rest of this
2641 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2643 * ada-lang.c (ada_decode_exception_location): Delete.
2644 (create_ada_exception_catchpoint): Remove arguments "sal",
2645 "addr_string" and "ops". Add argument "ex_kind" instead.
2646 Adjust implementation accordingly, calling ada_exception_sal
2647 to get the entities it no longer gets passed as arguments.
2648 Document the function's arguments.
2649 (catch_ada_exception_command): Use catch_ada_exception_command_split
2650 instead of ada_decode_exception_location, and update call to
2651 create_ada_exception_catchpoint.
2652 (catch_ada_assert_command_split): Renames
2653 ada_decode_assert_location. Remove parameters "addr_string" and
2654 "ops", and now returns void. Adjust implementation accordingly.
2655 Update the function documentation.
2656 (catch_assert_command): Use catch_ada_assert_command_split
2657 instead of ada_decode_assert_location. Update call to
2658 create_ada_exception_catchpoint.
2660 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2662 * utils.h (perror_warning_with_name): Add declaration.
2663 * utils.c (perror_warning_with_name): New function.
2664 * cli/cli-cmds.c (source_script_with_search): Add call to
2665 perror_warning_with_name if from_tty is nul.
2667 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2669 * utils.c (perror_string): New function, extracted out of
2670 throw_perror_with_name.
2671 (throw_perror_with_name): Rework to use perror_string.
2673 2013-10-11 Yao Qi <yao@codesourcery.com>
2675 * remote.c (discard_pending_stop_replies_in_queue): Update
2677 (struct stop_reply) <rs>: New field.
2678 (remove_stop_reply_of_remote_state): New function.
2679 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2680 Callers update. Pass remove_stop_reply_of_remote_state to
2682 (remote_parse_stop_reply): Initialize field 'rs'.
2684 2013-10-10 Will Newton <will.newton@linaro.org>
2686 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2689 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2691 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2692 serial_baud_show_cmd.
2693 (_initialize_cli_cmds): Delete the code creating the
2694 "set/show remotebaud" commands.
2695 * serial.c (baud_rate): Move here from top.c.
2696 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2697 (_initialize_serial): Create "set/show serial baud" commands.
2698 Add "set/show remotebaud" command aliases.
2699 * top.c (baud_rate): Moved to serial.c.
2700 * NEWS: Document the new "set/show serial baud" commands,
2701 replacing "set/show remotebaud".
2703 2013-10-09 Pedro Alves <palves@redhat.com>
2705 * breakpoint.c (insert_bp_location): Use memory_error_message to
2706 build the memory error string.
2707 * c-lang.c: Include "gdbcore.h".
2708 (c_get_string): Use memory_error to throw error.
2709 (target_xfer_memory_error): Delete.
2710 (memory_error_message): New, factored out from
2711 target_xfer_memory_error.
2712 (memory_error): Change parameter type to target_xfer_error.
2714 (read_memory): Use memory_error instead of
2715 target_xfer_memory_error.
2716 * gdbcore.h: Include "target.h".
2717 (memory_error): Change parameter type to target_xfer_error.
2718 (memory_error_message): Declare function.
2719 * target.c (target_read_memory, target_read_stack)
2720 (target_write_memory, target_write_raw_memory): Return
2721 TARGET_XFER_E_IO on error. Adjust comments.
2722 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2724 * target.h (target_read, target_insert_breakpoint)
2725 (target_remove_breakpoint): Adjust comments.
2726 * valprint.c (partial_memory_read): Rename parameter, and adjust
2728 (val_print_string): Use memory_error_message to build the memory
2731 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2733 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2734 result variable. Rename variable fopen_e_ever_failed to
2735 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2737 2013-10-09 Pedro Alves <palves@redhat.com>
2739 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2740 (monitor_write_memory_longlongs, monitor_write_memory_block):
2741 Constify 'myaddr' parameter.
2742 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2744 (monitor_xfer_partial): New function.
2745 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2746 hook. Install a to_xfer_partial hook.
2748 2013-10-09 Tom Tromey <tromey@redhat.com>
2750 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2751 bfd_get_alt_debug_link_info.
2753 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2755 New flag OBJF_NOT_FILENAME.
2756 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2757 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2759 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2760 symbol_file_add_from_bfd.
2761 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2763 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2765 * objfiles.h (OBJF_NOT_FILENAME): New.
2767 2013-10-08 Tom Tromey <tromey@redhat.com>
2769 * Makefile.in (SFILES): Add build-id.c.
2770 (HFILES_NO_SRCDIR): Add build-id.h.
2771 * build-id.c: New file, largely from elfread.c. Modified
2773 * build-id.h: New file.
2774 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2775 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2776 Search for dwz file using build-id.
2777 * elfread.c (build_id_bfd_get, build_id_verify)
2778 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2780 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2782 * ada-lang.c (compare_names_with_case): Renamed from
2783 compare_names, adding a new parameter "casing" and its handling.
2784 New function documentation.
2785 (compare_names): New function, implemented using
2786 compare_names_with_case.
2788 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2790 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2792 2013-10-07 Tom Tromey <tromey@redhat.com>
2794 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2795 demangled_names_hash.
2796 (free_objfile): Don't delete the demangled_names_hash.
2797 * objfiles.h (struct objfile_per_bfd_storage)
2798 <demangled_names_hash>: New field.
2799 (struct objfile) <demangled_names_hash>: Move to
2800 objfile_per_bfd_storage.
2801 * symfile.c (reread_symbols): Don't delete the
2802 demangled_names_hash.
2803 * symtab.c (create_demangled_names_hash): Update.
2804 (symbol_set_names): Update.
2806 2013-10-07 Tom Tromey <tromey@redhat.com>
2808 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2809 needs_relocations>: New fields.
2810 (gdb_bfd_requires_relocations): New function.
2811 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2812 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2813 the BFD needs relocations applied.
2815 2013-10-07 Pedro Alves <palves@redhat.com>
2817 PR breakpoints/11568
2818 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2819 the thread list" instead of "gone".
2821 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2823 * NEWS: Mention new convenience variable $_exitsignal.
2824 * corelow.c (core_open): Reset exit convenience variables. Set
2825 $_exitsignal to the uncaught signal which generated the corefile.
2826 * infrun.c (handle_inferior_event): Reset exit convenience
2827 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2828 (clear_exit_convenience_vars): New function.
2829 * inferior.h (clear_exit_convenience_vars): New prototype.
2831 2013-10-06 Yao Qi <yao@codesourcery.com>
2833 * varobj.h: Add comments to enum varobj_languages.
2835 2013-10-04 Doug Evans <dje@google.com>
2837 Add support for DWP file format version 2.
2838 * NEWS: Mention support for DWP file format version 2.
2839 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2840 union of asection, containing_section. New fields virtual_offset
2841 and is_virtual. Change type of readin filed from int to char.
2842 (dwo_sections, dwo_file): Tweak comments.
2843 (dwp_v2_section_ids): New enum.
2844 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2846 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2848 (virtual_v2_dwo_sections): New struct.
2849 (dwp_hash_table): New fields version, nr_columns. Change type of
2850 section_pool field to a union.
2851 (dwp_file): New field version.
2852 (dwarf2_has_info): Check for virtual sections.
2853 (get_containing_section): New function.
2854 (get_section_bfd_owner, get_section_bfd_section): Call it.
2855 (dwarf2_locate_sections): Update.
2856 (dwarf2_section_empty_p): Update.
2857 (dwarf2_read_section): Handle virtual sections.
2858 (locate_dwz_sections): Update.
2859 (create_dwp_hash_table): Document and handle V2 format.
2860 (locate_v1_virtual_dwo_sections): Renamed from
2861 locate_virtual_dwo_sections and update. All callers updated.
2862 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2863 Delete arg htab. Rename arg section_index to unit_index.
2864 All callers updated.
2865 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2867 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2868 (lookup_dwo_unit_in_dwp): Add V2 support.
2869 (dwarf2_locate_dwo_sections): Update.
2870 (dwarf2_locate_common_dwp_sections): Renamed from
2871 dwarf2_locate_dwp_sections and update. All callers updated.
2872 (dwarf2_locate_v2_dwp_sections): New function.
2873 (open_and_init_dwp_file): Add V2 support.
2874 (read_str_index): New locals str_section, str_offsets_section.
2876 2013-10-04 Pedro Alves <palves@redhat.com>
2878 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2879 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2880 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2881 describing comments with references to ptid.h.
2882 * common/ptid.h: Remove intro description of constructors,
2883 accessors and predicates.
2884 (struct ptid): Reformat.
2885 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2886 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2887 describing comments.
2889 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2891 * aix-thread.c (sync_threadlists): Add missing ')' in call
2894 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2896 * procfs.c (procfs_init_inferior): Fix typo causing the build
2899 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2901 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2903 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2905 * mi/mi-main.c (run_one_inferior): Add function description.
2906 Make ARG a pointer to an integer whose value determines whether
2907 we should "run" or "start" the program.
2908 (mi_cmd_exec_run): Add handling of the "--start" option.
2909 Reject all other command-line options.
2910 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2912 2013-10-04 Yao Qi <yao@codesourcery.com>
2914 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2915 (struct notif_client) <pending_event>: Moved
2916 to struct remote_notif_state.
2918 (struct remote_notif_state) <pending_event>: New field.
2919 (notif_event_xfree): Declare.
2920 * remote-notif.c (handle_notification): Adjust.
2921 (notif_event_xfree): New function.
2922 (do_notif_event_xfree): Call notif_event_xfree.
2923 (remote_notif_state_xfree): Call notif_event_xfree to free
2924 each element in field pending_event.
2925 * remote.c (discard_pending_stop_replies): Remove declaration.
2926 (discard_pending_stop_replies_in_queue): Declare.
2927 (remote_close): Call discard_pending_stop_replies_in_queue
2928 instead of discard_pending_stop_replies.
2929 (remote_start_remote): Adjust.
2930 (stop_reply_xfree): Call notif_event_xfree.
2931 (notif_client_stop): Adjust initialization.
2932 (remote_notif_remove_all): Rename it to ...
2933 (remove_stop_reply_for_inferior): ... this. Update comments.
2934 Don't check INF is NULL.
2935 (discard_pending_stop_replies): Return early if notif_state is
2936 NULL. Adjust. Don't check INF is NULL.
2937 (remote_notif_get_pending_events): Adjust.
2938 (discard_pending_stop_replies_in_queue): New function.
2939 (remote_wait_ns): Likewise.
2941 2013-10-04 Yao Qi <yao@codesourcery.com>
2943 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2944 (notif_queue): Remove.
2945 (remote_notif_process): Add one parameter 'notif_queue'.
2946 Update comments. Callers update.
2947 (remote_async_get_pending_events_token): Remove.
2948 (remote_notif_register_async_event_handler): Remove.
2949 (remote_notif_unregister_async_event_handler): Remove.
2950 (handle_notification): Add parameter 'notif_queue'. Update
2951 comments. Callers update.
2952 (notif_xfree): Remove.
2953 (remote_notif_state_allocate): New function.
2954 (remote_notif_state_xfree): New function.
2955 (_initialize_notif): Remove code to allocate queue.
2956 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2957 (struct remote_notif_state): New.
2958 (handle_notification): Update declaration.
2959 (remote_notif_process): Likewise.
2960 (remote_notif_register_async_event_handler): Remove.
2961 (remote_notif_unregister_async_event_handler): Remove.
2962 (remote_notif_state_allocate): Declare.
2963 (remote_notif_state_xfree): Declare.
2964 * remote.c (struct remote_state) <notif_state>: New field.
2965 (remote_close): Don't call
2966 remote_notif_unregister_async_event_handler. Call
2967 remote_notif_state_xfree.
2968 (remote_open_1): Don't call
2969 remote_notif_register_async_event_handler. Call
2970 remote_notif_state_allocate.
2972 2013-10-04 Yao Qi <yao@codesourcery.com>
2974 * varobj.c (create_child_with_value): Remove 'const' from the
2975 type of parameter 'name'.
2976 (varobj_add_child): Likewise.
2977 (install_dynamic_child): Remove 'const' from the type of
2979 (varobj_add_child): Likewise.
2980 (create_child_with_value): Likewise. Update comments. Don't
2982 (update_dynamic_varobj_children): Duplicate 'name'
2983 and pass it to install_dynamic_child.
2985 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2987 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2988 conversion logic to occur after PyLong_Check. Comment on order
2989 change significance.
2990 * python/py-arch.c (archpy_disassemble): Comment on order of
2991 conversion for integers and longs.
2993 2013-10-03 Pedro Alves <palves@redhat.com>
2995 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2996 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2997 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2998 PTRACE_O_TRACEFORK is not supported.
2999 (linux_test_for_tracesysgood): New function.
3000 (linux_test_for_tracefork): New function, factored out from
3001 linux_check_ptrace_features, and also don't kill child_pid here.
3003 2013-10-03 Tristan Gingold <gingold@adacore.com>
3005 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
3006 Remove verbose error reporting. Use detected state to
3007 thread_set_state call.
3008 (i386_darwin_dr_get): Fix return type. Remove verbose error
3010 Remove trailing spaces.
3012 2013-10-02 Pedro Alves <palves@redhat.com>
3014 * cp-valprint.c (cp_print_value_fields): Adjust calls to
3015 val_print_optimized_out.
3016 * jv-valprint.c (java_print_value_fields): Likewise.
3017 * p-valprint.c (pascal_object_print_value_fields): Likewise.
3018 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
3019 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
3020 new optimized out value.
3021 * findvar.c (address_from_register): Likewise.
3022 * frame.c (put_frame_register): Tweak error string to say the
3023 register was not saved, rather than optimized out.
3024 * infcmd.c (default_print_one_register_info): Adjust call to
3025 val_print_optimized_out. Use value_of_register instead of
3026 get_frame_register_value.
3027 * mi/mi-main.c (output_register): Use value_of_register instead of
3028 get_frame_register_value.
3029 * valprint.c (valprint_check_validity): Likewise.
3030 (val_print_optimized_out): New value parameter. If the value is
3031 lval_register, print <not saved> instead.
3032 (value_check_printable, val_print_scalar_formatted): Adjust calls
3033 to val_print_optimized_out.
3034 * valprint.h (val_print_optimized_out): New value parameter.
3035 * value.c (struct value) <optimized_out>: Extend comment.
3036 (error_value_optimized_out): New function.
3037 (require_not_optimized_out): Use it. Use a different string for
3038 lval_register values.
3039 * value.h (error_value_optimized_out): New declaration.
3040 * NEWS: Mention <not saved>.
3042 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3044 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3045 strcmp to compare two symtab filenames.
3047 2013-10-02 Joel Brobecker <brobecker@adacore.com>
3049 * symtab.c (search_symbols_equal): Delete.
3050 (sort_search_symbols_remove_dups): Replace call to
3051 search_symbols_equal by call to compare_search_syms,
3052 adjusting as necessary.
3054 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3057 * python/python.c: Document gdb.execute command in Python help.
3059 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3061 * python/py-frame.c (frame_info_to_frame_object): Use
3062 gdbpy_convert_exception. Clean up Python object on failure.
3064 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
3066 * python/lib/gdb/command/frame_filters.py
3067 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3068 (ShowFrameFilterPriority.invoke): Ditto.
3070 2013-10-01 Keith Seitz <keiths@redhat.com>
3072 * linespec.c (struct ls_parser): Make 'saved_arg' const.
3073 (parse_linespec): Make 'argptr' const.
3074 Remove temporary cast of 'argptr' to const char **.
3075 (decode_line_full): Pass const pointer to parse_linespec.
3076 (decode_line_1): Likewise.
3077 (decode_objc): Make local variable 'new_argptr' const.
3078 (find_function_symbols): Remove temporary cast to char *
3080 * objc-lang.c (find_imps): Make argument 'method' const.
3082 * objc-lang.h (find_imps): Likewise.
3084 2013-10-01 Keith Seitz <keiths@redhat.com>
3086 * completer.c (skip_quoted_chars): Make all arguments const.
3088 (skip_quoted): Likewise.
3089 * completer.h (skip_quoted_chars): Likewise.
3090 (skip_quoted): Likewise.
3091 * defs.h (skip_quoted): Remove duplicate declaration.
3092 * jv-exp.y: Include completer.h.
3093 (yylex): Remove unneccessary cast to char * fro skip_quoted.
3094 * p-exp.y: Include completer.h.
3096 2013-10-01 Keith Seitz <keiths@redhat.com>
3098 * c-exp.y (parse_number): Make first argument const.
3099 Make a copy of the input to manipulate.
3100 (c_parse_escape): Make first argument const.
3101 Make local variable 'tokptr' const.
3102 (parse_string_or_char): Make first two arguments const.
3103 (macro_original_text): Make const.
3104 (lex_one_token): Make local variable 'tokstart' const.
3105 Likewise for local variables named 'p'.
3106 Cast away const for struct stoken (temporary).
3107 * c-lang.h (c_parse_escpae): Make first argument const.
3108 * cli/cli-cmds.c (echo_command): Make local variable 'p'
3110 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3112 * f-exp.y (parse_number): Make first argument const.
3113 (match_string_literal): Make local variable 'tokstart'
3115 (yylex): Make local variable 'p' const.
3116 Cast away const for struct stoken (temporary).
3117 * go-exp.y (parse_number): Make first argument const.
3118 (parse_string_or_char): Likewise.
3119 Make local variable 'tokstart' const.
3120 (lex_one_token): Likewise for numerous locals called 'p'.
3121 Cast away const for struct stoken (temporary).
3122 * jv-exp.y (parse_number): Make first argument const.
3123 Make local variables 'tokstart' and 'tokptr' const.
3124 Cast away const for call to skip_quoted (temporary).
3125 (yylex): Make local variable 'p' const.
3126 Cast away const for struct stoken (temporary).
3127 * m2-exp.y (parse_number): Make local variable 'p' const.
3128 (yylex): Likewise for 'tokstart'.
3129 Cast away const for struct stoken (temporary).
3130 Make local variable 'p' const.
3131 * macroexp.c (get_character_constant): Pass a const string
3133 (get_string_literal): Likewise.
3134 (macro_expand_next): Make first argument const.
3135 Cast away const for init_shared_buffer.
3136 * macroexp.h (macro_expand_next): Make first argument const.
3137 * p-exp.y (yylex): Make a local copy of 'lexptr'.
3138 Pass a const string to c_parse_escape.
3139 Make local variables 'p' and 'namestart' const.
3140 * parse.c (lexptr): Make const.
3141 (prev_lexptr): Likewise.
3142 (find_template_name_end): Return const.
3143 Make argument const, too.
3144 (parse_exp_in_context): Make first argument const.
3145 Remove the entire const_hack.
3146 (parse_exp_in_context_1): Make first argument const.
3147 * parser-defs.h (find_template_name_end): Return const.
3148 Make argument const, too.
3149 (lexptr): Make const.
3150 (prev_lexptr): Likewise.
3151 * utils.c (parse_escape): Make second argument const.
3152 * utils.h (parse_escape): Likewise.
3154 2013-10-01 Keith Seitz <keiths@redhat.com>
3156 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3158 (block_lookup): Make 'raw_name' and 'name' const.
3159 * ada-lex.l (processString): Update for struct stoken.ptr.
3160 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3161 (operator_stoken): Likewise.
3162 (lex_one_token): Remove temporary cast to char * for
3164 * f-exp.y (yylex): Likewise.
3165 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3166 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3167 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3169 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3170 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3171 * linespec.c (struct ls_parser): Make 'stream' const.
3172 (find_parameter_list_end): Make argument 'input' and local
3174 (linespec_lexer_lex_string): Make local variables 'start' and
3176 Use skip_spaces_const instead of skip_spaces.
3177 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3179 (parse_linespec): Temporarily cast 'argptr' to const for
3180 'parser->lexer.stream'.
3181 * m2-exp.y (yylex): Remove temporary cast to char * for
3183 * objc-lang.c (add_msglist): Make local variable 'p' const.
3184 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3185 (exp : STRING): Make 'sp' const.
3186 (parse_number): Make argument 'p' const.
3187 * parser-defs.h (struct stoken): Make 'ptr' const.
3189 2013-10-01 Doug Evans <dje@google.com>
3191 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3193 2013-10-01 Yao Qi <yao@codesourcery.com>
3195 * varobj.c (c_value_of_root): Remove declaration.
3196 (cplus_value_of_root, java_value_of_root): Likewise.
3197 (ada_value_of_root): Likewise.
3198 (struct language_specific) <value_of_root>: Remove.
3199 (languages): Update initialization.
3200 (check_scope): Move earlier.
3201 (c_value_of_root): Move earlier and rename to ...
3202 (value_of_root_1): ... this.
3203 (value_of_root): Caller update.
3204 (cplus_value_of_root, java_value_of_root): Remove.
3205 (ada_value_of_root): Remove.
3207 2013-10-01 Yao Qi <yao@codesourcery.com>
3209 * varobj.c (varobj_format_string): Remove "unknown".
3210 (languages): Remove the first element.
3211 * varobj.h (enum varobj_languages): Remove vlang_c.
3213 2013-10-01 Yao Qi <yao@codesourcery.com>
3215 * varobj.c (struct language_specific) <language>: Remove.
3216 (languages): Update the initialization.
3218 2013-10-01 Yao Qi <yao@codesourcery.com>
3220 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3221 "solib-target.h". Include "windows-tdep.h".
3222 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3223 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3224 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3225 windows-tdep.o to gdb_target_obs.
3227 2013-10-01 Yao Qi <yao@codesourcery.com>
3229 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3231 (amd64_windows_init_abi): Don't call set_solib_ops and
3232 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3233 windows_init_abi instead.
3234 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3236 (i386_cygwin_init_abi): Don't call set_solib_ops,
3237 set_gdbarch_has_dos_based_file_system and
3238 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3239 windows_init_abi instead.
3240 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3241 (windows_init_abi): New function.
3242 (windows_iterate_over_objfiles_in_search_order): Make it
3244 * windows-tdep.h (windows_init_abi): Declare.
3245 (windows_iterate_over_objfiles_in_search_order): Remove
3248 2013-10-01 Jerome Guitton <guitton@adacore.com>
3250 Checked in by Joel Brobecker <brobecker@adacore.com>
3251 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3252 incomplete dictionnary instead of None in case of missing
3253 environment variables.
3254 (elinos_init): in case of an incomplete environment, best
3255 effort to load system libraries instead of abort.
3257 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3259 * ada-lang.c (ada_has_this_exception_support): Ignore
3260 mst_solib_trampoline minimal symbols.
3262 2013-09-30 Tristan Gingold <gingold@adacore.com>
3264 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3265 hardware watchpoint.
3266 (i386_darwin_dr_set): Support 32 and 64 bit states.
3267 (i386_darwin_dr_get): Likewise.
3268 (i386_darwin_dr_set_control): Make static.
3269 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3270 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3272 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3274 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3275 Replace TIDGET with ptid_get_lwp.
3276 Replace GET_LWP with ptid_get_lwp.
3277 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3278 Replace BUILD_THREAD with ptid_build.
3279 Replace BUILD_LWP with ptid_build.
3280 Replace PIDGET with ptid_get_pid.
3281 Replace TIDGET with ptid_get_lwp.
3282 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3283 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3284 Replace TIDGET with ptid_get_lwp.
3285 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3286 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3287 Replace TIDGET with ptid_get_lwp.
3288 Replace GET_LWP with ptid_get_lwp.
3289 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3291 * breakpoint.c: Likewise.
3292 * common/ptid.c (ptid_is_pid): Condense check for
3293 null_ptid and minus_one_ptid.
3294 (ptid_lwp_p): New function.
3295 (ptid_tid_p): New function.
3296 * common/ptid.h: Update comments for accessors.
3297 (ptid_lwp_p): New prototype.
3298 (ptid_tid_p): New prototype.
3299 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3300 * gcore.c: Replace PIDGET with ptid_get_pid.
3301 * gdbthread.h: Likewise.
3302 * gnu-nat.c: Likewise.
3303 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3304 Replace TIDGET with ptid_get_lwp.
3305 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3306 * hppanbsd-nat.c: Likewise.
3307 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3308 Replace TIDGET with ptid_get_lwp.
3309 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3310 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3311 * infcmd.c: Likewise.
3312 * inferior.h: Likewise.
3313 * inflow.c: Likewise.
3314 * infrun.c: Likewise.
3315 * linux-fork.c: Likewise.
3316 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3317 Replace GET_PID with ptid_get_pid.
3318 Replace is_lwp with ptid_lwp_p.
3319 Replace GET_LWP with ptid_get_lwp.
3320 Replace BUILD_LWP with ptid_build.
3322 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3324 * common/linux-btrace.c: Move sys/syscall.h out of the
3325 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3326 Also check for SYS_perf_event_open before attempting to buid.
3328 2013-09-27 Doug Evans <dje@google.com>
3330 * dwarf2read.c (dwarf2_section_info): Add comment.
3331 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3333 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3334 (dwarf2_read_section): Delete unused local "header". Add section
3335 name to error message.
3336 (create_dwo_in_dwp): Tweak comment.
3337 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3339 * dwarf2read.c (die_reader_specs): Tweak comment.
3340 (get_section_bfd_owner, get_section_bfd_section): New functions.
3341 (get_section_name, get_section_file_name): New functions.
3342 (get_section_id, get_section_flags): New functions.
3343 (*): Use new functions to access section fields.
3345 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3346 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3347 arg "htab". All callers updated.
3348 (create_debug_types_hash_table): Remove redundant copy of
3350 (create_dwo_in_dwp): Tweak comments.
3351 (read_str_index): Tweak comment. Record dwarf form name in static
3354 2013-09-27 Pedro Alves <palves@redhat.com>
3356 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3357 (remote_filename_p): Add comment.
3358 * remote.c (remote_filename_p): Adjust to use
3359 REMOTE_SYSROOT_PREFIX.
3360 * solib.c (solib_find): When deciding whether we need to add a
3361 directory separator, check whether the sysroot is "remote:"
3362 instead of checking whether the patch has a drive spec. Add
3365 2013-09-27 Pedro Alves <palves@redhat.com>
3367 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3369 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3372 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3374 Fix set debug frame output.
3375 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3376 SENTINEL_FRAME entry lower to match enum frame_type order.
3378 2013-09-26 Pierre Muller <muller@sourceware.org>
3380 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3381 AMD64_R15_REGNUM when a register index is expected.
3382 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3383 Substitute in array.
3384 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3385 (amd64_push_arguments): Substitute in integer_regnum array.
3387 2013-09-25 Doug Evans <dje@google.com>
3389 * objfiles.c (allocate_objfile): Move comment to better place.
3391 New option "set debug symfile on".
3392 * NEWS: Mention "set debug symfile".
3393 * Makefile.in (SFILES): Add symfile-debug.c.
3394 (COMMON_OBS): Add symfile-debug.o.
3395 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3396 objfile's symbol functions.
3397 * objfiles.h (objfile_set_sym_fns): Declare.
3398 * symfile-debug.c: New file.
3399 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3400 objfile's symbol functions.
3401 (reread_symbols): Ditto.
3403 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3405 (add_symtab_fns): Update prototype.
3406 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3407 (registered_sym_fns): ... this.
3408 (symtab_fns): Update.
3409 (add_symtab_fns): New arg "flavour". All callers updated.
3410 (find_sym_fns): Rewrite to use new sym_fns registry.
3412 * symfile.h (struct sym_fns): Add "objfile" argument to
3413 sym_read_linetable. All uses updated.
3415 * symtab.c (domain_name, search_domain_name): New functions.
3416 * symtab.h (domain_name, search_domain_name): Declare.
3418 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3419 map_matching_symbols so objfile is first. All uses updated.
3420 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3421 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3423 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3426 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3429 2013-09-24 Doug Evans <dje@google.com>
3431 * objfiles.c (free_objfile): Move comment.
3433 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3435 * ada-exp.y (string_to_operator): Delete.
3436 (dummy_string_to_ada_operator): Delete.
3438 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3441 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3443 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3444 call_dummy_integer_regs, and classify.
3445 * amd64-tdep.h (amd64_classify): Add declaration.
3446 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3447 (amd64_reg_class): Delete, moved to i386-tdep.h.
3448 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3449 Replace call to amd64_classify by call to tdep->classify.
3450 (amd64_push_arguments): Get the list of registers to use for
3451 passing integer parameters from the gdbarch tdep structure,
3452 rather than using a hardcoded one. Replace calls to amd64_classify
3453 by calls to tdep->classify.
3454 (amd64_push_dummy_call): Get the register number used for
3455 the "hidden" argument from tdep->call_dummy_integer_regs.
3456 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3457 and tdep->call_dummy_integer_regs. Set tdep->classify.
3459 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3462 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3463 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3464 where tdep->memory_args_by_pointer is non-zero.
3466 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3469 * i386-tdep.h (struct gdbarch_tdep): Add new field
3470 integer_param_regs_saved_in_caller_frame.
3471 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3472 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3474 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3476 * amd64-windows-tdep.c: #include "value.h"
3477 (amd64_windows_classify): Delete.
3478 (amd64_windows_passed_by_integer_register)
3479 (amd64_windows_passed_by_xmm_register)
3480 (amd64_windows_passed_by_pointer)
3481 (amd64_windows_adjust_args_passed_by_pointer)
3482 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3483 (amd64_windows_push_dummy_call): New functions.
3484 (amd64_windows_init_abi): Remove setting of
3485 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3486 tdep->classify, tdep->memory_args_by_pointer and
3487 tdep->integer_param_regs_saved_in_caller_frame.
3488 Add call to set_gdbarch_push_dummy_call.
3490 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3492 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3493 objfile->original_name.
3495 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3497 Pass down original filename for objfile.
3498 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3499 * elfread.c (elf_symfile_read): Likewise.
3500 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3501 longer set ORIGINAL_NAME.
3502 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3503 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3504 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3505 symbol_file_add_from_bfd call.
3506 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3507 (macho_check_dsym): Add parameter filenamep. Change function comment.
3509 (macho_symfile_read): New variable dsym_filename. Update
3510 macho_check_dsym call. Use it for symbol_file_add_separate.
3511 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3512 it. Use it for objfile->original_name.
3513 (objfile_name): Return OBFD's filename, if available.
3514 * objfiles.h (allocate_objfile): Add new parameter name.
3515 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3516 * symfile-mem.c (symbol_file_add_from_memory): Update
3517 symbol_file_add_from_bfd call.
3518 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3520 (symbol_file_add_with_addrs): New parameter name, add function comment
3521 for it. Remove variable name. Update allocate_objfile call.
3522 (symbol_file_add_separate): New parameter name, add function comment
3523 for it. Update symbol_file_add_with_addrs call.
3524 (symbol_file_add_from_bfd): New parameter name. Update
3525 symbol_file_add_with_addrs call.
3526 (symbol_file_add): Update symbol_file_add_from_bfd call.
3527 (reread_symbols): New variable original_name. Save
3528 objfile->original_name by it.
3529 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3532 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3534 Code cleanup: Add objfile_name accessor function.
3535 * ada-lang.c (is_known_support_routine): Use objfile_name.
3536 * auto-load.c (source_gdb_script_for_objfile)
3537 (auto_load_objfile_script): Likewise.
3538 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3539 * dbxread.c (dbx_symfile_read): Likewise.
3540 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3541 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3542 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3543 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3544 (lookup_dwp_signatured_type, lookup_dwo_unit)
3545 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3546 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3547 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3548 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3549 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3550 (read_subrange_type, load_partial_dies, read_partial_die)
3551 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3552 (die_containing_type, build_error_marker_type, lookup_die_type)
3553 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3554 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3555 (get_DW_AT_signature_type, write_psymtabs_to_index)
3556 (save_gdb_index_command): Likewise.
3557 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3559 * expprint.c (dump_subexp_body_standard): Likewise.
3560 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3561 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3563 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3564 obj_name, use objfile_name for it, use the variable.
3565 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3567 * machoread.c (macho_symtab_read, macho_check_dsym)
3568 (macho_symfile_relocate): Likewise.
3569 * maint.c (maintenance_translate_address): Likewise.
3570 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3571 * minsyms.c (install_minimal_symbols): Likewise.
3572 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3574 (filter_overlapping_sections): Use objfile_name.
3575 (objfile_name): New function.
3576 * objfiles.h (struct objfile): Rename field name to original_name.
3577 (objfile_name): New prototype.
3578 * printcmd.c (sym_info, address_info): Use objfile_name.
3579 * probe.c (parse_probes, collect_probes, compare_probes)
3580 (info_probes_for_ops): Likewise.
3581 * progspace.c (clone_program_space): Likewise.
3582 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3583 (maintenance_info_psymtabs): Likewise.
3584 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3585 (source_section_scripts): Likewise.
3586 * python/py-objfile.c (objfpy_get_filename): Likewise.
3587 * python/py-progspace.c (pspy_get_filename): Likewise.
3588 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3589 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3590 * solib.c (solib_read_symbols): Likewise.
3591 * stabsread.c (scan_file_globals): Likewise.
3592 * stap-probe.c (handle_stap_probe): Likewise.
3593 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3594 (find_separate_debug_file_by_debuglink): Likewise.
3595 (reread_symbols): Likewise. Use the objfile field name renamed to
3597 (allocate_symtab): Use objfile_name.
3598 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3599 (dump_objfile, dump_msymbols, dump_symtab_1)
3600 (maintenance_print_msymbols, maintenance_print_objfiles)
3601 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3602 * target.c (target_translate_tls_address, target_info): Likewise.
3603 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3606 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3609 * probe.c (parse_probes): Rename variable objfile_name to
3612 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3614 Remove solib-sunos.c.
3615 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3616 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3617 * objfiles.c (rt_common_objfile): Remove.
3618 (free_objfile): Remove rt_common_objfile comparison.
3619 * objfiles.h (rt_common_objfile): Remove.
3620 * solib-sunos.c: Remove.
3621 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3623 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3625 Remove a.out NetBSD and OpenBSD hosts.
3626 * NEWS (Removed native configurations): New.
3627 * config/arm/nbsdaout.mh: Remove.
3628 * config/i386/nbsdaout.mh: Remove.
3629 * config/i386/obsdaout.mh: Remove.
3630 * config/m68k/nbsdaout.mh: Remove.
3631 * config/sparc/nbsdaout.mh: Remove.
3632 * config/vax/nbsdaout.mh: Remove.
3633 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3634 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3635 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3637 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3638 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3639 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3641 2013-09-23 Tom Tromey <tromey@redhat.com>
3643 * linespec.c (struct minsym_and_objfile): Remove.
3644 (minsym_and_objfile_d): Remove.
3645 (struct linespec, struct collect_info, linespec_parse_basic)
3646 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3647 (compare_msymbols, find_method, find_function_symbols)
3648 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3649 (add_minsym, search_minsyms_for_name): Update.
3651 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3653 * regcache.c: Add include of valprint.h.
3654 (dump_endian_bytes): Delete.
3655 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3657 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3659 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3661 2013-09-19 Pedro Alves <palves@redhat.com>
3663 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3666 2013-09-19 Pedro Alves <palves@redhat.com>
3667 Thomas Schwinge <thomas@codesourcery.com>
3668 Yue Lu <hacklu.newborn@gmail.com>
3670 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3671 Take a gdb_byte pointer instead of a char pointer.
3673 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3674 gnu_xfer_partial helper.
3675 (gnu_xfer_partial): New function.
3676 (gnu_target): Don't install a deprecated_xfer_memory hook.
3677 Install a to_xfer_partial hook.
3679 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 * main.c (captured_main): Replace catch_command_errors by
3683 catch_command_errors_const. Twice.
3684 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3685 (symbol_file_add): Make name parameter const.
3686 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3687 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3688 variable name. Change their usage accordingly.
3689 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3691 (symbol_file_add_main): Make args parameter const.
3693 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3694 Ulrich Weigand <uweigand@de.ibm.com>
3696 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3698 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3700 2013-09-18 Pedro Alves <palves@redhat.com>
3701 Yue Lu <hacklu.newborn@gmail.com>
3703 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3704 (gnu_create_inferior)
3705 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3706 (set_sig_thread_cmd): Use the lwpid field of ptids to
3707 store/extract thread ids instead of the tid field.
3708 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3710 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3712 * infcmd.c (default_print_one_register_info): Add detection of
3713 optimized out values.
3714 (default_print_registers_info): Switch to using
3715 get_frame_register_value.
3717 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3719 * infrun.c (handle_inferior_event): Check if we know the
3720 function start address before setting a resume breakpoint.
3722 2013-09-18 Pedro Alves <palves@redhat.com>
3724 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3725 minus_one_ptid instead of looking at the ptid's tid field and
3726 comparing that to -1.
3728 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3730 * main.h (get_gdb_program_name): Remove extra whitespace.
3732 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3734 * main.h (get_gdb_program_name): Add declaration.
3735 * main.c (get_gdb_program_name): Add definition.
3737 2013-09-17 Doug Evans <dje@google.com>
3739 * dwarf2read.c: Move definitions of complaint functions to after
3740 forward declarations of local functions.
3742 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3743 Pedro Alves <palves@redhat.com>
3746 * breakpoint.c (remove_threaded_breakpoints): New function.
3747 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3748 as thread_exit observer.
3750 2013-09-17 Pedro Alves <palves@redhat.com>
3753 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3754 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3755 * corelow.c (core_open):
3756 * frame.h (print_stack_frame, print_frame_info): New
3757 'set_current_sal' parameter.
3758 * infcmd.c (finish_command, kill_command): Adjust call to
3760 * inferior.c (inferior_command): Likewise.
3761 * infrun.c (normal_stop): Likewise.
3762 * linux-fork.c (linux_fork_context): Likewise.
3763 * record-full.c (record_full_goto_entry, record_full_restore):
3765 * remote-mips.c (common_open): Likewise.
3766 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3768 (print_frame_info): New 'set_current_sal' parameter. Set the last
3769 displayed sal depending on the new paremeter instead of looking at
3771 (backtrace_command_1, select_and_print_frame, frame_command)
3772 (current_frame_command, up_command, down_command): Adjust call to
3774 * thread.c (print_thread_info, restore_selected_frame)
3775 (do_captured_thread_select): Adjust call to print_stack_frame.
3776 * tracepoint.c (tfind_1): Likewise.
3777 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3778 (mi_cmd_stack_info_frame): Likewise.
3779 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3780 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3782 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3784 * value.c (isvoid_internal_fn): Replace "parameter" with
3787 2013-09-16 Stan Shebs <stan@codesourcery.com>
3789 * README: Update references to writing code for GDB.
3790 * configure.ac (build_warnings): Remove obsolete comment.
3791 * configure: Regenerate.
3792 * gdbarch.sh: Remove references to gdbint.texinfo.
3793 * gdbarch.h: Regenerate.
3794 * gdbtypes.c (objfile_type): Remove comments referencing internals
3797 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3799 * NEWS: Mention new convenience function $_isvoid.
3800 * value.c (isvoid_internal_fn): New function.
3801 (_initialize_values): Add new convenience function $_isvoid.
3803 2013-09-16 Pierre Muller <muller@sourceware.org>
3805 * arm-linux-tdep.c: Add "elf/common.h" header.
3806 Remove AT_HWCAP macro definintion as it is provided in
3808 * s390-tdep.c: Remove system header <elf.h>
3809 Add "elf/common.h" header for AT_HWCAP definition.
3810 (s390_core_read_description): Use correct CORE_ADDR
3811 for hwcap local variable used as third parameter
3812 of function target_auxv_search.
3814 2013-09-14 Pierre Muller <muller@sourceware.org>
3815 Tom Tromey <tromey@redhat.com>
3816 Pedro Alves <palves@redhat.com>
3818 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3819 mode if operating system doesn't know O_CLOEXEC.
3821 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3824 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3827 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3829 * NEWS: Mention TDB support.
3830 * features/s390-tdb.xml: New file.
3831 * features/s390-te-linux64.xml: New file.
3832 * features/s390x-te-linux64.xml: New file.
3833 * features/Makefile (WHICH): Add new tdescs above.
3834 (s390-te-linux64-expedite): Set.
3835 (s390x-te-linux64-expedite): Set.
3836 * features/s390-te-linux64.c: New file (generated).
3837 * features/s390x-te-linux64.c: New file (generated).
3838 * regformats/s390-te-linux64.dat: New file (generated).
3839 * regformats/s390x-te-linux64.dat: New file (generated).
3840 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3841 (HWCAP_S390_TE): Likewise.
3842 (S390_TDB_DWORD0_REGNUM): Likewise.
3843 (S390_TDB_DWORD0_REGNUM): Likewise.
3844 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3845 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3846 (S390_TDB_ATIA_REGNUM): Likewise.
3847 (S390_TDB_R0_REGNUM): Likewise.
3848 (S390_TDB_R1_REGNUM): Likewise.
3849 (S390_TDB_R2_REGNUM): Likewise.
3850 (S390_TDB_R3_REGNUM): Likewise.
3851 (S390_TDB_R4_REGNUM): Likewise.
3852 (S390_TDB_R5_REGNUM): Likewise.
3853 (S390_TDB_R6_REGNUM): Likewise.
3854 (S390_TDB_R7_REGNUM): Likewise.
3855 (S390_TDB_R8_REGNUM): Likewise.
3856 (S390_TDB_R9_REGNUM): Likewise.
3857 (S390_TDB_R10_REGNUM): Likewise.
3858 (S390_TDB_R11_REGNUM): Likewise.
3859 (S390_TDB_R12_REGNUM): Likewise.
3860 (S390_TDB_R13_REGNUM): Likewise.
3861 (S390_TDB_R14_REGNUM): Likewise.
3862 (S390_TDB_R15_REGNUM): Likewise.
3863 (S390_NUM_REGS): Increase.
3864 (S390_IS_TDBREGSET_REGNUM): New macro.
3865 (s390_regmap_tdb): Declare.
3866 (s390_sizeof_tdbregset): Define.
3867 (tdesc_s390_te_linux64): Declare.
3868 (tdesc_s390x_te_linux64): Likewise.
3869 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3870 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3871 (s390_regmap_tdb): New regmap.
3872 (s390_supply_tdb_regset): New function.
3873 (s390_tdb_regset): New regset.
3874 (s390_linux64v2_regset_sections): Add TDB regset to list.
3875 (s390x_linux64v2_regset_sections): Likewise.
3876 (s390_regset_from_core_section): Recognize TDB core note section.
3877 (s390_core_read_description): If HWCAP indicates TE support,
3878 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3879 (s390_gdbarch_init): Handle TDB regset.
3880 (_initialize_s390_tdep): Initialize new tdescs.
3881 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3882 (have_regset_tdb): New variable.
3883 (s390_native_supply): Support register invalidation.
3884 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3885 (check_regset): Treat ENODATA as "regset exists".
3886 (s390_linux_fetch_inferior_registers): Add TDB.
3887 (s390_read_description): Check for TDB existence and select
3889 * gdbserver/Makefile.in (clean): Add removal of new makefile
3891 (s390-te-linux64.c): New makefile target.
3892 (s390x-te-linux64.c): Likewise.
3893 * gdbserver/configure.srv (srv_regobj): Append new objects
3894 s390-te-linux64.o and s390x-te-linux64.o.
3895 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3896 s390x-te-linux64.xml, and s390-tdb.xml.
3897 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3899 (tdesc_s390_te_linux64): Likewise.
3900 (init_registers_s390x_te_linux64): Likewise.
3901 (tdesc_s390x_te_linux64): Likewise.
3902 (s390_check_regset): Treat ENODATA as "regset exists".
3903 (s390_arch_setup): Add TDB regset support.
3904 (initialize_low_arch): Initialize registers for new tdescs.
3906 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3908 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3909 (S390_IS_FPREGSET_REGNUM): New macro.
3910 * s390-tdep.c (s390_dwarf_regmap): Make const.
3911 (regnum_is_gpr_full): New function for replacing repeated code.
3912 (s390_pseudo_register_name): Use it.
3913 (s390_pseudo_register_type): Likewise.
3914 (s390_pseudo_register_read): Likewise.
3915 (s390_pseudo_register_write): Likewise.
3916 (s390_unwind_pseudo_register): Likewise.
3917 (s390_regmap_gregset): New format for regmap.
3918 (s390x_regmap_gregset): Likewise.
3919 (s390_regmap_fpregset): Likewise.
3920 (s390_regmap_upper): Likewise.
3921 (s390_regmap_last_break): Likewise.
3922 (s390_regmap_system_call): Likewise.
3923 (s390_supply_regset): Adjust to new regmap format.
3924 (s390_collect_regset): Likewise.
3925 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3926 (s390_native_collect): Likewise.
3927 (supply_gregset): Likewise.
3928 (fill_gregset): Likewise.
3929 (supply_fpregset): Likewise.
3930 (fill_fpregset): Likewise.
3931 (fetch_regset): Likewise.
3932 (store_regset): Likewise.
3933 (s390_linux_fetch_inferior_registers): Likewise.
3934 (s390_linux_fetch_inferior_registers): Likewise.
3936 2013-09-12 Andrew Pinski <apinski@cavium.com>
3938 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3940 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3942 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3944 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3946 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3948 2013-09-06 Pedro Alves <palves@redhat.com>
3950 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3951 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3952 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3953 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3954 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3957 2013-09-06 Pedro Alves <palves@redhat.com>
3959 * remote-sim.c (dump_mem): Constify buf parameter.
3960 gdbsim_xfer_inferior_memory): Rename to ...
3961 (gdbsim_xfer_memory): ... this. Adjust interface as
3962 target_xfer_partial helper.
3963 (gdbsim_xfer_partial): New function.
3964 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3965 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3967 2013-09-06 Pedro Alves <palves@redhat.com>
3969 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3970 host_address_to_string, and send debug output to gdb_stdlog.
3972 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3974 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3975 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3976 gdb_target_obs for cris target.
3977 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3978 (cris_gdbarch_init): Move calls to
3979 set_gdbarch_fetch_tls_load_module_address and
3980 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3981 Add call to gdbarch_init_osabi.
3982 * cris-linux-tdep.c: New file.
3983 * cris-tdep.h: New file.
3985 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3987 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3988 to deprecated_init_ui_hook.
3990 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3992 * cli/cli-interp.c (_initialize_cli_interp): Add a
3993 command_loop_proc to interp_procs.
3994 * event-top.c (cli_command_loop): Change signature to match
3995 interp_command_loop_ftype.
3996 * event-top.h (cli_command_loop): Same.
3997 * interps.c (interp_new): Require every interpreter to have a
3999 (current_interp_command_loop): Just call the command_loop_proc on
4000 the current interpreter.
4001 * tui/tui-interp.c (_initialize_tui_interp): Add a
4002 command_loop_proc to interp_procs.
4004 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4006 * cris-tdep.c (cris_gdbarch_init): Add call to
4007 get_gdbarch_fetch_tls_load_module_address.
4009 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4011 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
4012 (cris_elf_gregset_t): Rename from elf_gregset_t.
4013 (crisv32_elf_gregset_t): Adjust.
4014 (cris_supply_gregset, fetch_core_registers): Adjust.
4016 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
4018 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
4020 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
4022 * defs.h (deprecated_command_loop_hook): Remove, including
4023 references in comments.
4024 * interps.c (current_interp_command_loop): No longer use
4025 deprecated_command_loop_hook.
4026 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
4028 * top.c (deprecated_command_loop_hook): Remove.
4030 2013-09-05 Pedro Alves <palves@redhat.com>
4032 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
4033 local is now int instead of ULONGEST. Print it with %d
4034 instead of paddress.
4036 2013-09-05 Tristan Gingold <gingold@adacore.com>
4038 * MAINTAINERS: Remove avr maintainership.
4040 2013-09-05 Pedro Alves <palves@redhat.com>
4042 * findvar.c (value_of_register): Rework in terms of
4043 value_of_register_lazy.
4045 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
4047 * symfile.c (add_symbol_file_command): Remove trailing
4048 whitespaces and blank line after comment.
4050 2013-09-05 Pedro Alves <palves@redhat.com>
4052 * tui/tui-regs.c (tui_register_format): Don't look at the
4053 register's name here. Return string representing register
4054 value instead of storing it in the data element.
4055 (tui_get_register): Compare register string representations
4056 instead of register value states and contents.
4058 2013-09-05 Pedro Alves <palves@redhat.com>
4061 * tui/tui-regs.c (tui_show_registers): Show registers of the
4062 selected frame, not the current frame.
4064 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
4066 * MAINTAINERS (Write After Approval): Add myself to the list.
4068 2013-09-04 Doug Evans <dje@google.com>
4070 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4071 (queue_and_load_dwo_tu): New function.
4072 (lookup_dwo_signatured_type): Set per_cu.tu_read.
4073 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4074 Make dependent_cu optional.
4075 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4076 and an older .gdb_index is in use, queue and load all its TUs too.
4078 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4080 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4081 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4082 variable search_flags.
4083 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4084 (OPF_RETURN_REALPATH): ... here.
4085 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4086 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4088 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4090 * solib.c (solib_find): Likewise. Four times.
4091 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4092 in the function comment and for the realpath_fptr variable.
4093 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4094 (find_and_open_source): Likewise. Twice.
4095 * symfile.c (symfile_bfd_open): Likewise, also twice.
4097 2013-09-04 Doug Evans <dje@google.com>
4099 * progspace.c (save_current_space_and_thread): Remove unnecessary
4100 call to save_current_inferior.
4102 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
4104 * sh64-tdep.c (sh64_do_register): Return after printing message
4105 about unavailable register contents.
4107 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
4108 Pedro Alves <palves@redhat.com>
4110 * symfile.c (add_symbol_file_command): Error out on unknown
4111 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4112 options and collapse into single conditional branch.
4114 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
4116 * inf-child.c (inf_child_follow_fork): New parameter
4118 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4119 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4120 * inferior.h (detach_fork): Remove.
4121 * infrun.c (detach_fork): Adjust comment and make it
4123 (follow_fork): Pass detach_fork parameter to
4125 * linux-nat.c (linux_child_follow_fork): New parameter
4127 * target.c (target_follow_fork): New parameter detach_fork.
4128 Pass detach_fork as parameter and print its value.
4129 * target.h (struct target_ops) <to_follow_fork>: New int
4131 (target_follow_fork): New parameter detach_fork.
4133 2013-09-03 Joel Brobecker <brobecker@adacore.com>
4135 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4136 Replace sec->bfd by sec->the_bfd_section->owner.
4138 2013-09-03 Yao Qi <yao@codesourcery.com>
4140 * linux-tdep.c (linux_is_uclinux): New function. Code moved
4141 from linux_has_shared_address_space.
4142 (linux_has_shared_address_space): Call linux_is_uclinux.
4143 * linux-tdep.h (linux_is_uclinux): Declare.
4144 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4147 2013-09-03 Yao Qi <yao@codesourcery.com>
4149 * config/djgpp/fnchange.lst: Remove entry of
4150 i386-interix-nat.c and i386-interix-tdep.c.
4151 * configure.ac: Remove '*-*-interix*'.
4152 * configure: Re-generated.
4153 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4154 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4156 * osabi.c (gdb_osabi_names): Remove "Interix".
4158 2013-09-03 Yao Qi <yao@codesourcery.com>
4160 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4162 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4164 * record.h (record_print_flag) <record_print_src_line,
4165 record_print_insn_range>: Rename into ...
4166 (record_print_flag) <record_print_src_line,
4167 record_print_insn_range>: ... this. Update all users.
4169 2013-09-02 Pierre Muller <muller@sourceware.org>
4171 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4174 2013-09-02 Pierre Muller <muller@sourceware.org>
4176 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4177 by use of plongest function.
4179 2013-09-02 Tristan Gingold <gingold@adacore.com>
4181 * NEWS: Add entry mentioning support for native Windows x64
4184 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4185 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4186 (struct amd64_windows_frame_cache): New struct.
4187 (amd64_windows_w2gdb_regnum): New global.
4188 (pc_in_range, amd64_windows_frame_decode_epilogue)
4189 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4190 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4191 (amd64_windows_frame_this_id): New functions.
4192 (amd64_windows_frame_unwind): New static global.
4193 (amd64_windows_skip_prologue): New function.
4194 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4195 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4196 with amd64_windows_skip_prologue.
4198 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4202 2013-08-30 Pedro Alves <palves@redhat.com>
4204 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4207 2013-08-30 Pedro Alves <palves@redhat.com>
4209 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4212 2013-08-30 Pedro Alves <palves@redhat.com>
4214 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4215 Adjust arguments to print_stack_frame.
4217 2013-08-30 Pedro Alves <palves@redhat.com>
4219 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4221 2013-08-30 Pedro Alves <palves@redhat.com>
4223 * frame.h (show_and_print_stack_frame): Delete declaration.
4225 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4228 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4229 (archpy_name): Check for valid architecture.
4230 (archpy_disassemble): Ditto.
4232 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4234 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4235 instead of "long long" in call to ptrace64.
4237 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4239 * mi/mi-interp.c (mi_command_loop): Change signature to match
4240 interp_command_loop_ftype.
4241 (mi1_command_loop): Remove.
4242 (mi2_command_loop): Remove.
4243 (mi3_command_loop): Remove.
4244 (mi_interpreter_resume): Remove setting of
4245 deprecated_command_loop_hook.
4246 (_initialize_mi_interp): Set mi_command_loop as the command loop
4249 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4251 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4254 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4256 * value.c (allocate_value_contents): Make static.
4257 * value.h (allocate_value_contents): Remove prototype.
4259 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4261 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4262 of assembling value via allocate_value_lazy and attribute setter.
4263 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4264 assembling value via allocate_value_lazy and attribute setter.
4265 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4266 assembling value via allocate_value_lazy and attribute setter.
4268 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4270 * value.c (value_from_contents_and_address): Replace allocate_value and
4271 memcpy with value_from_contents.
4273 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4275 * python/py-framefilter.c (py_print_frame): Remove usage of
4276 PyString_AsString. Use python_string_to_host_string instead.
4277 Refactor function to work with a string as a new allocation
4278 instead of a pointer.
4279 (py_print_frame): Ditto.
4280 * python/lib/gdb/frames.py (return_list): Cain iterators together
4281 instead of adding them as a list.
4282 (_sort_list): Call return_list, and remove duplicate code.
4283 (execute_frame_filters): Convert iterator to a list with list().
4284 * python/lib/gdb/command/frame_filters.py
4285 (SetFrameFilterPriority._set_filter_priority): Convert priority
4286 attribute to an integer.
4287 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4288 wrapper function __next__.
4289 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4292 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4295 * python/py-framefilter.c (apply_frame_filter): Check
4296 gdb_python_initialized. Exit if the Python frame-filter code
4297 cannot be initialized.
4299 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4302 * top.c (print_gdb_version): Remove erroneous newline after help
4305 2013-08-29 Yao Qi <yao@codesourcery.com>
4307 * varobj.c (install_dynamic_child): Remove trailing space.
4308 Add one blank line after variable declaration.
4310 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4313 * corefile.c (get_exec_file): Use exec_filename.
4314 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4315 * exec.c (exec_close): Free EXEC_FILENAME.
4316 (exec_file_attach): New variable canonical_pathname. Use
4317 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4319 * exec.h (exec_filename): New.
4320 * inferior.c (print_inferior, inferior_command): Use
4321 PSPACE_EXEC_FILENAME.
4322 * mi/mi-main.c (print_one_inferior): Likewise.
4323 * progspace.c (clone_program_space, print_program_space): Likewise.
4324 * progspace.h (struct program_space): New field pspace_exec_filename.
4325 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4326 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4328 2013-08-28 Will Newton <will.newton@linaro.org>
4330 * common/linux-ptrace.c: Include stdint.h unconditionally.
4332 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4335 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4337 2013-08-28 Yao Qi <yao@codesourcery.com>
4338 Pedro Alves <palves@redhat.com>
4340 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4341 instead of stdio_fileopen.
4342 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4343 .Call stderr_fileopen instead of stdio_fileopen.
4344 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4345 [__MINGW32__] (stderr_file_fputs): New function.
4346 (stderr_fileopen): New function.
4347 * ui-file.h (stderr_fileopen): Declare.
4349 2013-08-27 Doug Evans <dje@google.com>
4351 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4352 (struct dwarf2_per_cu_data): Ditto.
4353 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4354 (process_imported_unit_die): Ditto.
4355 (follow_die_sig_1): Simplify assert.
4357 2013-08-27 Pedro Alves <palves@redhat.com>
4359 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4360 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4361 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4362 windows_xfer_memory directly.
4363 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4365 2013-08-27 Pedro Alves <palves@redhat.com>
4367 * darwin-nat.c (darwin_xfer_memory): Delete.
4368 (_initialize_darwin_inferior): Don't install a
4369 deprecated_xfer_memory method.
4371 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4372 Yao Qi <yao@codesourcery.com>
4374 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4375 (parse_no_frames_option): Remove.
4376 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4377 (mi_cmd_stack_list_args): Adjust.
4378 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4379 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4380 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4382 (list_args_or_locals): New parameter 'skip_unavailable'.
4384 * valprint.c (scalar_type_p): Rename to ...
4385 (val_print_scalar_type_p): ... this. Make extern.
4386 (val_print, value_check_printable): Adjust.
4387 * valprint.h (val_print_scalar_type_p): Declare.
4388 * value.c (value_entirely_unavailable): New function.
4389 * value.h (value_entirely_unavailable): Declare.
4391 * NEWS: Mention the new option "--skip-unavailable" to MI
4392 commands '-stack-list-locals', '-stack-list-arguments' and
4393 '-stack-list-variables'.
4395 2013-08-27 Yao Qi <yao@codesourcery.com>
4397 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4398 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4400 * mi/mi-getopt.c (mi_getopt): Remove.
4401 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4403 (mi_getopt): Call mi_getopt_1.
4404 (mi_getopt_silent): New.
4405 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4407 2013-08-26 Doug Evans <dje@google.com>
4410 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4411 .gdb_index is in use.
4412 * symfile.c (reread_symbols): Reset objfile->sf.
4414 * NEWS: Document "mt print objfiles" now takes optional regexp.
4415 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4416 regexp of objfiles to print.
4417 (_initialize_symmisc): Update doc string for "mt print objfiles".
4419 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4420 missing debug info checks.
4422 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4423 Ulrich Weigand <uweigand@de.ibm.com>
4425 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4426 line tables generated by XLC compiled binaries.
4428 2013-08-23 Doug Evans <dje@google.com>
4430 * symmisc.c (dump_symtab): Delete prototype.
4431 (dump_msymbols, dump_objfile): Ditto.
4432 (maintenance_info_symtabs): Mark as dont_repeat.
4433 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4435 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4436 debugging printf to better location.
4438 2013-08-23 Pedro Alves <palves@redhat.com>
4440 * target.c (target_read_live_memory): Change type of 'ret' local
4443 2013-08-23 Pedro Alves <palves@redhat.com>
4445 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4446 (remote_read_bytes): Change return type to LONGEST, and adjust to
4447 return a target_xfer_error on error.
4448 (remote_xfer_memory): Delete.
4449 (remote_flash_write): Change type of 'ret' local to LONGEST.
4450 (remote_xfer_partial, remote_xfer_partial): Adjust.
4451 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4453 2013-08-23 Pierre Muller <muller@sourceware.org>
4455 ARI fix: Push # directives to start of line.
4456 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4458 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4461 * breakpoint.c (enable_command, disable_command): Iterate over
4462 all specified breakpoint locations.
4464 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4466 * common/linux-ptrace.c (linux_fork_to_function): Push #
4467 directives to the start of the line.
4468 (linux_check_ptrace_features): Fix warning message to use
4471 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4473 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4474 nat/linux-waitpid.h.
4475 (linux-waitpid.o): New object file rule.
4476 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4477 (current_ptrace_options): Moved from linux-nat.c.
4478 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4480 (linux_fork_to_function): New function.
4481 (linux_grandchild_function): Likewise.
4482 (linux_child_function): Likewise.
4483 (linux_check_ptrace_features): New function, heavily
4484 based on linux-nat.c:linux_test_for_tracefork.
4485 (linux_enable_event_reporting): New function.
4486 (ptrace_supports_feature): Likewise.
4487 (linux_supports_tracefork): Likewise.
4488 (linux_supports_traceclone): Likewise.
4489 (linux_supports_tracevforkdone): Likewise.
4490 (linux_supports_tracesysgood): Likewise.
4491 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4492 gdbserver/linux-low.c.
4493 (linux_enable_event_reporting): New declaration.
4494 (linux_supports_tracefork): Likewise.
4495 (linux_supports_traceclone): Likewise.
4496 (linux_supports_tracevforkdone): Likewise.
4497 (linux_supports_tracesysgood): Likewise.
4498 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4499 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4500 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4501 * config/arm/linux.mh (NATDEPFILES): Likewise.
4502 * config/i386/linux.mh (NATDEPFILES): Likewise.
4503 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4504 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4505 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4506 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4507 * config/mips/linux.mh (NATDEPFILES): Likewise.
4508 * config/pa/linux.mh (NATDEPFILES): Likewise..
4509 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4510 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4511 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4512 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4513 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4514 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4515 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4516 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4517 ptrace's 4th argument's types.
4518 Check the type of PTRACE_TYPE_ARG4.
4519 * configure: Regenerate.
4520 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4521 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4522 (linux_supports_tracefork_flag): Remove.
4523 (linux_supports_tracesysgood_flag): Likewise.
4524 (linux_supports_tracevforkdone_flag): Likewise.
4525 (current_ptrace_options): Moved to
4526 common/linux-ptrace.c.
4527 (linux_tracefork_child): Remove.
4528 (my_waitpid): Remove.
4529 (linux_test_for_tracefork): Renamed to
4530 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4531 (linux_test_for_tracesysgood): Remove.
4532 (linux_supports_tracesysgood): Remove.
4533 (linux_supports_tracefork): Remove.
4534 (linux_supports_tracevforkdone): Remove.
4535 (linux_enable_tracesysgood): Remove.
4536 (linux_enable_event_reporting): Remove.
4537 (linux_init_ptrace): New function.
4538 (linux_child_post_attach): Call linux_init_ptrace.
4539 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4540 (linux_child_follow_fork): Call linux_supports_tracefork
4541 and linux_supports_tracevforkdone.
4542 (linux_child_insert_fork_catchpoint): Call
4543 linux_supports_tracefork.
4544 (linux_child_insert_vfork_catchpoint): Likewise.
4545 (linux_child_set_syscall_catchpoint): Call
4546 linux_supports_tracesysgood.
4547 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4548 * nat/linux-nat.h: New file.
4549 * nat/linux-waitpid.c: New file.
4550 * nat/linux-waitpid.h: New file.
4552 2013-08-22 Samuel Bronson <naesten@gmail.com>
4554 ARM Linux support for `catch syscall'.
4555 * syscalls/arm-linux.py: New file.
4556 * syscalls/arm-linux.xml: Likewise.
4557 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4558 (arm_linux_init_abi): Register the new function and syscall xml file.
4559 * data-directory/Makefile.in: Install the new syscall xml file.
4560 * NEWS: Brag about this.
4562 2013-08-22 Pedro Alves <palves@redhat.com>
4565 * corefile.c (target_xfer_memory_error): New function.
4566 (memory_error): Defer EIO to target_memory_error.
4567 (read_memory): Use target_xfer_partial, and handle finer-grained
4569 * target.c (target_xfer_error_to_string): New function.
4570 (memory_xfer_partial_1): If memory is known to be
4571 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4572 (target_xfer_partial): Make extern.
4573 * target.h (enum target_xfer_error): New enum.
4574 (target_xfer_error_to_string): Declare function.
4575 (target_xfer_partial): Declare function.
4576 (struct target_ops) <xfer_partial>: Adjust describing comment.
4578 2013-08-22 Alan Modra <amodra@gmail.com>
4580 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4581 * configure.tgt: Likewise as targets.
4583 2013-08-20 Doug Evans <dje@google.com>
4585 * buildsym.c (subfile_stack): Move here from buildsym.h.
4586 (pending_macros): Ditto.
4587 (get_macro_table): New function.
4588 (buildsym_init): Initialize subfile_stack.
4589 * coffread.c (type_vector,type_vector_length): Moved here from
4591 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4592 (coff_symtab_read): Use it.
4593 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4594 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4595 with call to get_macro_table.
4596 * stabsread.c (type_vector,type_vector_length): Moved here from
4598 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4599 * buildsym.h (get_macro_table): Declare.
4601 2013-08-20 Tom Tromey <tromey@redhat.com>
4603 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4605 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4607 2013-08-20 Doug Evans <dje@google.com>
4609 * blockframe.c: Remove #include "psymtab.h".
4610 * cp-support.c: Ditto.
4614 2013-08-20 Tom Tromey <tromey@redhat.com>
4617 * exceptions.h (return_mask): Now an enum.
4618 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4621 2013-08-20 Tom Tromey <tromey@redhat.com>
4623 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4625 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4626 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4627 * jit.c (jit_object_close_impl): Update.
4628 * jv-lang.c (get_dynamics_objfile): Update.
4629 * linespec.c (add_minsym): Use get_dynamics_objfile.
4630 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4631 (allocate_objfile): Don't initialize 'gdbarch' field.
4632 (get_objfile_arch): Update.
4633 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4635 (struct objfile) <gdbarch>: ... here. Remove.
4636 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4638 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4640 2013-08-20 Alan Modra <amodra@gmail.com>
4642 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4643 for IBM long double nan and inf.
4644 (floatformat_is_negative, floatformat_classify,
4645 floatformat_mantissa): Similarly.
4646 (floatformat_ieee_single, floatformat_ieee_double,
4647 floatformat_ieee_quad, floatformat_arm_ext,
4648 floatformat_ia64_spill): Delete unused vars.
4649 (_initialize_doublest): Delete unused function.
4650 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4651 little-endian variants of floatformat_ibm_long_double.
4653 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4655 * Makefile.in (SFILES): Remove common/target-common.c and
4656 add target/waitstatus.c.
4657 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4658 target/resume.h, target/wait.h and target/waitstatus.h.
4659 (COMMON_OBS): Remove target-common.o and add
4661 (target-common.o): Remove.
4662 (waitstatus.o): New target object file.
4663 * common/target-common.c: Move contents to
4664 target/waitstatus.c and remove.
4665 * common/target-common.h: Move contents to other files and
4667 (enum resume_kind: Move to target/resume.h.
4668 (TARGET_WNOHANG): Move to target/wait.h.
4669 (enum target_waitkind): Move to target/waitstatus.h.
4670 (struct target_waitstatus): Likewise.
4671 * target.h: Do not include target-common.h and
4672 include target/resume.h, target/wait.h and
4673 target/waitstatus.h.
4674 * target/resume.h: New file.
4675 * target/wait.h: New file.
4676 * target/waitstatus.h: New file.
4677 * target/waitstatus.c: New file.
4679 2013-08-19 Pedro Alves <palves@redhat.com>
4681 * linux-nat.c (linux_test_for_tracefork)
4682 (linux_test_for_tracesysgood, linux_child_follow_fork)
4683 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4684 (linux_nat_wait_1): Extend comment.
4685 (linux_async_pipe): Add comment.
4687 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4689 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4690 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4691 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4692 Update to account for fact that PC is now a pseudo-register.
4693 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4694 cases for RL78_PC_REGNUM.
4696 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4699 * top.c (quit_force): Skip writing history file
4700 if input is not from terminal.
4702 2013-08-14 Tom Tromey <tromey@redhat.com>
4704 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4705 resultthreadlist>: New fields.
4706 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4707 (remote_get_threadlist, remote_threadlist_iterator): Use
4708 new fields. Remove static variables.
4710 2013-08-14 Tom Tromey <tromey@redhat.com>
4712 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4713 remote_watch_data_address>: New fields.
4714 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4715 (process_stop_reply, remote_wait_as)
4716 (remote_check_watch_resources, remote_stopped_data_address): Update.
4718 2013-08-14 Tom Tromey <tromey@redhat.com>
4720 * remote.c (struct remote_state) <async_client_callback,
4721 async_client_context>: New fields.
4722 (async_client_callback, async_client_context): Remove.
4723 (remote_async_serial_handler, remote_async): Update.
4725 2013-08-14 Tom Tromey <tromey@redhat.com>
4727 * remote.c (sizeof_pkt): Remove.
4728 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4730 2013-08-14 Tom Tromey <tromey@redhat.com>
4732 * remote.c (struct remote_state) <use_threadinfo_query,
4733 use_threadextra_query>: New fields.
4734 (remote_threads_info, remote_threads_extra_info)
4735 (remote_open_1): Update.
4737 2013-08-14 Tom Tromey <tromey@redhat.com>
4739 * remote.c (struct remote_state) <finished_object,
4740 finished_annex, finished_offset>: New fields.
4741 (remote_read_qxfer): Use remote_state fields; remove static
4744 2013-08-14 Tom Tromey <tromey@redhat.com>
4746 * remote.c (struct remote_state) <last_sent_step>:
4748 (last_sent_step): Remove.
4749 (remote_resume, remote_wait_as): Update.
4751 2013-08-14 Tom Tromey <tromey@redhat.com>
4753 * remote.c (struct remote_state) <last_sent_signal>:
4755 (last_sent_signal): Remove.
4756 (new_remote_state, remote_resume, remote_wait_as): Update.
4758 2013-08-14 Tom Tromey <tromey@redhat.com>
4760 * remote.c (struct remote_state) <last_program_signals_packet>:
4762 (last_program_signals_packet): Remove.
4763 (remote_program_signals, remote_open_1): Update.
4765 2013-08-14 Tom Tromey <tromey@redhat.com>
4767 * remote.c (struct remote_state) <last_pass_packet>:
4769 (last_pass_packet): Remove.
4770 (remote_pass_signals, remote_open_1): Update.
4772 2013-08-14 Tom Tromey <tromey@redhat.com>
4774 * remote.c (struct remote_state) <remote_traceframe_number>:
4776 (remote_traceframe_number): Remove.
4777 (new_remote_state, remote_open_1, set_remote_traceframe)
4778 (remote_trace_find): Update.
4780 2013-08-14 Tom Tromey <tromey@redhat.com>
4782 * remote.c (struct remote_state) <general_thread, continue_thread>:
4784 (general_thread, continue_thread): Remove.
4785 (record_currthread, set_thread, set_general_process)
4786 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4787 (extended_remote_mourn_1): Update.
4789 2013-08-14 Tom Tromey <tromey@redhat.com>
4791 * remote.c (struct remote_state) <remote_desc>: New field.
4792 (remote_desc): Remove.
4793 (remote_threads_info, remote_threads_extra_info, remote_close)
4794 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4795 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4796 (remote_hostio_send_command, remote_file_put, remote_file_get)
4797 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4798 (remote_async, remote_new_objfile, set_range_stepping): Update.
4800 2013-08-14 Tom Tromey <tromey@redhat.com>
4802 * remote.c (remote_state): Now a pointer.
4803 (get_remote_state_raw): Update.
4804 (new_remote_state): New function.
4805 (_initialize_remote): Use new_remote_state.
4807 2013-08-14 Tom Tromey <tromey@redhat.com>
4809 * remote.c (remote_protocol_features): Now const.
4811 2013-08-14 Tom Tromey <tromey@redhat.com>
4813 * remote.c (crc32_table, crc32): Remove.
4814 (remote_verify_memory): Use xcrc32.
4816 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4818 * value.h (create_internalvar_type_lazy): Adjust prototype
4821 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4823 * common/format.c (parse_format_string): Don't allow '#' flag for
4824 pointer arguments in format string.
4826 2013-08-13 Pierre Muller <muller@sourceware.org>
4828 * utils.c (init_page_info): Only call tgetnum function
4829 if rl_get_screen_size did not return useful values.
4831 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4833 PR breakpoints/15117
4834 * linespec.c (linespec_parse_basic): Check for convenience
4835 variable or history value while parsing.
4837 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4839 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4841 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4842 different signals between the generic Linux kernel implementation
4844 (avr_linux_gdb_signal_from_target): Delete.
4845 (avr_linux_gdb_signal_to_target): Delete.
4846 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4848 2013-08-09 Doug Evans <dje@google.com>
4850 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4853 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4855 * linux-tdep.c: Define enum with generic signal numbers.
4856 (linux_gdb_signal_from_target): New function.
4857 (linux_gdb_signal_to_target): Likewise.
4858 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4859 methods to the functions above.
4860 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4861 (linux_gdb_signal_to_target): Likewise.
4862 * alpha-linux-tdep.c: Define new enum with signals different
4863 from generic Linux kernel.
4864 (alpha_linux_gdb_signal_from_target): New function.
4865 (alpha_linux_gdb_signal_to_target): Likewise.
4866 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4867 with the functions mentioned above.
4868 * avr-tdep.c: Define enum with differences between Linux kernel
4870 (avr_linux_gdb_signal_from_target): New function.
4871 (avr_linux_gdb_signal_to_target): Likewise.
4872 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4873 the functions mentioned above.
4874 * sparc-linux-tdep.c: Define enum with differences between SPARC
4875 and generic Linux kernel signal numbers.
4876 (sparc32_linux_gdb_signal_from_target): New function.
4877 (sparc32_linux_gdb_signal_to_target): Likewise.
4878 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4879 to the functions defined above.
4880 * xtensa-linux-tdep.c: Define enum with differences between
4881 Xtensa and Linux kernel generic signals.
4882 (xtensa_linux_gdb_signal_from_target): New function.
4883 (xtensa_linux_gdb_signal_to_target): Likewise.
4884 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4885 to the functions defined above.
4886 * mips-linux-tdep.c: Define enum with differences between
4887 signals in MIPS and Linux kernel generic ones.
4888 (mips_gdb_signal_to_target): New function.
4889 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4890 only different signals from the Linux kernel generic.
4891 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4892 the functions defined above.
4893 * mips-linux-tdep.h (enum mips_signals): Remove.
4895 2013-08-09 Pedro Alves <palves@redhat.com>
4897 * avr-tdep.c (XMALLOC): Delete macro.
4898 * cli/cli-dump.c (XMALLOC): Delete macro.
4900 2013-08-09 Pedro Alves <palves@redhat.com>
4902 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4903 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4904 (fopen_with_cleanup, add_dump_command): Make static.
4905 * cli/cli-dump.h: Delete file.
4906 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4909 2013-08-09 Pedro Alves <palves@redhat.com>
4911 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4914 2013-08-09 Pedro Alves <palves@redhat.com>
4916 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4919 2013-08-09 Pedro Alves <palves@redhat.com>
4921 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4922 (gcore_command): Use tilde_expand here, and when showing the
4923 filename to the user, show the expanded version.
4925 2013-08-09 Yao Qi <yao@codesourcery.com>
4927 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4930 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4932 * gcore.c (create_gcore_bfd): Use tilde_expand.
4934 2013-08-08 Yao Qi <yao@codesourcery.com>
4936 * frame.h (read_frame_local): Declare.
4937 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4939 * stack.c (read_frame_local): New.
4941 2013-08-08 Yao Qi <yao@codesourcery.com>
4943 * mi/mi-cmd-stack.c: Update comments to function
4944 list_args_or_locals.
4946 2013-08-07 Tom Tromey <tromey@redhat.com>
4949 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4950 (process_psymtab_comp_unit_reader): Use it.
4951 (process_psymtab_comp_unit): Update. Add "pretend_language"
4953 (dwarf2_build_psymtabs_hard): Update.
4954 (scan_partial_symbols): Pass CU's language to
4955 process_psymtab_comp_unit.
4957 2013-08-07 Tom Tromey <tromey@redhat.com>
4959 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4960 (dwarf2_gdb_index_functions): Update.
4961 * psymtab.c (find_symbol_file_from_partial): Remove.
4962 (psym_functions): Update.
4963 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4966 2013-08-07 Tom Tromey <tromey@redhat.com>
4968 * symfile.c (set_initial_language): Look up "main" symbol
4969 and use its language.
4970 * symtab.c (find_main_filename): Remove.
4971 * symtab.h (find_main_filename): Remove.
4973 2013-08-07 Tom Tromey <tromey@redhat.com>
4975 * dwarf2read.c (recursively_compute_inclusions): Add
4976 "immediate_parent" argument. Set symtab's "user" field
4978 (compute_symtab_includes): Update.
4980 2013-08-07 Tom Tromey <tromey@redhat.com>
4982 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4983 when adding label symbols.
4985 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4986 Ulrich Weigand <uweigand@de.ibm.com>
4988 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4989 * configure.host (powerpc64-*-aix*): Likewise.
4991 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4992 Ulrich Weigand <uweigand@de.ibm.com>
4994 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4996 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4997 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4998 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4999 * configure.ac: Check for ptrace64.
5000 * configure, config.in: Regenerate.
5002 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
5003 Ulrich Weigand <uweigand@de.ibm.com>
5005 * aixthread.c: Call ptrace64 instead of ptracex if defined.
5006 Call ptrace64 instead of ptrace if defined.
5007 Add macro addr_ptr to take care of ptrace address argument.
5008 (pdc_read_regs): Likewise.
5009 (pdc_write_regs): Likewise.
5010 (aix_thread_resume): Likewise.
5011 (fetch_regs_kernel_thread): Likewise.
5012 (store_regs_kernel_thread): Likewise.
5014 2013-08-07 Anton Blanchard <anton@samba.org>
5016 * MAINTAINERS: Add myself to Write After Approval.
5018 2013-08-05 Tom Tromey <tromey@redhat.com>
5020 * aix-thread.c (_initialize_aix_thread): Use
5021 complete_target_initialization.
5022 * bsd-uthread.c (_initialize_bsd_uthread): Use
5023 complete_target_initialization.
5024 * dec-thread.c (_initialize_dec_thread): Use
5025 complete_target_initialization.
5026 * ravenscar-thread.c (_initialize_ravenscar): Use
5027 complete_target_initialization.
5028 * sol-thread.c (_initialize_sol_thread): Use
5029 complete_target_initialization.
5030 * spu-multiarch.c (_initialize_spu_multiarch): Use
5031 complete_target_initialization.
5033 2013-08-05 Tom Tromey <tromey@redhat.com>
5035 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
5036 * ada-lang.c (ada_lookup_simple_minsym): Return
5037 bound_minimal_symbol.
5038 * ada-lang.h (ada_lookup_simple_minsym): Update.
5039 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5040 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5041 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5042 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5043 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5044 * minsyms.c (msymbol_objfile): Remove.
5045 (lookup_minimal_symbol_internal): New function, from
5046 lookup_minimal_symbol.
5047 (lookup_minimal_symbol): Rewrite using
5048 lookup_minimal_symbol_internal.
5049 (lookup_bound_minimal_symbol): New function.
5050 * minsyms.h (msymbol_objfile): Remove.
5051 (lookup_bound_minimal_symbol): Declare.
5052 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5053 * parse.c (write_exp_msymbol): Change parameter to a
5054 bound_minimal_symbol.
5055 (write_dollar_variable): Use lookup_bound_minimal_symbol.
5056 * parser-defs.h (write_exp_msymbol): Update.
5057 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5058 * symfile.c (simple_read_overlay_table): Use
5059 lookup_bound_minimal_symbol.
5060 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5061 (search_symbols): Likewise.
5062 (print_msymbol_info): Take a bound_minimal_symbol argument.
5063 (symtab_symbol_info, rbreak_command): Update.
5064 * symtab.h (struct symbol_search) <msymbol>: Change type
5065 to bound_minimal_symbol.
5066 * valops.c (find_function_in_inferior): Use
5067 lookup_bound_minimal_symbol.
5068 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5070 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5073 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5075 (async_cleanup_sigint_signal_handler): ... this.
5076 (initialize_sigint_signal_handler): Remove declaration.
5077 (handle_remote_sigint): Rename the declaration to ...
5078 (async_handle_remote_sigint): ... this.
5079 (handle_remote_sigint_twice): Rename the declaration to ...
5080 (async_handle_remote_sigint_twice): ... this.
5081 (async_remote_interrupt, async_remote_interrupt_twice)
5082 (remote_interrupt): Remove the declarations.
5083 (remote_interrupt_twice): Rename the declaration ...
5084 (sync_remote_interrupt_twice): ... this.
5085 (sigint_remote_twice_token): Rename the variable to ...
5086 (async_sigint_remote_twice_token): ... this.
5087 (sigint_remote_token): Rename the variable to ...
5088 (async_sigint_remote_token): ... this.
5089 (initialize_sigint_signal_handler): Rename the function to ...
5090 (async_initialize_sigint_signal_handler): ... this. Update the name
5092 (handle_remote_sigint): Rename the function to ...
5093 (async_handle_remote_sigint): ... this. Update the names inside.
5094 (handle_remote_sigint_twice): Rename the function to ...
5095 (async_handle_remote_sigint_twice): ... this. Update the names inside.
5096 (cleanup_sigint_signal_handler): Rename the function to ...
5097 (async_cleanup_sigint_signal_handler): ... this.
5098 (remote_interrupt): Rename the function to ...
5099 (sync_remote_interrupt): this. Update the names inside.
5100 (remote_interrupt_twice): Rename the function to ...
5101 (sync_remote_interrupt_twice): this. Update the names inside.
5102 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5103 (_initialize_remote): Update the names inside.
5105 2013-08-02 Tom Tromey <tromey@redhat.com>
5108 * breakpoint.c (update_watchpoint, watchpoint_check)
5109 (watch_command_1): Update.
5110 * eval.c (fetch_subexp_value): Add "preserve_errors"
5112 * ppc-linux-nat.c (check_condition): Update.
5113 * value.h (fetch_subexp_value): Update.
5115 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
5117 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5120 2013-08-01 Doug Evans <dje@google.com>
5123 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5124 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5125 Add assert of sig_entry->dwo_unit == NULL.
5126 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5127 had already been read.
5128 (read_signatured_type): Set per_cu.tu_read.
5131 * valops.c (value_struct_elt): Add missing call to check_typedef.
5132 (value_find_oload_method_list): Ditto.
5134 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5135 effectively, struct symbol_search **.
5136 (make_cleanup_free_search_symbols): Change arg to struct
5137 symbol_search **. All callers updated.
5138 (compare_search_syms): Compare symtab file name and block as well.
5139 (search_symbols_equal): New function.
5140 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5141 New args new_head, new_tail. Result is now void. Remove dups after
5142 sorting the symbols.
5143 (search_symbols): Sort all found symbols once, after all have been
5144 found, and remove duplicates. Simplify cleanup tracking of result.
5145 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5147 Further workarounds for binutils/15021.
5148 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5149 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5150 Watch for duplicate symtabs coming from type units.
5151 (compute_symtab_includes): Update call to
5152 recursively_compute_inclusions. Build vector of included symtabs
5154 * symtab.h (symtab_ptr): New typedef.
5155 (DEF_VEC_P (symtab_ptr)): New VEC type.
5156 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5159 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5161 * cli/cli-script.c (script_from_file): Remove use of
5163 * main.c (captured_main): Remove use of error_pre_print and
5165 * utils.c (error_pre_print, quit_pre_print): Remove.
5166 * utils.h (error_pre_print, quit_pre_print): Likewise.
5168 2013-08-01 Yao Qi <yao@codesourcery.com>
5170 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5172 (mi_cmd_stack_list_variables): Likewise.
5174 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5176 * exceptions.c (deprecated_throw_reason): Remove.
5177 * exceptions.h (deprecated_throw_reason): Remove.
5179 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5181 * remote-mips.c (mips_error): Replace use of
5182 deprecated_throw_reason with throw_verror. Use the error message
5183 passed to mips_error as the error message for throw_verror.
5185 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5187 * monitor.c (monitor_interrupt_query): Replace use of
5188 deprecated_throw_reason with quit.
5189 * nto-procfs.c (interrupt_query): Likewise.
5190 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5191 * remote-mips.c (mips_kill): Likewise.
5192 * remote.c (interrupt_query): Likewise.
5194 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5196 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5199 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5200 Yao Qi <yao@codesourcery.com>
5202 * tracepoint.c (trace_dump_command): Select the current frame.
5204 2013-07-30 Doug Evans <dje@google.com>
5206 * dwarf2read.c (process_queue): Add type signature to debug output.
5208 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5210 * value.c (value_fetch_lazy): Mark optimized out values as such
5211 rather than raising an error.
5213 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5215 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5216 before checking which bits of the parent, not the child, value are
5219 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5222 * top.c: Include "filenames.h".
5223 (set_history_filename): New function.
5224 (init_main): Install it as set hook of the "set history filename"
5227 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5229 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5230 attribute parameter.
5231 (dwarf2_const_value_data): Constify struct attribute parameter.
5232 (dwarf2_const_value): Constify struct attribute parameter.
5233 (dwarf2_const_value_attr): Constify struct attribute parameter.
5234 (lookup_die_type): Constify struct attribute parameter.
5235 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5236 (follow_die_ref_or_sig): Constify struct attribute parameter.
5237 (follow_die_ref): Constify struct attribute parameter.
5238 (follow_die_sig): Constify struct attribute parameter.
5239 (get_DW_AT_signature_type): Constify struct attribute parameter.
5240 (get_type_unit_group): Constify struct attribute parameter.
5241 (fill_in_loclist_baton): Constify struct attribute parameter.
5242 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5243 (type_unit_group): Constify struct attribute parameter.
5245 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5247 * dwarf2read.c (attr_form_is_block): Make argument const.
5248 (attr_form_is_section_offset): Make argument const.
5249 (attr_form_is_constant): Make argument const.
5250 (attr_form_is_ref): Make argument const.
5252 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5254 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5256 (attr_form_is_ref): Moved below attr_form_is_constant.
5258 2013-07-29 Doug Evans <dje@google.com>
5260 * main.c (captured_command_loop): Tweak comment.
5262 * target.c (target_async_permitted_1): Fix comment.
5264 * symtab.c (iterate_over_some_symtabs): Add comment.
5266 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5268 2013-07-27 Yao Qi <yao@codesourcery.com>
5270 * NEWS: Mention that GDBserver now supports hardware
5271 watchpoints on the MIPS GNU/Linux target.
5273 2013-07-27 Yao Qi <yao@codesourcery.com>
5275 * Makefile.in (HFILES_NO_SRCDIR): Add
5276 common/mips-linux-watch.h.
5277 (mips-linux-watch.o): New rule.
5278 * common/mips-linux-watch.c: New.
5279 * common/mips-linux-watch.h: New.
5280 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5281 * mips-linux-nat.c: Include mips-linux-watch.h.
5282 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5283 to common/mips-linux-watch.h.
5284 (MAX_DEBUG_REGISTER): Likewise.
5285 (enum pt_watch_style): Likewise.
5286 (struct mips32_watch_regs): Likewise.
5287 (struct mips64_watch_regs): Likewise.
5288 (struct pt_watch_regs): Likewise.
5289 (struct mips_watchpoint): Likewise.
5290 (mips_linux_watch_get_irw_mask): Move to
5291 common/mips-linux-watch.c.
5292 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5293 (mips_linux_watch_get_watchlo): Likewise.
5294 (mips_linux_watch_set_watchlo): Likewise.
5295 (mips_linux_watch_get_watchhi): Likewise.
5296 (mips_linux_watch_set_watchhi): Likewise.
5297 (mips_linux_read_watch_registers): Likewise.
5298 (mips_linux_watch_type_to_irw): Likewise.
5299 (mips_linux_stopped_data_address, fill_mask): Likewise.
5300 (mips_linux_watch_try_one_watch): Likewise.
5301 (mips_linux_watch_populate_regs): Likewise.
5303 2013-07-27 Yao Qi <yao@codesourcery.com>
5305 * mips-linux-nat.c (get_irw_mask): Rename to ...
5306 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5307 'set' to 'n'. Update function comment. All callers changed.
5308 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5309 function comment. All callers changed.
5310 (get_num_valid): Rename to ...
5311 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5312 'set' to 'n'. Update function comment. All callers changed.
5313 (get_watchlo): Rename to ...
5314 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5315 'set' to 'n'. Update function comment. All callers changed.
5316 (set_watchlo): Rename to ...
5317 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5318 'set' to 'n'. Update function comment. All callers changed.
5319 (get_watchhi): Rename to ...
5320 (mips_linux_watch_get_watchhi): ... this. Update function
5321 comment. All callers changed.
5322 (set_watchhi): Rename to ...
5323 (mips_linux_watch_set_watchhi): ... this. Update function
5324 comment. All callers changed.
5325 (mips_linux_read_watch_registers): Update function comment.
5326 Add new parameters 'lwpid', 'watch_readback', and
5327 'watch_readback_valid'. Update.
5328 (type_to_irw): Rename to ...
5329 (mips_linux_watch_type_to_irw): ... this. Update function
5330 comment. All callers changed.
5331 (fill_mask): Update function comment.
5332 (try_one_watch): Rename to ...
5333 (mips_linux_watch_try_one_watch): ... this. Change the type
5334 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5335 (populate_regs_from_watches): Rename to ...
5336 (mips_linux_watch_populate_regs): ... this. Add parameter
5337 'current_watches'. All callers changed.
5339 2013-07-27 Yao Qi <yao@codesourcery.com>
5341 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5343 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5344 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5345 (struct pt_watch_regs): Likewise.
5346 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5347 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5348 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5349 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5350 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5352 2013-07-27 Yao Qi <yao@codesourcery.com>
5354 * breakpoint.h: Include break-common.h.
5355 (enum target_hw_bp_type): Move to ...
5356 * common/break-common.h: ... here. New.
5358 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5360 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5361 process group regardless of having tty on stdin.
5363 2013-07-25 Doug Evans <dje@google.com>
5365 * linux-fork.h (detach_fork): Delete.
5367 2013-07-25 Tom Tromey <tromey@redhat.com>
5369 PR remote/15256, PR remote/15266:
5370 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5371 * monitor.c (monitor_detach): Use unpush_target.
5372 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5373 * remote-mips.c (mips_detach): Use unpush_target. Don't
5375 * remote-sim.c (gdbsim_detach): Use unpush_target.
5376 * target.c (pop_target): Remove.
5377 (pop_all_targets_above): Don't call target_close.
5378 (target_close): Assert that the target is unpushed.
5379 * target.h (pop_target): Don't declare.
5380 * tracepoint.c (tfile_open): Use unpush_target.
5382 2013-07-25 Tom Tromey <tromey@redhat.com>
5384 * linux-thread-db.c (init_thread_db_ops): Call
5385 complete_target_initialization.
5386 (_initialize_thread_db): Don't call add_target.
5387 * target.c (complete_target_initialization): New function.
5388 (add_target_with_completer): Call it.
5389 * target.h (complete_target_initialization): Declare.
5391 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5393 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5394 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5395 (HPPANBSD_SIZEOF_GREGS): New define.
5396 (hppaobsd_supply_gregset): Handle additional registers.
5397 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5398 we provide more registers now.
5399 (hppabsd_supply_gregset): Supply additional registers.
5400 (hppabsd_collect_gregset): Collect additional registers.
5402 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5404 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5405 (hppabsd_dwarf2_frame_init_reg): New function.
5406 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5408 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5410 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5411 'z' format code. Remove error for optimized out values, standard
5412 code will handle these fine.
5414 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5416 * NEWS: Mention new 'z' formatter.
5417 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5418 (_initialize_printcmd): Mention 'z' formatter in help text of the
5421 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5423 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5426 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5428 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5429 interface can evaluate arguments. Fallback to the old mode if it
5431 (create_exception_master_breakpoint): Likewise.
5432 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5433 (struct sym_probe_fns elf_probe_fns): Export function above to the
5435 * probe.c (can_evaluate_probe_arguments): New function.
5436 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5438 (can_evaluate_probe_arguments): New function prototype.
5439 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5440 probe interface can evaluate arguments. Fallback to the old mode
5442 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5443 interface can evaluate arguments. Warning the user if it cannot.
5444 (stap_can_evaluate_probe_arguments): New function.
5445 (struct probe_ops stap_probe_ops): Export function above to the
5447 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5448 New function pointer.
5450 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5452 * Makefile.in (SFILES): Add common/target-common.c.
5453 Add common/target-common.h to headers.
5454 (COMMON_OBS): Add target-common.o.
5455 (target-common.o): New target.
5456 * linux-nat.h (resume_kind): Move to common/target-common.h.
5457 * target.c (target_waitstatus_to_string): Move to
5458 common/target-common.c.
5459 * target.h: Include target-common.h.
5460 (target_waitkind): Move to common/target-common.h.
5461 (target_waitstatus): Likewise.
5462 (TARGET_WNOHANG): Likewise.
5463 * common/target-common.c: New file.
5464 * common/target-common.h: New file.
5466 2013-07-24 Doug Evans <dje@google.com>
5468 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5471 2013-07-23 Yao Qi <yao@codesourcery.com>
5473 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5474 parameter 'gdbarch'.
5475 (i386_stack_tramp_frame_sniffer): Caller update.
5476 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5477 parameter 'gdbarch' and 'target'.
5478 (i386_linux_core_read_description): Caller update.
5479 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5481 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5484 2013-07-23 Tom Tromey <tromey@redhat.com>
5486 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5489 2013-07-22 Doug Evans <dje@google.com>
5491 * exec.h (remove_target_sections): Delete arg abfd.
5492 * exec.c (exec_close): Update call to remove_target_sections.
5493 (remove_target_sections): Delete arg abfd.
5494 * solib.c (update_solib_list): Ditto.
5495 (reload_shared_libraries_1): Ditto.
5496 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5497 * target.h (struct target_section): Rename key to owner.
5500 2013-07-22 Tom Tromey <tromey@redhat.com>
5502 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5504 2013-07-22 Tom Tromey <tromey@redhat.com>
5506 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5507 Simplify cleanup handling.
5509 2013-07-22 Tom Tromey <tromey@redhat.com>
5511 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5512 on all return paths.
5514 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5516 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5517 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5518 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5520 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5522 * top.c (print_gdb_version): Add help, apropos description and
5523 url to online documentation.
5525 2013-07-19 Hui Zhu <hui@codesourcery.com>
5528 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5530 2013-07-19 Yao Qi <yao@codesourcery.com>
5532 * target.c (update_current_target): Change the default action
5533 of 'to_traceframe_info' from tcomplain to return_zero.
5534 * target.h (struct target_ops) <to_traceframe_info>: Add more
5536 * valops.c (read_value_memory): Call
5537 traceframe_available_memory unconditionally.
5539 2013-07-18 Yao Qi <yao@codesourcery.com>
5541 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5542 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5543 symbol without prefix. If found, set its type to
5544 'mst_solib_trampoline'.
5546 2013-07-17 Doug Evans <dje@google.com>
5548 * NEWS: Mention "set print raw frame-arguments".
5549 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5550 * stack.c (print_raw_frame_arguments): New static global.
5551 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5552 (_initialize_stack): New command "set/show print raw frame-arguments".
5553 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5554 (set_print_raw, show_print_raw): New functions.
5555 (_initialize_valprint): New prefix command "set/show print raw".
5556 * valprint.h (value_print_options): Improve comments.
5558 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5559 of all *list variables.
5561 * gdbcmd.h (togglelist): Delete.
5562 * cli/cli-cmds.c (togglelist): Delete.
5563 (init_cmd_lists): Update.
5564 * cli/cli-cmds.h (togglelist): Delete.
5566 2013-07-17 Tom Tromey <tromey@redhat.com>
5568 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5571 2013-07-16 Doug Evans <dje@google.com>
5573 * nto-tdep.c (nto_relocate_section_addresses): Update,
5574 target_section.bfd deleted.
5575 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5576 * s390-tdep.c (s390_load): Ditto.
5577 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5579 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5581 * common/format.c (parse_format_string): Add checks for NULL
5582 character before calling strchr.
5584 2013-07-16 Doug Evans <dje@google.com>
5586 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5587 temp_pathname argument.
5588 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5589 when opening the file fails.
5591 * target.h (struct target_section): Delete member bfd.
5592 All users updated to use the_bfd_section->owner instead.
5593 * exec.c (add_to_section_table): Assert bfd is expected value.
5594 Remove initialization of target_section.bfd.
5595 (remove_target_sections): Update.
5596 (section_table_available_memory): Update.
5597 (section_table_xfer_memory_partial): Update.
5598 (print_section_info): Update.
5599 (exec_set_section_address): Update.
5600 * record-full.c (record_full_core_xfer_partial): Update.
5601 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5602 * solib-target.c (solib_target_relocate_section_addresses): Update.
5603 * symfile.c (build_section_addr_info_from_section_table): Update.
5604 * target.c (memory_xfer_live_readonly_partial): Update.
5605 (memory_xfer_partial_1): Update.
5607 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5609 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5610 now available for embedded (BookE) and server (BookS) processors,
5611 correct mentions of 'booke' and adjust comments accordingly in order to
5612 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5613 (have_ptrace_booke_interface): Rename function and variable
5614 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5615 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5616 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5617 'hwdebug_point_cmp'. Update all uses.
5618 (booke_find_thread_points_by_tid): Rename function
5619 'booke_find_thread_points_by_tid' to
5620 'hwdebug_find_thread_points_by_tid'. Update all uses.
5621 (booke_insert_point): Rename function 'booke_insert_point' to
5622 'hwdebug_insert_point'. Update all uses.
5623 (booke_remove_point): Rename function 'booke_remove_point' to
5624 'hwdebug_remove_point'. Update all uses.
5626 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5628 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5629 numbers with enum values.
5631 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5634 * thread.c (thread_apply_all_command): Check for valid threads
5636 (thread_array_cleanup): New struct.
5637 (set_thread_refcount): New function.
5639 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5641 * infcmd.c (default_print_one_register_info): Reuse function
5644 2013-07-10 Tom Tromey <tromey@redhat.com>
5646 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5647 (ada-exp.o): New target.
5649 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5651 * mt-tdep.c (mt_registers_info): Call
5652 get_no_prettyformat_print_options instead of
5653 get_raw_print_options (regression by last patch from Doug
5656 2013-07-09 Pedro Alves <palves@redhat.com>
5658 Checked in by Joel Brobecker <brobecker@adacore.com>.
5659 * ada-lang.c (coerce_unspec_val_to_type): Use
5660 value_optimized_out_const.
5661 * value.c (value_optimized_out_const): New function.
5662 * value.h (value_optimized_out_const): New declaration.
5664 2013-07-09 Doug Evans <dje@google.com>
5666 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5667 Enum values rename as well. All uses updated.
5668 * valprint.h (value_print_options): Rename member pretty to
5669 pretty format. Rename member prettyprint_arrays to
5670 prettyformat_arrays. Rename member prettyprint_structs to
5671 prettyformat_structs. All uses updated.
5672 (get_no_prettyformat_print_options): Renamed from
5673 get_raw_print_options.
5674 * valprint.c (get_no_prettyformat_print_options): Renamed from
5675 get_raw_print_options. All callers updated.
5676 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5677 All callers updated.
5678 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5679 All callers updated.
5680 (_initialize_valprint): Improve help text for "set print pretty" and
5683 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5685 * value.c (value_bits_valid): Revert previous change, and change
5686 by Pedro on 2013-07-04, due to regressions in
5687 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5689 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5690 Pedro Alves <palves@redhat.com>
5692 * value.c (value_bits_valid): If the value is not lval_computed
5693 or has no check validity handler then the answer is the
5694 optimized_out flag, otherwise defer to the handler.
5696 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5698 * top.c (print_gdb_configuration): Explain in output of
5699 --configuration what does "relocatable" mean.
5701 * main.c (print_gdb_help): Regroup options in the --help text.
5702 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5703 the relevant discussions.
5705 2013-07-06 Yao Qi <yao@codesourcery.com>
5707 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5708 Remove parameter 'lsal'.
5709 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5710 to inner block. Caller update.
5711 (base_breakpoint_create_breakpoints_sal): Update.
5712 (bkpt_create_breakpoints_sal): Likewise.
5713 (tracepoint_create_breakpoints_sal): Likewise.
5714 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5715 element 0 of vector 'canonical->sals'.
5717 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5719 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5720 register number instead of the pseudo register one.
5721 (rs6000_dwarf2_reg_to_regnum): Likewise.
5723 2013-07-04 Pedro Alves <palves@redhat.com>
5725 * findvar.c (value_of_register): Use allocate_optimized_out_value
5726 if the register has been optimized out, instead of
5727 set_value_optimized_out.
5728 * frame-unwind.c (frame_unwind_got_optimized): Use
5729 allocate_optimized_out_value.
5731 2013-07-04 Pedro Alves <palves@redhat.com>
5733 * value.c (value_bits_valid): If the value is not lval_computed,
5734 or doesn't have a check_validity hook, assume the value is entirely
5737 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5739 * stack.c (read_frame_arg): No longer fetch lazy values.
5740 * value.c (value_optimized_out): If the value is not already
5741 marked optimized out, and is lazy then fetch it.
5742 (value_primitive_field): Move optimized out check to later in the
5743 function, after we have loaded any lazy values.
5744 (value_fetch_lazy): Use optimized out flag directly rather than
5745 calling optimized_out method.
5747 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5749 * valops.c: Don't include "user-regs.h".
5750 (value_fetch_lazy): Moved to value.c.
5751 * value.c: Include "user-regs.h".
5752 (value_fetch_lazy): Moved from valops.c.
5754 2013-07-04 Yao Qi <yao@codesourcery.com>
5757 2013-06-27 Yao Qi <yao@codesourcery.com>
5759 * common/create-version.sh: Update comments. Handle the case
5760 that TARGET_ALIAS is empty.
5762 2013-07-03 Pedro Alves <palves@redhat.com>
5764 * Makefile.in (config.status): Depend on development.sh.
5765 (aclocal_m4_deps): Add libmcheck.m4.
5766 * acinclude.m4: Include libmcheck.m4.
5767 * configure.ac: Source development.sh instead of setting
5768 'development' here. --enable-libmcheck/--disable-libmcheck code
5769 factored out to GDB_AC_LIBMCHECK. Run it.
5770 * development.sh: New file.
5771 * libmcheck.m4: New file.
5772 * configure: Regenerate.
5774 2013-07-02 Tom Tromey <tromey@redhat.com>
5776 * contrib/ari/update-web-ari.sh: Update for version.in change.
5778 2013-07-02 Tom Tromey <tromey@redhat.com>
5780 * common/ptid.h: Comment fixes.
5782 2013-07-01 Tom Tromey <tromey@redhat.com>
5784 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5785 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5786 (dwarf2_read_index, create_all_comp_units): Update.
5788 2013-07-01 Tom Tromey <tromey@redhat.com>
5790 * configure.ac (build_warnings): Add -Wold-style-definition.
5791 * configure: Rebuild.
5792 * machoread.c (_initialize_machoread): Use "(void)".
5793 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5796 2013-07-01 Tom Tromey <tromey@redhat.com>
5798 * configure.ac (build_warnings): Add -Wold-style-declaration.
5799 * configure: Rebuild.
5800 * dsrec.c (make_srec): Use "static const", not "const static".
5801 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5803 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5804 Use "static const", not "const static".
5805 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5807 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5809 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5811 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5813 (v850_dbtrap_breakpoint_from_pc): Likewise.
5814 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5817 2013-07-01 Tom Tromey <tromey@redhat.com>
5819 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5820 * configure: Rebuild.
5822 2013-07-01 Pedro Alves <palves@redhat.com>
5824 * defs.h: Include "pathmax.h".
5825 * utils.c: Don't include sys/param.h.
5826 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5827 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5828 instead of MAXPATHLEN.
5829 * solib-sunos.c: Don't include sys/param.h.
5830 * xcoffread.c: Don't include sys/param.h.
5831 * bsd-kvm.c: Don't include sys/param.h.
5832 * darwin-nat.c: Don't include sys/param.h.
5833 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5834 * darwin-nat-info.c: Don't include sys/param.h.
5835 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5837 * i386obsd-nat.c: Don't include sys/param.h.
5838 * inf-child.c: Don't include sys/param.h.
5839 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5840 * linux-fork.c: Don't include sys/param.h.
5841 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5842 * linux-nat.c: Don't include sys/param.h.
5843 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5844 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5845 * m68klinux-nat.c: Don't include sys/param.h.
5846 * nbsd-nat.c: Don't include sys/param.h.
5847 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5848 * ppc-linux-nat.c: Don't include sys/param.h.
5849 * rs6000-nat.c: Don't include sys/param.h.
5850 * spu-linux-nat.c. Don't include sys/param.h.
5851 * windows-nat.c: Don't include sys/param.h.
5852 * xtensa-linux-nat.c: Don't include sys/param.h.
5853 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5855 2013-07-01 Pedro Alves <palves@redhat.com>
5857 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5858 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5859 * gnulib/aclocal.m4: Regenerate.
5860 * gnulib/config.in: Regenerate.
5861 * gnulib/configure: Regenerate.
5862 * gnulib/import/pathmax.h: New file.
5863 * gnulib/import/Makefile.am: Regenerate.
5864 * gnulib/import/Makefile.in: Regenerate.
5865 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5866 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5867 * gnulib/import/m4/pathmax.m4: New file.
5869 2013-07-01 Pedro Alves <palves@redhat.com>
5871 * configure.ac (GDBINIT): Define, depending on host.
5872 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5873 * top.c (PATH_MAX): Delete fallback definition.
5874 (GDBINIT_FILENAME): Delete.
5875 (gdbinit): Reimplement as const char array set to the GDBINIT
5877 * top.h (gdbinit): Make const.
5878 * configure, config.in: Regenerate.
5880 2013-07-01 Pedro Alves <palves@redhat.com>
5882 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5883 * cli/cli-cmds.h (source_script): Likewise.
5884 * exceptions.c (catch_command_errors_const): New function.
5885 * exceptions.h (catch_command_errors_const): Declare.
5886 * main.c (get_init_files): Make parameters const, and adjust.
5887 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5888 'local_gdbinit' locals const. Adjust to use
5889 catch_command_errors_const.
5890 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5891 'local_gdbinit' locals const.
5893 2013-07-01 Pedro Alves <palves@redhat.com>
5895 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5896 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5897 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5900 2013-07-01 Pedro Alves <palves@redhat.com>
5902 Import the "unistd" gnulib module.
5903 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5904 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5905 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5906 import/m4/unistd_h.m4.
5907 * gnulib/aclocal.m4: Renenerate.
5908 * gnulib/config.in: Renenerate.
5909 * gnulib/configure: Renenerate.
5910 * gnulib/import/Makefile.am: Renenerate.
5911 * gnulib/import/Makefile.in: Renenerate.
5912 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5913 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5914 * gnulib/import/m4/off_t.m4: New file.
5915 * gnulib/import/m4/ssize_t.m4: New file.
5916 * gnulib/import/m4/sys_types_h.m4: New file.
5917 * gnulib/import/m4/unistd_h.m4: New file.
5918 * gnulib/import/sys_types.in.h: New file.
5919 * gnulib/import/unistd.c: New file.
5920 * gnulib/import/unistd.in.h: New file.
5922 2013-07-01 Pedro Alves <palves@redhat.com>
5924 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5925 defined instead of checking HAVE_UNISTD_H.
5927 2013-07-01 Pedro Alves <palves@redhat.com>
5929 Reimport gnulib from scratch.
5930 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5931 import/m4/onceonly.m4.
5932 * gnulib/aclocal.m4: Renegerate.
5933 * gnulib/config.in: Renegerate.
5934 * gnulib/configure: Renegerate.
5935 * gnulib/import/Makefile.in: Renegerate.
5936 * gnulib/import/extra/update-copyright: Renegerate.
5937 * gnulib/import/m4/onceonly.m4: Delete.
5939 2013-07-01 Pedro Alves <palves@redhat.com>
5941 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5943 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5946 * remote.c (async_remote_interrupt_twice): Make it static.
5947 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5949 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5951 * ia64-linux-tdep.c: Include <ctype.h>.
5952 (ia64_linux_stap_is_single_operand): New function.
5953 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5955 2013-06-28 Tom Tromey <tromey@redhat.com>
5957 * Makefile.in (version.c): Use version.in, not
5959 * common/create-version.sh: Likewise.
5960 * common/version.in: Move...
5961 * version.in: ...here.
5963 2013-06-28 Pedro Alves <palves@redhat.com>
5965 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5967 * utils.h (pagination_enabled): Declare.
5969 2013-06-28 Pedro Alves <palves@redhat.com>
5971 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5972 Move higher up in file.
5974 2013-06-28 Tom Tromey <tromey@redhat.com>
5976 * tracepoint.c (deprecated_readline_begin_hook)
5977 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5980 2013-06-28 Pedro Alves <palves@redhat.com>
5983 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5984 checking if they're available.
5985 * value.c (value_available_contents_eq): Change comment.
5986 * value.h (value_available_contents_eq): Expand comment.
5988 2013-06-27 Tom Tromey <tromey@redhat.com>
5990 * target.c (find_run_target): Remove.
5991 * target.h (find_run_target): Remove.
5993 2013-06-27 Tom Tromey <tromey@redhat.com>
5995 * corelow.c (core_gdbarch): Now static.
5997 2013-06-27 Tom Tromey <tromey@redhat.com>
5999 * target.c (target_struct_index): Remove.
6001 2013-06-27 Pedro Alves <palves@redhat.com>
6003 * infrun.c: Remove comment describing the 'stepping over runtime
6004 loader dynamic symbol resolution code' mechanism; moved to
6007 2013-06-27 Pedro Alves <palves@redhat.com>
6009 * exceptions.c (catch_command_errors): Remove spurious space.
6010 * exceptions.h (catch_command_errors): Second parameter is "arg",
6013 2013-06-27 Yao Qi <yao@codesourcery.com>
6015 * common/create-version.sh: Update comments. Handle the case
6016 that TARGET_ALIAS is empty.
6018 2013-06-26 Pedro Alves <palves@redhat.com>
6020 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
6023 2013-06-26 Pedro Alves <palves@redhat.com>
6025 * infrun.c: Update comments on stepping over runtime loader
6026 dynamic symbol resolution code.
6028 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
6030 * ax-gdb.h (union exp_element): Forward declare.
6031 * parser-defs.h: Include expression.h.
6033 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6035 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
6037 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6039 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6041 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
6043 Fix trace-status to output proper start-time and stop-time.
6044 * tracepoint.c (trace_status_command): Fix type of printf arg to
6045 prevent improper type conversion.
6046 (trace_status_mi): Likewise.
6048 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6050 * mips-tdep.c (mips_next_pc): Fix a typo.
6052 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
6054 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6056 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6057 Yao Qi <yao@codesourcery.com>
6059 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6060 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6061 * mi/mi-main.c (print_variable_or_computed): New function.
6062 (mi_cmd_trace_frame_collected): New function.
6063 * tracepoint.c (find_trace_state_variable_by_number): New.
6064 (struct traceframe_info): Move to tracepoint.h
6065 (struct collection_list): Likewise.
6066 (do_collect_symbol): Include locals and arguments in the
6067 collected variables list.
6068 (clear_collection_list): Clear wholly collected variables list
6069 and computed variables list.
6070 (append_exp): New function.
6071 (encode_actions_1): Include variables in the wholly
6072 collected variables list. Include memory ranges and
6073 full-fledged expressions in the computed expressions list.
6074 (encode_actions): Move some code to ...
6075 Return the cleanup chain.
6076 (encode_actions_rsp): ... here. New function.
6077 (get_traceframe_location, get_traceframe_info): Remove static.
6078 * tracepoint.h (struct memrange): Moved from tracepoint.c.
6079 (struct collection_list): Moved from tracepoint.c. Add two
6080 new fields 'wholly_collected' and 'computed'.
6081 (find_trace_state_variable_by_number): Declare.
6082 (encode_actions): Adjust declaration.
6083 (encode_actions_rsp): Declare.
6084 (get_traceframe_info, get_traceframe_location): Declare.
6086 * NEWS: Mention new MI command -trace-frame-collected.
6088 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6089 Yao Qi <yao@codesourcery.com>
6091 * ctf.c (ctf_traceframe_info): Push trace state variables
6092 present in the trace data into the traceframe info object.
6093 * breakpoint.c (DEF_VEC_I): Remove.
6094 * common/filestuff.c (DEF_VEC_I): Likewise.
6095 * dwarf2loc.c (DEF_VEC_I): Likewise.
6096 * mi/mi-main.c (DEF_VEC_I): Likewise.
6097 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6098 * features/traceframe-info.dtd: Add tvar element and its
6100 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6101 (build_traceframe_info): Push trace state variables present in
6102 the trace data into the traceframe info object.
6103 (traceframe_info_start_tvar): New function.
6104 (tvar_attributes): New.
6105 (traceframe_info_children): Add "tvar" element.
6106 * tracepoint.h (struct traceframe_info) <tvars>: New field.
6108 * NEWS: Mention the change in GDB and GDBserver.
6110 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6111 Yao Qi <yao@codesourcery.com>
6113 * tracepoint.c (trace_dump_command): Move code to ...
6114 (get_traceframe_location): ... here. New.
6116 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6117 Yao Qi <yao@codesourcery.com>
6119 * tracepoint.c (trace_dump_command): GDB emits an error
6120 instead of a warning when a traceframe is not selected.
6122 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6123 Yao Qi <yao@codesourcery.com>
6125 * tracepoint.c (tracepoint_list, stepping_list): Remove.
6126 (clear_collection_list): Free fields 'aexpre_list' and 'list'
6128 (do_clear_collection_list, init_collection_list): New.
6129 (encode_actions): Add local variables 'tracepoint_list' and
6130 'stepping_list'. Call init_collection_list and make cleanup
6131 which calls do_clear_collection_list. Don't call
6132 clear_collection_list.
6133 (_initialize_tracepoint): Delete references to
6134 'tracepoint_list' and 'stepping_list'.
6136 2013-06-25 Tom Tromey <tromey@redhat.com>
6138 * common/create-version.sh (date): Use "$", not "$$" in sed
6141 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6143 * NEWS (New targets): Add entry for TI MSP430.
6145 2013-06-25 Yao Qi <yao@codesourcery.com>
6147 * remote.c (remote_start_remote): Move code to upload tsv
6150 2013-06-25 Yao Qi <yao@codesourcery.com>
6151 Hui Zhu <hui@codesourcery.com>
6152 Pedro Alves <palves@redhat.com>
6154 PR breakpoints/15075
6155 PR breakpoints/15434
6156 * breakpoint.c (bpstat_stop_status): Call
6157 b->ops->after_condition_true.
6158 (update_dprintf_command_list): Don't append "continue" command
6159 to the command list of dprintf breakpoint.
6160 (base_breakpoint_after_condition_true): New function.
6161 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6162 (dprintf_after_condition_true): New function.
6163 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6164 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6166 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6168 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6169 (ALLDEPFILES): Add msp430-tdep.c.
6170 * configure.tgt (msp430*-*-elf): New target.
6171 * msp430-tdep.c: New file.
6173 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6175 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6176 microMIPS synthetic symbols.
6178 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6180 * objfiles.h (pc_in_section): New prototype.
6181 (in_plt_section): Remove name argument, replace prototype with
6182 static inline function.
6183 * mips-tdep.h: Include "objfiles.h".
6184 (in_mips_stubs_section): New function.
6185 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6186 in_solib_call_trampoline member.
6187 (hppa_in_solib_call_trampoline): Remove name argument.
6188 * objfiles.c (pc_in_section): New function.
6189 (in_plt_section): Remove function.
6190 * mips-linux-tdep.c: Include "objfiles.h".
6191 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6192 name argument. Return 1 rather than the low 16-bit halfword of
6193 any instruction examined.
6194 (mips_linux_in_dynsym_resolve_code): Update
6195 mips_linux_in_dynsym_stub call accordingly.
6196 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6197 rather than an equivalent hand-coded sequence.
6198 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6199 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6200 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6201 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6203 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6204 on call to tdep->in_solib_call_trampoline.
6205 (hppa_in_solib_call_trampoline): Remove name argument, update
6206 according to in_plt_section change.
6207 (hppa_skip_trampoline_code): Update according to in_plt_section
6209 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6210 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6212 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6213 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6214 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6215 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6216 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6217 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6218 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6219 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6220 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6221 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6222 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6223 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6224 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6226 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6228 * common/create-version.sh: Fix expansion of $host_alias
6229 and $target_alias in generation of HOST_NAME and TARGET_NAME
6232 2013-06-24 Tom Tromey <tromey@redhat.com>
6234 * common/create-version.sh: New file.
6235 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6237 (HFILES_NO_SRCDIR): Use common/version.h.
6238 * version.in: Move to ...
6239 * common/version.in: ... here. Replace date with "DATE".
6240 * version.h: Move to ...
6241 * common/version.h: ... here.
6243 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6245 * gdb/gnulib/Makefile.in: Update date in copyright header.
6246 * gdb/gnulib/configure.ac: Ditto.
6247 * gdb/gnulib/update-gnulib.sh: Ditto.
6249 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6251 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6252 "gdb/gnulib/import".
6254 2013-06-21 Will Newton <will.newton@linaro.org>
6256 * doublest.c (ldfrexp): Remove function.
6257 (convert_doublest_to_floatformat): Call frexpl instead of
6260 2013-06-21 Will Newton <will.newton@linaro.org>
6262 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6263 * gnulib/aclocal.m4: Regenerate.
6264 * gnulib/config.in: Regenerate.
6265 * gnulib/configure: Regenerate.
6266 * gnulib/import/Makefile.am: Update.
6267 * gnulib/import/Makefile.in: Update.
6268 * gnulib/import/m4/gnulib-cache.m4: Update.
6269 * gnulib/import/m4/gnulib-comp.m4: Update.
6270 * gnulib/import/float+.h: Import.
6271 * gnulib/import/float.c: Import.
6272 * gnulib/import/float.in.h: Import.
6273 * gnulib/import/fpucw.h: Import.
6274 * gnulib/import/frexp.c: Import.
6275 * gnulib/import/frexpl.c: Import.
6276 * gnulib/import/isnan.c: Import.
6277 * gnulib/import/isnand-nolibm.h: Import.
6278 * gnulib/import/isnand.c: Import.
6279 * gnulib/import/isnanl-nolibm.h: Import.
6280 * gnulib/import/isnanl.c: Import.
6281 * gnulib/import/itold.c: Import.
6282 * gnulib/import/m4/exponentd.m4: Import.
6283 * gnulib/import/m4/exponentl.m4: Import.
6284 * gnulib/import/m4/float_h.m4: Import.
6285 * gnulib/import/m4/fpieee.m4: Import.
6286 * gnulib/import/m4/frexp.m4: Import.
6287 * gnulib/import/m4/frexpl.m4: Import.
6288 * gnulib/import/m4/isnand.m4: Import.
6289 * gnulib/import/m4/isnanl.m4: Import.
6290 * gnulib/import/m4/math_h.m4: Import.
6291 * gnulib/import/math.c: Import.
6292 * gnulib/import/math.in.h: Import.
6294 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6296 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6297 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6298 signature_INTEL_edx comparisons.
6300 2013-06-20 Doug Evans <dje@google.com>
6303 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6304 All callers updated.
6305 (open_dwp_file): If we can't find the dwp file, search the basename
6306 in debug-file-directory.
6308 * dwarf2read.c (struct dwp_file): Fix comment.
6309 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6311 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6314 2013-06-20 Yao Qi <yao@codesourcery.com>
6316 * breakpoint.c (create_breakpoint): Fix code indentation.
6318 2013-06-20 Yao Qi <yao@codesourcery.com>
6320 * breakpoint.c (create_breakpoints_sal_default): Remove
6321 parameter 'lsal'. Update declaration.
6322 (bkpt_create_breakpoints_sal): Caller update.
6323 (tracepoint_create_breakpoints_sal): Likewise.
6325 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6326 Yao Qi <yao@codesourcery.com>
6328 * NEWS: Mention the new option '--skip-unavailable' of command
6329 -data-list-register-values.
6330 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6331 --skip-unavailable option. Adjust to use output_register.
6332 (output_register): Add new 'skip_unavailable' parameter.
6335 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6337 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6338 common/i386-gcc-cpuid.h.
6339 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6340 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6341 Copy the latest version from upstream gcc.
6342 * common/linux-btrace.c: Include i386-cpuid.h.
6343 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6345 (cpu_supports_btrace): Likewise.
6346 * go32-nat.c: Include i386-cpuid.h.
6347 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6349 2013-06-19 Doug Evans <dje@google.com>
6351 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6352 (get_section_index): Ditto.
6354 2013-06-19 Tom Tromey <tromey@redhat.com>
6356 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6359 2013-06-18 Doug Evans <dje@google.com>
6361 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6363 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6364 Move test of cu_index closer to use. Print complaint if cu_index
6367 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6369 * machoread.c (oso_vector): Delete this global.
6370 (macho_register_oso): Add new parameter "oso_vector_ptr".
6371 Use it instead of the "oso_vector" global.
6372 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6373 (macho_symfile_read): Use a local oso_vector, to be free'ed
6374 at the end of this function, in place of the old "oso_vector"
6375 global. Update various function calls accordingly. Use one
6376 single cleanup chain for the entire function.
6378 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6380 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6381 DWARF2_PER_OBJFILE by uses of DATA instead.
6383 2013-06-18 Tom Tromey <tromey@redhat.com>
6385 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6387 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6388 Special case signals other than GDB_SIGNAL_TRAP.
6389 (explains_signal_watchpoint): New function.
6390 (base_breakpoint_explains_signal): Add 'sig' argument.
6391 (initialize_breakpoint_ops): Set 'explains_signal' method for
6393 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6395 (bpstat_explains_signal): Likewise.
6396 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6398 2013-06-18 Tom Tromey <tromey@redhat.com>
6400 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6402 2013-06-18 Tom Tromey <tromey@redhat.com>
6404 * python/python.c (finish_python_initialization): Decref
6405 'pythondir' on failure path as well.
6407 2013-06-18 Tom Tromey <tromey@redhat.com>
6410 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6411 after taking bits_to_skip into account. Sign extend byte_offset.
6412 * utils.h (gdb_sign_extend): Declare.
6413 * utils.c (gdb_sign_extend): New function.
6415 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6417 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6419 2013-06-17 Pierre Muller <muller@sourceware.org>
6421 * corelow.c (core_open): Print GDB signal name instead of target
6424 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6426 * .gitignore: Add /gcore.
6428 2013-06-13 Doug Evans <dje@google.com>
6430 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6431 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6433 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6435 * stack.c (backtrace_command_1): Fix indentation.
6437 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6439 * window-nat.c (thread_rec): Add missing empty line after
6440 local variable declaration.
6442 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6444 * windows-nat.c (thread_rec): Revert format used to print
6445 error code returned by SuspendThread from %d back to %u.
6447 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6449 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6451 (get_windows_debug_event): Likewise, for all debug traces.
6453 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6455 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6458 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6459 Yao Qi <yao@codesourcery.com>
6461 * mi/mi-main.c (get_register): Remove declaration.
6462 (output_register): Declare.
6463 (mi_cmd_data_list_register_values): Remove local variable
6464 'tuple_cleanup'. Move some code into output_register.
6465 (get_register): Renamed to ...
6466 (output_register): ... this. Output the register's
6467 "number" ui_out tuple here.
6469 2013-06-07 Pedro Alves <palves@redhat.com>
6471 * darwin-nat.c: Fix formating in copyright header.
6472 * darwin-nat.h: Likewise.
6473 * gnu-nat.c: Likewise.
6474 * machoread.c: Likewise.
6476 2013-06-07 Pedro Alves <palves@redhat.com>
6479 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6480 static. Output a global target description pointer.
6481 (init_registers_${name}): Adjust to initialize a
6482 target description structure.
6484 2013-06-07 Will Newton <will.newton@linaro.org>
6486 * printcmd.c (build_address_symbolic): Call
6487 gdbarch_addr_bits_remove for text minimal symbols.
6489 2013-06-07 Will Newton <will.newton@linaro.org>
6491 * MAINTAINERS: Add myself to Write After Approval.
6493 2013-06-07 Yao Qi <yao@codesourcery.com>
6495 * tracepoint.c (start_tracing): Move code to ...
6496 (trace_reset_local_state): ... here. New.
6497 (disconnect_tracing): Don't call set_current_traceframe,
6498 set_tracepoint_num, and set_traceframe_context. Call
6499 trace_reset_local_state instead.
6500 (tfile_close): Call trace_reset_local_state.
6501 * ctf.c (ctf_close): Likewise.
6502 * remote.c (remote_close): Likewise.
6503 * tracepoint.h (trace_reset_local_state): Declare.
6505 2013-06-06 Doug Evans <dje@google.com>
6507 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6508 and fix header docs.
6510 2013-06-05 Doug Evans <dje@google.com>
6511 Keith Seitz <keiths@redhat.com>
6514 * cp-namespace.c (find_symbol_in_baseclass): Call
6515 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6516 Check result of call to lookup_symbol_static.
6517 Call lookup_static_symbol_aux unconditionally.
6518 Call check_typedef on base types before accessing them.
6519 (cp_lookup_nested_symbol): Fix comment.
6521 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6523 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6524 minimal symbols pointing to function descriptors.
6526 2013-06-05 Tom Tromey <tromey@redhat.com>
6528 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6530 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6531 Pedro Alves <palves@redhat.com>
6533 * remote.c (remote_wait_as): Restore signal handler before returning
6534 when GDB gets a notification.
6536 2013-06-04 Gary Benson <gbenson@redhat.com>
6539 * breakpoint.h (handle_solib_event): Moved function declaration
6541 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6542 (bpstat_stop_status): Pass new argument to handle_solib_event.
6543 * solib.h (update_solib_breakpoints): New function declaration.
6544 (handle_solib_event): Moved function declaration from
6546 * solib.c (update_solib_breakpoints): New function.
6547 (handle_solib_event): Moved function from breakpoint.c.
6548 Updated to call solib_ops->handle_event if not NULL.
6549 * solist.h (target_so_ops): New fields "update_breakpoints" and
6551 * infrun.c (set_stop_on_solib_events): New function.
6552 (_initialize_infrun): Use the above for "set
6553 stop-on-solib-events".
6554 (handle_inferior_event): Pass new argument to handle_solib_event.
6555 * solib-svr4.c (probe.h): New include.
6556 (svr4_free_library_list): New forward declaration.
6557 (probe_action): New enum.
6558 (probe_info): New struct.
6559 (probe_info): New static variable.
6560 (NUM_PROBES): New definition.
6561 (svr4_info): New fields "using_xfer", "probes_table" and
6563 (free_probes_table): New function.
6564 (free_solib_list): New function.
6565 (svr4_pspace_data_cleanup): Free probes table and solib list.
6566 (svr4_copy_library_list): New function.
6567 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6568 (svr4_read_so_list): New parameter "prev_lm".
6569 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6570 (svr4_current_sos): New function.
6571 (probe_and_action): New struct.
6572 (hash_probe_and_action): New function.
6573 (equal_probe_and_action): Likewise.
6574 (register_solib_event_probe): Likewise.
6575 (solib_event_probe_at): Likewise.
6576 (solib_event_probe_action): Likewise.
6577 (solist_update_full): Likewise.
6578 (solist_update_incremental): Likewise.
6579 (disable_probes_interface_cleanup): Likewise.
6580 (svr4_handle_solib_event): Likewise.
6581 (svr4_update_solib_event_breakpoint): Likewise.
6582 (svr4_update_solib_event_breakpoints): Likewise.
6583 (svr4_create_solib_event_breakpoints): Likewise.
6584 (enable_break): Free probes table before creating breakpoints.
6585 Use svr4_create_solib_event_breakpoints to create breakpoints.
6586 (svr4_solib_create_inferior_hook): Free the solib list.
6587 (_initialize_svr4_solib): Initialise
6588 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6590 2013-06-04 Gary Benson <gbenson@redhat.com>
6592 * target.h (target_ops): New field
6593 "to_augmented_libraries_svr4_read".
6594 (target_augmented_libraries_svr4_read): New macro.
6595 * target.c (update_current_target): Handle
6596 to_augmented_libraries_svr4_read.
6597 * remote.c (remote_state): New field
6598 "augmented_libraries_svr4_read".
6599 (remote_augmented_libraries_svr4_read_feature): New function.
6600 (remote_protocol_features): Add entry for
6601 "augmented-libraries-svr4-read".
6602 (remote_augmented_libraries_svr4_read): New function.
6603 (init_remote_ops): Initialize
6604 remote_ops.to_augmented_libraries_svr4_read.
6606 2013-06-04 Gary Benson <gbenson@redhat.com>
6610 2013-06-04 Gary Benson <gbenson@redhat.com>
6612 * objfiles.h (inhibit_section_map_updates): New function
6614 (resume_section_map_updates): Likewise.
6615 (resume_section_map_updates_cleanup): Likewise.
6616 * objfiles.c (objfile_pspace_info): Removed field
6617 "objfiles_changed_p". New fields "new_objfiles_available",
6618 "section_map_dirty" and "inhibit_updates".
6619 (allocate_objfile): Set new_objfiles_available.
6620 (free_objfile): Set section_map_dirty.
6621 (objfile_relocate1): Likewise.
6622 (in_plt_section): Likewise.
6623 (find_pc_section): Update the conditions under which the
6624 section map will be updated.
6625 (inhibit_section_map_updates): New function.
6626 (resume_section_map_updates): Likewise.
6627 (resume_section_map_updates_cleanup): Likewise.
6629 2013-06-04 Gary Benson <gbenson@redhat.com>
6631 * probe.h (get_probe_argument_count): New declaration.
6632 (evaluate_probe_argument): Likewise.
6633 * probe.c (get_probe_argument_count): New function.
6634 (evaluate_probe_argument): Likewise.
6635 (probe_safe_evaluate_at_pc): Use the above new functions.
6637 2013-06-04 Alan Modra <amodra@gmail.com>
6639 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6640 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6641 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6642 target mem reads on optional insns.
6643 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6644 ppc_insns_match_pattern calls.
6645 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6646 Add match for power7 thread safety insns, and new order of
6647 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6648 invocation in comment, and update rest of comment.
6649 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6650 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6651 (ppc64_standard_linkage2_target): Update insn offsets.
6652 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6653 stubs first. Update calls.
6655 2013-06-04 Yao Qi <yao@codesourcery.com>
6657 * solib.c (solib_find): Don't need dir separator if path has
6660 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6662 Revert (indirectly causes a SIGSEGV):
6663 * machoread.c (macho_symfile_read): Assign first cleanup to
6666 2013-06-03 Yao Qi <yao@codesourcery.com>
6668 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6669 mi-parse.c. Make them static.
6670 (mi_all_values): Likewise.
6671 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6672 mi_parse_print_values. Make it external.
6673 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6674 Remove the declarations.
6675 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6676 * mi/mi-parse.h (mi_parse_print_values): Declare.
6677 * mi/mi-cmd-stack.c: Include mi-parse.h.
6678 (parse_print_values): Remove
6679 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6680 of parse_print_values.
6681 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6683 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6684 Yao Qi <yao@codesourcery.com>
6686 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6687 (encode_actions): Move code to ...
6688 (all_tracepoint_actions_and_cleanup): ... here. New.
6689 (trace_dump_command): Likewise.
6691 2013-05-30 Tom Tromey <tromey@redhat.com>
6693 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6695 2013-05-30 Tom Tromey <tromey@redhat.com>
6697 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6698 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6699 'old_chain' argument. Add 'parser_result' argument.
6700 (gdb_xml_create_parser_and_cleanup): Remove old version.
6701 (gdb_xml_parse_quick): Update.
6702 (xml_process_xincludes): Update.
6703 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6706 2013-05-30 Tom Tromey <tromey@redhat.com>
6708 * probe.c (collect_probes): Check arguments for NULL before
6709 calling compile_rx_or_error.
6710 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6713 2013-05-30 Tom Tromey <tromey@redhat.com>
6715 * infrun.c (adjust_pc_after_break): Introduce an outer null
6718 2013-05-30 Tom Tromey <tromey@redhat.com>
6720 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6722 2013-05-30 Tom Tromey <tromey@redhat.com>
6724 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6725 for 'old_chain'. Do not check 'head' before processing
6728 2013-05-30 Tom Tromey <tromey@redhat.com>
6730 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6733 2013-05-30 Tom Tromey <tromey@redhat.com>
6735 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6736 inner scope. Unconditionally call do_cleanups.
6738 2013-05-30 Tom Tromey <tromey@redhat.com>
6740 * source.c (find_and_open_source): Call do_cleanups.
6742 2013-05-30 Tom Tromey <tromey@redhat.com>
6744 * linux-thread-db.c (thread_db_load_search): Unconditionally
6747 2013-05-30 Tom Tromey <tromey@redhat.com>
6749 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6750 for 'cleanup'; instead use a later one.
6752 2013-05-30 Tom Tromey <tromey@redhat.com>
6754 * python/py-breakpoint.c (bppy_get_commands): Use
6755 explicit, unconditional return.
6756 * python/py-frame.c (frapy_read_var): Likewise.
6757 * python/python.c (gdbpy_decode_line): Likewise.
6759 2013-05-30 Tom Tromey <tromey@redhat.com>
6761 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6762 do_cleanups on all return paths.
6764 2013-05-30 Tom Tromey <tromey@redhat.com>
6766 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6768 2013-05-30 Tom Tromey <tromey@redhat.com>
6770 * stabsread.c (read_struct_type): Call do_cleanups along
6773 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6775 * mips-linux-tdep.c: Adjust formatting throughout.
6777 2013-05-30 Tom Tromey <tromey@redhat.com>
6779 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6780 along all return paths.
6782 2013-05-30 Tom Tromey <tromey@redhat.com>
6784 * symfile.c (find_separate_debug_file): Call do_cleanups
6785 along all return paths.
6787 2013-05-30 Tom Tromey <tromey@redhat.com>
6789 * symtab.c (search_symbols): Introduce a null cleanup for
6792 2013-05-30 Tom Tromey <tromey@redhat.com>
6794 * python/py-value.c (valpy_binop): Call do_cleanups before
6797 2013-05-30 Tom Tromey <tromey@redhat.com>
6799 * python/py-prettyprint.c (print_children): Remove extra
6802 2013-05-30 Tom Tromey <tromey@redhat.com>
6804 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6807 2013-05-30 Tom Tromey <tromey@redhat.com>
6809 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6810 along all return paths.
6812 2013-05-30 Tom Tromey <tromey@redhat.com>
6814 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6817 2013-05-30 Tom Tromey <tromey@redhat.com>
6819 * varobj.c (c_value_of_root): Call do_cleanups along all
6822 2013-05-30 Tom Tromey <tromey@redhat.com>
6824 * tracepoint.c (trace_dump_command): Unconditionally call
6827 2013-05-30 Tom Tromey <tromey@redhat.com>
6829 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6830 do_cleanups earlier.
6832 2013-05-30 Tom Tromey <tromey@redhat.com>
6834 * machoread.c (macho_symfile_read): Assign first cleanup to
6837 2013-05-30 Tom Tromey <tromey@redhat.com>
6839 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6841 2013-05-30 Tom Tromey <tromey@redhat.com>
6843 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6845 2013-05-30 Tom Tromey <tromey@redhat.com>
6847 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6848 call discard_cleanups.
6849 (inf_ptrace_attach): Likewise.
6851 2013-05-30 Tom Tromey <tromey@redhat.com>
6853 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6855 (mips_initialize): Likewise.
6856 (common_open): Call do_cleanups.
6858 2013-05-30 Tom Tromey <tromey@redhat.com>
6860 * utils.c (internal_vproblem): Call do_cleanups.
6862 2013-05-30 Tom Tromey <tromey@redhat.com>
6864 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6866 2013-05-30 Tom Tromey <tromey@redhat.com>
6868 * cli/cli-script.c (setup_user_args): Don't return after error.
6870 2013-05-30 Tom Tromey <tromey@redhat.com>
6872 * somread.c (som_symtab_read): Call do_cleanups.
6874 2013-05-30 Tom Tromey <tromey@redhat.com>
6876 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6878 2013-05-30 Tom Tromey <tromey@redhat.com>
6880 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6881 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6882 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6883 * source.c (show_substitute_path_command): Call do_cleanups.
6884 (unset_substitute_path_command, set_substitute_path_command):
6886 * symfile.c (load_command): Call do_cleanups.
6888 2013-05-30 Tom Tromey <tromey@redhat.com>
6890 * contrib/cleanup_check.py: New file.
6891 * contrib/gcc-with-excheck: Add option parsing.
6893 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6895 * windows-nat.c (windows_delete_thread): Add missing space
6898 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6900 * inferior.c (top level): Include tilde.h.
6901 (add_inferior_command): Call tilde_expand on the value of 'exec'
6904 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6905 Yao Qi <yao@codesourcery.com>
6907 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6909 (encode_actions): Likewise.
6910 * remote.c (remote_download_tracepoint): Caller update.
6911 * tracepoint.h (encode_actions): Update declaration.
6913 2013-05-30 Pedro Alves <palves@redhat.com>
6915 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6918 2013-05-30 Yao Qi <yao@codesourcery.com>
6920 * remote.c (remote_check_symbols): Remove unused parameter
6923 (remote_start_remote, remote_new_objfile): Caller update.
6925 2013-05-30 Yao Qi <yao@codesourcery.com>
6927 * mi/mi-cmds.c (mi_cmds): Define MI command
6928 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6931 2013-05-29 Pedro Alves <palves@redhat.com>
6933 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6934 (remote_insert_watchpoint, remote_remove_watchpoint)
6935 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6936 (remote_verify_memory, compare_sections_command)
6937 (remote_search_memory): Set the general process/thread on the
6940 2013-05-29 Pedro Alves <palves@redhat.com>
6942 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6943 (_initialize_aarch64_tdep): Don't call
6944 initialize_tdesc_aarch64_without_fpu.
6945 * features/Makefile (WHICH): Remove reference to
6946 aarch64-without-fpu.
6947 * features/aarch64-without-fpu.c: Delete file.
6948 * regformats/aarch64-without-fpu.dat: Delete file.
6950 2013-05-28 Yao Qi <yao@codesourcery.com>
6952 * tracepoint.c (stringify_collection_list): Remove parameter
6954 (encode_actions): Caller update. Remove local variables.
6956 2013-05-24 Yao Qi <yao@codesourcery.com>
6958 * tracepoint.c (TFILE_PID): Remove.
6959 (tfile_open): Don't add thread and inferior.
6960 (tfile_close): Don't set 'inferior_ptid'. Don't call
6961 exit_inferior_silent.
6962 (tfile_thread_alive): Remove.
6963 (init_tfile_ops): Don't set field 'to_thread_alive' of
6966 2013-05-23 Doug Evans <dje@google.com>
6968 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6970 2013-05-23 Pedro Alves <palves@redhat.com>
6972 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6973 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6974 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6975 Only define if HAVE_SOCKETS is defined.
6976 * configure.ac: Check for sys/socket.h.
6977 * config.in, configure: Regenerate.
6979 2013-05-23 Pedro Alves <palves@redhat.com>
6981 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6982 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6983 printing uint32_t variables.
6985 2013-05-23 Pedro Alves <palves@redhat.com>
6987 * NEWS: Mention GDBserver range stepping support.
6989 2013-05-23 Yao Qi <yao@codesourcery.com>
6990 Pedro Alves <palves@redhat.com>
6992 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6994 * infcmd.c (step_once, until_next_command): Enable range stepping.
6995 * infrun.c (displaced_step_prepare): Disable range stepping.
6996 (resume): Disable range stepping if stepping over a breakpoint or
6997 we have software watchpoints. If range stepping is enabled,
6998 assert the thread is in the stepping range.
6999 (clear_proceed_status_thread): Clear may_range_step.
7000 (handle_inferior_event): Disable range stepping as soon as we know
7001 the thread that hit the event. Re-enable it whenever we're going
7002 to step with a step range.
7003 * remote.c (struct vCont_action_support) <r>: New field.
7004 (use_range_stepping): New global.
7005 (remote_vcont_probe): Handle 'r' action.
7006 (append_resumption): Append an 'r' action if the thread may range
7008 (show_range_stepping): New function.
7009 (set_range_stepping): New function.
7010 (_initialize_remote): Call add_setshow_boolean_cmd to register the
7011 'set range-stepping' and 'show range-stepping' commands.
7012 * NEWS: Mention range stepping, the new vCont;r action, and the
7013 new "set/show range-stepping" commands.
7015 2013-05-23 Yao Qi <yao@codesourcery.com>
7016 Pedro Alves <palves@redhat.com>
7018 * remote.c (struct vCont_action_support): New struct.
7019 (struct remote_state) <support_vCont_t>: Remove field.
7020 <vCont_actions_support>: New field.
7021 (remote_vcont_probe, remote_stop_ns): Update.
7023 2013-05-23 Yao Qi <yao@codesourcery.com>
7024 Pedro Alves <palves@redhat.com>
7026 * gdbthread.h (pc_in_thread_step_range): New declaration.
7027 * thread.c (pc_in_thread_step_range): New function.
7028 * infrun.c (handle_inferior_event): Use it.
7030 2013-05-23 Joel Brobecker <brobecker@adacore.com>
7032 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
7035 2013-05-22 Keith Seitz <keiths@redhat.com>
7037 * ada-lang.c (is_known_support_routine): Add explicit free of
7038 'func_name' from find_frame_funname.
7039 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7040 for func_name from find_frame_funname.
7041 * python/py-frame.c (frapy_name): Add explicit free of
7042 'name' from find_frame_funname.
7043 * stack.c (find_frame_funname): Add comment explaining that
7044 funcp must be freed by the caller.
7045 Return copy of symbol names instead of pointers.
7046 (print_frame): Add a cleanup for 'funname' from
7048 * stack.h (find_frame_funname): Remove "const" from
7049 'funname' parameter.
7051 2013-05-22 Tom Tromey <tromey@redhat.com>
7054 * c-valprint.c (c_value_print): Use value_addr for
7055 references. Convert back to reference type with value_ref.
7057 2013-05-22 Eli Zaretskii <eliz@gnu.org>
7059 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7060 unloaded DLL, it will be done by handle_solib_event. See
7061 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7064 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
7066 * ui-out.c: Create typedef ui_out_level_p and define vector
7067 operations for that type.
7068 (struct ui_out): Use a vector instead of an array.
7069 (current_level): Return level from a vector.
7070 (push_level): Create a level in a vector.
7071 (pop_level): Delete a level in a vector.
7072 (ui_out_new): Create initial level zero level, and store in a
7074 (ui_out_destroy): Add vector cleanup.
7076 2013-05-22 Pedro Alves <palves@redhat.com>
7078 * python/python-internal.h (gdb_Py_DECREF): Tag with
7079 "ARI: editCase function".
7081 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
7083 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7085 2013-05-21 Pedro Alves <palves@redhat.com>
7087 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7088 whether PRINTER is NULL before installing a Py_DECREF cleanup.
7089 * python/py-utils.c (py_decref): Don't check for NULL before
7092 2013-05-21 Pedro Alves <palves@redhat.com>
7094 * python/py-utils.c (py_decref): Remove extra braces.
7095 (gdb_pymodule_addobject): Remove extra braces.
7096 * python-internal.h (gdb_Py_DECREF): New static inline function.
7097 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7099 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7101 * breakpoints.c (detach_breakpoints): Do not
7102 detach breakpoints locations with loc_type bp_loc_other.
7104 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7106 Workaround Python 2.6.
7107 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7110 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7112 Code cleanup: constification.
7113 * solib.c (solib_ops): Make return type and ops variable type const.
7114 (set_solib_ops): Make the new_ops parameter and ops variable const.
7115 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7116 (solib_add, solib_keep_data_in_core, clear_solib)
7117 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7118 (reload_shared_libraries, solib_global_lookup): Make the ops variable
7120 * solib.h (set_solib_ops): Make the new_ops parameter const.
7122 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7124 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7126 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7127 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7128 (SYSTEM_GDBINIT_FILES): New variables.
7129 (all): Add stamp-system-gdbinit.
7130 (stamp-system-gdbinit): New rule.
7131 (clean-system-gdbinit, install-system-gdbinit)
7132 (uninstall-system-gdbinit): New rules. Make them .PHONY.
7133 (install-only): Add dependency on install-system-gdbinit.
7134 (uninstall): Add dependency on uninstall-system-gdbinit.
7135 (clean): Add dependency on clean-system-gdbinit.
7136 * system-gdbinit/elinos.py: New file.
7137 * system-gdbinit/wrs-linux.py: New file.
7139 2013-05-21 Joel Brobecker <brobecker@adacore.com>
7141 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7143 2013-05-21 Hui Zhu <hui@codesourcery.com>
7145 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7146 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7147 * mi/mi-cmd-break.c (ctype.h): New include.
7148 (gdb_obstack.h): New include.
7149 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7150 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7151 (mi_cmd_dprintf_insert): New.
7152 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7153 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7155 2013-05-20 Tom Tromey <tromey@redhat.com>
7157 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7159 2013-05-20 Tom Tromey <tromey@redhat.com>
7161 * python/py-value.c (valpy_get_dynamic_type): Simplify
7162 dynamic_type assignment. Use Py_XINCREF.
7164 2013-05-20 Tom Tromey <tromey@redhat.com>
7166 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7168 2013-05-20 Tom Tromey <tromey@redhat.com>
7170 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7171 (gdbpy_selected_frame): Move object-construction code
7174 2013-05-20 Tom Tromey <tromey@redhat.com>
7176 * python/py-arch.c (gdbpy_initialize_arch): Use
7177 gdb_pymodule_addobject.
7178 * python/py-block.c (gdbpy_initialize_blocks): Use
7179 gdb_pymodule_addobject.
7180 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7181 gdb_pymodule_addobject.
7182 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7183 gdb_pymodule_addobject.
7184 * python/py-event.c (gdbpy_initialize_event_generic): Use
7185 gdb_pymodule_addobject.
7186 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7187 gdb_pymodule_addobject.
7188 * python/py-evts.c (add_new_registry): Use
7189 gdb_pymodule_addobject.
7190 (gdbpy_initialize_py_events): Likewise.
7191 * python/py-finishbreakpoint.c
7192 (gdbpy_initialize_finishbreakpoints): Use
7193 gdb_pymodule_addobject.
7194 * python/py-frame.c (gdbpy_initialize_frames): Use
7195 gdb_pymodule_addobject.
7196 * python/py-function.c (gdbpy_initialize_functions): Use
7197 gdb_pymodule_addobject.
7198 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7199 gdb_pymodule_addobject.
7200 * python/py-infthread.c (gdbpy_initialize_thread): Use
7201 gdb_pymodule_addobject.
7202 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7203 gdb_pymodule_addobject.
7204 * python/py-param.c (gdbpy_initialize_parameters): Use
7205 gdb_pymodule_addobject.
7206 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7207 gdb_pymodule_addobject.
7208 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7209 gdb_pymodule_addobject.
7210 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7211 gdb_pymodule_addobject.
7212 * python/py-type.c (gdbpy_initialize_types): Use
7213 gdb_pymodule_addobject.
7214 * python/py-utils.c (gdb_pymodule_addobject): New function.
7215 * python/py-value.c (gdbpy_initialize_values): Use
7216 gdb_pymodule_addobject.
7217 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7218 * python/python.c (_initialize_python): Use
7219 gdb_pymodule_addobject.
7221 2013-05-20 Tom Tromey <tromey@redhat.com>
7223 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7224 * python/py-param.c (get_set_value, get_show_value): Use
7226 * python/python.c (start_type_printers, apply_type_printers):
7227 Use explicit decrefs.
7229 2013-05-20 Tom Tromey <tromey@redhat.com>
7231 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7234 2013-05-20 Tom Tromey <tromey@redhat.com>
7236 * python/python.c (gdbpy_run_events): Decref the result
7237 of PyObject_CallObject.
7239 2013-05-20 Tom Tromey <tromey@redhat.com>
7241 * python/py-symtab.c (set_sal): Use
7242 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7243 (symtab_and_line_to_sal_object): Update.
7245 2013-05-20 Tom Tromey <tromey@redhat.com>
7247 * python/py-param.c (compute_enum_values): Decref 'item'.
7249 2013-05-20 Tom Tromey <tromey@redhat.com>
7251 * mi/mi-main.c: Include python-internal.h.
7252 (mi_cmd_list_features): Check gdb_python_initialized.
7253 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7254 (python_inferior_exit, python_new_objfile, add_thread_object)
7255 (delete_thread_object, py_free_inferior): Check
7256 gdb_python_initialized.
7257 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7258 gdb_python_initialized.
7259 * python/py-type.c (save_objfile_types): Check
7260 gdb_python_initialized.
7261 * python/python-internal.h (gdb_python_initialized): Declare.
7262 * python/python.c (ensure_python_env): Throw exception if
7263 Python not initialized.
7264 (before_prompt_hook, source_python_script_for_objfile)
7265 (start_type_printers, apply_type_printers,
7266 free_type_printers): Check gdb_python_initialized.
7267 * varobj.c (varobj_get_display_hint)
7268 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7269 (install_new_value_visualizer, varobj_set_visualizer)
7270 (value_get_print_value): Check gdb_python_initialized.
7272 2013-05-20 Tom Tromey <tromey@redhat.com>
7274 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7276 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7277 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7279 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7281 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7283 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7285 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7286 init function to return 'int'.
7287 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7288 Return 'int'. Check errors.
7289 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7291 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7292 Return 'int'. Check errors.
7293 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7295 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7297 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7299 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7301 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7303 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7305 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7307 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7309 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7311 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7313 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7315 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7317 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7319 * python/python-internal.h (gdbpy_initialize_auto_load,
7320 gdbpy_initialize_values, gdbpy_initialize_frames,
7321 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7322 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7323 gdbpy_initialize_blocks, gdbpy_initialize_types,
7324 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7325 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7326 gdbpy_initialize_finishbreakpoints,
7327 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7328 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7329 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7330 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7331 gdbpy_initialize_signal_event,
7332 gdbpy_initialize_breakpoint_event,
7333 gdbpy_initialize_continue_event,
7334 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7335 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7336 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7337 * python/python.c (gdb_python_initialized): New global.
7338 (gdbpy_initialize_events): Return 'int'. Check errors.
7339 (_initialize_python): Check errors. Set
7340 gdb_python_initialized.
7342 2013-05-20 Tom Tromey <tromey@redhat.com>
7344 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7345 Decref the reslut of PyObject_CallMethod.
7347 2013-05-20 Tom Tromey <tromey@redhat.com>
7349 * python/py-event.c (gdbpy_initialize_event_generic): Return
7350 early if PyType_Ready fails.
7352 2013-05-20 Tom Tromey <tromey@redhat.com>
7354 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7355 as 'default' in the switch.
7357 2013-05-20 Tom Tromey <tromey@redhat.com>
7359 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7360 get_addr_from_python calls out of TRY_CATCH.
7361 (infpy_write_memory, infpy_search_memory): Likewise.
7362 * python/py-utils.c (get_addr_from_python): Return negative
7363 value on error. Use TRY_CATCH.
7364 * python/python-internal.h (get_addr_from_python): Use
7365 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7367 2013-05-20 Tom Tromey <tromey@redhat.com>
7369 * python/py-event.c (evpy_emit_event): Decref the
7370 result of PyObject_CallFunctionObjArgs.
7372 2013-05-20 Tom Tromey <tromey@redhat.com>
7374 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7377 2013-05-20 Tom Tromey <tromey@redhat.com>
7379 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7381 2013-05-20 Tom Tromey <tromey@redhat.com>
7383 * python/py-event.h (gdbpy_initialize_event_generic): Use
7384 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7385 * python/py-evts.c (add_new_registry): Use
7386 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7387 * python/python-internal.h
7388 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7390 2013-05-20 Tom Tromey <tromey@redhat.com>
7392 * python/py-arch.c (archpy_disassemble): Update.
7393 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7394 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7395 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7396 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7398 (GDB_PY_HANDLE_EXCEPTION): Update.
7399 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7401 2013-05-20 Tom Tromey <tromey@redhat.com>
7403 * python/python-internal.h (events_object_type): Remove.
7405 2013-05-20 Tom Tromey <tromey@redhat.com>
7407 * python/py-event.h (evpy_emit_event): Use
7408 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7409 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7412 2013-05-20 Tom Tromey <tromey@redhat.com>
7414 * py-evtregistry.c (create_event_object): Decref
7415 eventregistry_object if PyList_New fails.
7417 2013-05-20 Tom Tromey <tromey@redhat.com>
7419 * py-cmd.c (gdbpy_string_to_argv): Check result of
7422 2013-05-20 Tom Tromey <tromey@redhat.com>
7424 * python/python.c (before_prompt_hook): Add cleanup to
7427 2013-05-20 Tom Tromey <tromey@redhat.com>
7429 * python/py-function.c (fnpy_init): Decref result of
7430 PyObject_GetAttrString.
7432 2013-05-20 Tom Tromey <tromey@redhat.com>
7434 * python/py-threadevent.c (get_event_thread): Use
7435 CPYCHECKER_RETURNS_BORROWED_REF.
7436 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7438 (pspace_to_pspace_object, objfile_to_objfile_object)
7439 (find_thread_object): Use it.
7441 2013-05-20 Tom Tromey <tromey@redhat.com>
7443 * python/py-arch.c (arch_object_type): Use
7444 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7445 * python/py-block.c (block_syms_iterator_object_type):
7446 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7447 * python/py-bpevent.c (breakpoint_event_object_type):
7448 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7449 * python/py-cmd.c (cmdpy_object_type): Use
7450 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7451 * python/py-continueevent.c (continue_event_object_type):
7452 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7453 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7454 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7455 * python/py-events.h (thread_event_object_type):
7456 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7457 * python/py-evtregistry.c (eventregistry_object_type): Use
7458 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7459 * python/py-exitedevent.c (exited_event_object_type):
7460 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7461 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7462 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7463 * python/py-function.c (fnpy_object_type): Use
7464 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7465 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7466 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7467 * python/py-infthread.c (thread_object_type): Use
7468 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7469 * python/py-lazy-string.c (lazy_string_object_type):
7470 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7471 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7472 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7473 * python/py-objfile.c (objfile_object_type): Use
7474 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7475 * python/py-param.c (parmpy_object_type):
7476 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7477 * python/py-progspace.c (pspace_object_type):
7478 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7479 * python/py-signalevent.c (signal_event_object_type):
7480 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7481 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7482 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7483 * python/py-type.c (type_object_type, field_object_type)
7484 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7485 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7487 (value_object_type, block_object_type, symbol_object_type)
7488 (event_object_type, stop_event_object_type, breakpoint_object_type)
7489 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7491 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7493 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7494 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7496 2013-05-20 Doug Evans <dje@google.com>
7498 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7500 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7501 reading_dwo_directly.
7502 (struct signatured_type): New member dwo_unit.
7503 (struct die_reader_specs): New member comp_dir.
7504 (create_signatured_type_table_from_index): Use malloc for
7505 all_type_units instead of objfile's obstack.
7506 (create_all_type_units): Ditto.
7507 (fill_in_sig_entry_from_dwo_entry): New function.
7508 (add_type_unit): New function.
7509 (lookup_dwo_signatured_type): New function.
7510 (lookup_dwp_signatured_type): New function.
7511 (lookup_signatured_type): New arg cu. All callers updated.
7512 (init_cu_die_reader): Initialize comp_dir.
7513 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7514 Change assert of matching type signatures to call error on mismatch.
7515 (lookup_dwo_unit): Add assert.
7516 (init_tu_and_read_dwo_dies): New function.
7517 (init_cutu_and_read_dies): Call it.
7518 (build_type_unit_groups): Handle case of no type unit groups created.
7519 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7520 (lookup_dwo_cutu): Tweak complaint.
7521 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7522 (dwarf2_per_objfile_free): Free all_type_units.
7524 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7526 * windows-nat.c (handle_unload_dll): Add missing empty line.
7528 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7530 * dwarf2read.c (prototyped_function_p): New function.
7531 (read_subroutine_type): Use it.
7533 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7535 * rs6000-aix-tdep.c: De-indent some example code provided
7538 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7540 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7541 region is ok for a hardware watchpoint using the new ptrace interface
7544 2013-05-17 Doug Evans <dje@google.com>
7546 * NEWS: Mention new maintenance commands check-symtabs, and
7547 expand-symtabs, and renamed check-psymtabs.
7548 * psymtab.c (maintenance_check_psymtabs): Renamed from
7549 maintenance_check_symtabs. Only process already-expanded symbol
7551 (_initialize_psymtab): Update.
7552 * symmisc.c (maintenance_check_symtabs): New function.
7553 (maintenance_expand_name_matcher): New function
7554 (maintenance_expand_file_matcher): New function
7555 (maintenance_expand_symtabs): New function.
7556 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7559 2013-05-17 Tom Tromey <tromey@redhat.com>
7561 * python/py-inferior.c (infpy_read_memory): Don't call
7562 PyErr_SetString if PyObject_New fails.
7563 * python/py-frame.c (frame_info_to_frame_object): Don't call
7564 PyErr_SetString if PyObject_New fails.
7566 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7568 * acinclude.m4: Add check for dlopen in libdl.
7569 * configure.ac: Ditto.
7570 * configure: Regenerate.
7572 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7574 * frame.c (frame_stash): Convert to htab.
7575 (frame_addr_hash): New function.
7576 (frame_addr_hash_eq): New function.
7577 (frame_stash_create): Convert function to create
7579 (frame_stash_add): Convert function to add an entry to a hash
7581 (frame_stash_find): Convert function to search the hash table.
7582 (frame_stash_invalidate): Convert function to empty the hash
7584 (get_frame_id): Only add to stash if a frame_id is created.
7585 (_initialize_frame): Call frame_stash_create.
7587 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7589 * configure.ac: Ensure MIG is available when building for GNU Hurd
7591 * configure: Regenerate.
7593 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7595 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7597 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7599 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7600 all cleanups are done before returning from this function.
7602 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7604 * utils.h: #include "exceptions.h".
7605 (enum errors): Remove partial declaration.
7607 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7609 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7610 * gdbarch.h, gdbarch.c: Regenerate.
7611 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7614 * rs6000-aix-tdep.h: New file.
7615 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7616 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7618 (struct field_info, struct ld_info_desc): New types.
7619 (ld_info32_desc, ld_info64_desc): New static constants.
7620 (struct ld_info): New type.
7621 (rs6000_aix_extract_ld_info): New function.
7622 (rs6000_aix_shared_library_to_xml): Likewise.
7623 (rs6000_aix_ld_info_to_xml): Likewise.
7624 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7625 (rs6000_aix_init_osabi): Add call to
7626 set_gdbarch_core_xfer_shared_libraries_aix.
7627 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7628 Remove "xml-utils.h" include.
7629 (LdInfo): Delete typedef.
7630 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7632 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7633 Adjust code accordingly.
7634 (rs6000_core_ldinfo): Delete, folded into
7635 rs6000_aix_core_xfer_shared_libraries_aix.
7636 (rs6000_xfer_shared_library): Delete.
7637 (rs6000_xfer_shared_libraries): Reimplement.
7639 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7641 * record.c (record_goto_cmdlist): New.
7642 (cmd_record_goto): Split into this ...
7643 (cmd_record_goto_begin): ... this
7644 (cmd_record_goto_end): ... and this.
7645 (_initialize_record): Change "record goto" to prefix command.
7646 Add commands for "record goto begin" and "record goto end".
7647 Add an alias for "record goto start" to "record goto begin".
7649 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7651 * linespec.c (convert_linespec_to_sals): New comment for
7652 SOURCE_FILENAME assignment.
7654 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7656 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7659 2013-05-14 Tom Tromey <tromey@redhat.com>
7661 * eval.c (parse_and_eval_long): Make 'exp' const.
7662 * value.h (parse_and_eval_long): Update.
7664 2013-05-14 Tom Tromey <tromey@redhat.com>
7666 * ui-file.c (gdb_fopen): Make arguments const.
7667 * ui-file.h (gdb_fopen): Make arguments const.
7669 2013-05-14 Tom Tromey <tromey@redhat.com>
7671 * remote.c (remote_set_trace_notes): Make arguments const.
7672 * target.c (update_current_target): Update cast.
7673 * target.h (to_set_trace_notes): Make arguments const.
7675 2013-05-14 Tom Tromey <tromey@redhat.com>
7677 * go32-nat.c (go32_terminal_info): Make 'args' const.
7678 * inferior.h (child_terminal_info): Update.
7679 * inflow.c (child_terminal_info): Make 'args' const.
7680 * target.c (default_terminal_info): Make 'args' const.
7681 (debug_to_terminal_save_ours): Likewise.
7682 * target.h (struct target_ops) <to_terminal_info>: Make argument
7685 2013-05-13 Tom Tromey <tromey@redhat.com>
7687 * gcore.c (create_gcore_bfd): Make 'filename' const.
7688 * gcore.h (create_gcore_bfd): Make 'filename' const.
7689 * record-full.c (record_full_save): Make 'recfilename' const.
7690 * target.c (target_save_record): Make 'filename' const.
7691 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7693 (target_save_record): Likewise.
7695 2013-05-13 Tom Tromey <tromey@redhat.com>
7698 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7699 ranges section has been read.
7701 2013-05-13 Tom Tromey <tromey@redhat.com>
7704 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7705 STRUCTOP_PTR>: Return a not_lval value for
7706 EVAL_AVOID_SIDE_EFFECTS.
7707 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7708 for EVAL_AVOID_SIDE_EFFECTS.
7710 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7712 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7713 floating point registers to register type before storing
7715 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7718 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7719 Tom Tromey <tromey@redhat.com>
7721 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7723 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7725 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7726 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7727 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7728 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7730 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7731 Tom Tromey <tromey@redhat.com>
7734 * configure: Rebuild.
7735 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7738 2013-05-10 Pedro Alves <palves@redhat.com>
7740 * remote.c (_initialize_remote): Fix spelling of
7741 qXfer:traceframe-info:read packet in packet config command.
7743 2013-05-10 David Taylor <dtaylor@emc.com>
7747 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7748 "QTro" at start of packet.
7750 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7752 * solib-aix.c (solib_aix_relocate_section_addresses):
7753 For the .bss section action, apply the same offset as
7756 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7758 * solib-aix.c (solib_aix_relocate_section_addresses):
7759 Remove FIXME comment.
7761 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7764 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7765 New functions, directly copied from sparc-sol-thread.c.
7766 * sparc-sol-thread.c: Delete.
7767 * configure.ac: Remove code handling sparc-solaris-thread.c.
7768 * configure: Regenerate.
7770 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7772 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7774 (backtrace_command): Add "no-filters" option parsing.
7775 (_initialize_stack): Alter help to reflect "no-filters" option.
7776 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7777 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7778 (py-frame.o): Add target
7779 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7781 * python/python.h: Add new frame filter constants, and flag enum.
7782 (apply_frame_filter): Add definition.
7783 * python/python.c (apply_frame_filter): New non-Python
7785 * python/py-utils.c (py_xdecref): New function.
7786 (make_cleanup_py_xdecref): Ditto.
7787 * python/py-objfile.c: Declare frame_filters dictionary.
7788 (objfpy_dealloc): Add frame_filters dealloc.
7789 (objfpy_new): Initialize frame_filters attribute.
7790 (objfile_to_objfile_object): Ditto.
7791 (objfpy_get_frame_filters): New function.
7792 (objfpy_set_frame_filters): New function.
7793 * python/py-progspace.c: Declare frame_filters dictionary.
7794 (pspy_dealloc): Add frame_filters dealloc.
7795 (pspy_new): Initialize frame_filters attribute.
7796 (pspacee_to_pspace_object): Ditto.
7797 (pspy_get_frame_filters): New function.
7798 (pspy_set_frame_filters): New function.
7799 * python/py-framefilter.c: New file.
7800 * python/lib/gdb/command/frame_filters.py: New file.
7801 * python/lib/gdb/frames.py: New file.
7802 * python/lib/gdb/__init__.py: Initialize global frame_filters
7804 * python/lib/gdb/FrameDecorator.py: New file.
7805 * python/lib/gdb/FrameIterator.py: New file.
7806 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7807 * mi/mi-cmds.h: Declare.
7808 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7809 --no-frame-filter logic, and Python frame filter logic.
7810 (stack_enable_frame_filters): New function.
7811 (parse_no_frame_option): Ditto.
7812 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7814 (mi_cmd_stack_list_locals): Ditto.
7815 (mi_cmd_stack_list_args): Ditto.
7816 (mi_cmd_stack_list_variables): Ditto.
7817 * NEWS: Add frame filter note.
7819 2013-05-09 Doug Evans <dje@google.com>
7821 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7822 All callers updated.
7823 (syms_from_objfile): Ditto. Make static.
7824 (symbol_file_add_with_addrs): Renamed from
7825 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7826 num_offsets. All callers updated.
7827 * symfile.h (syms_from_objfile): Delete.
7829 * symfile.c (decrement_reading_symtab): Add assert.
7830 (increment_reading_symtab): Ditto.
7832 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7834 * source.c (forward_search_command): Replace call to getc
7836 (reverse_search_command): Likewise.
7838 2013-05-08 Doug Evans <dje@google.com>
7840 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7843 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7845 * sol-thread.c (info_cb): Factorize the code a little.
7847 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7849 * sol-thread.c (info_cb): Rework the output of the "maintenance
7850 info sol-threads" command a bit.
7852 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7854 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7855 Replace ti.ti_startfunc by ti.ti_pc.
7857 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7859 * solib-aix.c (solib_aix_free_library_list): New function
7860 for the case where HAVE_LIBEXPAT is not defined.
7862 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7864 PR breakpoints/15413:
7865 * breakpoint.c (condition_completer): Simplify the code to
7866 disconsider multiple locations of breakpoints when completing the
7867 "condition" command.
7869 2013-05-07 Pierre Muller <muller@sourceware.org>
7871 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7872 instead of <sys/wait.h>.
7874 2013-05-07 Pierre Muller <muller@sourceware.org>
7876 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7877 trailing new line from warning message.
7879 2013-05-07 Pierre Muller <muller@sourceware.org>
7881 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7882 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7884 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7886 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7887 error message (ARI fix).
7889 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7891 * features/library-list-aix.dtd: Replace library-list by
7893 * rs6000-nat.c: Replace library-list by library-list-aix
7895 * solib-aix.c: Likewise.
7897 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7899 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7900 Renames TARGET_OBJECT_AIX_LIBRARIES.
7901 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7902 TARGET_OBJECT_LIBRARIES_AIX throughout.
7903 * solib-aix.c: Likwise.
7905 2013-05-07 Yao Qi <yao@codesourcery.com>
7907 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7908 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7910 2013-05-07 Yao Qi <yao@codesourcery.com>
7912 * solib-dsbt.c (enable_break): Declare.
7913 (dsbt_current_sos): Remove call to enable_break2.
7914 (enable_break2): Rename to enable_break. Set solib breakpoint
7915 on '_dl_debug_state'.
7916 (enable_break): Remove.
7918 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7920 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7921 debug state prior to replicating existing hardware watchpoints or
7924 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7926 * gcore.c (gcore_create_callback): Ignore sections with
7927 separate_debug_objfile_backlink != NULL.
7929 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7930 Andrew Jenner <andrew@codesourcery.com>
7931 Chung-Lin Tang <cltang@codesourcery.com>
7932 Julian Brown <julian@codesourcery.com>
7934 Based on the nios2-elf port from Altera Corporation.
7936 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7938 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7939 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7940 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7941 * nios2-tdep.h: New.
7942 * nios2-tdep.c: New.
7943 * nios2-linux-tdep.c: New.
7944 * features/Makefile (WHICH): Add nios2-linux.
7945 (nios2-linux-expedite): Set.
7946 * features/nios2-cpu.xml: New.
7947 * features/nios2.xml: New.
7948 * features/nios2-linux.xml: New.
7949 * features/nios2.c: New (autogenerated).
7950 * features/nios2-linux.c: New (autogenerated).
7951 * regformats/nios2-linux.dat: New (autogenerated).
7952 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7955 2013-05-06 Doug Evans <dje@google.com>
7957 * symfile.c: Whitespace cleanup.
7959 * solist.h (struct target_so_ops): New member clear_so.
7960 * solib-svr4.c (svr4_clear_so): New function.
7961 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7962 * solib.c (clear_so): Renamed from free_so_symbols.
7963 All callers updated. Call target clear_so if it exists.
7965 2013-05-06 Tom Tromey <tromey@redhat.com>
7967 * ada-lang.c (ada_value_primitive_packed_val): Don't
7969 * value.c (set_value_parent): Incref the new parent and decref
7971 (value_copy, value_primitive_field): Use set_value_parent.
7973 2013-05-06 Tom Tromey <tromey@redhat.com>
7975 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7976 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7978 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7979 * dwarf2read.c (write_constant_as_bytes)
7980 (dwarf2_fetch_constant_bytes): New functions.
7982 2013-05-06 Tom Tromey <tromey@redhat.com>
7984 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7986 (dwarf2_const_value_attr): Update.
7988 2013-05-06 Tom Tromey <tromey@redhat.com>
7990 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7991 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7992 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7995 2013-05-06 Tom Tromey <tromey@redhat.com>
7997 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
8000 2013-05-06 Doug Evans <dje@google.com>
8002 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
8003 * stabsread.h (process_one_symbol): Update declaration.
8004 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
8005 * elfread.c (elf_symfile_relocate_probe): Ditto.
8006 * psymtab.c (relocate_psymtabs): Ditto.
8007 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
8008 (objfile_relocate): Ditto.
8009 * objfiles.h (objfile_relocate): Update declaration.
8010 * symfile.c (relative_addr_info_to_section_offsets): Constify
8012 (default_symfile_offsets): Ditto.
8013 (syms_from_objfile_1): Constify offsets parameter.
8014 (syms_from_objfile): Ditto.
8015 (symbol_file_add_with_addrs_or_offsets): Ditto.
8016 (symfile_map_offsets_to_segments): Constify data parameter.
8017 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
8018 delta parameters of member relocate.
8019 (struct sym_probe_fns): Constify new_offsets,
8020 delta parameters of member sym_relocate_probe.
8021 (struct sym_fns): Constify section_addr_info parameter of member
8023 (relative_addr_info_to_section_offsets): Update declaration.
8024 (default_symfile_offsets): Ditto.
8025 (syms_from_objfile): Ditto.
8026 (symfile_map_offsets_to_segments): Ditto.
8028 * symfile.c (syms_from_objfile_1): Use correct section count when
8029 objfile->sf == NULL.
8031 2013-05-06 Mike Frysinger <vapier@gentoo.org>
8033 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
8035 2013-05-06 Doug Evans <dje@google.com>
8037 * psympriv.h (struct partial_symtab): Augment comment for member
8040 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8042 Reimplement shared library support on ppc-aix...
8043 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8044 * features/library-list-aix.dtd: New file.
8045 * solib-aix.h, solib-aix.c: New file.
8046 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8047 (rs6000_find_toc_address_hook): Delete.
8048 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8049 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8050 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
8052 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8053 (vmap_symtab, fixup_breakpoints): Delete.
8054 (rs6000_xfer_shared_libraries): New function.
8055 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8056 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8057 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8058 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8059 (rs6000_xfer_shared_library): New function.
8060 (find_toc_address): Delete.
8061 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8062 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8063 * xcoffread.c (record_minimal_symbol): Reloate symbol address
8064 before creating minimal symbol. Adjust function description
8066 (scan_xcoff_symtab): Replace call to
8067 prim_record_minimal_symbol_and_info by call to
8068 record_minimal_symbol.
8069 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8070 around default_symfile_offsets.
8071 * configure.tgt: Add solib-aix.o to gdb_target_obs for
8072 powerpc-aix targets.
8073 * config/rs6000/nm-rs6000.h: Delete.
8074 * config/powerpc/aix.mh (NAT_FILE): Delete.
8075 (NATDEPFILES): Remove xcoffsolib.o.
8076 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8077 (ALL_TARGET_OBS): Add solib-aix.o.
8078 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8079 config/rs6000/nm-rs6000.h. Add solib-aix.h.
8080 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
8081 * xcoffsolib.h, xcoffsolib.c: Delete.
8083 * solib.c (reload_shared_libraries): Remove reference to
8084 SOLIB_CREATE_INFERIOR_HOOK.
8085 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8086 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8087 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8089 * corelow.c (deprecated_core_resize_section_table): Delete.
8090 * exec.c: Remove include of xcoffsolib.h".
8091 (map_vmap, vmap): Delete.
8092 (exec_close_1): Remove references to vmap.
8093 (exec_file_attach): Remove vmap handling code, and reference
8094 to DEPRECATED_IBM6000_TARGET.
8095 (bfdsec_to_vmap): Delete.
8096 (exec_files_info): Remove block of code handling VMAP.
8097 * infcmd.c (post_create_inferior): Remove reference to
8098 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8099 * infrun.c (follow_exec): Remove reference to
8100 SOLIB_CREATE_INFERIOR_HOOK.
8101 * stack.c (print_frame): Remove reference to PC_SOLIB.
8102 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8103 (dsbt_relocate_main_executable): Likewise.
8104 * solib-frv.c (frv_current_sos): Likewise.
8106 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8108 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8109 to target_write_memory and target_read_memory.
8111 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8113 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8114 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8116 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8118 * darwin-nat.c: Replace all "%x" instances in format strings
8119 into "0x%x" throughout.
8121 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8123 * darwin-nat.c (darwin_mourn_inferior): Replace call to
8124 gdb_assert by call to MACH_CHECK_ERROR.
8125 (darwin_attach_pid): Raise an error rather than a failed
8126 assertion when various system calls failed. Report a warning
8127 instead of raising a failed assertion when PREV_NOT is not NULL
8128 after call to mach_port_request_notification.
8129 (darwin_ptrace_me): Raise an error rather than a failed
8130 assertion when read returns nonzero.
8132 2013-05-06 Joel Brobecker <brobecker@adacore.com>
8134 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8136 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8138 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8140 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8142 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8143 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8144 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8145 a stale cleanup. Fix double free of NAME.
8147 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8149 * windows-nat.c (windows_delete_thread): Accept an additional
8150 argument, the thread's exit code, and announce thread death when
8151 print_thread_events is non-zero and we are deleting a thread that
8152 is not the main thread.
8153 (get_windows_debug_event): Pass thread exit code to
8154 windows_delete_thread.
8156 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8158 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8159 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8160 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8161 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8162 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8163 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8164 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8165 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8166 (gdbarch_tdep): New struct.
8167 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8169 (v850e3v5_register_name): New function.
8170 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8171 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8172 code handling the struct return conventions for the RH850 ABI.
8174 (v850_eight_byte_align_p): New function.
8175 (v850_push_call_dummy): Push structs by value, not by reference
8176 for the RH850 ABI. Add support for eight byte alignment.
8177 (v850_dbtrap_breakpoint_from_pc): New function.
8178 (v850_gdbarch_init): Add ABI detection code. Register
8179 v850e3v5_register_name for the v850e3v5 architecture. Set the
8180 number of registers for v850e3v5. Register
8181 v850_dbtrap_breakpoint_from_pc as appropriate.
8182 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8184 2013-05-03 Doug Evans <dje@google.com>
8186 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8187 of bfd_count_sections.
8188 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8189 * symfile.c (default_symfile_offsets): Ditto.
8190 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8191 one entry, not bfd_count_sections entries.
8193 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8195 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8196 `save' and `restore' register groups. Don't include SPL
8197 or SPH in these groups.
8198 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8199 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8200 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8201 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8202 dwarf2_append_unwinders().
8204 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8206 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8207 ignore SIGINT and SIGTRAP in case these internal signals are
8210 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8212 * darwin-nat.c (darwin_read_write_inferior): Change types
8213 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8214 of copy_count to "mach_msg_type_number_t".
8215 (darwin_read_dyld_info): Change type of parameter
8216 rdaddr to "gdb_byte *".
8218 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8220 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8221 of &info->load_map from "char *" to "gdb_byte *".
8223 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8225 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8226 from "char *" to "gdb_byte *".
8227 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8229 2013-04-30 Doug Evans <dje@google.com>
8231 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8232 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8233 DWO stub. If DWO isn't found, just use stub.
8234 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8236 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8237 calling init_cutu_and_read_dies.
8239 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8241 * target-descriptions.c (maint_print_c_tdesc_cmd):
8242 Add case to parse structures as register types and
8245 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8247 * MAINTAINERS (Write After Approval): Add myself to the list.
8249 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8251 * sol-thread.c (rw_common): Change type of parameter "buf"
8253 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8254 rw_common to "gdb_byte *" instead of "char *".
8256 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8258 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8259 of local variable msym to const struct bound_minimal_symbol.
8260 Adjust use accordingly.
8261 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8263 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8265 * i386gnu-nat.c (CREG_OFFSET): New macro.
8266 (creg_offset): New array.
8267 (CREG_ADDR): Use creg_offset instead of reg_offset.
8269 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8271 * mep-tdep.c (mep_write_pc): Delete.
8272 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8273 Add call to set_gdbarch_pc_regnum.
8275 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8277 * common/filestuff.c: Replace #include <dirent.h> by
8278 #include "gdb_dirent.h".
8280 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8282 * common/filestuff.c: Replace #include <sys/stat.h> by
8283 #include "gdb_stat.h".
8285 2013-04-29 Pierre Muller <muller@sourceware.org>
8287 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8288 editCase function rule.
8289 (get_DW_AT_signature_type): Likewise.
8291 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8293 * m32r-tdep.c (m32r_write_pc): Delete.
8294 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8295 Add call to set_gdbarch_pc_regnum.
8297 2013-04-29 Pierre Muller <muller@sourceware.org>
8299 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8301 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8303 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8305 2013-04-28 Yao Qi <yao@codesourcery.com>
8307 * solib-dsbt.c (fetch_loadmap): Re-indent.
8308 (displacement_from_map, enable_break2): Likewise.
8309 (dsbt_relocate_section_addresses): Likewise.
8311 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8315 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8318 * dwarf2read.c (process_full_comp_unit): Always create a static
8321 2013-04-25 Hui Zhu <hui@codesourcery.com>
8323 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8324 to loc->cmd_bytecode.
8326 2013-04-24 Doug Evans <dje@google.com>
8328 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8330 2013-04-22 Keith Seitz <keiths@redhat.com>
8332 * tracepoint.c (trace_save): Call the writer's start method.
8334 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8337 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8340 2013-04-23 Tom Tromey <tromey@redhat.com>
8342 * common/filestuff.c: Check USE_WIN32API before including
8344 (HAVE_F_GETFD): New define.
8345 (mark_cloexec): Check HAVE_F_GETFD.
8346 (gdb_open_cloexec): Change 'mode' to unsigned long.
8347 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8348 (gdb_pipe_cloexec): Check HAVE_PIPE.
8349 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8352 2013-04-23 Hui Zhu <hui@codesourcery.com>
8355 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8357 2013-04-23 Hui Zhu <hui@codesourcery.com>
8360 * breakpoint.c (dprintf_print_recreate): New.
8361 (save_breakpoints): Let it not save dprintf commands.
8362 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8364 2013-04-22 Tom Tromey <tromey@redhat.com>
8367 * Makefile.in (SFILES): Add filestuff.c
8368 (COMMON_OBS): Add filestuff.o.
8369 (filestuff.o): New target.
8370 * auto-load.c (auto_load_objfile_script_1): Use
8372 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8373 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8374 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8375 * common/agent.c (gdb_connect_sync_socket): Use
8377 * common/filestuff.c: New file.
8378 * common/filestuff.h: New file.
8379 * common/linux-osdata.c (linux_common_core_of_thread)
8380 (command_from_pid, commandline_from_pid, print_source_lines)
8381 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8382 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8384 * common/linux-procfs.c (linux_proc_get_int)
8385 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8386 * config.in, configure: Rebuild.
8387 * configure.ac: Don't check for sys/socket.h. Check for
8389 * corelow.c (core_open): Use gdb_open_cloexec.
8390 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8391 * fork-child.c (fork_inferior): Call close_most_fds.
8392 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8393 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8394 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8395 Use gdb_fopen_cloexec.
8396 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8398 (linux_async_pipe): Use gdb_pipe_cloexec.
8399 * remote-fileio.c (remote_fileio_func_open): Use
8401 * remote.c (remote_file_put, remote_file_get): Use
8403 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8405 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8406 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8407 * solib.c (solib_find): Use gdb_open_cloexec.
8408 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8409 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8410 (tfile_open): Use gdb_open_cloexec.
8411 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8412 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8413 * xml-support.c (xml_fetch_content_from_file): Use
8415 * main.c (captured_main): Call notice_open_fds.
8417 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8419 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8420 'char *' to 'gdb_byte *'.
8421 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8424 2013-04-22 Yao Qi <yao@codesourcery.com>
8426 * infrun.c: Fix typo in comment.
8428 2013-04-22 Andrew Haley <aph@redhat.com>
8430 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8433 2013-04-20 Yao Qi <yao@codesourcery.com>
8435 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8436 'char *' to 'gdb_byte *'. Cast the return value of
8437 'bt_ctf_get_char_array' to 'gdb_byte *'.
8439 2013-04-19 Pedro Alves <palves@redhat.com>
8441 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8443 * configure: Regenerate.
8445 2013-04-19 Pedro Alves <palves@redhat.com>
8447 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8450 2013-04-19 Pedro Alves <palves@redhat.com>
8452 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8453 Change type of 'myaddr' parameter to gdb_byte pointer.
8454 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8455 to 'long long' pointer instead of to 'unsigned long long'.
8456 (monitor_write_memory_block, monitor_read_memory_single)
8457 (monitor_read_memory): Change type of 'myaddr' parameter to
8460 2013-04-19 Pedro Alves <palves@redhat.com>
8462 * record.c (validate_history_size): Make parameter 'setting'
8465 2013-04-19 Pedro Alves <palves@redhat.com>
8467 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8470 2013-04-19 Pedro Alves <palves@redhat.com>
8472 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8475 2013-04-19 Pedro Alves <palves@redhat.com>
8477 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8478 * ada-tasks.c (read_fat_string_value): Likewise.
8480 2013-04-19 Pedro Alves <palves@redhat.com>
8482 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8483 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8484 'offset', and adjust.
8486 2013-04-19 Pedro Alves <palves@redhat.com>
8488 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8489 (read_index_from_section): Add cast to 'char *'.
8491 2013-04-19 Pedro Alves <palves@redhat.com>
8493 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8495 2013-04-19 Pedro Alves <palves@redhat.com>
8497 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8499 2013-04-19 Pedro Alves <palves@redhat.com>
8501 * record-full.c (record_full_get_bookmark): Change local 'ret'
8502 type to char * and add cast to gdb_byte *.
8503 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8505 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8507 2013-04-19 Pedro Alves <palves@redhat.com>
8509 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8510 * python/py-prettyprint.c (print_string_repr): Change type of
8511 'output' local to char *. Add cast to gdb_byte * in
8512 LA_PRINT_STRING call.
8513 (print_children): Change type of 'output' local to char *.
8514 * python/py-value.c (valpy_string): Add cast to const char * in
8515 PyUnicode_Decode call.
8517 2013-04-19 Pedro Alves <palves@redhat.com>
8519 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8520 and change its type to 'const char *'. Adjust.
8521 (mips_send_packet): Add cast to 'char *', and remove cast to
8523 (mips_receive_packet): Remove cast to 'unsigned char *'.
8524 (mips_load_srec): Use bfd_byte.
8525 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8526 (pmon_checkset): Make 'value' parameter unsigned.
8528 2013-04-19 Pedro Alves <palves@redhat.com>
8530 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8532 2013-04-19 Pedro Alves <palves@redhat.com>
8534 * remote.c (remote_write_bytes_aux, compare_sections_command)
8536 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8537 (remote_hostio_readlink, remote_bfd_iovec_pread)
8538 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8539 binary buffer, and char when buffer is used as string.
8540 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8541 (trace_save, tfile_open, traceframe_walk_blocks)
8542 (tfile_fetch_registers): Likewise.
8544 2013-04-19 Pedro Alves <palves@redhat.com>
8546 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8547 buffer and size_t size. Adjust.
8548 * ser-base.h (ser_base_write): Adjust.
8549 * ser-go32.c (cnts): Change type to size_t.
8550 (dos_write): Change prototype -- take 'void *'
8551 buffer and size_t size. Adjust.
8552 (dos_info): Print elements of 'cnts' as unsigned long.
8553 * serial.c (serial_write): Likewise.
8554 * serial.h (serial_write): Adjust.
8555 (struct serial_ops) <write>: Change prototype -- take 'void *'
8556 buffer and size_t size. Adjust.
8558 2013-04-19 Pedro Alves <palves@redhat.com>
8560 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8562 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8564 2013-04-19 Pedro Alves <palves@redhat.com>
8566 * alpha-tdep.c (alpha_extract_return_value): Use
8567 regcache_cooked_read_unsigned to read 'v0'.
8569 2013-04-19 Pedro Alves <palves@redhat.com>
8571 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8572 parameters 'at', 'as' and 'offset' to uint32_t.
8574 2013-04-19 Pedro Alves <palves@redhat.com>
8576 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8577 'is64' to signed 'int'.
8579 2013-04-19 Pedro Alves <palves@redhat.com>
8581 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8584 2013-04-19 Pedro Alves <palves@redhat.com>
8586 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8587 'insnbuf' buffer type to unsigned int[].
8589 2013-04-19 Pedro Alves <palves@redhat.com>
8591 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8593 2013-04-19 Pedro Alves <palves@redhat.com>
8595 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8598 2013-04-19 Pedro Alves <palves@redhat.com>
8600 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8601 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8603 * mips-tdep.c (heuristic_fence_post): Change type to int.
8604 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8606 2013-04-19 Pedro Alves <palves@redhat.com>
8608 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8609 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8610 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8612 2013-04-19 Pedro Alves <palves@redhat.com>
8614 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8615 it to get a string view of the byte buffer.
8616 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8617 type to gdb_byte *. Adjust.
8618 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8619 Change local to char *.
8620 * solib-darwin.c (find_program_interpreter): Change return type to
8622 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8623 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8624 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8625 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8626 * solib-svr4.c (find_program_interpreter): Change return type to
8628 (enable_break): Change local 'interp_name' to char *.
8629 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8630 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8631 (spu_pseudo_register_write_spu): Use char for string buffer.
8633 (info_spu_event_command, info_spu_signal_command): Add casts to
8636 2013-04-19 Pedro Alves <palves@redhat.com>
8638 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8640 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8641 * ada-lang.c (ada_value_assign): Use gdb_byte.
8642 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8643 (alphanbsd_sigtramp_offset): Use gdb_byte.
8644 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8645 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8646 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8647 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8648 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8649 * arm-tdep.c (arm_stub_unwind_sniffer)
8650 (arm_displaced_init_closure): Use gdb_byte.
8651 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8652 (arm_default_thumb_le_breakpoint)
8653 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8654 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8655 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8656 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8657 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8658 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8659 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8660 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8661 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8662 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8663 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8664 (cris_store_return_value, cris_extract_return_value): Use
8666 (constraint): Change type of parameter to char * from signed
8667 char*. Use gdb_byte.
8668 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8669 of local buffer to gdb_byte *.
8670 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8671 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8672 (add_address_entry): Change type of local buffer to gdb_byte[].
8673 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8674 (frv_push_dummy_call): Use gdb_byte.
8675 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8676 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8677 (hppa_hpux_supply_save_state): Use gdb_byte.
8678 * hppa-tdep.c (hppa32_push_dummy_call)
8679 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8680 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8681 (slotN_contents, replace_slotN_contents): Change type of parameter
8683 (fetch_instruction, ia64_pseudo_register_write)
8684 (ia64_register_to_value, ia64_value_to_register)
8685 (ia64_extract_return_value, ia64_store_return_value)
8686 (ia64_push_dummy_call): Use gdb_byte.
8687 * m32c-tdep.c (m32c_return_value): Remove cast.
8688 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8689 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8691 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8692 * mn10300-tdep.c (mn10300_store_return_value)
8693 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8695 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8696 (moxie_process_record): Remove casts.
8697 * ppc-ravenscar-thread.c (supply_register_at_address)
8698 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8699 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8700 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8701 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8702 * remote.c (compare_sections_command): Use gdb_byte.
8703 * score-tdep.c (score7_free_memblock): Change type of parameter to
8705 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8706 gdb_byte *. Use gdb_byte.
8707 (sh_push_dummy_call_fpu): Use gdb_byte.
8708 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8709 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8710 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8711 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8712 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8713 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8714 (sh64_store_return_value, sh64_register_convert_to_virtual):
8715 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8716 (sh64_pseudo_register_write): Use gdb_byte.
8717 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8718 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8720 (irix_current_sos): Use gdb_byte.
8721 * solib-som.c (som_current_sos): Use gdb_byte.
8722 * sparc-ravenscar-thread.c (supply_register_at_address)
8723 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8724 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8725 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8726 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8728 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8730 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8731 * xstormy16-tdep.c (xstormy16_extract_return_value)
8732 (xstormy16_store_return_value): Change parameter type to
8733 'gdb_byte *'. Adjust.
8734 (xstormy16_push_dummy_call): Use gdb_byte.
8735 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8736 (call0_analyze_prologue, execute_code): Use gdb_byte.
8738 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8739 Pedro Alves <palves@redhat.com>
8741 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8744 2013-04-17 Doug Evans <dje@google.com>
8746 * dwarf2read.c (struct signatured_type): New member type.
8747 (struct attribute): Replace member signatured_type with signature.
8748 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8749 (read_call_site_scope): Call follow_die_ref instead of
8750 follow_die_ref_or_sig.
8751 (read_structure_type): Rewrite handling of signatured types.
8752 (read_enumeration_type): Ditto.
8753 (read_attribute_value): Update.
8754 (build_error_marker_type): New function.
8755 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8756 Don't call error for bad types, just build an error marker type.
8757 (dump_die_shallow): Update.
8758 (follow_die_sig_1): Renamed from follow_die_sig.
8759 Don't call error for bad types, instead return NULL.
8760 (follow_die_sig): New function.
8761 (get_signatured_type, get_DW_AT_signature_type): New functions.
8763 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8765 * aarch64-tdep.c (aarch64_write_pc): Removed.
8766 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8769 2013-04-17 Yao Qi <yao@codesourcery.com>
8771 * top.c (print_gdb_configuration): Print configure-time
8772 parameter on using libbabeltrace or not.
8774 2013-04-16 Pedro Alves <palves@redhat.com>
8776 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8778 2013-04-16 Pedro Alves <palves@redhat.com>
8780 * common/glibc_thread_db.h: Update from upstream glibc
8781 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8783 2013-04-16 Pedro Alves <palves@redhat.com>
8785 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8786 * common/glibc_thread_db.h: ... this new file ...
8787 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8789 2013-04-16 Will Newton <will.newton@gmail.com>
8790 Pedro Alves <palves@redhat.com>
8794 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8795 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8798 2013-04-16 Pedro Alves <palves@redhat.com>
8799 Eli Zaretskii <eliz@gnu.org>
8801 * NEWS: Mention "set foo unlimited".
8803 2013-04-15 Doug Evans <dje@google.com>
8805 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8806 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8807 (create_dwo_cu_reader): Renamed from
8808 create_dwo_debug_info_hash_table_reader.
8809 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8810 Remove support for multiple CUs in a DWO file.
8811 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8813 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8815 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8816 (create_dwo_in_dwp): Ditto.
8818 2013-04-15 Tom Tromey <tromey@redhat.com>
8820 * NEWS: Move recent entries into "since 7.6" section.
8822 2013-04-15 Tom Tromey <tromey@redhat.com>
8826 * break-catch-throw.c (struct exception_catchpoint)
8827 <exception_rx, pattern>: New fields.
8828 (fetch_probe_arguments, dtor_exception_catchpoint)
8829 (check_status_exception_catchpoint)
8830 (print_one_detail_exception_catchpoint): New functions.
8831 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8832 Compile regular expression if needed.
8833 (extract_exception_regexp): New function.
8834 (catch_exception_command_1): Use extract_exception_regexp.
8835 (compute_exception): Use fetch_probe_arguments.
8836 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8837 and check_status fields.
8838 * cp-abi.c (cplus_typename_from_type_info): New function.
8839 * cp-abi.h (cplus_typename_from_type_info): Declare.
8840 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8841 * gdb_regex.h (compile_rx_or_error): Declare.
8842 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8844 (init_gnuv3_ops): Set get_type_from_type_info field.
8845 * probe.c (compile_rx_or_error): Move...
8846 * utils.c (compile_rx_or_error): ... here.
8848 2013-04-15 Tom Tromey <tromey@redhat.com>
8852 * break-catch-throw.c (compute_exception): New function.
8853 (exception_funcs): New global.
8854 (_initialize_break_catch_throw): Create $_exception.
8855 * cp-abi.c (cplus_type_from_type_info): New function.
8856 * cp-abi.h (cplus_type_from_type_info): Declare.
8857 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8858 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8859 (gnuv3_get_type_from_type_info): New functions.
8860 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8862 2013-04-15 Tom Tromey <tromey@redhat.com>
8864 * break-catch-throw.c (struct exception_names): New.
8865 (exception_functions): Change type.
8866 (re_set_exception_catchpoint): Look for SDT probes.
8868 2013-04-15 Tom Tromey <tromey@redhat.com>
8871 * break-catch-throw.c (exception_functions): New global.
8872 (gnu_v3_exception_catchpoint_ops): Move earlier.
8873 (struct exception_catchpoint): New.
8874 (classify_exception_breakpoint): Rewrite.
8875 (re_set_exception_catchpoint): New function.
8876 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8877 Allocate a struct exception_catchpoint.
8878 (catch_exception_command_1): Update.
8879 (initialize_throw_catchpoint_ops): Set 're_set' method.
8881 2013-04-15 Tom Tromey <tromey@redhat.com>
8883 * Makefile.in (SFILES): Add break-catch-throw.c
8884 (COMMON_OBS): Add break-catch-throw.o.
8885 * break-catch-throw.c: New file.
8886 * breakpoint.c: Move exception-catching code to new file.
8887 (ep_parse_optional_if_clause): No longer static.
8888 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8890 2013-04-15 Tom Tromey <tromey@redhat.com>
8894 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8895 * c-exp.y (TYPEID): New token.
8896 (exp): Add new TYPEID productions.
8897 (ident_tokens): Add "typeid".
8898 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8899 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8900 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8901 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8902 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8904 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8905 (build_std_type_info_type, gnuv3_get_typeid_type)
8906 (gnuv3_get_typeid): New functions.
8907 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8908 new fields on ABI object.
8909 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8910 * std-operator.def (OP_TYPEID): New.
8912 2013-04-15 Tom Tromey <tromey@redhat.com>
8914 * elfread.c (elf_symtab_read): Install versioned symbol under
8915 unversioned name as well.
8917 2013-04-15 Tom Tromey <tromey@redhat.com>
8920 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8921 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8922 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8923 (gdb_demangle): New function.
8924 * cp-support.h (gdb_demangle): Declare.
8925 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8926 (dwarf2_name): Use gdb_demangle.
8927 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8928 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8930 (gnuv3_print_method_ptr): Use gdb_demangle.
8931 * jv-lang.c (java_demangle): Use gdb_demangle.
8932 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8933 * language.c (unk_lang_demangle): Use gdb_demangle.
8934 * symtab.c (symbol_find_demangled_name)
8935 (demangle_for_lookup): Use gdb_demangle.
8937 2013-04-15 Tom Tromey <tromey@redhat.com>
8941 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8943 (classify_exception_breakpoint): New function.
8944 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8945 (print_mention_exception_catchpoint)
8946 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8947 (catch_exception_command_1): Handle "rethrow" catchpoint.
8948 (catch_rethrow_command): New function.
8949 (_initialize_breakpoint): Add "catch rethrow" command.
8951 2013-04-15 Pierre Muller <muller@sourceware.org>
8953 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8954 set_gdbarch_write_pc as deprecated anymore.
8956 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8958 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8961 2013-04-13 Yao Qi <yao@codesourcery.com>
8963 * ctf.c (_initialize_ctf): Include "completer.h".
8964 Call add_target_with_completer instead of add_target.
8966 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8968 Fix GDB regression related to PR binutils/14813.
8969 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8970 * minidebug.c (lzma_close): Add return value comment.
8971 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8972 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8973 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8975 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8977 * config.in: Regenerate.
8979 2013-04-12 Tom Tromey <tromey@redhat.com>
8981 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8983 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8984 (struct die_reader_specs) <buffer>: Likewise.
8985 (die_reader_func_ftype): Make 'info_ptr' const.
8986 (struct line_header) <include_dirs, statement_program_start,
8987 statement_program_end>: Now const.
8988 (struct file_entry) <name>: Likewise.
8989 (struct partial_die_info) <sibling>: Likewise.
8990 (struct dwarf_block) <data>: Likewise.
8991 (dwarf2_read_section): Remove cast.
8992 (dwarf2_get_section_info): Make 'bufp' const.
8993 (read_index_from_section): Constify.
8994 (dw2_get_file_names_reader): Make 'info_ptr' const.
8995 (dw2_get_primary_filename_reader): Likewise.
8996 (read_comp_unit_head): Make 'info_ptr' and return type const.
8997 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8999 (read_abbrev_offset): Constify.
9000 (dwarf2_create_include_psymtab): Make 'name' const.
9001 (create_debug_types_hash_table): Update.
9002 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
9003 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
9005 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
9006 (load_partial_comp_unit_reader): Make 'info_ptr' const.
9007 (read_comp_units_from_section): Constify.
9008 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
9009 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
9011 (dwarf2_compute_name, setup_type_unit_groups): Constify.
9012 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
9013 (create_dwp_hash_table, dwarf2_ranges_read)
9014 (dwarf2_record_block_ranges): Constify.
9015 (read_die_and_children, read_die_and_siblings_1)
9016 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
9018 (read_full_die_1, read_full_die): Make 'info_ptr' const.
9019 (abbrev_table_read_table): Constify.
9020 (load_partial_dies): Make 'info_ptr' const.
9021 (read_partial_die, read_attribute_value, read_attribute): Make
9022 'info_ptr' and return type const.
9023 (read_address, read_initial_length)
9024 (read_checked_initial_length_and_offset, read_offset)
9025 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
9027 (read_direct_string): Make 'buf' and return type const.
9028 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
9029 (read_indirect_string): Make return type const.
9030 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
9031 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
9033 (read_str_index): Make return type const.
9034 (add_include_dir): Make 'include_dir' const.
9035 (add_file_name): Make 'name' const.
9036 (dwarf_decode_line_header): Constify.
9037 (psymtab_include_file_name): Make return type const.
9038 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9039 (dwarf2_start_subfile): Make 'filename' const.
9040 (dwarf2_const_value_attr): Make 'bytes' const.
9041 (read_signatured_type_reader): Make 'info_ptr' const.
9042 (decode_locdesc): Constify.
9043 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9045 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9046 'mac_end', and return type const.
9047 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9048 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9050 (per_cu_header_read_in): Constify.
9051 * symfile.h (dwarf2_get_section_info): Update.
9053 2013-04-12 Tom Tromey <tromey@redhat.com>
9055 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9057 2013-04-12 Eli Zaretskii <eliz@gnu.org>
9059 * NEWS: Mention "show configuration", --configuration.
9060 * top.c (print_gdb_configuration): New function, displays the
9061 details about GDB configure-time parameters.
9062 (print_gdb_version): Mention "show configuration".
9063 * cli/cli-cmds.c (show_configuration): New function.
9064 (_initialize_cli_cmds): Add the "show configuration" command.
9065 * main.c (captured_main) <print_configuration>: New static var.
9066 <long_options>: Use it.
9067 If --configuration was given, call print_gdb_configuration.
9069 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9070 Pedro Alves <palves@redhat.com>
9072 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9073 (generated_files): Add gcore.
9074 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9075 HAVE_NATIVE_GCORE_HOST.
9077 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9078 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9079 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9080 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9081 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9082 Add HAVE_NATIVE_GCORE_HOST.
9083 * configure: Regenerate.
9084 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9085 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
9086 AC_CONFIG_FILES for gcore.
9087 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
9089 * gdb_gcore.sh: Rename to ...
9090 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
9091 and GCORE_TRANSFORM_NAME substitutions.
9093 Fix parsing tabs in ${gdb_target_obs}.
9094 * configure.tgt (gdb_have_gcore): Replace case with for and if.
9096 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9098 * remote.c (unpush_and_perror): Add output message final dot.
9100 2013-04-11 Yao Qi <yao@codesourcery.com>
9102 * tracepoint.c (tfile_interp_line): Fit parameters line and
9105 2013-04-10 Joel Brobecker <brobecker@adacore.com>
9107 * solib.c (solib_map_sections): Remove code overwriting
9108 SO->SO_NAME with the bfd's filename.
9110 2013-04-10 Pedro Alves <palves@redhat.com>
9112 * cli/cli-decode.c (integer_unlimited_completer): New function.
9113 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9114 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9116 * cli/cli-setshow.c: Include "cli/cli-utils.h".
9117 (is_unlimited_literal): New function.
9118 (do_set_command): Handle literal "unlimited" arguments.
9119 * frame.c (_initialize_frame) <set backtrace limit>: Document
9121 * printcmd.c (_initialize_printcmd) <set print
9122 max-symbolic-offset>: Add help text.
9123 * record-full.c (_initialize_record_full) <set record full
9124 insn-number-max>: Likewise.
9125 * record.c (_initialize_record) <set record
9126 instruction-history-size, set record function-call-history-size>:
9128 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9130 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9132 * source.c (_initialize_source) <set listsize>: Add help text.
9133 * utils.c (initialize_utils) <set height, set width>: Likewise.
9134 <set pagination>: Mention "set height unlimited".
9135 * valprint.c (_initialize_valprint) <set print elements, set print
9136 repeats>: Document "unlimited".
9138 2013-04-10 Pedro Alves <palves@redhat.com>
9140 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9141 instead of disconnect_tracing.
9142 * infcmd.c (detach_command, disconnect_command): Call
9143 query_if_trace_running. Adjust.
9144 * top.c: Include "tracepoint.h".
9145 (quit_target): Delete. Contents moved ...
9146 (quit_force): ... here. Wrap each stage of teardown in
9147 TRY_CATCH. Call disconnect_tracing before detaching.
9149 2013-04-10 Hui Zhu <hui@codesourcery.com>
9150 Yao Qi <yao@codesourcery.com>
9152 * configure.ac: Check libbabeltrace is installed.
9153 * config.in: Regenerate.
9154 * configure: Regenerate.
9155 * Makefile.in (LIBBABELTRACE): New.
9156 (CLIBS): Add LIBBABELTRACE.
9157 * ctf.c: Include "exec.h".
9158 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9159 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9160 (ctf_save_metadata_header): Define new type aliases in
9162 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9163 in metadata. Start a new faked packet for trace status.
9164 (ctf_write_status): Write trace status to CTF.
9165 (ctf_write_uploaded_tsv): Write TSV to CTF.
9166 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9167 (ctf_write_definition_end): End the faked packet.
9169 (ctx, ctf_iter, trace_dirname): New.
9170 (start_pos): New variable.
9171 (ctf_destroy, ctf_open_dir, ctf_open): New.
9172 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9174 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9175 (ctf_fetch_registers, ctf_xfer_partial): New.
9176 (ctf_get_trace_state_variable_value): New.
9177 (ctf_get_tpnum_from_frame_event): New.
9178 (ctf_get_traceframe_address): New.
9179 (ctf_trace_find, ctf_has_stack): New.
9180 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9181 (ctf_get_trace_status, ctf_read_status): New.
9182 (_initialize_ctf): New.
9183 * tracepoint.c (get_tracepoint_number): New
9184 (get_uploaded_tsv): Remove 'static'.
9185 (struct traceframe_info, trace_regblock_size): Move it to ...
9186 * tracepoint.h: ... here.
9187 (get_tracepoint_number): Declare it.
9188 (get_uploaded_tsv): Declare it.
9190 * NEWS: Mention new configure option.
9192 2013-04-10 Pedro Alves <palves@redhat.com>
9193 Hui Zhu <hui@codesourcery.com>
9195 * breakpoint.c (dprintf_re_set): New.
9196 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9199 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9201 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9202 Remove solib-svr4.o from the list.
9204 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9206 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9207 Use gdb_assert_not_reached instead of invalid boolean expression.
9209 2013-04-09 Pedro Alves <palves@redhat.com>
9211 * remote.c (unpush_and_perror): New function.
9212 (readchar, remote_serial_write): Use it.
9214 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9216 * NEWS: Mention new btrace RSP packets.
9218 2013-04-08 Tom Tromey <tromey@redhat.com>
9220 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9223 2013-04-08 Tom Tromey <tromey@redhat.com>
9225 * maint.c (print_bfd_section_info): Print the section index.
9226 * symmisc.c (dump_msymbols): Print the section index.
9228 2013-04-08 Tom Tromey <tromey@redhat.com>
9231 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9232 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9233 * breakpoint.c (resolve_sal_pc): Update.
9234 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9235 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9236 (minsym_lookup_iterator_cb): Use it.
9237 (default_read_var_value): Update.
9238 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9240 * infcmd.c (jump_command): Update.
9241 * linespec.c (minsym_found): Update.
9242 * maint.c (maintenance_translate_address): Update.
9243 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9244 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9245 * parse.c (write_exp_msymbol): Update.
9246 * printcmd.c (address_info): Update.
9247 * psymtab.c (find_pc_sect_psymbol): Update.
9248 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9250 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9251 Don't initialize SYMBOL_OBJ_SECTION.
9252 * spu-tdep.c (spu_catch_start): Update.
9253 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9254 * symmisc.c (dump_msymbols, print_symbol): Update.
9255 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9256 how fallback section is computed.
9257 (fixup_symbol_section): Update.
9258 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9260 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9261 Initialize SYMBOL_SECTION.
9262 * symtab.h (struct general_symbol_info) <section>: Update comment.
9263 <obj_section>: Remove.
9264 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9265 (SYMBOL_OBJFILE): New macro.
9267 2013-04-08 Tom Tromey <tromey@redhat.com>
9269 * coffread.c (record_minimal_symbol): Update.
9270 * dbxread.c (record_minimal_symbol): Update.
9271 * elfread.c (record_minimal_symbol): Update.
9272 * machoread.c (macho_symtab_add_minsym): Update.
9273 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9275 * minsyms.c (prim_record_minimal_symbol): Update.
9276 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9278 (prim_record_minimal_symbol_and_info): Likewise.
9279 * minsyms.h (prim_record_minimal_symbol_full)
9280 (prim_record_minimal_symbol_and_info): Update.
9281 * symtab.c (allocate_symbol, initialize_symbol)
9282 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9283 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9286 2013-04-08 Tom Tromey <tromey@redhat.com>
9289 * solib-som.c (som_solib_section_offsets): Use BFD section
9290 indices. Set offsets for all sections.
9291 * somread.c (som_symtab_read): Compute BFD section for
9292 symbol. Use prim_record_minimal_symbol_and_info.
9293 (som_symfile_read): Fix comment.
9294 (struct find_section_offset_arg): New.
9295 (find_section_offset, set_section_index): New functions.
9296 (som_symfile_offsets): Use set_section_index to compute
9299 2013-04-08 Tom Tromey <tromey@redhat.com>
9301 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9302 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9303 gdb_bfd_section_index.
9304 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9306 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9308 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9310 * objfiles.c (add_to_objfile_sections_full): New function.
9311 (add_to_objfile_sections): Use it.
9312 (build_section_table): Rewrite.
9313 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9314 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9315 (struct objfile) <sections>: Update comment.
9316 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9318 (ALL_OBJSECTIONS): Use it.
9319 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9320 * solib-frv.c (frv_relocate_main_executable): Update.
9321 * solib-target.c (solib_target_relocate_section_addresses):
9322 Use gdb_bfd_section_index.
9323 * symfile.c (build_section_addr_info_from_section_table):
9324 Use gdb_bfd_section_index.
9325 (build_section_addr_info_from_bfd, place_section): Likewise.
9326 * symtab.c (fixup_section): Update.
9327 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9329 2013-04-08 Tom Tromey <tromey@redhat.com>
9331 * minsyms.h (struct bound_minimal_symbol): New.
9332 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9333 Remove objfile argument.
9334 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9335 Return bound_minimal_symbol.
9336 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9337 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9338 Return bound_minimal_symbol.
9339 (in_gnu_ifunc_stub): Update.
9340 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9341 Remove 'objfile_p' argument.
9342 (lookup_solib_trampoline_symbol_by_pc): Update.
9343 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9344 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9345 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9346 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9347 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9348 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9349 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9350 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9351 stack.c, symtab.c, tui/tui-disasm.c: Update.
9353 2013-04-08 Tom Tromey <tromey@redhat.com>
9355 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9356 Use symbol's obstack, not an objfile.
9357 * coffread.c (process_coff_symbol): Update.
9358 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9359 * jv-lang.c (add_class_symbol): Update.
9360 * mdebugread.c (new_symbol): Update.
9361 * minsyms.c (prim_record_minimal_symbol_full)
9362 (terminate_minimal_symbol_table): Update.
9363 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9364 * stabsread.c (define_symbol, read_enum_type): Update.
9365 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9366 Handle Ada specially.
9367 (symbol_set_language): Add 'obstack' argument.
9368 (symbol_set_names): Update.
9369 (symbol_natural_name, symbol_demangled_name): Always use
9371 * symtab.h (struct general_symbol_info)
9372 <language_specific::obstack>: New field.
9373 <ada_mangled>: New field.
9374 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9375 (symbol_set_language): Update.
9377 2013-04-08 Tom Tromey <tromey@redhat.com>
9379 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9380 Take an obstack, not an objfile.
9381 (symbol_set_names): Update.
9382 * symtab.h (symbol_set_demangled_name): Update.
9384 2013-04-08 Tom Tromey <tromey@redhat.com>
9386 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9388 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9389 (read_func_scope): Call allocate_template_symbol.
9390 (new_symbol_full): Call allocate_symbol.
9391 * jit.c (finalize_symtab): Call allocate_symbol.
9392 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9393 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9394 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9395 (common_block_end): Call allocate_symbol.
9396 * symtab.c (allocate_symbol, initialize_symbol)
9397 (allocate_template_symbol): New functions.
9398 * symtab.c (allocate_symbol, initialize_symbol)
9399 (allocate_template_symbol): Declare.
9400 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9402 2013-04-08 Pedro Alves <palves@redhat.com>
9403 Keith Seitz <keiths@redhat.com>
9405 * breakpoint.c (create_breakpoint): Rename
9406 "parse_condition_and_thread" parameter to "parse_arg". Update
9407 describing comment. If !PARSE_ARG, then error out if ARG is not
9408 the empty string after extracting the location.
9409 * breakpoint.h (create_breakpoint): Rename
9410 "parse_condition_and_thread" parameter to "parse_arg".
9412 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9414 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9416 2013-04-07 Yao Qi <yao@codesourcery.com>
9418 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9419 and 'addr2' to CORE_ADDR.
9420 * target.c (update_current_target): Update.
9421 * target.h (struct target_ops) <to_trace_find>: Change parameter
9423 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9424 'addr2' to CORE_ADDR.
9425 (tfile_trace_find): Likewise.
9426 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9427 Change local variable 'addr' to type CORE_ADDR.
9428 * tracepoint.h (tfind_1): Update declaration.
9430 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9432 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9433 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9436 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9438 * main.h (windows_get_absolute_argv0): ...to here.
9440 2013-04-05 Doug Evans <dje@google.com>
9442 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9443 (read_cutu_die_from_dwo): Add comments.
9444 (read_structure_type): Update comment.
9445 (read_enumeration_type, read_namespace_type): Update comment.
9446 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9448 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9450 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9451 * Makefile.in (gdb.z): Remove.
9452 (install-only): Remove $(man1dir) and gdb.1 installation.
9455 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9457 Fix compatibility with Linux kernel 3.8.3.
9458 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9459 to more inner block. Remove parsing of NUMBER from outer block.
9460 Parse NUMBER only if KEYWORD has been identified.
9462 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9464 Fix variable name shadowing.
9465 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9466 filename to mapsfilename and update its uses.
9468 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9470 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9471 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9472 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9473 details of the problem.
9475 2013-04-04 Pedro Alves <palves@redhat.com>
9476 Hui Zhu <hui@codesourcery.com>
9478 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9479 tracepoint, reset its STEP_COUNT and call validate_actionline.
9481 2013-04-03 Doug Evans <dje@google.com>
9483 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9484 read_die_and_siblings.
9485 (read_die_and_siblings): New function.
9486 (read_cutu_die_from_dwo): Dump die if requested.
9487 (read_die_and_children): Call read_full_die_1 and
9488 read_die_and_siblings_1.
9489 (read_full_die): Dump die if requested.
9491 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9493 * dwarf2read.c (struct dwo_file): New member comp_dir.
9494 Rename member name to dwo_name. All uses updated.
9495 (hash_dwo_file): Include comp_dir in computation.
9496 (eq_dwo_file): Ditto.
9497 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9498 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9500 * psymtab.c (read_psymtabs_with_fullname): Don't call
9501 psymtab_to_fullname if the basenames are different.
9503 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9505 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9506 New entry about "fullname" presence.
9508 2013-04-03 Pedro Alves <palves@redhat.com>
9510 * NEWS: Mention x86_64/Cygwin as new native configuration.
9512 2013-04-02 Doug Evans <dje@google.com>
9514 * dwarf2read.c (read_structure_type): Fix typo in comment.
9516 2013-04-02 Pedro Alves <palves@redhat.com>
9518 * NEWS: Mention "set/show debug aarch64", "set/show debug
9519 coff-pe-read" and "set/show debug mach-o".
9521 2013-04-02 Pedro Alves <palves@redhat.com>
9523 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9525 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9527 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9528 gdb_string.h is now in common/.
9530 2013-04-02 Pedro Alves <palves@redhat.com>
9532 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9533 under "New options".
9535 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9539 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9541 2013-04-02 Pedro Alves <palves@redhat.com>
9545 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9546 (remote_serial_write): New function.
9547 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9549 2013-04-01 Jiong Wang <jiwang@tilera.com>
9551 * NEWS: Mention TILE-Gx in "New native configurations" and
9552 "New targets" sections.
9554 2013-04-01 Doug Evans <dje@google.com>
9556 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9557 (process_enumeration_scope): Simplify.
9559 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9561 (struct signatured_type): ... to here.
9562 (sig_type_ptr): New typedef.
9563 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9564 out of union 't'. All uses updated.
9565 (dw2_get_file_names_reader): Assert not called for a type unit.
9566 (dw2_get_file_names): Assert not called for a type unit or type
9568 (build_type_psymtabs_reader): Assert called for a type unit.
9569 (build_type_psymtab_dependencies): Assert called for a type unit group.
9571 * dwarf2read.c (free_dwo_file): Add comment.
9572 (dwarf2_per_objfile_free): Unref dwp bfd.
9574 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9576 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9577 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9578 (read_pe_exported_syms): Remove unused 'exportix'.
9579 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9580 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9581 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9583 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9585 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9586 (print_it_watchpoint): Remove unused 'bl'.
9587 (say_where): Remove unused 'uiout'.
9588 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9589 (bkpt_breakpoint_hit): Remove unused 'b'.
9590 (internal_bkpt_print_it): Remove unused 'uiout'.
9591 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9593 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9595 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9596 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9598 2013-03-29 Doug Evans <dje@google.com>
9600 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9601 Delete arg is_dwp. All callers updated.
9602 (open_dwp_file): New function.
9603 (open_and_init_dwp_file): Call it.
9604 (get_dwp_file): New function.
9605 (lookup_dwo_cutu): Call it.
9607 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9608 unnecessary, cleanup.
9610 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9612 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9613 (lookup_dwo_unit): New function.
9614 (init_cutu_and_read_dies): Move DWO handling to new functions.
9616 * dwarf2read.c (struct signatured_type): Tweak comment.
9617 (struct dwo_unit): Tweak comment.
9618 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9619 (create_dwo_debug_info_hash_table): Tweak comment.
9620 (dwarf2_per_cu_offset_and_type): Tweak comment.
9622 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9623 missing .debug_types section.
9625 2013-03-29 Yao Qi <yao@codesourcery.com>
9627 * corelow.c: Include "completer.h".
9628 (_initialize_corelow): Call add_target_with_completer with
9629 argument 'filename_completer'.
9630 * tracepoint.c: Likewise.
9631 * exec.c (_initialize_exec): Likewise.
9632 * target.c (add_target): Rename to ...
9633 (add_target_with_completer): ... this. Call set_cmd_completer
9634 if parameter completer is not NULL.
9636 * target.h: Include "command.h".
9637 (add_target_with_completer): Declare it.
9639 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9641 * coffread.c (is_import_fixup_symbol): New function.
9642 (record_minimal_symbol): Use is_import_fixup_symbol to
9643 detect import fixup symbols, and discard them.
9645 2013-03-28 Doug Evans <dje@google.com>
9647 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9648 types hash table until we know we need it.
9650 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9653 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9654 All callers updated.
9655 (dw2_print_stats): Print #read CUs too.
9656 (dump_die_shallow): Print signatured types better.
9658 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9659 info_or_types_section to section. All uses updated.
9660 (struct dwo_unit): Ditto.
9662 2013-03-28 Pedro Alves <palves@redhat.com>
9664 * NEWS (New options): New section.
9665 (New options): Mention set/show remote trace-status-packet.
9666 * remote.c (PACKET_qTStatus): New enumeration value.
9667 (remote_get_trace_status): Skip sending qTStatus if the packet is
9668 disabled. Use packet_ok.
9669 (_initialize_remote): Register a configuration command for
9672 2013-03-28 Doug Evans <dje@google.com>
9674 * symfile.c (find_separate_debug_file): Add comment.
9675 (terminate_after_last_dir_separator): Tweak comment.
9677 * dwarf2read.c (create_partial_symtab): Add forward decl.
9678 (create_partial_symtab): Move to be closer to other psymtab functions.
9679 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9681 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9682 (compute_symtab_includes): Remove unnecessary forward declaration.
9683 (die_needs_namespace): Add comment marking group of functions for
9684 dwarf2 name computation.
9686 * typeprint.c (_initialize_typeprint): Improve type help text.
9688 * python/python.c (finish_python_initialization): Provide suggestion
9689 for how to tell gdb to find its python files.
9691 2013-03-28 Pedro Alves <palves@redhat.com>
9695 * source.c (_initialize_source): Change back "set listsize" to an
9698 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9701 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9703 2013-03-27 Pedro Alves <palves@redhat.com>
9705 * top.c (history_size): Rename to ...
9706 (history_size_setshow_var): ... this. Add comment.
9707 (show_commands): Use readline's 'history_length' instead of
9708 computing the history length by calling history_get in a loop.
9709 (set_history_size_command): Error out for sizes over INT_MAX.
9710 Restore previous history size on invalid size.
9711 (init_history): If HISTSIZE is negative, leave the history size as
9713 (init_main): Adjust.
9715 2013-03-27 Pedro Alves <palves@redhat.com>
9717 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9718 coff_pe_read" command to "set debug coff-pe-read".
9720 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9722 * record.c (command_size_to_target_size): Fix size comparison.
9723 Change parameter type from pointer to integer to integer.
9726 2013-03-27 Pierre Muller <muller@sourceware.org>
9728 * windows-nat.c (handle_output_debug_string): Avoid typecast
9729 from integer of different size warning.
9731 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9733 * windows-nat.c (handle_output_debug_string): Add empty line
9734 after local block variable definition.
9736 2013-03-26 Pedro Alves <palves@redhat.com>
9738 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9739 (net_open): Make 'polls' local unsigned.
9741 2013-03-26 Pedro Alves <palves@redhat.com>
9743 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9744 a zuinteger command instead of uinteger.
9746 2013-03-26 Pedro Alves <palves@redhat.com>
9748 * record-full.c (record_full_insn_num): Make it unsigned.
9749 (record_full_check_insn_num, record_full_message)
9750 (record_full_registers_change, record_full_xfer_partial): Remove
9751 record_full_insn_max_num check (it's always != 0).
9752 (record_full_info, record_full_restore): Use %u as format string.
9753 (): Use %u as format string.
9754 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9755 check (it's always != 0).
9757 2013-03-26 Pedro Alves <palves@redhat.com>
9759 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9760 and "set dcache size" commands zuinteger instead of uinteger.
9762 2013-03-26 Pedro Alves <palves@redhat.com>
9764 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9765 command zuinteger instead of uinteger.
9767 2013-03-26 Pedro Alves <palves@redhat.com>
9769 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9770 zuinteger instead of uinteger.
9772 2013-03-26 Pedro Alves <palves@redhat.com>
9774 * record.c (record_insn_history_size_setshow_var)
9775 (record_call_history_size_setshow_var): New globals.
9776 (command_size_to_target_size): New function.
9777 (cmd_record_insn_history, cmd_record_call_history): Use
9778 command_size_to_target_size instead of cast.
9779 (validate_history_size, set_record_insn_history_size)
9780 (set_record_call_history_size): New functions.
9781 (_initialize_record): Install set_record_insn_history_size and
9782 set_record_call_history_size as "set" hooks of "set record
9783 instruction-history-size" and "set record
9784 function-call-history-size".
9786 2013-03-26 Pedro Alves <palves@redhat.com>
9788 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9789 use with history_max_entries use. Remove FIXME note.
9791 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9793 * record-btrace.c (record_btrace_close): Call
9794 record_btrace_auto_disable.
9796 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9798 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9800 2013-03-25 Doug Evans <dje@google.com>
9802 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9804 2013-03-25 Tom Tromey <tromey@redhat.com>
9807 * c-exp.y (exp): Add new productions for destructors after '.' and
9809 (write_destructor_name): New function.
9811 2013-03-25 Tom Tromey <tromey@redhat.com>
9814 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9815 value_struct_elt, not lookup_struct_elt_type.
9816 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9817 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9818 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9820 2013-03-25 Yao Qi <yao@codesourcery.com>
9822 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9823 instead of '_mkdir'.
9825 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9827 * windows-nat.c (windows_get_absolute_argv0): New function.
9828 * windows-nat.h: Add its prototype.
9830 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9831 Use IS_DIR_SEPARATOR instead of looking for a character inside
9832 SLASH_STRING. Include filenames.h.
9833 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9834 relocate_gdb_directory works when passed gdb_program_name.
9835 Include windows-nat.h.
9837 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9839 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9840 * remote.c (trace_error): Remove the special handling of '2'.
9841 (readchar) <SERIAL_EOF>
9842 (readchar) <SERIAL_ERROR>
9843 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9844 (remote_get_trace_status): Call throw_exception if EX is
9846 * utils.c (perror_with_name): Rename to ...
9847 (throw_perror_with_name): ... here. New parameter errcode, describe it
9848 in the function comment.
9849 (perror_with_name): New function wrapper.
9850 * utils.h (enum errors): New stub declaration.
9851 (throw_perror_with_name): New declaration.
9853 2013-03-22 Pedro Alves <palves@redhat.com>
9854 Yao Qi <yao@codesourcery.com>
9855 Mark Kettenis <kettenis@gnu.org>
9857 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9858 Don't let the user set the value to UINT_MAX directly.
9859 <var_integer>: Don't let the user set the value to INT_MAX
9862 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9864 * remote.c (remote_unpush_target): New function.
9865 (remote_open_1): Remove two pop_target calls, update one comment, add
9866 comment to target_preopen call. Replace pop_target call by
9867 remote_unpush_target call.
9868 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9869 pop_target calls by remote_unpush_target calls.
9871 2013-03-22 Pedro Alves <palves@redhat.com>
9873 * linux-nat.c (linux_child_follow_fork): Don't call
9874 linux_enable_event_reporting.
9875 (linux_handle_extended_wait): Don't call
9876 linux_enable_event_reporting.
9878 2013-03-22 Pedro Alves <palves@redhat.com>
9880 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9881 use it to rewrite the trampoline buffers with type gdb_byte[], and
9882 undefine the macro. Remove char* cast.
9884 2013-03-21 Doug Evans <dje@google.com>
9886 New commands "mt set per-command {space,time,symtab} {on,off}".
9888 * event-top.c: #include "maint.h".
9889 * main.c: #include "maint.h".
9890 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9891 timeval-utils.h, maint.h, cli/cli-setshow.h.
9892 (per_command_time, per_command_space): New static globals.
9893 (per_command_symtab): New static global.
9894 (per_command_setlist, per_command_showlist): New static globals.
9895 (struct cmd_stats): Move here from utils.c.
9896 (set_per_command_time): Renamed from set_display_time in utils.c
9897 and moved here. All callers updated.
9898 (set_per_command_space): Renamed from set_display_space in utils.c
9899 and moved here. All callers updated.
9900 (count_symtabs_and_blocks): New function.
9901 (report_command_stats): Moved here from utils.c. Add support for
9902 printing symtab stats. Only print data if enabled before command
9904 (make_command_stats_cleanup): Ditto.
9905 (sert_per_command_cmd, show_per_command_cmd): New functions.
9906 (_initialize_maint_cmds): Add new commands
9907 mt set per-command {space,time,symtab} {on,off}.
9908 * maint.h: New file.
9909 * top.c: #include "maint.h".
9910 * utils.c (reset_prompt_for_continue_wait_time): New function.
9911 (get_prompt_for_continue_wait_time): New function.
9912 * utils.h (reset_prompt_for_continue_wait_time): Declare
9913 (get_prompt_for_continue_wait_time): Declare.
9914 (make_command_stats_cleanup): Moved to maint.h.
9915 (set_display_time, set_display_space): Moved to maint.h and renamed
9916 to set_per_command_time, set_per_command_space.
9917 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9918 parse_binary_operation and made non-static. Don't call error,
9919 just return an error marker. All callers updated.
9920 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9922 2013-03-21 Tom Tromey <tromey@redhat.com>
9924 * symfile.c (alloc_section_addr_info): Update header. Don't set
9925 'num_sections' field.
9926 (build_section_addr_info_from_section_table): Set 'num_sections'.
9927 (build_section_addr_info_from_bfd): Likewise.
9928 (build_section_addr_info_from_objfile): Remove dead loop
9930 (free_section_addr_info): Unconditionally call xfree.
9931 (relative_addr_info_to_section_offsets, addrs_section_sort)
9932 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9934 (syms_from_objfile_1): Remove dead 'if' condition. Check
9936 (add_symbol_file_command): Set 'num_sections'.
9937 * symfile-mem.c (symbol_file_add_from_memory): Set
9939 * somread.c (som_symfile_offsets): Remove dead loop condition.
9940 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9941 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9943 2013-03-21 Tom Tromey <tromey@redhat.com>
9945 * tracepoint.h (decode_agent_options): Add 'trace_string'
9947 * tracepoint.c (decode_agent_options): Add 'trace_string'
9949 (validate_actionline): Update.
9950 (collect_symbol): Add 'trace_string' argument.
9951 (struct add_local_symbols_data) <trace_string>: New field.
9952 (do_collect_symbol): Update.
9953 (add_local_symbols): Add 'trace_string' argument.
9954 (encode_actions_1): Update.
9955 (trace_dump_actions): Update.
9956 * dwarf2loc.c (access_memory): Update.
9957 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9958 * ax-general.c (new_agent_expr): Update.
9959 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9960 (gen_trace_for_return_address): Add argument.
9961 (trace_kludge, trace_string_kludge): Remove.
9962 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9963 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9964 (gen_trace_for_var): Add 'trace_string' argument.
9965 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9966 (gen_printf, agent_eval_command_one): Update.
9968 2013-03-21 Tom Tromey <tromey@redhat.com>
9971 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9972 Handle FILENAME token.
9974 2013-03-21 Tom Tromey <tromey@redhat.com>
9976 * c-exp.y (YYPRINT): Define.
9977 (c_print_token): New function.
9979 2013-03-21 Tom Tromey <tromey@redhat.com>
9981 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9983 2013-03-21 Yao Qi <yao@codesourcery.com>
9985 * ctf.c: Include "gdb_stat.h".
9986 [USE_WIN32API]: New macro 'mkdir'.
9987 (ctf_start): Use permission bits macros if they are defined.
9989 2013-03-20 Keith Seitz <keiths@redhat.com>
9991 * breakpoint.h (struct breakpoint): Add comment to
9992 extra_string indicating that this member is mallod'd.
9993 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9995 2013-03-20 Pedro Alves <palves@redhat.com>
9999 * cli/cli-setshow.c (do_set_command)
10000 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
10001 the result of parsing the command argument. Throw error if the
10002 value is greater than UINT_MAX. Print the invalid value with
10004 <var_integer, var_zinteger>: Use LONGEST for variable holding the
10005 result of parsing the command argument. Throw error if the value
10006 is greater than INT_MAX, not greater or equal. Also throw error
10007 if the value is less than INT_MIN. Print the invalid value with
10009 <var_zuinteger_unlimited>: Throw error if the value is greater
10010 than INT_MAX, not greater or equal.
10011 (do_show_command) <var_integer, var_zinteger,
10012 var_zuinteger_unlimited>: Use %d for printing int, not %u.
10014 2013-03-20 Tom Tromey <tromey@redhat.com>
10016 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
10018 * dwarf2read.c (read_func_scope): Remove old FIXME.
10019 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
10021 * findvar.c (symbol_read_needs_frame, default_read_var_value):
10022 Unconditionally call via computed ops, if possible.
10023 * printcmd.c (address_info): Unconditionally call via computed ops,
10025 * stack.c (read_frame_arg): Unconditionally call via computed ops,
10027 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
10028 * tracepoint.c (scope_info): Unconditionally call via computed ops,
10031 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10032 Tom Tromey <tromey@redhat.com>
10035 * coffread.c (coff_register_index): New global.
10036 (process_coff_symbol, coff_read_enum_type): Set
10037 SYMBOL_ACLASS_INDEX.
10038 (_initialize_coffread): Initialize new global.
10039 * dwarf2loc.c (locexpr_find_frame_base_location)
10040 (dwarf2_block_frame_base_locexpr_funcs)
10041 (loclist_find_frame_base_location)
10042 (dwarf2_block_frame_base_loclist_funcs): New.
10043 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10044 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10045 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10046 (dwarf2_block_frame_base_loclist_funcs): New.
10047 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10048 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10050 (read_func_scope): Update.
10051 (fixup_go_packaging, mark_common_block_symbol_computed)
10052 (var_decode_location, new_symbol_full, dwarf2_const_value):
10053 Set SYMBOL_ACLASS_INDEX.
10054 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
10055 (_initialize_dwarf2_read): Initialize new globals.
10056 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10057 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10058 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10060 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10061 (_initialize_mdebugread): Initialize new globals.
10062 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10063 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10064 (stab_register_index, stab_regparm_index): New globals.
10065 (define_symbol, read_enum_type, common_block_end): Set
10066 SYMBOL_ACLASS_INDEX.
10067 (_initialize_stabsread): Initialize new globals.
10068 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10070 (MAX_SYMBOL_IMPLS): New define.
10071 (register_symbol_computed_impl, register_symbol_block_impl)
10072 (register_symbol_register_impl)
10073 (initialize_ordinary_address_classes): New functions.
10074 (_initialize_symtab): Call initialize_ordinary_address_classes.
10075 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10076 (struct symbol_impl): New.
10077 (SYMBOL_ACLASS_BITS): New define.
10078 (struct symbol) <aclass, ops>: Remove fields.
10079 <aclass_index>: New field.
10080 (symbol_impls): Declare.
10081 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10082 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10083 (register_symbol_computed_impl, register_symbol_block_impl)
10084 (register_symbol_register_impl): Declare.
10085 (struct symbol_computed_ops): Add location_has_loclist.
10086 (struct symbol_block_ops): New.
10087 (SYMBOL_BLOCK_OPS): New.
10088 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10090 2013-03-20 Tom Tromey <tromey@redhat.com>
10092 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10093 (print_partial_symbols, recursively_search_psymtabs): Use
10096 2013-03-20 Pierre Muller <muller@sourceware.org>
10098 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10099 addtion, subtraction, multiplication and division binary operator.
10101 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10104 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10105 * bsd-kvm.c (bsd_kvm_close): Likewise.
10106 * bsd-uthread.c (bsd_uthread_close): Likewise.
10107 * corelow.c (core_close): Likewise.
10108 (core_close_cleanup): Remove parameter quitting from a caller.
10109 * event-top.c (async_disconnect): Likewise.
10110 * exec.c (exec_close_1): Remove parameter quitting.
10111 * go32-nat.c (go32_close): Likewise.
10112 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
10113 parameter quitting from a caller.
10114 * mips-linux-nat.c (super_close): Remove parameter quitting from the
10116 (mips_linux_close): Remove parameter quitting. Remove parameter
10117 quitting from a caller.
10118 * monitor.c (monitor_close): Remove parameter quitting.
10119 * monitor.h (monitor_close): Likewise.
10120 * record-btrace.c (record_btrace_close): Likewise.
10121 * record-full.c (record_full_close): Likewise.
10122 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10123 it also from fprintf_unfiltered.
10124 * remote-mips.c (mips_close): Remove parameter quitting.
10125 (mips_detach): Remove parameter quitting from a caller.
10126 * remote-sim.c (gdbsim_close): Remove parameter quitting.
10127 (gdbsim_close): Remove duplicate function comment. Remove parameter
10128 quitting and remove it also from printf_filtered.
10129 * remote.c (remote_close): Remove parameter quitting.
10130 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10131 * target.c (update_current_target): Remove parameter int from to_close
10133 (push_target, unpush_target, pop_target): Remove parameter quitting from
10135 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10136 Remove parameter quitting from a caller.
10137 (target_preopen): Remove parameter quitting from a caller.
10138 (target_close): Remove parameter quitting. Remove parameter quitting
10139 from a caller two times. Remove parameter quitting also from
10140 fprintf_unfiltered.
10141 * target.h (struct target_ops): Remove parameter quitting and as int
10142 from fields to_xclose and to_close.
10143 (extern struct target_ops current_target):
10144 (target_close, pop_all_targets): Remove parameter quitting. Update the
10146 (pop_all_targets_above): Remove parameter quitting.
10147 * top.c (quit_target): Remove parameter quitting from a caller.
10148 * tracepoint.c (tfile_close): Remove parameter quitting.
10149 * windows-nat.c (windows_close): Remove parameter quitting.
10151 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10153 * windows-nat.c (handle_output_debug_string): Replace call
10154 to string_to_core_addr with call to strtoull.
10156 2013-03-20 Yao Qi <yao@codesourcery.com>
10158 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10159 and write it to CTF metadata.
10161 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10163 * windows-nat.c (handle_output_debug_string): Change type of n to
10164 SIZE_T to avoid crash on 64 bit systems.
10166 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10168 * python/python-internal.h (HAVE_SNPRINTF)
10169 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10170 about redefinition of snprintf by pyerrors.h.
10172 2013-03-15 Steve Ellcey <sellcey@mips.com>
10174 * remote-sim.c (sim_command_completer): Make char arguments const.
10176 2013-03-15 Tom Tromey <tromey@redhat.com>
10179 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10181 2013-03-14 Tom Tromey <tromey@redhat.com>
10183 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10185 (get_file_crc): Move from symfile.c.
10186 (gdb_bfd_crc): New function.
10187 * gdb_bfd.h (gdb_bfd_crc): Declare.
10188 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10189 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10190 (separate_debug_file_exists): Use gdb_bfd_crc.
10192 2013-03-14 Tom Tromey <tromey@redhat.com>
10194 * symfile.c (get_debug_link_info): Remove.
10195 (find_separate_debug_file_by_debuglink): Use
10196 bfd_get_debug_link_info.
10198 2013-03-14 Tom Tromey <tromey@redhat.com>
10200 * symtab.c (error_in_psymtab_expansion): New function.
10201 (lookup_symbol_aux_quick)
10202 (basic_lookup_transparent_type_quick): Remove "last resort"
10203 code. Use error_in_psymtab_expansion.
10205 2013-03-14 Doug Evans <dje@google.com>
10206 Jan Kratochvil <jan.kratochvil@redhat.com>
10208 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10209 any successful compare_filenames_for_search or FILENAME_CMP.
10210 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10211 * symtab.c (iterate_over_some_symtabs): Likewise.
10213 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10215 * source.c (print_source_lines_base): Make a local copy of
10216 symtab_to_fullname.
10218 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10219 Jan Kratochvil <jan.kratochvil@redhat.com>
10221 * source.c (print_source_lines_base): Suppress "file" for TUI.
10223 2013-03-14 Keith Seitz <keiths@redhat.com>
10224 Alan Matsuoka <alanm@redhat.com>
10228 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10230 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10233 2013-03-14 Yao Qi <yao@codesourcery.com>
10235 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10236 status to tfile if trace is stopped by command 'tstop'.
10238 2013-03-14 Yao Qi <yao@codesourcery.com>
10240 * tracepoint.c (tfile_write_status): Write trace notes and user
10241 name into tfile if they are not NULL.
10243 2013-03-14 Hui Zhu <hui@codesourcery.com>
10244 Yao Qi <yao@codesourcery.com>
10246 * Makefile.in (REMOTE_OBS): Add ctf.o.
10247 (SFILES): Add ctf.c.
10248 (HFILES_NO_SRCDIR): Add ctf.h.
10249 * ctf.c, ctf.h: New files.
10250 * tracepoint.c: Include 'ctf.h'.
10251 (collect_pseudocommand): Remove static.
10252 (trace_save_command): Parse option "-ctf".
10253 Produce different trace file writers per option.
10254 Adjust output message.
10255 (trace_save_tfile, trace_save_ctf): New.
10256 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10257 * mi/mi-main.c: Include 'ctf.h'.
10258 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10259 trace_save_tfile or trace_save_ctf.
10260 * NEWS: Mention these changes.
10262 2013-03-14 Yao Qi <yao@codesourcery.com>
10264 * tracepoint.c (trace_file_writer_xfree): New.
10265 (struct tfile_writer_data): New.
10266 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10267 (tfile_write_header, tfile_write_regblock_type): New.
10268 (tfile_write_status, tfile_write_uploaded_tsv): New.
10269 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10270 (tfile_write_raw_data, (tfile_end): New.
10271 (tfile_write_ops): New global variable.
10272 (TRACE_WRITE_R_BLOCK): New macro.
10273 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10274 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10275 (TRACE_WRITE_V_BLOCK): New macro.
10276 (trace_save): Add extra one parameter WRITER. Make it static.
10277 Use WRITER to writer trace.
10278 (tfile_trace_file_writer_new): New.
10279 (trace_save_command): Caller update.
10280 (trace_save_tfile): Write trace data in TFILE format.
10281 * tracepoint.h (struct trace_frame_write_ops): New.
10282 (struct trace_file_write_ops): New.
10283 (struct trace_file_writer): New.
10284 (trace_save): Remove its declaration.
10285 (trace_save_tfile): Declare it.
10286 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10287 instead of trace_save.
10289 2013-03-13 Pedro Alves <palves@redhat.com>
10291 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10293 2013-03-13 Pedro Alves <palves@redhat.com>
10295 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10296 commented out code.
10297 * demangle.c (current_demangling_style_string): Make it const.
10298 (set_demangling_command): Assert the demangling style is known.
10299 Remove all handling of unknown styles. Set
10300 'current_demangling_style_string' to an element of the
10301 demangling_style_names array.
10302 (set_demangling_style): Delete.
10303 (_initialize_demangler): Set current_demangling_style_string to the
10304 element of the demangling_style_names array that corresponds to
10305 the default demangling style. Remove FIXME note. Don't call
10306 set_demangling_style.
10307 * gdb-demangle.h (set_demangling_style): Remove declaration.
10309 2013-03-13 Pedro Alves <palves@redhat.com>
10311 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10313 (ada_make_symbol_completion_list): Make "text0" parameter const.
10314 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10315 * breakpoint.c (condition_completer): Make "text" and "word"
10316 parameters const. Adjust.
10317 (check_tracepoint_command): Adjust to validate_actionline
10319 (catch_syscall_completer): Make "text" and "word" parameters
10321 * cli/cli-cmds.c (show_user): Make "comname" local const.
10322 (valid_command_p): Make "command" parameter const.
10323 (alias_command): Make "alias_prefix" and "command_prefix" locals
10325 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10326 (add_alias_cmd): Make "name" and "oldname" parameters const.
10327 Adjust. No longer make copy of OLDNAME.
10328 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10329 (add_setshow_cmd_full, add_setshow_enum_cmd)
10330 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10331 (add_setshow_filename_cmd, add_setshow_string_cmd)
10332 (add_setshow_string_noescape_cmd)
10333 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10334 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10335 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10336 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10337 Make "name" parameter const.
10338 (help_cmd): Rename "command" parameter to "arg". New const local
10340 (find_cmd): Make "command" parameter const.
10341 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10342 deprecated_cmd_warning prototype change.
10343 (undef_cmd_error): Make "cmdtype" parameter const.
10344 (lookup_cmd): Make "line" parameter const.
10345 (deprecated_cmd_warning): Change type of "text" parameter to
10346 pointer to const char, from pointer to pointer to char. Adjust.
10347 (lookup_cmd_composition): Make "text" parameter const.
10348 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10350 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10352 * cli/cli-script.c (validate_comname): Make "tem" local const.
10353 (define_command): New const local "tem_c". Use it in calls to
10355 (document_command): Make "tem" and "comfull" locals const.
10356 (show_user_1): Make "prefix" and "name" parameters const.
10357 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10359 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10360 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10361 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10362 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10363 (complete_on_enum, add_setshow_enum_cmd)
10364 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10365 (add_setshow_filename_cmd, add_setshow_string_cmd)
10366 (add_setshow_string_noescape_cmd)
10367 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10368 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10369 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10370 Change prototypes, constifying strings.
10371 * completer.c (noop_completer, filename_completer): Make "text"
10372 and "prefix" parameters const.
10373 (location_completer, expression_completer)
10374 (complete_line_internal): Make "text" and "prefix" parameters
10376 (command_completer, signal_completer): Make "text" and "prefix"
10378 * completer.h (noop_completer, filename_completer)
10379 (expression_completer, location_completer, command_completer)
10380 (signal_completer): Change prototypes.
10381 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10383 * cp-abi.c (cp_abi_completer): Likewise.
10384 * expression.h (parse_expression_for_completion): Change
10386 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10388 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10389 * infrun.c (handle_completer): Make "text" and "word" parameters
10391 * interps.c (interpreter_completer): Make "text" and "word"
10393 * language.h (struct language_defn)
10394 <la_make_symbol_completion_list>: Make "text" and "word"
10396 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10397 (parse_exp_in_context): Rename to ...
10398 (parse_exp_in_context_1): ... this.
10399 (parse_exp_in_context): Reimplement, with const hack from
10401 (parse_expression_for_completion): Make "string" parameter const.
10402 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10403 to pointer to const char. Adjust.
10404 (print_command_1): Make "exp" parameter const.
10405 (output_command): Rename to ...
10406 (output_command_const): ... this. Make "exp" parameter const.
10407 (output_command): Reimplement.
10408 (x_command): Adjust.
10409 (display_command): Rename "exp" parameter to "arg". New "exp"
10410 local, const version of "arg".
10411 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10412 "cmd_name" local const.
10413 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10415 (cmdpy_completer): Make "text" and "word" parameters const.
10416 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10417 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10419 * remote.c (_initialize_remote): Make "cmd_name" local const.
10420 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10421 parameters const. Adjust.
10422 (completion_list_add_fields): Make "sym_text", "text" and "word"
10424 (struct add_name_data) <sym_text, text, word>: Make fields const.
10425 (default_make_symbol_completion_list_break_on): Make "text" and
10426 "word" parameters const. Adjust locals.
10427 (default_make_symbol_completion_list)
10428 (make_symbol_completion_list, make_symbol_completion_type)
10429 (make_symbol_completion_list_fn): Make "text" and "word"
10431 (make_file_symbol_completion_list): Make "text", "word" and
10432 "srcfile" parameters const. Adjust locals.
10433 (add_filename_to_list): Make "text" and "word" parameters const.
10434 (struct add_partial_filename_data) <text, word>: Make fields
10436 (make_source_files_completion_list): Make "text" and "word"
10438 * symtab.h (default_make_symbol_completion_list_break_on)
10439 (default_make_symbol_completion_list, make_symbol_completion_list)
10440 (make_symbol_completion_type enum type_code)
10441 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10442 (make_source_files_completion_list): Change prototype.
10443 * top.c (execute_command): Adjust to pass pointer to pointer to
10444 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10446 (set_verbose): Make "cmdname" local const.
10447 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10449 (validate_actionline): Make "line" parameter a pointer to const
10451 (encode_actions_1): Make "action_exp" local const, and adjust.
10452 (encode_actions): Adjust.
10453 (replace_comma): Delete.
10454 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10455 const, and adjust. Don't frob the action string while splitting
10456 it at commas. Instead, make a copy of each split substring in
10458 (trace_dump_command): Adjust to validate_actionline prototype
10460 * tracepoint.h (decode_agent_options, decode_agent_options)
10461 (encode_actions, validate_actionline): Change prototypes.
10462 * valprint.h (output_command): Delete declaration.
10463 (output_command_const): Declare.
10464 * value.c (function_destroyer): Cast const away in xfree call.
10466 2013-03-13 Pedro Alves <palves@redhat.com>
10468 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10469 rather than casting 'const char * const *' to 'const char **'.
10470 * ada-lex.l (processInt): Make "trailer" local const. Remove
10471 'const char **' cast.
10472 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10473 locals, and use those as strtol output pointer, instead than doing
10474 invalid casts to from 'const char **' to 'char **'.
10475 (_initialize_demangle): Remove cast.
10476 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10477 locals, and use those as strtol output pointer, instead than doing
10478 invalid casts to from 'const char **' to 'char **'.
10479 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10481 * stap-probe.c (stap_parse_register_operand)
10482 (stap_parse_single_operand): Likewise.
10484 2013-03-13 Yao Qi <yao@codesourcery.com>
10486 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10487 the last matched 'V' blcok in trace frame.
10489 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10491 * NEWS: Create a new section for the next release branch.
10492 Rename the section of the current branch, now that it has
10495 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10497 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10498 * version.in: Bump version to 7.6.50.20130312-cvs.
10500 2013-03-12 Keith Seitz <keiths@redhat.com>
10502 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10503 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10504 Remove temporary copy of input string.
10505 (mi_execute_command_wrapper): Make "cmd" const.
10506 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10507 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10509 (mi_parse): Make "cmd" const.
10511 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10513 2013-03-12 Keith Seitz <keiths@redhat.com>
10515 * ada-lang.c (ada_read_renaming_var_value): Pass const
10516 pointer to expression string to parse_exp_1.
10517 (create_excep_cond_exprs): Likewise.
10518 * ax-gdb.c (agent_eval_command_one): Likewise.
10519 (maint_agent_printf_command): Likewise.
10520 Constify much of the string handling/parsing.
10521 * breakpoint.c (set_breakpoint_condition): Pass const
10522 pointer to expression string to parse_exp_1.
10523 (update_watchpoint): Likewise.
10524 (parse_cmd_to_aexpr): Constify string handling.
10525 Pass const pointer to parse_exp_1.
10526 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10527 (find_condition_and_thread): Likewise.
10529 (watch_command_1): Make "arg" const.
10530 Constify string handling.
10531 Copy the expression string instead of changing the input
10533 (update_breakpoint_location): Pass const pointer to
10535 * eval.c (parse_and_eval_address): Make "exp" const.
10536 (parse_to_comma_and_eval): Make "expp" const.
10537 (parse_and_eval): Make "exp" const.
10538 * expression.h (parse_expression): Make argument const.
10539 (parse_exp_1): Make first argument const.
10540 * findcmd.c (parse_find_args): Treat "args" as const.
10541 * linespec.c (parse_linespec): Pass const pointer to
10542 linespec_expression_to_pc.
10543 (linespec_expression_to_pc): Make "exp_ptr" const.
10544 * parse.c (parse_exp_1): Make "stringptr" const.
10545 Make a copy of the expression to pass to parse_exp_in_context until
10546 this whole interface can be constified.
10547 (parse_expression): Make "string" const.
10548 * printcmd.c (ui_printf): Treat "arg" as const.
10549 Handle const strings.
10550 * tracepoint.c (validate_actionline): Pass const pointer to
10551 all calls to parse_exp_1.
10552 (encode_actions_1): Likewise.
10553 * value.h (parse_to_comma_and_eval): Make argument const.
10554 (parse_and_eval_address): Likewise.
10555 (parse_and_eval): Likewise.
10556 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10557 (varobj_set_value): Likewise.
10558 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10559 constify string handling.
10560 Pass const pointers to parse_and_eval_address and
10561 parse_to_comman_and_eval.
10562 * cli/cli-utils.c (skip_to_space): Rename to ...
10563 (skip_to_space_const): ... this. Handle const strings.
10564 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10565 skip_to_space_const.
10566 (skip_to_space_const): Declare.
10567 * common/format.c (parse_format_string): Make "arg" const.
10568 Handle const strings.
10569 * common/format.h (parse_format_string): Make "arg" const.
10570 * gdbserver/ax.c (ax_printf): Make "format" const.
10571 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10572 of the expression string.
10574 2013-03-12 Hui Zhu <hui@codesourcery.com>
10576 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10578 2013-03-12 Yao Qi <yao@codesourcery.com>
10579 Hui Zhu <hui@codesourcery.com>
10581 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10582 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10585 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10587 * ada-lex.l (rules): Only recognize 'thread' as a
10588 delimiter when followed by numerals, as for c-exp.y.
10589 Use new rewind_to_char function to rewind the input for
10590 expression-delimiting tokens.
10591 (rewind_to_char): New function.
10593 2013-03-11 Pedro Alves <palves@redhat.com>
10594 Jan Kratochvil <jan.kratochvil@redhat.com>
10596 * configure: Regenerate.
10597 * configure.ac (check dynamic export flag): Link python test with
10600 2013-03-11 Doug Evans <dje@google.com>
10601 Keith Seitz <keiths@redhat.com>
10603 * linespec.c (find_linespec_symbols): Call find_function_symbols
10604 first, and then call lookup_prefix_sym/find_method.
10606 2013-03-11 Pedro Alves <palves@redhat.com>
10608 * charset.c (convert_between_encodings): Don't cast between
10609 different pointer to pointer types. Instead, make the 'inp' local
10610 be of the type iconv expects.
10611 (wchar_iterate): Don't cast between different pointer to pointer
10612 types. Instead, use new pointer local of the type iconv expects.
10613 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10614 Add new local of type char pointer, and use it to get a
10615 char/string view of the byte buffer, instead of casting between
10616 pointer to pointer types.
10618 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10620 * remote.c (remote_set_trace_buffer_size): Move != operator
10621 to the start of next line to fix an ARI warning.
10623 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10625 * NEWS: Add record changes.
10627 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10629 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10630 the instruction history disassembly.
10631 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10632 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10634 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10636 * Makefile.in (SFILES): Add record-btrace.c
10637 (COMMON_OBS): Add record-btrace.o
10638 * record-btrace.c: New.
10639 * objfiles.c: Include btrace.h.
10640 (free_objfile): call btrace_free_objfile.
10642 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10644 * target.c (target_call_history, target_call_history_from,
10645 target_call_history_range): New.
10646 * target.h (target_ops) <to_call_history, to_call_history_from,
10647 to_call_history_range>: New fields.
10648 (target_call_history, target_call_history_from,
10649 target_call_history_range): New declaration.
10650 * record.c (get_call_history_modifiers, cmd_record_call_history,
10651 record_call_history_size): New.
10652 (_initialize_record): Add the "record function-call-history" command.
10653 Add "set/show record function-call-history-size" commands.
10654 * record.h (record_print_flag): New.
10656 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10658 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10659 to_insn_history_range>: New fields.
10660 (target_insn_history): New.
10661 (target_insn_history_from): New.
10662 (target_insn_history_range): New.
10663 * target.c (target_insn_history): New.
10664 (target_insn_history_from): New.
10665 (target_insn_history_range): New.
10666 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10667 (record_insn_history_size): New.
10668 (get_insn_number): New.
10669 (get_context_size): New.
10671 (get_insn_history_modifiers): New.
10672 (cmd_record_insn_history): New.
10673 (_initialize_record): Add "set/show record instruction-history-size"
10674 command. Add "record instruction-history" command.
10676 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10678 * record.h (record_disconnect): New.
10679 (record_detach): New.
10680 (record_mourn_inferior): New.
10681 (record_kill): New.
10682 * record-full.c (record_disconnect, record_detach,
10683 record_mourn_inferior, record_kill): Move to...
10684 * record.c: ...here.
10686 (record_stop): New.
10687 (record_unpush): New.
10688 (cmd_record_stop): Call record_stop. Replace unpush_target
10689 call with record_unpush call.
10690 (record_disconnect, record_detach): Assert that the target
10691 is of record stratum. Call record_unpush, record_stop, and
10693 (record_mourn_inferior, record_kill): Assert that the target
10694 is of record stratum. Call record_unpush and DEBUG.
10696 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10698 * record-full.h, record-full.c (record_memory_query): Rename
10700 (record_full_memory_query): ...this. Update all users.
10701 (record_arch_list_add_reg): Rename to ...
10702 (record_full_arch_list_add_reg): ...this. Update all users.
10703 (record_arch_list_add_mem): Rename to ...
10704 (record_full_arch_list_add_mem): ...this. Update all users.
10705 (record_arch_list_add_end): Rename to ...
10706 (record_full_arch_list_add_end): ...this. Update all users.
10707 (record_gdb_operation_disable_set): Rename to ...
10708 (record_full_gdb_operation_disable_set): ...this.
10711 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10713 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10714 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10715 (RECORD_IS_REPLAY): Renamed to ...
10716 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10717 (RECORD_FILE_MAGIC): Renamed to ...
10718 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10719 (record_mem_entry): Renamed to ...
10720 (record_full_mem_entry): ... this. Updated all users.
10721 (record_reg_entry): Renamed to ...
10722 (record_full_reg_entry): ... this. Updated all users.
10723 (record_end_entry): Renamed to ...
10724 (record_full_end_entry): ... this. Updated all users.
10725 (record_type) <record_end, record_reg, record_mem>: Renamed
10727 (record_full_type) <record_full_end, record_full_reg,
10728 record_full_mem>: ... this. Updated all users.
10729 (record_entry): Renamed to ...
10730 (record_full_entry): ... this. Updated all users.
10731 (record_core_buf_entry): Renamed to ...
10732 (record_full_core_buf_entry): ... this. Updated all users.
10733 (record_core_regbuf): Renamed to ...
10734 (record_full_core_regbuf): ... this. Updated all users.
10735 (record_core_start): Renamed to ...
10736 (record_full_core_start): ... this. Updated all users.
10737 (record_core_end): Renamed to ...
10738 (record_full_core_end): ... this. Updated all users.
10739 (record_core_buf_list): Renamed to ...
10740 (record_full_core_buf_list): ... this. Updated all users.
10741 (record_first): Renamed to ...
10742 (record_full_first): ... this. Updated all users.
10743 (record_list): Renamed to ...
10744 (record_full_list): ... this. Updated all users.
10745 (record_arch_list_head): Renamed to ...
10746 (record_full_arch_list_head): ... this. Updated all users.
10747 (record_arch_list_tail): Renamed to ...
10748 (record_full_arch_list_tail): ... this. Updated all users.
10749 (record_stop_at_limit): Renamed to ...
10750 (record_full_stop_at_limit): ... this. Updated all users.
10751 (record_insn_max_num): Renamed to ...
10752 (record_full_insn_max_num): ... this. Updated all users.
10753 (record_insn_num): Renamed to ...
10754 (record_full_insn_num): ... this. Updated all users.
10755 (record_insn_count): Renamed to ...
10756 (record_full_insn_count): ... this. Updated all users.
10757 (record_ops): Renamed to ...
10758 (record_full_ops): ... this. Updated all users.
10759 (record_core_ops): Renamed to ...
10760 (record_full_core_ops): ... this. Updated all users.
10761 (set_record_cmdlist): Renamed to ...
10762 (set_record_full_cmdlist): ... this. Updated all users.
10763 (show_record_cmdlist): Renamed to ...
10764 (show_record_full_cmdlist): ... this. Updated all users.
10765 (record_cmdlist): Renamed to ...
10766 (record_full_cmdlist): ... this. Updated all users.
10767 (record_beneath_to_resume_ops): Renamed to ...
10768 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10769 (record_beneath_to_resume): Renamed to ...
10770 (record_full_beneath_to_resume): ... this. Updated all users.
10771 (record_beneath_to_wait_ops): Renamed to ...
10772 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10773 (record_beneath_to_wait): Renamed to ...
10774 (record_full_beneath_to_wait): ... this. Updated all users.
10775 (record_beneath_to_store_registers_ops): Renamed to ...
10776 (record_full_beneath_to_store_registers_ops): ... this.
10778 (record_beneath_to_store_registers): Renamed to ...
10779 (record_full_beneath_to_store_registers): ... this.
10781 (record_beneath_to_xfer_partial_ops): Renamed to ...
10782 (record_full_beneath_to_xfer_partial_ops): ... this.
10784 (record_beneath_to_xfer_partial): Renamed to ...
10785 (record_full_beneath_to_xfer_partial): ... this.
10787 (record_beneath_to_insert_breakpoint): Renamed to ...
10788 (record_full_beneath_to_insert_breakpoint): ... this.
10790 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10791 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10793 (record_beneath_to_stopped_data_address): Renamed to ...
10794 (record_full_beneath_to_stopped_data_address): ... this.
10796 (record_beneath_to_async): Renamed to ...
10797 (record_full_beneath_to_async): ... this. Updated all users.
10798 (record_goto_insn): Renamed to ...
10799 (record_full_goto_insn): ... this. Updated all users.
10800 (record_save): Renamed to ...
10801 (record_full_save): ... this. Updated all users.
10802 (record_reg_alloc): Renamed to ...
10803 (record_full_reg_alloc): ... this. Updated all users.
10804 (record_reg_release): Renamed to ...
10805 (record_full_reg_release): ... this. Updated all users.
10806 (record_mem_alloc): Renamed to ...
10807 (record_full_mem_alloc): ... this. Updated all users.
10808 (record_mem_release): Renamed to ...
10809 (record_full_mem_release): ... this. Updated all users.
10810 (record_end_alloc): Renamed to ...
10811 (record_full_end_alloc): ... this. Updated all users.
10812 (record_end_release): Renamed to ...
10813 (record_full_end_release): ... this. Updated all users.
10814 (record_entry_release): Renamed to ...
10815 (record_full_entry_release): ... this. Updated all users.
10816 (record_list_release): Renamed to ...
10817 (record_full_list_release): ... this. Updated all users.
10818 (record_list_release_following): Renamed to ...
10819 (record_full_list_release_following): ... this.
10821 (record_list_release_first): Renamed to ...
10822 (record_full_list_release_first): ... this. Updated all users.
10823 (record_arch_list_add): Renamed to ...
10824 (record_full_arch_list_add): ... this. Updated all users.
10825 (record_get_loc): Renamed to ...
10826 (record_full_get_loc): ... this. Updated all users.
10827 (record_check_insn_num): Renamed to ...
10828 (record_full_check_insn_num): ... this. Updated all users.
10829 (record_arch_list_cleanups): Renamed to ...
10830 (record_full_arch_list_cleanups): ... this. Updated all users.
10831 (record_message): Renamed to ...
10832 (record_full_message): ... this. Updated all users.
10833 (record_message_wrapper): Renamed to ...
10834 (record_full_message_wrapper): ... this. Updated all users.
10835 (record_message_wrapper_safe): Renamed to ...
10836 (record_full_message_wrapper_safe): ... this. Updated all users.
10837 (record_gdb_operation_disable): Renamed to ...
10838 (record_full_gdb_operation_disable): ... this. Updated all users.
10839 (record_hw_watchpoint): Renamed to ...
10840 (record_full_hw_watchpoint): ... this. Updated all users.
10841 (record_exec_insn): Renamed to ...
10842 (record_full_exec_insn): ... this. Updated all users.
10843 (record_restore): Renamed to ...
10844 (record_full_restore): ... this. Updated all users.
10845 (record_async_inferior_event_token): Renamed to ...
10846 (record_full_async_inferior_event_token): ... this.
10848 (record_async_inferior_event_handler): Renamed to ...
10849 (record_full_async_inferior_event_handler): ... this.
10851 (record_core_open_1): Renamed to ...
10852 (record_full_core_open_1): ... this. Updated all users.
10853 (record_open_1): Renamed to ...
10854 (record_full_open_1): ... this. Updated all users.
10855 (record_open): Renamed to ...
10856 (record_full_open): ... this. Updated all users.
10857 (record_close): Renamed to ...
10858 (record_full_close): ... this. Updated all users.
10859 (record_resume_step): Renamed to ...
10860 (record_full_resume_step): ... this. Updated all users.
10861 (record_resumed): Renamed to ...
10862 (record_full_resumed): ... this. Updated all users.
10863 (record_execution_dir): Renamed to ...
10864 (record_full_execution_dir): ... this. Updated all users.
10865 (record_resume): Renamed to ...
10866 (record_full_resume): ... this. Updated all users.
10867 (record_get_sig): Renamed to ...
10868 (record_full_get_sig): ... this. Updated all users.
10869 (record_sig_handler): Renamed to ...
10870 (record_full_sig_handler): ... this. Updated all users.
10871 (record_wait_cleanups): Renamed to ...
10872 (record_full_wait_cleanups): ... this. Updated all users.
10873 (record_wait_1): Renamed to ...
10874 (record_full_wait_1): ... this. Updated all users.
10875 (record_wait): Renamed to ...
10876 (record_full_wait): ... this. Updated all users.
10877 (record_stopped_by_watchpoint): Renamed to ...
10878 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10879 (record_disconnect): Renamed to ...
10880 (record_full_disconnect): ... this. Updated all users.
10881 (record_detach): Renamed to ...
10882 (record_full_detach): ... this. Updated all users.
10883 (record_mourn_inferior): Renamed to ...
10884 (record_full_mourn_inferior): ... this. Updated all users.
10885 (record_kill): Renamed to ...
10886 (record_full_kill): ... this. Updated all users.
10887 (record_stopped_data_address): Renamed to ...
10888 (record_full_stopped_data_address): ... this. Updated all users.
10889 (record_registers_change): Renamed to ...
10890 (record_full_registers_change): ... this. Updated all users.
10891 (record_store_registers): Renamed to ...
10892 (record_full_store_registers): ... this. Updated all users.
10893 (record_xfer_partial): Renamed to ...
10894 (record_full_xfer_partial): ... this. Updated all users.
10895 (record_breakpoint): Renamed to ...
10896 (record_full_breakpoint): ... this. Updated all users.
10897 (record_breakpoint_p): Renamed to ...
10898 (record_full_breakpoint_p): ... this. Updated all users.
10899 (record_breakpoints): Renamed to ...
10900 (record_full_breakpoints): ... this. Updated all users.
10901 (record_sync_record_breakpoints): Renamed to ...
10902 (record_full_sync_record_breakpoints): ... this.
10904 (record_init_record_breakpoints): Renamed to ...
10905 (record_full_init_record_breakpoints): ... this.
10907 (record_insert_breakpoint): Renamed to ...
10908 (record_full_insert_breakpoint): ... this. Updated all users.
10909 (record_remove_breakpoint): Renamed to ...
10910 (record_full_remove_breakpoint): ... this. Updated all users.
10911 (record_can_execute_reverse): Renamed to ...
10912 (record_full_can_execute_reverse): ... this. Updated all users.
10913 (record_get_bookmark): Renamed to ...
10914 (record_full_get_bookmark): ... this. Updated all users.
10915 (record_goto_bookmark): Renamed to ...
10916 (record_full_goto_bookmark): ... this. Updated all users.
10917 (record_async): Renamed to ...
10918 (record_full_async): ... this. Updated all users.
10919 (record_can_async_p): Renamed to ...
10920 (record_full_can_async_p): ... this. Updated all users.
10921 (record_is_async_p): Renamed to ...
10922 (record_full_is_async_p): ... this. Updated all users.
10923 (record_execution_direction): Renamed to ...
10924 (record_full_execution_direction): ... this. Updated all users.
10925 (record_info): Renamed to ...
10926 (record_full_info): ... this. Updated all users.
10927 (record_delete): Renamed to ...
10928 (record_full_delete): ... this. Updated all users.
10929 (record_is_replaying): Renamed to ...
10930 (record_full_is_replaying): ... this. Updated all users.
10931 (record_goto_entry): Renamed to ...
10932 (record_full_goto_entry): ... this. Updated all users.
10933 (record_goto_begin): Renamed to ...
10934 (record_full_goto_begin): ... this. Updated all users.
10935 (record_goto_end): Renamed to ...
10936 (record_full_goto_end): ... this. Updated all users.
10937 (record_goto): Renamed to ...
10938 (record_full_goto): ... this. Updated all users.
10939 (init_record_ops): Renamed to ...
10940 (init_record_full_ops): ... this. Updated all users.
10941 (record_core_resume): Renamed to ...
10942 (record_full_core_resume): ... this. Updated all users.
10943 (record_core_kill): Renamed to ...
10944 (record_full_core_kill): ... this. Updated all users.
10945 (record_core_fetch_registers): Renamed to ...
10946 (record_full_core_fetch_registers): ... this. Updated all users.
10947 (record_core_prepare_to_store): Renamed to ...
10948 (record_full_core_prepare_to_store): ... this. Updated all users.
10949 (record_core_store_registers): Renamed to ...
10950 (record_full_core_store_registers): ... this. Updated all users.
10951 (record_core_xfer_partial): Renamed to ...
10952 (record_full_core_xfer_partial): ... this. Updated all users.
10953 (record_core_insert_breakpoint): Renamed to ...
10954 (record_full_core_insert_breakpoint): ... this. Updated all users.
10955 (record_core_remove_breakpoint): Renamed to ...
10956 (record_full_core_remove_breakpoint): ... this. Updated all users.
10957 (record_core_has_execution): Renamed to ...
10958 (record_full_core_has_execution): ... this. Updated all users.
10959 (init_record_core_ops): Renamed to ...
10960 (init_record_full_core_ops): ... this. Updated all users.
10961 (cmd_record_restore): Renamed to ...
10962 (cmd_record_full_restore): ... this. Updated all users.
10963 (record_save_cleanups): Renamed to ...
10964 (record_full_save_cleanups): ... this. Updated all users.
10965 (cmd_record_start): Renamed to ...
10966 (cmd_record_full_start): ... this. Updated all users.
10967 (set_record_insn_max_num): Renamed to ...
10968 (set_record_full_insn_max_num): ... this. Updated all users.
10969 (set_record_command): Renamed to ...
10970 (set_record_full_command): ... this. Updated all users.
10971 (show_record_command): Renamed to ...
10972 (show_record_full_command): ... this. Updated all users.
10973 (_initialize_record): Renamed to ...
10974 (_initialize_record_full): ... this. Updated all users.
10976 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10978 * record.h: Split into this and ...
10979 * record-full.h: ... this.
10980 * record.c: Split into this and ...
10981 * record-full.c: ... this.
10982 * target.h (target_ops): Add new fields to_info_record,
10983 to_save_record, to_delete_record, to_record_is_replaying,
10984 to_goto_record_begin, to_goto_record_end, to_goto_record.
10985 (target_info_record): New.
10986 (target_save_record): New.
10987 (target_supports_delete_record): New.
10988 (target_delete_record): New.
10989 (target_record_is_replaying): New.
10990 (target_goto_record_begin): New.
10991 (target_goto_record_end): New.
10992 (target_goto_record): New.
10993 * target.c (target_info_record): New.
10994 (target_save_record): New.
10995 (target_supports_delete_record): New.
10996 (target_delete_record): New.
10997 (target_record_is_replaying): New.
10998 (target_goto_record_begin): New.
10999 (target_goto_record_end): New.
11000 (target_goto_record): New.
11001 * record.h: Declare struct cmd_list_element.
11002 (record_cmdlist): New declaration.
11003 (set_record_cmdlist): New declaration.
11004 (show_record_cmdlist): New declaration.
11005 (info_record_cmdlist): New declaration.
11006 (cmd_record_goto): New declaration.
11007 * record.c: Remove unnecessary includes.
11008 Include inferior.h.
11009 (cmd_record_goto): Remove declaration.
11010 (record_cmdlist): Now extern. Initialize.
11011 (set_record_cmdlist): Now extern. Initialize.
11012 (show_record_cmdlist): Now extern. Initialize.
11013 (info_record_cmdlist): Now extern. Initialize.
11014 (find_record_target): New.
11015 (require_record_target): New.
11016 (cmd_record_start): Update.
11017 (cmd_record_delete): Remove target-specific code.
11018 Call target_delete_record.
11019 (cmd_record_stop): Unpush any record target.
11020 (set_record_insn_max_num): Move to record-full.c
11021 (set_record_command): Add comment.
11022 (show_record_command): Add comment.
11023 (info_record_command): Update comment.
11024 Remove target-specific code.
11025 Call the record target's to_info_record.
11026 (cmd_record_start): New.
11027 (cmd_record_goto): Now extern.
11028 Remove target-specific code.
11029 Call target_goto_begin, target_goto_end, or target_goto.
11030 (_initialize_record): Move record target ops initialization to
11032 Change "record" command help text.
11033 Move "record restore", "record set", and "record show" commands to
11035 * Makefile.in (SFILES): Add record-full.c.
11036 (HFILES_NO_SRCDIR): Add record-full.h.
11037 (COMMON_OBS): Add record-full.o.
11038 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11039 * arm-tdep.c: Include record-full.h.
11040 * i386-linux-tdep.c: Include record-full.h instead of record.h.
11041 * i386-tdep.c: Include record-full.h.
11042 * infrun.c: Include record-full.h.
11043 * linux-record.c: Include record-full.h.
11044 * moxie-tdep.c: Include record-full.h.
11045 * record-full.c: Include record-full.h.
11046 Change module comment.
11047 (set_record_full_cmdlist): New.
11048 (show_record_full_cmdlist): New.
11049 (record_full_cmdlist): New.
11050 (record_goto_insn): New declaration.
11051 (record_save): New declaration.
11052 (record_check_insn_num): Change query string.
11053 (record_info): New.
11054 (record_delete): New.
11055 (record_is_replaying): New.
11056 (record_goto_entry): New.
11057 (record_goto_begin): New.
11058 (record_goto_end): New.
11059 (record_goto): New.
11060 (init_record_ops): Update.
11061 (init_record_core_ops): Update.
11062 (cmd_record_save): Rename to record_save. Remove target and arg checks.
11063 (cmd_record_start): New.
11064 (set_record_insn_max_num): Moved from record.c
11065 (set_record_full_command): New.
11066 (show_record_full_command): New.
11067 (_initialize_record_full): New.
11069 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11071 * target.h (add_deprecated_target_alias): New.
11072 * target.c (add_deprecated_target_alias): New.
11074 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11076 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11078 (linux_supports_btrace): Add kernel and
11080 (kernel_supports_btrace): New function.
11081 (cpu_supports_btrace): New function.
11082 (intel_supports_btrace): New function.
11084 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11086 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11087 * remote.c: Include btrace.h.
11088 (struct btrace_target_info): New struct.
11089 (remote_supports_btrace): New function.
11090 (send_Qbtrace): New function.
11091 (remote_enable_btrace): New function.
11092 (remote_disable_btrace): New function.
11093 (remote_teardown_btrace): New function.
11094 (remote_read_btrace): New function.
11095 (init_remote_ops): Add btrace ops.
11096 (enum <unnamed>): Add btrace packets.
11097 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11098 (_initialize_remote): Add packet configuration for branch tracing.
11100 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11102 * features/btrace.dtd: New file.
11103 * Makefile.in (XMLFILES): Add btrace.dtd.
11104 * btrace.h (parse_xml_btrace): New declaration.
11105 * btrace.c: Include xml-support.h.
11106 (parse_xml_btrace): New function.
11107 (parse_xml_btrace_block): New function.
11108 (block_attributes): New struct.
11109 (btrace_attributes): New struct.
11110 (btrace_children): New struct.
11111 (btrace_elements): New struct.
11113 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11115 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11116 (amd64_linux_enable_btrace): New.
11117 (amd64_linux_disable_btrace): New.
11118 (amd64_linux_teardown_btrace): New.
11119 (_initialize_amd64_linux_nat): Initialize btrace ops.
11120 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11121 (i386_linux_enable_btrace): New.
11122 (i386_linux_disable_btrace): New.
11123 (i386_linux_teardown_btrace): New.
11124 (_initialize_i386_linux_nat): Initialize btrace ops.
11125 * config/i386/linux.mh: Add linux-btrace.o.
11126 * config/i386/linux64.mh: Add linux-btrace.o.
11128 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11130 * common/linux_btrace.h: New file.
11131 * common/linux_btrace.c: New file.
11132 * Makefile.in (SFILES): Add btrace.c.
11133 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11134 (COMMON_OBS): Add btrace.o.
11135 (linux-btrace.o): New rule.
11137 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11139 * target.h: Include btrace.h.
11140 (struct target_ops) <to_supports_btrace, to_enable_btrace,
11141 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11142 * target.c (target_supports_btrace): New function.
11143 (target_enable_btrace): New function.
11144 (target_disable_btrace): New function.
11145 (target_teardown_btrace): New function.
11146 (target_read_btrace): New function.
11147 * btrace.h: New file.
11148 * btrace.c: New file.
11149 * Makefile.in: Add btrace.c.
11150 * gdbthread.h: Include btrace.h.
11151 (struct thread_info): Add btrace field.
11152 * thread.c: Include btrace.h.
11153 (clear_thread_inferior_resources): Call target_teardown_btrace.
11154 * common/btrace-common.h: New file.
11156 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11158 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11159 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11160 kill_status to outer block.
11162 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11164 Fix entry-values if the callee called a noreturn function.
11165 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11166 get_frame_address_in_block. Add new comment.
11168 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11170 Fix entry-values in C++ across CUs.
11171 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11172 lookup_minimal_symbol. Add a comment.
11174 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11175 DW_AT_linkage_name.
11177 2013-03-08 Yao Qi <yao@codesourcery.com>
11179 * tracepoint.c (_initialize_tracepoint): Indent the code.
11181 2013-03-08 Pedro Alves <palves@redhat.com>
11183 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11184 (parse_find_args, find_command): Change type of pattern buffer
11185 locals to 'gdb_byte *'.
11187 2013-03-08 Stan Shebs <stan@codesourcery.com>
11188 Hafiz Abid Qadeer <abidh@codesourcery.com>
11190 * NEWS: Mention set and show trace-buffer-size commands.
11191 Mention new packet.
11192 * target.h (struct target_ops): New method
11193 to_set_trace_buffer_size.
11194 (target_set_trace_buffer_size): New macro.
11195 * target.c (update_current_target): Set up new method.
11196 * tracepoint.c (trace_buffer_size): New global.
11197 (start_tracing): Send it to the target.
11198 (set_trace_buffer_size): New function.
11199 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11200 * remote.c (remote_set_trace_buffer_size): New function.
11201 (_initialize_remote): Use it.
11202 (QTBuffer:size) New remote command.
11203 (PACKET_QTBuffer_size): New enum.
11204 (remote_protocol_features): Add an entry for
11205 PACKET_QTBuffer_size.
11207 2013-03-08 Tom Tromey <tromey@redhat.com>
11209 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11212 2013-03-07 Pedro Alves <palves@redhat.com>
11214 * target.c (target_read_stralloc, target_fileio_read_alloc):
11215 *Cast pointer to 'gdb_byte *' in target call.
11217 2013-03-07 Pedro Alves <palves@redhat.com>
11219 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11222 2013-03-07 Keith Seitz <keiths@redhat.com>
11224 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11225 (trace_pass_command): Likewise.
11226 * cli/cli-cmds.c: Include cli/cli-utils.h.
11227 (source_command): Use skip-spaces.
11228 (disassemble_command): Likewise.
11229 * findcmd.c: Include cli/cli-utils.h.
11230 (parse_find_args): Use skip_spaces.
11231 * go32-nat.c: Include cli/cli-utils.h.
11232 (go32_sldt): Use skip_spaces.
11233 (go32_sgdt): Likewise.
11234 (go32_sidt): Likewise.
11235 (go32_pde): Likewise.
11236 (go32_pte): Likewise.
11237 (go32_pte_for_address): Likewise.
11238 * infcmd.c: Include cli/cli-utils.h.
11239 (registers_info): Use skip_spaces.
11240 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11241 (linux_info_proc): Likewise.
11242 * linux-thread-db.c: Include cli/cli-utils.h.
11243 (info_auto_load_libthread_db): Use skip_spaces_const.
11244 * m32r-rom.c: Include cli/cli-utils.h.
11245 (m32r_upload_command): Use skip_spaces.
11246 * maint.c: Include cli/cli-utils.h.
11247 (maintenance_translate_address): Use skip_spaces.
11248 * mi/mi-parse.c: Include cli/cli-utils.h.
11249 (mi_parse_argv): Use skip_spaces.
11250 (mi_parse): Likewise.
11251 * minsyms.c: Include cli/cli-utils.h.
11252 (msymbol_hash_iw): Use skip_spaces_const.
11253 * objc-lang.c: Include cli/cli-utils.h.
11254 (parse_selector): Use skip_spaces.
11255 (parse_method): Likewise.
11256 * python/python.c: Include cli/cli-utils.h.
11257 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11258 (python_command)[HAVE_PYTHON]: Likewise.
11259 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11260 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11261 (m32r_load): Use skip_spaces.
11262 * serial.c: Include cli/cli-utils.h.
11263 (serial_open): Use skip_spaces_const.
11264 * stack.c: Include cli/cli-utils.h.
11265 (parse_frame_specification_1): Use skip_spaces_const.
11266 * symfile.c: Include cli/cli-utils.h.
11267 (set_ext_lang_command): Use skip_spaces.
11268 * symtab.c: Include cli/cli-utils.h.
11269 (rbreak_command): Use skip_spaces.
11270 * thread.c (thread_name_command): Use skip_spaces.
11271 * tracepoint.c (validate_actionline): Use skip_spaces.
11272 (encode_actions_1): Likewise.
11273 (trace_find_range_command): Likewise.
11274 (trace_find_outside_command): Likewise.
11275 (trace_dump_actions): Likewise.
11277 2013-03-07 Pedro Alves <palves@redhat.com>
11279 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11280 * expprint.c (print_subexp_standard): Likewise.
11281 * utils.c (host_char_to_target): Likewise.
11282 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11283 * varobj.c (value_get_print_value): Change type of local to char*.
11284 Cast it gdb_byte * in call to language printer.
11286 2013-03-07 Pedro Alves <palves@redhat.com>
11288 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11290 (make_wchar_iterator): Remove cast to char*.
11291 (wchar_iterate): Change type of local.
11293 2013-03-07 Pedro Alves <palves@redhat.com>
11295 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11296 for 'regcache->register_status'.
11298 2013-03-07 Pedro Alves <palves@redhat.com>
11300 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11303 2013-03-07 Pedro Alves <palves@redhat.com>
11305 * stap-probe.c (handle_stap_probe): Add cast to char*.
11307 2013-03-07 Pedro Alves <palves@redhat.com>
11309 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11310 RECORD_MSGRCV>: Pass a signed variable to
11311 regcache_raw_read_signed, instead of an unsigned one.
11313 2013-03-07 Pedro Alves <palves@redhat.com>
11315 * remote-notif.c (notif_debug): Change type to int.
11316 * remote-notif.h (notif_debug): Likewise.
11318 2013-03-07 Pedro Alves <palves@redhat.com>
11320 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11322 2013-03-07 Pedro Alves <palves@redhat.com>
11324 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11325 * remote.h (hex2bin, bin2hex): ... here.
11326 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11328 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11330 * utils.c (initialize_utils): Improve doc strings of "set/show
11331 width", "set/show height", and "set/show pagination".
11333 2013-03-06 Keith Seitz <keiths@redhat.com>
11335 * ax-gdb.c (gen_printf): Make FORMAT const.
11336 * ax-gdb.h (gen_printf): Likewise.
11337 * ax-general.c (ax_string): Make STR const.
11338 * ax.h (ax_string): Likewise.
11340 2013-03-06 Doug Evans <dje@google.com>
11342 * elfread.c (elf_symfile_read): Move debugging printf to more
11345 2013-03-06 Pedro Alves <palves@redhat.com>
11347 * python/py-utils.c (target_string_to_unicode): Delete function.
11348 * python/python-internal.h (target_string_to_unicode): Delete
11351 2013-03-06 Pierre Muller <muller@sourceware.org>
11353 * linespec.c (get_current_search_block): ARI fix, use (void)
11354 for empty parameter list.
11356 2013-03-05 Doug Evans <dje@google.com>
11358 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11359 of old ada_lookup_symbol_list. In !full_search case, don't
11360 search superblocks.
11361 (ada_lookup_symbol_list): Delete arg full_search, all callers
11362 updated. Call ada_lookup_symbol_list_worker.
11363 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11364 * ada-lang.h (ada_lookup_symbol_list): Update.
11365 * language.h (language_defn): Update comment for
11366 la_iterate_over_symbols.
11367 * linespec.c (iterate_over_file_blocks): New function.
11368 (iterate_over_all_matching_symtabs): Call it.
11369 (lookup_prefix_sym): Ditto.
11370 (get_current_search_block): New function.
11371 (get_search_block): Delete.
11372 (find_label_symbols): Call get_current_search_block.
11373 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11374 * symtab.c (iterate_over_symbols): Don't search superblocks.
11376 2013-03-05 Yao Qi <yao@codesourcery.com>
11378 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11379 parameter VAR's type from "unsigned int" to "int".
11380 * command.h (var_zuinteger_unlimited): Update its comments.
11381 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11383 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11385 * NEWS: Mention new target x86_64-*-cygwin*.
11387 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11389 * configure.host: Add x86_64-*-cygwin* as host.
11390 * configure.tgt: Add x86_64-*-cygwin* as target.
11391 * config/i386/cygwin64.mh: New file.
11393 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11395 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11397 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11399 * linespec.c (struct linespec_canonical_name): New.
11400 (struct linespec_state): Change canonical_names type to it.
11401 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11402 xrealloc element size. Initialize the different CANONICAL fields.
11403 (canonical_to_fullform): New.
11404 (filter_results): Use it. Add variables canonical, fullform and
11406 (struct decode_line_2_item, decode_line_2_compare_items): New.
11407 (decode_line_2): Remove variables iter and item_names, add variables
11408 items and items_count. Modify the code for these new variables.
11410 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11412 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11413 calling do_cleanup.
11415 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11417 * tracepoint.c (build_traceframe_info): Add code for byte order.
11419 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11421 * v850-tdep.c: (v850e2_register_name): Revise system register
11422 names to match current V850E2M architecture specifications.
11423 Update register number enum comments too.
11425 2013-03-01 Jiong Wang <jiwang@tilera.com>
11426 Pedro Alves <palves@redhat.com>
11428 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11430 (tilegx_skip_prologue): Limit prologue analysis to section end.
11432 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11434 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11437 2013-03-01 Pedro Alves <palves@redhat.com>
11439 Use gdb_byte for bytes from the program being debugged.
11441 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11442 Change type of local 'buf' to gdb_byte.
11443 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11444 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11445 * cris-tdep.c (cris_sigcontext_addr)
11446 (cris_sigtramp_frame_unwind_cache): Likewise.
11447 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11448 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11450 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11451 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11452 (hppa32_hpux_search_dummy_call_sequence)
11453 (hppa_hpux_supply_save_state): Likewise.
11454 * hppa-linux-tdep.c (insns_match_pattern)
11455 (hppa_linux_find_global_pointer): Likewise.
11456 * hppa-tdep.c (hppa_in_function_epilogue_p)
11457 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11458 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11459 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11460 (i386fbsd_collect_uthread): Likewise.
11461 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11462 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11463 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11464 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11465 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11466 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11467 (ia64_libunwind_frame_prev_register)
11468 (ia64_libunwind_sigtramp_frame_this_id)
11469 (ia64_find_global_pointer_from_dynamic_section)
11470 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11471 (ia64_unwind_pc): Likewise.
11472 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11473 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11474 (m68hc11_extract_return_value): Likewise.
11475 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11476 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11477 (mep_get_insn, mep_push_dummy_call): Likewise.
11478 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11479 (mips_linux_in_dynsym_stub): Likewise.
11480 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11481 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11482 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11484 * remote-mips.c (mips_set_register): Likewise.
11485 * remote-sim.c (gdbsim_fetch_register): Likewise.
11486 * score-tdep.c (score7_fetch_inst): Change type of parameter
11487 'memblock' and local 'buf' to gdb_byte.
11488 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11489 Change type of local 'buf' to gdb_byte. Adjust.
11490 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11492 (score7_analyze_prologue): Change type of 'memblock' and
11493 'memblock_ptr' locals to gdb_byte*.
11494 * sh64-tdep.c (sh64_extract_return_value)
11495 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11496 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11497 * solib-pa64.c (pa64_solib_create_inferior_hook)
11498 (pa64_open_symbol_file_object): Remove local 'buf'.
11499 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11500 (som_open_symbol_file_object): Likewise.
11501 * solib-spu.c (spu_current_sos): Likewise.
11502 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11503 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11504 (spu_store_registers): Likewise.
11505 * target.c (debug_print_register): Likewise.
11506 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11507 * xstormy16-tdep.c (xstormy16_store_return_value)
11508 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11509 (xstormy16_find_jmp_table_entry): Likewise.
11511 2013-03-01 Jiong Wang <jiwang@tilera.com>
11513 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11514 (tilegx_gdbarch_init): Install it.
11516 2013-02-28 Tom Tromey <tromey@redhat.com>
11518 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11521 2013-02-28 Doug Evans <dje@google.com>
11523 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11524 * python/python.c (gdbpy_find_pc_line): Ditto.
11526 2013-02-28 Tom Tromey <tromey@redhat.com>
11528 * contrib/excheck.py: New file.
11529 * contrib/exsummary.py: New file.
11530 * contrib/gcc-with-excheck: New file.
11532 2013-02-28 Tom Tromey <tromey@redhat.com>
11534 * python/python.c (gdbpy_print_stack): Call begin_line and
11535 fprintf_filtered inside TRY_CATCH.
11537 2013-02-28 Tom Tromey <tromey@redhat.com>
11539 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11542 2013-02-28 Tom Tromey <tromey@redhat.com>
11544 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11545 frame_object_to_frame_info inside TRY_CATCH.
11547 2013-02-28 Tom Tromey <tromey@redhat.com>
11549 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11552 2013-02-28 Tom Tromey <tromey@redhat.com>
11554 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11556 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11558 * windows-nat.c: Throughout, fix format strings and casts of
11559 printf-like functions to avoid type related warnings on all
11561 (handle_output_debug_string): Fetch context information address
11562 from debug string using string_to_core_addr.
11564 2013-02-27 Jiong Wang <jiwang@tilera.com>
11566 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11567 * regformats/reg-tilegx32.dat: New.
11569 2013-02-27 Jiong Wang <jiwang@tilera.com>
11571 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11573 2013-02-27 Jiong Wang <jiwang@tilera.com>
11575 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11577 2013-02-27 Yao Qi <yao@codesourcery.com>
11578 Pedro Alves <palves@redhat.com>
11580 * tracepoint.c (tfile_trace_find): For tfind
11581 pc/tp/range/outside, look for the next trace frame instead of
11582 always starting from frame 0.
11584 2013-02-26 Anthony Green <green@moxielogic.com>
11586 * configure.tgt: Add support for moxie-*-rtems* target.
11588 2013-02-25 Pedro Alves <palves@redhat.com>
11590 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11593 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11595 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11596 if $fp is used as the virtual frame pointer.
11598 2013-02-23 Alan Modra <amodra@gmail.com>
11600 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11602 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11603 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11604 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11605 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11607 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11610 * elfread.c (build_id_bfd_get): Make the return type const.
11611 (build_id_verify): Make the check parameter const.
11612 (build_id_to_debug_filename): Make the build_id parameter and variable
11614 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11616 2013-02-21 Alan Modra <amodra@gmail.com>
11618 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11620 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11622 Add a new method 'disassemble' to gdb.Architecture class.
11623 * python/py-arch.c (archpy_disassmble): Implementation of the
11624 new method gdb.Architecture.disassemble.
11625 (arch_object_methods): Add entry for the new method.
11627 2013-02-20 Jiong Wang <jiwang@tilera.com>
11629 * MAINTAINERS (Write After Approval): Add myself to the list.
11631 2013-02-19 Pedro Alves <palves@redhat.com>
11633 Garbage collect 'struct monitor_ops'::load_routine.
11635 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11636 * monitor.c (monitor_load): No longer call
11637 current_monitor->load_routine.
11638 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11639 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11640 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11642 2013-02-19 Pedro Alves <palves@redhat.com>
11646 Harmonize with generic_load.
11648 * monitor.c: Include "readline/readline.h".
11649 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11650 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11651 long/strtol for the 'load_offset' local. Error out if no argument
11652 is given or if too many arguments are given. Tilde expand the
11653 passed in file name.
11655 2013-02-19 Kai Tietz <ktietz@redhat.com>
11658 * symfile.c (load_section_data): Change type of load_offset
11660 (generic_load): User strtoulst instead of strtoul for conversion
11663 2013-02-19 Jiong Wang <jiwang@tilera.com>
11665 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11666 for return address, "lr" register, saved on stack.
11667 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11668 after we invoke tilegx_analyze_prologue.
11670 2013-02-19 Jiong Wang <jiwang@tilera.com>
11672 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11674 2013-02-19 Jiong Wang <jiwang@tilera.com>
11676 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11678 2013-02-19 Jiong Wang <jiwang@tilera.com>
11680 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11681 (tilegx_write_pc): New function.
11682 (tilegx_cannot_reference_register): Return zero if REGNO
11683 is TILEGX_FAULTNUM_REGNUM.
11684 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11685 (tilegx_register_name): Add handling of "faultnum" register.
11686 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11687 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11688 handling of TILEGX_FAULTNUM_REGNUM.
11689 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11691 2013-02-19 Jiong Wang <jiwang@tilera.com>
11693 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11694 should be aligned to 64bit.
11696 2013-02-19 Kai Tietz <ktietz@redhat.com>
11698 * windows-nat.c (windows_xfer_memory): Fix debug-output
11701 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11703 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11704 Don't check DSP register number if HAVE_DSP is not set.
11706 2013-02-19 Alan Modra <amodra@gmail.com>
11708 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11709 throughout file instead.
11710 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11711 Don't xmalloc return value.
11712 (build_id_verify): Similarly. Don't xfree.
11713 (build_id_to_debug_filename): Update.
11714 (find_separate_debug_file_by_buildid): Update, don't xfree.
11716 2013-02-18 Tom Tromey <tromey@redhat.com>
11719 * dwarf2read.c (read_subrange_type): Use result of
11722 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11724 * frame.c: Remove one extra white space after #include
11727 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11729 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11731 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11733 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11734 and dir commands into an if block.
11736 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11738 * python/py-breakpoint (struct pybp_code): Use int instead of
11741 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11742 Hafiz Abid Qadeer <abidh@codesourcery.com>
11744 * NEWS: Mention new field "trace-file".
11745 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11746 (tfile_open): Record the trace file's filename in the trace
11748 (tfile_files_info): Mention the name of the trace file.
11749 Check the "filename" field explicitely.
11750 (trace_status_command): Explicitely check "filename" field.
11751 (trace_find_command): Ditto.
11752 (trace_find_pc_command): Ditto.
11753 (trace_find_tracepoint_command): Ditto.
11754 (trace_find_line_command): Ditto.
11755 (trace_find_range_command): Ditto.
11756 (trace_find_outside_command): Ditto.
11757 * tracepoint.h (struct trace_status) <from_file>: Rename it
11758 to "filename" and make it hold the trace file's filename
11759 instead of a boolean.
11760 * remote.c (remote_get_trace_status): Initialize "filename"
11761 field with NULL instead of 0.
11763 2013-02-15 Yao Qi <yao@codesourcery.com>
11765 * remote.c: Fix a typo.
11767 2013-02-14 Pierre Muller <muller@sourceware.org>
11769 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11771 2013-02-14 Pedro Alves <palves@redhat.com>
11773 * utils.c (savestring): Don't #undef it. Move function to
11774 common/common-utils.c.
11775 * common/common-utils.c: Include gdb_string.h.
11776 (savestring): Move here from utils.c.
11777 * common/common-utils.h (savestring): Declare.
11779 2013-02-14 Pedro Alves <palves@redhat.com>
11781 * utils.c (savestring): Rename parameter 'size' to 'len'.
11783 2013-02-14 Pedro Alves <palves@redhat.com>
11784 Yufeng Zhang <yufeng.zhang@arm.com>
11786 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11787 (aarch64_inferior_data, struct aarch64_inferior_data):
11789 (struct aarch64_process_info): New.
11790 (aarch64_process_list): New global.
11791 (aarch64_find_process_pid, aarch64_add_process)
11792 (aarch64_process_info_get): New functions.
11793 (aarch64_inferior_data_get): Delete.
11794 (aarch64_process_info_get): New function.
11795 (aarch64_forget_process): New function.
11796 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11797 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11798 aarch64_get_debug_reg_state.
11799 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11800 instead of linux_nat_iterate_watchpoint_lwps.
11801 (aarch64_linux_new_fork): New function.
11802 (aarch64_linux_child_post_startup_inferior): Use
11803 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11804 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11805 (aarch64_linux_remove_hw_breakpoint)
11806 (aarch64_handle_aligned_watchpoint)
11807 (aarch64_handle_unaligned_watchpoint)
11808 (aarch64_linux_insert_watchpoint)
11809 (aarch64_linux_remove_watchpoint)
11810 (aarch64_linux_stopped_data_address): Adjust to pass the current
11811 process id to aarch64_debug_reg_state.
11812 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11813 linux_nat_new_fork hook, and aarch64_forget_process as
11814 linux_nat_forget_process hook; remove the call to
11815 register_inferior_data_with_cleanup.
11817 2013-02-14 Pedro Alves <palves@redhat.com>
11819 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11820 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11823 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11824 Hafiz Abid Qadeer <abidh@codesourcery.com>
11826 * tracepoint.h (validate_trace_state_variable_name): Declare.
11827 * tracepoint.c (validate_trace_state_variable_name): New.
11828 (trace_variable_command): Parse the trace state variable's name
11829 without using parse_expression. Do several validations.
11830 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11831 trace state variable's name with parse_expression. Validate it.
11833 2013-02-14 Yao Qi <yao@codesourcery.com>
11835 * infcmd.c (breakpoint_proceeded): Remove it.
11837 2013-02-14 Yao Qi <yao@codesourcery.com>
11839 * tracepoint.c (end_actions_pseudocommand): Make it static.
11840 (while_stepping_pseudocommand): Likewise.
11841 * tracepoint.h (end_actions_pseudocommand): Remove the
11843 (while_stepping_pseudocommand): Likewise.
11845 2013-02-14 Yao Qi <yao@codesourcery.com>
11847 * cli/cli-decode.c (help_cmd): Remove the declaration of
11849 (help_all): Likewise.
11851 2013-02-13 Pedro Alves <palves@redhat.com>
11853 * amd64-linux-nat.c (update_debug_registers_callback):
11855 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11857 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11858 i386_debug_reg_state.
11859 (amd64_linux_new_fork): New function.
11860 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11861 linux_nat_new_fork hook, and i386_forget_process as
11862 linux_nat_forget_process hook.
11863 * i386-linux-nat.c (update_debug_registers_callback):
11865 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11867 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11868 i386_debug_reg_state.
11869 (i386_linux_new_fork): New function.
11870 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11871 linux_nat_new_fork hook, and i386_forget_process as
11872 linux_nat_forget_process hook.
11873 * i386-nat.c (i386_init_dregs): Delete.
11874 (i386_inferior_data, struct i386_inferior_data):
11876 (struct i386_process_info): New.
11877 (i386_process_list): New global.
11878 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11880 (i386_inferior_data_get): Delete.
11881 (i386_process_info_get): New function.
11882 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11883 (i386_forget_process): New function.
11884 (i386_cleanup_dregs): Rewrite.
11885 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11886 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11887 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11888 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11889 to i386_debug_reg_state.
11890 (i386_use_watchpoints): Don't register inferior data.
11891 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11893 (i386_forget_process): Declare.
11894 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11895 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11896 New static globals.
11897 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11898 (add_initial_lwp): New, factored out from ...
11899 (add_lwp): ... this. Don't check the number of lwps before
11900 calling linux_nat_new_thread.
11901 (linux_nat_iterate_watchpoint_lwps): Delete.
11902 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11903 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11905 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11907 (linux_nat_kill, linux_nat_mourn_inferior): Call
11908 linux_nat_forget_process.
11909 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11910 (linux_nat_forget_process): New functions.
11911 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11913 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11914 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11916 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11917 (linux_nat_forget_process): New declarations.
11919 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11920 (amd64fbsd_mourn_inferior): New function.
11921 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11922 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11924 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11926 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11929 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11931 * aarch64-linux-nat.c (debug_reg_change_callback)
11932 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11935 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11937 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11940 2013-02-13 Pedro Alves <palves@redhat.com>
11941 Hafiz Abid Qadeer <abidh@codesourcery.com>
11943 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11945 2013-02-12 Tom Tromey <tromey@redhat.com>
11948 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11950 (classify_inner_name): Remove 'first_name' argument, add
11951 'context'. Remove unused variable.
11952 (yylex): Explicitly maintain the context type. Exit loop earlier
11953 if NAME result is seen.
11955 2013-02-12 Pedro Alves <palves@redhat.com>
11957 * amd64-darwin-tdep.c: Add (C) after Copyright.
11958 * cli/cli-cmds.h: Ditto.
11959 * cli/cli-decode.c: Ditto.
11960 * cli/cli-decode.h: Ditto.
11961 * cli/cli-dump.c: Ditto.
11962 * cli/cli-dump.h: Ditto.
11963 * cli/cli-interp.c: Ditto.
11964 * cli/cli-logging.c: Ditto.
11965 * cli/cli-script.c: Ditto.
11966 * cli/cli-script.h: Ditto.
11967 * cli/cli-setshow.c: Ditto.
11968 * cli/cli-setshow.h: Ditto.
11969 * cli/cli-utils.c: Ditto.
11970 * cli/cli-utils.h: Ditto.
11971 * config/alpha/nm-osf3.h: Ditto.
11972 * config/djgpp/djconfig.sh: Ditto.
11973 * config/i386/nm-fbsd.h: Ditto.
11974 * config/i386/nm-i386gnu.h: Ditto.
11975 * config/nm-linux.h: Ditto.
11976 * config/nm-nto.h: Ditto.
11977 * config/rs6000/nm-rs6000.h: Ditto.
11978 * config/sparc/nm-sol2.h: Ditto.
11979 * darwin-nat-info.c: Ditto.
11982 * gdb-demangle.h: Ditto.
11983 * i386-darwin-nat.c: Ditto.
11984 * i386-darwin-tdep.c: Ditto.
11985 * linux-fork.h: Ditto.
11986 * m32c-tdep.c: Ditto.
11987 * microblaze-linux-tdep.c: Ditto.
11988 * microblaze-rom.c: Ditto.
11989 * microblaze-tdep.c: Ditto.
11990 * microblaze-tdep.h: Ditto.
11991 * mips-linux-tdep.h: Ditto.
11992 * ppc-ravenscar-thread.c: Ditto.
11993 * ppc-ravenscar-thread.h: Ditto.
11994 * prologue-value.c: Ditto.
11995 * prologue-value.h: Ditto.
11996 * ravenscar-thread.c: Ditto.
11997 * ravenscar-thread.h: Ditto.
11998 * sparc-ravenscar-thread.c: Ditto.
11999 * sparc-ravenscar-thread.h: Ditto.
12000 * tilegx-linux-tdep.c: Ditto.
12001 * unwind_stop_reasons.def: Ditto.
12002 * windows-nat.h: Ditto.
12003 * xtensa-linux-tdep.c: Ditto.
12004 * xtensa-xtregs.c: Ditto.
12005 * regformats/regdat.sh: Ditto.
12006 * regformats/regdef.h: Ditto.
12008 2013-02-12 Pedro Alves <palves@redhat.com>
12010 * break-catch-sig.c: Update copyright years.
12012 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
12014 Add support for a destructor for ui_out data and use it to
12015 provide a ui_out destructor.
12016 * ui-out.h: Declare the new ui_out destructor.
12017 (ui_out_impl): Add a field for data destructor in ui_out_impl.
12018 * ui-out.c (default_data_destroy): Add a default data destructor
12019 which does nothing.
12020 (default_ui_out_impl): Set the new data_destroy field to
12021 default_data_destroy
12022 (uo_data_destroy): Local function which invokes the data
12023 destructor if present.
12024 (clear_table): Local function which clears the table data of a
12026 (ui_out_destroy): Public function which frees a ui_out object.
12027 (ui_out_table_end): Use the new clear_table function.
12028 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
12030 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
12033 2013-02-11 Doug Evans <dje@google.com>
12035 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
12036 (printf_decfloat): New function. Broken out from ui_printf.
12037 Remove unnecessary code to shift the entire format string down.
12038 (printf_pointer): New function.
12039 (ui_printf): Code to print C strings, wide C strings, decfloats,
12040 and pointers moved to separate functions.
12042 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
12044 * valops.c (value_assign): Handling bitfield offset in
12045 `lval_internalvar_component' case.
12047 2013-02-08 Doug Evans <dje@google.com>
12049 * common/format.c (parse_format_string): Fix whitespace.
12051 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12053 * stack.c (return_command): Work around uninitialized variable
12056 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
12058 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12059 number of the registers from 36 to 34.
12061 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12063 * NEWS: Mention new AArch64 native and target support.
12065 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
12067 * MAINTAINERS (Write After Approval): Add myself.
12069 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
12070 Marcus Shawcroft <marcus.shawcroft@arm.com>
12071 Nigel Stephens <nigel.stephens@arm.com>
12072 Yufeng Zhang <yufeng.zhang@arm.com>
12074 * aarch64-linux-nat.c: New file.
12075 * config/aarch64/linux.mh: New file.
12076 * configure.host: Add AArch64.
12077 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12079 2013-02-07 Doug Evans <dje@google.com>
12081 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12082 disassemble command.
12084 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12086 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12087 set_gdbarch_fetch_tls_load_module_address.
12089 2013-02-06 David S. Miller <davem@davemloft.net>
12091 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12092 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12093 * value.c (struct_return_convention): New function.
12094 (using_struct_return): Implement in terms of struct_return_convention.
12095 * value.h (struct_return_convention): Declare.
12096 * stack.c (return_command): Allow successful overriding of the return
12097 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12099 2013-02-06 Tom Tromey <tromey@redhat.com>
12101 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12102 outside of TRY_CATCH.
12104 2013-02-06 Yao Qi <yao@codesourcery.com>
12106 * mi/mi-interp.c: Include "tracepoint.h".
12107 (mi_tsv_modified): Declare.
12108 (mi_tsv_created, mi_tsv_deleted): Update declaration.
12109 (mi_interpreter_init): Call observer_attach_tsv_modified.
12110 (mi_tsv_modified): New.
12111 (mi_tsv_created, mi_tsv_deleted): Update.
12112 * tracepoint.c (trace_variable_command): Call
12113 observer_notify_tsv_modified if the initial value of tsv is
12115 (delete_trace_state_variable): Call
12116 observer_notify_tsv_deleted earlier.
12117 (trace_variable_command): Caller update.
12118 (create_tsv_from_upload): Likewise.
12119 * observer.sh: Declare "struct trace_state_variable".
12121 * NEWS: Mention the new MI notification "=tsv-modified".
12123 2013-02-05 Doug Evans <dje@google.com>
12125 * completer.c (location_completer): Fix typo in comment.
12127 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12129 * breakpoint.c (add_location_to_breakpoint): Insert the location with
12132 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12134 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12135 Refactor if statement to avoid trailing || operator.
12137 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
12139 * NEWS: Add PowerPC FreeBSD as a new native configuration.
12141 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12143 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12144 * configure.host: Add powerpc*-*-freebsd* target.
12145 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12146 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12147 * config/powerpc/fbsd.mh: New file.
12149 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12150 Denys Vlasenko <dvlasenk@redhat.com>
12151 Pedro Alves <palves@redhat.com>
12153 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12154 (struct elf_internal_linux_prpsinfo): Forward declare.
12155 * gdbarch.h, gdbarch.c: Regenerate.
12156 * linux-tdep.c: Include `cli/cli-utils.h'.
12157 (linux_fill_prpsinfo): New function.
12158 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12159 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12160 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12161 depending on gdbarch pointer bitness.
12162 * ppc-linux-tdep.c: Include elf-bfd.h.
12163 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12166 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12167 Marcus Shawcroft <marcus.shawcroft@arm.com>
12168 Nigel Stephens <nigel.stephens@arm.com>
12169 Yufeng Zhang <yufeng.zhang@arm.com>
12171 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12173 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12174 Marcus Shawcroft <marcus.shawcroft@arm.com>
12175 Nigel Stephens <nigel.stephens@arm.com>
12176 Yufeng Zhang <yufeng.zhang@arm.com>
12178 * aarch64-newlib-tdep.c: New file.
12179 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12181 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12182 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12183 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12184 * osabi.c (gdb_osabi_names): Add "Newlib".
12186 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12187 Marcus Shawcroft <marcus.shawcroft@arm.com>
12188 Nigel Stephens <nigel.stephens@arm.com>
12189 Yufeng Zhang <yufeng.zhang@arm.com>
12191 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12192 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12193 * aarch64-linux-tdep.c: New file.
12194 * aarch64-linux-tdep.h: New file.
12195 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12196 * configure.tgt: Add aarch64-none-linux-gnu.
12198 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12199 Marcus Shawcroft <marcus.shawcroft@arm.com>
12200 Nigel Stephens <nigel.stephens@arm.com>
12201 Yufeng Zhang <yufeng.zhang@arm.com>
12203 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12204 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12205 (ALLDEPFILES): Add aarch64-tdep.c.
12206 * aarch64-tdep.c: New file.
12207 * aarch64-tdep.h: New file.
12208 * configure.tgt: Add AArch64.
12209 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12210 (aarch64-expedite): New definition.
12211 * features/aarch64-core.xml: New file.
12212 * features/aarch64-fpu.xml: New file.
12213 * features/aarch64-without-fpu.c: New file (generated).
12214 * features/aarch64-without-fpu.xml: New file.
12215 * features/aarch64.c: New file (generated).
12216 * features/aarch64.xml: New file.
12217 * regformats/aarch64-without-fpu.dat: New file (generated).
12218 * regformats/aarch64.dat: New file (generated).
12220 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12222 * contrib/expect-read1.c: New file.
12223 * contrib/expect-read1.sh: New file.
12225 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12227 * dwarf2read.c (file_file_name): New function with code from
12229 (file_full_name): Move most of the code to file_file_name.
12230 (macro_start_file): Rename variable full_name to file_name and use
12231 file_file_name for it. Add comp_dir parameter to new_macro_table.
12232 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12233 macro_source_file->filename access by macro_source_fullname call.
12234 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12236 * macrotab.c (struct macro_table): New field comp_dir.
12237 (macro_include): New variables link_fullname and source_fullname.
12238 Replace any macro_source_file->filename access by macro_source_fullname
12240 (macro_lookup_inclusion): Remove the partial filenames checking code.
12241 (check_for_redefinition): New variables source_fullname and
12242 found_key_fullname. Replace any macro_source_file->filename access by
12243 macro_source_fullname call.
12244 (macro_undef): New variables source_fullname and key_fullname. Replace
12245 any macro_source_file->filename access by macro_source_fullname call.
12246 (macro_lookup_definition): New variables retval and source_fullname.
12247 Replace any macro_source_file->filename access by macro_source_fullname
12249 (foreach_macro): New variable key_fullname. Replace any
12250 macro_source_file->filename access by macro_source_fullname call.
12251 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12252 macro_source_file->filename access by macro_source_fullname call.
12253 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12254 (macro_source_fullname): New function.
12255 * macrotab.h (struct macro_source_file): Extent the filename field
12257 (new_macro_table): New parameter comp_dir, add a comment for it.
12258 (macro_source_fullname): new declaration.
12260 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12262 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12263 this_real_name to outer block. Use it also for
12264 compare_filenames_for_search.
12265 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12266 with dw2_get_real_path for file_matcher, considering also
12267 BASENAMES_MAY_DIFFER.
12268 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12270 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12272 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12273 to the file_matcher parameter. Pass 0 to it.
12274 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12275 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12276 NULL psymtab_to_fullname result.
12277 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12278 an expected filename instead.
12279 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12280 file_matcher parameter. Call also psymtab_to_fullname, after newly
12281 considering BASENAMES_MAY_DIFFER.
12282 * source.c (rewrite_source_path): Remove static.
12283 * source.h (rewrite_source_path): New declaration.
12284 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12285 the expand_symtabs_matching field. Comment it.
12286 * symtab.c (file_matches): New function comment. Add parameter
12287 basenames, implement it.
12288 (search_symbols_file_matches): Add basenames parameter. Update the
12289 file_matches caller.
12290 (search_symbols): Match FILES also against symtab_to_fullname.
12291 Optimize it for BASENAMES_MAY_DIFFER.
12293 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12295 * source.c (print_source_lines_base): Print for TUI also "fullname".
12296 * tui/tui-data.c (init_content_element): Change tui_locator_element
12297 field to full_name.
12298 * tui/tui-data.h (struct tui_locator_element): Likewise.
12299 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12300 tui_update_locator_filename calls to tui_update_locator_fullname.
12301 Replace symtab->filename refererence by symtab_to_fullname call.
12302 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12303 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12304 field to full_name. Replace symtab->filename refererence by
12305 symtab_to_fullname call.
12306 (tui_show_symtab_source): Rename parameter to fullname. Change
12307 tui_locator_element field to full_name.
12308 * tui/tui-stack.c: Include source.h.
12309 (tui_set_locator_filename): Rename the declaration to ...
12310 (tui_set_locator_fullname): ... here. Rename its parameter to
12311 fullname, updates its comment.
12312 (tui_set_locator_info): Rename its parameter to fullname.
12313 (tui_set_locator_filename): Rename the definition to ...
12314 (tui_set_locator_fullname): ... here. Rename its parameter to
12315 fullname, updates its comment. Change tui_locator_element field to
12317 (tui_set_locator_info): Rename its parameter to fullname.
12318 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12319 (tui_update_locator_filename): Rename to ...
12320 (tui_update_locator_fullname): ... here. Rename callee to
12321 tui_set_locator_fullname.
12322 (tui_show_frame_info): Replace symtab->filename refererence by
12323 symtab_to_fullname call.
12324 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12325 (tui_update_locator_fullname): ... here.
12326 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12327 tui_update_locator_fullname. Replace symtab->filename refererence by
12328 symtab_to_fullname call.
12329 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12330 Rename the callee to tui_update_locator_fullname.
12331 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12333 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12335 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12336 by symtab_to_filename_for_display calls.
12337 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12338 (clear_command): New variable sal_fullname, initialize it. Replace
12339 compare_filenames_for_search by filename_cmp with sal_fullname.
12340 (say_where, update_static_tracepoint): Replace symtab->filename
12341 refererences by symtab_to_filename_for_display calls.
12342 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12344 * dwarf2read.c: Include source.h.
12345 (fixup_go_packaging): Replace symtab->filename refererences by
12346 symtab_to_filename_for_display calls.
12347 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12348 Replace symtab->filename refererences by symtab_to_filename_for_display
12350 (create_sals_line_offset, convert_linespec_to_sals): New variable
12351 fullname, initialize it, replace symtab->filename reference by the
12353 * linux-fork.c: Include source.h.
12354 (info_checkpoints_command): Replace symtab->filename refererences by
12355 symtab_to_filename_for_display calls.
12356 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12357 by symtab_to_filename_for_display calls.
12358 * mdebugread.c: Include source.h.
12359 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12360 symtab_to_filename_for_display calls.
12361 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12362 (mi_cmd_file_list_exec_source_files): Likewise.
12363 * printcmd.c: Include source.h.
12364 (build_address_symbolic): Replace symtab->filename refererences by
12365 symtab_to_filename_for_display calls.
12366 * psymtab.c (partial_map_symtabs_matching_filename)
12367 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12368 with psymtab_to_fullname.
12369 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12370 by symtab_to_filename_for_display calls.
12371 (stpy_get_filename): New variable filename, initialize it, use instead
12372 of symtab->filename refererences.
12373 (salpy_str): Make variable filename const char *. Replace
12374 symtab->filename refererences by symtab_to_filename_for_display calls.
12375 * skip.c: Include source.h and filenames.h.
12376 (skip_file_command): Remove const from the symtab variable. Replace
12377 symtab->filename refererences by symtab_to_fullname call.
12378 (function_name_is_marked_for_skip): New variables searched_for_fullname
12379 and fullname. Use them to search also with symtab's fullname.
12380 * source.c (find_source_lines): Replace symtab->filename refererences
12381 by symtab_to_filename_for_display calls.
12382 (print_source_lines_base): New variable filename, use it instead of
12383 symtab->filename. Replace symtab->filename refererences by
12384 symtab_to_filename_for_display calls.
12385 (line_info, forward_search_command): Replace symtab->filename
12386 refererences by symtab_to_filename_for_display calls.
12387 (reverse_search_command): Replace symtab->filename refererences by
12388 symtab_to_filename_for_display calls. New variable filename for it.
12389 * stack.c (frame_info): Likewise.
12390 * symmisc.c: Include source.h.
12391 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12392 (maintenance_info_symtabs): Replace symtab->filename refererences by
12393 symtab_to_filename_for_display calls.
12394 * symtab.c (iterate_over_some_symtabs): Call
12395 compare_filenames_for_search also with symtab_to_fullname.
12396 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12397 symtab->filename refererences by symtab_to_filename_for_display calls.
12398 (find_line_symtab): Replace symtab->filename refererences by
12399 symtab_to_filename_for_display calls.
12400 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12401 (print_symbol_info): Make the last parameter const char *. New
12402 variable s_filename. Use it in the function.
12403 (symtab_symbol_info): Make the last_filename variable const char *.
12404 Replace symtab->filename refererences by symtab_to_filename_for_display
12406 (rbreak_command): New variable fullname. Use it. Replace
12407 symtab->filename refererence by symtab_to_filename_for_display call.
12408 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12409 (print_one_static_tracepoint_marker): Replace symtab->filename
12410 refererences by symtab_to_filename_for_display calls.
12411 * tui/tui-source.c (tui_set_source_content): New variables filename and
12412 s_filename. Replace symtab->filename refererences by this variable.
12413 Replace other symtab->filename refererences by
12414 symtab_to_filename_for_display calls.
12416 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12417 Jan Kratochvil <jan.kratochvil@redhat.com>
12419 Add a new variable that controls a way in which filenames are
12421 * NEWS (set filename-display): New entry.
12422 * source.c (filename_display_basename, filename_display_relative)
12423 (filename_display_absolute, filename_display_kind_names)
12424 (filename_display_string, show_filename_display_string)
12425 (symtab_to_filename_for_display): New.
12426 (_initialize_source): Added initialization of 'filename-display'
12428 * source.h (symtab_to_filename_for_display): Added declaration.
12429 * stack.c (print_frame): Added new variable and calling of a new
12430 function and condition with this variable. Changed third argument of
12431 calling of a function.
12433 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12435 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12436 Rename field reference filename to fullname.
12437 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12438 fullname. New comment for it.
12439 * tui/tui-source.c (tui_set_source_content): Rename field reference
12440 filename to fullname. Initialize field by symtab_to_fullname now.
12441 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12442 reference filename to fullname. Use symtab_to_fullname during
12445 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12448 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12449 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12450 filename to fullname. Rename variable this_name to this_fullname.
12451 Lowercase FILENAME_CMP call.
12452 (dw2_find_symbol_file): New comment for the returned string.
12453 (dwarf2_gdb_index_functions): Rename the function to
12454 dw2_expand_symtabs_with_fullname.
12455 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12456 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12458 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12459 * symfile.h (struct quick_symbol_functions): Rename field
12460 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12461 parameter filename to fullname. Document returned string meaning for
12463 * symtab.c (find_line_symtab): Rename the called function to
12464 expand_symtabs_with_fullname.
12466 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12469 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12470 call of filename_cmp with compare_filenames_for_search.
12471 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12472 is_abs, unify the call of FILENAME_CMP with
12473 compare_filenames_for_search. New gdb_asserts for real_path and name.
12474 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12475 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12476 * symfile.h (struct quick_symbol_functions): Extend the comment for
12477 map_symtabs_matching_filename.
12478 * symtab.c (compare_filenames_for_search): Remove the function comment
12479 relative path requirement. Handle absolute filenames, with a comment.
12480 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12481 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12482 real_path and name. Unify the call of compare_filenames_for_search
12484 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12486 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12489 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12490 source_file references by symtab field references. Remove variables
12492 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12493 (clear_command, say_where): Replace bp_location field source_file
12494 references by symtab field references.
12495 (bp_location_dtor): Remove the source_file reference.
12496 (update_static_tracepoint): Replace bp_location field source_file
12497 references by symtab field references.
12498 (breakpoint_free_objfile): New function.
12499 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12500 Replace the field source_file by field symtab, extend its comment.
12501 (breakpoint_free_objfile): New declaration.
12502 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12503 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12504 field source_file references by symtab field references.
12506 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12508 Replace xfullpath calls by gdb_realpath calls.
12509 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12511 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12512 Remove it from the iterate_over_some_symtabs call.
12513 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12514 Remove it from the dw2_map_expand_apply calls, remove a block handling
12516 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12517 Remove it from the iterate_over_some_symtabs call.
12518 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12519 Remove it from the partial_map_expand_apply calls, remove a block
12520 handling it. Drop gdb_realpath call and cleanups from the real_path
12522 * source.c (openp): Drop the comment part about xfullpath. Replace
12523 xfullpath calls by gdb_realpath calls.
12524 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12525 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12526 from method map_symtabs_matching_filename and its comment.
12527 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12529 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12530 remove it also from the function comment, remove a block handling it.
12531 Drop gdb_realpath call and cleanups from the real_path handling.
12532 (iterate_over_symtabs): Drop variable full_path and its use.
12533 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12534 * utils.c (xfullpath): Remove.
12535 * utils.h (xfullpath): Remove.
12537 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12539 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12540 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12541 (ALLDEPFILES): Add ppc64-tdep.c.
12542 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12543 ppc64-tdep.o to gdb_target_obs.
12544 * ppc64-tdep.h: New file.
12545 * ppc64-tdep.c: New file.
12546 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12547 ppc-linux-tdep.c to here.
12548 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12549 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12550 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12551 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12552 from ppc-linux-tdep.c to here.
12553 (ppc64_convert_from_func_ptr_addr): Rename from
12554 ppc64_linux_convert_from_func_ptr_addr to
12555 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12558 (read_insn): Move from ppc-linux-tdep.c to here.
12559 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12560 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12561 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12562 Removed above functions.
12563 (ppc_linux_init_abi): Adjust.
12565 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12567 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12569 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12571 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12573 2013-02-01 Pedro Alves <palves@redhat.com>
12575 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12576 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12578 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12580 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12581 files with no separate debug info.
12582 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12583 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12584 only for files with no separate debug info.
12586 2013-01-31 Tom Tromey <tromey@redhat.com>
12588 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12590 (struct jit_program_space_data): Rename from jit_inferior_data.
12592 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12593 Change return type. Attach data to program space.
12594 (jit_program_space_data_cleanup): Rename from
12595 jit_inferior_data_cleanup; change argument type.
12596 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12598 (jit_register_code): Update.
12599 (jit_update_inferior_cache): Remove.
12600 (jit_breakpoint_deleted): Get jit data from the location's program
12602 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12603 'ps_data', change type.
12604 (jit_inferior_init, jit_breakpoint_re_set_internal)
12605 (jit_event_handler): Update.
12606 (free_objfile_data): Get data from objfile's program space.
12607 (_initialize_jit): Update.
12609 2013-01-31 Tom Tromey <tromey@redhat.com>
12612 * jit.c (struct jit_inferior_data) <cached_code_address,
12613 jit_breakpoint>: New fields.
12614 (jit_breakpoint_re_set_internal): Fix logging. Only create
12615 breakpoint if cached address has changed.
12616 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12618 (_initialize_jit): Register breakpoint deleted observer.
12620 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12622 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12623 (save_infcall_suspend_state): Ifdef out unused inf.
12624 (restore_infcall_suspend_state): Ifdef out unused inf.
12625 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12626 (jit_frame_sniffer): Remove unused inf_data.
12628 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12630 * c-exp.y (classify_inner_name): Remove unused type.
12631 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12632 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12634 (c_get_string): Remove unused kind.
12635 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12637 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12639 * charset.c (intermediate_encoding): Remove unused i.
12640 * completer.c (signal_completer): Remove unused i.
12641 * continuations.c (discard_my_continuations_1): Remove unused
12643 * corelow.c (core_close): Remove unuseD name.
12644 (get_core_siginfo): Remove unused pid.
12645 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12647 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12648 (loclist_describe_location): Remove unused first.
12649 * event-top.c (command_line_handler): Remove unused got_eof.
12650 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12651 (resize_section_table): Remove unused old_value.
12652 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12653 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12654 * i386-tdep.c (i386_process_record): Remove unused rex.
12655 * infcmd.c (get_return_value): Remove unused uiout.
12656 * jv-lang.c (type_from_class): Remove unused is_array.
12657 * jv-valprint.c (java_val_print): Remove unused i.
12658 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12659 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12660 * m2-typeprint.c (m2_print_type): Remove unused code.
12661 * macroexp.c (get_character_constant): Remove unused body_start.
12662 (macro_stringify): Remove unused result.
12663 * objc-lang.c (find_methods): Remove unused gdbarch.
12664 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12665 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12666 * stack.c (print_frame_args): Remove unused summary.
12667 * thread.c (thread_apply_command): Remove unused p.
12668 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12669 * valops.c (search_struct_method): Remove unused skip.
12670 * valprint.c (generic_val_print): Remove unused byte_order.
12671 * varobj.c (varobj_update): Remove unused changed.
12672 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12673 (alias_command): Remove unused c.
12674 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12675 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12677 (mi_cmd_data_write_memory): Remove unused word_format.
12678 (mi_cmd_data_write_memory_bytes): Remove unused r.
12679 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12681 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12682 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12685 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12687 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12688 * symtab.c (iterate_over_symtabs): Remove unused s.
12689 (find_pc_sect_symtab): Remove unused pspAce.
12690 (find_pc_sect_line): Remove unused alt_symtab.
12691 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12692 (completion_list_add_name): Remove unused newsize.
12694 2013-01-31 Tom Tromey <tromey@redhat.com>
12697 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12700 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12702 * target.c (target_read_string): Remove unused origlen.
12704 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12706 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12707 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12708 * ax-general.c (ax_print): Remove unused is_float.
12709 * blockframe.c (block_innermost_frame): Remove unused start, end.
12710 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12712 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12714 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12715 (svr4_read_so_list): Remove unused lmo.
12716 * solib-target.c (solib_target_relocate_section_addresses): Remove
12719 2013-01-30 Tom Tromey <tromey@redhat.com>
12721 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12723 2013-01-30 Tom Tromey <tromey@redhat.com>
12725 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12726 * utils.c (gnu_debuglink_crc32): Remove.
12727 * utils.h (gnu_debuglink_crc32): Don't declare.
12729 2013-01-30 Tom Tromey <tromey@redhat.com>
12731 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12732 (read_structure_type, read_enumeration_type): Remove cast.
12734 2013-01-30 Tom Tromey <tromey@redhat.com>
12736 * dwarf2read.c (read_namespace_type): Remove cast.
12737 (read_typedef): Likewise.
12739 2013-01-29 Tom Tromey <tromey@redhat.com>
12741 * dwarf2read.c (free_dwo_file): Remove assert.
12743 2013-01-29 Tom Tromey <tromey@redhat.com>
12745 * value.c (deprecated_set_value_modifiable): Remove.
12746 * value.h (deprecated_set_value_modifiable): Remove.
12748 2013-01-28 Doug Evans <dje@google.com>
12750 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12751 to addresses from dwo files.
12753 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12755 * valops.c (find_overload_match): Remove unused argument 'lax'.
12756 * value.h: Remove unused argument 'lax' from the declaration of
12757 find_overload_match.
12758 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12759 to find_overload_match.
12760 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12761 argument to find_overload_match.
12763 2013-01-25 Tom Tromey <tromey@redhat.com>
12765 * dwarf2read.c (processing_has_namespace_info): Remove.
12766 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12767 (process_die, read_func_scope, dwarf2_start_symtab)
12768 (new_symbol_full): Update.
12770 2013-01-25 Tom Tromey <tromey@redhat.com>
12772 * cp-namespace.c (cp_set_block_scope): Remove.
12773 * cp-support.h (cp_set_block_scope): Remove.
12774 * dbxread.c: Include block.h.
12775 (cp_set_block_scope): New function.
12776 (process_one_symbol): Update.
12777 * dwarf2read.c (read_func_scope): Use block_set_scope.
12779 2013-01-25 Pedro Alves <palves@redhat.com>
12781 * remote.c (add_current_inferior_and_thread): Tweak comment.
12783 2013-01-25 Tom Tromey <tromey@redhat.com>
12785 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12786 (cp_add_using_directive): Add 'copy_names' argument.
12787 * cp-support.h (cp_add_using_directive): Update.
12788 (struct using_direct) <import_src, import_dest, alias,
12789 declaration>: Now const.
12790 * dwarf2read.c (read_import_statement): Use obconcat.
12791 Don't copy names passed to cp_add_using_directive.
12793 2013-01-25 Tom Tromey <tromey@redhat.com>
12795 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12797 2013-01-25 Pedro Alves <palves@redhat.com>
12799 * remote.c (stop_reply_extract_thread): New.
12800 (add_current_inferior_and_thread): New parameter 'wait_status'.
12802 (remote_start_remote): Pass wait status to
12803 add_current_inferior_and_thread.
12804 (extended_remote_run): Update comment.
12805 (extended_remote_create_inferior_1): Pass wait status to
12806 add_current_inferior_and_thread.
12808 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12809 Ulrich Weigand <uweigand@de.ibm.com>
12811 * valarith.c (value_vector_widen): New function for replicating a
12812 scalar into a vector.
12813 (value_binop): Use value_vector_widen to widen scalar to vector
12814 rather than casting, this better matches gcc C behaviour.
12815 * valops.c (value_casst): Update logic for casting between vector
12816 types, and for casting from scalar to vector, try to match gcc C
12818 * value.h (value_vector_widen): Declare.
12819 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12820 function, handle special case for casting scalar to vector.
12821 (opencl_relop): Use opencl_value_cast.
12822 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12823 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12824 in order to use opencl_value_cast.
12826 2013-01-25 Yao Qi <yao@codesourcery.com>
12828 * event-loop.c: Include "queue.h".
12829 (gdb_event_p): New typedef.
12830 (DECLARE_QUEUE_P): Use.
12831 (DEFINE_QUEUE_P): Use.
12832 (async_queue_event): Remove.
12833 (gdb_event_xfree): New.
12834 (initialize_event_loop): New.
12835 (process_event): Use QUEUE macros.
12836 (event_queue): Remove.
12837 (gdb_wait_for_event): Caller update.
12838 (check_async_event_handlers): Likewise.
12839 (poll_timers): Likewise.
12840 * event-loop.h (initialize_event_loop): Declare.
12841 * event-loop.c (gdb_event_xfree): New.
12842 * top.c (gdb_init): Call initialize_event_loop.
12844 2013-01-25 Yao Qi <yao@codesourcery.com>
12846 * event-loop.c (async_queue_event): Remove one parameter
12847 'position'. Remove code handling 'position' == TAIL.
12848 (gdb_wait_for_event): Caller update.
12849 (check_async_event_handlers): Caller update.
12850 (poll_timers): Caller update.
12851 * event-loop.h (enum queue_position): Remove.
12853 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12855 * MAINTAINERS: Update my email.
12857 2013-01-25 Yao Qi <yao@codesourcery.com>
12859 * main.c (print_gdb_help): Remove "--epoch" from the help
12862 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12864 * symtab.c (skip_prologue_using_sal): Consider a file
12865 change the same as an increased line number
12867 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12869 * MAINTAINERS (Write After Approval): Add myself to the list.
12871 2013-01-24 Tom Tromey <tromey@redhat.com>
12873 * ada-lang.h (ada_decode_symbol): Make return type const.
12874 * ada-lang.c (ada_decode_symbol): Likewise.
12876 2013-01-23 Doug Evans <dje@google.com>
12878 * linespec.c (find_linespec_symbols): Make static.
12880 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12882 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12883 type on float conversion for complex type.
12885 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12887 Add a new class gdb.Architecture which exposes GDB's
12888 internal representation of architecture via GDB Python API.
12889 * Makefile.in: Add entries corresponding to the new file
12891 * NEWS (Python Scripting): Add entries for the new class
12892 gdb.Architecture and the new method gdb.Frame.architecture.
12893 * python/py-arch.c: Implement gdb.Architecture class.
12894 * python/py-frame.c (frapy_arch): Implement the method
12895 gdb.Frame.architecture().
12896 (frame_object_methods): Add 'architecture' to the method table.
12897 * python/python-internal.h: Add declarations of new utility
12899 * python/python.c (_initialize_python): Initialize
12900 gdb.Architecture class.
12902 2013-01-23 Doug Evans <dje@google.com>
12904 Work around binutils/15021.
12905 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12906 type_unit_group out of union s. All uses updated.
12907 (read_index_from_section): Watch for index version 8.
12908 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12909 an imported symtab.
12910 (write_psymtabs_to_index): Increment version number to 8.
12912 2013-01-22 Pedro Alves <palves@redhat.com>
12914 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12917 2013-01-22 Pedro Alves <palves@redhat.com>
12919 * annotate.c (annotate_breakpoints_changed): Rename to ...
12920 (annotate_breakpoints_invalid): ... this. Make static.
12921 (breakpoint_changed): Adjust.
12922 (_initialize_annotate): Always install the observers. Install a
12923 "breakpoint_created" observer.
12924 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12925 * breakpoint.c (set_breakpoint_condition)
12926 (breakpoint_set_commands, do_map_commands_command)
12927 (init_raw_breakpoint, clear_command, set_ignore_count)
12928 (enable_breakpoint_disp): No longer call
12929 annotate_breakpoints_changed.
12931 2013-01-22 Pedro Alves <palves@redhat.com>
12933 * annotate.c: Include "inferior.h".
12934 (frames_invalid_emitted)
12935 (breakpoints_invalid_emitted): New globals.
12936 (async_background_execution_p): New function.
12937 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12938 emitting the annotation if it has already been emitted.
12939 (annotate_display_prompt): New function.
12940 * annotate.h (annotate_display_prompt): New declaration.
12941 * event-top.c: Include annotate.h.
12942 (display_gdb_prompt): Call annotate_display_prompt.
12944 2013-01-22 Pedro Alves <palves@redhat.com>
12946 * annotate.c (ignore_count_changed): Delete.
12947 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12948 (annotate_ignore_count_change): Delete.
12949 (annotate_stopped): Don't emit a delayed breakpoints-changed
12951 * annotate.h (annotate_ignore_count_change): Delete.
12952 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12953 annotate_ignore_count_change.
12955 2013-01-22 Tom Tromey <tromey@redhat.com>
12957 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12958 require_rvalue for a register location.
12960 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12962 * breakpoint.c (print_one_breakpoint_location): Add MI
12963 field 'thread-groups' when printing a breakpoint.
12964 (output_thread_groups): New function.
12966 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12968 * python/lib/gdb/commands/explore.py
12969 (CompoundExplorer.explore_expr): Correct the name of a method
12971 (ExploreTypeCommand.invoke): Add a missing 'return'.
12973 2013-01-21 Tom Tromey <tromey@redhat.com>
12975 * gdb_obstack.h (obconcat): Move declaration here, from...
12976 * symfile.h (obconcat): ... here.
12977 * gdb_obstack.c: New file.
12978 (obconcat): Move from...
12979 * symfile.c (obconcat): ... here.
12980 * Makefile.in (SFILES): Add gdb_obstack.c.
12981 (COMMON_OBS): Add gdb_obstack.o.
12983 2013-01-21 Tom Tromey <tromey@redhat.com>
12985 * symfile.h (obsavestring): Don't declare.
12986 * symfile.c (obsavestring): Remove.
12987 * ada-exp.y: Use obstack_copy0, not obsavestring.
12988 * ada-lang.c: Use obstack_copy0, not obsavestring.
12989 * coffread.c: Use obstack_copy0, not obsavestring.
12990 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12991 * dbxread.c: Use obstack_copy0, not obsavestring.
12992 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12993 * jit.c: Use obstack_copy0, not obsavestring.
12994 * mdebugread.c: Use obstack_copy0, not obsavestring.
12995 * psymtab.c: Use obstack_copy0, not obsavestring.
12996 * stabsread.c: Use obstack_copy0, not obsavestring.
12997 * xcoffread.c: Use obstack_copy0, not obsavestring.
12999 2013-01-21 Tom Tromey <tromey@redhat.com>
13001 * dwarf2read.c (fixup_go_packaging): Save package name
13002 on objfile obstack.
13003 * gdbtypes.c (init_type): Don't copy name.
13005 2013-01-21 Tom Tromey <tromey@redhat.com>
13007 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
13009 (struct attribute) <u.str>: Now const.
13010 (struct fnfieldlist) <name>: Now const.
13011 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
13012 (partial_die_parent_scope): Make return type const.
13013 (partial_die_full_name, add_partial_symbol): Update.
13014 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
13016 (find_file_and_directory): Make 'name' and 'comp_dir' const.
13017 (read_file_scope, read_func_scope, dwarf2_add_field)
13018 (dwarf2_add_member_fn, read_structure_type)
13019 (process_enumeration_scope, read_array_type, read_module_type)
13020 (read_base_type, read_subrange_type): Update.
13021 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
13022 (new_symbol_full, guess_full_die_structure_name): Update.
13023 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
13024 (dwarf2_name): Return const type.
13025 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
13028 2013-01-21 Tom Tromey <tromey@redhat.com>
13030 * gdbtypes.c (init_type): Make 'name' const.
13031 * gdbtypes.h (init_type): Update.
13033 2013-01-21 Tom Tromey <tromey@redhat.com>
13035 * buildsym.c (patch_subfile_names): Use set_last_source_file.
13036 (start_symtab): Make 'name' and 'dirname' const. Use
13037 set_last_source_file.
13038 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13039 (last_source_file): Define. Now static.
13040 (set_last_source_file, get_last_source_file): New functions.
13041 * buildsym.h (last_source_file): Don't declare.
13042 (start_symtab): Update.
13043 (set_last_source_file, get_last_source_file): Declare.
13044 * coffread.c (complete_symtab): Use set_last_source_file.
13045 (coff_end_symtab): Likewise.
13046 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13047 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13048 set_last_source_file.
13049 (process_one_symbol): Use get_last_source_file.
13050 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13051 (psymtab_to_symtab_1): Use get_last_source_file.
13052 * xcoffread.c (process_linenos): Use get_last_source_file.
13053 (complete_symtab): Use set_last_source_file.
13054 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13055 (scan_xcoff_symtab): Use set_last_source_file.
13057 2013-01-21 Tom Tromey <tromey@redhat.com>
13059 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13060 (symbol_set_names): Remove casts. Handle field const-ness.
13062 2013-01-21 Tom Tromey <tromey@redhat.com>
13064 * dwarf2read.c (new_symbol_full): Remove cast.
13065 * symtab.c (symbol_set_demangled_name): Make 'name' const.
13066 * symtab.h (symbol_set_demangled_name): Update.
13068 2013-01-21 Tom Tromey <tromey@redhat.com>
13070 * main.c (captured_main): Call bfd_init.
13072 2013-01-21 Tom Tromey <tromey@redhat.com>
13074 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13075 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13076 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13079 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13081 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13083 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13085 Fix gdb.fortran/common-block.exp crash in PIE mode.
13086 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13088 * f-valprint.c (info_common_command_for_block): Expect
13089 LOC_COMMON_BLOCK in gdb_assert.
13090 * symtab.h (struct general_symbol_info): Update comment for the
13091 common_block member.
13092 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13093 (enum address_class): New member LOC_COMMON_BLOCK.
13095 2013-01-18 David Blaikie <dblaikie@gmail.com>
13097 * MAINTAINERS (Write After Approval): Add "David Blaikie".
13099 2013-01-18 Tom Tromey <tromey@redhat.com>
13102 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13103 Call require_rvalue.
13105 2013-01-18 Yao Qi <yao@codesourcery.com>
13107 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13108 (dbx_read_symtab): New declaration.
13109 (dbx_psymtab_to_symtab): Delete.
13110 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13111 Rename parameter PST to SELF. Exchanged two parameters.
13112 (start_psymtab): Caller update.
13113 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13114 (dwarf2_read_symtab): New declaration.
13115 (dwarf2_psymtab_to_symtab): Delete.
13116 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13117 Rename parameter PST to SELF. Exchanged two parameters.
13118 (create_partial_symtab): Caller update.
13119 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13120 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13121 Rename parameter PST to SELF. Exchanged two parameters.
13122 (parse_partial_symbols, new_psymtab): Caller update.
13123 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13125 * psymtab.c (psymtab_to_symtab): Caller update.
13126 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13127 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13128 Rename parameter PST to SELF. Exchanged two parameters.
13129 (xcoff_start_psymtab): Caller update.
13131 2013-01-18 Yao Qi <yao@codesourcery.com>
13133 * infrun.c (proceed): Rename local variable 'oneproc' to
13136 2013-01-17 Doug Evans <dje@google.com>
13138 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13139 (dw2_build_type_unit_groups): Delete. All uses updated.
13141 * symtab.h (struct symbol_search): Add comment.
13143 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13145 * symtab.c (compare_filenames_for_search): New comment for
13148 2013-01-17 Tom Tromey <tromey@redhat.com>
13150 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13152 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13154 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13155 initialize it by existing make_cleanup. Call new do_cleanups.
13157 2013-01-17 Tom Tromey <tromey@redhat.com>
13159 * cp-abi.c (cp_abi_completer): New function.
13160 (_initialize_cp_abi): Set completer for "set cp-abi".
13162 2013-01-17 Tom Tromey <tromey@redhat.com>
13164 * mem-break.c: Remove obsolete comment.
13165 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13167 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13169 * jit.c (jit_reader_load_command): Interpret the jit reader name
13170 as an absolute path if it begins with a forward slash.
13172 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13176 * jit.c (finalize_symtab): Ensure that only the global block has a
13179 2013-01-17 Pedro Alves <palves@redhat.com>
13181 * acinclude.m4: Include ../config/plugins.m4,
13182 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13183 * Makefile.in (aclocal_m4_deps): Update.
13184 * aclocal.m4: Renegerate.
13186 2013-01-16 Doug Evans <dje@google.com>
13188 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13190 2013-01-16 Pedro Alves <palves@redhat.com>
13191 Tom Tromey <tromey@redhat.com>
13194 * NEWS: Add "catch signal".
13195 * breakpoint.c (base_breakpoint_ops): No longer static.
13196 (bpstat_explains_signal): New function.
13197 (init_catchpoint): No longer static.
13198 (base_breakpoint_explains_signal): New function.
13199 (base_breakpoint_ops): Initialize new field.
13200 * breakpoint.h (enum bpstat_signal_value): New.
13201 (struct breakpoint_ops) <explains_signal>: New field.
13202 (bpstat_explains_signal): Remove macro, declare as function.
13203 (base_breakpoint_ops, init_catchpoint): Declare.
13204 * break-catch-sig.c: New file.
13205 * inferior.h (signal_catch_update): Declare.
13206 * infrun.c (signal_catch): New global.
13207 (handle_syscall_event): Update for change to
13208 bpstat_explains_signal.
13209 (handle_inferior_event): Likewise. Always handle random signals
13211 (signal_cache_update): Check signal_catch.
13212 (signal_catch_update): New function.
13213 (_initialize_infrun): Initialize signal_catch.
13214 * Makefile.in (SFILES): Add break-catch-sig.c.
13215 (COMMON_OBS): Add break-catch-sig.o.
13217 2013-01-16 Tom Tromey <tromey@redhat.com>
13219 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13220 (print_one_catch_solib, print_one_catch_syscall)
13221 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13224 2013-01-16 Yao Qi <yao@codesourcery.com>
13226 * printcmd.c (current_display_number): Make it static.
13228 2013-01-16 Yao Qi <yao@codesourcery.com>
13230 * infcmd.c (step_once): Don't check '!single_inst' as it was
13233 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13235 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13237 2013-01-14 Tom Tromey <tromey@redhat.com>
13239 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13241 * command.h (add_setshow_string_noescape_cmd): Update.
13242 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13243 (complete_set_gnutarget): New function.
13244 (_initialize_core): Set the "set gnutarget" completer.
13246 2013-01-14 Tom Tromey <tromey@redhat.com>
13249 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13250 (c_type_print_modifier): Likewise.
13251 * dwarf2read.c (read_tag_restrict_type): New function.
13252 (read_type_die_1): Handle DW_TAG_restrict_type.
13253 * gdbtypes.c (make_restrict_type): New function.
13254 (recursive_dump_type): Handle TYPE_RESTRICT.
13255 * gdbtypes.h (enum type_flag_values): Renumber.
13256 (enum type_instance_flag_value): Add
13257 TYPE_INSTANCE_FLAG_RESTRICT.
13258 (TYPE_RESTRICT): New macro.
13259 (make_restrict_type): Declare.
13261 2013-01-14 Tom Tromey <tromey@redhat.com>
13264 * psymtab.c (struct psymtab_state): New.
13265 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13267 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13268 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13270 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13271 Pedro Alves <palves@redhat.com>
13275 * remote.c (remote_threads_info): Make a copy of the reply from
13276 qfThreadInfo and use that instead of rs->buf.
13278 2013-01-14 Yao Qi <yao@codesourcery.com>
13280 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13281 (dbx_psymtab_to_symtab): Likewise.
13282 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13283 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13284 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13286 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13288 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13289 make_cleanup_restore_current_language. Call set_language. Move
13290 OLD_CHAIN and INNER_CHAIN cleanups.
13291 * utils.c (do_restore_current_language)
13292 (make_cleanup_restore_current_language): New functions.
13293 * utils.h (make_cleanup_restore_current_language): New declaration.
13295 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13297 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13298 non-existing files.
13300 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13301 non-existing files if FILENAME is already absolute.
13303 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13305 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13306 fputs_filtered. Append trailing newline.
13308 2013-01-11 Yao Qi <yao@codesourcery.com>
13309 Stan Shebs <stan@codesourcery.com>
13311 * psymtab.c (init_psymbol_list): Clarify the comment.
13313 2013-01-11 Yao Qi <yao@codesourcery.com>
13315 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13316 (update_dprintf_command_list): Assert that 'printf_line' is
13317 non-null. Remove condition check.
13319 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13322 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13324 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13326 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13328 2013-01-09 Anthony Green <green@moxielogic.com>
13330 * cp-abi.c (cplus_print_vtable): Don't return value from void
13332 * ada-lang.c (re_set_catch_assert): Ditto.
13334 2013-01-09 Doug Evans <dje@google.com>
13336 * symfile.h (quick_symbol_functions): Delete member
13337 pre_expand_symtabs_matching. All uses removed.
13338 * dwarf2read.c (dw2_lookup_symbol): Implement.
13339 (dw2_do_expand_symtabs_matching): Delete.
13340 (dw2_pre_expand_symtabs_matching): Delete.
13341 (struct dw2_symtab_iterator): New type.
13342 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13343 (dw2_expand_symtabs_for_function): Rewrite.
13344 (dwarf2_gdb_index_functions): Update.
13345 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13346 (psym_functions): Update.
13348 2013-01-09 Tom Tromey <tromey@redhat.com>
13350 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13351 * configure: Rebuild.
13352 * configure.ac: Add somread.o to the build if BFD has SOM
13354 * somread.c: Include som/aout.h, not syms.h.
13355 (som_symtab_read): Use som_external_symbol_dictionary_record.
13356 Unpack records manually.
13357 (_initialize_somread): Declare.
13359 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13361 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13362 Cast return_address to 64bits.
13364 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13366 * printcmd.c: Remove define of function output_command.
13367 * tracepoint.c: Remove extern of function output_command.
13368 * valprint.h: (output_command): New extern.
13370 2013-01-07 Tom Tromey <tromey@redhat.com>
13372 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13374 (objc_language_defn): Use c_printchar, c_printstr,
13377 2013-01-07 Tom Tromey <tromey@redhat.com>
13381 * ada-valprint.c (printstr, print_field_values): Remove
13383 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13385 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13387 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13388 * main.c (captured_main): Remove "epoch" argument.
13389 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13390 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13391 * p-valprint.c (pascal_object_print_value_fields): Remove
13393 * printcmd.c (print_command_1): Remove 'inspect' argument.
13394 (print_command, call_command): Update.
13395 (inspect_command): Remove.
13396 (_initialize_printcmd): Make "inspect" an alias for "print".
13397 * top.c (epoch_interface): Remove.
13398 * top.h (epoch_interface): Remove.
13399 * valprint.c (user_print_options): Update.
13400 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13401 * valprint.h (struct value_print_options) <inspect_it>: Remove
13404 2013-01-04 Tom Tromey <tromey@redhat.com>
13406 * valprint.h (read_string): Add 'extern'.
13408 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13410 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13411 used to decide whether to define darwin_read_dyld_info or not.
13413 2013-01-03 Pierre Muller <muller@sourceware.org>
13415 * main.c (relocate_gdb_directory): Avoid calling stat function
13418 2013-01-03 Yao Qi <yao@codesourcery.com>
13420 * psymtab.c (fixup_psymbol_section): Update declaration.
13421 (fixup_psymbol_section): Remove code returning value.
13423 2013-01-03 Yao Qi <yao@codesourcery.com>
13425 * symtab.h: Remove some out of date comments.
13426 (enum exception_event_kind): Move it ...
13427 * breakpoint.c: ... here.
13429 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13432 * darwin-nat.c (darwin_read_dyld_info): Only build if
13433 TASK_DYLD_INFO_COUNT is defined.
13434 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13435 TASK_DYLD_INFO_COUNT is defined.
13437 2013-01-02 Tom Tromey <tromey@redhat.com>
13439 * symfile.h (struct ecoff_debug_hack): Remove.
13440 * objfiles.c: Don't include mdebugread.h.
13442 2013-01-02 Tom Tromey <tromey@redhat.com>
13444 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13445 * configure.ac: Check for Mach-O support in BFD. Update
13447 * configure: Rebuild.
13449 2013-01-02 Tom Tromey <tromey@redhat.com>
13451 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13452 * configure.ac: Use GDB_AC_CHECK_BFD.
13453 * configure: Rebuild.
13455 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13457 * MAINTAINERS: Update my email.
13459 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13461 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13463 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13465 * rs6000-nat.c (bss_data_overlap): New function.
13466 (vmap_symtab): Use it to adjust the .bss section's offset.
13468 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13470 Update year range in copyright notice of all files.
13472 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13474 * top.c (print_gdb_version): Update copyright year.
13476 For older changes see ChangeLog-2012.
13482 version-control: never