1 2013-12-18 Yao Qi <yao@codesourcery.com>
3 * target.h (target_xfer_partial_ftype): New typedef.
4 (target_xfer_partial): Update declaration.
5 * auxv.h (memory_xfer_auxv): Likewise.
6 * ia64-hpux-nat.c (super_xfer_partial): Likewise.
7 * ia64-linux-nat.c (super_xfer_partial): Likewise.
8 * linux-nat.c (super_xfer_partial): Likewise.
9 * procfs.c (procfs_xfer_partial): Likewise.
10 * record-full.c (record_full_beneath_to_xfer_partial):
11 (tmp_to_xfer_partial): Likewise.
12 * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
13 * target.c (default_xfer_partial): Likewise.
14 (current_xfer_partial): Likewise.
15 (target_xfer_partial): Change parameter type to 'gdb_byte *'.
17 2013-12-18 Yao Qi <yao@codesourcery.com>
19 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
21 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
22 (linux_proc_pending_signals): Likewise.
24 2013-12-18 Joel Brobecker <brobecker@adacore.com>
26 * value.c (value_entirely_unavailable): ARI fix: Move trailing
27 binary operator to the next line. No actual code change.
29 2013-12-17 Pedro Alves <palves@redhat.com>
31 * frame.h (enum frame_id_stack_status): New enum.
32 (struct frame_id) <stack_addr>: Adjust comment.
33 <stack_addr_p>: Delete field, replaced with ...
34 <stack_status>: ... this new field.
35 (frame_id_build_unavailable_stack): Declare.
36 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
37 (frame_id_build_special): Adjust.
38 (frame_id_build_unavailable_stack): New function.
39 (frame_id_build, frame_id_build_wild): Adjust.
40 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
41 account frames with unavailable stack.
43 * amd64-tdep.c (amd64_frame_this_id)
44 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
45 frame_id_build_unavailable_stack.
46 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
47 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
48 (i386_sigtramp_frame_this_id): Likewise.
50 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
52 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
53 unavailable, use correct bit length.
54 * value.c (struct value): Extend comment on unavailable to
55 indicate that it is bit based.
56 (value_bits_available): New function.
57 (value_bytes_available): Call value_bits_available.
58 (value_entirely_available): Check against the bit length, not byte
60 (mark_value_bits_unavailable): New function.
61 (mark_value_bytes_unavailable): Move contents to
62 mark_value_bits_unavailable, call to same.
63 (memcmp_with_bit_offsets): New function.
64 (value_available_contents_bits_eq): New function, takes the
65 functionality from value_available_contents_eq but uses
66 memcmp_with_bit_offsets now, and is bit not byte based.
67 (value_available_contents_eq): Move implementation into
68 value_available_contents_bits_eq, call to same.
69 (value_contents_copy_raw): Work on bits, not bytes.
70 (unpack_value_bits_as_long_1): Check availability in bits, not
72 * value.h (value_bits_available): Declare new function.
73 (mark_value_bits_unavailable): Declare new function.
75 2013-12-16 Pierre Muller <muller@sourceware.org>
77 Fix compilation error for cygwin native build.
78 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
81 2013-12-16 Pedro Alves <palves@redhat.com>
84 * sol-thread.c (check_for_thread_db): If the target can't run or
85 isn't a core, return without pushing.
87 2013-12-15 Joel Brobecker <brobecker@adacore.com>
89 Revert the following commit:
90 * solib.c (solib_map_sections): Remove code overwriting
91 SO->SO_NAME with the bfd's filename.
93 Make the following changes required after the revert above:
94 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
95 returned bfd to a copy of the synthetic pathname.
96 * solib-darwin.c (darwin_bfd_open): Set the filename of the
97 returned bfd to a copy of PATHNAME.
99 2013-12-13 Joel Brobecker <brobecker@adacore.com>
101 * ada-lang.c (ada_array_bound_from_type): Move the declaration
102 and assignment of variable "elt_type" inside the else block
103 where it is used. Add two missing check_typedef calls.
104 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
105 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
107 2013-12-13 Joel Brobecker <brobecker@adacore.com>
109 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
110 between 'struct type *' and 'arr_type'.
112 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
115 * NEWS (Python Scripting): Add entry for the new feature and the
116 new attribute of gdb.Field objects.
117 * python/py-type.c (gdbpy_is_field): New function
118 (convert_field): Add 'parent_type' attribute to gdb.Field
120 * python/py-value.c (valpy_getitem): Allow subscript value to be
122 (value_has_field): New function
123 (get_field_flag): New function
124 * python/python-internal.h (gdbpy_is_field): Add declaration.
126 2013-12-12 Pedro Alves <palves@redhat.com>
128 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
129 const, and remove casts.
131 2013-12-12 Pedro Alves <palves@redhat.com>
133 * cli/cli-cmds.c (source_script_from_stream) Use have_python
134 instead of catching UNSUPPORTED_ERROR.
135 * exceptions.h (UNSUPPORTED_ERROR): Delete.
136 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
138 * python/python.h (have_python): New static inline function.
140 2013-12-11 Doug Evans <dje@google.com>
142 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
143 "can't find DWO" warning.
145 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
147 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
148 to get_probe_argument_count and evaluate_probe_argument.
149 * probe.c (get_probe_argument_count): Adjust declaration to accept
150 frame. Pass frame to probe_ops's get_probe_argument_count.
151 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
152 (probe_safe_evaluate_at_pc): Pass frame to
153 get_probe_argument_count and evaluate_probe_argument.
154 * probe.h (struct probe_ops) <get_probe_argument_count,
155 evaluate_probe_argument>: Adjust declarations to accept frame.
156 (get_probe_argument_count, evaluate_probe_argument): Likewise.
157 * solib-svr4.c (solib_event_probe_action): Get current frame.
158 Pass it to get_probe_argument_count.
159 (svr4_handle_solib_event): Get current frame. Pass it to
160 get_probe_argument_count and evaluate_probe_argument.
161 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
162 accept gdbarch. Do not obtain it from the probe's objfile.
163 (stap_get_probe_argument_count): Adjust declaration to accept
164 frame. Obtain gdbarch from the frame. Call generic
165 can_evaluate_probe_arguments. Pass gdbarch to
166 stap_parse_probe_arguments.
167 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
168 stap_parse_probe_arguments.
169 (stap_evaluate_probe_argument): Adjust declaration to accept
170 frame. Obtain gdbarch from the frame. Pass gdbarch to
172 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
173 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
174 get_probe_argument_count and evaluate_probe_argument.
176 2013-12-10 Doug Evans <dje@google.com>
179 * c-lang.c (c_get_string): Ignore the declared size of the object
180 if a specific length is requested.
182 2013-12-10 Doug Evans <dje@google.com>
184 * interps.h (interp_exec_p): Delete.
185 * interps.c (interp_exec_p): Delete.
186 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
187 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
189 2013-12-10 Yao Qi <yao@codesourcery.com>
191 * amd64-tdep.c (amd64_analyze_stack_align): Call
192 target_read_code instead of target_read_memory.
193 (amd64_analyze_prologue): Call read_code_unsigned_integer
194 instead of read_memory_unsigned_integer. Call read_code
195 instead of read_memory.
196 (amd64_skip_xmm_prologue): Likewise.
198 2013-12-10 Yao Qi <yao@codesourcery.com>
200 * corefile.c (read_code): New function.
201 (read_code_integer): New function.
202 (read_code_unsigned_integer): New function.
203 * gdbcore.h (read_code): Declare.
204 (read_code_integer): Declare.
205 (read_code_unsigned_integer): Declare.
206 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
207 of target_read_memory. Call read_code_unsigned_integer instead
208 of read_memory_unsigned_integer.
209 (i386_analyze_struct_return): Likewise.
210 (i386_skip_probe): Likewise.
211 (i386_analyze_stack_align): Likewise.
212 (i386_match_pattern): Likewise.
213 (i386_skip_noop): Likewise.
214 (i386_analyze_frame_setup): Likewise.
215 (i386_analyze_register_saves): Likewise.
216 (i386_skip_prologue): Likewise.
217 (i386_skip_main_prologue): Likewise.
218 (i386_frame_cache_1): Likewise.
220 2013-12-10 Yao Qi <yao@codesourcery.com>
222 * infrun.c: Include "target-dcache.h".
223 (prepare_for_detach): Call target_dcache_invalidate.
224 (wait_for_inferior): Likewise.
225 (fetch_inferior_event): Likewise.
226 (infrun_thread_stop_requested_callback): Likewise. Set
227 overlay_cache_invalid to 1.
229 2013-12-10 Joel Brobecker <brobecker@adacore.com>
231 * symtab.c (symbol_find_demangled_name): Add handling of
234 2013-12-10 Joel Brobecker <brobecker@adacore.com>
236 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
237 * NEWS: Expand the entry documenting the new -exec-run --start
238 option to mention the corresponding new entry in the output of
241 2013-12-10 Joel Brobecker <brobecker@adacore.com>
243 * windows-nat.c (handle_load_dll): Add comments.
244 (windows_ensure_ntdll_loaded): New function.
245 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
248 2013-12-08 Joel Brobecker <brobecker@adacore.com>
252 2013-12-08 Yao Qi <yao@codesourcery.com>
254 * stack.c (frame_info): Initialize variable caller_pc.
256 2013-12-06 Pedro Alves <palves@redhat.com>
258 * frame.c (enum cached_copy_status): New enum.
259 (struct frame_info) <prev_pc.p>: Change type to enum
261 (fprint_frame): Handle not saved and unavailable prev_pc values.
262 (frame_unwind_pc_if_available): Delete and merge contents into ...
263 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
264 to use enum cached_copy_status.
265 (frame_unwind_caller_pc_if_available): Delete.
266 (create_new_frame): Adjust.
267 * frame.h (frame_unwind_caller_pc_if_available): Delete
269 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
270 frame_unwind_caller_pc_if_available, and handle
271 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
272 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
273 (val_print_not_saved): New function.
274 * valprint.h (val_print_not_saved): Declare.
276 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
277 Pedro Alves <palves@redhat.com>
279 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
280 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
281 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
282 * spu-tdep.c (spu_software_single_step): Throw
284 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
286 2013-12-06 Tom Tromey <tromey@redhat.com>
288 * objfiles.c (free_objfile): Update comment.
290 2013-12-06 Tom Tromey <tromey@redhat.com>
292 * objfiles.h (objfile_to_front): Remove.
293 * objfiles.c (objfile_to_front): Remove.
295 2013-12-06 Tom Tromey <tromey@redhat.com>
297 * minsyms.c (get_symbol_leading_char): Remove unnecessary
300 2013-12-06 Tom Tromey <tromey@redhat.com>
302 * psympriv.h (struct partial_symtab) <user>: Move earlier.
304 2013-12-06 Tom Tromey <tromey@redhat.com>
306 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
307 (list_command): Likewise.
309 2013-12-06 Tom Tromey <tromey@redhat.com>
311 * psymtab.c (allocate_psymtab): Put the filename in the filename
314 2013-12-06 Tom Tromey <tromey@redhat.com>
316 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
317 * symtab.h (struct symtab) <dirname>: Now const.
319 2013-12-06 Tom Tromey <tromey@redhat.com>
321 * symfile.c (allocate_symtab): Remove cast.
322 * symtab.h (struct symtab) <filename>: Now const.
324 2013-12-06 Tom Tromey <tromey@redhat.com>
326 * break-catch-throw.c (fetch_probe_arguments): Use
327 get_probe_argument_count and evaluate_probe_argument.
328 * elfread.c (elf_get_probe_argument_count)
329 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
330 (elf_compile_to_ax): Remove.
331 (elf_probe_fns): Update.
332 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
333 (evaluate_probe_argument): Call method on probe, not via sym
335 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
336 evaluate_probe_argument.
337 (compile_probe_arg): Use get_probe_argument_count. Call method on
338 probe, not via sym functions.
339 * symfile-debug.c (debug_sym_get_probe_argument_count)
340 (debug_can_evaluate_probe_arguments)
341 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
343 (debug_sym_probe_fns): Remove.
344 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
345 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
346 sym_compile_to_ax>: Remove fields.
348 2013-12-06 Pierre Muller <muller@sourceware.org>
350 Fix completion for pascal language.
351 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
352 (exp : field_exp name COMPLETE): New rule.
353 (exp : SIZEOF): Set correct current_type.
354 (last_was_structop): Remove static variable.
355 (yylex): Remove saw_structop local variable.
356 Adapt code to removal of variables above.
358 2013-12-06 Joel Brobecker <brobecker@adacore.com>
360 * frame.c (get_prev_frame_1): Delete variable "this_id".
361 Replace its use by a call to get_frame_id.
363 2013-12-05 Anthony Green <green@moxielogic.com>
365 * moxie-tdep.c (moxie_software_single_step): New function.
366 (INST2OFFSET): New helper macro.
367 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
368 (moxie_process_readu): Move this up in the file.
370 2013-12-05 Doug Evans <xdje42@gmail.com>
372 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
374 2013-12-05 Joel Brobecker <brobecker@adacore.com>
375 Tristan Gingold <gingold@adacore.com>
377 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
378 Accept version 2. Ignore operations using opcode 6.
380 2013-12-05 Joel Brobecker <brobecker@adacore.com>
382 * ada-lex.l (find_dot_all): Fix coding style violations.
384 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
386 * NEWS: Add section for Intel(R) Architecture Instructions
387 Extesions mentioning MPX.
389 2013-12-03 Joel Brobecker <brobecker@adacore.com>
391 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
393 2013-12-03 Joel Brobecker <brobecker@adacore.com>
395 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
396 when parse_exp_1 threw an error. Add comment.
398 2013-12-03 Joel Brobecker <brobecker@adacore.com>
400 * NEWS: Mention "-list-features" in the entry documenting
401 the support for the "--language" option.
403 2013-12-03 Tom Tromey <tromey@redhat.com>
404 Jan Kratochvil <jan.kratochvil@redhat.com>
405 Doug Evans <dje@google.com>
406 Samuel Bronson <naesten@gmail.com>
408 Bring back gdb-add-index as a contrib script.
409 * contrib/gdb-add-index.sh: New file.
410 * NEWS: Note the addition.
412 2013-12-03 Samuel Bronson <naesten@gmail.com>
414 * MAINTAINERS (Write After Approval): Add myself to the list.
416 2013-12-03 Joel Brobecker <brobecker@adacore.com>
418 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
420 2013-12-03 Joel Brobecker <brobecker@adacore.com>
422 * mi/mi-main.c: Remove trailing spaces throughout.
424 2013-12-03 Pedro Alves <palves@redhat.com>
425 Joel Brobecker <brobecker@adacore.com>
427 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
428 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
429 of a regular error when the GDB/MI command does not exist.
430 * mi/mi-main.c (mi_cmd_list_features): Add
431 "undefined-command-error-code".
432 (mi_print_exception): Print an "undefined-command"
433 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
434 * NEWS: Add entry documenting the new "code" variable in
435 "^error" result records.
437 2013-12-03 Joel Brobecker <brobecker@adacore.com>
439 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
440 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
441 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
442 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
443 field to output of "-list-features".
445 * NEWS: Add entry for new -info-gdb-mi-command.
447 2013-12-02 Doug Evans <dje@google.com>
448 Jan Kratochvil <jan.kratochvil@redhat.com>
450 * objfiles.c (allocate_objfile): Save original_name as an absolute
452 * objfiles.h (struct objfile): Expand comment on original_name.
453 * source.c (openp): Call gdb_abspath.
454 * utils.c (gdb_abspath): New function.
455 * utils.h (gdb_abspath): Declare.
457 2013-12-02 Pedro Alves <palves@redhat.com>
459 * dcache.c (dcache_read_line): Use target_read_raw_memory.
460 * target.c (target_read_raw_memory): New function.
461 (target_read_stack, target_write_memory, target_write_raw_memory):
463 (target_read_code): Add comment.
464 * target.h (target_read_raw_memory): Declare.
466 2013-12-02 Pedro Alves <palves@redhat.com>
468 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
471 2013-12-02 Pedro Alves <pedro@codesourcery.com>
472 Maciej W. Rozycki <macro@codesourcery.com>
474 * remote.c (putpkt_for_catch_errors): Remove function.
475 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
478 2013-12-02 Pedro Alves <palves@redhat.com>
481 * remote-notif.c (handle_notification): Return early if no
482 notification is found.
484 2013-12-02 Joel Brobecker <brobecker@adacore.com>
486 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
489 2013-12-02 Joel Brobecker <brobecker@adacore.com>
491 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
493 2013-12-02 Joel Brobecker <brobecker@adacore.com>
495 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
496 * ctf.c (ctf_start): Remove obsolete comment.
498 2013-12-02 Joel Brobecker <brobecker@adacore.com>
500 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
502 2013-11-30 Doug Evans <xdje42@gmail.com>
504 * auto-load.h (script_language): New members name, auto_load_enabled.
505 Add missing comments on struct members.
506 (auto_load_objfile_script): Delete.
507 * auto-load.c: #include "cli/cli-cmds.h".
508 (auto_load_gdb_scripts_enabled): New function.
509 (script_language_gdb): Update, add new members.
510 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
511 and call to maybe_add_script moved to caller.
512 (auto_load_objfile_script_1): Auto-load safe-checking and
513 call to maybe_add_script moved here.
514 (auto_load_objfile_script): Make static. Early exit if support for
515 scripting language hasn't been compiled in, or auto-loading has been
517 (source_section_scripts): Argument "source_name" renamed to
518 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
519 with section_name. Skip loading script if support for scripting
520 language hasn't been compiled in, or auto-loading has been disabled.
521 Call language->source_script_for_objfile instead of calling
522 source_python_script_for_objfile directly.
523 (load_auto_scripts_for_objfile): Update.
524 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
525 (gdbpy_load_auto_script_for_objfile): Delete.
526 (auto_load_python_scripts_enabled): New function.
527 (script_language_python): Update, add new members.
528 (gdbpy_script_language_defn): New function.
529 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
530 (gdbpy_script_language_defn): Declare.
532 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
533 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
534 (source_section_scripts): Moved here from py-auto-load.c.
535 (auto_load_section_scripts): Ditto.
536 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
537 auto-load.c, renamed AUTO_SECTION_NAME.
538 (source_section_scripts, auto_load_section_scripts): Moved to
541 2013-11-30 Yao Qi <yao@codesourcery.com>
543 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
545 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
547 * gdbarch.sh: Remove include of "gdb_string.h", replace by
550 2013-11-29 Doug Evans <xdje42@gmail.com>
552 * python/py-auto-load.c (source_section_scripts): Move comment to
553 more relevant location.
556 * python/py-breakpoint.c: Remove trailing whitespace.
557 * python/py-cmd.c: Ditto.
558 * python/py-evts.c: Ditto.
559 * python/py-finishbreakpoint.c: Ditto.
560 * python/py-frame.c: Ditto.
561 * python/py-function.c: Ditto.
562 * python/py-inferior.c: Ditto.
563 * python/py-infthread.c: Ditto.
564 * python/py-param.c: Ditto.
565 * python/py-prettyprint.c: Ditto.
566 * python/py-symbol.c: Ditto.
567 * python/py-type.c: Ditto.
568 * python/py-utils.c: Ditto.
569 * python/py-value.c: Ditto.
570 * python/python-internal.h: Ditto.
571 * python/python.c: Ditto.
573 2013-11-29 Pedro Alves <palves@redhat.com>
575 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
577 2013-11-29 Pedro Alves <palves@redhat.com>
579 * breakpoint.c (build_target_condition_list): Release previous
581 (build_target_command_list): Release previous commands.
582 (bp_location_dtor): Release target conditions and commands.
583 * remote.c (remote_add_target_side_condition): Don't release
585 (remote_add_target_side_commands): Don't release commands.
587 2013-11-29 Yao Qi <yao@codesourcery.com>
588 Pedro Alves <palves@redhat.com>
590 * dcache.c (dcache_read_line): Use current_target.beneath
591 instead of ¤t_target.
592 * target.c (memory_xfer_partial_1): Factor code out to ...
593 (raw_memory_xfer_partial): ... it. New function.
594 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
595 is TARGET_OBJECT_RAW_MEMORY.
597 2013-11-28 Doug Evans <xdje42@gmail.com>
599 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
600 breakpoint_object. All uses updated.
601 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
602 breakpoint_object. All uses updated.
603 * python.c (*): All uses of breakpoint_object updated.
604 * python.h (*): All uses of breakpoint_object updated.
605 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
606 * python/py-finishbreakpoint.c (*): Ditto.
608 2013-11-28 Doug Evans <xdje42@gmail.com>
610 * configure.ac: Add comments delineating libpython and libmcheck.
611 * configure: Regenerate.
613 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
614 Pedro Alves <palves@redhat.com>
616 * valprint.c (value_check_printable): If the value is entirely
617 unavailable, print a single "<unavailable>" instead of printing
620 2013-11-28 Pedro Alves <palves@redhat.com>
622 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
623 Add "set debug frame" output.
624 (frame_stop_reason_symbol_string): New function.
626 2013-11-28 Pedro Alves <palves@redhat.com>
628 * frame-unwind.c (default_frame_unwind_stop_reason): Return
629 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
630 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
632 2013-11-28 Pedro Alves <palves@redhat.com>
634 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
635 set the unwind stop reason to UNWIND_OUTERMOST, not
636 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
638 2013-11-28 Pedro Alves <palves@redhat.com>
640 * frame.c (frame_unwind_register): Say the register was "not
641 saved" instead of "optimized out".
643 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
646 * configure: Rebuild.
647 * configure.ac: Tighten cygwin detection check.
649 2013-11-27 Pedro Alves <palves@redhat.com>
651 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
652 register in the previous frame's arch.
654 2013-11-27 Pedro Alves <palves@redhat.com>
656 * frame-unwind.c (frame_unwind_got_optimized): Return
657 an lval_register value instead of a not_lval value.
659 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
661 * frame.c: Include "valprint.h".
662 (frame_unwind_register_value): Use value_optimized_out.
663 * value.c (value_fetch_lazy): Likewise.
665 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
667 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
669 2013-11-26 Tom Tromey <tromey@redhat.com>
671 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
674 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
676 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
677 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
678 (HAS_MPX): New macro.
679 (HAS_AVX): New macro.
680 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
682 2013-11-25 Keith Seitz <keiths@redhat.com>
685 * c-exp.y (classify_inner_name): If no matching symbol was
686 found, try looking up the token as a base class.
687 Likewise if a constructor was found.
688 * cp-namespace.c (find_type_baseclass_by_name): New function.
689 * cp-support.h (find_type_baseclass_by_name): Declare.
690 * valops.c (value_struct_elt_for_reference): If we get
691 a non-static field, try to get a value based on the
692 current instance, if any.
694 2013-11-24 Yao Qi <yao@codesourcery.com>
696 * disasm.c (dis_asm_read_memory): Call target_read_code
697 instead of target_read_memory.
699 2013-11-24 Yao Qi <yao@codesourcery.com>
701 * NEWS: Add note on new "set code-cache" option.
702 * target-dcache.c (code_cache_enabled_1): New variable.
703 (code_cache_enabled): New variable.
704 (show_code_cache, set_code_cache): New function.
705 (code_cache_enabled_p): New function.
706 (_initialize_target_dcache): Register command.
707 * target-dcache.h (code_cache_enabled_p): Declare.
708 * target.c (memory_xfer_partial_1):Handle
709 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
710 (target_read_code): New function.
711 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
713 (target_read_code): Declare.
715 2013-11-24 Yao Qi <yao@codesourcery.com>
717 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
718 (stack_cache_enabled_1): ... this. New variable.
719 (stack_cache_enabled_p): Rename to ...
720 (stack_cache_enabled): ... this. New variable.
721 (set_stack_cache_enabled_p): Rename to ...
722 (set_stack_cache): ... this. Update caller.
723 (show_stack_cache_enabled_p): Rename to ...
724 (show_stack_cache): ... this. Update caller.
725 (stack_cache_enabled): Rename to ...
726 (stack_cache_enabled_p): ... this. Update caller.
727 (_initialize_target_dcache): Replace "data cache" with
728 "target memory cache".
729 * target-dcache.h (stack_cache_enabled): Remove declaration.
730 (stack_cache_enabled_p): Add declaration.
732 2013-11-23 Doug Evans <xdje42@gmail.com>
734 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
737 2013-11-23 Doug Evans <xdje42@gmail.com>
739 * python/py-frame.c (frapy_block): Fix error message text.
741 2013-11-23 Doug Evans <xdje42@gmail.com>
743 * cli/cli-script.c (multi_line_command_p): New function.
744 (recurse_read_control_structure, read_command_lines_1): Call it.
745 (execute_control_command): Consistently have a blank line between
748 2013-11-22 Sterling Augustine <saugustine@google.com>
751 * valprint.c (read_string): Set new variable fetchlen based on
752 fetchlimit and size. Use it in call to partial_memory_read.
755 2013-11-22 Tom Tromey <tromey@redhat.com>
758 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
759 the return address column is unspecified.
761 2013-11-22 Tom Tromey <tromey@redhat.com>
762 Pedro Alves <palves@redhat.com>
765 * value.c (value_fetch_lazy): Internal error if
766 get_frame_register_value returns the same register.
768 2013-11-22 Pedro Alves <palves@redhat.com>
769 Tom Tromey <tromey@redhat.com>
771 * frame.c (frame_stash_add): Now returns whether a frame with the
772 same ID was already known.
773 (compute_frame_id): New function, factored out from get_frame_id.
774 (get_frame_id): No longer lazilly compute the frame id here.
775 (get_prev_frame_if_no_cycle): New function. Detects wider stack
777 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
778 and checking for stack cycles here.
780 2013-11-22 Pedro Alves <palves@redhat.com>
783 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
784 this frame and the new previous frame, not between this frame and
787 2013-11-22 Pedro Alves <palves@redhat.com>
790 * dwarf2-frame.c (struct dwarf2_frame_cache)
791 <checked_tailcall_bottom, entry_cfa_sp_offset,
792 entry_cfa_sp_offset_p>: New fields.
793 (dwarf2_frame_cache): Adjust to use the new cache fields instead
794 of locals. Don't call dwarf2_tailcall_sniffer_first here.
795 (dwarf2_frame_prev_register): Call it here, but only once.
797 2013-11-21 Doug Evans <xdje42@gmail.com>
799 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
800 (type_equality_entry): Move here from python/py-type.c.
801 (type_equality_entry_d): Ditto.
802 (compare_maybe_null_strings, check_types_equal): Ditto.
803 (check_types_worklist, types_deeply_equal): Ditto.
804 * gdbtypes.h (types_deeply_equal): Declare.
805 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
806 (typy_richcompare): Update.
808 2013-11-20 Joel Brobecker <brobecker@adacore.com>
810 * python/py-value.c (is_intlike): Delete.
811 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
812 by use of is_integral_type.
813 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
814 by use of is_integral_type and check for TYPE_CODE_PTR.
816 2013-11-20 Tom Tromey <tromey@redhat.com>
818 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
820 * gnulib/aclocal.m4: Update.
821 * gnulib/config.in: Update.
822 * gnulib/configure: Update.
823 * gnulib/import/Makefile.am: Update.
824 * gnulib/import/Makefile.in: Update.
825 * gnulib/import/errno.in.h: Remove.
826 * gnulib/import/intprops.h: Remove.
827 * gnulib/import/m4/errno_h.m4: Remove.
828 * gnulib/import/m4/gnulib-cache.m4: Update.
829 * gnulib/import/m4/gnulib-comp.m4: Update.
830 * gnulib/import/m4/strerror.m4: Remove.
831 * gnulib/import/m4/sys_socket_h.m4: Remove.
832 * gnulib/import/strerror-override.c: Remove.
833 * gnulib/import/strerror-override.h: Remove.
834 * gnulib/import/strerror.c: Remove.
835 * gnulib/update-gnulib.sh: Update.
837 2013-11-20 Yao Qi <yao@codesourcery.com>
839 * target-dcache.c (target_dcache_get_or_init): Call
840 set_address_space_data if 'dcache' is NULL.
842 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
844 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
846 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
848 * python/lib/gdb/command/bound_register.py: New file.
849 * data-directory/Makefile.in: Copy bond_register.py to the right path
850 to be initialized at gdb startup.
852 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
854 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
856 (amd64_linux_read_description): Add initialization for MPX and
858 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
859 (amd64_linux_gregset_reg_offset): Add MPX registers.
860 (amd64_linux_core_read_description): Add initialization for MPX
862 (_initialize_amd64_linux_tdep): Initialize MPX targets.
863 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
864 register on the list.
865 (tdesc_amd64_mpx_linux) Add new target for MPX.
866 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
867 (amd64_mpx_names): MPX register names.
868 (amd64_init_abi): Add MPX register while initializing the ABI.
869 (_initialize_amd64_tdep): Initialize MPX targets.
870 * amd64-tdep.h (amd64_regnum): Add MPX registers.
871 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
873 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
875 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
876 registers on the range of registers to be read from
878 (i386_linux_read_description): Add case for MPX.
879 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
880 (i386_linux_gregset_reg_offset): Add MPX registers.
881 (i386_linux_core_read_description): Initialize also MPX.
882 (_initialize_i386_linux_tdep): Add mpx initialization.
883 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
885 (i386_regnum): Add MPX registers.
886 (I386_MPX_NUM_REGS): New macro.
887 (i386_bnd_regnum_p): New function.
888 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
889 number of registers to be the number of BNDSTATUS.
890 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
891 * i386-tdep.c: Include features/i386/i386-mpx.c.
892 (i386_mpx_names): Add MPX register names array.
893 (i386_bnd_names): Add bnd pseudo register names array.
894 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
896 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
897 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
899 (i386_bnd_type): New function.
900 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
902 (i386_pseudo_register_read_into_value): Add bnd case.
903 (i386_pseudo_register_write): Add bnd pseudo registers.
904 (i386_register_reggroup_p): Add MPX register to the group all.
905 (i386_validate_tdesc_p): Add MPX to the target description
907 (i386_pseudo_register_name): Add bnd pseudo registers.
908 (i386_gdbarch_init): Add MPX for architecture initialization.
909 (_initia_initialize_i386_tdep): Add mpx initialization.
910 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
912 (XSAVE_MPX_ADDR): New macro.
913 (i387_supply_xsave): Add MPX case.
914 (i387_collect_xsave): Add MPX case.
915 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
916 (I387_BNDCFGU_REGNUM): New macro.
917 (I387_NUM_MPX_REGS): New macro.
918 (I387_NUM_BND_REGS): New macro.
919 (I387_NUM_MPX_CTRL_REGS): New macro.
920 (I387_MPXEND_REGNUM): New macro.
921 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
922 (I386_XSTATE_BNDCFG): Likewise.
923 (I386_XSTATE_MPX_MASK): Likewise.
924 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
925 (I386_XSTATE_BNDREGS_SIZE): New macro.
926 (I386_XSTATE_BNDCFG_SIZE): Likewise.
927 (I386_XSTATE_SIZE): Adapt for MPX.
928 (I386_XSTATE_MAX_SIZE): Likewise.
930 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
932 * features/i386/Makefile: Adapts for using MPX registers.
933 * features/i386/32bit-mpx.xml: New file.
934 * features/i386/64bit-mpx.xml: Likewise.
935 * features/i386/amd64-mpx-linux.c: Likewise.
936 * features/i386/amd64-mpx-linux.xml: Likewise.
937 * features/i386/amd64-mpx.c: Likewise.
938 * features/i386/amd64-mpx.xml: Likewise.
939 * features/i386/i386-mpx-linux.c: Likewise.
940 * features/i386/i386-mpx-linux.xml: Likewise.
941 * features/i386/i386-mpx.c: Likewise.
942 * features/i386/i386-mpx.xml: Likewise.
943 * regformats/i386/amd64-mpx-linux.dat: New file.
944 * regformats/i386/amd64-mpx.dat: Likewise.
945 * regformats/i386/i386-mpx-linux.dat: Likewise.
946 * regformats/i386/i386-mpx.dat: Likewise.
948 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
950 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
951 Modified logic of creating a bitfield to be in sync with
954 2013-11-20 Will Newton <will.newton@linaro.org>
956 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
959 2013-11-20 Yao Qi <yao@codesourcery.com>
961 * progspace.h (struct address_space_data): Declare.
962 * target-dcache.c: Include "progspace.h".
963 (target_dache): Remove.
964 (target_dcache_aspace_key): New.
965 (target_dcache_cleanup): New function.
966 (target_dcache_init_p): Get data through
967 target_dcache_aspace_key.
968 (target_dcache_invalidate): Likewise.
969 (target_dcache_get): Likewise.
970 (target_dcache_get_or_init): Likewise.
971 (_initialize_target_dcache): Initialize
972 target_dcache_aspace_key.
974 2013-11-20 Yao Qi <yao@codesourcery.com>
976 * progspace.c (struct address_space): Update comments.
977 <REGISTRY_FIELDS>: New fields.
978 DEFINE_REGISTRY for address_space.
979 (new_address_space): Call address_space_alloc_data.
980 (free_address_space): Call address_space_free_data.
981 * progspace.h: Use DECLARE_REGISTRY.
983 2013-11-20 Yao Qi <yao@codesourcery.com>
985 * Makefile.in (SFILES):Add target-dcache.c.
986 (HFILES_NO_SRCDIR): Add target-dcache.h.
987 (COMMON_OBS): Add target-dcache.o.
988 * dcache.c: Remove inclusion to "target.h". Include
990 * memattr.c: Include "target-dcache.h".
992 * tracepoint.c: Likewise.
993 * target.c: (stack_cache_enabled_p_1): Move to
995 (stack_cache_enabled_p): Likewise.
996 (set_stack_cache_enabled_p): Likewise.
997 (show_stack_cache_enabled_p): Likewise.
998 (target_dcache, target_dcache_init_p): Likewise.
999 (target_dcache_invalidate): Likewise.
1000 (target_dcache_get, target_dcache_get_or_init): Likewise.
1001 (memory_xfer_partial_1): Call function stack_cache_enabled.
1002 (initialize_target): Move code to target-dcache.c.
1003 * target.h (target_dcache_invalidate): Move to
1005 (target_dcache_get): Likewise.
1006 * target-dcache.c: New.
1007 * target-dcache.h: New.
1009 2013-11-20 Yao Qi <yao@codesourcery.com>
1011 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1014 2013-11-20 Yao Qi <yao@codesourcery.com>
1016 * dcache.c (last_cache): Remove.
1017 (dcache_free, dcache_init): Update.
1019 (dcache_print_line): Add parameter 'dcache'. Replace
1020 'target_dcache' with 'dcache'.
1021 (dcache_info): Move code to dcache_info_1. Call
1023 (dcache_info_1): New function.
1024 (set_dcache_size): Call target_dcache_invalidate.
1025 (set_dcache_line_size): Call target_dcache_invalidate.
1026 * target.c (target_dcache_init_p): New function.
1027 (target_dcache_invalidate): Check target_dcache_init_p first.
1028 (target_dcache_get, target_dcache_get_or_init): New function.
1029 (memory_xfer_partial_1): Adjust.
1030 (initialize_target): Don't initialize 'target_dcache'.
1031 * target.h (struct dcache_struct): Declare.
1032 (target_dcache_get): Declare.
1034 2013-11-19 Yao Qi <yao@codesourcery.com>
1036 * varobj.c (varobj_get_type): Fix typo.
1038 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1040 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1042 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1044 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1047 2013-11-18 Tom Tromey <tromey@redhat.com>
1049 * common/gdb_stat.h: Remove.
1050 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1051 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1052 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1053 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1054 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1055 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1056 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1057 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1058 * exec.c: Use sys/stat.h, not gdb_stat.h.
1059 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1060 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1061 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1062 * jit.c: Use sys/stat.h, not gdb_stat.h.
1063 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1064 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1065 * main.c: Use sys/stat.h, not gdb_stat.h.
1066 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1067 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1068 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1069 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1070 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1071 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1072 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1073 * remote.c: Use sys/stat.h, not gdb_stat.h.
1074 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1075 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1076 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1077 * source.c: Use sys/stat.h, not gdb_stat.h.
1078 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1079 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1080 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1081 * top.c: Use sys/stat.h, not gdb_stat.h.
1082 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1084 2013-11-18 Tom Tromey <tromey@redhat.com>
1086 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1088 * gnulib/aclocal.m4: Update.
1089 * gnulib/config.in: Update.
1090 * gnulib/configure: Update.
1091 * gnulib/import/Makefile.am: Update.
1092 * gnulib/import/Makefile.in: Update.
1093 * gnulib/import/m4/gnulib-cache.m4: Update.
1094 * gnulib/import/m4/gnulib-comp.m4: Update.
1095 * gnulib/import/m4/sys_stat_h.m4: New.
1096 * gnulib/import/m4/time_h.m4: New.
1097 * gnulib/import/sys_stat.in.h: New.
1098 * gnulib/import/time.in.h: New.
1100 2013-11-18 Tom Tromey <tromey@redhat.com>
1102 * configure: Rebuild.
1103 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1105 2013-11-18 Tom Tromey <tromey@redhat.com>
1107 * configure: Rebuild.
1108 * configure.ac: Don't check for unistd.h.
1110 2013-11-18 Tom Tromey <tromey@redhat.com>
1112 * configure: Rebuild.
1113 * configure.ac: Don't check for stdlib.h
1114 * defs.h: Include stdlib.h unconditionally.
1116 2013-11-18 Tom Tromey <tromey@redhat.com>
1118 * config.in: Rebuild.
1119 * configure: Rebuild.
1120 * configure.ac: Don't check for stddef.h.
1121 * defs.h: Unconditionally include stddef.h. Remove duplicate
1124 2013-11-18 Tom Tromey <tromey@redhat.com>
1126 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1127 * common/gdb_dirent.h: Remove.
1128 * common/filestuff.c: Use dirent.h.
1129 * common/linux-osdata.c: Use dirent.h.
1131 * config.in: Rebuild.
1132 * configure: Rebuild.
1133 * configure.ac: Don't use AC_HEADER_DIRENT.
1134 * linux-fork.c: Use dirent.h
1135 * linux-nat.c: Use dirent.h.
1136 * nto-procfs.c: Use dirent.h.
1137 * procfs.c: Use dirent.h.
1139 2013-11-18 Tom Tromey <tromey@redhat.com>
1141 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1142 * gnulib/aclocal.m4: Update.
1143 * gnulib/config.in: Update.
1144 * gnulib/configure: Update.
1145 * gnulib/import/Makefile.am: Update.
1146 * gnulib/import/Makefile.in: Update.
1147 * gnulib/import/dirent.in.h: New.
1148 * gnulib/import/m4/dirent_h.m4: New.
1149 * gnulib/import/m4/gnulib-cache.m4: Update.
1150 * gnulib/import/m4/gnulib-comp.m4: Update.
1152 2013-11-18 Tom Tromey <tromey@redhat.com>
1154 * configure: Rebuild.
1155 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1158 2013-11-18 Tom Tromey <tromey@redhat.com>
1160 * common/gdb_string.h: Remove.
1161 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1162 * ada-exp.y: Use string.h, not gdb_string.h.
1163 * ada-lang.c: Use string.h, not gdb_string.h.
1164 * ada-lex.l: Use string.h, not gdb_string.h.
1165 * ada-typeprint.c: Use string.h, not gdb_string.h.
1166 * ada-valprint.c: Use string.h, not gdb_string.h.
1167 * aix-thread.c: Use string.h, not gdb_string.h.
1168 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1169 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1170 * alpha-nat.c: Use string.h, not gdb_string.h.
1171 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1172 * alpha-tdep.c: Use string.h, not gdb_string.h.
1173 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1174 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1175 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1176 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1177 * amd64-nat.c: Use string.h, not gdb_string.h.
1178 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1179 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1180 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1181 * arch-utils.c: Use string.h, not gdb_string.h.
1182 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1183 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1184 * arm-tdep.c: Use string.h, not gdb_string.h.
1185 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1186 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1187 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1188 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1189 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1190 * avr-tdep.c: Use string.h, not gdb_string.h.
1191 * ax-gdb.c: Use string.h, not gdb_string.h.
1192 * ax-general.c: Use string.h, not gdb_string.h.
1193 * bcache.c: Use string.h, not gdb_string.h.
1194 * bfin-tdep.c: Use string.h, not gdb_string.h.
1195 * breakpoint.c: Use string.h, not gdb_string.h.
1196 * build-id.c: Use string.h, not gdb_string.h.
1197 * buildsym.c: Use string.h, not gdb_string.h.
1198 * c-exp.y: Use string.h, not gdb_string.h.
1199 * c-lang.c: Use string.h, not gdb_string.h.
1200 * c-typeprint.c: Use string.h, not gdb_string.h.
1201 * c-valprint.c: Use string.h, not gdb_string.h.
1202 * charset.c: Use string.h, not gdb_string.h.
1203 * cli-out.c: Use string.h, not gdb_string.h.
1204 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1205 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1206 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1207 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1208 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1209 * cli/cli-script.c: Use string.h, not gdb_string.h.
1210 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1211 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1212 * coffread.c: Use string.h, not gdb_string.h.
1213 * common/common-utils.c: Use string.h, not gdb_string.h.
1214 * common/filestuff.c: Use string.h, not gdb_string.h.
1215 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1216 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1217 * common/signals.c: Use string.h, not gdb_string.h.
1218 * common/vec.h: Use string.h, not gdb_string.h.
1219 * core-regset.c: Use string.h, not gdb_string.h.
1220 * corefile.c: Use string.h, not gdb_string.h.
1221 * corelow.c: Use string.h, not gdb_string.h.
1222 * cp-abi.c: Use string.h, not gdb_string.h.
1223 * cp-support.c: Use string.h, not gdb_string.h.
1224 * cp-valprint.c: Use string.h, not gdb_string.h.
1225 * cris-tdep.c: Use string.h, not gdb_string.h.
1226 * d-lang.c: Use string.h, not gdb_string.h.
1227 * dbxread.c: Use string.h, not gdb_string.h.
1228 * dcache.c: Use string.h, not gdb_string.h.
1229 * demangle.c: Use string.h, not gdb_string.h.
1230 * dicos-tdep.c: Use string.h, not gdb_string.h.
1231 * disasm.c: Use string.h, not gdb_string.h.
1232 * doublest.c: Use string.h, not gdb_string.h.
1233 * dsrec.c: Use string.h, not gdb_string.h.
1234 * dummy-frame.c: Use string.h, not gdb_string.h.
1235 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1236 * dwarf2loc.c: Use string.h, not gdb_string.h.
1237 * dwarf2read.c: Use string.h, not gdb_string.h.
1238 * elfread.c: Use string.h, not gdb_string.h.
1239 * environ.c: Use string.h, not gdb_string.h.
1240 * eval.c: Use string.h, not gdb_string.h.
1241 * event-loop.c: Use string.h, not gdb_string.h.
1242 * exceptions.c: Use string.h, not gdb_string.h.
1243 * exec.c: Use string.h, not gdb_string.h.
1244 * expprint.c: Use string.h, not gdb_string.h.
1245 * f-exp.y: Use string.h, not gdb_string.h.
1246 * f-lang.c: Use string.h, not gdb_string.h.
1247 * f-typeprint.c: Use string.h, not gdb_string.h.
1248 * f-valprint.c: Use string.h, not gdb_string.h.
1249 * fbsd-nat.c: Use string.h, not gdb_string.h.
1250 * findcmd.c: Use string.h, not gdb_string.h.
1251 * findvar.c: Use string.h, not gdb_string.h.
1252 * fork-child.c: Use string.h, not gdb_string.h.
1253 * frame.c: Use string.h, not gdb_string.h.
1254 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1255 * frv-tdep.c: Use string.h, not gdb_string.h.
1256 * gdb.c: Use string.h, not gdb_string.h.
1257 * gdb_bfd.c: Use string.h, not gdb_string.h.
1258 * gdbarch.c: Use string.h, not gdb_string.h.
1259 * gdbtypes.c: Use string.h, not gdb_string.h.
1260 * gnu-nat.c: Use string.h, not gdb_string.h.
1261 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1262 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1263 * go-exp.y: Use string.h, not gdb_string.h.
1264 * go-lang.c: Use string.h, not gdb_string.h.
1265 * go32-nat.c: Use string.h, not gdb_string.h.
1266 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1267 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1268 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1269 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1270 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1271 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1272 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1273 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1274 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1275 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1276 * i386-tdep.c: Use string.h, not gdb_string.h.
1277 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1278 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1279 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1280 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1281 * i387-tdep.c: Use string.h, not gdb_string.h.
1282 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1283 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1284 * inf-child.c: Use string.h, not gdb_string.h.
1285 * inf-ptrace.c: Use string.h, not gdb_string.h.
1286 * inf-ttrace.c: Use string.h, not gdb_string.h.
1287 * infcall.c: Use string.h, not gdb_string.h.
1288 * infcmd.c: Use string.h, not gdb_string.h.
1289 * inflow.c: Use string.h, not gdb_string.h.
1290 * infrun.c: Use string.h, not gdb_string.h.
1291 * interps.c: Use string.h, not gdb_string.h.
1292 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1293 * irix5-nat.c: Use string.h, not gdb_string.h.
1294 * jv-exp.y: Use string.h, not gdb_string.h.
1295 * jv-lang.c: Use string.h, not gdb_string.h.
1296 * jv-typeprint.c: Use string.h, not gdb_string.h.
1297 * jv-valprint.c: Use string.h, not gdb_string.h.
1298 * language.c: Use string.h, not gdb_string.h.
1299 * linux-fork.c: Use string.h, not gdb_string.h.
1300 * linux-nat.c: Use string.h, not gdb_string.h.
1301 * lm32-tdep.c: Use string.h, not gdb_string.h.
1302 * m2-exp.y: Use string.h, not gdb_string.h.
1303 * m2-typeprint.c: Use string.h, not gdb_string.h.
1304 * m32c-tdep.c: Use string.h, not gdb_string.h.
1305 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1306 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1307 * m32r-rom.c: Use string.h, not gdb_string.h.
1308 * m32r-tdep.c: Use string.h, not gdb_string.h.
1309 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1310 * m68k-tdep.c: Use string.h, not gdb_string.h.
1311 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1312 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1313 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1314 * m88k-tdep.c: Use string.h, not gdb_string.h.
1315 * macrocmd.c: Use string.h, not gdb_string.h.
1316 * main.c: Use string.h, not gdb_string.h.
1317 * mdebugread.c: Use string.h, not gdb_string.h.
1318 * mem-break.c: Use string.h, not gdb_string.h.
1319 * memattr.c: Use string.h, not gdb_string.h.
1320 * memory-map.c: Use string.h, not gdb_string.h.
1321 * mep-tdep.c: Use string.h, not gdb_string.h.
1322 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1323 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1324 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1325 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1326 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1327 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1328 * mi/mi-console.c: Use string.h, not gdb_string.h.
1329 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1330 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1331 * mi/mi-main.c: Use string.h, not gdb_string.h.
1332 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1333 * microblaze-rom.c: Use string.h, not gdb_string.h.
1334 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1335 * mingw-hdep.c: Use string.h, not gdb_string.h.
1336 * minidebug.c: Use string.h, not gdb_string.h.
1337 * minsyms.c: Use string.h, not gdb_string.h.
1338 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1339 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1340 * mips-tdep.c: Use string.h, not gdb_string.h.
1341 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1342 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1343 * mipsread.c: Use string.h, not gdb_string.h.
1344 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1345 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1346 * monitor.c: Use string.h, not gdb_string.h.
1347 * moxie-tdep.c: Use string.h, not gdb_string.h.
1348 * mt-tdep.c: Use string.h, not gdb_string.h.
1349 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1350 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1351 * nto-procfs.c: Use string.h, not gdb_string.h.
1352 * nto-tdep.c: Use string.h, not gdb_string.h.
1353 * objc-lang.c: Use string.h, not gdb_string.h.
1354 * objfiles.c: Use string.h, not gdb_string.h.
1355 * opencl-lang.c: Use string.h, not gdb_string.h.
1356 * osabi.c: Use string.h, not gdb_string.h.
1357 * osdata.c: Use string.h, not gdb_string.h.
1358 * p-exp.y: Use string.h, not gdb_string.h.
1359 * p-lang.c: Use string.h, not gdb_string.h.
1360 * p-typeprint.c: Use string.h, not gdb_string.h.
1361 * parse.c: Use string.h, not gdb_string.h.
1362 * posix-hdep.c: Use string.h, not gdb_string.h.
1363 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1364 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1365 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1366 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1367 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1368 * printcmd.c: Use string.h, not gdb_string.h.
1369 * procfs.c: Use string.h, not gdb_string.h.
1370 * prologue-value.c: Use string.h, not gdb_string.h.
1371 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1372 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1373 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1374 * regcache.c: Use string.h, not gdb_string.h.
1375 * registry.c: Use string.h, not gdb_string.h.
1376 * remote-fileio.c: Use string.h, not gdb_string.h.
1377 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1378 * remote-mips.c: Use string.h, not gdb_string.h.
1379 * remote-sim.c: Use string.h, not gdb_string.h.
1380 * remote.c: Use string.h, not gdb_string.h.
1381 * reverse.c: Use string.h, not gdb_string.h.
1382 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1383 * ser-base.c: Use string.h, not gdb_string.h.
1384 * ser-go32.c: Use string.h, not gdb_string.h.
1385 * ser-mingw.c: Use string.h, not gdb_string.h.
1386 * ser-pipe.c: Use string.h, not gdb_string.h.
1387 * ser-tcp.c: Use string.h, not gdb_string.h.
1388 * ser-unix.c: Use string.h, not gdb_string.h.
1389 * serial.c: Use string.h, not gdb_string.h.
1390 * sh-tdep.c: Use string.h, not gdb_string.h.
1391 * sh64-tdep.c: Use string.h, not gdb_string.h.
1392 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1393 * skip.c: Use string.h, not gdb_string.h.
1394 * sol-thread.c: Use string.h, not gdb_string.h.
1395 * solib-dsbt.c: Use string.h, not gdb_string.h.
1396 * solib-frv.c: Use string.h, not gdb_string.h.
1397 * solib-osf.c: Use string.h, not gdb_string.h.
1398 * solib-spu.c: Use string.h, not gdb_string.h.
1399 * solib-target.c: Use string.h, not gdb_string.h.
1400 * solib.c: Use string.h, not gdb_string.h.
1401 * somread.c: Use string.h, not gdb_string.h.
1402 * source.c: Use string.h, not gdb_string.h.
1403 * sparc-nat.c: Use string.h, not gdb_string.h.
1404 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1405 * sparc-tdep.c: Use string.h, not gdb_string.h.
1406 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1407 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1408 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1409 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1410 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1411 * spu-multiarch.c: Use string.h, not gdb_string.h.
1412 * spu-tdep.c: Use string.h, not gdb_string.h.
1413 * stabsread.c: Use string.h, not gdb_string.h.
1414 * stack.c: Use string.h, not gdb_string.h.
1415 * std-regs.c: Use string.h, not gdb_string.h.
1416 * symfile.c: Use string.h, not gdb_string.h.
1417 * symmisc.c: Use string.h, not gdb_string.h.
1418 * symtab.c: Use string.h, not gdb_string.h.
1419 * target.c: Use string.h, not gdb_string.h.
1420 * thread.c: Use string.h, not gdb_string.h.
1421 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1422 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1423 * top.c: Use string.h, not gdb_string.h.
1424 * tracepoint.c: Use string.h, not gdb_string.h.
1425 * tui/tui-command.c: Use string.h, not gdb_string.h.
1426 * tui/tui-data.c: Use string.h, not gdb_string.h.
1427 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1428 * tui/tui-file.c: Use string.h, not gdb_string.h.
1429 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1430 * tui/tui-out.c: Use string.h, not gdb_string.h.
1431 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1432 * tui/tui-source.c: Use string.h, not gdb_string.h.
1433 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1434 * tui/tui-win.c: Use string.h, not gdb_string.h.
1435 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1436 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1437 * typeprint.c: Use string.h, not gdb_string.h.
1438 * ui-file.c: Use string.h, not gdb_string.h.
1439 * ui-out.c: Use string.h, not gdb_string.h.
1440 * user-regs.c: Use string.h, not gdb_string.h.
1441 * utils.c: Use string.h, not gdb_string.h.
1442 * v850-tdep.c: Use string.h, not gdb_string.h.
1443 * valarith.c: Use string.h, not gdb_string.h.
1444 * valops.c: Use string.h, not gdb_string.h.
1445 * valprint.c: Use string.h, not gdb_string.h.
1446 * value.c: Use string.h, not gdb_string.h.
1447 * varobj.c: Use string.h, not gdb_string.h.
1448 * vax-tdep.c: Use string.h, not gdb_string.h.
1449 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1450 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1451 * windows-nat.c: Use string.h, not gdb_string.h.
1452 * xcoffread.c: Use string.h, not gdb_string.h.
1453 * xml-support.c: Use string.h, not gdb_string.h.
1454 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1455 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1457 2013-11-18 Tom Tromey <tromey@redhat.com>
1459 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1461 * gnulib/aclocal.m4: Update.
1462 * gnulib/config.in: Update.
1463 * gnulib/configure: Update.
1464 * gnulib/import/Makefile.am: Update.
1465 * gnulib/import/Makefile.in: Update.
1466 * gnulib/import/errno.in.h: New.
1467 * gnulib/import/intprops.h: New.
1468 * gnulib/import/m4/errno_h.m4: New.
1469 * gnulib/import/m4/gnulib-cache.m4: Update.
1470 * gnulib/import/m4/gnulib-comp.m4: Update.
1471 * gnulib/import/m4/strerror.m4: New.
1472 * gnulib/import/m4/strstr.m4: New.
1473 * gnulib/import/m4/sys_socket_h.m4: New.
1474 * gnulib/import/strerror-override.c: New.
1475 * gnulib/import/strerror-override.h: New.
1476 * gnulib/import/strerror.c: New.
1477 * gnulib/import/strstr.c: New.
1479 2013-11-18 Tom Tromey <tromey@redhat.com>
1481 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1484 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1486 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1487 * sparc-tdep.h: And its prototype.
1489 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1491 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1493 2013-11-18 Pedro Alves <palves@redhat.com>
1495 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1498 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1500 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1501 to -list-features output.
1503 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1505 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1506 <read_addr_from_reg>: Renames "read_reg".
1507 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1509 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1510 Use read_addr_from_reg in place of read_reg.
1511 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1512 in place of read_reg.
1513 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1514 dwarf_expr_read_reg.
1515 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1516 with dwarf_expr_read_addr_from_reg.
1517 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1518 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1519 needs_frame_read_addr_from_reg.
1521 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1523 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1525 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1527 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1530 2013-11-15 Tom Tromey <tromey@redhat.com>
1533 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1534 (classify_name): Likewise. Prefer a field of "this" over a
1536 (classify_inner_name, yylex): Update.
1538 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1540 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1541 Extend the documentation a bit.
1542 <get_reg_value>: New field.
1543 * dwarf2loc.c (dwarf_expr_get_reg_value)
1544 (needs_frame_get_reg_value): New functions.
1545 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1547 * dwarf2-frame.c (get_reg_value): New function.
1548 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1549 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1550 Use new callback to compute result_val.
1552 2013-11-15 Alan Modra <amodra@gmail.com>
1554 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1555 (ppc64_desc_entry_point): ..this. Update comments here and at
1557 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1558 ppc64_standard_linkage3): Update comments.
1559 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1560 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1562 (ppc64_standard_linkage4_target): New function.
1563 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1564 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1565 nop match. Fix comment wrap.
1567 2013-11-14 Pedro Alves <palves@redhat.com>
1569 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1570 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1572 2013-11-14 Pedro Alves <palves@redhat.com>
1574 * infrun.c (struct execution_control_state)
1575 <stepped_after_stopped_by_watchpoint>: New field.
1576 (get_inferior_stop_soon): New function.
1577 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1578 moved to struct execution_control_state -- adjust. Use
1579 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1581 (handle_signal_stop): New function, factored out from
1582 handle_inferior_event.
1584 2013-11-14 Pedro Alves <palves@redhat.com>
1586 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1588 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1590 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1591 Adjust to return a boolean.
1592 * breakpoint.h (enum bpstat_signal_value): Delete.
1593 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1594 (bpstat_explains_signal): Likewise.
1595 * infrun.c (handle_inferior_event) <random signal checks>:
1596 bpstat_explains_signal now returns a boolean - adjust. No longer
1597 consider hiding signals.
1599 2013-11-14 Pedro Alves <palves@redhat.com>
1601 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1602 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1603 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1605 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1606 instead of BPSTAT_SIGNAL_HIDE.
1607 * infrun.c (handle_inferior_event): Rework random signal checks.
1609 2013-11-14 Pedro Alves <palves@redhat.com>
1611 * infrun.c (struct execution_control_state): Remove
1612 'random_signal' field.
1613 (handle_syscall_event): Use bpstat_causes_stop instead of
1614 bpstat_explains_signal. Don't set ecs->random_signal.
1615 (handle_inferior_event): New 'random_signal' local.
1616 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1617 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1618 bpstat_explains_signal. Don't set ecs->random_signal.
1619 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1622 2013-11-14 Pedro Alves <palves@redhat.com>
1624 * infrun.c (handle_inferior_event): Move comment from the
1625 function's body to the function's description, adjusted.
1627 2013-11-14 Pedro Alves <palves@redhat.com>
1629 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1630 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1631 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1634 2013-11-14 Tom Tromey <tromey@redhat.com>
1636 * python/py-linetable.c (ltpy_has_line)
1637 (ltpy_get_all_source_lines): Fix loop termination condition.
1639 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1641 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1642 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1643 PARSE->LANGUAGE during command execution, if set.
1644 * mi/mi-parse.c: Add "language.h" #include.
1645 (mi_parse): Add parsing of "--language" command option.
1647 * NEWS: Add entry mentioning the new "--language" command option.
1649 2013-11-14 Pedro Alves <palves@redhat.com>
1650 Joel Brobecker <brobecker@adacore.com>
1652 * cli/cli-utils.h (extract_arg_const): Add declaration.
1653 * cli/cli-utils.c (extract_arg_const): New function.
1654 (extract_arg): Reimplement using extract_arg_const.
1656 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1658 * language.h: Add "symtab.h" #include.
1660 2013-11-13 Doug Evans <xdje42@gmail.com>
1662 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1663 specific breakpoints, don't evaluate breakpoint condition if
1666 2013-11-13 Keith Seitz <keiths@redhat.com>
1670 * cp-support.c (insepct_type): Add support for substituting
1671 namespace aliases, too.
1672 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1673 for DW_TAG_imported_declaration.
1674 (add_partial_symbol): Likewise.
1675 (process_die): Handle namespace aliases with
1676 read_namespace_alias.
1677 (die_needs_namespace): Add DW_TAG_imported_declaration.
1678 (read_namespace_alias): New function.
1679 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1680 (new_symbol_full): Handle DW_TAG_imported_declaration.
1682 2013-11-13 Keith Seitz <keiths@redhat.com>
1684 * p-exp.y (uptok): Make first parameter const.
1685 (yylex): Make `tokstart' and `tokptr' const.
1686 Don't copy the lexer input to a temporary buffer.
1688 Remove const workaround for parse_escape.
1689 Create a temporary buffer for a convenience variable instead
1690 of doing in-place modification of the input.
1691 If a match is found with a different case from the input,
1692 do not change the input at all.
1693 Use `tmp' to construct the resultant stoken instead of
1696 2013-11-13 Doug Evans <xdje42@gmail.com>
1698 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1700 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1702 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1703 entry with "ada-exceptions".
1705 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1707 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1708 after re-initialization of OBJFILE's obstack.
1710 2013-11-12 Doug Evans <xdje42@gmail.com>
1712 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1713 bs->stop != 0 on entry. Update function comment. Simplify early
1714 exit for frame mismatch. Reindent rest of function.
1716 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1718 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1721 2013-11-12 Doug Evans <dje@google.com>
1723 Work around gold/15646.
1724 * dwarf2read.c (read_index_from_section): Update comment.
1725 (struct dw2_symtab_iterator): New member global_seen.
1726 (dw2_symtab_iter_init): Initialize it.
1727 (dw2_symtab_iter_next): Skip duplicate global symbols.
1728 (dw2_expand_symtabs_matching): Ditto.
1730 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1732 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1733 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1735 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1736 (mi_cmd_info_ada_exceptions): New function.
1737 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1739 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1741 * ada-lang.h: #include "vec.h".
1742 (struct ada_exc_info): New.
1743 (ada_exc_info): New typedef.
1744 (DEF_VEC_O(ada_exc_info)): New vector.
1745 (ada_exceptions_list): Add declaration.
1746 * ada-lang.c (ada_is_exception_sym)
1747 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1748 (sort_remove_dups_ada_exceptions_list)
1749 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1750 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1751 (ada_exceptions_list_1, ada_exceptions_list)
1752 (info_exceptions_command): New function.
1753 (_initialize_ada_language): Add "info exception" command.
1755 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1758 * NEWS: Add linetable feature.
1759 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1760 * python/py-linetable.c: New file.
1761 * python/py-symtab.c (stpy_get_linetable): New function.
1762 * python/python-internal.h (symtab_to_linetable_object): Declare.
1763 (gdbpy_initialize_linetable): Ditto.
1764 * python/python.c (_initialize_python): Call
1765 gdbpy_initialize_linetable.
1767 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1769 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1770 the documentation of fields "except_string" and "condition".
1771 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1772 CONDITION on the heap before passing it to
1773 create_ada_exception_catchpoint.
1774 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1777 2013-11-11 Tom Tromey <tromey@redhat.com>
1779 * config.in, configure: Rebuild.
1780 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1782 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1784 * remote-sim.c (gdbsim_detach): Break declaration into
1785 shorter lines. No code change.
1787 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1789 * remote-sim.c (gdbsim_detach): Fix prototype.
1791 2013-11-08 Doug Evans <dje@google.com>
1793 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1794 (create_debug_types_hash_table): Only print debugging messages for
1795 each TU if dwarf2-read >= 2.
1796 (process_queue): Ditto.
1797 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1800 2013-11-08 Tom Tromey <tromey@redhat.com>
1802 * configure: Rebuild.
1803 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1805 2013-11-08 Tom Tromey <tromey@redhat.com>
1807 * configure, config.in: Rebuild.
1808 * configure.ac: Remove unused configury.
1810 2013-11-08 Tom Tromey <tromey@redhat.com>
1812 * m32c-tdep.c: Use gdb_string.h.
1814 2013-11-08 Tom Tromey <tromey@redhat.com>
1816 * configure, config.in: Rebuild.
1817 * configure.ac: Remove all link.h-related checks.
1819 2013-11-08 Tom Tromey <tromey@redhat.com>
1821 * acinclude.m4: Include common.m4.
1822 * common/common.m4: New file.
1823 * configure, config.in: Rebuild.
1824 * configure.ac: Use GDB_AC_COMMON.
1826 2013-11-08 Doug Evans <dje@google.com>
1828 * NEWS: Mention that "set debug symtab-create" now accepts a
1830 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1831 to set the symtab's primary flag.
1832 * jit.c (finalize_symtab): Ditto.
1833 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1834 * symfile.c (allocate_symtab): Only print debugging messages for
1835 symtab_create_debug levels 2 and higher.
1836 * symtab.c (symtab_create_debug): Change type to unsigned int.
1837 (set_symtab_primary): New function.
1838 (_initialize_symtab): Change "set debug symtab-create" to a
1840 * symtab.h (set_symtab_primary): Declare.
1841 (symtab_create_debug): Update decl.
1843 2013-11-08 Tom Tromey <tromey@redhat.com>
1845 * aix-thread.c (aix_thread_detach): Update.
1846 * corelow.c (core_detach): Update.
1847 * darwin-nat.c (darwin_detach): Update.
1848 * dec-thread.c (dec_thread_detach): Update.
1849 * gnu-nat.c (gnu_detach): Update.
1850 * go32-nat.c (go32_detach): Update.
1851 * inf-ptrace.c (inf_ptrace_detach): Update.
1852 * inf-ttrace.c (inf_ttrace_detach): Update.
1853 * linux-fork.c (linux_fork_detach): Update.
1854 * linux-fork.h (linux_fork_detach): Update.
1855 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1856 local for const-correctness.
1857 * linux-thread-db.c (thread_db_detach): Update.
1858 * monitor.c (monitor_detach): Update.
1859 * nto-procfs.c (procfs_detach): Update.
1860 * procfs.c (procfs_detach): Update.
1861 * record.c (record_detach): Update.
1862 * record.h (record_detach): Update.
1863 * remote-m32r-sdi.c (m32r_detach): Update.
1864 * remote-mips.c (mips_detach): Update.
1865 * remote-sim.c (gdbsim_detach): Update.
1866 * remote.c (remote_detach_1, remote_detach)
1867 (extended_remote_detach): Update.
1868 * sol-thread.c (sol_thread_detach): Update.
1869 * target.c (target_detach): Make "args" const.
1870 (init_dummy_target): Update.
1871 * target.h (struct target_ops) <to_detach>: Make argument const.
1872 (target_detach): Likewise.
1873 * windows-nat.c (windows_detach): Update.
1875 2013-11-07 Doug Evans <dje@google.com>
1878 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1879 and align fields for PT_GNU_RELRO segments.
1881 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1884 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1886 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1888 * NEWS: Document Python temporary breakpoint support.
1889 * python/py-breakpoint.c (bppy_get_temporary): New function.
1890 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1891 to temporary if True.
1893 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1895 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1896 removed to allow analyzing unconditional branch instructions
1897 with PC-relative offsets of zero.
1899 2013-11-07 Yao Qi <yao@codesourcery.com>
1901 * mi/mi-cmd-var.c: Include "language.h".
1902 (mi_cmd_var_info_expression): Get language name from
1904 * varobj.c (varobj_language_string): Remove.
1905 (variable_language): Remove declaration.
1906 (languages): Remove.
1907 (varobj_get_language): Change the type of return value.
1908 (variable_language): Remove.
1909 * varobj.h (enum varobj_languages): Remove.
1910 (varobj_language_string): Remove declaration.
1911 (varobj_get_language): Update declaration.
1913 2013-11-07 Yao Qi <yao@codesourcery.com>
1915 * language.h (struct language_defn) <la_natural_name>: New
1917 * ada-lang.c (ada_language_defn): Initialize field
1919 * c-lang.c (c_language_defn): Likewise.
1920 (cplus_language_defn, asm_language_defn): Likewise.
1921 * d-lang.c (d_language_defn): Likewise.
1922 * f-lang.c (f_language_defn): Likewise.
1923 * go-lang.c (go_language_defn): Likewise.
1924 * jv-lang.c (java_language_defn): Likewise.
1925 * language.c (unknown_language_defn ): Likewise.
1926 (auto_language_defn): Likewise.
1927 * m2-lang.c (m2_language_defn): Likewise.
1928 * objc-lang.c (objc_language_defn): Likewise.
1929 * opencl-lang.c (opencl_language_defn): Likewise.
1930 * p-lang.c (pascal_language_defn): Likewise.
1932 2013-11-07 Yao Qi <yao@codesourcery.com>
1934 * language.c (language_str): Return const char *.
1935 (add_language): Add const to 'language_names'
1936 * language.h (struct language_defn) <la_name>: Add const.
1937 (language_str: Update declaration.
1939 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1941 * s390-linux-nat.c (s390_read_description): Consider the TE field
1942 in the HWCAP for determining 'have_regset_tdb'.
1944 2013-11-06 Will Newton <will.newton@linaro.org>
1947 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1948 values. (read_partial_die): Likewise.
1950 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1953 * top.c (command_line_input): Unify interactivity tests to use
1954 input_from_terminal_p.
1955 * event-top.c (command_line_handler): Likewise.
1957 2013-11-06 Yao Qi <yao@codesourcery.com>
1959 * Makefile.in (check-perf): New target.
1961 2013-11-05 Will Newton <will.newton@linaro.org>
1964 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1965 (arm_print_float_info): Likewise.
1967 2013-11-04 Anton Blanchard <anton@samba.org>
1969 * target.c (memory_xfer_partial): Cap write to 4KB.
1971 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1973 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1974 probe scan even when the arch provides no get_longjmp_target.
1976 2013-10-31 Pedro Alves <palves@redhat.com>
1978 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1979 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1980 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1981 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1982 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1983 <bpstat handling>: If the bpstat chain wants the signal to be
1984 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1987 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1989 * breakpoint.c (update_watchpoint): Update error message and add
1990 an additional error message.
1992 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1994 * s390-tdep.h: Rename to...
1995 * s390-linux-tdep.h: ...here.
1996 * s390-tdep.c: Rename to...
1997 * s390-linux-tdep.c: ...here. Adjust #include.
1998 * s390-nat.c: Rename to...
1999 * s390-linux-nat.c: ...here. Adjust #include.
2000 * config/s390/s390.mh: Rename to...
2001 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
2003 * configure.host: Reflect host rename "s390" -> "linux".
2004 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2005 * Makefile.in (ALL_TARGET_OBS): Likewise.
2006 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2008 (ALLDEPFILES): Reflect rename of .c files.
2010 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2012 * s390-nat.c: Whitespace cleanup.
2013 * s390-tdep.c: Likewise.
2014 * s390-tdep.h: Remove empty line at end of file.
2016 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2018 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2021 2013-10-29 Tom Tromey <tromey@redhat.com>
2023 * utils.c (reg): Move undefinition...
2024 * gdb_curses.h: ... here. Update comment to mention AIX.
2026 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2028 * exec.h (add_target_sections_of_objfile): New declaration.
2029 * exec.c (add_target_sections_of_objfile): New function.
2030 * symfile.c (add_symbol_file_command): Update current target sections.
2031 (remove_symbol_file_command): New command.
2032 (symfile_free_objfile): New function.
2033 (_initialize_symfile): Register observer for free_objfile events.
2034 * NEWS: Add description of the remove-symbol-file command.
2035 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2036 * objfiles.c (free_objfile): Notify free_objfile.
2037 (is_addr_in_objfile): New function.
2038 * objfiles.h (is_addr_in_objfile): New declaration.
2039 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2040 events instead of solib_unloaded events.
2041 (_initialize_printcmd): Register observer for free_objfile instead
2042 of solib_unloaded notifications.
2043 * solib.c (remove_user_added_objfile): New function.
2044 (_initialize_symfile): Add remove-symbol-file.
2046 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2048 * infcmd.c (default_print_one_register_info): Use val_print to
2049 print all values even optimized out or unavailable ones. Don't
2050 try to print a raw form of optimized out or unavailable values.
2052 2013-10-29 Yao Qi <yao@codesourcery.com>
2054 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2055 parameter 'arg' instead of from program_space_data.
2056 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2057 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2058 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2059 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2060 * inflow.c (inflow_inferior_data_cleanup): Get data from
2061 parameter 'arg' instead of inferior_data.
2062 * registry.h: Add comments.
2064 2013-10-28 Pedro Alves <palves@redhat.com>
2066 * breakpoint.c (watchpoints_triggered)
2067 <!target_stopped_data_address>: Hardcode return 1.
2069 2013-10-28 Pedro Alves <palves@redhat.com>
2071 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2074 2013-10-28 Pedro Alves <palves@redhat.com>
2076 * infrun.c (process_event_stop_test): New function, factored out
2077 from handle_inferior_event.
2078 (handle_inferior_event): 'process_event_stop_test' is now a
2079 function instead of a goto label -- adjust.
2081 2013-10-28 Pedro Alves <palves@redhat.com>
2083 * infrun.c (handle_inferior_event): Move process_event_stop_test
2084 goto label to the else branch of the ecs->random_signal check,
2085 along with FRAME and GDBARCH re-fetching.
2087 2013-10-28 Pedro Alves <palves@redhat.com>
2089 * infrun.c (switch_back_to_stepped_thread): New function, factored
2090 out from handle_inferior_event.
2091 (handle_inferior_event): Adjust to call
2092 switch_back_to_stepped_thread. Call it also at the tail of the
2093 random signal handling, and return, instead of also handling
2094 random signals just before the stepping tests.
2096 2013-10-28 Pedro Alves <palves@redhat.com>
2098 * infrun.c (clear_stop_func): Delete.
2099 (handle_inferior_event): Don't call clear_stop_func and don't
2100 clear 'ecs->random_signal'.
2102 2013-10-27 Yao Qi <yao@codesourcery.com>
2104 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2105 (varobj_create, varobj_get_path_expr): Update.
2106 (varobj_value_has_mutated, varobj_update): Likewise.
2107 (create_child_with_value, new_root_variable): Likewise.
2108 (number_of_children, name_of_variable): Likewise.
2109 (value_of_child, my_value_of_variable): Likewise.
2110 (varobj_value_is_changeable_p): Likewise.
2112 2013-10-25 Yao Qi <yao@codesourcery.com>
2114 * language.h (struct lang_varobj_ops): Declare.
2115 (struct language_defn) <la_varobj_ops>: New field.
2116 * ada-lang.c: Include "varobj.h"
2117 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2119 * c-lang.c: Include "varobj.h"
2120 (c_language_defn): Initialize field 'la_varobj_ops' with
2122 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2124 (asm_language_defn): Initialize field 'la_varobj_ops' with
2126 (minimal_language_defn): Likewise.
2127 * d-lang.c (d_language_defn): Likewise.
2128 * f-lang.c (f_language_defn): Likewise.
2129 * go-lang.c (go_language_defn): Likewise.
2130 * m2-lang.c (m2_language_defn): Likewise.
2131 * objc-lang.c (objc_language_defn): Likewise.
2132 * opencl-lang.c (opencl_language_defn): Likewise.
2133 * p-lang.c (pascal_language_defn): Likewise.
2134 * language.c (unknown_language_defn): Likewise.
2135 (auto_language_defn): Likewise.
2136 (local_language_defn): Likewise.
2137 * jv-lang.c (java_language_defn): Initialize field
2138 'la_varobj_ops' with java_varobj_ops.
2139 * varobj.c (varobj_create): Update.
2140 * varobj.h (default_varobj_ops): Define macro.
2142 2013-10-25 Pedro Alves <palves@redhat.com>
2144 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2146 (cp_print_static_field): If the value is entirely optimized out,
2147 print <optimized out> here.
2148 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2150 * p-valprint.c (pascal_object_print_static_field): If the value is
2151 entirely optimized out, print <optimized out> here.
2152 * valops.c (do_search_struct_field)
2153 (value_struct_elt_for_reference): No longer handle a NULL static
2155 * value.c (value_static_field): Return an optimized out value
2158 2013-10-25 Yao Qi <yao@codesourcery.com>
2160 * remote.c (remote_traceframe_info): Return early if
2161 traceframe is not selected.
2163 2013-10-25 Yao Qi <yao@codesourcery.com>
2165 * tracepoint.c (traceframe_fun): Remove.
2166 (traceframe_sal): Remove.
2167 (set_traceframe_context): Add local variables.
2169 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2171 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2174 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2176 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2177 failure from register information collection.
2179 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2181 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2183 (linux_corefile_thread_callback): Update accordingly.
2184 (linux_make_corefile_notes): Likewise.
2186 2013-10-24 Pedro Alves <palves@redhat.com>
2188 * NEWS (New options): Mention set/show startup-with-shell.
2189 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2191 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2192 startup-with-shell'.
2193 (show_startup_with_shell): New function.
2194 (_initialize_fork_child): Register the set/show startup-with-shell
2196 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2197 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2198 * procfs.c (procfs_init_inferior): Remove comment.
2199 * infcmd.c (startup_with_shell): New global.
2200 * inferior.h (startup_with_shell): Declare global.
2201 (STARTUP_WITH_SHELL): Delete.
2202 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2204 2013-10-23 Pedro Alves <palves@redhat.com>
2206 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2207 * common/signals.c: Include "gdb_assert.h".
2208 (signals): New field 'symbol'.
2209 (SET): Use the 'symbol' parameter.
2210 (gdb_signal_to_symbol_string): New function.
2211 * infrun.c (handle_inferior_event) <random signal>: In debug
2212 output, print the random signal enum as string in addition to its
2214 * target/waitstatus.c (target_waitstatus_to_string): Print the
2215 signal's enum value as string instead of the (POSIX) signal name.
2217 2013-10-23 Gary Benson <gbenson@redhat.com>
2220 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2221 from 32 to 18. Adjusted fscanf format string accordingly.
2222 (Avoids leaving cmd unterminated.)
2223 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2224 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2225 that local_address and remote_address will not overflow.
2226 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2227 leaving dependencies unterminated. Parse size as "%u" to match
2230 2013-10-22 Pedro Alves <palves@redhat.com>
2232 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2233 set ecs->random signal.
2235 2013-10-22 Pedro Alves <palves@redhat.com>
2237 * infrun.c (keep_going): Update comments.
2239 2013-10-22 Pedro Alves <palves@redhat.com>
2241 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2242 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2244 2013-10-22 Pedro Alves <palves@redhat.com>
2246 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2248 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2249 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2250 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2251 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2252 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2253 (GDB_SIGNAL_LAST): Change description string.
2254 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2255 Adjust to signal renaming.
2256 * darwin-nat.c (darwin_decode_message): Likewise.
2258 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2260 * MAINTAINERS (Write After Approval): Add myself to the list.
2262 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2264 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2265 forced off, downgrade them to software watchpoints if possible,
2266 and error out if not possible.
2267 (watch_command_1): Move watchpoint type selection closer to
2268 watchpoint creation, and extend the comments.
2270 2013-10-18 Pedro Alves <palves@redhat.com>
2273 * infrun.c (handle_inferior_event): Keep going if we got a random
2274 signal we should not stop for, instead of falling through to the
2277 2013-10-18 Yao Qi <yao@codesourcery.com>
2279 * c-varobj.c (cplus_number_of_children): Fix indentation.
2281 2013-10-17 Tom Tromey <tromey@redhat.com>
2284 * printcmd.c (printcmd): Call gdb_flush.
2286 2013-10-17 Tom Tromey <tromey@redhat.com>
2288 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2289 (elf_locate_sections): Update.
2291 2013-10-17 Yao Qi <yao@codesourcery.com>
2293 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2294 * ada-varobj.c: Remove the include of ada-varobj.h.
2295 (ada_varobj_get_number_of_children): Declare.
2296 (ada_varobj_get_name_of_child): Make it static.
2297 (ada_varobj_get_path_expr_of_child): Likewise.
2298 (ada_varobj_get_value_of_child): Likewise.
2299 (ada_varobj_get_type_of_child): Likewise.
2300 (ada_varobj_get_value_of_array_variable): Likewise.
2301 * ada-varobj.h: Remove.
2303 2013-10-17 Yao Qi <yao@codesourcery.com>
2305 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2306 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2307 * ada-varobj.c: Include "varobj.h".
2308 (ada_number_of_children): New. Moved from varobj.c.
2309 (ada_name_of_variable, ada_name_of_child): Likewise.
2310 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2311 (ada_type_of_child, ada_value_of_variable): Likewise.
2312 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2313 (ada_varobj_ops): New.
2314 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2315 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2316 * gdbtypes.h (get_target_type): Declare.
2317 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2319 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2320 (ANONYMOUS_UNION_NAME): Likewise.
2321 (get_type, get_value_type, get_target_type): Remove declarations.
2322 (value_get_print_value, varobj_value_get_print_value): Likewise.
2323 (c_number_of_children, c_name_of_variable): Likewise.
2324 (c_name_of_child, c_path_expr_of_child): Likewise.
2325 (c_value_of_child, c_type_of_child): Likewise.
2326 (c_value_of_variable, cplus_number_of_children): Likewise.
2327 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2328 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2329 (cplus_value_of_child, cplus_type_of_child): Likewise.
2330 (cplus_value_of_variable, java_number_of_children): Likewise.
2331 (java_name_of_variable, java_name_of_child): Likewise.
2332 (java_path_expr_of_child, java_value_of_child): Likewise.
2333 (java_type_of_child, java_value_of_variable): Likewise.
2334 (ada_number_of_children, ada_name_of_variable): Likewise.
2335 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2336 (ada_value_of_child, ada_type_of_child): Likewise.
2337 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2338 (ada_value_has_mutated): Likewise.
2339 (struct language_specific): Move it to varobj.h.
2340 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2341 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2343 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2345 (is_anonymous_child): Move it to c-varobj.c and rename to
2346 varobj_is_anonymous_child. Caller update.
2347 (get_type): Move it to c-varobj.c.
2348 (get_value_type): Rename it varobj_get_value_type. Make it
2350 (get_target_type): Move it gdbtypes.c.
2351 (varobj_formatted_print_options): New function.
2352 (value_get_print_value): Rename it to
2353 varobj_value_get_print_value and make it extern.
2354 (varobj_value_is_changeable_p): Make it extern.
2355 (adjust_value_for_child_access): Move it to c-varobj.c.
2356 (default_value_is_changeable_p): Rename it to
2357 varobj_default_value_is_changeable_p. Make it extern.
2358 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2359 (c_name_of_child, c_path_expr_of_child): Likewise.
2360 (c_value_of_child, c_type_of_child): Likewise.
2361 (c_value_of_variable, cplus_number_of_children): Likewise.
2362 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2363 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2364 (cplus_value_of_child, cplus_type_of_child): Likewise.
2365 (cplus_value_of_variable): Likewise.
2366 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2367 (java_name_of_child, java_path_expr_of_child): Likewise.
2368 (java_value_of_child, java_type_of_child): Likewise.
2369 (java_value_of_variable): Likewise.
2370 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2371 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2372 (ada_value_of_child, ada_type_of_child): Likewise.
2373 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2374 (ada_value_has_mutated): Likewise.
2375 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2376 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2377 (c_varobj_ops, cplus_varobj_ops): Declare.
2378 (java_varobj_ops, ada_varobj_ops): Declare.
2379 (varobj_default_value_is_changeable_p): Declare.
2380 (varobj_value_is_changeable_p): Declare.
2381 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2382 (varobj_get_path_expr_parent): Declare.
2383 (varobj_value_get_print_value): Declare.
2384 (varobj_formatted_print_options): Declare.
2385 (varobj_restrict_range): Declare.
2387 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2389 * target/waitstatus.h (target_waitkind): Remove spurious
2390 character from the comments.
2392 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2394 * gdbarch.sh (get_longjmp_target): Add method documentation.
2395 * gdbarch.h: Regenerate.
2397 2013-10-16 Tom Tromey <tromey@redhat.com>
2399 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2402 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2404 * gcore.in: Call GDB using the full path to the gcore script.
2405 Error out if the GDB binary is not found.
2407 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2410 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2413 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2416 * target.c (target_disable_btrace): Fix invalid return value for
2418 (target_teardown_btrace): Likewise.
2420 2013-10-14 Yao Qi <yao@codesourcery.com>
2422 * varobj.c (struct varobj): Move most of the fields to
2424 (struct varobj_dynamic): New struct.
2425 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2426 (varobj_has_more): Likewise.
2427 (dynamic_varobj_has_child_method): Likewise.
2428 (update_dynamic_varobj_children): Likewise.
2429 (varobj_get_num_children): Likewise.
2430 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2431 (install_new_value_visualizer): Likewise.
2432 (install_new_value_visualizer, install_new_value): Likewise.
2433 (varobj_update, new_variable, free_variable): Likewise.
2434 (my_value_of_variable, value_get_print_value): Likewise.
2435 (install_visualizer): Change the type of parameter 'var' to
2436 'struct varobjd_dynamic *'. Callers update.
2437 * varobj.h (struct varobj): Moved from varobj.c.
2438 (struct varobj) <dynamic>: New field.
2440 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2442 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2443 as the preferred name of r30.
2444 * nios2-linux-tdep.c (reg_offsets): Likewise.
2445 * features/nios2-cpu.xml: Likewise.
2446 * features/nios2-linux.c: Regenerated.
2447 * features/nios2.c: Regenerated.
2448 * regformats/nios2-linux.dat: Regenerated.
2450 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2452 Canonicalize directories for EXEC_FILENAME.
2453 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2455 * utils.c (gdb_realpath_keepfile): New function.
2456 * utils.h (gdb_realpath_keepfile): New declaration.
2458 2013-10-11 Doug Evans <dje@google.com>
2460 * Makefile.in (GDBFLAGS): New variable.
2463 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2465 * NEWS: Add entry documenting the new "-catch-assert" and
2466 "-catch-exception" GDB/MI commands.
2468 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2470 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2472 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2473 "enabled". Set B->ENABLE_STATE accordingly.
2474 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2476 (create_ada_exception_catchpoint): Add declaration.
2477 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2478 (create_ada_exception_catchpoint): Make non-static. Add new
2479 parameter "disabled". Use it in call to
2480 init_ada_exception_breakpoint.
2481 (catch_ada_exception_command): Add parameter "enabled" in call
2482 to create_ada_exception_catchpoint.
2483 (catch_assert_command): Likewise.
2485 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2487 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2488 "catch-exception" commands.
2489 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2490 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2492 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2494 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2495 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2496 of all its enumerates with "ada_". Update the rest of this
2499 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2501 * ada-lang.c (ada_decode_exception_location): Delete.
2502 (create_ada_exception_catchpoint): Remove arguments "sal",
2503 "addr_string" and "ops". Add argument "ex_kind" instead.
2504 Adjust implementation accordingly, calling ada_exception_sal
2505 to get the entities it no longer gets passed as arguments.
2506 Document the function's arguments.
2507 (catch_ada_exception_command): Use catch_ada_exception_command_split
2508 instead of ada_decode_exception_location, and update call to
2509 create_ada_exception_catchpoint.
2510 (catch_ada_assert_command_split): Renames
2511 ada_decode_assert_location. Remove parameters "addr_string" and
2512 "ops", and now returns void. Adjust implementation accordingly.
2513 Update the function documentation.
2514 (catch_assert_command): Use catch_ada_assert_command_split
2515 instead of ada_decode_assert_location. Update call to
2516 create_ada_exception_catchpoint.
2518 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2520 * utils.h (perror_warning_with_name): Add declaration.
2521 * utils.c (perror_warning_with_name): New function.
2522 * cli/cli-cmds.c (source_script_with_search): Add call to
2523 perror_warning_with_name if from_tty is nul.
2525 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2527 * utils.c (perror_string): New function, extracted out of
2528 throw_perror_with_name.
2529 (throw_perror_with_name): Rework to use perror_string.
2531 2013-10-11 Yao Qi <yao@codesourcery.com>
2533 * remote.c (discard_pending_stop_replies_in_queue): Update
2535 (struct stop_reply) <rs>: New field.
2536 (remove_stop_reply_of_remote_state): New function.
2537 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2538 Callers update. Pass remove_stop_reply_of_remote_state to
2540 (remote_parse_stop_reply): Initialize field 'rs'.
2542 2013-10-10 Will Newton <will.newton@linaro.org>
2544 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2547 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2549 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2550 serial_baud_show_cmd.
2551 (_initialize_cli_cmds): Delete the code creating the
2552 "set/show remotebaud" commands.
2553 * serial.c (baud_rate): Move here from top.c.
2554 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2555 (_initialize_serial): Create "set/show serial baud" commands.
2556 Add "set/show remotebaud" command aliases.
2557 * top.c (baud_rate): Moved to serial.c.
2558 * NEWS: Document the new "set/show serial baud" commands,
2559 replacing "set/show remotebaud".
2561 2013-10-09 Pedro Alves <palves@redhat.com>
2563 * breakpoint.c (insert_bp_location): Use memory_error_message to
2564 build the memory error string.
2565 * c-lang.c: Include "gdbcore.h".
2566 (c_get_string): Use memory_error to throw error.
2567 (target_xfer_memory_error): Delete.
2568 (memory_error_message): New, factored out from
2569 target_xfer_memory_error.
2570 (memory_error): Change parameter type to target_xfer_error.
2572 (read_memory): Use memory_error instead of
2573 target_xfer_memory_error.
2574 * gdbcore.h: Include "target.h".
2575 (memory_error): Change parameter type to target_xfer_error.
2576 (memory_error_message): Declare function.
2577 * target.c (target_read_memory, target_read_stack)
2578 (target_write_memory, target_write_raw_memory): Return
2579 TARGET_XFER_E_IO on error. Adjust comments.
2580 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2582 * target.h (target_read, target_insert_breakpoint)
2583 (target_remove_breakpoint): Adjust comments.
2584 * valprint.c (partial_memory_read): Rename parameter, and adjust
2586 (val_print_string): Use memory_error_message to build the memory
2589 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2592 result variable. Rename variable fopen_e_ever_failed to
2593 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2595 2013-10-09 Pedro Alves <palves@redhat.com>
2597 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2598 (monitor_write_memory_longlongs, monitor_write_memory_block):
2599 Constify 'myaddr' parameter.
2600 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2602 (monitor_xfer_partial): New function.
2603 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2604 hook. Install a to_xfer_partial hook.
2606 2013-10-09 Tom Tromey <tromey@redhat.com>
2608 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2609 bfd_get_alt_debug_link_info.
2611 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2613 New flag OBJF_NOT_FILENAME.
2614 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2615 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2617 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2618 symbol_file_add_from_bfd.
2619 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2621 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2623 * objfiles.h (OBJF_NOT_FILENAME): New.
2625 2013-10-08 Tom Tromey <tromey@redhat.com>
2627 * Makefile.in (SFILES): Add build-id.c.
2628 (HFILES_NO_SRCDIR): Add build-id.h.
2629 * build-id.c: New file, largely from elfread.c. Modified
2631 * build-id.h: New file.
2632 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2633 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2634 Search for dwz file using build-id.
2635 * elfread.c (build_id_bfd_get, build_id_verify)
2636 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2638 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2640 * ada-lang.c (compare_names_with_case): Renamed from
2641 compare_names, adding a new parameter "casing" and its handling.
2642 New function documentation.
2643 (compare_names): New function, implemented using
2644 compare_names_with_case.
2646 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2648 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2650 2013-10-07 Tom Tromey <tromey@redhat.com>
2652 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2653 demangled_names_hash.
2654 (free_objfile): Don't delete the demangled_names_hash.
2655 * objfiles.h (struct objfile_per_bfd_storage)
2656 <demangled_names_hash>: New field.
2657 (struct objfile) <demangled_names_hash>: Move to
2658 objfile_per_bfd_storage.
2659 * symfile.c (reread_symbols): Don't delete the
2660 demangled_names_hash.
2661 * symtab.c (create_demangled_names_hash): Update.
2662 (symbol_set_names): Update.
2664 2013-10-07 Tom Tromey <tromey@redhat.com>
2666 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2667 needs_relocations>: New fields.
2668 (gdb_bfd_requires_relocations): New function.
2669 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2670 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2671 the BFD needs relocations applied.
2673 2013-10-07 Pedro Alves <palves@redhat.com>
2675 PR breakpoints/11568
2676 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2677 the thread list" instead of "gone".
2679 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2681 * NEWS: Mention new convenience variable $_exitsignal.
2682 * corelow.c (core_open): Reset exit convenience variables. Set
2683 $_exitsignal to the uncaught signal which generated the corefile.
2684 * infrun.c (handle_inferior_event): Reset exit convenience
2685 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2686 (clear_exit_convenience_vars): New function.
2687 * inferior.h (clear_exit_convenience_vars): New prototype.
2689 2013-10-06 Yao Qi <yao@codesourcery.com>
2691 * varobj.h: Add comments to enum varobj_languages.
2693 2013-10-04 Doug Evans <dje@google.com>
2695 Add support for DWP file format version 2.
2696 * NEWS: Mention support for DWP file format version 2.
2697 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2698 union of asection, containing_section. New fields virtual_offset
2699 and is_virtual. Change type of readin filed from int to char.
2700 (dwo_sections, dwo_file): Tweak comments.
2701 (dwp_v2_section_ids): New enum.
2702 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2704 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2706 (virtual_v2_dwo_sections): New struct.
2707 (dwp_hash_table): New fields version, nr_columns. Change type of
2708 section_pool field to a union.
2709 (dwp_file): New field version.
2710 (dwarf2_has_info): Check for virtual sections.
2711 (get_containing_section): New function.
2712 (get_section_bfd_owner, get_section_bfd_section): Call it.
2713 (dwarf2_locate_sections): Update.
2714 (dwarf2_section_empty_p): Update.
2715 (dwarf2_read_section): Handle virtual sections.
2716 (locate_dwz_sections): Update.
2717 (create_dwp_hash_table): Document and handle V2 format.
2718 (locate_v1_virtual_dwo_sections): Renamed from
2719 locate_virtual_dwo_sections and update. All callers updated.
2720 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2721 Delete arg htab. Rename arg section_index to unit_index.
2722 All callers updated.
2723 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2725 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2726 (lookup_dwo_unit_in_dwp): Add V2 support.
2727 (dwarf2_locate_dwo_sections): Update.
2728 (dwarf2_locate_common_dwp_sections): Renamed from
2729 dwarf2_locate_dwp_sections and update. All callers updated.
2730 (dwarf2_locate_v2_dwp_sections): New function.
2731 (open_and_init_dwp_file): Add V2 support.
2732 (read_str_index): New locals str_section, str_offsets_section.
2734 2013-10-04 Pedro Alves <palves@redhat.com>
2736 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2737 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2738 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2739 describing comments with references to ptid.h.
2740 * common/ptid.h: Remove intro description of constructors,
2741 accessors and predicates.
2742 (struct ptid): Reformat.
2743 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2744 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2745 describing comments.
2747 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2749 * aix-thread.c (sync_threadlists): Add missing ')' in call
2752 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2754 * procfs.c (procfs_init_inferior): Fix typo causing the build
2757 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2759 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2761 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2763 * mi/mi-main.c (run_one_inferior): Add function description.
2764 Make ARG a pointer to an integer whose value determines whether
2765 we should "run" or "start" the program.
2766 (mi_cmd_exec_run): Add handling of the "--start" option.
2767 Reject all other command-line options.
2768 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2770 2013-10-04 Yao Qi <yao@codesourcery.com>
2772 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2773 (struct notif_client) <pending_event>: Moved
2774 to struct remote_notif_state.
2776 (struct remote_notif_state) <pending_event>: New field.
2777 (notif_event_xfree): Declare.
2778 * remote-notif.c (handle_notification): Adjust.
2779 (notif_event_xfree): New function.
2780 (do_notif_event_xfree): Call notif_event_xfree.
2781 (remote_notif_state_xfree): Call notif_event_xfree to free
2782 each element in field pending_event.
2783 * remote.c (discard_pending_stop_replies): Remove declaration.
2784 (discard_pending_stop_replies_in_queue): Declare.
2785 (remote_close): Call discard_pending_stop_replies_in_queue
2786 instead of discard_pending_stop_replies.
2787 (remote_start_remote): Adjust.
2788 (stop_reply_xfree): Call notif_event_xfree.
2789 (notif_client_stop): Adjust initialization.
2790 (remote_notif_remove_all): Rename it to ...
2791 (remove_stop_reply_for_inferior): ... this. Update comments.
2792 Don't check INF is NULL.
2793 (discard_pending_stop_replies): Return early if notif_state is
2794 NULL. Adjust. Don't check INF is NULL.
2795 (remote_notif_get_pending_events): Adjust.
2796 (discard_pending_stop_replies_in_queue): New function.
2797 (remote_wait_ns): Likewise.
2799 2013-10-04 Yao Qi <yao@codesourcery.com>
2801 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2802 (notif_queue): Remove.
2803 (remote_notif_process): Add one parameter 'notif_queue'.
2804 Update comments. Callers update.
2805 (remote_async_get_pending_events_token): Remove.
2806 (remote_notif_register_async_event_handler): Remove.
2807 (remote_notif_unregister_async_event_handler): Remove.
2808 (handle_notification): Add parameter 'notif_queue'. Update
2809 comments. Callers update.
2810 (notif_xfree): Remove.
2811 (remote_notif_state_allocate): New function.
2812 (remote_notif_state_xfree): New function.
2813 (_initialize_notif): Remove code to allocate queue.
2814 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2815 (struct remote_notif_state): New.
2816 (handle_notification): Update declaration.
2817 (remote_notif_process): Likewise.
2818 (remote_notif_register_async_event_handler): Remove.
2819 (remote_notif_unregister_async_event_handler): Remove.
2820 (remote_notif_state_allocate): Declare.
2821 (remote_notif_state_xfree): Declare.
2822 * remote.c (struct remote_state) <notif_state>: New field.
2823 (remote_close): Don't call
2824 remote_notif_unregister_async_event_handler. Call
2825 remote_notif_state_xfree.
2826 (remote_open_1): Don't call
2827 remote_notif_register_async_event_handler. Call
2828 remote_notif_state_allocate.
2830 2013-10-04 Yao Qi <yao@codesourcery.com>
2832 * varobj.c (create_child_with_value): Remove 'const' from the
2833 type of parameter 'name'.
2834 (varobj_add_child): Likewise.
2835 (install_dynamic_child): Remove 'const' from the type of
2837 (varobj_add_child): Likewise.
2838 (create_child_with_value): Likewise. Update comments. Don't
2840 (update_dynamic_varobj_children): Duplicate 'name'
2841 and pass it to install_dynamic_child.
2843 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2845 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2846 conversion logic to occur after PyLong_Check. Comment on order
2847 change significance.
2848 * python/py-arch.c (archpy_disassemble): Comment on order of
2849 conversion for integers and longs.
2851 2013-10-03 Pedro Alves <palves@redhat.com>
2853 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2854 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2855 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2856 PTRACE_O_TRACEFORK is not supported.
2857 (linux_test_for_tracesysgood): New function.
2858 (linux_test_for_tracefork): New function, factored out from
2859 linux_check_ptrace_features, and also don't kill child_pid here.
2861 2013-10-03 Tristan Gingold <gingold@adacore.com>
2863 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2864 Remove verbose error reporting. Use detected state to
2865 thread_set_state call.
2866 (i386_darwin_dr_get): Fix return type. Remove verbose error
2868 Remove trailing spaces.
2870 2013-10-02 Pedro Alves <palves@redhat.com>
2872 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2873 val_print_optimized_out.
2874 * jv-valprint.c (java_print_value_fields): Likewise.
2875 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2876 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2877 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2878 new optimized out value.
2879 * findvar.c (address_from_register): Likewise.
2880 * frame.c (put_frame_register): Tweak error string to say the
2881 register was not saved, rather than optimized out.
2882 * infcmd.c (default_print_one_register_info): Adjust call to
2883 val_print_optimized_out. Use value_of_register instead of
2884 get_frame_register_value.
2885 * mi/mi-main.c (output_register): Use value_of_register instead of
2886 get_frame_register_value.
2887 * valprint.c (valprint_check_validity): Likewise.
2888 (val_print_optimized_out): New value parameter. If the value is
2889 lval_register, print <not saved> instead.
2890 (value_check_printable, val_print_scalar_formatted): Adjust calls
2891 to val_print_optimized_out.
2892 * valprint.h (val_print_optimized_out): New value parameter.
2893 * value.c (struct value) <optimized_out>: Extend comment.
2894 (error_value_optimized_out): New function.
2895 (require_not_optimized_out): Use it. Use a different string for
2896 lval_register values.
2897 * value.h (error_value_optimized_out): New declaration.
2898 * NEWS: Mention <not saved>.
2900 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2902 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2903 strcmp to compare two symtab filenames.
2905 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2907 * symtab.c (search_symbols_equal): Delete.
2908 (sort_search_symbols_remove_dups): Replace call to
2909 search_symbols_equal by call to compare_search_syms,
2910 adjusting as necessary.
2912 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2915 * python/python.c: Document gdb.execute command in Python help.
2917 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2919 * python/py-frame.c (frame_info_to_frame_object): Use
2920 gdbpy_convert_exception. Clean up Python object on failure.
2922 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2924 * python/lib/gdb/command/frame_filters.py
2925 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2926 (ShowFrameFilterPriority.invoke): Ditto.
2928 2013-10-01 Keith Seitz <keiths@redhat.com>
2930 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2931 (parse_linespec): Make 'argptr' const.
2932 Remove temporary cast of 'argptr' to const char **.
2933 (decode_line_full): Pass const pointer to parse_linespec.
2934 (decode_line_1): Likewise.
2935 (decode_objc): Make local variable 'new_argptr' const.
2936 (find_function_symbols): Remove temporary cast to char *
2938 * objc-lang.c (find_imps): Make argument 'method' const.
2940 * objc-lang.h (find_imps): Likewise.
2942 2013-10-01 Keith Seitz <keiths@redhat.com>
2944 * completer.c (skip_quoted_chars): Make all arguments const.
2946 (skip_quoted): Likewise.
2947 * completer.h (skip_quoted_chars): Likewise.
2948 (skip_quoted): Likewise.
2949 * defs.h (skip_quoted): Remove duplicate declaration.
2950 * jv-exp.y: Include completer.h.
2951 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2952 * p-exp.y: Include completer.h.
2954 2013-10-01 Keith Seitz <keiths@redhat.com>
2956 * c-exp.y (parse_number): Make first argument const.
2957 Make a copy of the input to manipulate.
2958 (c_parse_escape): Make first argument const.
2959 Make local variable 'tokptr' const.
2960 (parse_string_or_char): Make first two arguments const.
2961 (macro_original_text): Make const.
2962 (lex_one_token): Make local variable 'tokstart' const.
2963 Likewise for local variables named 'p'.
2964 Cast away const for struct stoken (temporary).
2965 * c-lang.h (c_parse_escpae): Make first argument const.
2966 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2968 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2970 * f-exp.y (parse_number): Make first argument const.
2971 (match_string_literal): Make local variable 'tokstart'
2973 (yylex): Make local variable 'p' const.
2974 Cast away const for struct stoken (temporary).
2975 * go-exp.y (parse_number): Make first argument const.
2976 (parse_string_or_char): Likewise.
2977 Make local variable 'tokstart' const.
2978 (lex_one_token): Likewise for numerous locals called 'p'.
2979 Cast away const for struct stoken (temporary).
2980 * jv-exp.y (parse_number): Make first argument const.
2981 Make local variables 'tokstart' and 'tokptr' const.
2982 Cast away const for call to skip_quoted (temporary).
2983 (yylex): Make local variable 'p' const.
2984 Cast away const for struct stoken (temporary).
2985 * m2-exp.y (parse_number): Make local variable 'p' const.
2986 (yylex): Likewise for 'tokstart'.
2987 Cast away const for struct stoken (temporary).
2988 Make local variable 'p' const.
2989 * macroexp.c (get_character_constant): Pass a const string
2991 (get_string_literal): Likewise.
2992 (macro_expand_next): Make first argument const.
2993 Cast away const for init_shared_buffer.
2994 * macroexp.h (macro_expand_next): Make first argument const.
2995 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2996 Pass a const string to c_parse_escape.
2997 Make local variables 'p' and 'namestart' const.
2998 * parse.c (lexptr): Make const.
2999 (prev_lexptr): Likewise.
3000 (find_template_name_end): Return const.
3001 Make argument const, too.
3002 (parse_exp_in_context): Make first argument const.
3003 Remove the entire const_hack.
3004 (parse_exp_in_context_1): Make first argument const.
3005 * parser-defs.h (find_template_name_end): Return const.
3006 Make argument const, too.
3007 (lexptr): Make const.
3008 (prev_lexptr): Likewise.
3009 * utils.c (parse_escape): Make second argument const.
3010 * utils.h (parse_escape): Likewise.
3012 2013-10-01 Keith Seitz <keiths@redhat.com>
3014 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3016 (block_lookup): Make 'raw_name' and 'name' const.
3017 * ada-lex.l (processString): Update for struct stoken.ptr.
3018 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3019 (operator_stoken): Likewise.
3020 (lex_one_token): Remove temporary cast to char * for
3022 * f-exp.y (yylex): Likewise.
3023 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3024 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3025 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3027 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3028 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3029 * linespec.c (struct ls_parser): Make 'stream' const.
3030 (find_parameter_list_end): Make argument 'input' and local
3032 (linespec_lexer_lex_string): Make local variables 'start' and
3034 Use skip_spaces_const instead of skip_spaces.
3035 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3037 (parse_linespec): Temporarily cast 'argptr' to const for
3038 'parser->lexer.stream'.
3039 * m2-exp.y (yylex): Remove temporary cast to char * for
3041 * objc-lang.c (add_msglist): Make local variable 'p' const.
3042 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3043 (exp : STRING): Make 'sp' const.
3044 (parse_number): Make argument 'p' const.
3045 * parser-defs.h (struct stoken): Make 'ptr' const.
3047 2013-10-01 Doug Evans <dje@google.com>
3049 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3051 2013-10-01 Yao Qi <yao@codesourcery.com>
3053 * varobj.c (c_value_of_root): Remove declaration.
3054 (cplus_value_of_root, java_value_of_root): Likewise.
3055 (ada_value_of_root): Likewise.
3056 (struct language_specific) <value_of_root>: Remove.
3057 (languages): Update initialization.
3058 (check_scope): Move earlier.
3059 (c_value_of_root): Move earlier and rename to ...
3060 (value_of_root_1): ... this.
3061 (value_of_root): Caller update.
3062 (cplus_value_of_root, java_value_of_root): Remove.
3063 (ada_value_of_root): Remove.
3065 2013-10-01 Yao Qi <yao@codesourcery.com>
3067 * varobj.c (varobj_format_string): Remove "unknown".
3068 (languages): Remove the first element.
3069 * varobj.h (enum varobj_languages): Remove vlang_c.
3071 2013-10-01 Yao Qi <yao@codesourcery.com>
3073 * varobj.c (struct language_specific) <language>: Remove.
3074 (languages): Update the initialization.
3076 2013-10-01 Yao Qi <yao@codesourcery.com>
3078 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3079 "solib-target.h". Include "windows-tdep.h".
3080 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3081 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3082 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3083 windows-tdep.o to gdb_target_obs.
3085 2013-10-01 Yao Qi <yao@codesourcery.com>
3087 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3089 (amd64_windows_init_abi): Don't call set_solib_ops and
3090 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3091 windows_init_abi instead.
3092 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3094 (i386_cygwin_init_abi): Don't call set_solib_ops,
3095 set_gdbarch_has_dos_based_file_system and
3096 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3097 windows_init_abi instead.
3098 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3099 (windows_init_abi): New function.
3100 (windows_iterate_over_objfiles_in_search_order): Make it
3102 * windows-tdep.h (windows_init_abi): Declare.
3103 (windows_iterate_over_objfiles_in_search_order): Remove
3106 2013-10-01 Jerome Guitton <guitton@adacore.com>
3108 Checked in by Joel Brobecker <brobecker@adacore.com>
3109 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3110 incomplete dictionnary instead of None in case of missing
3111 environment variables.
3112 (elinos_init): in case of an incomplete environment, best
3113 effort to load system libraries instead of abort.
3115 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3117 * ada-lang.c (ada_has_this_exception_support): Ignore
3118 mst_solib_trampoline minimal symbols.
3120 2013-09-30 Tristan Gingold <gingold@adacore.com>
3122 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3123 hardware watchpoint.
3124 (i386_darwin_dr_set): Support 32 and 64 bit states.
3125 (i386_darwin_dr_get): Likewise.
3126 (i386_darwin_dr_set_control): Make static.
3127 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3128 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3130 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3132 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3133 Replace TIDGET with ptid_get_lwp.
3134 Replace GET_LWP with ptid_get_lwp.
3135 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3136 Replace BUILD_THREAD with ptid_build.
3137 Replace BUILD_LWP with ptid_build.
3138 Replace PIDGET with ptid_get_pid.
3139 Replace TIDGET with ptid_get_lwp.
3140 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3141 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3142 Replace TIDGET with ptid_get_lwp.
3143 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3144 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3145 Replace TIDGET with ptid_get_lwp.
3146 Replace GET_LWP with ptid_get_lwp.
3147 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3149 * breakpoint.c: Likewise.
3150 * common/ptid.c (ptid_is_pid): Condense check for
3151 null_ptid and minus_one_ptid.
3152 (ptid_lwp_p): New function.
3153 (ptid_tid_p): New function.
3154 * common/ptid.h: Update comments for accessors.
3155 (ptid_lwp_p): New prototype.
3156 (ptid_tid_p): New prototype.
3157 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3158 * gcore.c: Replace PIDGET with ptid_get_pid.
3159 * gdbthread.h: Likewise.
3160 * gnu-nat.c: Likewise.
3161 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3162 Replace TIDGET with ptid_get_lwp.
3163 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3164 * hppanbsd-nat.c: Likewise.
3165 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3166 Replace TIDGET with ptid_get_lwp.
3167 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3168 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3169 * infcmd.c: Likewise.
3170 * inferior.h: Likewise.
3171 * inflow.c: Likewise.
3172 * infrun.c: Likewise.
3173 * linux-fork.c: Likewise.
3174 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3175 Replace GET_PID with ptid_get_pid.
3176 Replace is_lwp with ptid_lwp_p.
3177 Replace GET_LWP with ptid_get_lwp.
3178 Replace BUILD_LWP with ptid_build.
3180 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3182 * common/linux-btrace.c: Move sys/syscall.h out of the
3183 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3184 Also check for SYS_perf_event_open before attempting to buid.
3186 2013-09-27 Doug Evans <dje@google.com>
3188 * dwarf2read.c (dwarf2_section_info): Add comment.
3189 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3191 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3192 (dwarf2_read_section): Delete unused local "header". Add section
3193 name to error message.
3194 (create_dwo_in_dwp): Tweak comment.
3195 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3197 * dwarf2read.c (die_reader_specs): Tweak comment.
3198 (get_section_bfd_owner, get_section_bfd_section): New functions.
3199 (get_section_name, get_section_file_name): New functions.
3200 (get_section_id, get_section_flags): New functions.
3201 (*): Use new functions to access section fields.
3203 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3204 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3205 arg "htab". All callers updated.
3206 (create_debug_types_hash_table): Remove redundant copy of
3208 (create_dwo_in_dwp): Tweak comments.
3209 (read_str_index): Tweak comment. Record dwarf form name in static
3212 2013-09-27 Pedro Alves <palves@redhat.com>
3214 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3215 (remote_filename_p): Add comment.
3216 * remote.c (remote_filename_p): Adjust to use
3217 REMOTE_SYSROOT_PREFIX.
3218 * solib.c (solib_find): When deciding whether we need to add a
3219 directory separator, check whether the sysroot is "remote:"
3220 instead of checking whether the patch has a drive spec. Add
3223 2013-09-27 Pedro Alves <palves@redhat.com>
3225 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3227 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3230 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3232 Fix set debug frame output.
3233 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3234 SENTINEL_FRAME entry lower to match enum frame_type order.
3236 2013-09-26 Pierre Muller <muller@sourceware.org>
3238 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3239 AMD64_R15_REGNUM when a register index is expected.
3240 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3241 Substitute in array.
3242 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3243 (amd64_push_arguments): Substitute in integer_regnum array.
3245 2013-09-25 Doug Evans <dje@google.com>
3247 * objfiles.c (allocate_objfile): Move comment to better place.
3249 New option "set debug symfile on".
3250 * NEWS: Mention "set debug symfile".
3251 * Makefile.in (SFILES): Add symfile-debug.c.
3252 (COMMON_OBS): Add symfile-debug.o.
3253 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3254 objfile's symbol functions.
3255 * objfiles.h (objfile_set_sym_fns): Declare.
3256 * symfile-debug.c: New file.
3257 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3258 objfile's symbol functions.
3259 (reread_symbols): Ditto.
3261 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3263 (add_symtab_fns): Update prototype.
3264 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3265 (registered_sym_fns): ... this.
3266 (symtab_fns): Update.
3267 (add_symtab_fns): New arg "flavour". All callers updated.
3268 (find_sym_fns): Rewrite to use new sym_fns registry.
3270 * symfile.h (struct sym_fns): Add "objfile" argument to
3271 sym_read_linetable. All uses updated.
3273 * symtab.c (domain_name, search_domain_name): New functions.
3274 * symtab.h (domain_name, search_domain_name): Declare.
3276 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3277 map_matching_symbols so objfile is first. All uses updated.
3278 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3279 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3281 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3287 2013-09-24 Doug Evans <dje@google.com>
3289 * objfiles.c (free_objfile): Move comment.
3291 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3293 * ada-exp.y (string_to_operator): Delete.
3294 (dummy_string_to_ada_operator): Delete.
3296 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3299 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3301 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3302 call_dummy_integer_regs, and classify.
3303 * amd64-tdep.h (amd64_classify): Add declaration.
3304 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3305 (amd64_reg_class): Delete, moved to i386-tdep.h.
3306 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3307 Replace call to amd64_classify by call to tdep->classify.
3308 (amd64_push_arguments): Get the list of registers to use for
3309 passing integer parameters from the gdbarch tdep structure,
3310 rather than using a hardcoded one. Replace calls to amd64_classify
3311 by calls to tdep->classify.
3312 (amd64_push_dummy_call): Get the register number used for
3313 the "hidden" argument from tdep->call_dummy_integer_regs.
3314 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3315 and tdep->call_dummy_integer_regs. Set tdep->classify.
3317 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3320 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3321 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3322 where tdep->memory_args_by_pointer is non-zero.
3324 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3327 * i386-tdep.h (struct gdbarch_tdep): Add new field
3328 integer_param_regs_saved_in_caller_frame.
3329 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3330 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3332 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3334 * amd64-windows-tdep.c: #include "value.h"
3335 (amd64_windows_classify): Delete.
3336 (amd64_windows_passed_by_integer_register)
3337 (amd64_windows_passed_by_xmm_register)
3338 (amd64_windows_passed_by_pointer)
3339 (amd64_windows_adjust_args_passed_by_pointer)
3340 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3341 (amd64_windows_push_dummy_call): New functions.
3342 (amd64_windows_init_abi): Remove setting of
3343 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3344 tdep->classify, tdep->memory_args_by_pointer and
3345 tdep->integer_param_regs_saved_in_caller_frame.
3346 Add call to set_gdbarch_push_dummy_call.
3348 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3350 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3351 objfile->original_name.
3353 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3355 Pass down original filename for objfile.
3356 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3357 * elfread.c (elf_symfile_read): Likewise.
3358 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3359 longer set ORIGINAL_NAME.
3360 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3361 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3362 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3363 symbol_file_add_from_bfd call.
3364 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3365 (macho_check_dsym): Add parameter filenamep. Change function comment.
3367 (macho_symfile_read): New variable dsym_filename. Update
3368 macho_check_dsym call. Use it for symbol_file_add_separate.
3369 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3370 it. Use it for objfile->original_name.
3371 (objfile_name): Return OBFD's filename, if available.
3372 * objfiles.h (allocate_objfile): Add new parameter name.
3373 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3374 * symfile-mem.c (symbol_file_add_from_memory): Update
3375 symbol_file_add_from_bfd call.
3376 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3378 (symbol_file_add_with_addrs): New parameter name, add function comment
3379 for it. Remove variable name. Update allocate_objfile call.
3380 (symbol_file_add_separate): New parameter name, add function comment
3381 for it. Update symbol_file_add_with_addrs call.
3382 (symbol_file_add_from_bfd): New parameter name. Update
3383 symbol_file_add_with_addrs call.
3384 (symbol_file_add): Update symbol_file_add_from_bfd call.
3385 (reread_symbols): New variable original_name. Save
3386 objfile->original_name by it.
3387 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3390 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 Code cleanup: Add objfile_name accessor function.
3393 * ada-lang.c (is_known_support_routine): Use objfile_name.
3394 * auto-load.c (source_gdb_script_for_objfile)
3395 (auto_load_objfile_script): Likewise.
3396 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3397 * dbxread.c (dbx_symfile_read): Likewise.
3398 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3399 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3400 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3401 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3402 (lookup_dwp_signatured_type, lookup_dwo_unit)
3403 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3404 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3405 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3406 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3407 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3408 (read_subrange_type, load_partial_dies, read_partial_die)
3409 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3410 (die_containing_type, build_error_marker_type, lookup_die_type)
3411 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3412 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3413 (get_DW_AT_signature_type, write_psymtabs_to_index)
3414 (save_gdb_index_command): Likewise.
3415 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3417 * expprint.c (dump_subexp_body_standard): Likewise.
3418 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3419 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3421 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3422 obj_name, use objfile_name for it, use the variable.
3423 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3425 * machoread.c (macho_symtab_read, macho_check_dsym)
3426 (macho_symfile_relocate): Likewise.
3427 * maint.c (maintenance_translate_address): Likewise.
3428 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3429 * minsyms.c (install_minimal_symbols): Likewise.
3430 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3432 (filter_overlapping_sections): Use objfile_name.
3433 (objfile_name): New function.
3434 * objfiles.h (struct objfile): Rename field name to original_name.
3435 (objfile_name): New prototype.
3436 * printcmd.c (sym_info, address_info): Use objfile_name.
3437 * probe.c (parse_probes, collect_probes, compare_probes)
3438 (info_probes_for_ops): Likewise.
3439 * progspace.c (clone_program_space): Likewise.
3440 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3441 (maintenance_info_psymtabs): Likewise.
3442 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3443 (source_section_scripts): Likewise.
3444 * python/py-objfile.c (objfpy_get_filename): Likewise.
3445 * python/py-progspace.c (pspy_get_filename): Likewise.
3446 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3447 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3448 * solib.c (solib_read_symbols): Likewise.
3449 * stabsread.c (scan_file_globals): Likewise.
3450 * stap-probe.c (handle_stap_probe): Likewise.
3451 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3452 (find_separate_debug_file_by_debuglink): Likewise.
3453 (reread_symbols): Likewise. Use the objfile field name renamed to
3455 (allocate_symtab): Use objfile_name.
3456 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3457 (dump_objfile, dump_msymbols, dump_symtab_1)
3458 (maintenance_print_msymbols, maintenance_print_objfiles)
3459 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3460 * target.c (target_translate_tls_address, target_info): Likewise.
3461 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3464 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3467 * probe.c (parse_probes): Rename variable objfile_name to
3470 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3472 Remove solib-sunos.c.
3473 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3474 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3475 * objfiles.c (rt_common_objfile): Remove.
3476 (free_objfile): Remove rt_common_objfile comparison.
3477 * objfiles.h (rt_common_objfile): Remove.
3478 * solib-sunos.c: Remove.
3479 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3481 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3483 Remove a.out NetBSD and OpenBSD hosts.
3484 * NEWS (Removed native configurations): New.
3485 * config/arm/nbsdaout.mh: Remove.
3486 * config/i386/nbsdaout.mh: Remove.
3487 * config/i386/obsdaout.mh: Remove.
3488 * config/m68k/nbsdaout.mh: Remove.
3489 * config/sparc/nbsdaout.mh: Remove.
3490 * config/vax/nbsdaout.mh: Remove.
3491 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3492 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3493 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3495 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3496 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3497 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3499 2013-09-23 Tom Tromey <tromey@redhat.com>
3501 * linespec.c (struct minsym_and_objfile): Remove.
3502 (minsym_and_objfile_d): Remove.
3503 (struct linespec, struct collect_info, linespec_parse_basic)
3504 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3505 (compare_msymbols, find_method, find_function_symbols)
3506 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3507 (add_minsym, search_minsyms_for_name): Update.
3509 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3511 * regcache.c: Add include of valprint.h.
3512 (dump_endian_bytes): Delete.
3513 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3515 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3517 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3519 2013-09-19 Pedro Alves <palves@redhat.com>
3521 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3524 2013-09-19 Pedro Alves <palves@redhat.com>
3525 Thomas Schwinge <thomas@codesourcery.com>
3526 Yue Lu <hacklu.newborn@gmail.com>
3528 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3529 Take a gdb_byte pointer instead of a char pointer.
3531 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3532 gnu_xfer_partial helper.
3533 (gnu_xfer_partial): New function.
3534 (gnu_target): Don't install a deprecated_xfer_memory hook.
3535 Install a to_xfer_partial hook.
3537 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 * main.c (captured_main): Replace catch_command_errors by
3541 catch_command_errors_const. Twice.
3542 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3543 (symbol_file_add): Make name parameter const.
3544 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3545 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3546 variable name. Change their usage accordingly.
3547 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3549 (symbol_file_add_main): Make args parameter const.
3551 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3552 Ulrich Weigand <uweigand@de.ibm.com>
3554 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3556 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3558 2013-09-18 Pedro Alves <palves@redhat.com>
3559 Yue Lu <hacklu.newborn@gmail.com>
3561 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3562 (gnu_create_inferior)
3563 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3564 (set_sig_thread_cmd): Use the lwpid field of ptids to
3565 store/extract thread ids instead of the tid field.
3566 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3568 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3570 * infcmd.c (default_print_one_register_info): Add detection of
3571 optimized out values.
3572 (default_print_registers_info): Switch to using
3573 get_frame_register_value.
3575 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3577 * infrun.c (handle_inferior_event): Check if we know the
3578 function start address before setting a resume breakpoint.
3580 2013-09-18 Pedro Alves <palves@redhat.com>
3582 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3583 minus_one_ptid instead of looking at the ptid's tid field and
3584 comparing that to -1.
3586 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3588 * main.h (get_gdb_program_name): Remove extra whitespace.
3590 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3592 * main.h (get_gdb_program_name): Add declaration.
3593 * main.c (get_gdb_program_name): Add definition.
3595 2013-09-17 Doug Evans <dje@google.com>
3597 * dwarf2read.c: Move definitions of complaint functions to after
3598 forward declarations of local functions.
3600 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3601 Pedro Alves <palves@redhat.com>
3604 * breakpoint.c (remove_threaded_breakpoints): New function.
3605 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3606 as thread_exit observer.
3608 2013-09-17 Pedro Alves <palves@redhat.com>
3611 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3612 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3613 * corelow.c (core_open):
3614 * frame.h (print_stack_frame, print_frame_info): New
3615 'set_current_sal' parameter.
3616 * infcmd.c (finish_command, kill_command): Adjust call to
3618 * inferior.c (inferior_command): Likewise.
3619 * infrun.c (normal_stop): Likewise.
3620 * linux-fork.c (linux_fork_context): Likewise.
3621 * record-full.c (record_full_goto_entry, record_full_restore):
3623 * remote-mips.c (common_open): Likewise.
3624 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3626 (print_frame_info): New 'set_current_sal' parameter. Set the last
3627 displayed sal depending on the new paremeter instead of looking at
3629 (backtrace_command_1, select_and_print_frame, frame_command)
3630 (current_frame_command, up_command, down_command): Adjust call to
3632 * thread.c (print_thread_info, restore_selected_frame)
3633 (do_captured_thread_select): Adjust call to print_stack_frame.
3634 * tracepoint.c (tfind_1): Likewise.
3635 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3636 (mi_cmd_stack_info_frame): Likewise.
3637 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3638 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3640 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3642 * value.c (isvoid_internal_fn): Replace "parameter" with
3645 2013-09-16 Stan Shebs <stan@codesourcery.com>
3647 * README: Update references to writing code for GDB.
3648 * configure.ac (build_warnings): Remove obsolete comment.
3649 * configure: Regenerate.
3650 * gdbarch.sh: Remove references to gdbint.texinfo.
3651 * gdbarch.h: Regenerate.
3652 * gdbtypes.c (objfile_type): Remove comments referencing internals
3655 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3657 * NEWS: Mention new convenience function $_isvoid.
3658 * value.c (isvoid_internal_fn): New function.
3659 (_initialize_values): Add new convenience function $_isvoid.
3661 2013-09-16 Pierre Muller <muller@sourceware.org>
3663 * arm-linux-tdep.c: Add "elf/common.h" header.
3664 Remove AT_HWCAP macro definintion as it is provided in
3666 * s390-tdep.c: Remove system header <elf.h>
3667 Add "elf/common.h" header for AT_HWCAP definition.
3668 (s390_core_read_description): Use correct CORE_ADDR
3669 for hwcap local variable used as third parameter
3670 of function target_auxv_search.
3672 2013-09-14 Pierre Muller <muller@sourceware.org>
3673 Tom Tromey <tromey@redhat.com>
3674 Pedro Alves <palves@redhat.com>
3676 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3677 mode if operating system doesn't know O_CLOEXEC.
3679 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3685 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3687 * NEWS: Mention TDB support.
3688 * features/s390-tdb.xml: New file.
3689 * features/s390-te-linux64.xml: New file.
3690 * features/s390x-te-linux64.xml: New file.
3691 * features/Makefile (WHICH): Add new tdescs above.
3692 (s390-te-linux64-expedite): Set.
3693 (s390x-te-linux64-expedite): Set.
3694 * features/s390-te-linux64.c: New file (generated).
3695 * features/s390x-te-linux64.c: New file (generated).
3696 * regformats/s390-te-linux64.dat: New file (generated).
3697 * regformats/s390x-te-linux64.dat: New file (generated).
3698 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3699 (HWCAP_S390_TE): Likewise.
3700 (S390_TDB_DWORD0_REGNUM): Likewise.
3701 (S390_TDB_DWORD0_REGNUM): Likewise.
3702 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3703 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3704 (S390_TDB_ATIA_REGNUM): Likewise.
3705 (S390_TDB_R0_REGNUM): Likewise.
3706 (S390_TDB_R1_REGNUM): Likewise.
3707 (S390_TDB_R2_REGNUM): Likewise.
3708 (S390_TDB_R3_REGNUM): Likewise.
3709 (S390_TDB_R4_REGNUM): Likewise.
3710 (S390_TDB_R5_REGNUM): Likewise.
3711 (S390_TDB_R6_REGNUM): Likewise.
3712 (S390_TDB_R7_REGNUM): Likewise.
3713 (S390_TDB_R8_REGNUM): Likewise.
3714 (S390_TDB_R9_REGNUM): Likewise.
3715 (S390_TDB_R10_REGNUM): Likewise.
3716 (S390_TDB_R11_REGNUM): Likewise.
3717 (S390_TDB_R12_REGNUM): Likewise.
3718 (S390_TDB_R13_REGNUM): Likewise.
3719 (S390_TDB_R14_REGNUM): Likewise.
3720 (S390_TDB_R15_REGNUM): Likewise.
3721 (S390_NUM_REGS): Increase.
3722 (S390_IS_TDBREGSET_REGNUM): New macro.
3723 (s390_regmap_tdb): Declare.
3724 (s390_sizeof_tdbregset): Define.
3725 (tdesc_s390_te_linux64): Declare.
3726 (tdesc_s390x_te_linux64): Likewise.
3727 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3728 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3729 (s390_regmap_tdb): New regmap.
3730 (s390_supply_tdb_regset): New function.
3731 (s390_tdb_regset): New regset.
3732 (s390_linux64v2_regset_sections): Add TDB regset to list.
3733 (s390x_linux64v2_regset_sections): Likewise.
3734 (s390_regset_from_core_section): Recognize TDB core note section.
3735 (s390_core_read_description): If HWCAP indicates TE support,
3736 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3737 (s390_gdbarch_init): Handle TDB regset.
3738 (_initialize_s390_tdep): Initialize new tdescs.
3739 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3740 (have_regset_tdb): New variable.
3741 (s390_native_supply): Support register invalidation.
3742 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3743 (check_regset): Treat ENODATA as "regset exists".
3744 (s390_linux_fetch_inferior_registers): Add TDB.
3745 (s390_read_description): Check for TDB existence and select
3747 * gdbserver/Makefile.in (clean): Add removal of new makefile
3749 (s390-te-linux64.c): New makefile target.
3750 (s390x-te-linux64.c): Likewise.
3751 * gdbserver/configure.srv (srv_regobj): Append new objects
3752 s390-te-linux64.o and s390x-te-linux64.o.
3753 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3754 s390x-te-linux64.xml, and s390-tdb.xml.
3755 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3757 (tdesc_s390_te_linux64): Likewise.
3758 (init_registers_s390x_te_linux64): Likewise.
3759 (tdesc_s390x_te_linux64): Likewise.
3760 (s390_check_regset): Treat ENODATA as "regset exists".
3761 (s390_arch_setup): Add TDB regset support.
3762 (initialize_low_arch): Initialize registers for new tdescs.
3764 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3766 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3767 (S390_IS_FPREGSET_REGNUM): New macro.
3768 * s390-tdep.c (s390_dwarf_regmap): Make const.
3769 (regnum_is_gpr_full): New function for replacing repeated code.
3770 (s390_pseudo_register_name): Use it.
3771 (s390_pseudo_register_type): Likewise.
3772 (s390_pseudo_register_read): Likewise.
3773 (s390_pseudo_register_write): Likewise.
3774 (s390_unwind_pseudo_register): Likewise.
3775 (s390_regmap_gregset): New format for regmap.
3776 (s390x_regmap_gregset): Likewise.
3777 (s390_regmap_fpregset): Likewise.
3778 (s390_regmap_upper): Likewise.
3779 (s390_regmap_last_break): Likewise.
3780 (s390_regmap_system_call): Likewise.
3781 (s390_supply_regset): Adjust to new regmap format.
3782 (s390_collect_regset): Likewise.
3783 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3784 (s390_native_collect): Likewise.
3785 (supply_gregset): Likewise.
3786 (fill_gregset): Likewise.
3787 (supply_fpregset): Likewise.
3788 (fill_fpregset): Likewise.
3789 (fetch_regset): Likewise.
3790 (store_regset): Likewise.
3791 (s390_linux_fetch_inferior_registers): Likewise.
3792 (s390_linux_fetch_inferior_registers): Likewise.
3794 2013-09-12 Andrew Pinski <apinski@cavium.com>
3796 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3798 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3800 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3802 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3804 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3806 2013-09-06 Pedro Alves <palves@redhat.com>
3808 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3809 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3810 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3811 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3812 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3815 2013-09-06 Pedro Alves <palves@redhat.com>
3817 * remote-sim.c (dump_mem): Constify buf parameter.
3818 gdbsim_xfer_inferior_memory): Rename to ...
3819 (gdbsim_xfer_memory): ... this. Adjust interface as
3820 target_xfer_partial helper.
3821 (gdbsim_xfer_partial): New function.
3822 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3823 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3825 2013-09-06 Pedro Alves <palves@redhat.com>
3827 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3828 host_address_to_string, and send debug output to gdb_stdlog.
3830 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3832 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3833 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3834 gdb_target_obs for cris target.
3835 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3836 (cris_gdbarch_init): Move calls to
3837 set_gdbarch_fetch_tls_load_module_address and
3838 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3839 Add call to gdbarch_init_osabi.
3840 * cris-linux-tdep.c: New file.
3841 * cris-tdep.h: New file.
3843 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3845 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3846 to deprecated_init_ui_hook.
3848 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3850 * cli/cli-interp.c (_initialize_cli_interp): Add a
3851 command_loop_proc to interp_procs.
3852 * event-top.c (cli_command_loop): Change signature to match
3853 interp_command_loop_ftype.
3854 * event-top.h (cli_command_loop): Same.
3855 * interps.c (interp_new): Require every interpreter to have a
3857 (current_interp_command_loop): Just call the command_loop_proc on
3858 the current interpreter.
3859 * tui/tui-interp.c (_initialize_tui_interp): Add a
3860 command_loop_proc to interp_procs.
3862 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3864 * cris-tdep.c (cris_gdbarch_init): Add call to
3865 get_gdbarch_fetch_tls_load_module_address.
3867 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3869 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3870 (cris_elf_gregset_t): Rename from elf_gregset_t.
3871 (crisv32_elf_gregset_t): Adjust.
3872 (cris_supply_gregset, fetch_core_registers): Adjust.
3874 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3876 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3878 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3880 * defs.h (deprecated_command_loop_hook): Remove, including
3881 references in comments.
3882 * interps.c (current_interp_command_loop): No longer use
3883 deprecated_command_loop_hook.
3884 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3886 * top.c (deprecated_command_loop_hook): Remove.
3888 2013-09-05 Pedro Alves <palves@redhat.com>
3890 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3891 local is now int instead of ULONGEST. Print it with %d
3892 instead of paddress.
3894 2013-09-05 Tristan Gingold <gingold@adacore.com>
3896 * MAINTAINERS: Remove avr maintainership.
3898 2013-09-05 Pedro Alves <palves@redhat.com>
3900 * findvar.c (value_of_register): Rework in terms of
3901 value_of_register_lazy.
3903 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3905 * symfile.c (add_symbol_file_command): Remove trailing
3906 whitespaces and blank line after comment.
3908 2013-09-05 Pedro Alves <palves@redhat.com>
3910 * tui/tui-regs.c (tui_register_format): Don't look at the
3911 register's name here. Return string representing register
3912 value instead of storing it in the data element.
3913 (tui_get_register): Compare register string representations
3914 instead of register value states and contents.
3916 2013-09-05 Pedro Alves <palves@redhat.com>
3919 * tui/tui-regs.c (tui_show_registers): Show registers of the
3920 selected frame, not the current frame.
3922 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3924 * MAINTAINERS (Write After Approval): Add myself to the list.
3926 2013-09-04 Doug Evans <dje@google.com>
3928 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3929 (queue_and_load_dwo_tu): New function.
3930 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3931 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3932 Make dependent_cu optional.
3933 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3934 and an older .gdb_index is in use, queue and load all its TUs too.
3936 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3938 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3939 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3940 variable search_flags.
3941 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3942 (OPF_RETURN_REALPATH): ... here.
3943 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3944 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3946 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3948 * solib.c (solib_find): Likewise. Four times.
3949 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3950 in the function comment and for the realpath_fptr variable.
3951 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3952 (find_and_open_source): Likewise. Twice.
3953 * symfile.c (symfile_bfd_open): Likewise, also twice.
3955 2013-09-04 Doug Evans <dje@google.com>
3957 * progspace.c (save_current_space_and_thread): Remove unnecessary
3958 call to save_current_inferior.
3960 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3962 * sh64-tdep.c (sh64_do_register): Return after printing message
3963 about unavailable register contents.
3965 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3966 Pedro Alves <palves@redhat.com>
3968 * symfile.c (add_symbol_file_command): Error out on unknown
3969 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3970 options and collapse into single conditional branch.
3972 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3974 * inf-child.c (inf_child_follow_fork): New parameter
3976 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3977 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3978 * inferior.h (detach_fork): Remove.
3979 * infrun.c (detach_fork): Adjust comment and make it
3981 (follow_fork): Pass detach_fork parameter to
3983 * linux-nat.c (linux_child_follow_fork): New parameter
3985 * target.c (target_follow_fork): New parameter detach_fork.
3986 Pass detach_fork as parameter and print its value.
3987 * target.h (struct target_ops) <to_follow_fork>: New int
3989 (target_follow_fork): New parameter detach_fork.
3991 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3993 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3994 Replace sec->bfd by sec->the_bfd_section->owner.
3996 2013-09-03 Yao Qi <yao@codesourcery.com>
3998 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3999 from linux_has_shared_address_space.
4000 (linux_has_shared_address_space): Call linux_is_uclinux.
4001 * linux-tdep.h (linux_is_uclinux): Declare.
4002 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4005 2013-09-03 Yao Qi <yao@codesourcery.com>
4007 * config/djgpp/fnchange.lst: Remove entry of
4008 i386-interix-nat.c and i386-interix-tdep.c.
4009 * configure.ac: Remove '*-*-interix*'.
4010 * configure: Re-generated.
4011 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4012 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4014 * osabi.c (gdb_osabi_names): Remove "Interix".
4016 2013-09-03 Yao Qi <yao@codesourcery.com>
4018 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4020 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4022 * record.h (record_print_flag) <record_print_src_line,
4023 record_print_insn_range>: Rename into ...
4024 (record_print_flag) <record_print_src_line,
4025 record_print_insn_range>: ... this. Update all users.
4027 2013-09-02 Pierre Muller <muller@sourceware.org>
4029 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4032 2013-09-02 Pierre Muller <muller@sourceware.org>
4034 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4035 by use of plongest function.
4037 2013-09-02 Tristan Gingold <gingold@adacore.com>
4039 * NEWS: Add entry mentioning support for native Windows x64
4042 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4043 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4044 (struct amd64_windows_frame_cache): New struct.
4045 (amd64_windows_w2gdb_regnum): New global.
4046 (pc_in_range, amd64_windows_frame_decode_epilogue)
4047 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4048 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4049 (amd64_windows_frame_this_id): New functions.
4050 (amd64_windows_frame_unwind): New static global.
4051 (amd64_windows_skip_prologue): New function.
4052 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4053 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4054 with amd64_windows_skip_prologue.
4056 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4060 2013-08-30 Pedro Alves <palves@redhat.com>
4062 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4065 2013-08-30 Pedro Alves <palves@redhat.com>
4067 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4070 2013-08-30 Pedro Alves <palves@redhat.com>
4072 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4073 Adjust arguments to print_stack_frame.
4075 2013-08-30 Pedro Alves <palves@redhat.com>
4077 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4079 2013-08-30 Pedro Alves <palves@redhat.com>
4081 * frame.h (show_and_print_stack_frame): Delete declaration.
4083 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4086 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4087 (archpy_name): Check for valid architecture.
4088 (archpy_disassemble): Ditto.
4090 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4092 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4093 instead of "long long" in call to ptrace64.
4095 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4097 * mi/mi-interp.c (mi_command_loop): Change signature to match
4098 interp_command_loop_ftype.
4099 (mi1_command_loop): Remove.
4100 (mi2_command_loop): Remove.
4101 (mi3_command_loop): Remove.
4102 (mi_interpreter_resume): Remove setting of
4103 deprecated_command_loop_hook.
4104 (_initialize_mi_interp): Set mi_command_loop as the command loop
4107 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4109 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4112 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4114 * value.c (allocate_value_contents): Make static.
4115 * value.h (allocate_value_contents): Remove prototype.
4117 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4119 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4120 of assembling value via allocate_value_lazy and attribute setter.
4121 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4122 assembling value via allocate_value_lazy and attribute setter.
4123 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4124 assembling value via allocate_value_lazy and attribute setter.
4126 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4128 * value.c (value_from_contents_and_address): Replace allocate_value and
4129 memcpy with value_from_contents.
4131 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4133 * python/py-framefilter.c (py_print_frame): Remove usage of
4134 PyString_AsString. Use python_string_to_host_string instead.
4135 Refactor function to work with a string as a new allocation
4136 instead of a pointer.
4137 (py_print_frame): Ditto.
4138 * python/lib/gdb/frames.py (return_list): Cain iterators together
4139 instead of adding them as a list.
4140 (_sort_list): Call return_list, and remove duplicate code.
4141 (execute_frame_filters): Convert iterator to a list with list().
4142 * python/lib/gdb/command/frame_filters.py
4143 (SetFrameFilterPriority._set_filter_priority): Convert priority
4144 attribute to an integer.
4145 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4146 wrapper function __next__.
4147 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4150 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4153 * python/py-framefilter.c (apply_frame_filter): Check
4154 gdb_python_initialized. Exit if the Python frame-filter code
4155 cannot be initialized.
4157 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4160 * top.c (print_gdb_version): Remove erroneous newline after help
4163 2013-08-29 Yao Qi <yao@codesourcery.com>
4165 * varobj.c (install_dynamic_child): Remove trailing space.
4166 Add one blank line after variable declaration.
4168 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4171 * corefile.c (get_exec_file): Use exec_filename.
4172 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4173 * exec.c (exec_close): Free EXEC_FILENAME.
4174 (exec_file_attach): New variable canonical_pathname. Use
4175 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4177 * exec.h (exec_filename): New.
4178 * inferior.c (print_inferior, inferior_command): Use
4179 PSPACE_EXEC_FILENAME.
4180 * mi/mi-main.c (print_one_inferior): Likewise.
4181 * progspace.c (clone_program_space, print_program_space): Likewise.
4182 * progspace.h (struct program_space): New field pspace_exec_filename.
4183 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4184 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4186 2013-08-28 Will Newton <will.newton@linaro.org>
4188 * common/linux-ptrace.c: Include stdint.h unconditionally.
4190 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4195 2013-08-28 Yao Qi <yao@codesourcery.com>
4196 Pedro Alves <palves@redhat.com>
4198 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4199 instead of stdio_fileopen.
4200 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4201 .Call stderr_fileopen instead of stdio_fileopen.
4202 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4203 [__MINGW32__] (stderr_file_fputs): New function.
4204 (stderr_fileopen): New function.
4205 * ui-file.h (stderr_fileopen): Declare.
4207 2013-08-27 Doug Evans <dje@google.com>
4209 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4210 (struct dwarf2_per_cu_data): Ditto.
4211 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4212 (process_imported_unit_die): Ditto.
4213 (follow_die_sig_1): Simplify assert.
4215 2013-08-27 Pedro Alves <palves@redhat.com>
4217 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4218 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4219 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4220 windows_xfer_memory directly.
4221 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4223 2013-08-27 Pedro Alves <palves@redhat.com>
4225 * darwin-nat.c (darwin_xfer_memory): Delete.
4226 (_initialize_darwin_inferior): Don't install a
4227 deprecated_xfer_memory method.
4229 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4230 Yao Qi <yao@codesourcery.com>
4232 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4233 (parse_no_frames_option): Remove.
4234 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4235 (mi_cmd_stack_list_args): Adjust.
4236 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4237 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4238 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4240 (list_args_or_locals): New parameter 'skip_unavailable'.
4242 * valprint.c (scalar_type_p): Rename to ...
4243 (val_print_scalar_type_p): ... this. Make extern.
4244 (val_print, value_check_printable): Adjust.
4245 * valprint.h (val_print_scalar_type_p): Declare.
4246 * value.c (value_entirely_unavailable): New function.
4247 * value.h (value_entirely_unavailable): Declare.
4249 * NEWS: Mention the new option "--skip-unavailable" to MI
4250 commands '-stack-list-locals', '-stack-list-arguments' and
4251 '-stack-list-variables'.
4253 2013-08-27 Yao Qi <yao@codesourcery.com>
4255 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4256 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4258 * mi/mi-getopt.c (mi_getopt): Remove.
4259 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4261 (mi_getopt): Call mi_getopt_1.
4262 (mi_getopt_silent): New.
4263 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4265 2013-08-26 Doug Evans <dje@google.com>
4268 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4269 .gdb_index is in use.
4270 * symfile.c (reread_symbols): Reset objfile->sf.
4272 * NEWS: Document "mt print objfiles" now takes optional regexp.
4273 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4274 regexp of objfiles to print.
4275 (_initialize_symmisc): Update doc string for "mt print objfiles".
4277 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4278 missing debug info checks.
4280 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4281 Ulrich Weigand <uweigand@de.ibm.com>
4283 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4284 line tables generated by XLC compiled binaries.
4286 2013-08-23 Doug Evans <dje@google.com>
4288 * symmisc.c (dump_symtab): Delete prototype.
4289 (dump_msymbols, dump_objfile): Ditto.
4290 (maintenance_info_symtabs): Mark as dont_repeat.
4291 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4293 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4294 debugging printf to better location.
4296 2013-08-23 Pedro Alves <palves@redhat.com>
4298 * target.c (target_read_live_memory): Change type of 'ret' local
4301 2013-08-23 Pedro Alves <palves@redhat.com>
4303 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4304 (remote_read_bytes): Change return type to LONGEST, and adjust to
4305 return a target_xfer_error on error.
4306 (remote_xfer_memory): Delete.
4307 (remote_flash_write): Change type of 'ret' local to LONGEST.
4308 (remote_xfer_partial, remote_xfer_partial): Adjust.
4309 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4311 2013-08-23 Pierre Muller <muller@sourceware.org>
4313 ARI fix: Push # directives to start of line.
4314 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4316 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4319 * breakpoint.c (enable_command, disable_command): Iterate over
4320 all specified breakpoint locations.
4322 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4324 * common/linux-ptrace.c (linux_fork_to_function): Push #
4325 directives to the start of the line.
4326 (linux_check_ptrace_features): Fix warning message to use
4329 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4331 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4332 nat/linux-waitpid.h.
4333 (linux-waitpid.o): New object file rule.
4334 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4335 (current_ptrace_options): Moved from linux-nat.c.
4336 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4338 (linux_fork_to_function): New function.
4339 (linux_grandchild_function): Likewise.
4340 (linux_child_function): Likewise.
4341 (linux_check_ptrace_features): New function, heavily
4342 based on linux-nat.c:linux_test_for_tracefork.
4343 (linux_enable_event_reporting): New function.
4344 (ptrace_supports_feature): Likewise.
4345 (linux_supports_tracefork): Likewise.
4346 (linux_supports_traceclone): Likewise.
4347 (linux_supports_tracevforkdone): Likewise.
4348 (linux_supports_tracesysgood): Likewise.
4349 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4350 gdbserver/linux-low.c.
4351 (linux_enable_event_reporting): New declaration.
4352 (linux_supports_tracefork): Likewise.
4353 (linux_supports_traceclone): Likewise.
4354 (linux_supports_tracevforkdone): Likewise.
4355 (linux_supports_tracesysgood): Likewise.
4356 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4357 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4358 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4359 * config/arm/linux.mh (NATDEPFILES): Likewise.
4360 * config/i386/linux.mh (NATDEPFILES): Likewise.
4361 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4362 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4363 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4364 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4365 * config/mips/linux.mh (NATDEPFILES): Likewise.
4366 * config/pa/linux.mh (NATDEPFILES): Likewise..
4367 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4368 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4369 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4370 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4371 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4372 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4373 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4374 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4375 ptrace's 4th argument's types.
4376 Check the type of PTRACE_TYPE_ARG4.
4377 * configure: Regenerate.
4378 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4379 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4380 (linux_supports_tracefork_flag): Remove.
4381 (linux_supports_tracesysgood_flag): Likewise.
4382 (linux_supports_tracevforkdone_flag): Likewise.
4383 (current_ptrace_options): Moved to
4384 common/linux-ptrace.c.
4385 (linux_tracefork_child): Remove.
4386 (my_waitpid): Remove.
4387 (linux_test_for_tracefork): Renamed to
4388 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4389 (linux_test_for_tracesysgood): Remove.
4390 (linux_supports_tracesysgood): Remove.
4391 (linux_supports_tracefork): Remove.
4392 (linux_supports_tracevforkdone): Remove.
4393 (linux_enable_tracesysgood): Remove.
4394 (linux_enable_event_reporting): Remove.
4395 (linux_init_ptrace): New function.
4396 (linux_child_post_attach): Call linux_init_ptrace.
4397 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4398 (linux_child_follow_fork): Call linux_supports_tracefork
4399 and linux_supports_tracevforkdone.
4400 (linux_child_insert_fork_catchpoint): Call
4401 linux_supports_tracefork.
4402 (linux_child_insert_vfork_catchpoint): Likewise.
4403 (linux_child_set_syscall_catchpoint): Call
4404 linux_supports_tracesysgood.
4405 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4406 * nat/linux-nat.h: New file.
4407 * nat/linux-waitpid.c: New file.
4408 * nat/linux-waitpid.h: New file.
4410 2013-08-22 Samuel Bronson <naesten@gmail.com>
4412 ARM Linux support for `catch syscall'.
4413 * syscalls/arm-linux.py: New file.
4414 * syscalls/arm-linux.xml: Likewise.
4415 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4416 (arm_linux_init_abi): Register the new function and syscall xml file.
4417 * data-directory/Makefile.in: Install the new syscall xml file.
4418 * NEWS: Brag about this.
4420 2013-08-22 Pedro Alves <palves@redhat.com>
4423 * corefile.c (target_xfer_memory_error): New function.
4424 (memory_error): Defer EIO to target_memory_error.
4425 (read_memory): Use target_xfer_partial, and handle finer-grained
4427 * target.c (target_xfer_error_to_string): New function.
4428 (memory_xfer_partial_1): If memory is known to be
4429 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4430 (target_xfer_partial): Make extern.
4431 * target.h (enum target_xfer_error): New enum.
4432 (target_xfer_error_to_string): Declare function.
4433 (target_xfer_partial): Declare function.
4434 (struct target_ops) <xfer_partial>: Adjust describing comment.
4436 2013-08-22 Alan Modra <amodra@gmail.com>
4438 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4439 * configure.tgt: Likewise as targets.
4441 2013-08-20 Doug Evans <dje@google.com>
4443 * buildsym.c (subfile_stack): Move here from buildsym.h.
4444 (pending_macros): Ditto.
4445 (get_macro_table): New function.
4446 (buildsym_init): Initialize subfile_stack.
4447 * coffread.c (type_vector,type_vector_length): Moved here from
4449 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4450 (coff_symtab_read): Use it.
4451 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4452 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4453 with call to get_macro_table.
4454 * stabsread.c (type_vector,type_vector_length): Moved here from
4456 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4457 * buildsym.h (get_macro_table): Declare.
4459 2013-08-20 Tom Tromey <tromey@redhat.com>
4461 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4463 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4465 2013-08-20 Doug Evans <dje@google.com>
4467 * blockframe.c: Remove #include "psymtab.h".
4468 * cp-support.c: Ditto.
4472 2013-08-20 Tom Tromey <tromey@redhat.com>
4475 * exceptions.h (return_mask): Now an enum.
4476 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4479 2013-08-20 Tom Tromey <tromey@redhat.com>
4481 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4483 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4484 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4485 * jit.c (jit_object_close_impl): Update.
4486 * jv-lang.c (get_dynamics_objfile): Update.
4487 * linespec.c (add_minsym): Use get_dynamics_objfile.
4488 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4489 (allocate_objfile): Don't initialize 'gdbarch' field.
4490 (get_objfile_arch): Update.
4491 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4493 (struct objfile) <gdbarch>: ... here. Remove.
4494 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4496 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4498 2013-08-20 Alan Modra <amodra@gmail.com>
4500 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4501 for IBM long double nan and inf.
4502 (floatformat_is_negative, floatformat_classify,
4503 floatformat_mantissa): Similarly.
4504 (floatformat_ieee_single, floatformat_ieee_double,
4505 floatformat_ieee_quad, floatformat_arm_ext,
4506 floatformat_ia64_spill): Delete unused vars.
4507 (_initialize_doublest): Delete unused function.
4508 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4509 little-endian variants of floatformat_ibm_long_double.
4511 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4513 * Makefile.in (SFILES): Remove common/target-common.c and
4514 add target/waitstatus.c.
4515 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4516 target/resume.h, target/wait.h and target/waitstatus.h.
4517 (COMMON_OBS): Remove target-common.o and add
4519 (target-common.o): Remove.
4520 (waitstatus.o): New target object file.
4521 * common/target-common.c: Move contents to
4522 target/waitstatus.c and remove.
4523 * common/target-common.h: Move contents to other files and
4525 (enum resume_kind: Move to target/resume.h.
4526 (TARGET_WNOHANG): Move to target/wait.h.
4527 (enum target_waitkind): Move to target/waitstatus.h.
4528 (struct target_waitstatus): Likewise.
4529 * target.h: Do not include target-common.h and
4530 include target/resume.h, target/wait.h and
4531 target/waitstatus.h.
4532 * target/resume.h: New file.
4533 * target/wait.h: New file.
4534 * target/waitstatus.h: New file.
4535 * target/waitstatus.c: New file.
4537 2013-08-19 Pedro Alves <palves@redhat.com>
4539 * linux-nat.c (linux_test_for_tracefork)
4540 (linux_test_for_tracesysgood, linux_child_follow_fork)
4541 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4542 (linux_nat_wait_1): Extend comment.
4543 (linux_async_pipe): Add comment.
4545 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4547 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4548 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4549 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4550 Update to account for fact that PC is now a pseudo-register.
4551 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4552 cases for RL78_PC_REGNUM.
4554 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4557 * top.c (quit_force): Skip writing history file
4558 if input is not from terminal.
4560 2013-08-14 Tom Tromey <tromey@redhat.com>
4562 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4563 resultthreadlist>: New fields.
4564 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4565 (remote_get_threadlist, remote_threadlist_iterator): Use
4566 new fields. Remove static variables.
4568 2013-08-14 Tom Tromey <tromey@redhat.com>
4570 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4571 remote_watch_data_address>: New fields.
4572 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4573 (process_stop_reply, remote_wait_as)
4574 (remote_check_watch_resources, remote_stopped_data_address): Update.
4576 2013-08-14 Tom Tromey <tromey@redhat.com>
4578 * remote.c (struct remote_state) <async_client_callback,
4579 async_client_context>: New fields.
4580 (async_client_callback, async_client_context): Remove.
4581 (remote_async_serial_handler, remote_async): Update.
4583 2013-08-14 Tom Tromey <tromey@redhat.com>
4585 * remote.c (sizeof_pkt): Remove.
4586 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4588 2013-08-14 Tom Tromey <tromey@redhat.com>
4590 * remote.c (struct remote_state) <use_threadinfo_query,
4591 use_threadextra_query>: New fields.
4592 (remote_threads_info, remote_threads_extra_info)
4593 (remote_open_1): Update.
4595 2013-08-14 Tom Tromey <tromey@redhat.com>
4597 * remote.c (struct remote_state) <finished_object,
4598 finished_annex, finished_offset>: New fields.
4599 (remote_read_qxfer): Use remote_state fields; remove static
4602 2013-08-14 Tom Tromey <tromey@redhat.com>
4604 * remote.c (struct remote_state) <last_sent_step>:
4606 (last_sent_step): Remove.
4607 (remote_resume, remote_wait_as): Update.
4609 2013-08-14 Tom Tromey <tromey@redhat.com>
4611 * remote.c (struct remote_state) <last_sent_signal>:
4613 (last_sent_signal): Remove.
4614 (new_remote_state, remote_resume, remote_wait_as): Update.
4616 2013-08-14 Tom Tromey <tromey@redhat.com>
4618 * remote.c (struct remote_state) <last_program_signals_packet>:
4620 (last_program_signals_packet): Remove.
4621 (remote_program_signals, remote_open_1): Update.
4623 2013-08-14 Tom Tromey <tromey@redhat.com>
4625 * remote.c (struct remote_state) <last_pass_packet>:
4627 (last_pass_packet): Remove.
4628 (remote_pass_signals, remote_open_1): Update.
4630 2013-08-14 Tom Tromey <tromey@redhat.com>
4632 * remote.c (struct remote_state) <remote_traceframe_number>:
4634 (remote_traceframe_number): Remove.
4635 (new_remote_state, remote_open_1, set_remote_traceframe)
4636 (remote_trace_find): Update.
4638 2013-08-14 Tom Tromey <tromey@redhat.com>
4640 * remote.c (struct remote_state) <general_thread, continue_thread>:
4642 (general_thread, continue_thread): Remove.
4643 (record_currthread, set_thread, set_general_process)
4644 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4645 (extended_remote_mourn_1): Update.
4647 2013-08-14 Tom Tromey <tromey@redhat.com>
4649 * remote.c (struct remote_state) <remote_desc>: New field.
4650 (remote_desc): Remove.
4651 (remote_threads_info, remote_threads_extra_info, remote_close)
4652 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4653 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4654 (remote_hostio_send_command, remote_file_put, remote_file_get)
4655 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4656 (remote_async, remote_new_objfile, set_range_stepping): Update.
4658 2013-08-14 Tom Tromey <tromey@redhat.com>
4660 * remote.c (remote_state): Now a pointer.
4661 (get_remote_state_raw): Update.
4662 (new_remote_state): New function.
4663 (_initialize_remote): Use new_remote_state.
4665 2013-08-14 Tom Tromey <tromey@redhat.com>
4667 * remote.c (remote_protocol_features): Now const.
4669 2013-08-14 Tom Tromey <tromey@redhat.com>
4671 * remote.c (crc32_table, crc32): Remove.
4672 (remote_verify_memory): Use xcrc32.
4674 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4676 * value.h (create_internalvar_type_lazy): Adjust prototype
4679 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4681 * common/format.c (parse_format_string): Don't allow '#' flag for
4682 pointer arguments in format string.
4684 2013-08-13 Pierre Muller <muller@sourceware.org>
4686 * utils.c (init_page_info): Only call tgetnum function
4687 if rl_get_screen_size did not return useful values.
4689 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4691 PR breakpoints/15117
4692 * linespec.c (linespec_parse_basic): Check for convenience
4693 variable or history value while parsing.
4695 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4697 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4699 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4700 different signals between the generic Linux kernel implementation
4702 (avr_linux_gdb_signal_from_target): Delete.
4703 (avr_linux_gdb_signal_to_target): Delete.
4704 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4706 2013-08-09 Doug Evans <dje@google.com>
4708 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4711 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4713 * linux-tdep.c: Define enum with generic signal numbers.
4714 (linux_gdb_signal_from_target): New function.
4715 (linux_gdb_signal_to_target): Likewise.
4716 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4717 methods to the functions above.
4718 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4719 (linux_gdb_signal_to_target): Likewise.
4720 * alpha-linux-tdep.c: Define new enum with signals different
4721 from generic Linux kernel.
4722 (alpha_linux_gdb_signal_from_target): New function.
4723 (alpha_linux_gdb_signal_to_target): Likewise.
4724 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4725 with the functions mentioned above.
4726 * avr-tdep.c: Define enum with differences between Linux kernel
4728 (avr_linux_gdb_signal_from_target): New function.
4729 (avr_linux_gdb_signal_to_target): Likewise.
4730 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4731 the functions mentioned above.
4732 * sparc-linux-tdep.c: Define enum with differences between SPARC
4733 and generic Linux kernel signal numbers.
4734 (sparc32_linux_gdb_signal_from_target): New function.
4735 (sparc32_linux_gdb_signal_to_target): Likewise.
4736 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4737 to the functions defined above.
4738 * xtensa-linux-tdep.c: Define enum with differences between
4739 Xtensa and Linux kernel generic signals.
4740 (xtensa_linux_gdb_signal_from_target): New function.
4741 (xtensa_linux_gdb_signal_to_target): Likewise.
4742 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4743 to the functions defined above.
4744 * mips-linux-tdep.c: Define enum with differences between
4745 signals in MIPS and Linux kernel generic ones.
4746 (mips_gdb_signal_to_target): New function.
4747 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4748 only different signals from the Linux kernel generic.
4749 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4750 the functions defined above.
4751 * mips-linux-tdep.h (enum mips_signals): Remove.
4753 2013-08-09 Pedro Alves <palves@redhat.com>
4755 * avr-tdep.c (XMALLOC): Delete macro.
4756 * cli/cli-dump.c (XMALLOC): Delete macro.
4758 2013-08-09 Pedro Alves <palves@redhat.com>
4760 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4761 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4762 (fopen_with_cleanup, add_dump_command): Make static.
4763 * cli/cli-dump.h: Delete file.
4764 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4767 2013-08-09 Pedro Alves <palves@redhat.com>
4769 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4772 2013-08-09 Pedro Alves <palves@redhat.com>
4774 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4777 2013-08-09 Pedro Alves <palves@redhat.com>
4779 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4780 (gcore_command): Use tilde_expand here, and when showing the
4781 filename to the user, show the expanded version.
4783 2013-08-09 Yao Qi <yao@codesourcery.com>
4785 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4788 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4790 * gcore.c (create_gcore_bfd): Use tilde_expand.
4792 2013-08-08 Yao Qi <yao@codesourcery.com>
4794 * frame.h (read_frame_local): Declare.
4795 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4797 * stack.c (read_frame_local): New.
4799 2013-08-08 Yao Qi <yao@codesourcery.com>
4801 * mi/mi-cmd-stack.c: Update comments to function
4802 list_args_or_locals.
4804 2013-08-07 Tom Tromey <tromey@redhat.com>
4807 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4808 (process_psymtab_comp_unit_reader): Use it.
4809 (process_psymtab_comp_unit): Update. Add "pretend_language"
4811 (dwarf2_build_psymtabs_hard): Update.
4812 (scan_partial_symbols): Pass CU's language to
4813 process_psymtab_comp_unit.
4815 2013-08-07 Tom Tromey <tromey@redhat.com>
4817 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4818 (dwarf2_gdb_index_functions): Update.
4819 * psymtab.c (find_symbol_file_from_partial): Remove.
4820 (psym_functions): Update.
4821 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4824 2013-08-07 Tom Tromey <tromey@redhat.com>
4826 * symfile.c (set_initial_language): Look up "main" symbol
4827 and use its language.
4828 * symtab.c (find_main_filename): Remove.
4829 * symtab.h (find_main_filename): Remove.
4831 2013-08-07 Tom Tromey <tromey@redhat.com>
4833 * dwarf2read.c (recursively_compute_inclusions): Add
4834 "immediate_parent" argument. Set symtab's "user" field
4836 (compute_symtab_includes): Update.
4838 2013-08-07 Tom Tromey <tromey@redhat.com>
4840 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4841 when adding label symbols.
4843 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4844 Ulrich Weigand <uweigand@de.ibm.com>
4846 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4847 * configure.host (powerpc64-*-aix*): Likewise.
4849 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4850 Ulrich Weigand <uweigand@de.ibm.com>
4852 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4854 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4855 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4856 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4857 * configure.ac: Check for ptrace64.
4858 * configure, config.in: Regenerate.
4860 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4861 Ulrich Weigand <uweigand@de.ibm.com>
4863 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4864 Call ptrace64 instead of ptrace if defined.
4865 Add macro addr_ptr to take care of ptrace address argument.
4866 (pdc_read_regs): Likewise.
4867 (pdc_write_regs): Likewise.
4868 (aix_thread_resume): Likewise.
4869 (fetch_regs_kernel_thread): Likewise.
4870 (store_regs_kernel_thread): Likewise.
4872 2013-08-07 Anton Blanchard <anton@samba.org>
4874 * MAINTAINERS: Add myself to Write After Approval.
4876 2013-08-05 Tom Tromey <tromey@redhat.com>
4878 * aix-thread.c (_initialize_aix_thread): Use
4879 complete_target_initialization.
4880 * bsd-uthread.c (_initialize_bsd_uthread): Use
4881 complete_target_initialization.
4882 * dec-thread.c (_initialize_dec_thread): Use
4883 complete_target_initialization.
4884 * ravenscar-thread.c (_initialize_ravenscar): Use
4885 complete_target_initialization.
4886 * sol-thread.c (_initialize_sol_thread): Use
4887 complete_target_initialization.
4888 * spu-multiarch.c (_initialize_spu_multiarch): Use
4889 complete_target_initialization.
4891 2013-08-05 Tom Tromey <tromey@redhat.com>
4893 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4894 * ada-lang.c (ada_lookup_simple_minsym): Return
4895 bound_minimal_symbol.
4896 * ada-lang.h (ada_lookup_simple_minsym): Update.
4897 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4898 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4899 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4900 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4901 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4902 * minsyms.c (msymbol_objfile): Remove.
4903 (lookup_minimal_symbol_internal): New function, from
4904 lookup_minimal_symbol.
4905 (lookup_minimal_symbol): Rewrite using
4906 lookup_minimal_symbol_internal.
4907 (lookup_bound_minimal_symbol): New function.
4908 * minsyms.h (msymbol_objfile): Remove.
4909 (lookup_bound_minimal_symbol): Declare.
4910 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4911 * parse.c (write_exp_msymbol): Change parameter to a
4912 bound_minimal_symbol.
4913 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4914 * parser-defs.h (write_exp_msymbol): Update.
4915 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4916 * symfile.c (simple_read_overlay_table): Use
4917 lookup_bound_minimal_symbol.
4918 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4919 (search_symbols): Likewise.
4920 (print_msymbol_info): Take a bound_minimal_symbol argument.
4921 (symtab_symbol_info, rbreak_command): Update.
4922 * symtab.h (struct symbol_search) <msymbol>: Change type
4923 to bound_minimal_symbol.
4924 * valops.c (find_function_in_inferior): Use
4925 lookup_bound_minimal_symbol.
4926 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4928 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4933 (async_cleanup_sigint_signal_handler): ... this.
4934 (initialize_sigint_signal_handler): Remove declaration.
4935 (handle_remote_sigint): Rename the declaration to ...
4936 (async_handle_remote_sigint): ... this.
4937 (handle_remote_sigint_twice): Rename the declaration to ...
4938 (async_handle_remote_sigint_twice): ... this.
4939 (async_remote_interrupt, async_remote_interrupt_twice)
4940 (remote_interrupt): Remove the declarations.
4941 (remote_interrupt_twice): Rename the declaration ...
4942 (sync_remote_interrupt_twice): ... this.
4943 (sigint_remote_twice_token): Rename the variable to ...
4944 (async_sigint_remote_twice_token): ... this.
4945 (sigint_remote_token): Rename the variable to ...
4946 (async_sigint_remote_token): ... this.
4947 (initialize_sigint_signal_handler): Rename the function to ...
4948 (async_initialize_sigint_signal_handler): ... this. Update the name
4950 (handle_remote_sigint): Rename the function to ...
4951 (async_handle_remote_sigint): ... this. Update the names inside.
4952 (handle_remote_sigint_twice): Rename the function to ...
4953 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4954 (cleanup_sigint_signal_handler): Rename the function to ...
4955 (async_cleanup_sigint_signal_handler): ... this.
4956 (remote_interrupt): Rename the function to ...
4957 (sync_remote_interrupt): this. Update the names inside.
4958 (remote_interrupt_twice): Rename the function to ...
4959 (sync_remote_interrupt_twice): this. Update the names inside.
4960 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4961 (_initialize_remote): Update the names inside.
4963 2013-08-02 Tom Tromey <tromey@redhat.com>
4966 * breakpoint.c (update_watchpoint, watchpoint_check)
4967 (watch_command_1): Update.
4968 * eval.c (fetch_subexp_value): Add "preserve_errors"
4970 * ppc-linux-nat.c (check_condition): Update.
4971 * value.h (fetch_subexp_value): Update.
4973 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4975 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4978 2013-08-01 Doug Evans <dje@google.com>
4981 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4982 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4983 Add assert of sig_entry->dwo_unit == NULL.
4984 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4985 had already been read.
4986 (read_signatured_type): Set per_cu.tu_read.
4989 * valops.c (value_struct_elt): Add missing call to check_typedef.
4990 (value_find_oload_method_list): Ditto.
4992 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4993 effectively, struct symbol_search **.
4994 (make_cleanup_free_search_symbols): Change arg to struct
4995 symbol_search **. All callers updated.
4996 (compare_search_syms): Compare symtab file name and block as well.
4997 (search_symbols_equal): New function.
4998 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4999 New args new_head, new_tail. Result is now void. Remove dups after
5000 sorting the symbols.
5001 (search_symbols): Sort all found symbols once, after all have been
5002 found, and remove duplicates. Simplify cleanup tracking of result.
5003 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5005 Further workarounds for binutils/15021.
5006 * dwarf2read.c (recursively_compute_inclusions): Change type of result
5007 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
5008 Watch for duplicate symtabs coming from type units.
5009 (compute_symtab_includes): Update call to
5010 recursively_compute_inclusions. Build vector of included symtabs
5012 * symtab.h (symtab_ptr): New typedef.
5013 (DEF_VEC_P (symtab_ptr)): New VEC type.
5014 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
5017 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5019 * cli/cli-script.c (script_from_file): Remove use of
5021 * main.c (captured_main): Remove use of error_pre_print and
5023 * utils.c (error_pre_print, quit_pre_print): Remove.
5024 * utils.h (error_pre_print, quit_pre_print): Likewise.
5026 2013-08-01 Yao Qi <yao@codesourcery.com>
5028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5030 (mi_cmd_stack_list_variables): Likewise.
5032 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5034 * exceptions.c (deprecated_throw_reason): Remove.
5035 * exceptions.h (deprecated_throw_reason): Remove.
5037 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5039 * remote-mips.c (mips_error): Replace use of
5040 deprecated_throw_reason with throw_verror. Use the error message
5041 passed to mips_error as the error message for throw_verror.
5043 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5045 * monitor.c (monitor_interrupt_query): Replace use of
5046 deprecated_throw_reason with quit.
5047 * nto-procfs.c (interrupt_query): Likewise.
5048 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5049 * remote-mips.c (mips_kill): Likewise.
5050 * remote.c (interrupt_query): Likewise.
5052 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5054 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5057 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5058 Yao Qi <yao@codesourcery.com>
5060 * tracepoint.c (trace_dump_command): Select the current frame.
5062 2013-07-30 Doug Evans <dje@google.com>
5064 * dwarf2read.c (process_queue): Add type signature to debug output.
5066 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5068 * value.c (value_fetch_lazy): Mark optimized out values as such
5069 rather than raising an error.
5071 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5073 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5074 before checking which bits of the parent, not the child, value are
5077 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5080 * top.c: Include "filenames.h".
5081 (set_history_filename): New function.
5082 (init_main): Install it as set hook of the "set history filename"
5085 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5087 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5088 attribute parameter.
5089 (dwarf2_const_value_data): Constify struct attribute parameter.
5090 (dwarf2_const_value): Constify struct attribute parameter.
5091 (dwarf2_const_value_attr): Constify struct attribute parameter.
5092 (lookup_die_type): Constify struct attribute parameter.
5093 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5094 (follow_die_ref_or_sig): Constify struct attribute parameter.
5095 (follow_die_ref): Constify struct attribute parameter.
5096 (follow_die_sig): Constify struct attribute parameter.
5097 (get_DW_AT_signature_type): Constify struct attribute parameter.
5098 (get_type_unit_group): Constify struct attribute parameter.
5099 (fill_in_loclist_baton): Constify struct attribute parameter.
5100 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5101 (type_unit_group): Constify struct attribute parameter.
5103 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5105 * dwarf2read.c (attr_form_is_block): Make argument const.
5106 (attr_form_is_section_offset): Make argument const.
5107 (attr_form_is_constant): Make argument const.
5108 (attr_form_is_ref): Make argument const.
5110 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5112 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5114 (attr_form_is_ref): Moved below attr_form_is_constant.
5116 2013-07-29 Doug Evans <dje@google.com>
5118 * main.c (captured_command_loop): Tweak comment.
5120 * target.c (target_async_permitted_1): Fix comment.
5122 * symtab.c (iterate_over_some_symtabs): Add comment.
5124 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5126 2013-07-27 Yao Qi <yao@codesourcery.com>
5128 * NEWS: Mention that GDBserver now supports hardware
5129 watchpoints on the MIPS GNU/Linux target.
5131 2013-07-27 Yao Qi <yao@codesourcery.com>
5133 * Makefile.in (HFILES_NO_SRCDIR): Add
5134 common/mips-linux-watch.h.
5135 (mips-linux-watch.o): New rule.
5136 * common/mips-linux-watch.c: New.
5137 * common/mips-linux-watch.h: New.
5138 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5139 * mips-linux-nat.c: Include mips-linux-watch.h.
5140 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5141 to common/mips-linux-watch.h.
5142 (MAX_DEBUG_REGISTER): Likewise.
5143 (enum pt_watch_style): Likewise.
5144 (struct mips32_watch_regs): Likewise.
5145 (struct mips64_watch_regs): Likewise.
5146 (struct pt_watch_regs): Likewise.
5147 (struct mips_watchpoint): Likewise.
5148 (mips_linux_watch_get_irw_mask): Move to
5149 common/mips-linux-watch.c.
5150 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5151 (mips_linux_watch_get_watchlo): Likewise.
5152 (mips_linux_watch_set_watchlo): Likewise.
5153 (mips_linux_watch_get_watchhi): Likewise.
5154 (mips_linux_watch_set_watchhi): Likewise.
5155 (mips_linux_read_watch_registers): Likewise.
5156 (mips_linux_watch_type_to_irw): Likewise.
5157 (mips_linux_stopped_data_address, fill_mask): Likewise.
5158 (mips_linux_watch_try_one_watch): Likewise.
5159 (mips_linux_watch_populate_regs): Likewise.
5161 2013-07-27 Yao Qi <yao@codesourcery.com>
5163 * mips-linux-nat.c (get_irw_mask): Rename to ...
5164 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5165 'set' to 'n'. Update function comment. All callers changed.
5166 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5167 function comment. All callers changed.
5168 (get_num_valid): Rename to ...
5169 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5170 'set' to 'n'. Update function comment. All callers changed.
5171 (get_watchlo): Rename to ...
5172 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5173 'set' to 'n'. Update function comment. All callers changed.
5174 (set_watchlo): Rename to ...
5175 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5176 'set' to 'n'. Update function comment. All callers changed.
5177 (get_watchhi): Rename to ...
5178 (mips_linux_watch_get_watchhi): ... this. Update function
5179 comment. All callers changed.
5180 (set_watchhi): Rename to ...
5181 (mips_linux_watch_set_watchhi): ... this. Update function
5182 comment. All callers changed.
5183 (mips_linux_read_watch_registers): Update function comment.
5184 Add new parameters 'lwpid', 'watch_readback', and
5185 'watch_readback_valid'. Update.
5186 (type_to_irw): Rename to ...
5187 (mips_linux_watch_type_to_irw): ... this. Update function
5188 comment. All callers changed.
5189 (fill_mask): Update function comment.
5190 (try_one_watch): Rename to ...
5191 (mips_linux_watch_try_one_watch): ... this. Change the type
5192 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5193 (populate_regs_from_watches): Rename to ...
5194 (mips_linux_watch_populate_regs): ... this. Add parameter
5195 'current_watches'. All callers changed.
5197 2013-07-27 Yao Qi <yao@codesourcery.com>
5199 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5201 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5202 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5203 (struct pt_watch_regs): Likewise.
5204 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5205 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5206 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5207 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5208 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5210 2013-07-27 Yao Qi <yao@codesourcery.com>
5212 * breakpoint.h: Include break-common.h.
5213 (enum target_hw_bp_type): Move to ...
5214 * common/break-common.h: ... here. New.
5216 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5218 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5219 process group regardless of having tty on stdin.
5221 2013-07-25 Doug Evans <dje@google.com>
5223 * linux-fork.h (detach_fork): Delete.
5225 2013-07-25 Tom Tromey <tromey@redhat.com>
5227 PR remote/15256, PR remote/15266:
5228 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5229 * monitor.c (monitor_detach): Use unpush_target.
5230 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5231 * remote-mips.c (mips_detach): Use unpush_target. Don't
5233 * remote-sim.c (gdbsim_detach): Use unpush_target.
5234 * target.c (pop_target): Remove.
5235 (pop_all_targets_above): Don't call target_close.
5236 (target_close): Assert that the target is unpushed.
5237 * target.h (pop_target): Don't declare.
5238 * tracepoint.c (tfile_open): Use unpush_target.
5240 2013-07-25 Tom Tromey <tromey@redhat.com>
5242 * linux-thread-db.c (init_thread_db_ops): Call
5243 complete_target_initialization.
5244 (_initialize_thread_db): Don't call add_target.
5245 * target.c (complete_target_initialization): New function.
5246 (add_target_with_completer): Call it.
5247 * target.h (complete_target_initialization): Declare.
5249 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5251 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5252 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5253 (HPPANBSD_SIZEOF_GREGS): New define.
5254 (hppaobsd_supply_gregset): Handle additional registers.
5255 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5256 we provide more registers now.
5257 (hppabsd_supply_gregset): Supply additional registers.
5258 (hppabsd_collect_gregset): Collect additional registers.
5260 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5262 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5263 (hppabsd_dwarf2_frame_init_reg): New function.
5264 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5266 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5268 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5269 'z' format code. Remove error for optimized out values, standard
5270 code will handle these fine.
5272 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5274 * NEWS: Mention new 'z' formatter.
5275 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5276 (_initialize_printcmd): Mention 'z' formatter in help text of the
5279 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5281 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5284 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5286 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5287 interface can evaluate arguments. Fallback to the old mode if it
5289 (create_exception_master_breakpoint): Likewise.
5290 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5291 (struct sym_probe_fns elf_probe_fns): Export function above to the
5293 * probe.c (can_evaluate_probe_arguments): New function.
5294 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5296 (can_evaluate_probe_arguments): New function prototype.
5297 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5298 probe interface can evaluate arguments. Fallback to the old mode
5300 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5301 interface can evaluate arguments. Warning the user if it cannot.
5302 (stap_can_evaluate_probe_arguments): New function.
5303 (struct probe_ops stap_probe_ops): Export function above to the
5305 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5306 New function pointer.
5308 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5310 * Makefile.in (SFILES): Add common/target-common.c.
5311 Add common/target-common.h to headers.
5312 (COMMON_OBS): Add target-common.o.
5313 (target-common.o): New target.
5314 * linux-nat.h (resume_kind): Move to common/target-common.h.
5315 * target.c (target_waitstatus_to_string): Move to
5316 common/target-common.c.
5317 * target.h: Include target-common.h.
5318 (target_waitkind): Move to common/target-common.h.
5319 (target_waitstatus): Likewise.
5320 (TARGET_WNOHANG): Likewise.
5321 * common/target-common.c: New file.
5322 * common/target-common.h: New file.
5324 2013-07-24 Doug Evans <dje@google.com>
5326 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5329 2013-07-23 Yao Qi <yao@codesourcery.com>
5331 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5332 parameter 'gdbarch'.
5333 (i386_stack_tramp_frame_sniffer): Caller update.
5334 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5335 parameter 'gdbarch' and 'target'.
5336 (i386_linux_core_read_description): Caller update.
5337 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5339 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5342 2013-07-23 Tom Tromey <tromey@redhat.com>
5344 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5347 2013-07-22 Doug Evans <dje@google.com>
5349 * exec.h (remove_target_sections): Delete arg abfd.
5350 * exec.c (exec_close): Update call to remove_target_sections.
5351 (remove_target_sections): Delete arg abfd.
5352 * solib.c (update_solib_list): Ditto.
5353 (reload_shared_libraries_1): Ditto.
5354 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5355 * target.h (struct target_section): Rename key to owner.
5358 2013-07-22 Tom Tromey <tromey@redhat.com>
5360 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5362 2013-07-22 Tom Tromey <tromey@redhat.com>
5364 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5365 Simplify cleanup handling.
5367 2013-07-22 Tom Tromey <tromey@redhat.com>
5369 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5370 on all return paths.
5372 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5374 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5375 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5376 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5378 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5380 * top.c (print_gdb_version): Add help, apropos description and
5381 url to online documentation.
5383 2013-07-19 Hui Zhu <hui@codesourcery.com>
5386 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5388 2013-07-19 Yao Qi <yao@codesourcery.com>
5390 * target.c (update_current_target): Change the default action
5391 of 'to_traceframe_info' from tcomplain to return_zero.
5392 * target.h (struct target_ops) <to_traceframe_info>: Add more
5394 * valops.c (read_value_memory): Call
5395 traceframe_available_memory unconditionally.
5397 2013-07-18 Yao Qi <yao@codesourcery.com>
5399 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5400 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5401 symbol without prefix. If found, set its type to
5402 'mst_solib_trampoline'.
5404 2013-07-17 Doug Evans <dje@google.com>
5406 * NEWS: Mention "set print raw frame-arguments".
5407 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5408 * stack.c (print_raw_frame_arguments): New static global.
5409 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5410 (_initialize_stack): New command "set/show print raw frame-arguments".
5411 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5412 (set_print_raw, show_print_raw): New functions.
5413 (_initialize_valprint): New prefix command "set/show print raw".
5414 * valprint.h (value_print_options): Improve comments.
5416 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5417 of all *list variables.
5419 * gdbcmd.h (togglelist): Delete.
5420 * cli/cli-cmds.c (togglelist): Delete.
5421 (init_cmd_lists): Update.
5422 * cli/cli-cmds.h (togglelist): Delete.
5424 2013-07-17 Tom Tromey <tromey@redhat.com>
5426 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5429 2013-07-16 Doug Evans <dje@google.com>
5431 * nto-tdep.c (nto_relocate_section_addresses): Update,
5432 target_section.bfd deleted.
5433 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5434 * s390-tdep.c (s390_load): Ditto.
5435 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5437 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5439 * common/format.c (parse_format_string): Add checks for NULL
5440 character before calling strchr.
5442 2013-07-16 Doug Evans <dje@google.com>
5444 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5445 temp_pathname argument.
5446 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5447 when opening the file fails.
5449 * target.h (struct target_section): Delete member bfd.
5450 All users updated to use the_bfd_section->owner instead.
5451 * exec.c (add_to_section_table): Assert bfd is expected value.
5452 Remove initialization of target_section.bfd.
5453 (remove_target_sections): Update.
5454 (section_table_available_memory): Update.
5455 (section_table_xfer_memory_partial): Update.
5456 (print_section_info): Update.
5457 (exec_set_section_address): Update.
5458 * record-full.c (record_full_core_xfer_partial): Update.
5459 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5460 * solib-target.c (solib_target_relocate_section_addresses): Update.
5461 * symfile.c (build_section_addr_info_from_section_table): Update.
5462 * target.c (memory_xfer_live_readonly_partial): Update.
5463 (memory_xfer_partial_1): Update.
5465 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5467 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5468 now available for embedded (BookE) and server (BookS) processors,
5469 correct mentions of 'booke' and adjust comments accordingly in order to
5470 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5471 (have_ptrace_booke_interface): Rename function and variable
5472 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5473 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5474 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5475 'hwdebug_point_cmp'. Update all uses.
5476 (booke_find_thread_points_by_tid): Rename function
5477 'booke_find_thread_points_by_tid' to
5478 'hwdebug_find_thread_points_by_tid'. Update all uses.
5479 (booke_insert_point): Rename function 'booke_insert_point' to
5480 'hwdebug_insert_point'. Update all uses.
5481 (booke_remove_point): Rename function 'booke_remove_point' to
5482 'hwdebug_remove_point'. Update all uses.
5484 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5486 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5487 numbers with enum values.
5489 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5492 * thread.c (thread_apply_all_command): Check for valid threads
5494 (thread_array_cleanup): New struct.
5495 (set_thread_refcount): New function.
5497 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5499 * infcmd.c (default_print_one_register_info): Reuse function
5502 2013-07-10 Tom Tromey <tromey@redhat.com>
5504 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5505 (ada-exp.o): New target.
5507 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5509 * mt-tdep.c (mt_registers_info): Call
5510 get_no_prettyformat_print_options instead of
5511 get_raw_print_options (regression by last patch from Doug
5514 2013-07-09 Pedro Alves <palves@redhat.com>
5516 Checked in by Joel Brobecker <brobecker@adacore.com>.
5517 * ada-lang.c (coerce_unspec_val_to_type): Use
5518 value_optimized_out_const.
5519 * value.c (value_optimized_out_const): New function.
5520 * value.h (value_optimized_out_const): New declaration.
5522 2013-07-09 Doug Evans <dje@google.com>
5524 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5525 Enum values rename as well. All uses updated.
5526 * valprint.h (value_print_options): Rename member pretty to
5527 pretty format. Rename member prettyprint_arrays to
5528 prettyformat_arrays. Rename member prettyprint_structs to
5529 prettyformat_structs. All uses updated.
5530 (get_no_prettyformat_print_options): Renamed from
5531 get_raw_print_options.
5532 * valprint.c (get_no_prettyformat_print_options): Renamed from
5533 get_raw_print_options. All callers updated.
5534 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5535 All callers updated.
5536 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5537 All callers updated.
5538 (_initialize_valprint): Improve help text for "set print pretty" and
5541 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5543 * value.c (value_bits_valid): Revert previous change, and change
5544 by Pedro on 2013-07-04, due to regressions in
5545 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5547 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5548 Pedro Alves <palves@redhat.com>
5550 * value.c (value_bits_valid): If the value is not lval_computed
5551 or has no check validity handler then the answer is the
5552 optimized_out flag, otherwise defer to the handler.
5554 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5556 * top.c (print_gdb_configuration): Explain in output of
5557 --configuration what does "relocatable" mean.
5559 * main.c (print_gdb_help): Regroup options in the --help text.
5560 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5561 the relevant discussions.
5563 2013-07-06 Yao Qi <yao@codesourcery.com>
5565 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5566 Remove parameter 'lsal'.
5567 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5568 to inner block. Caller update.
5569 (base_breakpoint_create_breakpoints_sal): Update.
5570 (bkpt_create_breakpoints_sal): Likewise.
5571 (tracepoint_create_breakpoints_sal): Likewise.
5572 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5573 element 0 of vector 'canonical->sals'.
5575 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5577 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5578 register number instead of the pseudo register one.
5579 (rs6000_dwarf2_reg_to_regnum): Likewise.
5581 2013-07-04 Pedro Alves <palves@redhat.com>
5583 * findvar.c (value_of_register): Use allocate_optimized_out_value
5584 if the register has been optimized out, instead of
5585 set_value_optimized_out.
5586 * frame-unwind.c (frame_unwind_got_optimized): Use
5587 allocate_optimized_out_value.
5589 2013-07-04 Pedro Alves <palves@redhat.com>
5591 * value.c (value_bits_valid): If the value is not lval_computed,
5592 or doesn't have a check_validity hook, assume the value is entirely
5595 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5597 * stack.c (read_frame_arg): No longer fetch lazy values.
5598 * value.c (value_optimized_out): If the value is not already
5599 marked optimized out, and is lazy then fetch it.
5600 (value_primitive_field): Move optimized out check to later in the
5601 function, after we have loaded any lazy values.
5602 (value_fetch_lazy): Use optimized out flag directly rather than
5603 calling optimized_out method.
5605 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5607 * valops.c: Don't include "user-regs.h".
5608 (value_fetch_lazy): Moved to value.c.
5609 * value.c: Include "user-regs.h".
5610 (value_fetch_lazy): Moved from valops.c.
5612 2013-07-04 Yao Qi <yao@codesourcery.com>
5615 2013-06-27 Yao Qi <yao@codesourcery.com>
5617 * common/create-version.sh: Update comments. Handle the case
5618 that TARGET_ALIAS is empty.
5620 2013-07-03 Pedro Alves <palves@redhat.com>
5622 * Makefile.in (config.status): Depend on development.sh.
5623 (aclocal_m4_deps): Add libmcheck.m4.
5624 * acinclude.m4: Include libmcheck.m4.
5625 * configure.ac: Source development.sh instead of setting
5626 'development' here. --enable-libmcheck/--disable-libmcheck code
5627 factored out to GDB_AC_LIBMCHECK. Run it.
5628 * development.sh: New file.
5629 * libmcheck.m4: New file.
5630 * configure: Regenerate.
5632 2013-07-02 Tom Tromey <tromey@redhat.com>
5634 * contrib/ari/update-web-ari.sh: Update for version.in change.
5636 2013-07-02 Tom Tromey <tromey@redhat.com>
5638 * common/ptid.h: Comment fixes.
5640 2013-07-01 Tom Tromey <tromey@redhat.com>
5642 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5643 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5644 (dwarf2_read_index, create_all_comp_units): Update.
5646 2013-07-01 Tom Tromey <tromey@redhat.com>
5648 * configure.ac (build_warnings): Add -Wold-style-definition.
5649 * configure: Rebuild.
5650 * machoread.c (_initialize_machoread): Use "(void)".
5651 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5654 2013-07-01 Tom Tromey <tromey@redhat.com>
5656 * configure.ac (build_warnings): Add -Wold-style-declaration.
5657 * configure: Rebuild.
5658 * dsrec.c (make_srec): Use "static const", not "const static".
5659 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5661 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5662 Use "static const", not "const static".
5663 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5665 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5667 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5669 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5671 (v850_dbtrap_breakpoint_from_pc): Likewise.
5672 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5675 2013-07-01 Tom Tromey <tromey@redhat.com>
5677 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5678 * configure: Rebuild.
5680 2013-07-01 Pedro Alves <palves@redhat.com>
5682 * defs.h: Include "pathmax.h".
5683 * utils.c: Don't include sys/param.h.
5684 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5685 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5686 instead of MAXPATHLEN.
5687 * solib-sunos.c: Don't include sys/param.h.
5688 * xcoffread.c: Don't include sys/param.h.
5689 * bsd-kvm.c: Don't include sys/param.h.
5690 * darwin-nat.c: Don't include sys/param.h.
5691 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5692 * darwin-nat-info.c: Don't include sys/param.h.
5693 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5695 * i386obsd-nat.c: Don't include sys/param.h.
5696 * inf-child.c: Don't include sys/param.h.
5697 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5698 * linux-fork.c: Don't include sys/param.h.
5699 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5700 * linux-nat.c: Don't include sys/param.h.
5701 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5702 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5703 * m68klinux-nat.c: Don't include sys/param.h.
5704 * nbsd-nat.c: Don't include sys/param.h.
5705 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5706 * ppc-linux-nat.c: Don't include sys/param.h.
5707 * rs6000-nat.c: Don't include sys/param.h.
5708 * spu-linux-nat.c. Don't include sys/param.h.
5709 * windows-nat.c: Don't include sys/param.h.
5710 * xtensa-linux-nat.c: Don't include sys/param.h.
5711 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5713 2013-07-01 Pedro Alves <palves@redhat.com>
5715 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5716 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5717 * gnulib/aclocal.m4: Regenerate.
5718 * gnulib/config.in: Regenerate.
5719 * gnulib/configure: Regenerate.
5720 * gnulib/import/pathmax.h: New file.
5721 * gnulib/import/Makefile.am: Regenerate.
5722 * gnulib/import/Makefile.in: Regenerate.
5723 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5724 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5725 * gnulib/import/m4/pathmax.m4: New file.
5727 2013-07-01 Pedro Alves <palves@redhat.com>
5729 * configure.ac (GDBINIT): Define, depending on host.
5730 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5731 * top.c (PATH_MAX): Delete fallback definition.
5732 (GDBINIT_FILENAME): Delete.
5733 (gdbinit): Reimplement as const char array set to the GDBINIT
5735 * top.h (gdbinit): Make const.
5736 * configure, config.in: Regenerate.
5738 2013-07-01 Pedro Alves <palves@redhat.com>
5740 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5741 * cli/cli-cmds.h (source_script): Likewise.
5742 * exceptions.c (catch_command_errors_const): New function.
5743 * exceptions.h (catch_command_errors_const): Declare.
5744 * main.c (get_init_files): Make parameters const, and adjust.
5745 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5746 'local_gdbinit' locals const. Adjust to use
5747 catch_command_errors_const.
5748 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5749 'local_gdbinit' locals const.
5751 2013-07-01 Pedro Alves <palves@redhat.com>
5753 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5754 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5755 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5758 2013-07-01 Pedro Alves <palves@redhat.com>
5760 Import the "unistd" gnulib module.
5761 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5762 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5763 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5764 import/m4/unistd_h.m4.
5765 * gnulib/aclocal.m4: Renenerate.
5766 * gnulib/config.in: Renenerate.
5767 * gnulib/configure: Renenerate.
5768 * gnulib/import/Makefile.am: Renenerate.
5769 * gnulib/import/Makefile.in: Renenerate.
5770 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5771 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5772 * gnulib/import/m4/off_t.m4: New file.
5773 * gnulib/import/m4/ssize_t.m4: New file.
5774 * gnulib/import/m4/sys_types_h.m4: New file.
5775 * gnulib/import/m4/unistd_h.m4: New file.
5776 * gnulib/import/sys_types.in.h: New file.
5777 * gnulib/import/unistd.c: New file.
5778 * gnulib/import/unistd.in.h: New file.
5780 2013-07-01 Pedro Alves <palves@redhat.com>
5782 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5783 defined instead of checking HAVE_UNISTD_H.
5785 2013-07-01 Pedro Alves <palves@redhat.com>
5787 Reimport gnulib from scratch.
5788 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5789 import/m4/onceonly.m4.
5790 * gnulib/aclocal.m4: Renegerate.
5791 * gnulib/config.in: Renegerate.
5792 * gnulib/configure: Renegerate.
5793 * gnulib/import/Makefile.in: Renegerate.
5794 * gnulib/import/extra/update-copyright: Renegerate.
5795 * gnulib/import/m4/onceonly.m4: Delete.
5797 2013-07-01 Pedro Alves <palves@redhat.com>
5799 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5801 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5804 * remote.c (async_remote_interrupt_twice): Make it static.
5805 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5807 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5809 * ia64-linux-tdep.c: Include <ctype.h>.
5810 (ia64_linux_stap_is_single_operand): New function.
5811 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5813 2013-06-28 Tom Tromey <tromey@redhat.com>
5815 * Makefile.in (version.c): Use version.in, not
5817 * common/create-version.sh: Likewise.
5818 * common/version.in: Move...
5819 * version.in: ...here.
5821 2013-06-28 Pedro Alves <palves@redhat.com>
5823 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5825 * utils.h (pagination_enabled): Declare.
5827 2013-06-28 Pedro Alves <palves@redhat.com>
5829 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5830 Move higher up in file.
5832 2013-06-28 Tom Tromey <tromey@redhat.com>
5834 * tracepoint.c (deprecated_readline_begin_hook)
5835 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5838 2013-06-28 Pedro Alves <palves@redhat.com>
5841 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5842 checking if they're available.
5843 * value.c (value_available_contents_eq): Change comment.
5844 * value.h (value_available_contents_eq): Expand comment.
5846 2013-06-27 Tom Tromey <tromey@redhat.com>
5848 * target.c (find_run_target): Remove.
5849 * target.h (find_run_target): Remove.
5851 2013-06-27 Tom Tromey <tromey@redhat.com>
5853 * corelow.c (core_gdbarch): Now static.
5855 2013-06-27 Tom Tromey <tromey@redhat.com>
5857 * target.c (target_struct_index): Remove.
5859 2013-06-27 Pedro Alves <palves@redhat.com>
5861 * infrun.c: Remove comment describing the 'stepping over runtime
5862 loader dynamic symbol resolution code' mechanism; moved to
5865 2013-06-27 Pedro Alves <palves@redhat.com>
5867 * exceptions.c (catch_command_errors): Remove spurious space.
5868 * exceptions.h (catch_command_errors): Second parameter is "arg",
5871 2013-06-27 Yao Qi <yao@codesourcery.com>
5873 * common/create-version.sh: Update comments. Handle the case
5874 that TARGET_ALIAS is empty.
5876 2013-06-26 Pedro Alves <palves@redhat.com>
5878 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5881 2013-06-26 Pedro Alves <palves@redhat.com>
5883 * infrun.c: Update comments on stepping over runtime loader
5884 dynamic symbol resolution code.
5886 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5888 * ax-gdb.h (union exp_element): Forward declare.
5889 * parser-defs.h: Include expression.h.
5891 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5893 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5895 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5897 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5899 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5901 Fix trace-status to output proper start-time and stop-time.
5902 * tracepoint.c (trace_status_command): Fix type of printf arg to
5903 prevent improper type conversion.
5904 (trace_status_mi): Likewise.
5906 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5908 * mips-tdep.c (mips_next_pc): Fix a typo.
5910 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5912 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5914 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5915 Yao Qi <yao@codesourcery.com>
5917 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5918 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5919 * mi/mi-main.c (print_variable_or_computed): New function.
5920 (mi_cmd_trace_frame_collected): New function.
5921 * tracepoint.c (find_trace_state_variable_by_number): New.
5922 (struct traceframe_info): Move to tracepoint.h
5923 (struct collection_list): Likewise.
5924 (do_collect_symbol): Include locals and arguments in the
5925 collected variables list.
5926 (clear_collection_list): Clear wholly collected variables list
5927 and computed variables list.
5928 (append_exp): New function.
5929 (encode_actions_1): Include variables in the wholly
5930 collected variables list. Include memory ranges and
5931 full-fledged expressions in the computed expressions list.
5932 (encode_actions): Move some code to ...
5933 Return the cleanup chain.
5934 (encode_actions_rsp): ... here. New function.
5935 (get_traceframe_location, get_traceframe_info): Remove static.
5936 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5937 (struct collection_list): Moved from tracepoint.c. Add two
5938 new fields 'wholly_collected' and 'computed'.
5939 (find_trace_state_variable_by_number): Declare.
5940 (encode_actions): Adjust declaration.
5941 (encode_actions_rsp): Declare.
5942 (get_traceframe_info, get_traceframe_location): Declare.
5944 * NEWS: Mention new MI command -trace-frame-collected.
5946 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5947 Yao Qi <yao@codesourcery.com>
5949 * ctf.c (ctf_traceframe_info): Push trace state variables
5950 present in the trace data into the traceframe info object.
5951 * breakpoint.c (DEF_VEC_I): Remove.
5952 * common/filestuff.c (DEF_VEC_I): Likewise.
5953 * dwarf2loc.c (DEF_VEC_I): Likewise.
5954 * mi/mi-main.c (DEF_VEC_I): Likewise.
5955 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5956 * features/traceframe-info.dtd: Add tvar element and its
5958 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5959 (build_traceframe_info): Push trace state variables present in
5960 the trace data into the traceframe info object.
5961 (traceframe_info_start_tvar): New function.
5962 (tvar_attributes): New.
5963 (traceframe_info_children): Add "tvar" element.
5964 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5966 * NEWS: Mention the change in GDB and GDBserver.
5968 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5969 Yao Qi <yao@codesourcery.com>
5971 * tracepoint.c (trace_dump_command): Move code to ...
5972 (get_traceframe_location): ... here. New.
5974 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5975 Yao Qi <yao@codesourcery.com>
5977 * tracepoint.c (trace_dump_command): GDB emits an error
5978 instead of a warning when a traceframe is not selected.
5980 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5981 Yao Qi <yao@codesourcery.com>
5983 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5984 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5986 (do_clear_collection_list, init_collection_list): New.
5987 (encode_actions): Add local variables 'tracepoint_list' and
5988 'stepping_list'. Call init_collection_list and make cleanup
5989 which calls do_clear_collection_list. Don't call
5990 clear_collection_list.
5991 (_initialize_tracepoint): Delete references to
5992 'tracepoint_list' and 'stepping_list'.
5994 2013-06-25 Tom Tromey <tromey@redhat.com>
5996 * common/create-version.sh (date): Use "$", not "$$" in sed
5999 2013-06-25 Kevin Buettner <kevinb@redhat.com>
6001 * NEWS (New targets): Add entry for TI MSP430.
6003 2013-06-25 Yao Qi <yao@codesourcery.com>
6005 * remote.c (remote_start_remote): Move code to upload tsv
6008 2013-06-25 Yao Qi <yao@codesourcery.com>
6009 Hui Zhu <hui@codesourcery.com>
6010 Pedro Alves <palves@redhat.com>
6012 PR breakpoints/15075
6013 PR breakpoints/15434
6014 * breakpoint.c (bpstat_stop_status): Call
6015 b->ops->after_condition_true.
6016 (update_dprintf_command_list): Don't append "continue" command
6017 to the command list of dprintf breakpoint.
6018 (base_breakpoint_after_condition_true): New function.
6019 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6020 (dprintf_after_condition_true): New function.
6021 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6022 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6024 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6026 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6027 (ALLDEPFILES): Add msp430-tdep.c.
6028 * configure.tgt (msp430*-*-elf): New target.
6029 * msp430-tdep.c: New file.
6031 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6033 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6034 microMIPS synthetic symbols.
6036 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6038 * objfiles.h (pc_in_section): New prototype.
6039 (in_plt_section): Remove name argument, replace prototype with
6040 static inline function.
6041 * mips-tdep.h: Include "objfiles.h".
6042 (in_mips_stubs_section): New function.
6043 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6044 in_solib_call_trampoline member.
6045 (hppa_in_solib_call_trampoline): Remove name argument.
6046 * objfiles.c (pc_in_section): New function.
6047 (in_plt_section): Remove function.
6048 * mips-linux-tdep.c: Include "objfiles.h".
6049 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6050 name argument. Return 1 rather than the low 16-bit halfword of
6051 any instruction examined.
6052 (mips_linux_in_dynsym_resolve_code): Update
6053 mips_linux_in_dynsym_stub call accordingly.
6054 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6055 rather than an equivalent hand-coded sequence.
6056 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6057 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6058 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6059 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6061 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6062 on call to tdep->in_solib_call_trampoline.
6063 (hppa_in_solib_call_trampoline): Remove name argument, update
6064 according to in_plt_section change.
6065 (hppa_skip_trampoline_code): Update according to in_plt_section
6067 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6068 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6070 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6071 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6072 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6073 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6074 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6075 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6076 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6077 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6078 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6079 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6080 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6081 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6082 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6084 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6086 * common/create-version.sh: Fix expansion of $host_alias
6087 and $target_alias in generation of HOST_NAME and TARGET_NAME
6090 2013-06-24 Tom Tromey <tromey@redhat.com>
6092 * common/create-version.sh: New file.
6093 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6095 (HFILES_NO_SRCDIR): Use common/version.h.
6096 * version.in: Move to ...
6097 * common/version.in: ... here. Replace date with "DATE".
6098 * version.h: Move to ...
6099 * common/version.h: ... here.
6101 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6103 * gdb/gnulib/Makefile.in: Update date in copyright header.
6104 * gdb/gnulib/configure.ac: Ditto.
6105 * gdb/gnulib/update-gnulib.sh: Ditto.
6107 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6109 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6110 "gdb/gnulib/import".
6112 2013-06-21 Will Newton <will.newton@linaro.org>
6114 * doublest.c (ldfrexp): Remove function.
6115 (convert_doublest_to_floatformat): Call frexpl instead of
6118 2013-06-21 Will Newton <will.newton@linaro.org>
6120 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6121 * gnulib/aclocal.m4: Regenerate.
6122 * gnulib/config.in: Regenerate.
6123 * gnulib/configure: Regenerate.
6124 * gnulib/import/Makefile.am: Update.
6125 * gnulib/import/Makefile.in: Update.
6126 * gnulib/import/m4/gnulib-cache.m4: Update.
6127 * gnulib/import/m4/gnulib-comp.m4: Update.
6128 * gnulib/import/float+.h: Import.
6129 * gnulib/import/float.c: Import.
6130 * gnulib/import/float.in.h: Import.
6131 * gnulib/import/fpucw.h: Import.
6132 * gnulib/import/frexp.c: Import.
6133 * gnulib/import/frexpl.c: Import.
6134 * gnulib/import/isnan.c: Import.
6135 * gnulib/import/isnand-nolibm.h: Import.
6136 * gnulib/import/isnand.c: Import.
6137 * gnulib/import/isnanl-nolibm.h: Import.
6138 * gnulib/import/isnanl.c: Import.
6139 * gnulib/import/itold.c: Import.
6140 * gnulib/import/m4/exponentd.m4: Import.
6141 * gnulib/import/m4/exponentl.m4: Import.
6142 * gnulib/import/m4/float_h.m4: Import.
6143 * gnulib/import/m4/fpieee.m4: Import.
6144 * gnulib/import/m4/frexp.m4: Import.
6145 * gnulib/import/m4/frexpl.m4: Import.
6146 * gnulib/import/m4/isnand.m4: Import.
6147 * gnulib/import/m4/isnanl.m4: Import.
6148 * gnulib/import/m4/math_h.m4: Import.
6149 * gnulib/import/math.c: Import.
6150 * gnulib/import/math.in.h: Import.
6152 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6154 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6155 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6156 signature_INTEL_edx comparisons.
6158 2013-06-20 Doug Evans <dje@google.com>
6161 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6162 All callers updated.
6163 (open_dwp_file): If we can't find the dwp file, search the basename
6164 in debug-file-directory.
6166 * dwarf2read.c (struct dwp_file): Fix comment.
6167 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6169 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6172 2013-06-20 Yao Qi <yao@codesourcery.com>
6174 * breakpoint.c (create_breakpoint): Fix code indentation.
6176 2013-06-20 Yao Qi <yao@codesourcery.com>
6178 * breakpoint.c (create_breakpoints_sal_default): Remove
6179 parameter 'lsal'. Update declaration.
6180 (bkpt_create_breakpoints_sal): Caller update.
6181 (tracepoint_create_breakpoints_sal): Likewise.
6183 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6184 Yao Qi <yao@codesourcery.com>
6186 * NEWS: Mention the new option '--skip-unavailable' of command
6187 -data-list-register-values.
6188 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6189 --skip-unavailable option. Adjust to use output_register.
6190 (output_register): Add new 'skip_unavailable' parameter.
6193 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6195 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6196 common/i386-gcc-cpuid.h.
6197 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6198 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6199 Copy the latest version from upstream gcc.
6200 * common/linux-btrace.c: Include i386-cpuid.h.
6201 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6203 (cpu_supports_btrace): Likewise.
6204 * go32-nat.c: Include i386-cpuid.h.
6205 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6207 2013-06-19 Doug Evans <dje@google.com>
6209 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6210 (get_section_index): Ditto.
6212 2013-06-19 Tom Tromey <tromey@redhat.com>
6214 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6217 2013-06-18 Doug Evans <dje@google.com>
6219 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6221 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6222 Move test of cu_index closer to use. Print complaint if cu_index
6225 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6227 * machoread.c (oso_vector): Delete this global.
6228 (macho_register_oso): Add new parameter "oso_vector_ptr".
6229 Use it instead of the "oso_vector" global.
6230 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6231 (macho_symfile_read): Use a local oso_vector, to be free'ed
6232 at the end of this function, in place of the old "oso_vector"
6233 global. Update various function calls accordingly. Use one
6234 single cleanup chain for the entire function.
6236 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6238 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6239 DWARF2_PER_OBJFILE by uses of DATA instead.
6241 2013-06-18 Tom Tromey <tromey@redhat.com>
6243 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6245 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6246 Special case signals other than GDB_SIGNAL_TRAP.
6247 (explains_signal_watchpoint): New function.
6248 (base_breakpoint_explains_signal): Add 'sig' argument.
6249 (initialize_breakpoint_ops): Set 'explains_signal' method for
6251 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6253 (bpstat_explains_signal): Likewise.
6254 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6256 2013-06-18 Tom Tromey <tromey@redhat.com>
6258 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6260 2013-06-18 Tom Tromey <tromey@redhat.com>
6262 * python/python.c (finish_python_initialization): Decref
6263 'pythondir' on failure path as well.
6265 2013-06-18 Tom Tromey <tromey@redhat.com>
6268 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6269 after taking bits_to_skip into account. Sign extend byte_offset.
6270 * utils.h (gdb_sign_extend): Declare.
6271 * utils.c (gdb_sign_extend): New function.
6273 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6275 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6277 2013-06-17 Pierre Muller <muller@sourceware.org>
6279 * corelow.c (core_open): Print GDB signal name instead of target
6282 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6284 * .gitignore: Add /gcore.
6286 2013-06-13 Doug Evans <dje@google.com>
6288 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6289 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6291 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6293 * stack.c (backtrace_command_1): Fix indentation.
6295 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6297 * window-nat.c (thread_rec): Add missing empty line after
6298 local variable declaration.
6300 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6302 * windows-nat.c (thread_rec): Revert format used to print
6303 error code returned by SuspendThread from %d back to %u.
6305 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6307 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6309 (get_windows_debug_event): Likewise, for all debug traces.
6311 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6313 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6316 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6317 Yao Qi <yao@codesourcery.com>
6319 * mi/mi-main.c (get_register): Remove declaration.
6320 (output_register): Declare.
6321 (mi_cmd_data_list_register_values): Remove local variable
6322 'tuple_cleanup'. Move some code into output_register.
6323 (get_register): Renamed to ...
6324 (output_register): ... this. Output the register's
6325 "number" ui_out tuple here.
6327 2013-06-07 Pedro Alves <palves@redhat.com>
6329 * darwin-nat.c: Fix formating in copyright header.
6330 * darwin-nat.h: Likewise.
6331 * gnu-nat.c: Likewise.
6332 * machoread.c: Likewise.
6334 2013-06-07 Pedro Alves <palves@redhat.com>
6337 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6338 static. Output a global target description pointer.
6339 (init_registers_${name}): Adjust to initialize a
6340 target description structure.
6342 2013-06-07 Will Newton <will.newton@linaro.org>
6344 * printcmd.c (build_address_symbolic): Call
6345 gdbarch_addr_bits_remove for text minimal symbols.
6347 2013-06-07 Will Newton <will.newton@linaro.org>
6349 * MAINTAINERS: Add myself to Write After Approval.
6351 2013-06-07 Yao Qi <yao@codesourcery.com>
6353 * tracepoint.c (start_tracing): Move code to ...
6354 (trace_reset_local_state): ... here. New.
6355 (disconnect_tracing): Don't call set_current_traceframe,
6356 set_tracepoint_num, and set_traceframe_context. Call
6357 trace_reset_local_state instead.
6358 (tfile_close): Call trace_reset_local_state.
6359 * ctf.c (ctf_close): Likewise.
6360 * remote.c (remote_close): Likewise.
6361 * tracepoint.h (trace_reset_local_state): Declare.
6363 2013-06-06 Doug Evans <dje@google.com>
6365 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6366 and fix header docs.
6368 2013-06-05 Doug Evans <dje@google.com>
6369 Keith Seitz <keiths@redhat.com>
6372 * cp-namespace.c (find_symbol_in_baseclass): Call
6373 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6374 Check result of call to lookup_symbol_static.
6375 Call lookup_static_symbol_aux unconditionally.
6376 Call check_typedef on base types before accessing them.
6377 (cp_lookup_nested_symbol): Fix comment.
6379 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6381 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6382 minimal symbols pointing to function descriptors.
6384 2013-06-05 Tom Tromey <tromey@redhat.com>
6386 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6388 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6389 Pedro Alves <palves@redhat.com>
6391 * remote.c (remote_wait_as): Restore signal handler before returning
6392 when GDB gets a notification.
6394 2013-06-04 Gary Benson <gbenson@redhat.com>
6397 * breakpoint.h (handle_solib_event): Moved function declaration
6399 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6400 (bpstat_stop_status): Pass new argument to handle_solib_event.
6401 * solib.h (update_solib_breakpoints): New function declaration.
6402 (handle_solib_event): Moved function declaration from
6404 * solib.c (update_solib_breakpoints): New function.
6405 (handle_solib_event): Moved function from breakpoint.c.
6406 Updated to call solib_ops->handle_event if not NULL.
6407 * solist.h (target_so_ops): New fields "update_breakpoints" and
6409 * infrun.c (set_stop_on_solib_events): New function.
6410 (_initialize_infrun): Use the above for "set
6411 stop-on-solib-events".
6412 (handle_inferior_event): Pass new argument to handle_solib_event.
6413 * solib-svr4.c (probe.h): New include.
6414 (svr4_free_library_list): New forward declaration.
6415 (probe_action): New enum.
6416 (probe_info): New struct.
6417 (probe_info): New static variable.
6418 (NUM_PROBES): New definition.
6419 (svr4_info): New fields "using_xfer", "probes_table" and
6421 (free_probes_table): New function.
6422 (free_solib_list): New function.
6423 (svr4_pspace_data_cleanup): Free probes table and solib list.
6424 (svr4_copy_library_list): New function.
6425 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6426 (svr4_read_so_list): New parameter "prev_lm".
6427 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6428 (svr4_current_sos): New function.
6429 (probe_and_action): New struct.
6430 (hash_probe_and_action): New function.
6431 (equal_probe_and_action): Likewise.
6432 (register_solib_event_probe): Likewise.
6433 (solib_event_probe_at): Likewise.
6434 (solib_event_probe_action): Likewise.
6435 (solist_update_full): Likewise.
6436 (solist_update_incremental): Likewise.
6437 (disable_probes_interface_cleanup): Likewise.
6438 (svr4_handle_solib_event): Likewise.
6439 (svr4_update_solib_event_breakpoint): Likewise.
6440 (svr4_update_solib_event_breakpoints): Likewise.
6441 (svr4_create_solib_event_breakpoints): Likewise.
6442 (enable_break): Free probes table before creating breakpoints.
6443 Use svr4_create_solib_event_breakpoints to create breakpoints.
6444 (svr4_solib_create_inferior_hook): Free the solib list.
6445 (_initialize_svr4_solib): Initialise
6446 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6448 2013-06-04 Gary Benson <gbenson@redhat.com>
6450 * target.h (target_ops): New field
6451 "to_augmented_libraries_svr4_read".
6452 (target_augmented_libraries_svr4_read): New macro.
6453 * target.c (update_current_target): Handle
6454 to_augmented_libraries_svr4_read.
6455 * remote.c (remote_state): New field
6456 "augmented_libraries_svr4_read".
6457 (remote_augmented_libraries_svr4_read_feature): New function.
6458 (remote_protocol_features): Add entry for
6459 "augmented-libraries-svr4-read".
6460 (remote_augmented_libraries_svr4_read): New function.
6461 (init_remote_ops): Initialize
6462 remote_ops.to_augmented_libraries_svr4_read.
6464 2013-06-04 Gary Benson <gbenson@redhat.com>
6468 2013-06-04 Gary Benson <gbenson@redhat.com>
6470 * objfiles.h (inhibit_section_map_updates): New function
6472 (resume_section_map_updates): Likewise.
6473 (resume_section_map_updates_cleanup): Likewise.
6474 * objfiles.c (objfile_pspace_info): Removed field
6475 "objfiles_changed_p". New fields "new_objfiles_available",
6476 "section_map_dirty" and "inhibit_updates".
6477 (allocate_objfile): Set new_objfiles_available.
6478 (free_objfile): Set section_map_dirty.
6479 (objfile_relocate1): Likewise.
6480 (in_plt_section): Likewise.
6481 (find_pc_section): Update the conditions under which the
6482 section map will be updated.
6483 (inhibit_section_map_updates): New function.
6484 (resume_section_map_updates): Likewise.
6485 (resume_section_map_updates_cleanup): Likewise.
6487 2013-06-04 Gary Benson <gbenson@redhat.com>
6489 * probe.h (get_probe_argument_count): New declaration.
6490 (evaluate_probe_argument): Likewise.
6491 * probe.c (get_probe_argument_count): New function.
6492 (evaluate_probe_argument): Likewise.
6493 (probe_safe_evaluate_at_pc): Use the above new functions.
6495 2013-06-04 Alan Modra <amodra@gmail.com>
6497 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6498 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6499 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6500 target mem reads on optional insns.
6501 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6502 ppc_insns_match_pattern calls.
6503 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6504 Add match for power7 thread safety insns, and new order of
6505 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6506 invocation in comment, and update rest of comment.
6507 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6508 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6509 (ppc64_standard_linkage2_target): Update insn offsets.
6510 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6511 stubs first. Update calls.
6513 2013-06-04 Yao Qi <yao@codesourcery.com>
6515 * solib.c (solib_find): Don't need dir separator if path has
6518 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6520 Revert (indirectly causes a SIGSEGV):
6521 * machoread.c (macho_symfile_read): Assign first cleanup to
6524 2013-06-03 Yao Qi <yao@codesourcery.com>
6526 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6527 mi-parse.c. Make them static.
6528 (mi_all_values): Likewise.
6529 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6530 mi_parse_print_values. Make it external.
6531 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6532 Remove the declarations.
6533 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6534 * mi/mi-parse.h (mi_parse_print_values): Declare.
6535 * mi/mi-cmd-stack.c: Include mi-parse.h.
6536 (parse_print_values): Remove
6537 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6538 of parse_print_values.
6539 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6541 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6542 Yao Qi <yao@codesourcery.com>
6544 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6545 (encode_actions): Move code to ...
6546 (all_tracepoint_actions_and_cleanup): ... here. New.
6547 (trace_dump_command): Likewise.
6549 2013-05-30 Tom Tromey <tromey@redhat.com>
6551 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6553 2013-05-30 Tom Tromey <tromey@redhat.com>
6555 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6556 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6557 'old_chain' argument. Add 'parser_result' argument.
6558 (gdb_xml_create_parser_and_cleanup): Remove old version.
6559 (gdb_xml_parse_quick): Update.
6560 (xml_process_xincludes): Update.
6561 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6564 2013-05-30 Tom Tromey <tromey@redhat.com>
6566 * probe.c (collect_probes): Check arguments for NULL before
6567 calling compile_rx_or_error.
6568 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6571 2013-05-30 Tom Tromey <tromey@redhat.com>
6573 * infrun.c (adjust_pc_after_break): Introduce an outer null
6576 2013-05-30 Tom Tromey <tromey@redhat.com>
6578 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6580 2013-05-30 Tom Tromey <tromey@redhat.com>
6582 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6583 for 'old_chain'. Do not check 'head' before processing
6586 2013-05-30 Tom Tromey <tromey@redhat.com>
6588 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6591 2013-05-30 Tom Tromey <tromey@redhat.com>
6593 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6594 inner scope. Unconditionally call do_cleanups.
6596 2013-05-30 Tom Tromey <tromey@redhat.com>
6598 * source.c (find_and_open_source): Call do_cleanups.
6600 2013-05-30 Tom Tromey <tromey@redhat.com>
6602 * linux-thread-db.c (thread_db_load_search): Unconditionally
6605 2013-05-30 Tom Tromey <tromey@redhat.com>
6607 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6608 for 'cleanup'; instead use a later one.
6610 2013-05-30 Tom Tromey <tromey@redhat.com>
6612 * python/py-breakpoint.c (bppy_get_commands): Use
6613 explicit, unconditional return.
6614 * python/py-frame.c (frapy_read_var): Likewise.
6615 * python/python.c (gdbpy_decode_line): Likewise.
6617 2013-05-30 Tom Tromey <tromey@redhat.com>
6619 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6620 do_cleanups on all return paths.
6622 2013-05-30 Tom Tromey <tromey@redhat.com>
6624 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6626 2013-05-30 Tom Tromey <tromey@redhat.com>
6628 * stabsread.c (read_struct_type): Call do_cleanups along
6631 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6633 * mips-linux-tdep.c: Adjust formatting throughout.
6635 2013-05-30 Tom Tromey <tromey@redhat.com>
6637 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6638 along all return paths.
6640 2013-05-30 Tom Tromey <tromey@redhat.com>
6642 * symfile.c (find_separate_debug_file): Call do_cleanups
6643 along all return paths.
6645 2013-05-30 Tom Tromey <tromey@redhat.com>
6647 * symtab.c (search_symbols): Introduce a null cleanup for
6650 2013-05-30 Tom Tromey <tromey@redhat.com>
6652 * python/py-value.c (valpy_binop): Call do_cleanups before
6655 2013-05-30 Tom Tromey <tromey@redhat.com>
6657 * python/py-prettyprint.c (print_children): Remove extra
6660 2013-05-30 Tom Tromey <tromey@redhat.com>
6662 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6665 2013-05-30 Tom Tromey <tromey@redhat.com>
6667 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6668 along all return paths.
6670 2013-05-30 Tom Tromey <tromey@redhat.com>
6672 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6675 2013-05-30 Tom Tromey <tromey@redhat.com>
6677 * varobj.c (c_value_of_root): Call do_cleanups along all
6680 2013-05-30 Tom Tromey <tromey@redhat.com>
6682 * tracepoint.c (trace_dump_command): Unconditionally call
6685 2013-05-30 Tom Tromey <tromey@redhat.com>
6687 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6688 do_cleanups earlier.
6690 2013-05-30 Tom Tromey <tromey@redhat.com>
6692 * machoread.c (macho_symfile_read): Assign first cleanup to
6695 2013-05-30 Tom Tromey <tromey@redhat.com>
6697 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6699 2013-05-30 Tom Tromey <tromey@redhat.com>
6701 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6703 2013-05-30 Tom Tromey <tromey@redhat.com>
6705 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6706 call discard_cleanups.
6707 (inf_ptrace_attach): Likewise.
6709 2013-05-30 Tom Tromey <tromey@redhat.com>
6711 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6713 (mips_initialize): Likewise.
6714 (common_open): Call do_cleanups.
6716 2013-05-30 Tom Tromey <tromey@redhat.com>
6718 * utils.c (internal_vproblem): Call do_cleanups.
6720 2013-05-30 Tom Tromey <tromey@redhat.com>
6722 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6724 2013-05-30 Tom Tromey <tromey@redhat.com>
6726 * cli/cli-script.c (setup_user_args): Don't return after error.
6728 2013-05-30 Tom Tromey <tromey@redhat.com>
6730 * somread.c (som_symtab_read): Call do_cleanups.
6732 2013-05-30 Tom Tromey <tromey@redhat.com>
6734 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6736 2013-05-30 Tom Tromey <tromey@redhat.com>
6738 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6739 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6740 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6741 * source.c (show_substitute_path_command): Call do_cleanups.
6742 (unset_substitute_path_command, set_substitute_path_command):
6744 * symfile.c (load_command): Call do_cleanups.
6746 2013-05-30 Tom Tromey <tromey@redhat.com>
6748 * contrib/cleanup_check.py: New file.
6749 * contrib/gcc-with-excheck: Add option parsing.
6751 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6753 * windows-nat.c (windows_delete_thread): Add missing space
6756 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6758 * inferior.c (top level): Include tilde.h.
6759 (add_inferior_command): Call tilde_expand on the value of 'exec'
6762 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6763 Yao Qi <yao@codesourcery.com>
6765 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6767 (encode_actions): Likewise.
6768 * remote.c (remote_download_tracepoint): Caller update.
6769 * tracepoint.h (encode_actions): Update declaration.
6771 2013-05-30 Pedro Alves <palves@redhat.com>
6773 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6776 2013-05-30 Yao Qi <yao@codesourcery.com>
6778 * remote.c (remote_check_symbols): Remove unused parameter
6781 (remote_start_remote, remote_new_objfile): Caller update.
6783 2013-05-30 Yao Qi <yao@codesourcery.com>
6785 * mi/mi-cmds.c (mi_cmds): Define MI command
6786 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6789 2013-05-29 Pedro Alves <palves@redhat.com>
6791 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6792 (remote_insert_watchpoint, remote_remove_watchpoint)
6793 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6794 (remote_verify_memory, compare_sections_command)
6795 (remote_search_memory): Set the general process/thread on the
6798 2013-05-29 Pedro Alves <palves@redhat.com>
6800 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6801 (_initialize_aarch64_tdep): Don't call
6802 initialize_tdesc_aarch64_without_fpu.
6803 * features/Makefile (WHICH): Remove reference to
6804 aarch64-without-fpu.
6805 * features/aarch64-without-fpu.c: Delete file.
6806 * regformats/aarch64-without-fpu.dat: Delete file.
6808 2013-05-28 Yao Qi <yao@codesourcery.com>
6810 * tracepoint.c (stringify_collection_list): Remove parameter
6812 (encode_actions): Caller update. Remove local variables.
6814 2013-05-24 Yao Qi <yao@codesourcery.com>
6816 * tracepoint.c (TFILE_PID): Remove.
6817 (tfile_open): Don't add thread and inferior.
6818 (tfile_close): Don't set 'inferior_ptid'. Don't call
6819 exit_inferior_silent.
6820 (tfile_thread_alive): Remove.
6821 (init_tfile_ops): Don't set field 'to_thread_alive' of
6824 2013-05-23 Doug Evans <dje@google.com>
6826 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6828 2013-05-23 Pedro Alves <palves@redhat.com>
6830 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6831 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6832 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6833 Only define if HAVE_SOCKETS is defined.
6834 * configure.ac: Check for sys/socket.h.
6835 * config.in, configure: Regenerate.
6837 2013-05-23 Pedro Alves <palves@redhat.com>
6839 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6840 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6841 printing uint32_t variables.
6843 2013-05-23 Pedro Alves <palves@redhat.com>
6845 * NEWS: Mention GDBserver range stepping support.
6847 2013-05-23 Yao Qi <yao@codesourcery.com>
6848 Pedro Alves <palves@redhat.com>
6850 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6852 * infcmd.c (step_once, until_next_command): Enable range stepping.
6853 * infrun.c (displaced_step_prepare): Disable range stepping.
6854 (resume): Disable range stepping if stepping over a breakpoint or
6855 we have software watchpoints. If range stepping is enabled,
6856 assert the thread is in the stepping range.
6857 (clear_proceed_status_thread): Clear may_range_step.
6858 (handle_inferior_event): Disable range stepping as soon as we know
6859 the thread that hit the event. Re-enable it whenever we're going
6860 to step with a step range.
6861 * remote.c (struct vCont_action_support) <r>: New field.
6862 (use_range_stepping): New global.
6863 (remote_vcont_probe): Handle 'r' action.
6864 (append_resumption): Append an 'r' action if the thread may range
6866 (show_range_stepping): New function.
6867 (set_range_stepping): New function.
6868 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6869 'set range-stepping' and 'show range-stepping' commands.
6870 * NEWS: Mention range stepping, the new vCont;r action, and the
6871 new "set/show range-stepping" commands.
6873 2013-05-23 Yao Qi <yao@codesourcery.com>
6874 Pedro Alves <palves@redhat.com>
6876 * remote.c (struct vCont_action_support): New struct.
6877 (struct remote_state) <support_vCont_t>: Remove field.
6878 <vCont_actions_support>: New field.
6879 (remote_vcont_probe, remote_stop_ns): Update.
6881 2013-05-23 Yao Qi <yao@codesourcery.com>
6882 Pedro Alves <palves@redhat.com>
6884 * gdbthread.h (pc_in_thread_step_range): New declaration.
6885 * thread.c (pc_in_thread_step_range): New function.
6886 * infrun.c (handle_inferior_event): Use it.
6888 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6890 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6893 2013-05-22 Keith Seitz <keiths@redhat.com>
6895 * ada-lang.c (is_known_support_routine): Add explicit free of
6896 'func_name' from find_frame_funname.
6897 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6898 for func_name from find_frame_funname.
6899 * python/py-frame.c (frapy_name): Add explicit free of
6900 'name' from find_frame_funname.
6901 * stack.c (find_frame_funname): Add comment explaining that
6902 funcp must be freed by the caller.
6903 Return copy of symbol names instead of pointers.
6904 (print_frame): Add a cleanup for 'funname' from
6906 * stack.h (find_frame_funname): Remove "const" from
6907 'funname' parameter.
6909 2013-05-22 Tom Tromey <tromey@redhat.com>
6912 * c-valprint.c (c_value_print): Use value_addr for
6913 references. Convert back to reference type with value_ref.
6915 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6917 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6918 unloaded DLL, it will be done by handle_solib_event. See
6919 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6922 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6924 * ui-out.c: Create typedef ui_out_level_p and define vector
6925 operations for that type.
6926 (struct ui_out): Use a vector instead of an array.
6927 (current_level): Return level from a vector.
6928 (push_level): Create a level in a vector.
6929 (pop_level): Delete a level in a vector.
6930 (ui_out_new): Create initial level zero level, and store in a
6932 (ui_out_destroy): Add vector cleanup.
6934 2013-05-22 Pedro Alves <palves@redhat.com>
6936 * python/python-internal.h (gdb_Py_DECREF): Tag with
6937 "ARI: editCase function".
6939 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6941 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6943 2013-05-21 Pedro Alves <palves@redhat.com>
6945 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6946 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6947 * python/py-utils.c (py_decref): Don't check for NULL before
6950 2013-05-21 Pedro Alves <palves@redhat.com>
6952 * python/py-utils.c (py_decref): Remove extra braces.
6953 (gdb_pymodule_addobject): Remove extra braces.
6954 * python-internal.h (gdb_Py_DECREF): New static inline function.
6955 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6957 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6959 * breakpoints.c (detach_breakpoints): Do not
6960 detach breakpoints locations with loc_type bp_loc_other.
6962 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6964 Workaround Python 2.6.
6965 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6968 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6970 Code cleanup: constification.
6971 * solib.c (solib_ops): Make return type and ops variable type const.
6972 (set_solib_ops): Make the new_ops parameter and ops variable const.
6973 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6974 (solib_add, solib_keep_data_in_core, clear_solib)
6975 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6976 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6978 * solib.h (set_solib_ops): Make the new_ops parameter const.
6980 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6982 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6984 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6985 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6986 (SYSTEM_GDBINIT_FILES): New variables.
6987 (all): Add stamp-system-gdbinit.
6988 (stamp-system-gdbinit): New rule.
6989 (clean-system-gdbinit, install-system-gdbinit)
6990 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6991 (install-only): Add dependency on install-system-gdbinit.
6992 (uninstall): Add dependency on uninstall-system-gdbinit.
6993 (clean): Add dependency on clean-system-gdbinit.
6994 * system-gdbinit/elinos.py: New file.
6995 * system-gdbinit/wrs-linux.py: New file.
6997 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6999 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7001 2013-05-21 Hui Zhu <hui@codesourcery.com>
7003 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7004 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7005 * mi/mi-cmd-break.c (ctype.h): New include.
7006 (gdb_obstack.h): New include.
7007 (mi_argv_to_format, mi_cmd_break_insert_1): New.
7008 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7009 (mi_cmd_dprintf_insert): New.
7010 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7011 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7013 2013-05-20 Tom Tromey <tromey@redhat.com>
7015 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7017 2013-05-20 Tom Tromey <tromey@redhat.com>
7019 * python/py-value.c (valpy_get_dynamic_type): Simplify
7020 dynamic_type assignment. Use Py_XINCREF.
7022 2013-05-20 Tom Tromey <tromey@redhat.com>
7024 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7026 2013-05-20 Tom Tromey <tromey@redhat.com>
7028 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7029 (gdbpy_selected_frame): Move object-construction code
7032 2013-05-20 Tom Tromey <tromey@redhat.com>
7034 * python/py-arch.c (gdbpy_initialize_arch): Use
7035 gdb_pymodule_addobject.
7036 * python/py-block.c (gdbpy_initialize_blocks): Use
7037 gdb_pymodule_addobject.
7038 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7039 gdb_pymodule_addobject.
7040 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7041 gdb_pymodule_addobject.
7042 * python/py-event.c (gdbpy_initialize_event_generic): Use
7043 gdb_pymodule_addobject.
7044 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7045 gdb_pymodule_addobject.
7046 * python/py-evts.c (add_new_registry): Use
7047 gdb_pymodule_addobject.
7048 (gdbpy_initialize_py_events): Likewise.
7049 * python/py-finishbreakpoint.c
7050 (gdbpy_initialize_finishbreakpoints): Use
7051 gdb_pymodule_addobject.
7052 * python/py-frame.c (gdbpy_initialize_frames): Use
7053 gdb_pymodule_addobject.
7054 * python/py-function.c (gdbpy_initialize_functions): Use
7055 gdb_pymodule_addobject.
7056 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7057 gdb_pymodule_addobject.
7058 * python/py-infthread.c (gdbpy_initialize_thread): Use
7059 gdb_pymodule_addobject.
7060 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7061 gdb_pymodule_addobject.
7062 * python/py-param.c (gdbpy_initialize_parameters): Use
7063 gdb_pymodule_addobject.
7064 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7065 gdb_pymodule_addobject.
7066 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7067 gdb_pymodule_addobject.
7068 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7069 gdb_pymodule_addobject.
7070 * python/py-type.c (gdbpy_initialize_types): Use
7071 gdb_pymodule_addobject.
7072 * python/py-utils.c (gdb_pymodule_addobject): New function.
7073 * python/py-value.c (gdbpy_initialize_values): Use
7074 gdb_pymodule_addobject.
7075 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7076 * python/python.c (_initialize_python): Use
7077 gdb_pymodule_addobject.
7079 2013-05-20 Tom Tromey <tromey@redhat.com>
7081 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7082 * python/py-param.c (get_set_value, get_show_value): Use
7084 * python/python.c (start_type_printers, apply_type_printers):
7085 Use explicit decrefs.
7087 2013-05-20 Tom Tromey <tromey@redhat.com>
7089 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7092 2013-05-20 Tom Tromey <tromey@redhat.com>
7094 * python/python.c (gdbpy_run_events): Decref the result
7095 of PyObject_CallObject.
7097 2013-05-20 Tom Tromey <tromey@redhat.com>
7099 * python/py-symtab.c (set_sal): Use
7100 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7101 (symtab_and_line_to_sal_object): Update.
7103 2013-05-20 Tom Tromey <tromey@redhat.com>
7105 * python/py-param.c (compute_enum_values): Decref 'item'.
7107 2013-05-20 Tom Tromey <tromey@redhat.com>
7109 * mi/mi-main.c: Include python-internal.h.
7110 (mi_cmd_list_features): Check gdb_python_initialized.
7111 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7112 (python_inferior_exit, python_new_objfile, add_thread_object)
7113 (delete_thread_object, py_free_inferior): Check
7114 gdb_python_initialized.
7115 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7116 gdb_python_initialized.
7117 * python/py-type.c (save_objfile_types): Check
7118 gdb_python_initialized.
7119 * python/python-internal.h (gdb_python_initialized): Declare.
7120 * python/python.c (ensure_python_env): Throw exception if
7121 Python not initialized.
7122 (before_prompt_hook, source_python_script_for_objfile)
7123 (start_type_printers, apply_type_printers,
7124 free_type_printers): Check gdb_python_initialized.
7125 * varobj.c (varobj_get_display_hint)
7126 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7127 (install_new_value_visualizer, varobj_set_visualizer)
7128 (value_get_print_value): Check gdb_python_initialized.
7130 2013-05-20 Tom Tromey <tromey@redhat.com>
7132 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7134 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7135 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7137 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7139 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7141 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7143 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7144 init function to return 'int'.
7145 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7146 Return 'int'. Check errors.
7147 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7149 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7150 Return 'int'. Check errors.
7151 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7153 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7155 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7157 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7159 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7161 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7163 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7165 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7167 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7169 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7171 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7173 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7175 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7177 * python/python-internal.h (gdbpy_initialize_auto_load,
7178 gdbpy_initialize_values, gdbpy_initialize_frames,
7179 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7180 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7181 gdbpy_initialize_blocks, gdbpy_initialize_types,
7182 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7183 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7184 gdbpy_initialize_finishbreakpoints,
7185 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7186 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7187 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7188 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7189 gdbpy_initialize_signal_event,
7190 gdbpy_initialize_breakpoint_event,
7191 gdbpy_initialize_continue_event,
7192 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7193 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7194 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7195 * python/python.c (gdb_python_initialized): New global.
7196 (gdbpy_initialize_events): Return 'int'. Check errors.
7197 (_initialize_python): Check errors. Set
7198 gdb_python_initialized.
7200 2013-05-20 Tom Tromey <tromey@redhat.com>
7202 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7203 Decref the reslut of PyObject_CallMethod.
7205 2013-05-20 Tom Tromey <tromey@redhat.com>
7207 * python/py-event.c (gdbpy_initialize_event_generic): Return
7208 early if PyType_Ready fails.
7210 2013-05-20 Tom Tromey <tromey@redhat.com>
7212 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7213 as 'default' in the switch.
7215 2013-05-20 Tom Tromey <tromey@redhat.com>
7217 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7218 get_addr_from_python calls out of TRY_CATCH.
7219 (infpy_write_memory, infpy_search_memory): Likewise.
7220 * python/py-utils.c (get_addr_from_python): Return negative
7221 value on error. Use TRY_CATCH.
7222 * python/python-internal.h (get_addr_from_python): Use
7223 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7225 2013-05-20 Tom Tromey <tromey@redhat.com>
7227 * python/py-event.c (evpy_emit_event): Decref the
7228 result of PyObject_CallFunctionObjArgs.
7230 2013-05-20 Tom Tromey <tromey@redhat.com>
7232 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7235 2013-05-20 Tom Tromey <tromey@redhat.com>
7237 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7239 2013-05-20 Tom Tromey <tromey@redhat.com>
7241 * python/py-event.h (gdbpy_initialize_event_generic): Use
7242 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7243 * python/py-evts.c (add_new_registry): Use
7244 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7245 * python/python-internal.h
7246 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7248 2013-05-20 Tom Tromey <tromey@redhat.com>
7250 * python/py-arch.c (archpy_disassemble): Update.
7251 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7252 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7253 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7254 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7256 (GDB_PY_HANDLE_EXCEPTION): Update.
7257 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7259 2013-05-20 Tom Tromey <tromey@redhat.com>
7261 * python/python-internal.h (events_object_type): Remove.
7263 2013-05-20 Tom Tromey <tromey@redhat.com>
7265 * python/py-event.h (evpy_emit_event): Use
7266 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7267 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7270 2013-05-20 Tom Tromey <tromey@redhat.com>
7272 * py-evtregistry.c (create_event_object): Decref
7273 eventregistry_object if PyList_New fails.
7275 2013-05-20 Tom Tromey <tromey@redhat.com>
7277 * py-cmd.c (gdbpy_string_to_argv): Check result of
7280 2013-05-20 Tom Tromey <tromey@redhat.com>
7282 * python/python.c (before_prompt_hook): Add cleanup to
7285 2013-05-20 Tom Tromey <tromey@redhat.com>
7287 * python/py-function.c (fnpy_init): Decref result of
7288 PyObject_GetAttrString.
7290 2013-05-20 Tom Tromey <tromey@redhat.com>
7292 * python/py-threadevent.c (get_event_thread): Use
7293 CPYCHECKER_RETURNS_BORROWED_REF.
7294 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7296 (pspace_to_pspace_object, objfile_to_objfile_object)
7297 (find_thread_object): Use it.
7299 2013-05-20 Tom Tromey <tromey@redhat.com>
7301 * python/py-arch.c (arch_object_type): Use
7302 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7303 * python/py-block.c (block_syms_iterator_object_type):
7304 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7305 * python/py-bpevent.c (breakpoint_event_object_type):
7306 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7307 * python/py-cmd.c (cmdpy_object_type): Use
7308 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7309 * python/py-continueevent.c (continue_event_object_type):
7310 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7311 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7312 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7313 * python/py-events.h (thread_event_object_type):
7314 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7315 * python/py-evtregistry.c (eventregistry_object_type): Use
7316 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7317 * python/py-exitedevent.c (exited_event_object_type):
7318 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7319 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7320 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7321 * python/py-function.c (fnpy_object_type): Use
7322 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7323 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7324 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7325 * python/py-infthread.c (thread_object_type): Use
7326 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7327 * python/py-lazy-string.c (lazy_string_object_type):
7328 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7329 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7330 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7331 * python/py-objfile.c (objfile_object_type): Use
7332 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7333 * python/py-param.c (parmpy_object_type):
7334 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7335 * python/py-progspace.c (pspace_object_type):
7336 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7337 * python/py-signalevent.c (signal_event_object_type):
7338 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7339 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7340 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7341 * python/py-type.c (type_object_type, field_object_type)
7342 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7343 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7345 (value_object_type, block_object_type, symbol_object_type)
7346 (event_object_type, stop_event_object_type, breakpoint_object_type)
7347 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7349 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7351 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7352 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7354 2013-05-20 Doug Evans <dje@google.com>
7356 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7358 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7359 reading_dwo_directly.
7360 (struct signatured_type): New member dwo_unit.
7361 (struct die_reader_specs): New member comp_dir.
7362 (create_signatured_type_table_from_index): Use malloc for
7363 all_type_units instead of objfile's obstack.
7364 (create_all_type_units): Ditto.
7365 (fill_in_sig_entry_from_dwo_entry): New function.
7366 (add_type_unit): New function.
7367 (lookup_dwo_signatured_type): New function.
7368 (lookup_dwp_signatured_type): New function.
7369 (lookup_signatured_type): New arg cu. All callers updated.
7370 (init_cu_die_reader): Initialize comp_dir.
7371 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7372 Change assert of matching type signatures to call error on mismatch.
7373 (lookup_dwo_unit): Add assert.
7374 (init_tu_and_read_dwo_dies): New function.
7375 (init_cutu_and_read_dies): Call it.
7376 (build_type_unit_groups): Handle case of no type unit groups created.
7377 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7378 (lookup_dwo_cutu): Tweak complaint.
7379 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7380 (dwarf2_per_objfile_free): Free all_type_units.
7382 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7384 * windows-nat.c (handle_unload_dll): Add missing empty line.
7386 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7388 * dwarf2read.c (prototyped_function_p): New function.
7389 (read_subroutine_type): Use it.
7391 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7393 * rs6000-aix-tdep.c: De-indent some example code provided
7396 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7398 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7399 region is ok for a hardware watchpoint using the new ptrace interface
7402 2013-05-17 Doug Evans <dje@google.com>
7404 * NEWS: Mention new maintenance commands check-symtabs, and
7405 expand-symtabs, and renamed check-psymtabs.
7406 * psymtab.c (maintenance_check_psymtabs): Renamed from
7407 maintenance_check_symtabs. Only process already-expanded symbol
7409 (_initialize_psymtab): Update.
7410 * symmisc.c (maintenance_check_symtabs): New function.
7411 (maintenance_expand_name_matcher): New function
7412 (maintenance_expand_file_matcher): New function
7413 (maintenance_expand_symtabs): New function.
7414 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7417 2013-05-17 Tom Tromey <tromey@redhat.com>
7419 * python/py-inferior.c (infpy_read_memory): Don't call
7420 PyErr_SetString if PyObject_New fails.
7421 * python/py-frame.c (frame_info_to_frame_object): Don't call
7422 PyErr_SetString if PyObject_New fails.
7424 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7426 * acinclude.m4: Add check for dlopen in libdl.
7427 * configure.ac: Ditto.
7428 * configure: Regenerate.
7430 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7432 * frame.c (frame_stash): Convert to htab.
7433 (frame_addr_hash): New function.
7434 (frame_addr_hash_eq): New function.
7435 (frame_stash_create): Convert function to create
7437 (frame_stash_add): Convert function to add an entry to a hash
7439 (frame_stash_find): Convert function to search the hash table.
7440 (frame_stash_invalidate): Convert function to empty the hash
7442 (get_frame_id): Only add to stash if a frame_id is created.
7443 (_initialize_frame): Call frame_stash_create.
7445 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7447 * configure.ac: Ensure MIG is available when building for GNU Hurd
7449 * configure: Regenerate.
7451 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7453 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7455 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7457 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7458 all cleanups are done before returning from this function.
7460 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7462 * utils.h: #include "exceptions.h".
7463 (enum errors): Remove partial declaration.
7465 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7467 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7468 * gdbarch.h, gdbarch.c: Regenerate.
7469 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7472 * rs6000-aix-tdep.h: New file.
7473 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7474 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7476 (struct field_info, struct ld_info_desc): New types.
7477 (ld_info32_desc, ld_info64_desc): New static constants.
7478 (struct ld_info): New type.
7479 (rs6000_aix_extract_ld_info): New function.
7480 (rs6000_aix_shared_library_to_xml): Likewise.
7481 (rs6000_aix_ld_info_to_xml): Likewise.
7482 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7483 (rs6000_aix_init_osabi): Add call to
7484 set_gdbarch_core_xfer_shared_libraries_aix.
7485 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7486 Remove "xml-utils.h" include.
7487 (LdInfo): Delete typedef.
7488 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7490 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7491 Adjust code accordingly.
7492 (rs6000_core_ldinfo): Delete, folded into
7493 rs6000_aix_core_xfer_shared_libraries_aix.
7494 (rs6000_xfer_shared_library): Delete.
7495 (rs6000_xfer_shared_libraries): Reimplement.
7497 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7499 * record.c (record_goto_cmdlist): New.
7500 (cmd_record_goto): Split into this ...
7501 (cmd_record_goto_begin): ... this
7502 (cmd_record_goto_end): ... and this.
7503 (_initialize_record): Change "record goto" to prefix command.
7504 Add commands for "record goto begin" and "record goto end".
7505 Add an alias for "record goto start" to "record goto begin".
7507 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7509 * linespec.c (convert_linespec_to_sals): New comment for
7510 SOURCE_FILENAME assignment.
7512 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7517 2013-05-14 Tom Tromey <tromey@redhat.com>
7519 * eval.c (parse_and_eval_long): Make 'exp' const.
7520 * value.h (parse_and_eval_long): Update.
7522 2013-05-14 Tom Tromey <tromey@redhat.com>
7524 * ui-file.c (gdb_fopen): Make arguments const.
7525 * ui-file.h (gdb_fopen): Make arguments const.
7527 2013-05-14 Tom Tromey <tromey@redhat.com>
7529 * remote.c (remote_set_trace_notes): Make arguments const.
7530 * target.c (update_current_target): Update cast.
7531 * target.h (to_set_trace_notes): Make arguments const.
7533 2013-05-14 Tom Tromey <tromey@redhat.com>
7535 * go32-nat.c (go32_terminal_info): Make 'args' const.
7536 * inferior.h (child_terminal_info): Update.
7537 * inflow.c (child_terminal_info): Make 'args' const.
7538 * target.c (default_terminal_info): Make 'args' const.
7539 (debug_to_terminal_save_ours): Likewise.
7540 * target.h (struct target_ops) <to_terminal_info>: Make argument
7543 2013-05-13 Tom Tromey <tromey@redhat.com>
7545 * gcore.c (create_gcore_bfd): Make 'filename' const.
7546 * gcore.h (create_gcore_bfd): Make 'filename' const.
7547 * record-full.c (record_full_save): Make 'recfilename' const.
7548 * target.c (target_save_record): Make 'filename' const.
7549 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7551 (target_save_record): Likewise.
7553 2013-05-13 Tom Tromey <tromey@redhat.com>
7556 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7557 ranges section has been read.
7559 2013-05-13 Tom Tromey <tromey@redhat.com>
7562 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7563 STRUCTOP_PTR>: Return a not_lval value for
7564 EVAL_AVOID_SIDE_EFFECTS.
7565 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7566 for EVAL_AVOID_SIDE_EFFECTS.
7568 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7570 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7571 floating point registers to register type before storing
7573 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7576 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7577 Tom Tromey <tromey@redhat.com>
7579 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7581 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7583 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7584 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7585 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7586 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7588 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7589 Tom Tromey <tromey@redhat.com>
7592 * configure: Rebuild.
7593 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7596 2013-05-10 Pedro Alves <palves@redhat.com>
7598 * remote.c (_initialize_remote): Fix spelling of
7599 qXfer:traceframe-info:read packet in packet config command.
7601 2013-05-10 David Taylor <dtaylor@emc.com>
7605 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7606 "QTro" at start of packet.
7608 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7610 * solib-aix.c (solib_aix_relocate_section_addresses):
7611 For the .bss section action, apply the same offset as
7614 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7616 * solib-aix.c (solib_aix_relocate_section_addresses):
7617 Remove FIXME comment.
7619 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7622 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7623 New functions, directly copied from sparc-sol-thread.c.
7624 * sparc-sol-thread.c: Delete.
7625 * configure.ac: Remove code handling sparc-solaris-thread.c.
7626 * configure: Regenerate.
7628 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7630 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7632 (backtrace_command): Add "no-filters" option parsing.
7633 (_initialize_stack): Alter help to reflect "no-filters" option.
7634 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7635 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7636 (py-frame.o): Add target
7637 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7639 * python/python.h: Add new frame filter constants, and flag enum.
7640 (apply_frame_filter): Add definition.
7641 * python/python.c (apply_frame_filter): New non-Python
7643 * python/py-utils.c (py_xdecref): New function.
7644 (make_cleanup_py_xdecref): Ditto.
7645 * python/py-objfile.c: Declare frame_filters dictionary.
7646 (objfpy_dealloc): Add frame_filters dealloc.
7647 (objfpy_new): Initialize frame_filters attribute.
7648 (objfile_to_objfile_object): Ditto.
7649 (objfpy_get_frame_filters): New function.
7650 (objfpy_set_frame_filters): New function.
7651 * python/py-progspace.c: Declare frame_filters dictionary.
7652 (pspy_dealloc): Add frame_filters dealloc.
7653 (pspy_new): Initialize frame_filters attribute.
7654 (pspacee_to_pspace_object): Ditto.
7655 (pspy_get_frame_filters): New function.
7656 (pspy_set_frame_filters): New function.
7657 * python/py-framefilter.c: New file.
7658 * python/lib/gdb/command/frame_filters.py: New file.
7659 * python/lib/gdb/frames.py: New file.
7660 * python/lib/gdb/__init__.py: Initialize global frame_filters
7662 * python/lib/gdb/FrameDecorator.py: New file.
7663 * python/lib/gdb/FrameIterator.py: New file.
7664 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7665 * mi/mi-cmds.h: Declare.
7666 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7667 --no-frame-filter logic, and Python frame filter logic.
7668 (stack_enable_frame_filters): New function.
7669 (parse_no_frame_option): Ditto.
7670 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7672 (mi_cmd_stack_list_locals): Ditto.
7673 (mi_cmd_stack_list_args): Ditto.
7674 (mi_cmd_stack_list_variables): Ditto.
7675 * NEWS: Add frame filter note.
7677 2013-05-09 Doug Evans <dje@google.com>
7679 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7680 All callers updated.
7681 (syms_from_objfile): Ditto. Make static.
7682 (symbol_file_add_with_addrs): Renamed from
7683 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7684 num_offsets. All callers updated.
7685 * symfile.h (syms_from_objfile): Delete.
7687 * symfile.c (decrement_reading_symtab): Add assert.
7688 (increment_reading_symtab): Ditto.
7690 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7692 * source.c (forward_search_command): Replace call to getc
7694 (reverse_search_command): Likewise.
7696 2013-05-08 Doug Evans <dje@google.com>
7698 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7701 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7703 * sol-thread.c (info_cb): Factorize the code a little.
7705 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7707 * sol-thread.c (info_cb): Rework the output of the "maintenance
7708 info sol-threads" command a bit.
7710 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7712 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7713 Replace ti.ti_startfunc by ti.ti_pc.
7715 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7717 * solib-aix.c (solib_aix_free_library_list): New function
7718 for the case where HAVE_LIBEXPAT is not defined.
7720 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7722 PR breakpoints/15413:
7723 * breakpoint.c (condition_completer): Simplify the code to
7724 disconsider multiple locations of breakpoints when completing the
7725 "condition" command.
7727 2013-05-07 Pierre Muller <muller@sourceware.org>
7729 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7730 instead of <sys/wait.h>.
7732 2013-05-07 Pierre Muller <muller@sourceware.org>
7734 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7735 trailing new line from warning message.
7737 2013-05-07 Pierre Muller <muller@sourceware.org>
7739 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7740 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7742 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7744 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7745 error message (ARI fix).
7747 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7749 * features/library-list-aix.dtd: Replace library-list by
7751 * rs6000-nat.c: Replace library-list by library-list-aix
7753 * solib-aix.c: Likewise.
7755 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7757 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7758 Renames TARGET_OBJECT_AIX_LIBRARIES.
7759 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7760 TARGET_OBJECT_LIBRARIES_AIX throughout.
7761 * solib-aix.c: Likwise.
7763 2013-05-07 Yao Qi <yao@codesourcery.com>
7765 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7766 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7768 2013-05-07 Yao Qi <yao@codesourcery.com>
7770 * solib-dsbt.c (enable_break): Declare.
7771 (dsbt_current_sos): Remove call to enable_break2.
7772 (enable_break2): Rename to enable_break. Set solib breakpoint
7773 on '_dl_debug_state'.
7774 (enable_break): Remove.
7776 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7778 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7779 debug state prior to replicating existing hardware watchpoints or
7782 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7784 * gcore.c (gcore_create_callback): Ignore sections with
7785 separate_debug_objfile_backlink != NULL.
7787 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7788 Andrew Jenner <andrew@codesourcery.com>
7789 Chung-Lin Tang <cltang@codesourcery.com>
7790 Julian Brown <julian@codesourcery.com>
7792 Based on the nios2-elf port from Altera Corporation.
7794 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7796 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7797 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7798 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7799 * nios2-tdep.h: New.
7800 * nios2-tdep.c: New.
7801 * nios2-linux-tdep.c: New.
7802 * features/Makefile (WHICH): Add nios2-linux.
7803 (nios2-linux-expedite): Set.
7804 * features/nios2-cpu.xml: New.
7805 * features/nios2.xml: New.
7806 * features/nios2-linux.xml: New.
7807 * features/nios2.c: New (autogenerated).
7808 * features/nios2-linux.c: New (autogenerated).
7809 * regformats/nios2-linux.dat: New (autogenerated).
7810 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7813 2013-05-06 Doug Evans <dje@google.com>
7815 * symfile.c: Whitespace cleanup.
7817 * solist.h (struct target_so_ops): New member clear_so.
7818 * solib-svr4.c (svr4_clear_so): New function.
7819 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7820 * solib.c (clear_so): Renamed from free_so_symbols.
7821 All callers updated. Call target clear_so if it exists.
7823 2013-05-06 Tom Tromey <tromey@redhat.com>
7825 * ada-lang.c (ada_value_primitive_packed_val): Don't
7827 * value.c (set_value_parent): Incref the new parent and decref
7829 (value_copy, value_primitive_field): Use set_value_parent.
7831 2013-05-06 Tom Tromey <tromey@redhat.com>
7833 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7834 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7836 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7837 * dwarf2read.c (write_constant_as_bytes)
7838 (dwarf2_fetch_constant_bytes): New functions.
7840 2013-05-06 Tom Tromey <tromey@redhat.com>
7842 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7844 (dwarf2_const_value_attr): Update.
7846 2013-05-06 Tom Tromey <tromey@redhat.com>
7848 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7849 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7850 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7853 2013-05-06 Tom Tromey <tromey@redhat.com>
7855 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7858 2013-05-06 Doug Evans <dje@google.com>
7860 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7861 * stabsread.h (process_one_symbol): Update declaration.
7862 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7863 * elfread.c (elf_symfile_relocate_probe): Ditto.
7864 * psymtab.c (relocate_psymtabs): Ditto.
7865 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7866 (objfile_relocate): Ditto.
7867 * objfiles.h (objfile_relocate): Update declaration.
7868 * symfile.c (relative_addr_info_to_section_offsets): Constify
7870 (default_symfile_offsets): Ditto.
7871 (syms_from_objfile_1): Constify offsets parameter.
7872 (syms_from_objfile): Ditto.
7873 (symbol_file_add_with_addrs_or_offsets): Ditto.
7874 (symfile_map_offsets_to_segments): Constify data parameter.
7875 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7876 delta parameters of member relocate.
7877 (struct sym_probe_fns): Constify new_offsets,
7878 delta parameters of member sym_relocate_probe.
7879 (struct sym_fns): Constify section_addr_info parameter of member
7881 (relative_addr_info_to_section_offsets): Update declaration.
7882 (default_symfile_offsets): Ditto.
7883 (syms_from_objfile): Ditto.
7884 (symfile_map_offsets_to_segments): Ditto.
7886 * symfile.c (syms_from_objfile_1): Use correct section count when
7887 objfile->sf == NULL.
7889 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7891 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7893 2013-05-06 Doug Evans <dje@google.com>
7895 * psympriv.h (struct partial_symtab): Augment comment for member
7898 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7900 Reimplement shared library support on ppc-aix...
7901 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7902 * features/library-list-aix.dtd: New file.
7903 * solib-aix.h, solib-aix.c: New file.
7904 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7905 (rs6000_find_toc_address_hook): Delete.
7906 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7907 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7908 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7910 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7911 (vmap_symtab, fixup_breakpoints): Delete.
7912 (rs6000_xfer_shared_libraries): New function.
7913 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7914 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7915 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7916 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7917 (rs6000_xfer_shared_library): New function.
7918 (find_toc_address): Delete.
7919 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7920 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7921 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7922 before creating minimal symbol. Adjust function description
7924 (scan_xcoff_symtab): Replace call to
7925 prim_record_minimal_symbol_and_info by call to
7926 record_minimal_symbol.
7927 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7928 around default_symfile_offsets.
7929 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7930 powerpc-aix targets.
7931 * config/rs6000/nm-rs6000.h: Delete.
7932 * config/powerpc/aix.mh (NAT_FILE): Delete.
7933 (NATDEPFILES): Remove xcoffsolib.o.
7934 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7935 (ALL_TARGET_OBS): Add solib-aix.o.
7936 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7937 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7938 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7939 * xcoffsolib.h, xcoffsolib.c: Delete.
7941 * solib.c (reload_shared_libraries): Remove reference to
7942 SOLIB_CREATE_INFERIOR_HOOK.
7943 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7944 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7945 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7947 * corelow.c (deprecated_core_resize_section_table): Delete.
7948 * exec.c: Remove include of xcoffsolib.h".
7949 (map_vmap, vmap): Delete.
7950 (exec_close_1): Remove references to vmap.
7951 (exec_file_attach): Remove vmap handling code, and reference
7952 to DEPRECATED_IBM6000_TARGET.
7953 (bfdsec_to_vmap): Delete.
7954 (exec_files_info): Remove block of code handling VMAP.
7955 * infcmd.c (post_create_inferior): Remove reference to
7956 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7957 * infrun.c (follow_exec): Remove reference to
7958 SOLIB_CREATE_INFERIOR_HOOK.
7959 * stack.c (print_frame): Remove reference to PC_SOLIB.
7960 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7961 (dsbt_relocate_main_executable): Likewise.
7962 * solib-frv.c (frv_current_sos): Likewise.
7964 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7966 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7967 to target_write_memory and target_read_memory.
7969 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7971 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7972 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7974 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7976 * darwin-nat.c: Replace all "%x" instances in format strings
7977 into "0x%x" throughout.
7979 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7981 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7982 gdb_assert by call to MACH_CHECK_ERROR.
7983 (darwin_attach_pid): Raise an error rather than a failed
7984 assertion when various system calls failed. Report a warning
7985 instead of raising a failed assertion when PREV_NOT is not NULL
7986 after call to mach_port_request_notification.
7987 (darwin_ptrace_me): Raise an error rather than a failed
7988 assertion when read returns nonzero.
7990 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7992 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7994 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7998 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8000 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8001 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8002 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
8003 a stale cleanup. Fix double free of NAME.
8005 2013-05-04 Eli Zaretskii <eliz@gnu.org>
8007 * windows-nat.c (windows_delete_thread): Accept an additional
8008 argument, the thread's exit code, and announce thread death when
8009 print_thread_events is non-zero and we are deleting a thread that
8010 is not the main thread.
8011 (get_windows_debug_event): Pass thread exit code to
8012 windows_delete_thread.
8014 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8016 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8017 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8018 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8019 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8020 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8021 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8022 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8023 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8024 (gdbarch_tdep): New struct.
8025 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8027 (v850e3v5_register_name): New function.
8028 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8029 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8030 code handling the struct return conventions for the RH850 ABI.
8032 (v850_eight_byte_align_p): New function.
8033 (v850_push_call_dummy): Push structs by value, not by reference
8034 for the RH850 ABI. Add support for eight byte alignment.
8035 (v850_dbtrap_breakpoint_from_pc): New function.
8036 (v850_gdbarch_init): Add ABI detection code. Register
8037 v850e3v5_register_name for the v850e3v5 architecture. Set the
8038 number of registers for v850e3v5. Register
8039 v850_dbtrap_breakpoint_from_pc as appropriate.
8040 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8042 2013-05-03 Doug Evans <dje@google.com>
8044 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8045 of bfd_count_sections.
8046 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8047 * symfile.c (default_symfile_offsets): Ditto.
8048 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8049 one entry, not bfd_count_sections entries.
8051 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8053 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8054 `save' and `restore' register groups. Don't include SPL
8055 or SPH in these groups.
8056 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8057 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8058 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8059 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8060 dwarf2_append_unwinders().
8062 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8064 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8065 ignore SIGINT and SIGTRAP in case these internal signals are
8068 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8070 * darwin-nat.c (darwin_read_write_inferior): Change types
8071 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8072 of copy_count to "mach_msg_type_number_t".
8073 (darwin_read_dyld_info): Change type of parameter
8074 rdaddr to "gdb_byte *".
8076 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8078 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8079 of &info->load_map from "char *" to "gdb_byte *".
8081 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8083 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8084 from "char *" to "gdb_byte *".
8085 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8087 2013-04-30 Doug Evans <dje@google.com>
8089 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8090 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8091 DWO stub. If DWO isn't found, just use stub.
8092 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8094 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8095 calling init_cutu_and_read_dies.
8097 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8099 * target-descriptions.c (maint_print_c_tdesc_cmd):
8100 Add case to parse structures as register types and
8103 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8105 * MAINTAINERS (Write After Approval): Add myself to the list.
8107 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8109 * sol-thread.c (rw_common): Change type of parameter "buf"
8111 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8112 rw_common to "gdb_byte *" instead of "char *".
8114 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8116 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8117 of local variable msym to const struct bound_minimal_symbol.
8118 Adjust use accordingly.
8119 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8121 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8123 * i386gnu-nat.c (CREG_OFFSET): New macro.
8124 (creg_offset): New array.
8125 (CREG_ADDR): Use creg_offset instead of reg_offset.
8127 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8129 * mep-tdep.c (mep_write_pc): Delete.
8130 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8131 Add call to set_gdbarch_pc_regnum.
8133 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8135 * common/filestuff.c: Replace #include <dirent.h> by
8136 #include "gdb_dirent.h".
8138 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8140 * common/filestuff.c: Replace #include <sys/stat.h> by
8141 #include "gdb_stat.h".
8143 2013-04-29 Pierre Muller <muller@sourceware.org>
8145 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8146 editCase function rule.
8147 (get_DW_AT_signature_type): Likewise.
8149 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8151 * m32r-tdep.c (m32r_write_pc): Delete.
8152 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8153 Add call to set_gdbarch_pc_regnum.
8155 2013-04-29 Pierre Muller <muller@sourceware.org>
8157 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8159 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8161 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8163 2013-04-28 Yao Qi <yao@codesourcery.com>
8165 * solib-dsbt.c (fetch_loadmap): Re-indent.
8166 (displacement_from_map, enable_break2): Likewise.
8167 (dsbt_relocate_section_addresses): Likewise.
8169 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8173 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8176 * dwarf2read.c (process_full_comp_unit): Always create a static
8179 2013-04-25 Hui Zhu <hui@codesourcery.com>
8181 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8182 to loc->cmd_bytecode.
8184 2013-04-24 Doug Evans <dje@google.com>
8186 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8188 2013-04-22 Keith Seitz <keiths@redhat.com>
8190 * tracepoint.c (trace_save): Call the writer's start method.
8192 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8195 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8198 2013-04-23 Tom Tromey <tromey@redhat.com>
8200 * common/filestuff.c: Check USE_WIN32API before including
8202 (HAVE_F_GETFD): New define.
8203 (mark_cloexec): Check HAVE_F_GETFD.
8204 (gdb_open_cloexec): Change 'mode' to unsigned long.
8205 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8206 (gdb_pipe_cloexec): Check HAVE_PIPE.
8207 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8210 2013-04-23 Hui Zhu <hui@codesourcery.com>
8213 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8215 2013-04-23 Hui Zhu <hui@codesourcery.com>
8218 * breakpoint.c (dprintf_print_recreate): New.
8219 (save_breakpoints): Let it not save dprintf commands.
8220 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8222 2013-04-22 Tom Tromey <tromey@redhat.com>
8225 * Makefile.in (SFILES): Add filestuff.c
8226 (COMMON_OBS): Add filestuff.o.
8227 (filestuff.o): New target.
8228 * auto-load.c (auto_load_objfile_script_1): Use
8230 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8231 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8232 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8233 * common/agent.c (gdb_connect_sync_socket): Use
8235 * common/filestuff.c: New file.
8236 * common/filestuff.h: New file.
8237 * common/linux-osdata.c (linux_common_core_of_thread)
8238 (command_from_pid, commandline_from_pid, print_source_lines)
8239 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8240 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8242 * common/linux-procfs.c (linux_proc_get_int)
8243 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8244 * config.in, configure: Rebuild.
8245 * configure.ac: Don't check for sys/socket.h. Check for
8247 * corelow.c (core_open): Use gdb_open_cloexec.
8248 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8249 * fork-child.c (fork_inferior): Call close_most_fds.
8250 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8251 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8252 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8253 Use gdb_fopen_cloexec.
8254 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8256 (linux_async_pipe): Use gdb_pipe_cloexec.
8257 * remote-fileio.c (remote_fileio_func_open): Use
8259 * remote.c (remote_file_put, remote_file_get): Use
8261 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8263 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8264 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8265 * solib.c (solib_find): Use gdb_open_cloexec.
8266 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8267 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8268 (tfile_open): Use gdb_open_cloexec.
8269 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8270 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8271 * xml-support.c (xml_fetch_content_from_file): Use
8273 * main.c (captured_main): Call notice_open_fds.
8275 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8277 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8278 'char *' to 'gdb_byte *'.
8279 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8282 2013-04-22 Yao Qi <yao@codesourcery.com>
8284 * infrun.c: Fix typo in comment.
8286 2013-04-22 Andrew Haley <aph@redhat.com>
8288 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8291 2013-04-20 Yao Qi <yao@codesourcery.com>
8293 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8294 'char *' to 'gdb_byte *'. Cast the return value of
8295 'bt_ctf_get_char_array' to 'gdb_byte *'.
8297 2013-04-19 Pedro Alves <palves@redhat.com>
8299 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8301 * configure: Regenerate.
8303 2013-04-19 Pedro Alves <palves@redhat.com>
8305 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8308 2013-04-19 Pedro Alves <palves@redhat.com>
8310 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8311 Change type of 'myaddr' parameter to gdb_byte pointer.
8312 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8313 to 'long long' pointer instead of to 'unsigned long long'.
8314 (monitor_write_memory_block, monitor_read_memory_single)
8315 (monitor_read_memory): Change type of 'myaddr' parameter to
8318 2013-04-19 Pedro Alves <palves@redhat.com>
8320 * record.c (validate_history_size): Make parameter 'setting'
8323 2013-04-19 Pedro Alves <palves@redhat.com>
8325 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8328 2013-04-19 Pedro Alves <palves@redhat.com>
8330 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8333 2013-04-19 Pedro Alves <palves@redhat.com>
8335 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8336 * ada-tasks.c (read_fat_string_value): Likewise.
8338 2013-04-19 Pedro Alves <palves@redhat.com>
8340 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8341 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8342 'offset', and adjust.
8344 2013-04-19 Pedro Alves <palves@redhat.com>
8346 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8347 (read_index_from_section): Add cast to 'char *'.
8349 2013-04-19 Pedro Alves <palves@redhat.com>
8351 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8353 2013-04-19 Pedro Alves <palves@redhat.com>
8355 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8357 2013-04-19 Pedro Alves <palves@redhat.com>
8359 * record-full.c (record_full_get_bookmark): Change local 'ret'
8360 type to char * and add cast to gdb_byte *.
8361 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8363 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8365 2013-04-19 Pedro Alves <palves@redhat.com>
8367 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8368 * python/py-prettyprint.c (print_string_repr): Change type of
8369 'output' local to char *. Add cast to gdb_byte * in
8370 LA_PRINT_STRING call.
8371 (print_children): Change type of 'output' local to char *.
8372 * python/py-value.c (valpy_string): Add cast to const char * in
8373 PyUnicode_Decode call.
8375 2013-04-19 Pedro Alves <palves@redhat.com>
8377 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8378 and change its type to 'const char *'. Adjust.
8379 (mips_send_packet): Add cast to 'char *', and remove cast to
8381 (mips_receive_packet): Remove cast to 'unsigned char *'.
8382 (mips_load_srec): Use bfd_byte.
8383 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8384 (pmon_checkset): Make 'value' parameter unsigned.
8386 2013-04-19 Pedro Alves <palves@redhat.com>
8388 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8390 2013-04-19 Pedro Alves <palves@redhat.com>
8392 * remote.c (remote_write_bytes_aux, compare_sections_command)
8394 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8395 (remote_hostio_readlink, remote_bfd_iovec_pread)
8396 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8397 binary buffer, and char when buffer is used as string.
8398 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8399 (trace_save, tfile_open, traceframe_walk_blocks)
8400 (tfile_fetch_registers): Likewise.
8402 2013-04-19 Pedro Alves <palves@redhat.com>
8404 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8405 buffer and size_t size. Adjust.
8406 * ser-base.h (ser_base_write): Adjust.
8407 * ser-go32.c (cnts): Change type to size_t.
8408 (dos_write): Change prototype -- take 'void *'
8409 buffer and size_t size. Adjust.
8410 (dos_info): Print elements of 'cnts' as unsigned long.
8411 * serial.c (serial_write): Likewise.
8412 * serial.h (serial_write): Adjust.
8413 (struct serial_ops) <write>: Change prototype -- take 'void *'
8414 buffer and size_t size. Adjust.
8416 2013-04-19 Pedro Alves <palves@redhat.com>
8418 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8420 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8422 2013-04-19 Pedro Alves <palves@redhat.com>
8424 * alpha-tdep.c (alpha_extract_return_value): Use
8425 regcache_cooked_read_unsigned to read 'v0'.
8427 2013-04-19 Pedro Alves <palves@redhat.com>
8429 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8430 parameters 'at', 'as' and 'offset' to uint32_t.
8432 2013-04-19 Pedro Alves <palves@redhat.com>
8434 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8435 'is64' to signed 'int'.
8437 2013-04-19 Pedro Alves <palves@redhat.com>
8439 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8442 2013-04-19 Pedro Alves <palves@redhat.com>
8444 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8445 'insnbuf' buffer type to unsigned int[].
8447 2013-04-19 Pedro Alves <palves@redhat.com>
8449 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8451 2013-04-19 Pedro Alves <palves@redhat.com>
8453 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8456 2013-04-19 Pedro Alves <palves@redhat.com>
8458 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8459 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8461 * mips-tdep.c (heuristic_fence_post): Change type to int.
8462 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8464 2013-04-19 Pedro Alves <palves@redhat.com>
8466 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8467 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8468 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8470 2013-04-19 Pedro Alves <palves@redhat.com>
8472 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8473 it to get a string view of the byte buffer.
8474 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8475 type to gdb_byte *. Adjust.
8476 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8477 Change local to char *.
8478 * solib-darwin.c (find_program_interpreter): Change return type to
8480 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8481 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8482 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8483 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8484 * solib-svr4.c (find_program_interpreter): Change return type to
8486 (enable_break): Change local 'interp_name' to char *.
8487 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8488 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8489 (spu_pseudo_register_write_spu): Use char for string buffer.
8491 (info_spu_event_command, info_spu_signal_command): Add casts to
8494 2013-04-19 Pedro Alves <palves@redhat.com>
8496 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8498 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8499 * ada-lang.c (ada_value_assign): Use gdb_byte.
8500 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8501 (alphanbsd_sigtramp_offset): Use gdb_byte.
8502 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8503 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8504 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8505 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8506 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8507 * arm-tdep.c (arm_stub_unwind_sniffer)
8508 (arm_displaced_init_closure): Use gdb_byte.
8509 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8510 (arm_default_thumb_le_breakpoint)
8511 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8512 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8513 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8514 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8515 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8516 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8517 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8518 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8519 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8520 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8521 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8522 (cris_store_return_value, cris_extract_return_value): Use
8524 (constraint): Change type of parameter to char * from signed
8525 char*. Use gdb_byte.
8526 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8527 of local buffer to gdb_byte *.
8528 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8529 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8530 (add_address_entry): Change type of local buffer to gdb_byte[].
8531 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8532 (frv_push_dummy_call): Use gdb_byte.
8533 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8534 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8535 (hppa_hpux_supply_save_state): Use gdb_byte.
8536 * hppa-tdep.c (hppa32_push_dummy_call)
8537 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8538 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8539 (slotN_contents, replace_slotN_contents): Change type of parameter
8541 (fetch_instruction, ia64_pseudo_register_write)
8542 (ia64_register_to_value, ia64_value_to_register)
8543 (ia64_extract_return_value, ia64_store_return_value)
8544 (ia64_push_dummy_call): Use gdb_byte.
8545 * m32c-tdep.c (m32c_return_value): Remove cast.
8546 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8547 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8549 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8550 * mn10300-tdep.c (mn10300_store_return_value)
8551 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8553 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8554 (moxie_process_record): Remove casts.
8555 * ppc-ravenscar-thread.c (supply_register_at_address)
8556 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8557 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8558 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8559 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8560 * remote.c (compare_sections_command): Use gdb_byte.
8561 * score-tdep.c (score7_free_memblock): Change type of parameter to
8563 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8564 gdb_byte *. Use gdb_byte.
8565 (sh_push_dummy_call_fpu): Use gdb_byte.
8566 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8567 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8568 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8569 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8570 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8571 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8572 (sh64_store_return_value, sh64_register_convert_to_virtual):
8573 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8574 (sh64_pseudo_register_write): Use gdb_byte.
8575 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8576 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8578 (irix_current_sos): Use gdb_byte.
8579 * solib-som.c (som_current_sos): Use gdb_byte.
8580 * sparc-ravenscar-thread.c (supply_register_at_address)
8581 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8582 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8583 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8584 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8586 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8588 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8589 * xstormy16-tdep.c (xstormy16_extract_return_value)
8590 (xstormy16_store_return_value): Change parameter type to
8591 'gdb_byte *'. Adjust.
8592 (xstormy16_push_dummy_call): Use gdb_byte.
8593 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8594 (call0_analyze_prologue, execute_code): Use gdb_byte.
8596 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8597 Pedro Alves <palves@redhat.com>
8599 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8602 2013-04-17 Doug Evans <dje@google.com>
8604 * dwarf2read.c (struct signatured_type): New member type.
8605 (struct attribute): Replace member signatured_type with signature.
8606 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8607 (read_call_site_scope): Call follow_die_ref instead of
8608 follow_die_ref_or_sig.
8609 (read_structure_type): Rewrite handling of signatured types.
8610 (read_enumeration_type): Ditto.
8611 (read_attribute_value): Update.
8612 (build_error_marker_type): New function.
8613 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8614 Don't call error for bad types, just build an error marker type.
8615 (dump_die_shallow): Update.
8616 (follow_die_sig_1): Renamed from follow_die_sig.
8617 Don't call error for bad types, instead return NULL.
8618 (follow_die_sig): New function.
8619 (get_signatured_type, get_DW_AT_signature_type): New functions.
8621 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8623 * aarch64-tdep.c (aarch64_write_pc): Removed.
8624 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8627 2013-04-17 Yao Qi <yao@codesourcery.com>
8629 * top.c (print_gdb_configuration): Print configure-time
8630 parameter on using libbabeltrace or not.
8632 2013-04-16 Pedro Alves <palves@redhat.com>
8634 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8636 2013-04-16 Pedro Alves <palves@redhat.com>
8638 * common/glibc_thread_db.h: Update from upstream glibc
8639 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8641 2013-04-16 Pedro Alves <palves@redhat.com>
8643 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8644 * common/glibc_thread_db.h: ... this new file ...
8645 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8647 2013-04-16 Will Newton <will.newton@gmail.com>
8648 Pedro Alves <palves@redhat.com>
8652 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8653 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8656 2013-04-16 Pedro Alves <palves@redhat.com>
8657 Eli Zaretskii <eliz@gnu.org>
8659 * NEWS: Mention "set foo unlimited".
8661 2013-04-15 Doug Evans <dje@google.com>
8663 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8664 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8665 (create_dwo_cu_reader): Renamed from
8666 create_dwo_debug_info_hash_table_reader.
8667 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8668 Remove support for multiple CUs in a DWO file.
8669 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8671 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8673 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8674 (create_dwo_in_dwp): Ditto.
8676 2013-04-15 Tom Tromey <tromey@redhat.com>
8678 * NEWS: Move recent entries into "since 7.6" section.
8680 2013-04-15 Tom Tromey <tromey@redhat.com>
8684 * break-catch-throw.c (struct exception_catchpoint)
8685 <exception_rx, pattern>: New fields.
8686 (fetch_probe_arguments, dtor_exception_catchpoint)
8687 (check_status_exception_catchpoint)
8688 (print_one_detail_exception_catchpoint): New functions.
8689 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8690 Compile regular expression if needed.
8691 (extract_exception_regexp): New function.
8692 (catch_exception_command_1): Use extract_exception_regexp.
8693 (compute_exception): Use fetch_probe_arguments.
8694 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8695 and check_status fields.
8696 * cp-abi.c (cplus_typename_from_type_info): New function.
8697 * cp-abi.h (cplus_typename_from_type_info): Declare.
8698 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8699 * gdb_regex.h (compile_rx_or_error): Declare.
8700 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8702 (init_gnuv3_ops): Set get_type_from_type_info field.
8703 * probe.c (compile_rx_or_error): Move...
8704 * utils.c (compile_rx_or_error): ... here.
8706 2013-04-15 Tom Tromey <tromey@redhat.com>
8710 * break-catch-throw.c (compute_exception): New function.
8711 (exception_funcs): New global.
8712 (_initialize_break_catch_throw): Create $_exception.
8713 * cp-abi.c (cplus_type_from_type_info): New function.
8714 * cp-abi.h (cplus_type_from_type_info): Declare.
8715 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8716 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8717 (gnuv3_get_type_from_type_info): New functions.
8718 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8720 2013-04-15 Tom Tromey <tromey@redhat.com>
8722 * break-catch-throw.c (struct exception_names): New.
8723 (exception_functions): Change type.
8724 (re_set_exception_catchpoint): Look for SDT probes.
8726 2013-04-15 Tom Tromey <tromey@redhat.com>
8729 * break-catch-throw.c (exception_functions): New global.
8730 (gnu_v3_exception_catchpoint_ops): Move earlier.
8731 (struct exception_catchpoint): New.
8732 (classify_exception_breakpoint): Rewrite.
8733 (re_set_exception_catchpoint): New function.
8734 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8735 Allocate a struct exception_catchpoint.
8736 (catch_exception_command_1): Update.
8737 (initialize_throw_catchpoint_ops): Set 're_set' method.
8739 2013-04-15 Tom Tromey <tromey@redhat.com>
8741 * Makefile.in (SFILES): Add break-catch-throw.c
8742 (COMMON_OBS): Add break-catch-throw.o.
8743 * break-catch-throw.c: New file.
8744 * breakpoint.c: Move exception-catching code to new file.
8745 (ep_parse_optional_if_clause): No longer static.
8746 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8748 2013-04-15 Tom Tromey <tromey@redhat.com>
8752 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8753 * c-exp.y (TYPEID): New token.
8754 (exp): Add new TYPEID productions.
8755 (ident_tokens): Add "typeid".
8756 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8757 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8758 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8759 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8760 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8762 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8763 (build_std_type_info_type, gnuv3_get_typeid_type)
8764 (gnuv3_get_typeid): New functions.
8765 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8766 new fields on ABI object.
8767 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8768 * std-operator.def (OP_TYPEID): New.
8770 2013-04-15 Tom Tromey <tromey@redhat.com>
8772 * elfread.c (elf_symtab_read): Install versioned symbol under
8773 unversioned name as well.
8775 2013-04-15 Tom Tromey <tromey@redhat.com>
8778 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8779 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8780 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8781 (gdb_demangle): New function.
8782 * cp-support.h (gdb_demangle): Declare.
8783 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8784 (dwarf2_name): Use gdb_demangle.
8785 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8786 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8788 (gnuv3_print_method_ptr): Use gdb_demangle.
8789 * jv-lang.c (java_demangle): Use gdb_demangle.
8790 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8791 * language.c (unk_lang_demangle): Use gdb_demangle.
8792 * symtab.c (symbol_find_demangled_name)
8793 (demangle_for_lookup): Use gdb_demangle.
8795 2013-04-15 Tom Tromey <tromey@redhat.com>
8799 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8801 (classify_exception_breakpoint): New function.
8802 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8803 (print_mention_exception_catchpoint)
8804 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8805 (catch_exception_command_1): Handle "rethrow" catchpoint.
8806 (catch_rethrow_command): New function.
8807 (_initialize_breakpoint): Add "catch rethrow" command.
8809 2013-04-15 Pierre Muller <muller@sourceware.org>
8811 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8812 set_gdbarch_write_pc as deprecated anymore.
8814 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8816 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8819 2013-04-13 Yao Qi <yao@codesourcery.com>
8821 * ctf.c (_initialize_ctf): Include "completer.h".
8822 Call add_target_with_completer instead of add_target.
8824 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8826 Fix GDB regression related to PR binutils/14813.
8827 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8828 * minidebug.c (lzma_close): Add return value comment.
8829 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8830 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8831 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8833 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8835 * config.in: Regenerate.
8837 2013-04-12 Tom Tromey <tromey@redhat.com>
8839 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8841 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8842 (struct die_reader_specs) <buffer>: Likewise.
8843 (die_reader_func_ftype): Make 'info_ptr' const.
8844 (struct line_header) <include_dirs, statement_program_start,
8845 statement_program_end>: Now const.
8846 (struct file_entry) <name>: Likewise.
8847 (struct partial_die_info) <sibling>: Likewise.
8848 (struct dwarf_block) <data>: Likewise.
8849 (dwarf2_read_section): Remove cast.
8850 (dwarf2_get_section_info): Make 'bufp' const.
8851 (read_index_from_section): Constify.
8852 (dw2_get_file_names_reader): Make 'info_ptr' const.
8853 (dw2_get_primary_filename_reader): Likewise.
8854 (read_comp_unit_head): Make 'info_ptr' and return type const.
8855 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8857 (read_abbrev_offset): Constify.
8858 (dwarf2_create_include_psymtab): Make 'name' const.
8859 (create_debug_types_hash_table): Update.
8860 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8861 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8863 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8864 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8865 (read_comp_units_from_section): Constify.
8866 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8867 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8869 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8870 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8871 (create_dwp_hash_table, dwarf2_ranges_read)
8872 (dwarf2_record_block_ranges): Constify.
8873 (read_die_and_children, read_die_and_siblings_1)
8874 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8876 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8877 (abbrev_table_read_table): Constify.
8878 (load_partial_dies): Make 'info_ptr' const.
8879 (read_partial_die, read_attribute_value, read_attribute): Make
8880 'info_ptr' and return type const.
8881 (read_address, read_initial_length)
8882 (read_checked_initial_length_and_offset, read_offset)
8883 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8885 (read_direct_string): Make 'buf' and return type const.
8886 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8887 (read_indirect_string): Make return type const.
8888 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8889 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8891 (read_str_index): Make return type const.
8892 (add_include_dir): Make 'include_dir' const.
8893 (add_file_name): Make 'name' const.
8894 (dwarf_decode_line_header): Constify.
8895 (psymtab_include_file_name): Make return type const.
8896 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8897 (dwarf2_start_subfile): Make 'filename' const.
8898 (dwarf2_const_value_attr): Make 'bytes' const.
8899 (read_signatured_type_reader): Make 'info_ptr' const.
8900 (decode_locdesc): Constify.
8901 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8903 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8904 'mac_end', and return type const.
8905 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8906 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8908 (per_cu_header_read_in): Constify.
8909 * symfile.h (dwarf2_get_section_info): Update.
8911 2013-04-12 Tom Tromey <tromey@redhat.com>
8913 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8915 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8917 * NEWS: Mention "show configuration", --configuration.
8918 * top.c (print_gdb_configuration): New function, displays the
8919 details about GDB configure-time parameters.
8920 (print_gdb_version): Mention "show configuration".
8921 * cli/cli-cmds.c (show_configuration): New function.
8922 (_initialize_cli_cmds): Add the "show configuration" command.
8923 * main.c (captured_main) <print_configuration>: New static var.
8924 <long_options>: Use it.
8925 If --configuration was given, call print_gdb_configuration.
8927 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8928 Pedro Alves <palves@redhat.com>
8930 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8931 (generated_files): Add gcore.
8932 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8933 HAVE_NATIVE_GCORE_HOST.
8935 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8936 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8937 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8938 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8939 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8940 Add HAVE_NATIVE_GCORE_HOST.
8941 * configure: Regenerate.
8942 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8943 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8944 AC_CONFIG_FILES for gcore.
8945 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8947 * gdb_gcore.sh: Rename to ...
8948 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8949 and GCORE_TRANSFORM_NAME substitutions.
8951 Fix parsing tabs in ${gdb_target_obs}.
8952 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8954 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8956 * remote.c (unpush_and_perror): Add output message final dot.
8958 2013-04-11 Yao Qi <yao@codesourcery.com>
8960 * tracepoint.c (tfile_interp_line): Fit parameters line and
8963 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8965 * solib.c (solib_map_sections): Remove code overwriting
8966 SO->SO_NAME with the bfd's filename.
8968 2013-04-10 Pedro Alves <palves@redhat.com>
8970 * cli/cli-decode.c (integer_unlimited_completer): New function.
8971 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8972 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8974 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8975 (is_unlimited_literal): New function.
8976 (do_set_command): Handle literal "unlimited" arguments.
8977 * frame.c (_initialize_frame) <set backtrace limit>: Document
8979 * printcmd.c (_initialize_printcmd) <set print
8980 max-symbolic-offset>: Add help text.
8981 * record-full.c (_initialize_record_full) <set record full
8982 insn-number-max>: Likewise.
8983 * record.c (_initialize_record) <set record
8984 instruction-history-size, set record function-call-history-size>:
8986 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8988 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8990 * source.c (_initialize_source) <set listsize>: Add help text.
8991 * utils.c (initialize_utils) <set height, set width>: Likewise.
8992 <set pagination>: Mention "set height unlimited".
8993 * valprint.c (_initialize_valprint) <set print elements, set print
8994 repeats>: Document "unlimited".
8996 2013-04-10 Pedro Alves <palves@redhat.com>
8998 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8999 instead of disconnect_tracing.
9000 * infcmd.c (detach_command, disconnect_command): Call
9001 query_if_trace_running. Adjust.
9002 * top.c: Include "tracepoint.h".
9003 (quit_target): Delete. Contents moved ...
9004 (quit_force): ... here. Wrap each stage of teardown in
9005 TRY_CATCH. Call disconnect_tracing before detaching.
9007 2013-04-10 Hui Zhu <hui@codesourcery.com>
9008 Yao Qi <yao@codesourcery.com>
9010 * configure.ac: Check libbabeltrace is installed.
9011 * config.in: Regenerate.
9012 * configure: Regenerate.
9013 * Makefile.in (LIBBABELTRACE): New.
9014 (CLIBS): Add LIBBABELTRACE.
9015 * ctf.c: Include "exec.h".
9016 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9017 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9018 (ctf_save_metadata_header): Define new type aliases in
9020 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9021 in metadata. Start a new faked packet for trace status.
9022 (ctf_write_status): Write trace status to CTF.
9023 (ctf_write_uploaded_tsv): Write TSV to CTF.
9024 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9025 (ctf_write_definition_end): End the faked packet.
9027 (ctx, ctf_iter, trace_dirname): New.
9028 (start_pos): New variable.
9029 (ctf_destroy, ctf_open_dir, ctf_open): New.
9030 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9032 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9033 (ctf_fetch_registers, ctf_xfer_partial): New.
9034 (ctf_get_trace_state_variable_value): New.
9035 (ctf_get_tpnum_from_frame_event): New.
9036 (ctf_get_traceframe_address): New.
9037 (ctf_trace_find, ctf_has_stack): New.
9038 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9039 (ctf_get_trace_status, ctf_read_status): New.
9040 (_initialize_ctf): New.
9041 * tracepoint.c (get_tracepoint_number): New
9042 (get_uploaded_tsv): Remove 'static'.
9043 (struct traceframe_info, trace_regblock_size): Move it to ...
9044 * tracepoint.h: ... here.
9045 (get_tracepoint_number): Declare it.
9046 (get_uploaded_tsv): Declare it.
9048 * NEWS: Mention new configure option.
9050 2013-04-10 Pedro Alves <palves@redhat.com>
9051 Hui Zhu <hui@codesourcery.com>
9053 * breakpoint.c (dprintf_re_set): New.
9054 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9057 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9059 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9060 Remove solib-svr4.o from the list.
9062 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9064 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9065 Use gdb_assert_not_reached instead of invalid boolean expression.
9067 2013-04-09 Pedro Alves <palves@redhat.com>
9069 * remote.c (unpush_and_perror): New function.
9070 (readchar, remote_serial_write): Use it.
9072 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9074 * NEWS: Mention new btrace RSP packets.
9076 2013-04-08 Tom Tromey <tromey@redhat.com>
9078 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9081 2013-04-08 Tom Tromey <tromey@redhat.com>
9083 * maint.c (print_bfd_section_info): Print the section index.
9084 * symmisc.c (dump_msymbols): Print the section index.
9086 2013-04-08 Tom Tromey <tromey@redhat.com>
9089 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9090 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9091 * breakpoint.c (resolve_sal_pc): Update.
9092 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9093 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9094 (minsym_lookup_iterator_cb): Use it.
9095 (default_read_var_value): Update.
9096 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9098 * infcmd.c (jump_command): Update.
9099 * linespec.c (minsym_found): Update.
9100 * maint.c (maintenance_translate_address): Update.
9101 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9102 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9103 * parse.c (write_exp_msymbol): Update.
9104 * printcmd.c (address_info): Update.
9105 * psymtab.c (find_pc_sect_psymbol): Update.
9106 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9108 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9109 Don't initialize SYMBOL_OBJ_SECTION.
9110 * spu-tdep.c (spu_catch_start): Update.
9111 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9112 * symmisc.c (dump_msymbols, print_symbol): Update.
9113 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9114 how fallback section is computed.
9115 (fixup_symbol_section): Update.
9116 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9118 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9119 Initialize SYMBOL_SECTION.
9120 * symtab.h (struct general_symbol_info) <section>: Update comment.
9121 <obj_section>: Remove.
9122 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9123 (SYMBOL_OBJFILE): New macro.
9125 2013-04-08 Tom Tromey <tromey@redhat.com>
9127 * coffread.c (record_minimal_symbol): Update.
9128 * dbxread.c (record_minimal_symbol): Update.
9129 * elfread.c (record_minimal_symbol): Update.
9130 * machoread.c (macho_symtab_add_minsym): Update.
9131 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9133 * minsyms.c (prim_record_minimal_symbol): Update.
9134 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9136 (prim_record_minimal_symbol_and_info): Likewise.
9137 * minsyms.h (prim_record_minimal_symbol_full)
9138 (prim_record_minimal_symbol_and_info): Update.
9139 * symtab.c (allocate_symbol, initialize_symbol)
9140 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9141 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9144 2013-04-08 Tom Tromey <tromey@redhat.com>
9147 * solib-som.c (som_solib_section_offsets): Use BFD section
9148 indices. Set offsets for all sections.
9149 * somread.c (som_symtab_read): Compute BFD section for
9150 symbol. Use prim_record_minimal_symbol_and_info.
9151 (som_symfile_read): Fix comment.
9152 (struct find_section_offset_arg): New.
9153 (find_section_offset, set_section_index): New functions.
9154 (som_symfile_offsets): Use set_section_index to compute
9157 2013-04-08 Tom Tromey <tromey@redhat.com>
9159 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9160 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9161 gdb_bfd_section_index.
9162 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9164 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9166 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9168 * objfiles.c (add_to_objfile_sections_full): New function.
9169 (add_to_objfile_sections): Use it.
9170 (build_section_table): Rewrite.
9171 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9172 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9173 (struct objfile) <sections>: Update comment.
9174 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9176 (ALL_OBJSECTIONS): Use it.
9177 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9178 * solib-frv.c (frv_relocate_main_executable): Update.
9179 * solib-target.c (solib_target_relocate_section_addresses):
9180 Use gdb_bfd_section_index.
9181 * symfile.c (build_section_addr_info_from_section_table):
9182 Use gdb_bfd_section_index.
9183 (build_section_addr_info_from_bfd, place_section): Likewise.
9184 * symtab.c (fixup_section): Update.
9185 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9187 2013-04-08 Tom Tromey <tromey@redhat.com>
9189 * minsyms.h (struct bound_minimal_symbol): New.
9190 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9191 Remove objfile argument.
9192 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9193 Return bound_minimal_symbol.
9194 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9195 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9196 Return bound_minimal_symbol.
9197 (in_gnu_ifunc_stub): Update.
9198 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9199 Remove 'objfile_p' argument.
9200 (lookup_solib_trampoline_symbol_by_pc): Update.
9201 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9202 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9203 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9204 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9205 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9206 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9207 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9208 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9209 stack.c, symtab.c, tui/tui-disasm.c: Update.
9211 2013-04-08 Tom Tromey <tromey@redhat.com>
9213 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9214 Use symbol's obstack, not an objfile.
9215 * coffread.c (process_coff_symbol): Update.
9216 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9217 * jv-lang.c (add_class_symbol): Update.
9218 * mdebugread.c (new_symbol): Update.
9219 * minsyms.c (prim_record_minimal_symbol_full)
9220 (terminate_minimal_symbol_table): Update.
9221 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9222 * stabsread.c (define_symbol, read_enum_type): Update.
9223 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9224 Handle Ada specially.
9225 (symbol_set_language): Add 'obstack' argument.
9226 (symbol_set_names): Update.
9227 (symbol_natural_name, symbol_demangled_name): Always use
9229 * symtab.h (struct general_symbol_info)
9230 <language_specific::obstack>: New field.
9231 <ada_mangled>: New field.
9232 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9233 (symbol_set_language): Update.
9235 2013-04-08 Tom Tromey <tromey@redhat.com>
9237 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9238 Take an obstack, not an objfile.
9239 (symbol_set_names): Update.
9240 * symtab.h (symbol_set_demangled_name): Update.
9242 2013-04-08 Tom Tromey <tromey@redhat.com>
9244 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9246 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9247 (read_func_scope): Call allocate_template_symbol.
9248 (new_symbol_full): Call allocate_symbol.
9249 * jit.c (finalize_symtab): Call allocate_symbol.
9250 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9251 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9252 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9253 (common_block_end): Call allocate_symbol.
9254 * symtab.c (allocate_symbol, initialize_symbol)
9255 (allocate_template_symbol): New functions.
9256 * symtab.c (allocate_symbol, initialize_symbol)
9257 (allocate_template_symbol): Declare.
9258 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9260 2013-04-08 Pedro Alves <palves@redhat.com>
9261 Keith Seitz <keiths@redhat.com>
9263 * breakpoint.c (create_breakpoint): Rename
9264 "parse_condition_and_thread" parameter to "parse_arg". Update
9265 describing comment. If !PARSE_ARG, then error out if ARG is not
9266 the empty string after extracting the location.
9267 * breakpoint.h (create_breakpoint): Rename
9268 "parse_condition_and_thread" parameter to "parse_arg".
9270 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9272 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9274 2013-04-07 Yao Qi <yao@codesourcery.com>
9276 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9277 and 'addr2' to CORE_ADDR.
9278 * target.c (update_current_target): Update.
9279 * target.h (struct target_ops) <to_trace_find>: Change parameter
9281 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9282 'addr2' to CORE_ADDR.
9283 (tfile_trace_find): Likewise.
9284 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9285 Change local variable 'addr' to type CORE_ADDR.
9286 * tracepoint.h (tfind_1): Update declaration.
9288 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9290 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9291 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9294 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9296 * main.h (windows_get_absolute_argv0): ...to here.
9298 2013-04-05 Doug Evans <dje@google.com>
9300 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9301 (read_cutu_die_from_dwo): Add comments.
9302 (read_structure_type): Update comment.
9303 (read_enumeration_type, read_namespace_type): Update comment.
9304 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9306 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9308 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9309 * Makefile.in (gdb.z): Remove.
9310 (install-only): Remove $(man1dir) and gdb.1 installation.
9313 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9315 Fix compatibility with Linux kernel 3.8.3.
9316 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9317 to more inner block. Remove parsing of NUMBER from outer block.
9318 Parse NUMBER only if KEYWORD has been identified.
9320 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9322 Fix variable name shadowing.
9323 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9324 filename to mapsfilename and update its uses.
9326 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9328 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9329 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9330 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9331 details of the problem.
9333 2013-04-04 Pedro Alves <palves@redhat.com>
9334 Hui Zhu <hui@codesourcery.com>
9336 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9337 tracepoint, reset its STEP_COUNT and call validate_actionline.
9339 2013-04-03 Doug Evans <dje@google.com>
9341 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9342 read_die_and_siblings.
9343 (read_die_and_siblings): New function.
9344 (read_cutu_die_from_dwo): Dump die if requested.
9345 (read_die_and_children): Call read_full_die_1 and
9346 read_die_and_siblings_1.
9347 (read_full_die): Dump die if requested.
9349 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9351 * dwarf2read.c (struct dwo_file): New member comp_dir.
9352 Rename member name to dwo_name. All uses updated.
9353 (hash_dwo_file): Include comp_dir in computation.
9354 (eq_dwo_file): Ditto.
9355 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9356 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9358 * psymtab.c (read_psymtabs_with_fullname): Don't call
9359 psymtab_to_fullname if the basenames are different.
9361 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9363 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9364 New entry about "fullname" presence.
9366 2013-04-03 Pedro Alves <palves@redhat.com>
9368 * NEWS: Mention x86_64/Cygwin as new native configuration.
9370 2013-04-02 Doug Evans <dje@google.com>
9372 * dwarf2read.c (read_structure_type): Fix typo in comment.
9374 2013-04-02 Pedro Alves <palves@redhat.com>
9376 * NEWS: Mention "set/show debug aarch64", "set/show debug
9377 coff-pe-read" and "set/show debug mach-o".
9379 2013-04-02 Pedro Alves <palves@redhat.com>
9381 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9383 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9385 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9386 gdb_string.h is now in common/.
9388 2013-04-02 Pedro Alves <palves@redhat.com>
9390 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9391 under "New options".
9393 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9397 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9399 2013-04-02 Pedro Alves <palves@redhat.com>
9403 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9404 (remote_serial_write): New function.
9405 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9407 2013-04-01 Jiong Wang <jiwang@tilera.com>
9409 * NEWS: Mention TILE-Gx in "New native configurations" and
9410 "New targets" sections.
9412 2013-04-01 Doug Evans <dje@google.com>
9414 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9415 (process_enumeration_scope): Simplify.
9417 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9419 (struct signatured_type): ... to here.
9420 (sig_type_ptr): New typedef.
9421 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9422 out of union 't'. All uses updated.
9423 (dw2_get_file_names_reader): Assert not called for a type unit.
9424 (dw2_get_file_names): Assert not called for a type unit or type
9426 (build_type_psymtabs_reader): Assert called for a type unit.
9427 (build_type_psymtab_dependencies): Assert called for a type unit group.
9429 * dwarf2read.c (free_dwo_file): Add comment.
9430 (dwarf2_per_objfile_free): Unref dwp bfd.
9432 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9434 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9435 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9436 (read_pe_exported_syms): Remove unused 'exportix'.
9437 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9438 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9439 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9441 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9443 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9444 (print_it_watchpoint): Remove unused 'bl'.
9445 (say_where): Remove unused 'uiout'.
9446 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9447 (bkpt_breakpoint_hit): Remove unused 'b'.
9448 (internal_bkpt_print_it): Remove unused 'uiout'.
9449 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9451 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9454 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9456 2013-03-29 Doug Evans <dje@google.com>
9458 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9459 Delete arg is_dwp. All callers updated.
9460 (open_dwp_file): New function.
9461 (open_and_init_dwp_file): Call it.
9462 (get_dwp_file): New function.
9463 (lookup_dwo_cutu): Call it.
9465 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9466 unnecessary, cleanup.
9468 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9470 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9471 (lookup_dwo_unit): New function.
9472 (init_cutu_and_read_dies): Move DWO handling to new functions.
9474 * dwarf2read.c (struct signatured_type): Tweak comment.
9475 (struct dwo_unit): Tweak comment.
9476 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9477 (create_dwo_debug_info_hash_table): Tweak comment.
9478 (dwarf2_per_cu_offset_and_type): Tweak comment.
9480 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9481 missing .debug_types section.
9483 2013-03-29 Yao Qi <yao@codesourcery.com>
9485 * corelow.c: Include "completer.h".
9486 (_initialize_corelow): Call add_target_with_completer with
9487 argument 'filename_completer'.
9488 * tracepoint.c: Likewise.
9489 * exec.c (_initialize_exec): Likewise.
9490 * target.c (add_target): Rename to ...
9491 (add_target_with_completer): ... this. Call set_cmd_completer
9492 if parameter completer is not NULL.
9494 * target.h: Include "command.h".
9495 (add_target_with_completer): Declare it.
9497 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9499 * coffread.c (is_import_fixup_symbol): New function.
9500 (record_minimal_symbol): Use is_import_fixup_symbol to
9501 detect import fixup symbols, and discard them.
9503 2013-03-28 Doug Evans <dje@google.com>
9505 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9506 types hash table until we know we need it.
9508 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9511 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9512 All callers updated.
9513 (dw2_print_stats): Print #read CUs too.
9514 (dump_die_shallow): Print signatured types better.
9516 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9517 info_or_types_section to section. All uses updated.
9518 (struct dwo_unit): Ditto.
9520 2013-03-28 Pedro Alves <palves@redhat.com>
9522 * NEWS (New options): New section.
9523 (New options): Mention set/show remote trace-status-packet.
9524 * remote.c (PACKET_qTStatus): New enumeration value.
9525 (remote_get_trace_status): Skip sending qTStatus if the packet is
9526 disabled. Use packet_ok.
9527 (_initialize_remote): Register a configuration command for
9530 2013-03-28 Doug Evans <dje@google.com>
9532 * symfile.c (find_separate_debug_file): Add comment.
9533 (terminate_after_last_dir_separator): Tweak comment.
9535 * dwarf2read.c (create_partial_symtab): Add forward decl.
9536 (create_partial_symtab): Move to be closer to other psymtab functions.
9537 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9539 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9540 (compute_symtab_includes): Remove unnecessary forward declaration.
9541 (die_needs_namespace): Add comment marking group of functions for
9542 dwarf2 name computation.
9544 * typeprint.c (_initialize_typeprint): Improve type help text.
9546 * python/python.c (finish_python_initialization): Provide suggestion
9547 for how to tell gdb to find its python files.
9549 2013-03-28 Pedro Alves <palves@redhat.com>
9553 * source.c (_initialize_source): Change back "set listsize" to an
9556 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9559 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9561 2013-03-27 Pedro Alves <palves@redhat.com>
9563 * top.c (history_size): Rename to ...
9564 (history_size_setshow_var): ... this. Add comment.
9565 (show_commands): Use readline's 'history_length' instead of
9566 computing the history length by calling history_get in a loop.
9567 (set_history_size_command): Error out for sizes over INT_MAX.
9568 Restore previous history size on invalid size.
9569 (init_history): If HISTSIZE is negative, leave the history size as
9571 (init_main): Adjust.
9573 2013-03-27 Pedro Alves <palves@redhat.com>
9575 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9576 coff_pe_read" command to "set debug coff-pe-read".
9578 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9580 * record.c (command_size_to_target_size): Fix size comparison.
9581 Change parameter type from pointer to integer to integer.
9584 2013-03-27 Pierre Muller <muller@sourceware.org>
9586 * windows-nat.c (handle_output_debug_string): Avoid typecast
9587 from integer of different size warning.
9589 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9591 * windows-nat.c (handle_output_debug_string): Add empty line
9592 after local block variable definition.
9594 2013-03-26 Pedro Alves <palves@redhat.com>
9596 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9597 (net_open): Make 'polls' local unsigned.
9599 2013-03-26 Pedro Alves <palves@redhat.com>
9601 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9602 a zuinteger command instead of uinteger.
9604 2013-03-26 Pedro Alves <palves@redhat.com>
9606 * record-full.c (record_full_insn_num): Make it unsigned.
9607 (record_full_check_insn_num, record_full_message)
9608 (record_full_registers_change, record_full_xfer_partial): Remove
9609 record_full_insn_max_num check (it's always != 0).
9610 (record_full_info, record_full_restore): Use %u as format string.
9611 (): Use %u as format string.
9612 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9613 check (it's always != 0).
9615 2013-03-26 Pedro Alves <palves@redhat.com>
9617 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9618 and "set dcache size" commands zuinteger instead of uinteger.
9620 2013-03-26 Pedro Alves <palves@redhat.com>
9622 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9623 command zuinteger instead of uinteger.
9625 2013-03-26 Pedro Alves <palves@redhat.com>
9627 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9628 zuinteger instead of uinteger.
9630 2013-03-26 Pedro Alves <palves@redhat.com>
9632 * record.c (record_insn_history_size_setshow_var)
9633 (record_call_history_size_setshow_var): New globals.
9634 (command_size_to_target_size): New function.
9635 (cmd_record_insn_history, cmd_record_call_history): Use
9636 command_size_to_target_size instead of cast.
9637 (validate_history_size, set_record_insn_history_size)
9638 (set_record_call_history_size): New functions.
9639 (_initialize_record): Install set_record_insn_history_size and
9640 set_record_call_history_size as "set" hooks of "set record
9641 instruction-history-size" and "set record
9642 function-call-history-size".
9644 2013-03-26 Pedro Alves <palves@redhat.com>
9646 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9647 use with history_max_entries use. Remove FIXME note.
9649 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9651 * record-btrace.c (record_btrace_close): Call
9652 record_btrace_auto_disable.
9654 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9656 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9658 2013-03-25 Doug Evans <dje@google.com>
9660 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9662 2013-03-25 Tom Tromey <tromey@redhat.com>
9665 * c-exp.y (exp): Add new productions for destructors after '.' and
9667 (write_destructor_name): New function.
9669 2013-03-25 Tom Tromey <tromey@redhat.com>
9672 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9673 value_struct_elt, not lookup_struct_elt_type.
9674 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9675 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9676 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9678 2013-03-25 Yao Qi <yao@codesourcery.com>
9680 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9681 instead of '_mkdir'.
9683 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9685 * windows-nat.c (windows_get_absolute_argv0): New function.
9686 * windows-nat.h: Add its prototype.
9688 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9689 Use IS_DIR_SEPARATOR instead of looking for a character inside
9690 SLASH_STRING. Include filenames.h.
9691 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9692 relocate_gdb_directory works when passed gdb_program_name.
9693 Include windows-nat.h.
9695 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9697 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9698 * remote.c (trace_error): Remove the special handling of '2'.
9699 (readchar) <SERIAL_EOF>
9700 (readchar) <SERIAL_ERROR>
9701 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9702 (remote_get_trace_status): Call throw_exception if EX is
9704 * utils.c (perror_with_name): Rename to ...
9705 (throw_perror_with_name): ... here. New parameter errcode, describe it
9706 in the function comment.
9707 (perror_with_name): New function wrapper.
9708 * utils.h (enum errors): New stub declaration.
9709 (throw_perror_with_name): New declaration.
9711 2013-03-22 Pedro Alves <palves@redhat.com>
9712 Yao Qi <yao@codesourcery.com>
9713 Mark Kettenis <kettenis@gnu.org>
9715 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9716 Don't let the user set the value to UINT_MAX directly.
9717 <var_integer>: Don't let the user set the value to INT_MAX
9720 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9722 * remote.c (remote_unpush_target): New function.
9723 (remote_open_1): Remove two pop_target calls, update one comment, add
9724 comment to target_preopen call. Replace pop_target call by
9725 remote_unpush_target call.
9726 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9727 pop_target calls by remote_unpush_target calls.
9729 2013-03-22 Pedro Alves <palves@redhat.com>
9731 * linux-nat.c (linux_child_follow_fork): Don't call
9732 linux_enable_event_reporting.
9733 (linux_handle_extended_wait): Don't call
9734 linux_enable_event_reporting.
9736 2013-03-22 Pedro Alves <palves@redhat.com>
9738 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9739 use it to rewrite the trampoline buffers with type gdb_byte[], and
9740 undefine the macro. Remove char* cast.
9742 2013-03-21 Doug Evans <dje@google.com>
9744 New commands "mt set per-command {space,time,symtab} {on,off}".
9746 * event-top.c: #include "maint.h".
9747 * main.c: #include "maint.h".
9748 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9749 timeval-utils.h, maint.h, cli/cli-setshow.h.
9750 (per_command_time, per_command_space): New static globals.
9751 (per_command_symtab): New static global.
9752 (per_command_setlist, per_command_showlist): New static globals.
9753 (struct cmd_stats): Move here from utils.c.
9754 (set_per_command_time): Renamed from set_display_time in utils.c
9755 and moved here. All callers updated.
9756 (set_per_command_space): Renamed from set_display_space in utils.c
9757 and moved here. All callers updated.
9758 (count_symtabs_and_blocks): New function.
9759 (report_command_stats): Moved here from utils.c. Add support for
9760 printing symtab stats. Only print data if enabled before command
9762 (make_command_stats_cleanup): Ditto.
9763 (sert_per_command_cmd, show_per_command_cmd): New functions.
9764 (_initialize_maint_cmds): Add new commands
9765 mt set per-command {space,time,symtab} {on,off}.
9766 * maint.h: New file.
9767 * top.c: #include "maint.h".
9768 * utils.c (reset_prompt_for_continue_wait_time): New function.
9769 (get_prompt_for_continue_wait_time): New function.
9770 * utils.h (reset_prompt_for_continue_wait_time): Declare
9771 (get_prompt_for_continue_wait_time): Declare.
9772 (make_command_stats_cleanup): Moved to maint.h.
9773 (set_display_time, set_display_space): Moved to maint.h and renamed
9774 to set_per_command_time, set_per_command_space.
9775 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9776 parse_binary_operation and made non-static. Don't call error,
9777 just return an error marker. All callers updated.
9778 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9780 2013-03-21 Tom Tromey <tromey@redhat.com>
9782 * symfile.c (alloc_section_addr_info): Update header. Don't set
9783 'num_sections' field.
9784 (build_section_addr_info_from_section_table): Set 'num_sections'.
9785 (build_section_addr_info_from_bfd): Likewise.
9786 (build_section_addr_info_from_objfile): Remove dead loop
9788 (free_section_addr_info): Unconditionally call xfree.
9789 (relative_addr_info_to_section_offsets, addrs_section_sort)
9790 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9792 (syms_from_objfile_1): Remove dead 'if' condition. Check
9794 (add_symbol_file_command): Set 'num_sections'.
9795 * symfile-mem.c (symbol_file_add_from_memory): Set
9797 * somread.c (som_symfile_offsets): Remove dead loop condition.
9798 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9799 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9801 2013-03-21 Tom Tromey <tromey@redhat.com>
9803 * tracepoint.h (decode_agent_options): Add 'trace_string'
9805 * tracepoint.c (decode_agent_options): Add 'trace_string'
9807 (validate_actionline): Update.
9808 (collect_symbol): Add 'trace_string' argument.
9809 (struct add_local_symbols_data) <trace_string>: New field.
9810 (do_collect_symbol): Update.
9811 (add_local_symbols): Add 'trace_string' argument.
9812 (encode_actions_1): Update.
9813 (trace_dump_actions): Update.
9814 * dwarf2loc.c (access_memory): Update.
9815 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9816 * ax-general.c (new_agent_expr): Update.
9817 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9818 (gen_trace_for_return_address): Add argument.
9819 (trace_kludge, trace_string_kludge): Remove.
9820 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9821 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9822 (gen_trace_for_var): Add 'trace_string' argument.
9823 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9824 (gen_printf, agent_eval_command_one): Update.
9826 2013-03-21 Tom Tromey <tromey@redhat.com>
9829 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9830 Handle FILENAME token.
9832 2013-03-21 Tom Tromey <tromey@redhat.com>
9834 * c-exp.y (YYPRINT): Define.
9835 (c_print_token): New function.
9837 2013-03-21 Tom Tromey <tromey@redhat.com>
9839 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9841 2013-03-21 Yao Qi <yao@codesourcery.com>
9843 * ctf.c: Include "gdb_stat.h".
9844 [USE_WIN32API]: New macro 'mkdir'.
9845 (ctf_start): Use permission bits macros if they are defined.
9847 2013-03-20 Keith Seitz <keiths@redhat.com>
9849 * breakpoint.h (struct breakpoint): Add comment to
9850 extra_string indicating that this member is mallod'd.
9851 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9853 2013-03-20 Pedro Alves <palves@redhat.com>
9857 * cli/cli-setshow.c (do_set_command)
9858 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9859 the result of parsing the command argument. Throw error if the
9860 value is greater than UINT_MAX. Print the invalid value with
9862 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9863 result of parsing the command argument. Throw error if the value
9864 is greater than INT_MAX, not greater or equal. Also throw error
9865 if the value is less than INT_MIN. Print the invalid value with
9867 <var_zuinteger_unlimited>: Throw error if the value is greater
9868 than INT_MAX, not greater or equal.
9869 (do_show_command) <var_integer, var_zinteger,
9870 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9872 2013-03-20 Tom Tromey <tromey@redhat.com>
9874 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9876 * dwarf2read.c (read_func_scope): Remove old FIXME.
9877 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9879 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9880 Unconditionally call via computed ops, if possible.
9881 * printcmd.c (address_info): Unconditionally call via computed ops,
9883 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9885 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9886 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9889 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9890 Tom Tromey <tromey@redhat.com>
9893 * coffread.c (coff_register_index): New global.
9894 (process_coff_symbol, coff_read_enum_type): Set
9895 SYMBOL_ACLASS_INDEX.
9896 (_initialize_coffread): Initialize new global.
9897 * dwarf2loc.c (locexpr_find_frame_base_location)
9898 (dwarf2_block_frame_base_locexpr_funcs)
9899 (loclist_find_frame_base_location)
9900 (dwarf2_block_frame_base_loclist_funcs): New.
9901 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9902 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9903 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9904 (dwarf2_block_frame_base_loclist_funcs): New.
9905 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9906 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9908 (read_func_scope): Update.
9909 (fixup_go_packaging, mark_common_block_symbol_computed)
9910 (var_decode_location, new_symbol_full, dwarf2_const_value):
9911 Set SYMBOL_ACLASS_INDEX.
9912 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9913 (_initialize_dwarf2_read): Initialize new globals.
9914 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9915 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9916 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9918 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9919 (_initialize_mdebugread): Initialize new globals.
9920 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9921 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9922 (stab_register_index, stab_regparm_index): New globals.
9923 (define_symbol, read_enum_type, common_block_end): Set
9924 SYMBOL_ACLASS_INDEX.
9925 (_initialize_stabsread): Initialize new globals.
9926 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9928 (MAX_SYMBOL_IMPLS): New define.
9929 (register_symbol_computed_impl, register_symbol_block_impl)
9930 (register_symbol_register_impl)
9931 (initialize_ordinary_address_classes): New functions.
9932 (_initialize_symtab): Call initialize_ordinary_address_classes.
9933 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9934 (struct symbol_impl): New.
9935 (SYMBOL_ACLASS_BITS): New define.
9936 (struct symbol) <aclass, ops>: Remove fields.
9937 <aclass_index>: New field.
9938 (symbol_impls): Declare.
9939 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9940 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9941 (register_symbol_computed_impl, register_symbol_block_impl)
9942 (register_symbol_register_impl): Declare.
9943 (struct symbol_computed_ops): Add location_has_loclist.
9944 (struct symbol_block_ops): New.
9945 (SYMBOL_BLOCK_OPS): New.
9946 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9948 2013-03-20 Tom Tromey <tromey@redhat.com>
9950 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9951 (print_partial_symbols, recursively_search_psymtabs): Use
9954 2013-03-20 Pierre Muller <muller@sourceware.org>
9956 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9957 addtion, subtraction, multiplication and division binary operator.
9959 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9962 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9963 * bsd-kvm.c (bsd_kvm_close): Likewise.
9964 * bsd-uthread.c (bsd_uthread_close): Likewise.
9965 * corelow.c (core_close): Likewise.
9966 (core_close_cleanup): Remove parameter quitting from a caller.
9967 * event-top.c (async_disconnect): Likewise.
9968 * exec.c (exec_close_1): Remove parameter quitting.
9969 * go32-nat.c (go32_close): Likewise.
9970 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9971 parameter quitting from a caller.
9972 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9974 (mips_linux_close): Remove parameter quitting. Remove parameter
9975 quitting from a caller.
9976 * monitor.c (monitor_close): Remove parameter quitting.
9977 * monitor.h (monitor_close): Likewise.
9978 * record-btrace.c (record_btrace_close): Likewise.
9979 * record-full.c (record_full_close): Likewise.
9980 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9981 it also from fprintf_unfiltered.
9982 * remote-mips.c (mips_close): Remove parameter quitting.
9983 (mips_detach): Remove parameter quitting from a caller.
9984 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9985 (gdbsim_close): Remove duplicate function comment. Remove parameter
9986 quitting and remove it also from printf_filtered.
9987 * remote.c (remote_close): Remove parameter quitting.
9988 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9989 * target.c (update_current_target): Remove parameter int from to_close
9991 (push_target, unpush_target, pop_target): Remove parameter quitting from
9993 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9994 Remove parameter quitting from a caller.
9995 (target_preopen): Remove parameter quitting from a caller.
9996 (target_close): Remove parameter quitting. Remove parameter quitting
9997 from a caller two times. Remove parameter quitting also from
9999 * target.h (struct target_ops): Remove parameter quitting and as int
10000 from fields to_xclose and to_close.
10001 (extern struct target_ops current_target):
10002 (target_close, pop_all_targets): Remove parameter quitting. Update the
10004 (pop_all_targets_above): Remove parameter quitting.
10005 * top.c (quit_target): Remove parameter quitting from a caller.
10006 * tracepoint.c (tfile_close): Remove parameter quitting.
10007 * windows-nat.c (windows_close): Remove parameter quitting.
10009 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
10011 * windows-nat.c (handle_output_debug_string): Replace call
10012 to string_to_core_addr with call to strtoull.
10014 2013-03-20 Yao Qi <yao@codesourcery.com>
10016 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10017 and write it to CTF metadata.
10019 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10021 * windows-nat.c (handle_output_debug_string): Change type of n to
10022 SIZE_T to avoid crash on 64 bit systems.
10024 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10026 * python/python-internal.h (HAVE_SNPRINTF)
10027 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10028 about redefinition of snprintf by pyerrors.h.
10030 2013-03-15 Steve Ellcey <sellcey@mips.com>
10032 * remote-sim.c (sim_command_completer): Make char arguments const.
10034 2013-03-15 Tom Tromey <tromey@redhat.com>
10037 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10039 2013-03-14 Tom Tromey <tromey@redhat.com>
10041 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10043 (get_file_crc): Move from symfile.c.
10044 (gdb_bfd_crc): New function.
10045 * gdb_bfd.h (gdb_bfd_crc): Declare.
10046 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10047 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10048 (separate_debug_file_exists): Use gdb_bfd_crc.
10050 2013-03-14 Tom Tromey <tromey@redhat.com>
10052 * symfile.c (get_debug_link_info): Remove.
10053 (find_separate_debug_file_by_debuglink): Use
10054 bfd_get_debug_link_info.
10056 2013-03-14 Tom Tromey <tromey@redhat.com>
10058 * symtab.c (error_in_psymtab_expansion): New function.
10059 (lookup_symbol_aux_quick)
10060 (basic_lookup_transparent_type_quick): Remove "last resort"
10061 code. Use error_in_psymtab_expansion.
10063 2013-03-14 Doug Evans <dje@google.com>
10064 Jan Kratochvil <jan.kratochvil@redhat.com>
10066 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10067 any successful compare_filenames_for_search or FILENAME_CMP.
10068 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10069 * symtab.c (iterate_over_some_symtabs): Likewise.
10071 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10073 * source.c (print_source_lines_base): Make a local copy of
10074 symtab_to_fullname.
10076 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10077 Jan Kratochvil <jan.kratochvil@redhat.com>
10079 * source.c (print_source_lines_base): Suppress "file" for TUI.
10081 2013-03-14 Keith Seitz <keiths@redhat.com>
10082 Alan Matsuoka <alanm@redhat.com>
10086 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10088 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10091 2013-03-14 Yao Qi <yao@codesourcery.com>
10093 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10094 status to tfile if trace is stopped by command 'tstop'.
10096 2013-03-14 Yao Qi <yao@codesourcery.com>
10098 * tracepoint.c (tfile_write_status): Write trace notes and user
10099 name into tfile if they are not NULL.
10101 2013-03-14 Hui Zhu <hui@codesourcery.com>
10102 Yao Qi <yao@codesourcery.com>
10104 * Makefile.in (REMOTE_OBS): Add ctf.o.
10105 (SFILES): Add ctf.c.
10106 (HFILES_NO_SRCDIR): Add ctf.h.
10107 * ctf.c, ctf.h: New files.
10108 * tracepoint.c: Include 'ctf.h'.
10109 (collect_pseudocommand): Remove static.
10110 (trace_save_command): Parse option "-ctf".
10111 Produce different trace file writers per option.
10112 Adjust output message.
10113 (trace_save_tfile, trace_save_ctf): New.
10114 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10115 * mi/mi-main.c: Include 'ctf.h'.
10116 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10117 trace_save_tfile or trace_save_ctf.
10118 * NEWS: Mention these changes.
10120 2013-03-14 Yao Qi <yao@codesourcery.com>
10122 * tracepoint.c (trace_file_writer_xfree): New.
10123 (struct tfile_writer_data): New.
10124 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10125 (tfile_write_header, tfile_write_regblock_type): New.
10126 (tfile_write_status, tfile_write_uploaded_tsv): New.
10127 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10128 (tfile_write_raw_data, (tfile_end): New.
10129 (tfile_write_ops): New global variable.
10130 (TRACE_WRITE_R_BLOCK): New macro.
10131 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10132 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10133 (TRACE_WRITE_V_BLOCK): New macro.
10134 (trace_save): Add extra one parameter WRITER. Make it static.
10135 Use WRITER to writer trace.
10136 (tfile_trace_file_writer_new): New.
10137 (trace_save_command): Caller update.
10138 (trace_save_tfile): Write trace data in TFILE format.
10139 * tracepoint.h (struct trace_frame_write_ops): New.
10140 (struct trace_file_write_ops): New.
10141 (struct trace_file_writer): New.
10142 (trace_save): Remove its declaration.
10143 (trace_save_tfile): Declare it.
10144 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10145 instead of trace_save.
10147 2013-03-13 Pedro Alves <palves@redhat.com>
10149 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10151 2013-03-13 Pedro Alves <palves@redhat.com>
10153 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10154 commented out code.
10155 * demangle.c (current_demangling_style_string): Make it const.
10156 (set_demangling_command): Assert the demangling style is known.
10157 Remove all handling of unknown styles. Set
10158 'current_demangling_style_string' to an element of the
10159 demangling_style_names array.
10160 (set_demangling_style): Delete.
10161 (_initialize_demangler): Set current_demangling_style_string to the
10162 element of the demangling_style_names array that corresponds to
10163 the default demangling style. Remove FIXME note. Don't call
10164 set_demangling_style.
10165 * gdb-demangle.h (set_demangling_style): Remove declaration.
10167 2013-03-13 Pedro Alves <palves@redhat.com>
10169 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10171 (ada_make_symbol_completion_list): Make "text0" parameter const.
10172 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10173 * breakpoint.c (condition_completer): Make "text" and "word"
10174 parameters const. Adjust.
10175 (check_tracepoint_command): Adjust to validate_actionline
10177 (catch_syscall_completer): Make "text" and "word" parameters
10179 * cli/cli-cmds.c (show_user): Make "comname" local const.
10180 (valid_command_p): Make "command" parameter const.
10181 (alias_command): Make "alias_prefix" and "command_prefix" locals
10183 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10184 (add_alias_cmd): Make "name" and "oldname" parameters const.
10185 Adjust. No longer make copy of OLDNAME.
10186 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10187 (add_setshow_cmd_full, add_setshow_enum_cmd)
10188 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10189 (add_setshow_filename_cmd, add_setshow_string_cmd)
10190 (add_setshow_string_noescape_cmd)
10191 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10192 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10193 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10194 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10195 Make "name" parameter const.
10196 (help_cmd): Rename "command" parameter to "arg". New const local
10198 (find_cmd): Make "command" parameter const.
10199 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10200 deprecated_cmd_warning prototype change.
10201 (undef_cmd_error): Make "cmdtype" parameter const.
10202 (lookup_cmd): Make "line" parameter const.
10203 (deprecated_cmd_warning): Change type of "text" parameter to
10204 pointer to const char, from pointer to pointer to char. Adjust.
10205 (lookup_cmd_composition): Make "text" parameter const.
10206 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10208 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10210 * cli/cli-script.c (validate_comname): Make "tem" local const.
10211 (define_command): New const local "tem_c". Use it in calls to
10213 (document_command): Make "tem" and "comfull" locals const.
10214 (show_user_1): Make "prefix" and "name" parameters const.
10215 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10217 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10218 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10219 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10220 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10221 (complete_on_enum, add_setshow_enum_cmd)
10222 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10223 (add_setshow_filename_cmd, add_setshow_string_cmd)
10224 (add_setshow_string_noescape_cmd)
10225 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10226 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10227 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10228 Change prototypes, constifying strings.
10229 * completer.c (noop_completer, filename_completer): Make "text"
10230 and "prefix" parameters const.
10231 (location_completer, expression_completer)
10232 (complete_line_internal): Make "text" and "prefix" parameters
10234 (command_completer, signal_completer): Make "text" and "prefix"
10236 * completer.h (noop_completer, filename_completer)
10237 (expression_completer, location_completer, command_completer)
10238 (signal_completer): Change prototypes.
10239 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10241 * cp-abi.c (cp_abi_completer): Likewise.
10242 * expression.h (parse_expression_for_completion): Change
10244 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10246 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10247 * infrun.c (handle_completer): Make "text" and "word" parameters
10249 * interps.c (interpreter_completer): Make "text" and "word"
10251 * language.h (struct language_defn)
10252 <la_make_symbol_completion_list>: Make "text" and "word"
10254 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10255 (parse_exp_in_context): Rename to ...
10256 (parse_exp_in_context_1): ... this.
10257 (parse_exp_in_context): Reimplement, with const hack from
10259 (parse_expression_for_completion): Make "string" parameter const.
10260 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10261 to pointer to const char. Adjust.
10262 (print_command_1): Make "exp" parameter const.
10263 (output_command): Rename to ...
10264 (output_command_const): ... this. Make "exp" parameter const.
10265 (output_command): Reimplement.
10266 (x_command): Adjust.
10267 (display_command): Rename "exp" parameter to "arg". New "exp"
10268 local, const version of "arg".
10269 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10270 "cmd_name" local const.
10271 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10273 (cmdpy_completer): Make "text" and "word" parameters const.
10274 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10275 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10277 * remote.c (_initialize_remote): Make "cmd_name" local const.
10278 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10279 parameters const. Adjust.
10280 (completion_list_add_fields): Make "sym_text", "text" and "word"
10282 (struct add_name_data) <sym_text, text, word>: Make fields const.
10283 (default_make_symbol_completion_list_break_on): Make "text" and
10284 "word" parameters const. Adjust locals.
10285 (default_make_symbol_completion_list)
10286 (make_symbol_completion_list, make_symbol_completion_type)
10287 (make_symbol_completion_list_fn): Make "text" and "word"
10289 (make_file_symbol_completion_list): Make "text", "word" and
10290 "srcfile" parameters const. Adjust locals.
10291 (add_filename_to_list): Make "text" and "word" parameters const.
10292 (struct add_partial_filename_data) <text, word>: Make fields
10294 (make_source_files_completion_list): Make "text" and "word"
10296 * symtab.h (default_make_symbol_completion_list_break_on)
10297 (default_make_symbol_completion_list, make_symbol_completion_list)
10298 (make_symbol_completion_type enum type_code)
10299 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10300 (make_source_files_completion_list): Change prototype.
10301 * top.c (execute_command): Adjust to pass pointer to pointer to
10302 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10304 (set_verbose): Make "cmdname" local const.
10305 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10307 (validate_actionline): Make "line" parameter a pointer to const
10309 (encode_actions_1): Make "action_exp" local const, and adjust.
10310 (encode_actions): Adjust.
10311 (replace_comma): Delete.
10312 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10313 const, and adjust. Don't frob the action string while splitting
10314 it at commas. Instead, make a copy of each split substring in
10316 (trace_dump_command): Adjust to validate_actionline prototype
10318 * tracepoint.h (decode_agent_options, decode_agent_options)
10319 (encode_actions, validate_actionline): Change prototypes.
10320 * valprint.h (output_command): Delete declaration.
10321 (output_command_const): Declare.
10322 * value.c (function_destroyer): Cast const away in xfree call.
10324 2013-03-13 Pedro Alves <palves@redhat.com>
10326 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10327 rather than casting 'const char * const *' to 'const char **'.
10328 * ada-lex.l (processInt): Make "trailer" local const. Remove
10329 'const char **' cast.
10330 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10331 locals, and use those as strtol output pointer, instead than doing
10332 invalid casts to from 'const char **' to 'char **'.
10333 (_initialize_demangle): Remove cast.
10334 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10335 locals, and use those as strtol output pointer, instead than doing
10336 invalid casts to from 'const char **' to 'char **'.
10337 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10339 * stap-probe.c (stap_parse_register_operand)
10340 (stap_parse_single_operand): Likewise.
10342 2013-03-13 Yao Qi <yao@codesourcery.com>
10344 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10345 the last matched 'V' blcok in trace frame.
10347 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10349 * NEWS: Create a new section for the next release branch.
10350 Rename the section of the current branch, now that it has
10353 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10355 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10356 * version.in: Bump version to 7.6.50.20130312-cvs.
10358 2013-03-12 Keith Seitz <keiths@redhat.com>
10360 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10361 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10362 Remove temporary copy of input string.
10363 (mi_execute_command_wrapper): Make "cmd" const.
10364 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10365 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10367 (mi_parse): Make "cmd" const.
10369 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10371 2013-03-12 Keith Seitz <keiths@redhat.com>
10373 * ada-lang.c (ada_read_renaming_var_value): Pass const
10374 pointer to expression string to parse_exp_1.
10375 (create_excep_cond_exprs): Likewise.
10376 * ax-gdb.c (agent_eval_command_one): Likewise.
10377 (maint_agent_printf_command): Likewise.
10378 Constify much of the string handling/parsing.
10379 * breakpoint.c (set_breakpoint_condition): Pass const
10380 pointer to expression string to parse_exp_1.
10381 (update_watchpoint): Likewise.
10382 (parse_cmd_to_aexpr): Constify string handling.
10383 Pass const pointer to parse_exp_1.
10384 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10385 (find_condition_and_thread): Likewise.
10387 (watch_command_1): Make "arg" const.
10388 Constify string handling.
10389 Copy the expression string instead of changing the input
10391 (update_breakpoint_location): Pass const pointer to
10393 * eval.c (parse_and_eval_address): Make "exp" const.
10394 (parse_to_comma_and_eval): Make "expp" const.
10395 (parse_and_eval): Make "exp" const.
10396 * expression.h (parse_expression): Make argument const.
10397 (parse_exp_1): Make first argument const.
10398 * findcmd.c (parse_find_args): Treat "args" as const.
10399 * linespec.c (parse_linespec): Pass const pointer to
10400 linespec_expression_to_pc.
10401 (linespec_expression_to_pc): Make "exp_ptr" const.
10402 * parse.c (parse_exp_1): Make "stringptr" const.
10403 Make a copy of the expression to pass to parse_exp_in_context until
10404 this whole interface can be constified.
10405 (parse_expression): Make "string" const.
10406 * printcmd.c (ui_printf): Treat "arg" as const.
10407 Handle const strings.
10408 * tracepoint.c (validate_actionline): Pass const pointer to
10409 all calls to parse_exp_1.
10410 (encode_actions_1): Likewise.
10411 * value.h (parse_to_comma_and_eval): Make argument const.
10412 (parse_and_eval_address): Likewise.
10413 (parse_and_eval): Likewise.
10414 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10415 (varobj_set_value): Likewise.
10416 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10417 constify string handling.
10418 Pass const pointers to parse_and_eval_address and
10419 parse_to_comman_and_eval.
10420 * cli/cli-utils.c (skip_to_space): Rename to ...
10421 (skip_to_space_const): ... this. Handle const strings.
10422 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10423 skip_to_space_const.
10424 (skip_to_space_const): Declare.
10425 * common/format.c (parse_format_string): Make "arg" const.
10426 Handle const strings.
10427 * common/format.h (parse_format_string): Make "arg" const.
10428 * gdbserver/ax.c (ax_printf): Make "format" const.
10429 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10430 of the expression string.
10432 2013-03-12 Hui Zhu <hui@codesourcery.com>
10434 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10436 2013-03-12 Yao Qi <yao@codesourcery.com>
10437 Hui Zhu <hui@codesourcery.com>
10439 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10440 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10443 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10445 * ada-lex.l (rules): Only recognize 'thread' as a
10446 delimiter when followed by numerals, as for c-exp.y.
10447 Use new rewind_to_char function to rewind the input for
10448 expression-delimiting tokens.
10449 (rewind_to_char): New function.
10451 2013-03-11 Pedro Alves <palves@redhat.com>
10452 Jan Kratochvil <jan.kratochvil@redhat.com>
10454 * configure: Regenerate.
10455 * configure.ac (check dynamic export flag): Link python test with
10458 2013-03-11 Doug Evans <dje@google.com>
10459 Keith Seitz <keiths@redhat.com>
10461 * linespec.c (find_linespec_symbols): Call find_function_symbols
10462 first, and then call lookup_prefix_sym/find_method.
10464 2013-03-11 Pedro Alves <palves@redhat.com>
10466 * charset.c (convert_between_encodings): Don't cast between
10467 different pointer to pointer types. Instead, make the 'inp' local
10468 be of the type iconv expects.
10469 (wchar_iterate): Don't cast between different pointer to pointer
10470 types. Instead, use new pointer local of the type iconv expects.
10471 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10472 Add new local of type char pointer, and use it to get a
10473 char/string view of the byte buffer, instead of casting between
10474 pointer to pointer types.
10476 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10478 * remote.c (remote_set_trace_buffer_size): Move != operator
10479 to the start of next line to fix an ARI warning.
10481 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10483 * NEWS: Add record changes.
10485 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10487 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10488 the instruction history disassembly.
10489 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10490 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10492 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10494 * Makefile.in (SFILES): Add record-btrace.c
10495 (COMMON_OBS): Add record-btrace.o
10496 * record-btrace.c: New.
10497 * objfiles.c: Include btrace.h.
10498 (free_objfile): call btrace_free_objfile.
10500 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10502 * target.c (target_call_history, target_call_history_from,
10503 target_call_history_range): New.
10504 * target.h (target_ops) <to_call_history, to_call_history_from,
10505 to_call_history_range>: New fields.
10506 (target_call_history, target_call_history_from,
10507 target_call_history_range): New declaration.
10508 * record.c (get_call_history_modifiers, cmd_record_call_history,
10509 record_call_history_size): New.
10510 (_initialize_record): Add the "record function-call-history" command.
10511 Add "set/show record function-call-history-size" commands.
10512 * record.h (record_print_flag): New.
10514 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10516 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10517 to_insn_history_range>: New fields.
10518 (target_insn_history): New.
10519 (target_insn_history_from): New.
10520 (target_insn_history_range): New.
10521 * target.c (target_insn_history): New.
10522 (target_insn_history_from): New.
10523 (target_insn_history_range): New.
10524 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10525 (record_insn_history_size): New.
10526 (get_insn_number): New.
10527 (get_context_size): New.
10529 (get_insn_history_modifiers): New.
10530 (cmd_record_insn_history): New.
10531 (_initialize_record): Add "set/show record instruction-history-size"
10532 command. Add "record instruction-history" command.
10534 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10536 * record.h (record_disconnect): New.
10537 (record_detach): New.
10538 (record_mourn_inferior): New.
10539 (record_kill): New.
10540 * record-full.c (record_disconnect, record_detach,
10541 record_mourn_inferior, record_kill): Move to...
10542 * record.c: ...here.
10544 (record_stop): New.
10545 (record_unpush): New.
10546 (cmd_record_stop): Call record_stop. Replace unpush_target
10547 call with record_unpush call.
10548 (record_disconnect, record_detach): Assert that the target
10549 is of record stratum. Call record_unpush, record_stop, and
10551 (record_mourn_inferior, record_kill): Assert that the target
10552 is of record stratum. Call record_unpush and DEBUG.
10554 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10556 * record-full.h, record-full.c (record_memory_query): Rename
10558 (record_full_memory_query): ...this. Update all users.
10559 (record_arch_list_add_reg): Rename to ...
10560 (record_full_arch_list_add_reg): ...this. Update all users.
10561 (record_arch_list_add_mem): Rename to ...
10562 (record_full_arch_list_add_mem): ...this. Update all users.
10563 (record_arch_list_add_end): Rename to ...
10564 (record_full_arch_list_add_end): ...this. Update all users.
10565 (record_gdb_operation_disable_set): Rename to ...
10566 (record_full_gdb_operation_disable_set): ...this.
10569 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10571 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10572 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10573 (RECORD_IS_REPLAY): Renamed to ...
10574 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10575 (RECORD_FILE_MAGIC): Renamed to ...
10576 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10577 (record_mem_entry): Renamed to ...
10578 (record_full_mem_entry): ... this. Updated all users.
10579 (record_reg_entry): Renamed to ...
10580 (record_full_reg_entry): ... this. Updated all users.
10581 (record_end_entry): Renamed to ...
10582 (record_full_end_entry): ... this. Updated all users.
10583 (record_type) <record_end, record_reg, record_mem>: Renamed
10585 (record_full_type) <record_full_end, record_full_reg,
10586 record_full_mem>: ... this. Updated all users.
10587 (record_entry): Renamed to ...
10588 (record_full_entry): ... this. Updated all users.
10589 (record_core_buf_entry): Renamed to ...
10590 (record_full_core_buf_entry): ... this. Updated all users.
10591 (record_core_regbuf): Renamed to ...
10592 (record_full_core_regbuf): ... this. Updated all users.
10593 (record_core_start): Renamed to ...
10594 (record_full_core_start): ... this. Updated all users.
10595 (record_core_end): Renamed to ...
10596 (record_full_core_end): ... this. Updated all users.
10597 (record_core_buf_list): Renamed to ...
10598 (record_full_core_buf_list): ... this. Updated all users.
10599 (record_first): Renamed to ...
10600 (record_full_first): ... this. Updated all users.
10601 (record_list): Renamed to ...
10602 (record_full_list): ... this. Updated all users.
10603 (record_arch_list_head): Renamed to ...
10604 (record_full_arch_list_head): ... this. Updated all users.
10605 (record_arch_list_tail): Renamed to ...
10606 (record_full_arch_list_tail): ... this. Updated all users.
10607 (record_stop_at_limit): Renamed to ...
10608 (record_full_stop_at_limit): ... this. Updated all users.
10609 (record_insn_max_num): Renamed to ...
10610 (record_full_insn_max_num): ... this. Updated all users.
10611 (record_insn_num): Renamed to ...
10612 (record_full_insn_num): ... this. Updated all users.
10613 (record_insn_count): Renamed to ...
10614 (record_full_insn_count): ... this. Updated all users.
10615 (record_ops): Renamed to ...
10616 (record_full_ops): ... this. Updated all users.
10617 (record_core_ops): Renamed to ...
10618 (record_full_core_ops): ... this. Updated all users.
10619 (set_record_cmdlist): Renamed to ...
10620 (set_record_full_cmdlist): ... this. Updated all users.
10621 (show_record_cmdlist): Renamed to ...
10622 (show_record_full_cmdlist): ... this. Updated all users.
10623 (record_cmdlist): Renamed to ...
10624 (record_full_cmdlist): ... this. Updated all users.
10625 (record_beneath_to_resume_ops): Renamed to ...
10626 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10627 (record_beneath_to_resume): Renamed to ...
10628 (record_full_beneath_to_resume): ... this. Updated all users.
10629 (record_beneath_to_wait_ops): Renamed to ...
10630 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10631 (record_beneath_to_wait): Renamed to ...
10632 (record_full_beneath_to_wait): ... this. Updated all users.
10633 (record_beneath_to_store_registers_ops): Renamed to ...
10634 (record_full_beneath_to_store_registers_ops): ... this.
10636 (record_beneath_to_store_registers): Renamed to ...
10637 (record_full_beneath_to_store_registers): ... this.
10639 (record_beneath_to_xfer_partial_ops): Renamed to ...
10640 (record_full_beneath_to_xfer_partial_ops): ... this.
10642 (record_beneath_to_xfer_partial): Renamed to ...
10643 (record_full_beneath_to_xfer_partial): ... this.
10645 (record_beneath_to_insert_breakpoint): Renamed to ...
10646 (record_full_beneath_to_insert_breakpoint): ... this.
10648 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10649 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10651 (record_beneath_to_stopped_data_address): Renamed to ...
10652 (record_full_beneath_to_stopped_data_address): ... this.
10654 (record_beneath_to_async): Renamed to ...
10655 (record_full_beneath_to_async): ... this. Updated all users.
10656 (record_goto_insn): Renamed to ...
10657 (record_full_goto_insn): ... this. Updated all users.
10658 (record_save): Renamed to ...
10659 (record_full_save): ... this. Updated all users.
10660 (record_reg_alloc): Renamed to ...
10661 (record_full_reg_alloc): ... this. Updated all users.
10662 (record_reg_release): Renamed to ...
10663 (record_full_reg_release): ... this. Updated all users.
10664 (record_mem_alloc): Renamed to ...
10665 (record_full_mem_alloc): ... this. Updated all users.
10666 (record_mem_release): Renamed to ...
10667 (record_full_mem_release): ... this. Updated all users.
10668 (record_end_alloc): Renamed to ...
10669 (record_full_end_alloc): ... this. Updated all users.
10670 (record_end_release): Renamed to ...
10671 (record_full_end_release): ... this. Updated all users.
10672 (record_entry_release): Renamed to ...
10673 (record_full_entry_release): ... this. Updated all users.
10674 (record_list_release): Renamed to ...
10675 (record_full_list_release): ... this. Updated all users.
10676 (record_list_release_following): Renamed to ...
10677 (record_full_list_release_following): ... this.
10679 (record_list_release_first): Renamed to ...
10680 (record_full_list_release_first): ... this. Updated all users.
10681 (record_arch_list_add): Renamed to ...
10682 (record_full_arch_list_add): ... this. Updated all users.
10683 (record_get_loc): Renamed to ...
10684 (record_full_get_loc): ... this. Updated all users.
10685 (record_check_insn_num): Renamed to ...
10686 (record_full_check_insn_num): ... this. Updated all users.
10687 (record_arch_list_cleanups): Renamed to ...
10688 (record_full_arch_list_cleanups): ... this. Updated all users.
10689 (record_message): Renamed to ...
10690 (record_full_message): ... this. Updated all users.
10691 (record_message_wrapper): Renamed to ...
10692 (record_full_message_wrapper): ... this. Updated all users.
10693 (record_message_wrapper_safe): Renamed to ...
10694 (record_full_message_wrapper_safe): ... this. Updated all users.
10695 (record_gdb_operation_disable): Renamed to ...
10696 (record_full_gdb_operation_disable): ... this. Updated all users.
10697 (record_hw_watchpoint): Renamed to ...
10698 (record_full_hw_watchpoint): ... this. Updated all users.
10699 (record_exec_insn): Renamed to ...
10700 (record_full_exec_insn): ... this. Updated all users.
10701 (record_restore): Renamed to ...
10702 (record_full_restore): ... this. Updated all users.
10703 (record_async_inferior_event_token): Renamed to ...
10704 (record_full_async_inferior_event_token): ... this.
10706 (record_async_inferior_event_handler): Renamed to ...
10707 (record_full_async_inferior_event_handler): ... this.
10709 (record_core_open_1): Renamed to ...
10710 (record_full_core_open_1): ... this. Updated all users.
10711 (record_open_1): Renamed to ...
10712 (record_full_open_1): ... this. Updated all users.
10713 (record_open): Renamed to ...
10714 (record_full_open): ... this. Updated all users.
10715 (record_close): Renamed to ...
10716 (record_full_close): ... this. Updated all users.
10717 (record_resume_step): Renamed to ...
10718 (record_full_resume_step): ... this. Updated all users.
10719 (record_resumed): Renamed to ...
10720 (record_full_resumed): ... this. Updated all users.
10721 (record_execution_dir): Renamed to ...
10722 (record_full_execution_dir): ... this. Updated all users.
10723 (record_resume): Renamed to ...
10724 (record_full_resume): ... this. Updated all users.
10725 (record_get_sig): Renamed to ...
10726 (record_full_get_sig): ... this. Updated all users.
10727 (record_sig_handler): Renamed to ...
10728 (record_full_sig_handler): ... this. Updated all users.
10729 (record_wait_cleanups): Renamed to ...
10730 (record_full_wait_cleanups): ... this. Updated all users.
10731 (record_wait_1): Renamed to ...
10732 (record_full_wait_1): ... this. Updated all users.
10733 (record_wait): Renamed to ...
10734 (record_full_wait): ... this. Updated all users.
10735 (record_stopped_by_watchpoint): Renamed to ...
10736 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10737 (record_disconnect): Renamed to ...
10738 (record_full_disconnect): ... this. Updated all users.
10739 (record_detach): Renamed to ...
10740 (record_full_detach): ... this. Updated all users.
10741 (record_mourn_inferior): Renamed to ...
10742 (record_full_mourn_inferior): ... this. Updated all users.
10743 (record_kill): Renamed to ...
10744 (record_full_kill): ... this. Updated all users.
10745 (record_stopped_data_address): Renamed to ...
10746 (record_full_stopped_data_address): ... this. Updated all users.
10747 (record_registers_change): Renamed to ...
10748 (record_full_registers_change): ... this. Updated all users.
10749 (record_store_registers): Renamed to ...
10750 (record_full_store_registers): ... this. Updated all users.
10751 (record_xfer_partial): Renamed to ...
10752 (record_full_xfer_partial): ... this. Updated all users.
10753 (record_breakpoint): Renamed to ...
10754 (record_full_breakpoint): ... this. Updated all users.
10755 (record_breakpoint_p): Renamed to ...
10756 (record_full_breakpoint_p): ... this. Updated all users.
10757 (record_breakpoints): Renamed to ...
10758 (record_full_breakpoints): ... this. Updated all users.
10759 (record_sync_record_breakpoints): Renamed to ...
10760 (record_full_sync_record_breakpoints): ... this.
10762 (record_init_record_breakpoints): Renamed to ...
10763 (record_full_init_record_breakpoints): ... this.
10765 (record_insert_breakpoint): Renamed to ...
10766 (record_full_insert_breakpoint): ... this. Updated all users.
10767 (record_remove_breakpoint): Renamed to ...
10768 (record_full_remove_breakpoint): ... this. Updated all users.
10769 (record_can_execute_reverse): Renamed to ...
10770 (record_full_can_execute_reverse): ... this. Updated all users.
10771 (record_get_bookmark): Renamed to ...
10772 (record_full_get_bookmark): ... this. Updated all users.
10773 (record_goto_bookmark): Renamed to ...
10774 (record_full_goto_bookmark): ... this. Updated all users.
10775 (record_async): Renamed to ...
10776 (record_full_async): ... this. Updated all users.
10777 (record_can_async_p): Renamed to ...
10778 (record_full_can_async_p): ... this. Updated all users.
10779 (record_is_async_p): Renamed to ...
10780 (record_full_is_async_p): ... this. Updated all users.
10781 (record_execution_direction): Renamed to ...
10782 (record_full_execution_direction): ... this. Updated all users.
10783 (record_info): Renamed to ...
10784 (record_full_info): ... this. Updated all users.
10785 (record_delete): Renamed to ...
10786 (record_full_delete): ... this. Updated all users.
10787 (record_is_replaying): Renamed to ...
10788 (record_full_is_replaying): ... this. Updated all users.
10789 (record_goto_entry): Renamed to ...
10790 (record_full_goto_entry): ... this. Updated all users.
10791 (record_goto_begin): Renamed to ...
10792 (record_full_goto_begin): ... this. Updated all users.
10793 (record_goto_end): Renamed to ...
10794 (record_full_goto_end): ... this. Updated all users.
10795 (record_goto): Renamed to ...
10796 (record_full_goto): ... this. Updated all users.
10797 (init_record_ops): Renamed to ...
10798 (init_record_full_ops): ... this. Updated all users.
10799 (record_core_resume): Renamed to ...
10800 (record_full_core_resume): ... this. Updated all users.
10801 (record_core_kill): Renamed to ...
10802 (record_full_core_kill): ... this. Updated all users.
10803 (record_core_fetch_registers): Renamed to ...
10804 (record_full_core_fetch_registers): ... this. Updated all users.
10805 (record_core_prepare_to_store): Renamed to ...
10806 (record_full_core_prepare_to_store): ... this. Updated all users.
10807 (record_core_store_registers): Renamed to ...
10808 (record_full_core_store_registers): ... this. Updated all users.
10809 (record_core_xfer_partial): Renamed to ...
10810 (record_full_core_xfer_partial): ... this. Updated all users.
10811 (record_core_insert_breakpoint): Renamed to ...
10812 (record_full_core_insert_breakpoint): ... this. Updated all users.
10813 (record_core_remove_breakpoint): Renamed to ...
10814 (record_full_core_remove_breakpoint): ... this. Updated all users.
10815 (record_core_has_execution): Renamed to ...
10816 (record_full_core_has_execution): ... this. Updated all users.
10817 (init_record_core_ops): Renamed to ...
10818 (init_record_full_core_ops): ... this. Updated all users.
10819 (cmd_record_restore): Renamed to ...
10820 (cmd_record_full_restore): ... this. Updated all users.
10821 (record_save_cleanups): Renamed to ...
10822 (record_full_save_cleanups): ... this. Updated all users.
10823 (cmd_record_start): Renamed to ...
10824 (cmd_record_full_start): ... this. Updated all users.
10825 (set_record_insn_max_num): Renamed to ...
10826 (set_record_full_insn_max_num): ... this. Updated all users.
10827 (set_record_command): Renamed to ...
10828 (set_record_full_command): ... this. Updated all users.
10829 (show_record_command): Renamed to ...
10830 (show_record_full_command): ... this. Updated all users.
10831 (_initialize_record): Renamed to ...
10832 (_initialize_record_full): ... this. Updated all users.
10834 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10836 * record.h: Split into this and ...
10837 * record-full.h: ... this.
10838 * record.c: Split into this and ...
10839 * record-full.c: ... this.
10840 * target.h (target_ops): Add new fields to_info_record,
10841 to_save_record, to_delete_record, to_record_is_replaying,
10842 to_goto_record_begin, to_goto_record_end, to_goto_record.
10843 (target_info_record): New.
10844 (target_save_record): New.
10845 (target_supports_delete_record): New.
10846 (target_delete_record): New.
10847 (target_record_is_replaying): New.
10848 (target_goto_record_begin): New.
10849 (target_goto_record_end): New.
10850 (target_goto_record): New.
10851 * target.c (target_info_record): New.
10852 (target_save_record): New.
10853 (target_supports_delete_record): New.
10854 (target_delete_record): New.
10855 (target_record_is_replaying): New.
10856 (target_goto_record_begin): New.
10857 (target_goto_record_end): New.
10858 (target_goto_record): New.
10859 * record.h: Declare struct cmd_list_element.
10860 (record_cmdlist): New declaration.
10861 (set_record_cmdlist): New declaration.
10862 (show_record_cmdlist): New declaration.
10863 (info_record_cmdlist): New declaration.
10864 (cmd_record_goto): New declaration.
10865 * record.c: Remove unnecessary includes.
10866 Include inferior.h.
10867 (cmd_record_goto): Remove declaration.
10868 (record_cmdlist): Now extern. Initialize.
10869 (set_record_cmdlist): Now extern. Initialize.
10870 (show_record_cmdlist): Now extern. Initialize.
10871 (info_record_cmdlist): Now extern. Initialize.
10872 (find_record_target): New.
10873 (require_record_target): New.
10874 (cmd_record_start): Update.
10875 (cmd_record_delete): Remove target-specific code.
10876 Call target_delete_record.
10877 (cmd_record_stop): Unpush any record target.
10878 (set_record_insn_max_num): Move to record-full.c
10879 (set_record_command): Add comment.
10880 (show_record_command): Add comment.
10881 (info_record_command): Update comment.
10882 Remove target-specific code.
10883 Call the record target's to_info_record.
10884 (cmd_record_start): New.
10885 (cmd_record_goto): Now extern.
10886 Remove target-specific code.
10887 Call target_goto_begin, target_goto_end, or target_goto.
10888 (_initialize_record): Move record target ops initialization to
10890 Change "record" command help text.
10891 Move "record restore", "record set", and "record show" commands to
10893 * Makefile.in (SFILES): Add record-full.c.
10894 (HFILES_NO_SRCDIR): Add record-full.h.
10895 (COMMON_OBS): Add record-full.o.
10896 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10897 * arm-tdep.c: Include record-full.h.
10898 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10899 * i386-tdep.c: Include record-full.h.
10900 * infrun.c: Include record-full.h.
10901 * linux-record.c: Include record-full.h.
10902 * moxie-tdep.c: Include record-full.h.
10903 * record-full.c: Include record-full.h.
10904 Change module comment.
10905 (set_record_full_cmdlist): New.
10906 (show_record_full_cmdlist): New.
10907 (record_full_cmdlist): New.
10908 (record_goto_insn): New declaration.
10909 (record_save): New declaration.
10910 (record_check_insn_num): Change query string.
10911 (record_info): New.
10912 (record_delete): New.
10913 (record_is_replaying): New.
10914 (record_goto_entry): New.
10915 (record_goto_begin): New.
10916 (record_goto_end): New.
10917 (record_goto): New.
10918 (init_record_ops): Update.
10919 (init_record_core_ops): Update.
10920 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10921 (cmd_record_start): New.
10922 (set_record_insn_max_num): Moved from record.c
10923 (set_record_full_command): New.
10924 (show_record_full_command): New.
10925 (_initialize_record_full): New.
10927 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10929 * target.h (add_deprecated_target_alias): New.
10930 * target.c (add_deprecated_target_alias): New.
10932 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10934 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10936 (linux_supports_btrace): Add kernel and
10938 (kernel_supports_btrace): New function.
10939 (cpu_supports_btrace): New function.
10940 (intel_supports_btrace): New function.
10942 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10944 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10945 * remote.c: Include btrace.h.
10946 (struct btrace_target_info): New struct.
10947 (remote_supports_btrace): New function.
10948 (send_Qbtrace): New function.
10949 (remote_enable_btrace): New function.
10950 (remote_disable_btrace): New function.
10951 (remote_teardown_btrace): New function.
10952 (remote_read_btrace): New function.
10953 (init_remote_ops): Add btrace ops.
10954 (enum <unnamed>): Add btrace packets.
10955 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10956 (_initialize_remote): Add packet configuration for branch tracing.
10958 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10960 * features/btrace.dtd: New file.
10961 * Makefile.in (XMLFILES): Add btrace.dtd.
10962 * btrace.h (parse_xml_btrace): New declaration.
10963 * btrace.c: Include xml-support.h.
10964 (parse_xml_btrace): New function.
10965 (parse_xml_btrace_block): New function.
10966 (block_attributes): New struct.
10967 (btrace_attributes): New struct.
10968 (btrace_children): New struct.
10969 (btrace_elements): New struct.
10971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10973 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10974 (amd64_linux_enable_btrace): New.
10975 (amd64_linux_disable_btrace): New.
10976 (amd64_linux_teardown_btrace): New.
10977 (_initialize_amd64_linux_nat): Initialize btrace ops.
10978 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10979 (i386_linux_enable_btrace): New.
10980 (i386_linux_disable_btrace): New.
10981 (i386_linux_teardown_btrace): New.
10982 (_initialize_i386_linux_nat): Initialize btrace ops.
10983 * config/i386/linux.mh: Add linux-btrace.o.
10984 * config/i386/linux64.mh: Add linux-btrace.o.
10986 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10988 * common/linux_btrace.h: New file.
10989 * common/linux_btrace.c: New file.
10990 * Makefile.in (SFILES): Add btrace.c.
10991 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10992 (COMMON_OBS): Add btrace.o.
10993 (linux-btrace.o): New rule.
10995 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10997 * target.h: Include btrace.h.
10998 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10999 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11000 * target.c (target_supports_btrace): New function.
11001 (target_enable_btrace): New function.
11002 (target_disable_btrace): New function.
11003 (target_teardown_btrace): New function.
11004 (target_read_btrace): New function.
11005 * btrace.h: New file.
11006 * btrace.c: New file.
11007 * Makefile.in: Add btrace.c.
11008 * gdbthread.h: Include btrace.h.
11009 (struct thread_info): Add btrace field.
11010 * thread.c: Include btrace.h.
11011 (clear_thread_inferior_resources): Call target_teardown_btrace.
11012 * common/btrace-common.h: New file.
11014 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11016 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11017 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11018 kill_status to outer block.
11020 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11022 Fix entry-values if the callee called a noreturn function.
11023 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11024 get_frame_address_in_block. Add new comment.
11026 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11028 Fix entry-values in C++ across CUs.
11029 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11030 lookup_minimal_symbol. Add a comment.
11032 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11033 DW_AT_linkage_name.
11035 2013-03-08 Yao Qi <yao@codesourcery.com>
11037 * tracepoint.c (_initialize_tracepoint): Indent the code.
11039 2013-03-08 Pedro Alves <palves@redhat.com>
11041 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11042 (parse_find_args, find_command): Change type of pattern buffer
11043 locals to 'gdb_byte *'.
11045 2013-03-08 Stan Shebs <stan@codesourcery.com>
11046 Hafiz Abid Qadeer <abidh@codesourcery.com>
11048 * NEWS: Mention set and show trace-buffer-size commands.
11049 Mention new packet.
11050 * target.h (struct target_ops): New method
11051 to_set_trace_buffer_size.
11052 (target_set_trace_buffer_size): New macro.
11053 * target.c (update_current_target): Set up new method.
11054 * tracepoint.c (trace_buffer_size): New global.
11055 (start_tracing): Send it to the target.
11056 (set_trace_buffer_size): New function.
11057 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11058 * remote.c (remote_set_trace_buffer_size): New function.
11059 (_initialize_remote): Use it.
11060 (QTBuffer:size) New remote command.
11061 (PACKET_QTBuffer_size): New enum.
11062 (remote_protocol_features): Add an entry for
11063 PACKET_QTBuffer_size.
11065 2013-03-08 Tom Tromey <tromey@redhat.com>
11067 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11070 2013-03-07 Pedro Alves <palves@redhat.com>
11072 * target.c (target_read_stralloc, target_fileio_read_alloc):
11073 *Cast pointer to 'gdb_byte *' in target call.
11075 2013-03-07 Pedro Alves <palves@redhat.com>
11077 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11080 2013-03-07 Keith Seitz <keiths@redhat.com>
11082 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11083 (trace_pass_command): Likewise.
11084 * cli/cli-cmds.c: Include cli/cli-utils.h.
11085 (source_command): Use skip-spaces.
11086 (disassemble_command): Likewise.
11087 * findcmd.c: Include cli/cli-utils.h.
11088 (parse_find_args): Use skip_spaces.
11089 * go32-nat.c: Include cli/cli-utils.h.
11090 (go32_sldt): Use skip_spaces.
11091 (go32_sgdt): Likewise.
11092 (go32_sidt): Likewise.
11093 (go32_pde): Likewise.
11094 (go32_pte): Likewise.
11095 (go32_pte_for_address): Likewise.
11096 * infcmd.c: Include cli/cli-utils.h.
11097 (registers_info): Use skip_spaces.
11098 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11099 (linux_info_proc): Likewise.
11100 * linux-thread-db.c: Include cli/cli-utils.h.
11101 (info_auto_load_libthread_db): Use skip_spaces_const.
11102 * m32r-rom.c: Include cli/cli-utils.h.
11103 (m32r_upload_command): Use skip_spaces.
11104 * maint.c: Include cli/cli-utils.h.
11105 (maintenance_translate_address): Use skip_spaces.
11106 * mi/mi-parse.c: Include cli/cli-utils.h.
11107 (mi_parse_argv): Use skip_spaces.
11108 (mi_parse): Likewise.
11109 * minsyms.c: Include cli/cli-utils.h.
11110 (msymbol_hash_iw): Use skip_spaces_const.
11111 * objc-lang.c: Include cli/cli-utils.h.
11112 (parse_selector): Use skip_spaces.
11113 (parse_method): Likewise.
11114 * python/python.c: Include cli/cli-utils.h.
11115 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11116 (python_command)[HAVE_PYTHON]: Likewise.
11117 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11118 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11119 (m32r_load): Use skip_spaces.
11120 * serial.c: Include cli/cli-utils.h.
11121 (serial_open): Use skip_spaces_const.
11122 * stack.c: Include cli/cli-utils.h.
11123 (parse_frame_specification_1): Use skip_spaces_const.
11124 * symfile.c: Include cli/cli-utils.h.
11125 (set_ext_lang_command): Use skip_spaces.
11126 * symtab.c: Include cli/cli-utils.h.
11127 (rbreak_command): Use skip_spaces.
11128 * thread.c (thread_name_command): Use skip_spaces.
11129 * tracepoint.c (validate_actionline): Use skip_spaces.
11130 (encode_actions_1): Likewise.
11131 (trace_find_range_command): Likewise.
11132 (trace_find_outside_command): Likewise.
11133 (trace_dump_actions): Likewise.
11135 2013-03-07 Pedro Alves <palves@redhat.com>
11137 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11138 * expprint.c (print_subexp_standard): Likewise.
11139 * utils.c (host_char_to_target): Likewise.
11140 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11141 * varobj.c (value_get_print_value): Change type of local to char*.
11142 Cast it gdb_byte * in call to language printer.
11144 2013-03-07 Pedro Alves <palves@redhat.com>
11146 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11148 (make_wchar_iterator): Remove cast to char*.
11149 (wchar_iterate): Change type of local.
11151 2013-03-07 Pedro Alves <palves@redhat.com>
11153 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11154 for 'regcache->register_status'.
11156 2013-03-07 Pedro Alves <palves@redhat.com>
11158 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11161 2013-03-07 Pedro Alves <palves@redhat.com>
11163 * stap-probe.c (handle_stap_probe): Add cast to char*.
11165 2013-03-07 Pedro Alves <palves@redhat.com>
11167 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11168 RECORD_MSGRCV>: Pass a signed variable to
11169 regcache_raw_read_signed, instead of an unsigned one.
11171 2013-03-07 Pedro Alves <palves@redhat.com>
11173 * remote-notif.c (notif_debug): Change type to int.
11174 * remote-notif.h (notif_debug): Likewise.
11176 2013-03-07 Pedro Alves <palves@redhat.com>
11178 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11180 2013-03-07 Pedro Alves <palves@redhat.com>
11182 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11183 * remote.h (hex2bin, bin2hex): ... here.
11184 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11186 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11188 * utils.c (initialize_utils): Improve doc strings of "set/show
11189 width", "set/show height", and "set/show pagination".
11191 2013-03-06 Keith Seitz <keiths@redhat.com>
11193 * ax-gdb.c (gen_printf): Make FORMAT const.
11194 * ax-gdb.h (gen_printf): Likewise.
11195 * ax-general.c (ax_string): Make STR const.
11196 * ax.h (ax_string): Likewise.
11198 2013-03-06 Doug Evans <dje@google.com>
11200 * elfread.c (elf_symfile_read): Move debugging printf to more
11203 2013-03-06 Pedro Alves <palves@redhat.com>
11205 * python/py-utils.c (target_string_to_unicode): Delete function.
11206 * python/python-internal.h (target_string_to_unicode): Delete
11209 2013-03-06 Pierre Muller <muller@sourceware.org>
11211 * linespec.c (get_current_search_block): ARI fix, use (void)
11212 for empty parameter list.
11214 2013-03-05 Doug Evans <dje@google.com>
11216 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11217 of old ada_lookup_symbol_list. In !full_search case, don't
11218 search superblocks.
11219 (ada_lookup_symbol_list): Delete arg full_search, all callers
11220 updated. Call ada_lookup_symbol_list_worker.
11221 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11222 * ada-lang.h (ada_lookup_symbol_list): Update.
11223 * language.h (language_defn): Update comment for
11224 la_iterate_over_symbols.
11225 * linespec.c (iterate_over_file_blocks): New function.
11226 (iterate_over_all_matching_symtabs): Call it.
11227 (lookup_prefix_sym): Ditto.
11228 (get_current_search_block): New function.
11229 (get_search_block): Delete.
11230 (find_label_symbols): Call get_current_search_block.
11231 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11232 * symtab.c (iterate_over_symbols): Don't search superblocks.
11234 2013-03-05 Yao Qi <yao@codesourcery.com>
11236 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11237 parameter VAR's type from "unsigned int" to "int".
11238 * command.h (var_zuinteger_unlimited): Update its comments.
11239 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11241 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11243 * NEWS: Mention new target x86_64-*-cygwin*.
11245 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11247 * configure.host: Add x86_64-*-cygwin* as host.
11248 * configure.tgt: Add x86_64-*-cygwin* as target.
11249 * config/i386/cygwin64.mh: New file.
11251 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11253 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11255 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11257 * linespec.c (struct linespec_canonical_name): New.
11258 (struct linespec_state): Change canonical_names type to it.
11259 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11260 xrealloc element size. Initialize the different CANONICAL fields.
11261 (canonical_to_fullform): New.
11262 (filter_results): Use it. Add variables canonical, fullform and
11264 (struct decode_line_2_item, decode_line_2_compare_items): New.
11265 (decode_line_2): Remove variables iter and item_names, add variables
11266 items and items_count. Modify the code for these new variables.
11268 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11270 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11271 calling do_cleanup.
11273 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11275 * tracepoint.c (build_traceframe_info): Add code for byte order.
11277 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11279 * v850-tdep.c: (v850e2_register_name): Revise system register
11280 names to match current V850E2M architecture specifications.
11281 Update register number enum comments too.
11283 2013-03-01 Jiong Wang <jiwang@tilera.com>
11284 Pedro Alves <palves@redhat.com>
11286 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11288 (tilegx_skip_prologue): Limit prologue analysis to section end.
11290 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11292 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11295 2013-03-01 Pedro Alves <palves@redhat.com>
11297 Use gdb_byte for bytes from the program being debugged.
11299 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11300 Change type of local 'buf' to gdb_byte.
11301 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11302 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11303 * cris-tdep.c (cris_sigcontext_addr)
11304 (cris_sigtramp_frame_unwind_cache): Likewise.
11305 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11306 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11308 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11309 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11310 (hppa32_hpux_search_dummy_call_sequence)
11311 (hppa_hpux_supply_save_state): Likewise.
11312 * hppa-linux-tdep.c (insns_match_pattern)
11313 (hppa_linux_find_global_pointer): Likewise.
11314 * hppa-tdep.c (hppa_in_function_epilogue_p)
11315 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11316 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11317 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11318 (i386fbsd_collect_uthread): Likewise.
11319 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11320 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11321 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11322 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11323 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11324 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11325 (ia64_libunwind_frame_prev_register)
11326 (ia64_libunwind_sigtramp_frame_this_id)
11327 (ia64_find_global_pointer_from_dynamic_section)
11328 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11329 (ia64_unwind_pc): Likewise.
11330 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11331 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11332 (m68hc11_extract_return_value): Likewise.
11333 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11334 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11335 (mep_get_insn, mep_push_dummy_call): Likewise.
11336 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11337 (mips_linux_in_dynsym_stub): Likewise.
11338 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11339 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11340 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11342 * remote-mips.c (mips_set_register): Likewise.
11343 * remote-sim.c (gdbsim_fetch_register): Likewise.
11344 * score-tdep.c (score7_fetch_inst): Change type of parameter
11345 'memblock' and local 'buf' to gdb_byte.
11346 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11347 Change type of local 'buf' to gdb_byte. Adjust.
11348 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11350 (score7_analyze_prologue): Change type of 'memblock' and
11351 'memblock_ptr' locals to gdb_byte*.
11352 * sh64-tdep.c (sh64_extract_return_value)
11353 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11354 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11355 * solib-pa64.c (pa64_solib_create_inferior_hook)
11356 (pa64_open_symbol_file_object): Remove local 'buf'.
11357 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11358 (som_open_symbol_file_object): Likewise.
11359 * solib-spu.c (spu_current_sos): Likewise.
11360 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11361 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11362 (spu_store_registers): Likewise.
11363 * target.c (debug_print_register): Likewise.
11364 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11365 * xstormy16-tdep.c (xstormy16_store_return_value)
11366 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11367 (xstormy16_find_jmp_table_entry): Likewise.
11369 2013-03-01 Jiong Wang <jiwang@tilera.com>
11371 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11372 (tilegx_gdbarch_init): Install it.
11374 2013-02-28 Tom Tromey <tromey@redhat.com>
11376 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11379 2013-02-28 Doug Evans <dje@google.com>
11381 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11382 * python/python.c (gdbpy_find_pc_line): Ditto.
11384 2013-02-28 Tom Tromey <tromey@redhat.com>
11386 * contrib/excheck.py: New file.
11387 * contrib/exsummary.py: New file.
11388 * contrib/gcc-with-excheck: New file.
11390 2013-02-28 Tom Tromey <tromey@redhat.com>
11392 * python/python.c (gdbpy_print_stack): Call begin_line and
11393 fprintf_filtered inside TRY_CATCH.
11395 2013-02-28 Tom Tromey <tromey@redhat.com>
11397 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11400 2013-02-28 Tom Tromey <tromey@redhat.com>
11402 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11403 frame_object_to_frame_info inside TRY_CATCH.
11405 2013-02-28 Tom Tromey <tromey@redhat.com>
11407 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11410 2013-02-28 Tom Tromey <tromey@redhat.com>
11412 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11414 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11416 * windows-nat.c: Throughout, fix format strings and casts of
11417 printf-like functions to avoid type related warnings on all
11419 (handle_output_debug_string): Fetch context information address
11420 from debug string using string_to_core_addr.
11422 2013-02-27 Jiong Wang <jiwang@tilera.com>
11424 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11425 * regformats/reg-tilegx32.dat: New.
11427 2013-02-27 Jiong Wang <jiwang@tilera.com>
11429 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11431 2013-02-27 Jiong Wang <jiwang@tilera.com>
11433 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11435 2013-02-27 Yao Qi <yao@codesourcery.com>
11436 Pedro Alves <palves@redhat.com>
11438 * tracepoint.c (tfile_trace_find): For tfind
11439 pc/tp/range/outside, look for the next trace frame instead of
11440 always starting from frame 0.
11442 2013-02-26 Anthony Green <green@moxielogic.com>
11444 * configure.tgt: Add support for moxie-*-rtems* target.
11446 2013-02-25 Pedro Alves <palves@redhat.com>
11448 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11451 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11453 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11454 if $fp is used as the virtual frame pointer.
11456 2013-02-23 Alan Modra <amodra@gmail.com>
11458 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11460 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11461 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11462 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11463 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11465 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11468 * elfread.c (build_id_bfd_get): Make the return type const.
11469 (build_id_verify): Make the check parameter const.
11470 (build_id_to_debug_filename): Make the build_id parameter and variable
11472 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11474 2013-02-21 Alan Modra <amodra@gmail.com>
11476 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11478 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11480 Add a new method 'disassemble' to gdb.Architecture class.
11481 * python/py-arch.c (archpy_disassmble): Implementation of the
11482 new method gdb.Architecture.disassemble.
11483 (arch_object_methods): Add entry for the new method.
11485 2013-02-20 Jiong Wang <jiwang@tilera.com>
11487 * MAINTAINERS (Write After Approval): Add myself to the list.
11489 2013-02-19 Pedro Alves <palves@redhat.com>
11491 Garbage collect 'struct monitor_ops'::load_routine.
11493 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11494 * monitor.c (monitor_load): No longer call
11495 current_monitor->load_routine.
11496 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11497 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11498 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11500 2013-02-19 Pedro Alves <palves@redhat.com>
11504 Harmonize with generic_load.
11506 * monitor.c: Include "readline/readline.h".
11507 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11508 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11509 long/strtol for the 'load_offset' local. Error out if no argument
11510 is given or if too many arguments are given. Tilde expand the
11511 passed in file name.
11513 2013-02-19 Kai Tietz <ktietz@redhat.com>
11516 * symfile.c (load_section_data): Change type of load_offset
11518 (generic_load): User strtoulst instead of strtoul for conversion
11521 2013-02-19 Jiong Wang <jiwang@tilera.com>
11523 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11524 for return address, "lr" register, saved on stack.
11525 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11526 after we invoke tilegx_analyze_prologue.
11528 2013-02-19 Jiong Wang <jiwang@tilera.com>
11530 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11532 2013-02-19 Jiong Wang <jiwang@tilera.com>
11534 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11536 2013-02-19 Jiong Wang <jiwang@tilera.com>
11538 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11539 (tilegx_write_pc): New function.
11540 (tilegx_cannot_reference_register): Return zero if REGNO
11541 is TILEGX_FAULTNUM_REGNUM.
11542 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11543 (tilegx_register_name): Add handling of "faultnum" register.
11544 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11545 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11546 handling of TILEGX_FAULTNUM_REGNUM.
11547 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11549 2013-02-19 Jiong Wang <jiwang@tilera.com>
11551 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11552 should be aligned to 64bit.
11554 2013-02-19 Kai Tietz <ktietz@redhat.com>
11556 * windows-nat.c (windows_xfer_memory): Fix debug-output
11559 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11561 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11562 Don't check DSP register number if HAVE_DSP is not set.
11564 2013-02-19 Alan Modra <amodra@gmail.com>
11566 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11567 throughout file instead.
11568 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11569 Don't xmalloc return value.
11570 (build_id_verify): Similarly. Don't xfree.
11571 (build_id_to_debug_filename): Update.
11572 (find_separate_debug_file_by_buildid): Update, don't xfree.
11574 2013-02-18 Tom Tromey <tromey@redhat.com>
11577 * dwarf2read.c (read_subrange_type): Use result of
11580 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11582 * frame.c: Remove one extra white space after #include
11585 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11587 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11589 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11591 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11592 and dir commands into an if block.
11594 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11596 * python/py-breakpoint (struct pybp_code): Use int instead of
11599 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11600 Hafiz Abid Qadeer <abidh@codesourcery.com>
11602 * NEWS: Mention new field "trace-file".
11603 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11604 (tfile_open): Record the trace file's filename in the trace
11606 (tfile_files_info): Mention the name of the trace file.
11607 Check the "filename" field explicitely.
11608 (trace_status_command): Explicitely check "filename" field.
11609 (trace_find_command): Ditto.
11610 (trace_find_pc_command): Ditto.
11611 (trace_find_tracepoint_command): Ditto.
11612 (trace_find_line_command): Ditto.
11613 (trace_find_range_command): Ditto.
11614 (trace_find_outside_command): Ditto.
11615 * tracepoint.h (struct trace_status) <from_file>: Rename it
11616 to "filename" and make it hold the trace file's filename
11617 instead of a boolean.
11618 * remote.c (remote_get_trace_status): Initialize "filename"
11619 field with NULL instead of 0.
11621 2013-02-15 Yao Qi <yao@codesourcery.com>
11623 * remote.c: Fix a typo.
11625 2013-02-14 Pierre Muller <muller@sourceware.org>
11627 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11629 2013-02-14 Pedro Alves <palves@redhat.com>
11631 * utils.c (savestring): Don't #undef it. Move function to
11632 common/common-utils.c.
11633 * common/common-utils.c: Include gdb_string.h.
11634 (savestring): Move here from utils.c.
11635 * common/common-utils.h (savestring): Declare.
11637 2013-02-14 Pedro Alves <palves@redhat.com>
11639 * utils.c (savestring): Rename parameter 'size' to 'len'.
11641 2013-02-14 Pedro Alves <palves@redhat.com>
11642 Yufeng Zhang <yufeng.zhang@arm.com>
11644 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11645 (aarch64_inferior_data, struct aarch64_inferior_data):
11647 (struct aarch64_process_info): New.
11648 (aarch64_process_list): New global.
11649 (aarch64_find_process_pid, aarch64_add_process)
11650 (aarch64_process_info_get): New functions.
11651 (aarch64_inferior_data_get): Delete.
11652 (aarch64_process_info_get): New function.
11653 (aarch64_forget_process): New function.
11654 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11655 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11656 aarch64_get_debug_reg_state.
11657 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11658 instead of linux_nat_iterate_watchpoint_lwps.
11659 (aarch64_linux_new_fork): New function.
11660 (aarch64_linux_child_post_startup_inferior): Use
11661 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11662 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11663 (aarch64_linux_remove_hw_breakpoint)
11664 (aarch64_handle_aligned_watchpoint)
11665 (aarch64_handle_unaligned_watchpoint)
11666 (aarch64_linux_insert_watchpoint)
11667 (aarch64_linux_remove_watchpoint)
11668 (aarch64_linux_stopped_data_address): Adjust to pass the current
11669 process id to aarch64_debug_reg_state.
11670 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11671 linux_nat_new_fork hook, and aarch64_forget_process as
11672 linux_nat_forget_process hook; remove the call to
11673 register_inferior_data_with_cleanup.
11675 2013-02-14 Pedro Alves <palves@redhat.com>
11677 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11678 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11681 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11682 Hafiz Abid Qadeer <abidh@codesourcery.com>
11684 * tracepoint.h (validate_trace_state_variable_name): Declare.
11685 * tracepoint.c (validate_trace_state_variable_name): New.
11686 (trace_variable_command): Parse the trace state variable's name
11687 without using parse_expression. Do several validations.
11688 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11689 trace state variable's name with parse_expression. Validate it.
11691 2013-02-14 Yao Qi <yao@codesourcery.com>
11693 * infcmd.c (breakpoint_proceeded): Remove it.
11695 2013-02-14 Yao Qi <yao@codesourcery.com>
11697 * tracepoint.c (end_actions_pseudocommand): Make it static.
11698 (while_stepping_pseudocommand): Likewise.
11699 * tracepoint.h (end_actions_pseudocommand): Remove the
11701 (while_stepping_pseudocommand): Likewise.
11703 2013-02-14 Yao Qi <yao@codesourcery.com>
11705 * cli/cli-decode.c (help_cmd): Remove the declaration of
11707 (help_all): Likewise.
11709 2013-02-13 Pedro Alves <palves@redhat.com>
11711 * amd64-linux-nat.c (update_debug_registers_callback):
11713 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11715 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11716 i386_debug_reg_state.
11717 (amd64_linux_new_fork): New function.
11718 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11719 linux_nat_new_fork hook, and i386_forget_process as
11720 linux_nat_forget_process hook.
11721 * i386-linux-nat.c (update_debug_registers_callback):
11723 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11725 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11726 i386_debug_reg_state.
11727 (i386_linux_new_fork): New function.
11728 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11729 linux_nat_new_fork hook, and i386_forget_process as
11730 linux_nat_forget_process hook.
11731 * i386-nat.c (i386_init_dregs): Delete.
11732 (i386_inferior_data, struct i386_inferior_data):
11734 (struct i386_process_info): New.
11735 (i386_process_list): New global.
11736 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11738 (i386_inferior_data_get): Delete.
11739 (i386_process_info_get): New function.
11740 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11741 (i386_forget_process): New function.
11742 (i386_cleanup_dregs): Rewrite.
11743 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11744 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11745 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11746 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11747 to i386_debug_reg_state.
11748 (i386_use_watchpoints): Don't register inferior data.
11749 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11751 (i386_forget_process): Declare.
11752 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11753 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11754 New static globals.
11755 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11756 (add_initial_lwp): New, factored out from ...
11757 (add_lwp): ... this. Don't check the number of lwps before
11758 calling linux_nat_new_thread.
11759 (linux_nat_iterate_watchpoint_lwps): Delete.
11760 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11761 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11763 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11765 (linux_nat_kill, linux_nat_mourn_inferior): Call
11766 linux_nat_forget_process.
11767 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11768 (linux_nat_forget_process): New functions.
11769 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11771 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11772 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11774 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11775 (linux_nat_forget_process): New declarations.
11777 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11778 (amd64fbsd_mourn_inferior): New function.
11779 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11780 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11782 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11784 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11787 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11789 * aarch64-linux-nat.c (debug_reg_change_callback)
11790 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11793 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11795 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11798 2013-02-13 Pedro Alves <palves@redhat.com>
11799 Hafiz Abid Qadeer <abidh@codesourcery.com>
11801 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11803 2013-02-12 Tom Tromey <tromey@redhat.com>
11806 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11808 (classify_inner_name): Remove 'first_name' argument, add
11809 'context'. Remove unused variable.
11810 (yylex): Explicitly maintain the context type. Exit loop earlier
11811 if NAME result is seen.
11813 2013-02-12 Pedro Alves <palves@redhat.com>
11815 * amd64-darwin-tdep.c: Add (C) after Copyright.
11816 * cli/cli-cmds.h: Ditto.
11817 * cli/cli-decode.c: Ditto.
11818 * cli/cli-decode.h: Ditto.
11819 * cli/cli-dump.c: Ditto.
11820 * cli/cli-dump.h: Ditto.
11821 * cli/cli-interp.c: Ditto.
11822 * cli/cli-logging.c: Ditto.
11823 * cli/cli-script.c: Ditto.
11824 * cli/cli-script.h: Ditto.
11825 * cli/cli-setshow.c: Ditto.
11826 * cli/cli-setshow.h: Ditto.
11827 * cli/cli-utils.c: Ditto.
11828 * cli/cli-utils.h: Ditto.
11829 * config/alpha/nm-osf3.h: Ditto.
11830 * config/djgpp/djconfig.sh: Ditto.
11831 * config/i386/nm-fbsd.h: Ditto.
11832 * config/i386/nm-i386gnu.h: Ditto.
11833 * config/nm-linux.h: Ditto.
11834 * config/nm-nto.h: Ditto.
11835 * config/rs6000/nm-rs6000.h: Ditto.
11836 * config/sparc/nm-sol2.h: Ditto.
11837 * darwin-nat-info.c: Ditto.
11840 * gdb-demangle.h: Ditto.
11841 * i386-darwin-nat.c: Ditto.
11842 * i386-darwin-tdep.c: Ditto.
11843 * linux-fork.h: Ditto.
11844 * m32c-tdep.c: Ditto.
11845 * microblaze-linux-tdep.c: Ditto.
11846 * microblaze-rom.c: Ditto.
11847 * microblaze-tdep.c: Ditto.
11848 * microblaze-tdep.h: Ditto.
11849 * mips-linux-tdep.h: Ditto.
11850 * ppc-ravenscar-thread.c: Ditto.
11851 * ppc-ravenscar-thread.h: Ditto.
11852 * prologue-value.c: Ditto.
11853 * prologue-value.h: Ditto.
11854 * ravenscar-thread.c: Ditto.
11855 * ravenscar-thread.h: Ditto.
11856 * sparc-ravenscar-thread.c: Ditto.
11857 * sparc-ravenscar-thread.h: Ditto.
11858 * tilegx-linux-tdep.c: Ditto.
11859 * unwind_stop_reasons.def: Ditto.
11860 * windows-nat.h: Ditto.
11861 * xtensa-linux-tdep.c: Ditto.
11862 * xtensa-xtregs.c: Ditto.
11863 * regformats/regdat.sh: Ditto.
11864 * regformats/regdef.h: Ditto.
11866 2013-02-12 Pedro Alves <palves@redhat.com>
11868 * break-catch-sig.c: Update copyright years.
11870 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11872 Add support for a destructor for ui_out data and use it to
11873 provide a ui_out destructor.
11874 * ui-out.h: Declare the new ui_out destructor.
11875 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11876 * ui-out.c (default_data_destroy): Add a default data destructor
11877 which does nothing.
11878 (default_ui_out_impl): Set the new data_destroy field to
11879 default_data_destroy
11880 (uo_data_destroy): Local function which invokes the data
11881 destructor if present.
11882 (clear_table): Local function which clears the table data of a
11884 (ui_out_destroy): Public function which frees a ui_out object.
11885 (ui_out_table_end): Use the new clear_table function.
11886 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11888 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11891 2013-02-11 Doug Evans <dje@google.com>
11893 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11894 (printf_decfloat): New function. Broken out from ui_printf.
11895 Remove unnecessary code to shift the entire format string down.
11896 (printf_pointer): New function.
11897 (ui_printf): Code to print C strings, wide C strings, decfloats,
11898 and pointers moved to separate functions.
11900 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11902 * valops.c (value_assign): Handling bitfield offset in
11903 `lval_internalvar_component' case.
11905 2013-02-08 Doug Evans <dje@google.com>
11907 * common/format.c (parse_format_string): Fix whitespace.
11909 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11911 * stack.c (return_command): Work around uninitialized variable
11914 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11916 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11917 number of the registers from 36 to 34.
11919 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11921 * NEWS: Mention new AArch64 native and target support.
11923 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11925 * MAINTAINERS (Write After Approval): Add myself.
11927 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11928 Marcus Shawcroft <marcus.shawcroft@arm.com>
11929 Nigel Stephens <nigel.stephens@arm.com>
11930 Yufeng Zhang <yufeng.zhang@arm.com>
11932 * aarch64-linux-nat.c: New file.
11933 * config/aarch64/linux.mh: New file.
11934 * configure.host: Add AArch64.
11935 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11937 2013-02-07 Doug Evans <dje@google.com>
11939 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11940 disassemble command.
11942 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11944 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11945 set_gdbarch_fetch_tls_load_module_address.
11947 2013-02-06 David S. Miller <davem@davemloft.net>
11949 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11950 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11951 * value.c (struct_return_convention): New function.
11952 (using_struct_return): Implement in terms of struct_return_convention.
11953 * value.h (struct_return_convention): Declare.
11954 * stack.c (return_command): Allow successful overriding of the return
11955 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11957 2013-02-06 Tom Tromey <tromey@redhat.com>
11959 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11960 outside of TRY_CATCH.
11962 2013-02-06 Yao Qi <yao@codesourcery.com>
11964 * mi/mi-interp.c: Include "tracepoint.h".
11965 (mi_tsv_modified): Declare.
11966 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11967 (mi_interpreter_init): Call observer_attach_tsv_modified.
11968 (mi_tsv_modified): New.
11969 (mi_tsv_created, mi_tsv_deleted): Update.
11970 * tracepoint.c (trace_variable_command): Call
11971 observer_notify_tsv_modified if the initial value of tsv is
11973 (delete_trace_state_variable): Call
11974 observer_notify_tsv_deleted earlier.
11975 (trace_variable_command): Caller update.
11976 (create_tsv_from_upload): Likewise.
11977 * observer.sh: Declare "struct trace_state_variable".
11979 * NEWS: Mention the new MI notification "=tsv-modified".
11981 2013-02-05 Doug Evans <dje@google.com>
11983 * completer.c (location_completer): Fix typo in comment.
11985 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11987 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11990 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11992 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11993 Refactor if statement to avoid trailing || operator.
11995 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11997 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11999 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
12001 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12002 * configure.host: Add powerpc*-*-freebsd* target.
12003 * configure.tgt: Add target info for powerpc*-*-freebsd*.
12004 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12005 * config/powerpc/fbsd.mh: New file.
12007 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
12008 Denys Vlasenko <dvlasenk@redhat.com>
12009 Pedro Alves <palves@redhat.com>
12011 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12012 (struct elf_internal_linux_prpsinfo): Forward declare.
12013 * gdbarch.h, gdbarch.c: Regenerate.
12014 * linux-tdep.c: Include `cli/cli-utils.h'.
12015 (linux_fill_prpsinfo): New function.
12016 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12017 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12018 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12019 depending on gdbarch pointer bitness.
12020 * ppc-linux-tdep.c: Include elf-bfd.h.
12021 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12024 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12025 Marcus Shawcroft <marcus.shawcroft@arm.com>
12026 Nigel Stephens <nigel.stephens@arm.com>
12027 Yufeng Zhang <yufeng.zhang@arm.com>
12029 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12031 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12032 Marcus Shawcroft <marcus.shawcroft@arm.com>
12033 Nigel Stephens <nigel.stephens@arm.com>
12034 Yufeng Zhang <yufeng.zhang@arm.com>
12036 * aarch64-newlib-tdep.c: New file.
12037 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12039 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12040 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12041 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12042 * osabi.c (gdb_osabi_names): Add "Newlib".
12044 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12045 Marcus Shawcroft <marcus.shawcroft@arm.com>
12046 Nigel Stephens <nigel.stephens@arm.com>
12047 Yufeng Zhang <yufeng.zhang@arm.com>
12049 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12050 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12051 * aarch64-linux-tdep.c: New file.
12052 * aarch64-linux-tdep.h: New file.
12053 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12054 * configure.tgt: Add aarch64-none-linux-gnu.
12056 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12057 Marcus Shawcroft <marcus.shawcroft@arm.com>
12058 Nigel Stephens <nigel.stephens@arm.com>
12059 Yufeng Zhang <yufeng.zhang@arm.com>
12061 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12062 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12063 (ALLDEPFILES): Add aarch64-tdep.c.
12064 * aarch64-tdep.c: New file.
12065 * aarch64-tdep.h: New file.
12066 * configure.tgt: Add AArch64.
12067 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12068 (aarch64-expedite): New definition.
12069 * features/aarch64-core.xml: New file.
12070 * features/aarch64-fpu.xml: New file.
12071 * features/aarch64-without-fpu.c: New file (generated).
12072 * features/aarch64-without-fpu.xml: New file.
12073 * features/aarch64.c: New file (generated).
12074 * features/aarch64.xml: New file.
12075 * regformats/aarch64-without-fpu.dat: New file (generated).
12076 * regformats/aarch64.dat: New file (generated).
12078 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12080 * contrib/expect-read1.c: New file.
12081 * contrib/expect-read1.sh: New file.
12083 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12085 * dwarf2read.c (file_file_name): New function with code from
12087 (file_full_name): Move most of the code to file_file_name.
12088 (macro_start_file): Rename variable full_name to file_name and use
12089 file_file_name for it. Add comp_dir parameter to new_macro_table.
12090 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12091 macro_source_file->filename access by macro_source_fullname call.
12092 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12094 * macrotab.c (struct macro_table): New field comp_dir.
12095 (macro_include): New variables link_fullname and source_fullname.
12096 Replace any macro_source_file->filename access by macro_source_fullname
12098 (macro_lookup_inclusion): Remove the partial filenames checking code.
12099 (check_for_redefinition): New variables source_fullname and
12100 found_key_fullname. Replace any macro_source_file->filename access by
12101 macro_source_fullname call.
12102 (macro_undef): New variables source_fullname and key_fullname. Replace
12103 any macro_source_file->filename access by macro_source_fullname call.
12104 (macro_lookup_definition): New variables retval and source_fullname.
12105 Replace any macro_source_file->filename access by macro_source_fullname
12107 (foreach_macro): New variable key_fullname. Replace any
12108 macro_source_file->filename access by macro_source_fullname call.
12109 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12110 macro_source_file->filename access by macro_source_fullname call.
12111 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12112 (macro_source_fullname): New function.
12113 * macrotab.h (struct macro_source_file): Extent the filename field
12115 (new_macro_table): New parameter comp_dir, add a comment for it.
12116 (macro_source_fullname): new declaration.
12118 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12120 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12121 this_real_name to outer block. Use it also for
12122 compare_filenames_for_search.
12123 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12124 with dw2_get_real_path for file_matcher, considering also
12125 BASENAMES_MAY_DIFFER.
12126 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12128 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12130 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12131 to the file_matcher parameter. Pass 0 to it.
12132 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12133 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12134 NULL psymtab_to_fullname result.
12135 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12136 an expected filename instead.
12137 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12138 file_matcher parameter. Call also psymtab_to_fullname, after newly
12139 considering BASENAMES_MAY_DIFFER.
12140 * source.c (rewrite_source_path): Remove static.
12141 * source.h (rewrite_source_path): New declaration.
12142 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12143 the expand_symtabs_matching field. Comment it.
12144 * symtab.c (file_matches): New function comment. Add parameter
12145 basenames, implement it.
12146 (search_symbols_file_matches): Add basenames parameter. Update the
12147 file_matches caller.
12148 (search_symbols): Match FILES also against symtab_to_fullname.
12149 Optimize it for BASENAMES_MAY_DIFFER.
12151 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12153 * source.c (print_source_lines_base): Print for TUI also "fullname".
12154 * tui/tui-data.c (init_content_element): Change tui_locator_element
12155 field to full_name.
12156 * tui/tui-data.h (struct tui_locator_element): Likewise.
12157 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12158 tui_update_locator_filename calls to tui_update_locator_fullname.
12159 Replace symtab->filename refererence by symtab_to_fullname call.
12160 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12161 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12162 field to full_name. Replace symtab->filename refererence by
12163 symtab_to_fullname call.
12164 (tui_show_symtab_source): Rename parameter to fullname. Change
12165 tui_locator_element field to full_name.
12166 * tui/tui-stack.c: Include source.h.
12167 (tui_set_locator_filename): Rename the declaration to ...
12168 (tui_set_locator_fullname): ... here. Rename its parameter to
12169 fullname, updates its comment.
12170 (tui_set_locator_info): Rename its parameter to fullname.
12171 (tui_set_locator_filename): Rename the definition to ...
12172 (tui_set_locator_fullname): ... here. Rename its parameter to
12173 fullname, updates its comment. Change tui_locator_element field to
12175 (tui_set_locator_info): Rename its parameter to fullname.
12176 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12177 (tui_update_locator_filename): Rename to ...
12178 (tui_update_locator_fullname): ... here. Rename callee to
12179 tui_set_locator_fullname.
12180 (tui_show_frame_info): Replace symtab->filename refererence by
12181 symtab_to_fullname call.
12182 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12183 (tui_update_locator_fullname): ... here.
12184 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12185 tui_update_locator_fullname. Replace symtab->filename refererence by
12186 symtab_to_fullname call.
12187 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12188 Rename the callee to tui_update_locator_fullname.
12189 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12191 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12193 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12194 by symtab_to_filename_for_display calls.
12195 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12196 (clear_command): New variable sal_fullname, initialize it. Replace
12197 compare_filenames_for_search by filename_cmp with sal_fullname.
12198 (say_where, update_static_tracepoint): Replace symtab->filename
12199 refererences by symtab_to_filename_for_display calls.
12200 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12202 * dwarf2read.c: Include source.h.
12203 (fixup_go_packaging): Replace symtab->filename refererences by
12204 symtab_to_filename_for_display calls.
12205 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12206 Replace symtab->filename refererences by symtab_to_filename_for_display
12208 (create_sals_line_offset, convert_linespec_to_sals): New variable
12209 fullname, initialize it, replace symtab->filename reference by the
12211 * linux-fork.c: Include source.h.
12212 (info_checkpoints_command): Replace symtab->filename refererences by
12213 symtab_to_filename_for_display calls.
12214 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12215 by symtab_to_filename_for_display calls.
12216 * mdebugread.c: Include source.h.
12217 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12218 symtab_to_filename_for_display calls.
12219 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12220 (mi_cmd_file_list_exec_source_files): Likewise.
12221 * printcmd.c: Include source.h.
12222 (build_address_symbolic): Replace symtab->filename refererences by
12223 symtab_to_filename_for_display calls.
12224 * psymtab.c (partial_map_symtabs_matching_filename)
12225 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12226 with psymtab_to_fullname.
12227 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12228 by symtab_to_filename_for_display calls.
12229 (stpy_get_filename): New variable filename, initialize it, use instead
12230 of symtab->filename refererences.
12231 (salpy_str): Make variable filename const char *. Replace
12232 symtab->filename refererences by symtab_to_filename_for_display calls.
12233 * skip.c: Include source.h and filenames.h.
12234 (skip_file_command): Remove const from the symtab variable. Replace
12235 symtab->filename refererences by symtab_to_fullname call.
12236 (function_name_is_marked_for_skip): New variables searched_for_fullname
12237 and fullname. Use them to search also with symtab's fullname.
12238 * source.c (find_source_lines): Replace symtab->filename refererences
12239 by symtab_to_filename_for_display calls.
12240 (print_source_lines_base): New variable filename, use it instead of
12241 symtab->filename. Replace symtab->filename refererences by
12242 symtab_to_filename_for_display calls.
12243 (line_info, forward_search_command): Replace symtab->filename
12244 refererences by symtab_to_filename_for_display calls.
12245 (reverse_search_command): Replace symtab->filename refererences by
12246 symtab_to_filename_for_display calls. New variable filename for it.
12247 * stack.c (frame_info): Likewise.
12248 * symmisc.c: Include source.h.
12249 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12250 (maintenance_info_symtabs): Replace symtab->filename refererences by
12251 symtab_to_filename_for_display calls.
12252 * symtab.c (iterate_over_some_symtabs): Call
12253 compare_filenames_for_search also with symtab_to_fullname.
12254 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12255 symtab->filename refererences by symtab_to_filename_for_display calls.
12256 (find_line_symtab): Replace symtab->filename refererences by
12257 symtab_to_filename_for_display calls.
12258 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12259 (print_symbol_info): Make the last parameter const char *. New
12260 variable s_filename. Use it in the function.
12261 (symtab_symbol_info): Make the last_filename variable const char *.
12262 Replace symtab->filename refererences by symtab_to_filename_for_display
12264 (rbreak_command): New variable fullname. Use it. Replace
12265 symtab->filename refererence by symtab_to_filename_for_display call.
12266 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12267 (print_one_static_tracepoint_marker): Replace symtab->filename
12268 refererences by symtab_to_filename_for_display calls.
12269 * tui/tui-source.c (tui_set_source_content): New variables filename and
12270 s_filename. Replace symtab->filename refererences by this variable.
12271 Replace other symtab->filename refererences by
12272 symtab_to_filename_for_display calls.
12274 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12275 Jan Kratochvil <jan.kratochvil@redhat.com>
12277 Add a new variable that controls a way in which filenames are
12279 * NEWS (set filename-display): New entry.
12280 * source.c (filename_display_basename, filename_display_relative)
12281 (filename_display_absolute, filename_display_kind_names)
12282 (filename_display_string, show_filename_display_string)
12283 (symtab_to_filename_for_display): New.
12284 (_initialize_source): Added initialization of 'filename-display'
12286 * source.h (symtab_to_filename_for_display): Added declaration.
12287 * stack.c (print_frame): Added new variable and calling of a new
12288 function and condition with this variable. Changed third argument of
12289 calling of a function.
12291 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12293 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12294 Rename field reference filename to fullname.
12295 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12296 fullname. New comment for it.
12297 * tui/tui-source.c (tui_set_source_content): Rename field reference
12298 filename to fullname. Initialize field by symtab_to_fullname now.
12299 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12300 reference filename to fullname. Use symtab_to_fullname during
12303 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12306 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12307 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12308 filename to fullname. Rename variable this_name to this_fullname.
12309 Lowercase FILENAME_CMP call.
12310 (dw2_find_symbol_file): New comment for the returned string.
12311 (dwarf2_gdb_index_functions): Rename the function to
12312 dw2_expand_symtabs_with_fullname.
12313 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12314 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12316 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12317 * symfile.h (struct quick_symbol_functions): Rename field
12318 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12319 parameter filename to fullname. Document returned string meaning for
12321 * symtab.c (find_line_symtab): Rename the called function to
12322 expand_symtabs_with_fullname.
12324 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12327 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12328 call of filename_cmp with compare_filenames_for_search.
12329 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12330 is_abs, unify the call of FILENAME_CMP with
12331 compare_filenames_for_search. New gdb_asserts for real_path and name.
12332 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12333 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12334 * symfile.h (struct quick_symbol_functions): Extend the comment for
12335 map_symtabs_matching_filename.
12336 * symtab.c (compare_filenames_for_search): Remove the function comment
12337 relative path requirement. Handle absolute filenames, with a comment.
12338 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12339 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12340 real_path and name. Unify the call of compare_filenames_for_search
12342 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12344 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12347 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12348 source_file references by symtab field references. Remove variables
12350 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12351 (clear_command, say_where): Replace bp_location field source_file
12352 references by symtab field references.
12353 (bp_location_dtor): Remove the source_file reference.
12354 (update_static_tracepoint): Replace bp_location field source_file
12355 references by symtab field references.
12356 (breakpoint_free_objfile): New function.
12357 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12358 Replace the field source_file by field symtab, extend its comment.
12359 (breakpoint_free_objfile): New declaration.
12360 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12361 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12362 field source_file references by symtab field references.
12364 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12366 Replace xfullpath calls by gdb_realpath calls.
12367 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12369 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12370 Remove it from the iterate_over_some_symtabs call.
12371 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12372 Remove it from the dw2_map_expand_apply calls, remove a block handling
12374 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12375 Remove it from the iterate_over_some_symtabs call.
12376 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12377 Remove it from the partial_map_expand_apply calls, remove a block
12378 handling it. Drop gdb_realpath call and cleanups from the real_path
12380 * source.c (openp): Drop the comment part about xfullpath. Replace
12381 xfullpath calls by gdb_realpath calls.
12382 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12383 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12384 from method map_symtabs_matching_filename and its comment.
12385 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12387 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12388 remove it also from the function comment, remove a block handling it.
12389 Drop gdb_realpath call and cleanups from the real_path handling.
12390 (iterate_over_symtabs): Drop variable full_path and its use.
12391 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12392 * utils.c (xfullpath): Remove.
12393 * utils.h (xfullpath): Remove.
12395 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12397 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12398 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12399 (ALLDEPFILES): Add ppc64-tdep.c.
12400 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12401 ppc64-tdep.o to gdb_target_obs.
12402 * ppc64-tdep.h: New file.
12403 * ppc64-tdep.c: New file.
12404 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12405 ppc-linux-tdep.c to here.
12406 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12407 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12408 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12409 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12410 from ppc-linux-tdep.c to here.
12411 (ppc64_convert_from_func_ptr_addr): Rename from
12412 ppc64_linux_convert_from_func_ptr_addr to
12413 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12416 (read_insn): Move from ppc-linux-tdep.c to here.
12417 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12418 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12419 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12420 Removed above functions.
12421 (ppc_linux_init_abi): Adjust.
12423 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12425 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12427 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12429 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12431 2013-02-01 Pedro Alves <palves@redhat.com>
12433 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12434 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12436 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12438 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12439 files with no separate debug info.
12440 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12441 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12442 only for files with no separate debug info.
12444 2013-01-31 Tom Tromey <tromey@redhat.com>
12446 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12448 (struct jit_program_space_data): Rename from jit_inferior_data.
12450 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12451 Change return type. Attach data to program space.
12452 (jit_program_space_data_cleanup): Rename from
12453 jit_inferior_data_cleanup; change argument type.
12454 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12456 (jit_register_code): Update.
12457 (jit_update_inferior_cache): Remove.
12458 (jit_breakpoint_deleted): Get jit data from the location's program
12460 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12461 'ps_data', change type.
12462 (jit_inferior_init, jit_breakpoint_re_set_internal)
12463 (jit_event_handler): Update.
12464 (free_objfile_data): Get data from objfile's program space.
12465 (_initialize_jit): Update.
12467 2013-01-31 Tom Tromey <tromey@redhat.com>
12470 * jit.c (struct jit_inferior_data) <cached_code_address,
12471 jit_breakpoint>: New fields.
12472 (jit_breakpoint_re_set_internal): Fix logging. Only create
12473 breakpoint if cached address has changed.
12474 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12476 (_initialize_jit): Register breakpoint deleted observer.
12478 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12480 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12481 (save_infcall_suspend_state): Ifdef out unused inf.
12482 (restore_infcall_suspend_state): Ifdef out unused inf.
12483 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12484 (jit_frame_sniffer): Remove unused inf_data.
12486 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12488 * c-exp.y (classify_inner_name): Remove unused type.
12489 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12490 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12492 (c_get_string): Remove unused kind.
12493 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12495 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12497 * charset.c (intermediate_encoding): Remove unused i.
12498 * completer.c (signal_completer): Remove unused i.
12499 * continuations.c (discard_my_continuations_1): Remove unused
12501 * corelow.c (core_close): Remove unuseD name.
12502 (get_core_siginfo): Remove unused pid.
12503 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12505 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12506 (loclist_describe_location): Remove unused first.
12507 * event-top.c (command_line_handler): Remove unused got_eof.
12508 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12509 (resize_section_table): Remove unused old_value.
12510 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12511 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12512 * i386-tdep.c (i386_process_record): Remove unused rex.
12513 * infcmd.c (get_return_value): Remove unused uiout.
12514 * jv-lang.c (type_from_class): Remove unused is_array.
12515 * jv-valprint.c (java_val_print): Remove unused i.
12516 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12517 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12518 * m2-typeprint.c (m2_print_type): Remove unused code.
12519 * macroexp.c (get_character_constant): Remove unused body_start.
12520 (macro_stringify): Remove unused result.
12521 * objc-lang.c (find_methods): Remove unused gdbarch.
12522 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12523 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12524 * stack.c (print_frame_args): Remove unused summary.
12525 * thread.c (thread_apply_command): Remove unused p.
12526 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12527 * valops.c (search_struct_method): Remove unused skip.
12528 * valprint.c (generic_val_print): Remove unused byte_order.
12529 * varobj.c (varobj_update): Remove unused changed.
12530 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12531 (alias_command): Remove unused c.
12532 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12533 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12535 (mi_cmd_data_write_memory): Remove unused word_format.
12536 (mi_cmd_data_write_memory_bytes): Remove unused r.
12537 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12539 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12540 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12543 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12545 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12546 * symtab.c (iterate_over_symtabs): Remove unused s.
12547 (find_pc_sect_symtab): Remove unused pspAce.
12548 (find_pc_sect_line): Remove unused alt_symtab.
12549 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12550 (completion_list_add_name): Remove unused newsize.
12552 2013-01-31 Tom Tromey <tromey@redhat.com>
12555 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12558 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12560 * target.c (target_read_string): Remove unused origlen.
12562 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12564 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12565 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12566 * ax-general.c (ax_print): Remove unused is_float.
12567 * blockframe.c (block_innermost_frame): Remove unused start, end.
12568 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12570 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12572 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12573 (svr4_read_so_list): Remove unused lmo.
12574 * solib-target.c (solib_target_relocate_section_addresses): Remove
12577 2013-01-30 Tom Tromey <tromey@redhat.com>
12579 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12581 2013-01-30 Tom Tromey <tromey@redhat.com>
12583 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12584 * utils.c (gnu_debuglink_crc32): Remove.
12585 * utils.h (gnu_debuglink_crc32): Don't declare.
12587 2013-01-30 Tom Tromey <tromey@redhat.com>
12589 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12590 (read_structure_type, read_enumeration_type): Remove cast.
12592 2013-01-30 Tom Tromey <tromey@redhat.com>
12594 * dwarf2read.c (read_namespace_type): Remove cast.
12595 (read_typedef): Likewise.
12597 2013-01-29 Tom Tromey <tromey@redhat.com>
12599 * dwarf2read.c (free_dwo_file): Remove assert.
12601 2013-01-29 Tom Tromey <tromey@redhat.com>
12603 * value.c (deprecated_set_value_modifiable): Remove.
12604 * value.h (deprecated_set_value_modifiable): Remove.
12606 2013-01-28 Doug Evans <dje@google.com>
12608 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12609 to addresses from dwo files.
12611 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12613 * valops.c (find_overload_match): Remove unused argument 'lax'.
12614 * value.h: Remove unused argument 'lax' from the declaration of
12615 find_overload_match.
12616 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12617 to find_overload_match.
12618 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12619 argument to find_overload_match.
12621 2013-01-25 Tom Tromey <tromey@redhat.com>
12623 * dwarf2read.c (processing_has_namespace_info): Remove.
12624 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12625 (process_die, read_func_scope, dwarf2_start_symtab)
12626 (new_symbol_full): Update.
12628 2013-01-25 Tom Tromey <tromey@redhat.com>
12630 * cp-namespace.c (cp_set_block_scope): Remove.
12631 * cp-support.h (cp_set_block_scope): Remove.
12632 * dbxread.c: Include block.h.
12633 (cp_set_block_scope): New function.
12634 (process_one_symbol): Update.
12635 * dwarf2read.c (read_func_scope): Use block_set_scope.
12637 2013-01-25 Pedro Alves <palves@redhat.com>
12639 * remote.c (add_current_inferior_and_thread): Tweak comment.
12641 2013-01-25 Tom Tromey <tromey@redhat.com>
12643 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12644 (cp_add_using_directive): Add 'copy_names' argument.
12645 * cp-support.h (cp_add_using_directive): Update.
12646 (struct using_direct) <import_src, import_dest, alias,
12647 declaration>: Now const.
12648 * dwarf2read.c (read_import_statement): Use obconcat.
12649 Don't copy names passed to cp_add_using_directive.
12651 2013-01-25 Tom Tromey <tromey@redhat.com>
12653 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12655 2013-01-25 Pedro Alves <palves@redhat.com>
12657 * remote.c (stop_reply_extract_thread): New.
12658 (add_current_inferior_and_thread): New parameter 'wait_status'.
12660 (remote_start_remote): Pass wait status to
12661 add_current_inferior_and_thread.
12662 (extended_remote_run): Update comment.
12663 (extended_remote_create_inferior_1): Pass wait status to
12664 add_current_inferior_and_thread.
12666 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12667 Ulrich Weigand <uweigand@de.ibm.com>
12669 * valarith.c (value_vector_widen): New function for replicating a
12670 scalar into a vector.
12671 (value_binop): Use value_vector_widen to widen scalar to vector
12672 rather than casting, this better matches gcc C behaviour.
12673 * valops.c (value_casst): Update logic for casting between vector
12674 types, and for casting from scalar to vector, try to match gcc C
12676 * value.h (value_vector_widen): Declare.
12677 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12678 function, handle special case for casting scalar to vector.
12679 (opencl_relop): Use opencl_value_cast.
12680 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12681 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12682 in order to use opencl_value_cast.
12684 2013-01-25 Yao Qi <yao@codesourcery.com>
12686 * event-loop.c: Include "queue.h".
12687 (gdb_event_p): New typedef.
12688 (DECLARE_QUEUE_P): Use.
12689 (DEFINE_QUEUE_P): Use.
12690 (async_queue_event): Remove.
12691 (gdb_event_xfree): New.
12692 (initialize_event_loop): New.
12693 (process_event): Use QUEUE macros.
12694 (event_queue): Remove.
12695 (gdb_wait_for_event): Caller update.
12696 (check_async_event_handlers): Likewise.
12697 (poll_timers): Likewise.
12698 * event-loop.h (initialize_event_loop): Declare.
12699 * event-loop.c (gdb_event_xfree): New.
12700 * top.c (gdb_init): Call initialize_event_loop.
12702 2013-01-25 Yao Qi <yao@codesourcery.com>
12704 * event-loop.c (async_queue_event): Remove one parameter
12705 'position'. Remove code handling 'position' == TAIL.
12706 (gdb_wait_for_event): Caller update.
12707 (check_async_event_handlers): Caller update.
12708 (poll_timers): Caller update.
12709 * event-loop.h (enum queue_position): Remove.
12711 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12713 * MAINTAINERS: Update my email.
12715 2013-01-25 Yao Qi <yao@codesourcery.com>
12717 * main.c (print_gdb_help): Remove "--epoch" from the help
12720 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12722 * symtab.c (skip_prologue_using_sal): Consider a file
12723 change the same as an increased line number
12725 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12727 * MAINTAINERS (Write After Approval): Add myself to the list.
12729 2013-01-24 Tom Tromey <tromey@redhat.com>
12731 * ada-lang.h (ada_decode_symbol): Make return type const.
12732 * ada-lang.c (ada_decode_symbol): Likewise.
12734 2013-01-23 Doug Evans <dje@google.com>
12736 * linespec.c (find_linespec_symbols): Make static.
12738 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12740 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12741 type on float conversion for complex type.
12743 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12745 Add a new class gdb.Architecture which exposes GDB's
12746 internal representation of architecture via GDB Python API.
12747 * Makefile.in: Add entries corresponding to the new file
12749 * NEWS (Python Scripting): Add entries for the new class
12750 gdb.Architecture and the new method gdb.Frame.architecture.
12751 * python/py-arch.c: Implement gdb.Architecture class.
12752 * python/py-frame.c (frapy_arch): Implement the method
12753 gdb.Frame.architecture().
12754 (frame_object_methods): Add 'architecture' to the method table.
12755 * python/python-internal.h: Add declarations of new utility
12757 * python/python.c (_initialize_python): Initialize
12758 gdb.Architecture class.
12760 2013-01-23 Doug Evans <dje@google.com>
12762 Work around binutils/15021.
12763 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12764 type_unit_group out of union s. All uses updated.
12765 (read_index_from_section): Watch for index version 8.
12766 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12767 an imported symtab.
12768 (write_psymtabs_to_index): Increment version number to 8.
12770 2013-01-22 Pedro Alves <palves@redhat.com>
12772 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12775 2013-01-22 Pedro Alves <palves@redhat.com>
12777 * annotate.c (annotate_breakpoints_changed): Rename to ...
12778 (annotate_breakpoints_invalid): ... this. Make static.
12779 (breakpoint_changed): Adjust.
12780 (_initialize_annotate): Always install the observers. Install a
12781 "breakpoint_created" observer.
12782 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12783 * breakpoint.c (set_breakpoint_condition)
12784 (breakpoint_set_commands, do_map_commands_command)
12785 (init_raw_breakpoint, clear_command, set_ignore_count)
12786 (enable_breakpoint_disp): No longer call
12787 annotate_breakpoints_changed.
12789 2013-01-22 Pedro Alves <palves@redhat.com>
12791 * annotate.c: Include "inferior.h".
12792 (frames_invalid_emitted)
12793 (breakpoints_invalid_emitted): New globals.
12794 (async_background_execution_p): New function.
12795 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12796 emitting the annotation if it has already been emitted.
12797 (annotate_display_prompt): New function.
12798 * annotate.h (annotate_display_prompt): New declaration.
12799 * event-top.c: Include annotate.h.
12800 (display_gdb_prompt): Call annotate_display_prompt.
12802 2013-01-22 Pedro Alves <palves@redhat.com>
12804 * annotate.c (ignore_count_changed): Delete.
12805 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12806 (annotate_ignore_count_change): Delete.
12807 (annotate_stopped): Don't emit a delayed breakpoints-changed
12809 * annotate.h (annotate_ignore_count_change): Delete.
12810 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12811 annotate_ignore_count_change.
12813 2013-01-22 Tom Tromey <tromey@redhat.com>
12815 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12816 require_rvalue for a register location.
12818 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12820 * breakpoint.c (print_one_breakpoint_location): Add MI
12821 field 'thread-groups' when printing a breakpoint.
12822 (output_thread_groups): New function.
12824 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12826 * python/lib/gdb/commands/explore.py
12827 (CompoundExplorer.explore_expr): Correct the name of a method
12829 (ExploreTypeCommand.invoke): Add a missing 'return'.
12831 2013-01-21 Tom Tromey <tromey@redhat.com>
12833 * gdb_obstack.h (obconcat): Move declaration here, from...
12834 * symfile.h (obconcat): ... here.
12835 * gdb_obstack.c: New file.
12836 (obconcat): Move from...
12837 * symfile.c (obconcat): ... here.
12838 * Makefile.in (SFILES): Add gdb_obstack.c.
12839 (COMMON_OBS): Add gdb_obstack.o.
12841 2013-01-21 Tom Tromey <tromey@redhat.com>
12843 * symfile.h (obsavestring): Don't declare.
12844 * symfile.c (obsavestring): Remove.
12845 * ada-exp.y: Use obstack_copy0, not obsavestring.
12846 * ada-lang.c: Use obstack_copy0, not obsavestring.
12847 * coffread.c: Use obstack_copy0, not obsavestring.
12848 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12849 * dbxread.c: Use obstack_copy0, not obsavestring.
12850 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12851 * jit.c: Use obstack_copy0, not obsavestring.
12852 * mdebugread.c: Use obstack_copy0, not obsavestring.
12853 * psymtab.c: Use obstack_copy0, not obsavestring.
12854 * stabsread.c: Use obstack_copy0, not obsavestring.
12855 * xcoffread.c: Use obstack_copy0, not obsavestring.
12857 2013-01-21 Tom Tromey <tromey@redhat.com>
12859 * dwarf2read.c (fixup_go_packaging): Save package name
12860 on objfile obstack.
12861 * gdbtypes.c (init_type): Don't copy name.
12863 2013-01-21 Tom Tromey <tromey@redhat.com>
12865 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12867 (struct attribute) <u.str>: Now const.
12868 (struct fnfieldlist) <name>: Now const.
12869 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12870 (partial_die_parent_scope): Make return type const.
12871 (partial_die_full_name, add_partial_symbol): Update.
12872 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12874 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12875 (read_file_scope, read_func_scope, dwarf2_add_field)
12876 (dwarf2_add_member_fn, read_structure_type)
12877 (process_enumeration_scope, read_array_type, read_module_type)
12878 (read_base_type, read_subrange_type): Update.
12879 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12880 (new_symbol_full, guess_full_die_structure_name): Update.
12881 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12882 (dwarf2_name): Return const type.
12883 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12886 2013-01-21 Tom Tromey <tromey@redhat.com>
12888 * gdbtypes.c (init_type): Make 'name' const.
12889 * gdbtypes.h (init_type): Update.
12891 2013-01-21 Tom Tromey <tromey@redhat.com>
12893 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12894 (start_symtab): Make 'name' and 'dirname' const. Use
12895 set_last_source_file.
12896 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12897 (last_source_file): Define. Now static.
12898 (set_last_source_file, get_last_source_file): New functions.
12899 * buildsym.h (last_source_file): Don't declare.
12900 (start_symtab): Update.
12901 (set_last_source_file, get_last_source_file): Declare.
12902 * coffread.c (complete_symtab): Use set_last_source_file.
12903 (coff_end_symtab): Likewise.
12904 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12905 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12906 set_last_source_file.
12907 (process_one_symbol): Use get_last_source_file.
12908 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12909 (psymtab_to_symtab_1): Use get_last_source_file.
12910 * xcoffread.c (process_linenos): Use get_last_source_file.
12911 (complete_symtab): Use set_last_source_file.
12912 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12913 (scan_xcoff_symtab): Use set_last_source_file.
12915 2013-01-21 Tom Tromey <tromey@redhat.com>
12917 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12918 (symbol_set_names): Remove casts. Handle field const-ness.
12920 2013-01-21 Tom Tromey <tromey@redhat.com>
12922 * dwarf2read.c (new_symbol_full): Remove cast.
12923 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12924 * symtab.h (symbol_set_demangled_name): Update.
12926 2013-01-21 Tom Tromey <tromey@redhat.com>
12928 * main.c (captured_main): Call bfd_init.
12930 2013-01-21 Tom Tromey <tromey@redhat.com>
12932 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12933 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12934 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12937 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12939 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12941 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12943 Fix gdb.fortran/common-block.exp crash in PIE mode.
12944 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12946 * f-valprint.c (info_common_command_for_block): Expect
12947 LOC_COMMON_BLOCK in gdb_assert.
12948 * symtab.h (struct general_symbol_info): Update comment for the
12949 common_block member.
12950 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12951 (enum address_class): New member LOC_COMMON_BLOCK.
12953 2013-01-18 David Blaikie <dblaikie@gmail.com>
12955 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12957 2013-01-18 Tom Tromey <tromey@redhat.com>
12960 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12961 Call require_rvalue.
12963 2013-01-18 Yao Qi <yao@codesourcery.com>
12965 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12966 (dbx_read_symtab): New declaration.
12967 (dbx_psymtab_to_symtab): Delete.
12968 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12969 Rename parameter PST to SELF. Exchanged two parameters.
12970 (start_psymtab): Caller update.
12971 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12972 (dwarf2_read_symtab): New declaration.
12973 (dwarf2_psymtab_to_symtab): Delete.
12974 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12975 Rename parameter PST to SELF. Exchanged two parameters.
12976 (create_partial_symtab): Caller update.
12977 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12978 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12979 Rename parameter PST to SELF. Exchanged two parameters.
12980 (parse_partial_symbols, new_psymtab): Caller update.
12981 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12983 * psymtab.c (psymtab_to_symtab): Caller update.
12984 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12985 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12986 Rename parameter PST to SELF. Exchanged two parameters.
12987 (xcoff_start_psymtab): Caller update.
12989 2013-01-18 Yao Qi <yao@codesourcery.com>
12991 * infrun.c (proceed): Rename local variable 'oneproc' to
12994 2013-01-17 Doug Evans <dje@google.com>
12996 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12997 (dw2_build_type_unit_groups): Delete. All uses updated.
12999 * symtab.h (struct symbol_search): Add comment.
13001 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13003 * symtab.c (compare_filenames_for_search): New comment for
13006 2013-01-17 Tom Tromey <tromey@redhat.com>
13008 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13010 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13012 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13013 initialize it by existing make_cleanup. Call new do_cleanups.
13015 2013-01-17 Tom Tromey <tromey@redhat.com>
13017 * cp-abi.c (cp_abi_completer): New function.
13018 (_initialize_cp_abi): Set completer for "set cp-abi".
13020 2013-01-17 Tom Tromey <tromey@redhat.com>
13022 * mem-break.c: Remove obsolete comment.
13023 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13025 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13027 * jit.c (jit_reader_load_command): Interpret the jit reader name
13028 as an absolute path if it begins with a forward slash.
13030 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13034 * jit.c (finalize_symtab): Ensure that only the global block has a
13037 2013-01-17 Pedro Alves <palves@redhat.com>
13039 * acinclude.m4: Include ../config/plugins.m4,
13040 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13041 * Makefile.in (aclocal_m4_deps): Update.
13042 * aclocal.m4: Renegerate.
13044 2013-01-16 Doug Evans <dje@google.com>
13046 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13048 2013-01-16 Pedro Alves <palves@redhat.com>
13049 Tom Tromey <tromey@redhat.com>
13052 * NEWS: Add "catch signal".
13053 * breakpoint.c (base_breakpoint_ops): No longer static.
13054 (bpstat_explains_signal): New function.
13055 (init_catchpoint): No longer static.
13056 (base_breakpoint_explains_signal): New function.
13057 (base_breakpoint_ops): Initialize new field.
13058 * breakpoint.h (enum bpstat_signal_value): New.
13059 (struct breakpoint_ops) <explains_signal>: New field.
13060 (bpstat_explains_signal): Remove macro, declare as function.
13061 (base_breakpoint_ops, init_catchpoint): Declare.
13062 * break-catch-sig.c: New file.
13063 * inferior.h (signal_catch_update): Declare.
13064 * infrun.c (signal_catch): New global.
13065 (handle_syscall_event): Update for change to
13066 bpstat_explains_signal.
13067 (handle_inferior_event): Likewise. Always handle random signals
13069 (signal_cache_update): Check signal_catch.
13070 (signal_catch_update): New function.
13071 (_initialize_infrun): Initialize signal_catch.
13072 * Makefile.in (SFILES): Add break-catch-sig.c.
13073 (COMMON_OBS): Add break-catch-sig.o.
13075 2013-01-16 Tom Tromey <tromey@redhat.com>
13077 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13078 (print_one_catch_solib, print_one_catch_syscall)
13079 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13082 2013-01-16 Yao Qi <yao@codesourcery.com>
13084 * printcmd.c (current_display_number): Make it static.
13086 2013-01-16 Yao Qi <yao@codesourcery.com>
13088 * infcmd.c (step_once): Don't check '!single_inst' as it was
13091 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13093 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13095 2013-01-14 Tom Tromey <tromey@redhat.com>
13097 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13099 * command.h (add_setshow_string_noescape_cmd): Update.
13100 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13101 (complete_set_gnutarget): New function.
13102 (_initialize_core): Set the "set gnutarget" completer.
13104 2013-01-14 Tom Tromey <tromey@redhat.com>
13107 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13108 (c_type_print_modifier): Likewise.
13109 * dwarf2read.c (read_tag_restrict_type): New function.
13110 (read_type_die_1): Handle DW_TAG_restrict_type.
13111 * gdbtypes.c (make_restrict_type): New function.
13112 (recursive_dump_type): Handle TYPE_RESTRICT.
13113 * gdbtypes.h (enum type_flag_values): Renumber.
13114 (enum type_instance_flag_value): Add
13115 TYPE_INSTANCE_FLAG_RESTRICT.
13116 (TYPE_RESTRICT): New macro.
13117 (make_restrict_type): Declare.
13119 2013-01-14 Tom Tromey <tromey@redhat.com>
13122 * psymtab.c (struct psymtab_state): New.
13123 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13125 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13126 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13128 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13129 Pedro Alves <palves@redhat.com>
13133 * remote.c (remote_threads_info): Make a copy of the reply from
13134 qfThreadInfo and use that instead of rs->buf.
13136 2013-01-14 Yao Qi <yao@codesourcery.com>
13138 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13139 (dbx_psymtab_to_symtab): Likewise.
13140 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13141 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13142 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13144 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13146 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13147 make_cleanup_restore_current_language. Call set_language. Move
13148 OLD_CHAIN and INNER_CHAIN cleanups.
13149 * utils.c (do_restore_current_language)
13150 (make_cleanup_restore_current_language): New functions.
13151 * utils.h (make_cleanup_restore_current_language): New declaration.
13153 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13155 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13156 non-existing files.
13158 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13159 non-existing files if FILENAME is already absolute.
13161 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13163 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13164 fputs_filtered. Append trailing newline.
13166 2013-01-11 Yao Qi <yao@codesourcery.com>
13167 Stan Shebs <stan@codesourcery.com>
13169 * psymtab.c (init_psymbol_list): Clarify the comment.
13171 2013-01-11 Yao Qi <yao@codesourcery.com>
13173 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13174 (update_dprintf_command_list): Assert that 'printf_line' is
13175 non-null. Remove condition check.
13177 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13180 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13182 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13184 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13186 2013-01-09 Anthony Green <green@moxielogic.com>
13188 * cp-abi.c (cplus_print_vtable): Don't return value from void
13190 * ada-lang.c (re_set_catch_assert): Ditto.
13192 2013-01-09 Doug Evans <dje@google.com>
13194 * symfile.h (quick_symbol_functions): Delete member
13195 pre_expand_symtabs_matching. All uses removed.
13196 * dwarf2read.c (dw2_lookup_symbol): Implement.
13197 (dw2_do_expand_symtabs_matching): Delete.
13198 (dw2_pre_expand_symtabs_matching): Delete.
13199 (struct dw2_symtab_iterator): New type.
13200 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13201 (dw2_expand_symtabs_for_function): Rewrite.
13202 (dwarf2_gdb_index_functions): Update.
13203 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13204 (psym_functions): Update.
13206 2013-01-09 Tom Tromey <tromey@redhat.com>
13208 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13209 * configure: Rebuild.
13210 * configure.ac: Add somread.o to the build if BFD has SOM
13212 * somread.c: Include som/aout.h, not syms.h.
13213 (som_symtab_read): Use som_external_symbol_dictionary_record.
13214 Unpack records manually.
13215 (_initialize_somread): Declare.
13217 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13219 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13220 Cast return_address to 64bits.
13222 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13224 * printcmd.c: Remove define of function output_command.
13225 * tracepoint.c: Remove extern of function output_command.
13226 * valprint.h: (output_command): New extern.
13228 2013-01-07 Tom Tromey <tromey@redhat.com>
13230 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13232 (objc_language_defn): Use c_printchar, c_printstr,
13235 2013-01-07 Tom Tromey <tromey@redhat.com>
13239 * ada-valprint.c (printstr, print_field_values): Remove
13241 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13243 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13245 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13246 * main.c (captured_main): Remove "epoch" argument.
13247 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13248 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13249 * p-valprint.c (pascal_object_print_value_fields): Remove
13251 * printcmd.c (print_command_1): Remove 'inspect' argument.
13252 (print_command, call_command): Update.
13253 (inspect_command): Remove.
13254 (_initialize_printcmd): Make "inspect" an alias for "print".
13255 * top.c (epoch_interface): Remove.
13256 * top.h (epoch_interface): Remove.
13257 * valprint.c (user_print_options): Update.
13258 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13259 * valprint.h (struct value_print_options) <inspect_it>: Remove
13262 2013-01-04 Tom Tromey <tromey@redhat.com>
13264 * valprint.h (read_string): Add 'extern'.
13266 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13268 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13269 used to decide whether to define darwin_read_dyld_info or not.
13271 2013-01-03 Pierre Muller <muller@sourceware.org>
13273 * main.c (relocate_gdb_directory): Avoid calling stat function
13276 2013-01-03 Yao Qi <yao@codesourcery.com>
13278 * psymtab.c (fixup_psymbol_section): Update declaration.
13279 (fixup_psymbol_section): Remove code returning value.
13281 2013-01-03 Yao Qi <yao@codesourcery.com>
13283 * symtab.h: Remove some out of date comments.
13284 (enum exception_event_kind): Move it ...
13285 * breakpoint.c: ... here.
13287 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13290 * darwin-nat.c (darwin_read_dyld_info): Only build if
13291 TASK_DYLD_INFO_COUNT is defined.
13292 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13293 TASK_DYLD_INFO_COUNT is defined.
13295 2013-01-02 Tom Tromey <tromey@redhat.com>
13297 * symfile.h (struct ecoff_debug_hack): Remove.
13298 * objfiles.c: Don't include mdebugread.h.
13300 2013-01-02 Tom Tromey <tromey@redhat.com>
13302 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13303 * configure.ac: Check for Mach-O support in BFD. Update
13305 * configure: Rebuild.
13307 2013-01-02 Tom Tromey <tromey@redhat.com>
13309 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13310 * configure.ac: Use GDB_AC_CHECK_BFD.
13311 * configure: Rebuild.
13313 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13315 * MAINTAINERS: Update my email.
13317 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13319 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13321 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13323 * rs6000-nat.c (bss_data_overlap): New function.
13324 (vmap_symtab): Use it to adjust the .bss section's offset.
13326 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13328 Update year range in copyright notice of all files.
13330 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13332 * top.c (print_gdb_version): Update copyright year.
13334 For older changes see ChangeLog-2012.
13340 version-control: never