1 2013-12-12 Pedro Alves <palves@redhat.com>
3 * cli/cli-cmds.c (source_script_from_stream) Use have_python
4 instead of catching UNSUPPORTED_ERROR.
5 * exceptions.h (UNSUPPORTED_ERROR): Delete.
6 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
8 * python/python.h (have_python): New static inline function.
10 2013-12-11 Doug Evans <dje@google.com>
12 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
13 "can't find DWO" warning.
15 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
17 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
18 to get_probe_argument_count and evaluate_probe_argument.
19 * probe.c (get_probe_argument_count): Adjust declaration to accept
20 frame. Pass frame to probe_ops's get_probe_argument_count.
21 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
22 (probe_safe_evaluate_at_pc): Pass frame to
23 get_probe_argument_count and evaluate_probe_argument.
24 * probe.h (struct probe_ops) <get_probe_argument_count,
25 evaluate_probe_argument>: Adjust declarations to accept frame.
26 (get_probe_argument_count, evaluate_probe_argument): Likewise.
27 * solib-svr4.c (solib_event_probe_action): Get current frame.
28 Pass it to get_probe_argument_count.
29 (svr4_handle_solib_event): Get current frame. Pass it to
30 get_probe_argument_count and evaluate_probe_argument.
31 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
32 accept gdbarch. Do not obtain it from the probe's objfile.
33 (stap_get_probe_argument_count): Adjust declaration to accept
34 frame. Obtain gdbarch from the frame. Call generic
35 can_evaluate_probe_arguments. Pass gdbarch to
36 stap_parse_probe_arguments.
37 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
38 stap_parse_probe_arguments.
39 (stap_evaluate_probe_argument): Adjust declaration to accept
40 frame. Obtain gdbarch from the frame. Pass gdbarch to
42 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
43 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
44 get_probe_argument_count and evaluate_probe_argument.
46 2013-12-10 Doug Evans <dje@google.com>
49 * c-lang.c (c_get_string): Ignore the declared size of the object
50 if a specific length is requested.
52 2013-12-10 Doug Evans <dje@google.com>
54 * interps.h (interp_exec_p): Delete.
55 * interps.c (interp_exec_p): Delete.
56 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
57 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
59 2013-12-10 Yao Qi <yao@codesourcery.com>
61 * amd64-tdep.c (amd64_analyze_stack_align): Call
62 target_read_code instead of target_read_memory.
63 (amd64_analyze_prologue): Call read_code_unsigned_integer
64 instead of read_memory_unsigned_integer. Call read_code
65 instead of read_memory.
66 (amd64_skip_xmm_prologue): Likewise.
68 2013-12-10 Yao Qi <yao@codesourcery.com>
70 * corefile.c (read_code): New function.
71 (read_code_integer): New function.
72 (read_code_unsigned_integer): New function.
73 * gdbcore.h (read_code): Declare.
74 (read_code_integer): Declare.
75 (read_code_unsigned_integer): Declare.
76 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
77 of target_read_memory. Call read_code_unsigned_integer instead
78 of read_memory_unsigned_integer.
79 (i386_analyze_struct_return): Likewise.
80 (i386_skip_probe): Likewise.
81 (i386_analyze_stack_align): Likewise.
82 (i386_match_pattern): Likewise.
83 (i386_skip_noop): Likewise.
84 (i386_analyze_frame_setup): Likewise.
85 (i386_analyze_register_saves): Likewise.
86 (i386_skip_prologue): Likewise.
87 (i386_skip_main_prologue): Likewise.
88 (i386_frame_cache_1): Likewise.
90 2013-12-10 Yao Qi <yao@codesourcery.com>
92 * infrun.c: Include "target-dcache.h".
93 (prepare_for_detach): Call target_dcache_invalidate.
94 (wait_for_inferior): Likewise.
95 (fetch_inferior_event): Likewise.
96 (infrun_thread_stop_requested_callback): Likewise. Set
97 overlay_cache_invalid to 1.
99 2013-12-10 Joel Brobecker <brobecker@adacore.com>
101 * symtab.c (symbol_find_demangled_name): Add handling of
104 2013-12-10 Joel Brobecker <brobecker@adacore.com>
106 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
107 * NEWS: Expand the entry documenting the new -exec-run --start
108 option to mention the corresponding new entry in the output of
111 2013-12-10 Joel Brobecker <brobecker@adacore.com>
113 * windows-nat.c (handle_load_dll): Add comments.
114 (windows_ensure_ntdll_loaded): New function.
115 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
118 2013-12-08 Joel Brobecker <brobecker@adacore.com>
122 2013-12-08 Yao Qi <yao@codesourcery.com>
124 * stack.c (frame_info): Initialize variable caller_pc.
126 2013-12-06 Pedro Alves <palves@redhat.com>
128 * frame.c (enum cached_copy_status): New enum.
129 (struct frame_info) <prev_pc.p>: Change type to enum
131 (fprint_frame): Handle not saved and unavailable prev_pc values.
132 (frame_unwind_pc_if_available): Delete and merge contents into ...
133 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
134 to use enum cached_copy_status.
135 (frame_unwind_caller_pc_if_available): Delete.
136 (create_new_frame): Adjust.
137 * frame.h (frame_unwind_caller_pc_if_available): Delete
139 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
140 frame_unwind_caller_pc_if_available, and handle
141 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
142 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
143 (val_print_not_saved): New function.
144 * valprint.h (val_print_not_saved): Declare.
146 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
147 Pedro Alves <palves@redhat.com>
149 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
150 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
151 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
152 * spu-tdep.c (spu_software_single_step): Throw
154 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
156 2013-12-06 Tom Tromey <tromey@redhat.com>
158 * objfiles.c (free_objfile): Update comment.
160 2013-12-06 Tom Tromey <tromey@redhat.com>
162 * objfiles.h (objfile_to_front): Remove.
163 * objfiles.c (objfile_to_front): Remove.
165 2013-12-06 Tom Tromey <tromey@redhat.com>
167 * minsyms.c (get_symbol_leading_char): Remove unnecessary
170 2013-12-06 Tom Tromey <tromey@redhat.com>
172 * psympriv.h (struct partial_symtab) <user>: Move earlier.
174 2013-12-06 Tom Tromey <tromey@redhat.com>
176 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
177 (list_command): Likewise.
179 2013-12-06 Tom Tromey <tromey@redhat.com>
181 * psymtab.c (allocate_psymtab): Put the filename in the filename
184 2013-12-06 Tom Tromey <tromey@redhat.com>
186 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
187 * symtab.h (struct symtab) <dirname>: Now const.
189 2013-12-06 Tom Tromey <tromey@redhat.com>
191 * symfile.c (allocate_symtab): Remove cast.
192 * symtab.h (struct symtab) <filename>: Now const.
194 2013-12-06 Tom Tromey <tromey@redhat.com>
196 * break-catch-throw.c (fetch_probe_arguments): Use
197 get_probe_argument_count and evaluate_probe_argument.
198 * elfread.c (elf_get_probe_argument_count)
199 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
200 (elf_compile_to_ax): Remove.
201 (elf_probe_fns): Update.
202 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
203 (evaluate_probe_argument): Call method on probe, not via sym
205 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
206 evaluate_probe_argument.
207 (compile_probe_arg): Use get_probe_argument_count. Call method on
208 probe, not via sym functions.
209 * symfile-debug.c (debug_sym_get_probe_argument_count)
210 (debug_can_evaluate_probe_arguments)
211 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
213 (debug_sym_probe_fns): Remove.
214 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
215 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
216 sym_compile_to_ax>: Remove fields.
218 2013-12-06 Pierre Muller <muller@sourceware.org>
220 Fix completion for pascal language.
221 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
222 (exp : field_exp name COMPLETE): New rule.
223 (exp : SIZEOF): Set correct current_type.
224 (last_was_structop): Remove static variable.
225 (yylex): Remove saw_structop local variable.
226 Adapt code to removal of variables above.
228 2013-12-06 Joel Brobecker <brobecker@adacore.com>
230 * frame.c (get_prev_frame_1): Delete variable "this_id".
231 Replace its use by a call to get_frame_id.
233 2013-12-05 Anthony Green <green@moxielogic.com>
235 * moxie-tdep.c (moxie_software_single_step): New function.
236 (INST2OFFSET): New helper macro.
237 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
238 (moxie_process_readu): Move this up in the file.
240 2013-12-05 Doug Evans <xdje42@gmail.com>
242 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
244 2013-12-05 Joel Brobecker <brobecker@adacore.com>
245 Tristan Gingold <gingold@adacore.com>
247 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
248 Accept version 2. Ignore operations using opcode 6.
250 2013-12-05 Joel Brobecker <brobecker@adacore.com>
252 * ada-lex.l (find_dot_all): Fix coding style violations.
254 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
256 * NEWS: Add section for Intel(R) Architecture Instructions
257 Extesions mentioning MPX.
259 2013-12-03 Joel Brobecker <brobecker@adacore.com>
261 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
263 2013-12-03 Joel Brobecker <brobecker@adacore.com>
265 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
266 when parse_exp_1 threw an error. Add comment.
268 2013-12-03 Joel Brobecker <brobecker@adacore.com>
270 * NEWS: Mention "-list-features" in the entry documenting
271 the support for the "--language" option.
273 2013-12-03 Tom Tromey <tromey@redhat.com>
274 Jan Kratochvil <jan.kratochvil@redhat.com>
275 Doug Evans <dje@google.com>
276 Samuel Bronson <naesten@gmail.com>
278 Bring back gdb-add-index as a contrib script.
279 * contrib/gdb-add-index.sh: New file.
280 * NEWS: Note the addition.
282 2013-12-03 Samuel Bronson <naesten@gmail.com>
284 * MAINTAINERS (Write After Approval): Add myself to the list.
286 2013-12-03 Joel Brobecker <brobecker@adacore.com>
288 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
290 2013-12-03 Joel Brobecker <brobecker@adacore.com>
292 * mi/mi-main.c: Remove trailing spaces throughout.
294 2013-12-03 Pedro Alves <palves@redhat.com>
295 Joel Brobecker <brobecker@adacore.com>
297 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
298 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
299 of a regular error when the GDB/MI command does not exist.
300 * mi/mi-main.c (mi_cmd_list_features): Add
301 "undefined-command-error-code".
302 (mi_print_exception): Print an "undefined-command"
303 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
304 * NEWS: Add entry documenting the new "code" variable in
305 "^error" result records.
307 2013-12-03 Joel Brobecker <brobecker@adacore.com>
309 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
310 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
311 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
312 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
313 field to output of "-list-features".
315 * NEWS: Add entry for new -info-gdb-mi-command.
317 2013-12-02 Doug Evans <dje@google.com>
318 Jan Kratochvil <jan.kratochvil@redhat.com>
320 * objfiles.c (allocate_objfile): Save original_name as an absolute
322 * objfiles.h (struct objfile): Expand comment on original_name.
323 * source.c (openp): Call gdb_abspath.
324 * utils.c (gdb_abspath): New function.
325 * utils.h (gdb_abspath): Declare.
327 2013-12-02 Pedro Alves <palves@redhat.com>
329 * dcache.c (dcache_read_line): Use target_read_raw_memory.
330 * target.c (target_read_raw_memory): New function.
331 (target_read_stack, target_write_memory, target_write_raw_memory):
333 (target_read_code): Add comment.
334 * target.h (target_read_raw_memory): Declare.
336 2013-12-02 Pedro Alves <palves@redhat.com>
338 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
341 2013-12-02 Pedro Alves <pedro@codesourcery.com>
342 Maciej W. Rozycki <macro@codesourcery.com>
344 * remote.c (putpkt_for_catch_errors): Remove function.
345 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
348 2013-12-02 Pedro Alves <palves@redhat.com>
351 * remote-notif.c (handle_notification): Return early if no
352 notification is found.
354 2013-12-02 Joel Brobecker <brobecker@adacore.com>
356 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
359 2013-12-02 Joel Brobecker <brobecker@adacore.com>
361 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
363 2013-12-02 Joel Brobecker <brobecker@adacore.com>
365 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
366 * ctf.c (ctf_start): Remove obsolete comment.
368 2013-12-02 Joel Brobecker <brobecker@adacore.com>
370 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
372 2013-11-30 Doug Evans <xdje42@gmail.com>
374 * auto-load.h (script_language): New members name, auto_load_enabled.
375 Add missing comments on struct members.
376 (auto_load_objfile_script): Delete.
377 * auto-load.c: #include "cli/cli-cmds.h".
378 (auto_load_gdb_scripts_enabled): New function.
379 (script_language_gdb): Update, add new members.
380 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
381 and call to maybe_add_script moved to caller.
382 (auto_load_objfile_script_1): Auto-load safe-checking and
383 call to maybe_add_script moved here.
384 (auto_load_objfile_script): Make static. Early exit if support for
385 scripting language hasn't been compiled in, or auto-loading has been
387 (source_section_scripts): Argument "source_name" renamed to
388 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
389 with section_name. Skip loading script if support for scripting
390 language hasn't been compiled in, or auto-loading has been disabled.
391 Call language->source_script_for_objfile instead of calling
392 source_python_script_for_objfile directly.
393 (load_auto_scripts_for_objfile): Update.
394 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
395 (gdbpy_load_auto_script_for_objfile): Delete.
396 (auto_load_python_scripts_enabled): New function.
397 (script_language_python): Update, add new members.
398 (gdbpy_script_language_defn): New function.
399 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
400 (gdbpy_script_language_defn): Declare.
402 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
403 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
404 (source_section_scripts): Moved here from py-auto-load.c.
405 (auto_load_section_scripts): Ditto.
406 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
407 auto-load.c, renamed AUTO_SECTION_NAME.
408 (source_section_scripts, auto_load_section_scripts): Moved to
411 2013-11-30 Yao Qi <yao@codesourcery.com>
413 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
415 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
417 * gdbarch.sh: Remove include of "gdb_string.h", replace by
420 2013-11-29 Doug Evans <xdje42@gmail.com>
422 * python/py-auto-load.c (source_section_scripts): Move comment to
423 more relevant location.
426 * python/py-breakpoint.c: Remove trailing whitespace.
427 * python/py-cmd.c: Ditto.
428 * python/py-evts.c: Ditto.
429 * python/py-finishbreakpoint.c: Ditto.
430 * python/py-frame.c: Ditto.
431 * python/py-function.c: Ditto.
432 * python/py-inferior.c: Ditto.
433 * python/py-infthread.c: Ditto.
434 * python/py-param.c: Ditto.
435 * python/py-prettyprint.c: Ditto.
436 * python/py-symbol.c: Ditto.
437 * python/py-type.c: Ditto.
438 * python/py-utils.c: Ditto.
439 * python/py-value.c: Ditto.
440 * python/python-internal.h: Ditto.
441 * python/python.c: Ditto.
443 2013-11-29 Pedro Alves <palves@redhat.com>
445 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
447 2013-11-29 Pedro Alves <palves@redhat.com>
449 * breakpoint.c (build_target_condition_list): Release previous
451 (build_target_command_list): Release previous commands.
452 (bp_location_dtor): Release target conditions and commands.
453 * remote.c (remote_add_target_side_condition): Don't release
455 (remote_add_target_side_commands): Don't release commands.
457 2013-11-29 Yao Qi <yao@codesourcery.com>
458 Pedro Alves <palves@redhat.com>
460 * dcache.c (dcache_read_line): Use current_target.beneath
461 instead of ¤t_target.
462 * target.c (memory_xfer_partial_1): Factor code out to ...
463 (raw_memory_xfer_partial): ... it. New function.
464 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
465 is TARGET_OBJECT_RAW_MEMORY.
467 2013-11-28 Doug Evans <xdje42@gmail.com>
469 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
470 breakpoint_object. All uses updated.
471 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
472 breakpoint_object. All uses updated.
473 * python.c (*): All uses of breakpoint_object updated.
474 * python.h (*): All uses of breakpoint_object updated.
475 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
476 * python/py-finishbreakpoint.c (*): Ditto.
478 2013-11-28 Doug Evans <xdje42@gmail.com>
480 * configure.ac: Add comments delineating libpython and libmcheck.
481 * configure: Regenerate.
483 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
484 Pedro Alves <palves@redhat.com>
486 * valprint.c (value_check_printable): If the value is entirely
487 unavailable, print a single "<unavailable>" instead of printing
490 2013-11-28 Pedro Alves <palves@redhat.com>
492 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
493 Add "set debug frame" output.
494 (frame_stop_reason_symbol_string): New function.
496 2013-11-28 Pedro Alves <palves@redhat.com>
498 * frame-unwind.c (default_frame_unwind_stop_reason): Return
499 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
500 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
502 2013-11-28 Pedro Alves <palves@redhat.com>
504 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
505 set the unwind stop reason to UNWIND_OUTERMOST, not
506 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
508 2013-11-28 Pedro Alves <palves@redhat.com>
510 * frame.c (frame_unwind_register): Say the register was "not
511 saved" instead of "optimized out".
513 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
516 * configure: Rebuild.
517 * configure.ac: Tighten cygwin detection check.
519 2013-11-27 Pedro Alves <palves@redhat.com>
521 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
522 register in the previous frame's arch.
524 2013-11-27 Pedro Alves <palves@redhat.com>
526 * frame-unwind.c (frame_unwind_got_optimized): Return
527 an lval_register value instead of a not_lval value.
529 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
531 * frame.c: Include "valprint.h".
532 (frame_unwind_register_value): Use value_optimized_out.
533 * value.c (value_fetch_lazy): Likewise.
535 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
537 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
539 2013-11-26 Tom Tromey <tromey@redhat.com>
541 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
544 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
546 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
547 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
548 (HAS_MPX): New macro.
549 (HAS_AVX): New macro.
550 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
552 2013-11-25 Keith Seitz <keiths@redhat.com>
555 * c-exp.y (classify_inner_name): If no matching symbol was
556 found, try looking up the token as a base class.
557 Likewise if a constructor was found.
558 * cp-namespace.c (find_type_baseclass_by_name): New function.
559 * cp-support.h (find_type_baseclass_by_name): Declare.
560 * valops.c (value_struct_elt_for_reference): If we get
561 a non-static field, try to get a value based on the
562 current instance, if any.
564 2013-11-24 Yao Qi <yao@codesourcery.com>
566 * disasm.c (dis_asm_read_memory): Call target_read_code
567 instead of target_read_memory.
569 2013-11-24 Yao Qi <yao@codesourcery.com>
571 * NEWS: Add note on new "set code-cache" option.
572 * target-dcache.c (code_cache_enabled_1): New variable.
573 (code_cache_enabled): New variable.
574 (show_code_cache, set_code_cache): New function.
575 (code_cache_enabled_p): New function.
576 (_initialize_target_dcache): Register command.
577 * target-dcache.h (code_cache_enabled_p): Declare.
578 * target.c (memory_xfer_partial_1):Handle
579 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
580 (target_read_code): New function.
581 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
583 (target_read_code): Declare.
585 2013-11-24 Yao Qi <yao@codesourcery.com>
587 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
588 (stack_cache_enabled_1): ... this. New variable.
589 (stack_cache_enabled_p): Rename to ...
590 (stack_cache_enabled): ... this. New variable.
591 (set_stack_cache_enabled_p): Rename to ...
592 (set_stack_cache): ... this. Update caller.
593 (show_stack_cache_enabled_p): Rename to ...
594 (show_stack_cache): ... this. Update caller.
595 (stack_cache_enabled): Rename to ...
596 (stack_cache_enabled_p): ... this. Update caller.
597 (_initialize_target_dcache): Replace "data cache" with
598 "target memory cache".
599 * target-dcache.h (stack_cache_enabled): Remove declaration.
600 (stack_cache_enabled_p): Add declaration.
602 2013-11-23 Doug Evans <xdje42@gmail.com>
604 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
607 2013-11-23 Doug Evans <xdje42@gmail.com>
609 * python/py-frame.c (frapy_block): Fix error message text.
611 2013-11-23 Doug Evans <xdje42@gmail.com>
613 * cli/cli-script.c (multi_line_command_p): New function.
614 (recurse_read_control_structure, read_command_lines_1): Call it.
615 (execute_control_command): Consistently have a blank line between
618 2013-11-22 Sterling Augustine <saugustine@google.com>
621 * valprint.c (read_string): Set new variable fetchlen based on
622 fetchlimit and size. Use it in call to partial_memory_read.
625 2013-11-22 Tom Tromey <tromey@redhat.com>
628 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
629 the return address column is unspecified.
631 2013-11-22 Tom Tromey <tromey@redhat.com>
632 Pedro Alves <palves@redhat.com>
635 * value.c (value_fetch_lazy): Internal error if
636 get_frame_register_value returns the same register.
638 2013-11-22 Pedro Alves <palves@redhat.com>
639 Tom Tromey <tromey@redhat.com>
641 * frame.c (frame_stash_add): Now returns whether a frame with the
642 same ID was already known.
643 (compute_frame_id): New function, factored out from get_frame_id.
644 (get_frame_id): No longer lazilly compute the frame id here.
645 (get_prev_frame_if_no_cycle): New function. Detects wider stack
647 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
648 and checking for stack cycles here.
650 2013-11-22 Pedro Alves <palves@redhat.com>
653 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
654 this frame and the new previous frame, not between this frame and
657 2013-11-22 Pedro Alves <palves@redhat.com>
660 * dwarf2-frame.c (struct dwarf2_frame_cache)
661 <checked_tailcall_bottom, entry_cfa_sp_offset,
662 entry_cfa_sp_offset_p>: New fields.
663 (dwarf2_frame_cache): Adjust to use the new cache fields instead
664 of locals. Don't call dwarf2_tailcall_sniffer_first here.
665 (dwarf2_frame_prev_register): Call it here, but only once.
667 2013-11-21 Doug Evans <xdje42@gmail.com>
669 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
670 (type_equality_entry): Move here from python/py-type.c.
671 (type_equality_entry_d): Ditto.
672 (compare_maybe_null_strings, check_types_equal): Ditto.
673 (check_types_worklist, types_deeply_equal): Ditto.
674 * gdbtypes.h (types_deeply_equal): Declare.
675 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
676 (typy_richcompare): Update.
678 2013-11-20 Joel Brobecker <brobecker@adacore.com>
680 * python/py-value.c (is_intlike): Delete.
681 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
682 by use of is_integral_type.
683 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
684 by use of is_integral_type and check for TYPE_CODE_PTR.
686 2013-11-20 Tom Tromey <tromey@redhat.com>
688 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
690 * gnulib/aclocal.m4: Update.
691 * gnulib/config.in: Update.
692 * gnulib/configure: Update.
693 * gnulib/import/Makefile.am: Update.
694 * gnulib/import/Makefile.in: Update.
695 * gnulib/import/errno.in.h: Remove.
696 * gnulib/import/intprops.h: Remove.
697 * gnulib/import/m4/errno_h.m4: Remove.
698 * gnulib/import/m4/gnulib-cache.m4: Update.
699 * gnulib/import/m4/gnulib-comp.m4: Update.
700 * gnulib/import/m4/strerror.m4: Remove.
701 * gnulib/import/m4/sys_socket_h.m4: Remove.
702 * gnulib/import/strerror-override.c: Remove.
703 * gnulib/import/strerror-override.h: Remove.
704 * gnulib/import/strerror.c: Remove.
705 * gnulib/update-gnulib.sh: Update.
707 2013-11-20 Yao Qi <yao@codesourcery.com>
709 * target-dcache.c (target_dcache_get_or_init): Call
710 set_address_space_data if 'dcache' is NULL.
712 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
714 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
716 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
718 * python/lib/gdb/command/bound_register.py: New file.
719 * data-directory/Makefile.in: Copy bond_register.py to the right path
720 to be initialized at gdb startup.
722 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
724 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
726 (amd64_linux_read_description): Add initialization for MPX and
728 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
729 (amd64_linux_gregset_reg_offset): Add MPX registers.
730 (amd64_linux_core_read_description): Add initialization for MPX
732 (_initialize_amd64_linux_tdep): Initialize MPX targets.
733 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
734 register on the list.
735 (tdesc_amd64_mpx_linux) Add new target for MPX.
736 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
737 (amd64_mpx_names): MPX register names.
738 (amd64_init_abi): Add MPX register while initializing the ABI.
739 (_initialize_amd64_tdep): Initialize MPX targets.
740 * amd64-tdep.h (amd64_regnum): Add MPX registers.
741 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
743 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
745 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
746 registers on the range of registers to be read from
748 (i386_linux_read_description): Add case for MPX.
749 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
750 (i386_linux_gregset_reg_offset): Add MPX registers.
751 (i386_linux_core_read_description): Initialize also MPX.
752 (_initialize_i386_linux_tdep): Add mpx initialization.
753 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
755 (i386_regnum): Add MPX registers.
756 (I386_MPX_NUM_REGS): New macro.
757 (i386_bnd_regnum_p): New function.
758 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
759 number of registers to be the number of BNDSTATUS.
760 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
761 * i386-tdep.c: Include features/i386/i386-mpx.c.
762 (i386_mpx_names): Add MPX register names array.
763 (i386_bnd_names): Add bnd pseudo register names array.
764 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
766 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
767 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
769 (i386_bnd_type): New function.
770 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
772 (i386_pseudo_register_read_into_value): Add bnd case.
773 (i386_pseudo_register_write): Add bnd pseudo registers.
774 (i386_register_reggroup_p): Add MPX register to the group all.
775 (i386_validate_tdesc_p): Add MPX to the target description
777 (i386_pseudo_register_name): Add bnd pseudo registers.
778 (i386_gdbarch_init): Add MPX for architecture initialization.
779 (_initia_initialize_i386_tdep): Add mpx initialization.
780 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
782 (XSAVE_MPX_ADDR): New macro.
783 (i387_supply_xsave): Add MPX case.
784 (i387_collect_xsave): Add MPX case.
785 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
786 (I387_BNDCFGU_REGNUM): New macro.
787 (I387_NUM_MPX_REGS): New macro.
788 (I387_NUM_BND_REGS): New macro.
789 (I387_NUM_MPX_CTRL_REGS): New macro.
790 (I387_MPXEND_REGNUM): New macro.
791 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
792 (I386_XSTATE_BNDCFG): Likewise.
793 (I386_XSTATE_MPX_MASK): Likewise.
794 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
795 (I386_XSTATE_BNDREGS_SIZE): New macro.
796 (I386_XSTATE_BNDCFG_SIZE): Likewise.
797 (I386_XSTATE_SIZE): Adapt for MPX.
798 (I386_XSTATE_MAX_SIZE): Likewise.
800 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
802 * features/i386/Makefile: Adapts for using MPX registers.
803 * features/i386/32bit-mpx.xml: New file.
804 * features/i386/64bit-mpx.xml: Likewise.
805 * features/i386/amd64-mpx-linux.c: Likewise.
806 * features/i386/amd64-mpx-linux.xml: Likewise.
807 * features/i386/amd64-mpx.c: Likewise.
808 * features/i386/amd64-mpx.xml: Likewise.
809 * features/i386/i386-mpx-linux.c: Likewise.
810 * features/i386/i386-mpx-linux.xml: Likewise.
811 * features/i386/i386-mpx.c: Likewise.
812 * features/i386/i386-mpx.xml: Likewise.
813 * regformats/i386/amd64-mpx-linux.dat: New file.
814 * regformats/i386/amd64-mpx.dat: Likewise.
815 * regformats/i386/i386-mpx-linux.dat: Likewise.
816 * regformats/i386/i386-mpx.dat: Likewise.
818 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
820 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
821 Modified logic of creating a bitfield to be in sync with
824 2013-11-20 Will Newton <will.newton@linaro.org>
826 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
829 2013-11-20 Yao Qi <yao@codesourcery.com>
831 * progspace.h (struct address_space_data): Declare.
832 * target-dcache.c: Include "progspace.h".
833 (target_dache): Remove.
834 (target_dcache_aspace_key): New.
835 (target_dcache_cleanup): New function.
836 (target_dcache_init_p): Get data through
837 target_dcache_aspace_key.
838 (target_dcache_invalidate): Likewise.
839 (target_dcache_get): Likewise.
840 (target_dcache_get_or_init): Likewise.
841 (_initialize_target_dcache): Initialize
842 target_dcache_aspace_key.
844 2013-11-20 Yao Qi <yao@codesourcery.com>
846 * progspace.c (struct address_space): Update comments.
847 <REGISTRY_FIELDS>: New fields.
848 DEFINE_REGISTRY for address_space.
849 (new_address_space): Call address_space_alloc_data.
850 (free_address_space): Call address_space_free_data.
851 * progspace.h: Use DECLARE_REGISTRY.
853 2013-11-20 Yao Qi <yao@codesourcery.com>
855 * Makefile.in (SFILES):Add target-dcache.c.
856 (HFILES_NO_SRCDIR): Add target-dcache.h.
857 (COMMON_OBS): Add target-dcache.o.
858 * dcache.c: Remove inclusion to "target.h". Include
860 * memattr.c: Include "target-dcache.h".
862 * tracepoint.c: Likewise.
863 * target.c: (stack_cache_enabled_p_1): Move to
865 (stack_cache_enabled_p): Likewise.
866 (set_stack_cache_enabled_p): Likewise.
867 (show_stack_cache_enabled_p): Likewise.
868 (target_dcache, target_dcache_init_p): Likewise.
869 (target_dcache_invalidate): Likewise.
870 (target_dcache_get, target_dcache_get_or_init): Likewise.
871 (memory_xfer_partial_1): Call function stack_cache_enabled.
872 (initialize_target): Move code to target-dcache.c.
873 * target.h (target_dcache_invalidate): Move to
875 (target_dcache_get): Likewise.
876 * target-dcache.c: New.
877 * target-dcache.h: New.
879 2013-11-20 Yao Qi <yao@codesourcery.com>
881 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
884 2013-11-20 Yao Qi <yao@codesourcery.com>
886 * dcache.c (last_cache): Remove.
887 (dcache_free, dcache_init): Update.
889 (dcache_print_line): Add parameter 'dcache'. Replace
890 'target_dcache' with 'dcache'.
891 (dcache_info): Move code to dcache_info_1. Call
893 (dcache_info_1): New function.
894 (set_dcache_size): Call target_dcache_invalidate.
895 (set_dcache_line_size): Call target_dcache_invalidate.
896 * target.c (target_dcache_init_p): New function.
897 (target_dcache_invalidate): Check target_dcache_init_p first.
898 (target_dcache_get, target_dcache_get_or_init): New function.
899 (memory_xfer_partial_1): Adjust.
900 (initialize_target): Don't initialize 'target_dcache'.
901 * target.h (struct dcache_struct): Declare.
902 (target_dcache_get): Declare.
904 2013-11-19 Yao Qi <yao@codesourcery.com>
906 * varobj.c (varobj_get_type): Fix typo.
908 2013-11-19 Joel Brobecker <brobecker@adacore.com>
910 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
912 2013-11-19 Joel Brobecker <brobecker@adacore.com>
914 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
917 2013-11-18 Tom Tromey <tromey@redhat.com>
919 * common/gdb_stat.h: Remove.
920 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
921 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
922 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
923 * corefile.c: Use sys/stat.h, not gdb_stat.h.
924 * ctf.c: Use sys/stat.h, not gdb_stat.h.
925 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
926 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
927 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
928 * exec.c: Use sys/stat.h, not gdb_stat.h.
929 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
930 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
931 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
932 * jit.c: Use sys/stat.h, not gdb_stat.h.
933 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
934 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
935 * main.c: Use sys/stat.h, not gdb_stat.h.
936 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
937 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
938 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
939 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
940 * procfs.c: Use sys/stat.h, not gdb_stat.h.
941 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
942 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
943 * remote.c: Use sys/stat.h, not gdb_stat.h.
944 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
945 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
946 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
947 * source.c: Use sys/stat.h, not gdb_stat.h.
948 * symfile.c: Use sys/stat.h, not gdb_stat.h.
949 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
950 * symtab.c: Use sys/stat.h, not gdb_stat.h.
951 * top.c: Use sys/stat.h, not gdb_stat.h.
952 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
954 2013-11-18 Tom Tromey <tromey@redhat.com>
956 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
958 * gnulib/aclocal.m4: Update.
959 * gnulib/config.in: Update.
960 * gnulib/configure: Update.
961 * gnulib/import/Makefile.am: Update.
962 * gnulib/import/Makefile.in: Update.
963 * gnulib/import/m4/gnulib-cache.m4: Update.
964 * gnulib/import/m4/gnulib-comp.m4: Update.
965 * gnulib/import/m4/sys_stat_h.m4: New.
966 * gnulib/import/m4/time_h.m4: New.
967 * gnulib/import/sys_stat.in.h: New.
968 * gnulib/import/time.in.h: New.
970 2013-11-18 Tom Tromey <tromey@redhat.com>
972 * configure: Rebuild.
973 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
975 2013-11-18 Tom Tromey <tromey@redhat.com>
977 * configure: Rebuild.
978 * configure.ac: Don't check for unistd.h.
980 2013-11-18 Tom Tromey <tromey@redhat.com>
982 * configure: Rebuild.
983 * configure.ac: Don't check for stdlib.h
984 * defs.h: Include stdlib.h unconditionally.
986 2013-11-18 Tom Tromey <tromey@redhat.com>
988 * config.in: Rebuild.
989 * configure: Rebuild.
990 * configure.ac: Don't check for stddef.h.
991 * defs.h: Unconditionally include stddef.h. Remove duplicate
994 2013-11-18 Tom Tromey <tromey@redhat.com>
996 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
997 * common/gdb_dirent.h: Remove.
998 * common/filestuff.c: Use dirent.h.
999 * common/linux-osdata.c: Use dirent.h.
1001 * config.in: Rebuild.
1002 * configure: Rebuild.
1003 * configure.ac: Don't use AC_HEADER_DIRENT.
1004 * linux-fork.c: Use dirent.h
1005 * linux-nat.c: Use dirent.h.
1006 * nto-procfs.c: Use dirent.h.
1007 * procfs.c: Use dirent.h.
1009 2013-11-18 Tom Tromey <tromey@redhat.com>
1011 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1012 * gnulib/aclocal.m4: Update.
1013 * gnulib/config.in: Update.
1014 * gnulib/configure: Update.
1015 * gnulib/import/Makefile.am: Update.
1016 * gnulib/import/Makefile.in: Update.
1017 * gnulib/import/dirent.in.h: New.
1018 * gnulib/import/m4/dirent_h.m4: New.
1019 * gnulib/import/m4/gnulib-cache.m4: Update.
1020 * gnulib/import/m4/gnulib-comp.m4: Update.
1022 2013-11-18 Tom Tromey <tromey@redhat.com>
1024 * configure: Rebuild.
1025 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1028 2013-11-18 Tom Tromey <tromey@redhat.com>
1030 * common/gdb_string.h: Remove.
1031 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1032 * ada-exp.y: Use string.h, not gdb_string.h.
1033 * ada-lang.c: Use string.h, not gdb_string.h.
1034 * ada-lex.l: Use string.h, not gdb_string.h.
1035 * ada-typeprint.c: Use string.h, not gdb_string.h.
1036 * ada-valprint.c: Use string.h, not gdb_string.h.
1037 * aix-thread.c: Use string.h, not gdb_string.h.
1038 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1039 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1040 * alpha-nat.c: Use string.h, not gdb_string.h.
1041 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1042 * alpha-tdep.c: Use string.h, not gdb_string.h.
1043 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1044 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1045 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1046 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1047 * amd64-nat.c: Use string.h, not gdb_string.h.
1048 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1049 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1050 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1051 * arch-utils.c: Use string.h, not gdb_string.h.
1052 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1053 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1054 * arm-tdep.c: Use string.h, not gdb_string.h.
1055 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1056 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1057 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1058 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1059 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1060 * avr-tdep.c: Use string.h, not gdb_string.h.
1061 * ax-gdb.c: Use string.h, not gdb_string.h.
1062 * ax-general.c: Use string.h, not gdb_string.h.
1063 * bcache.c: Use string.h, not gdb_string.h.
1064 * bfin-tdep.c: Use string.h, not gdb_string.h.
1065 * breakpoint.c: Use string.h, not gdb_string.h.
1066 * build-id.c: Use string.h, not gdb_string.h.
1067 * buildsym.c: Use string.h, not gdb_string.h.
1068 * c-exp.y: Use string.h, not gdb_string.h.
1069 * c-lang.c: Use string.h, not gdb_string.h.
1070 * c-typeprint.c: Use string.h, not gdb_string.h.
1071 * c-valprint.c: Use string.h, not gdb_string.h.
1072 * charset.c: Use string.h, not gdb_string.h.
1073 * cli-out.c: Use string.h, not gdb_string.h.
1074 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1075 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1076 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1077 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1078 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1079 * cli/cli-script.c: Use string.h, not gdb_string.h.
1080 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1081 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1082 * coffread.c: Use string.h, not gdb_string.h.
1083 * common/common-utils.c: Use string.h, not gdb_string.h.
1084 * common/filestuff.c: Use string.h, not gdb_string.h.
1085 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1086 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1087 * common/signals.c: Use string.h, not gdb_string.h.
1088 * common/vec.h: Use string.h, not gdb_string.h.
1089 * core-regset.c: Use string.h, not gdb_string.h.
1090 * corefile.c: Use string.h, not gdb_string.h.
1091 * corelow.c: Use string.h, not gdb_string.h.
1092 * cp-abi.c: Use string.h, not gdb_string.h.
1093 * cp-support.c: Use string.h, not gdb_string.h.
1094 * cp-valprint.c: Use string.h, not gdb_string.h.
1095 * cris-tdep.c: Use string.h, not gdb_string.h.
1096 * d-lang.c: Use string.h, not gdb_string.h.
1097 * dbxread.c: Use string.h, not gdb_string.h.
1098 * dcache.c: Use string.h, not gdb_string.h.
1099 * demangle.c: Use string.h, not gdb_string.h.
1100 * dicos-tdep.c: Use string.h, not gdb_string.h.
1101 * disasm.c: Use string.h, not gdb_string.h.
1102 * doublest.c: Use string.h, not gdb_string.h.
1103 * dsrec.c: Use string.h, not gdb_string.h.
1104 * dummy-frame.c: Use string.h, not gdb_string.h.
1105 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1106 * dwarf2loc.c: Use string.h, not gdb_string.h.
1107 * dwarf2read.c: Use string.h, not gdb_string.h.
1108 * elfread.c: Use string.h, not gdb_string.h.
1109 * environ.c: Use string.h, not gdb_string.h.
1110 * eval.c: Use string.h, not gdb_string.h.
1111 * event-loop.c: Use string.h, not gdb_string.h.
1112 * exceptions.c: Use string.h, not gdb_string.h.
1113 * exec.c: Use string.h, not gdb_string.h.
1114 * expprint.c: Use string.h, not gdb_string.h.
1115 * f-exp.y: Use string.h, not gdb_string.h.
1116 * f-lang.c: Use string.h, not gdb_string.h.
1117 * f-typeprint.c: Use string.h, not gdb_string.h.
1118 * f-valprint.c: Use string.h, not gdb_string.h.
1119 * fbsd-nat.c: Use string.h, not gdb_string.h.
1120 * findcmd.c: Use string.h, not gdb_string.h.
1121 * findvar.c: Use string.h, not gdb_string.h.
1122 * fork-child.c: Use string.h, not gdb_string.h.
1123 * frame.c: Use string.h, not gdb_string.h.
1124 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1125 * frv-tdep.c: Use string.h, not gdb_string.h.
1126 * gdb.c: Use string.h, not gdb_string.h.
1127 * gdb_bfd.c: Use string.h, not gdb_string.h.
1128 * gdbarch.c: Use string.h, not gdb_string.h.
1129 * gdbtypes.c: Use string.h, not gdb_string.h.
1130 * gnu-nat.c: Use string.h, not gdb_string.h.
1131 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1132 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1133 * go-exp.y: Use string.h, not gdb_string.h.
1134 * go-lang.c: Use string.h, not gdb_string.h.
1135 * go32-nat.c: Use string.h, not gdb_string.h.
1136 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1137 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1138 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1139 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1140 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1141 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1142 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1143 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1144 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1145 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1146 * i386-tdep.c: Use string.h, not gdb_string.h.
1147 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1148 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1149 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1150 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1151 * i387-tdep.c: Use string.h, not gdb_string.h.
1152 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1153 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1154 * inf-child.c: Use string.h, not gdb_string.h.
1155 * inf-ptrace.c: Use string.h, not gdb_string.h.
1156 * inf-ttrace.c: Use string.h, not gdb_string.h.
1157 * infcall.c: Use string.h, not gdb_string.h.
1158 * infcmd.c: Use string.h, not gdb_string.h.
1159 * inflow.c: Use string.h, not gdb_string.h.
1160 * infrun.c: Use string.h, not gdb_string.h.
1161 * interps.c: Use string.h, not gdb_string.h.
1162 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1163 * irix5-nat.c: Use string.h, not gdb_string.h.
1164 * jv-exp.y: Use string.h, not gdb_string.h.
1165 * jv-lang.c: Use string.h, not gdb_string.h.
1166 * jv-typeprint.c: Use string.h, not gdb_string.h.
1167 * jv-valprint.c: Use string.h, not gdb_string.h.
1168 * language.c: Use string.h, not gdb_string.h.
1169 * linux-fork.c: Use string.h, not gdb_string.h.
1170 * linux-nat.c: Use string.h, not gdb_string.h.
1171 * lm32-tdep.c: Use string.h, not gdb_string.h.
1172 * m2-exp.y: Use string.h, not gdb_string.h.
1173 * m2-typeprint.c: Use string.h, not gdb_string.h.
1174 * m32c-tdep.c: Use string.h, not gdb_string.h.
1175 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1176 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1177 * m32r-rom.c: Use string.h, not gdb_string.h.
1178 * m32r-tdep.c: Use string.h, not gdb_string.h.
1179 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1180 * m68k-tdep.c: Use string.h, not gdb_string.h.
1181 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1182 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1183 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1184 * m88k-tdep.c: Use string.h, not gdb_string.h.
1185 * macrocmd.c: Use string.h, not gdb_string.h.
1186 * main.c: Use string.h, not gdb_string.h.
1187 * mdebugread.c: Use string.h, not gdb_string.h.
1188 * mem-break.c: Use string.h, not gdb_string.h.
1189 * memattr.c: Use string.h, not gdb_string.h.
1190 * memory-map.c: Use string.h, not gdb_string.h.
1191 * mep-tdep.c: Use string.h, not gdb_string.h.
1192 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1193 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1194 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1195 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1196 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1197 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1198 * mi/mi-console.c: Use string.h, not gdb_string.h.
1199 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1200 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1201 * mi/mi-main.c: Use string.h, not gdb_string.h.
1202 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1203 * microblaze-rom.c: Use string.h, not gdb_string.h.
1204 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1205 * mingw-hdep.c: Use string.h, not gdb_string.h.
1206 * minidebug.c: Use string.h, not gdb_string.h.
1207 * minsyms.c: Use string.h, not gdb_string.h.
1208 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1209 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1210 * mips-tdep.c: Use string.h, not gdb_string.h.
1211 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1212 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1213 * mipsread.c: Use string.h, not gdb_string.h.
1214 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1215 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1216 * monitor.c: Use string.h, not gdb_string.h.
1217 * moxie-tdep.c: Use string.h, not gdb_string.h.
1218 * mt-tdep.c: Use string.h, not gdb_string.h.
1219 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1220 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1221 * nto-procfs.c: Use string.h, not gdb_string.h.
1222 * nto-tdep.c: Use string.h, not gdb_string.h.
1223 * objc-lang.c: Use string.h, not gdb_string.h.
1224 * objfiles.c: Use string.h, not gdb_string.h.
1225 * opencl-lang.c: Use string.h, not gdb_string.h.
1226 * osabi.c: Use string.h, not gdb_string.h.
1227 * osdata.c: Use string.h, not gdb_string.h.
1228 * p-exp.y: Use string.h, not gdb_string.h.
1229 * p-lang.c: Use string.h, not gdb_string.h.
1230 * p-typeprint.c: Use string.h, not gdb_string.h.
1231 * parse.c: Use string.h, not gdb_string.h.
1232 * posix-hdep.c: Use string.h, not gdb_string.h.
1233 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1234 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1235 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1236 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1237 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1238 * printcmd.c: Use string.h, not gdb_string.h.
1239 * procfs.c: Use string.h, not gdb_string.h.
1240 * prologue-value.c: Use string.h, not gdb_string.h.
1241 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1242 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1243 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1244 * regcache.c: Use string.h, not gdb_string.h.
1245 * registry.c: Use string.h, not gdb_string.h.
1246 * remote-fileio.c: Use string.h, not gdb_string.h.
1247 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1248 * remote-mips.c: Use string.h, not gdb_string.h.
1249 * remote-sim.c: Use string.h, not gdb_string.h.
1250 * remote.c: Use string.h, not gdb_string.h.
1251 * reverse.c: Use string.h, not gdb_string.h.
1252 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1253 * ser-base.c: Use string.h, not gdb_string.h.
1254 * ser-go32.c: Use string.h, not gdb_string.h.
1255 * ser-mingw.c: Use string.h, not gdb_string.h.
1256 * ser-pipe.c: Use string.h, not gdb_string.h.
1257 * ser-tcp.c: Use string.h, not gdb_string.h.
1258 * ser-unix.c: Use string.h, not gdb_string.h.
1259 * serial.c: Use string.h, not gdb_string.h.
1260 * sh-tdep.c: Use string.h, not gdb_string.h.
1261 * sh64-tdep.c: Use string.h, not gdb_string.h.
1262 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1263 * skip.c: Use string.h, not gdb_string.h.
1264 * sol-thread.c: Use string.h, not gdb_string.h.
1265 * solib-dsbt.c: Use string.h, not gdb_string.h.
1266 * solib-frv.c: Use string.h, not gdb_string.h.
1267 * solib-osf.c: Use string.h, not gdb_string.h.
1268 * solib-spu.c: Use string.h, not gdb_string.h.
1269 * solib-target.c: Use string.h, not gdb_string.h.
1270 * solib.c: Use string.h, not gdb_string.h.
1271 * somread.c: Use string.h, not gdb_string.h.
1272 * source.c: Use string.h, not gdb_string.h.
1273 * sparc-nat.c: Use string.h, not gdb_string.h.
1274 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1275 * sparc-tdep.c: Use string.h, not gdb_string.h.
1276 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1277 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1278 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1279 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1280 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1281 * spu-multiarch.c: Use string.h, not gdb_string.h.
1282 * spu-tdep.c: Use string.h, not gdb_string.h.
1283 * stabsread.c: Use string.h, not gdb_string.h.
1284 * stack.c: Use string.h, not gdb_string.h.
1285 * std-regs.c: Use string.h, not gdb_string.h.
1286 * symfile.c: Use string.h, not gdb_string.h.
1287 * symmisc.c: Use string.h, not gdb_string.h.
1288 * symtab.c: Use string.h, not gdb_string.h.
1289 * target.c: Use string.h, not gdb_string.h.
1290 * thread.c: Use string.h, not gdb_string.h.
1291 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1292 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1293 * top.c: Use string.h, not gdb_string.h.
1294 * tracepoint.c: Use string.h, not gdb_string.h.
1295 * tui/tui-command.c: Use string.h, not gdb_string.h.
1296 * tui/tui-data.c: Use string.h, not gdb_string.h.
1297 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1298 * tui/tui-file.c: Use string.h, not gdb_string.h.
1299 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1300 * tui/tui-out.c: Use string.h, not gdb_string.h.
1301 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1302 * tui/tui-source.c: Use string.h, not gdb_string.h.
1303 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1304 * tui/tui-win.c: Use string.h, not gdb_string.h.
1305 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1306 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1307 * typeprint.c: Use string.h, not gdb_string.h.
1308 * ui-file.c: Use string.h, not gdb_string.h.
1309 * ui-out.c: Use string.h, not gdb_string.h.
1310 * user-regs.c: Use string.h, not gdb_string.h.
1311 * utils.c: Use string.h, not gdb_string.h.
1312 * v850-tdep.c: Use string.h, not gdb_string.h.
1313 * valarith.c: Use string.h, not gdb_string.h.
1314 * valops.c: Use string.h, not gdb_string.h.
1315 * valprint.c: Use string.h, not gdb_string.h.
1316 * value.c: Use string.h, not gdb_string.h.
1317 * varobj.c: Use string.h, not gdb_string.h.
1318 * vax-tdep.c: Use string.h, not gdb_string.h.
1319 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1320 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1321 * windows-nat.c: Use string.h, not gdb_string.h.
1322 * xcoffread.c: Use string.h, not gdb_string.h.
1323 * xml-support.c: Use string.h, not gdb_string.h.
1324 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1325 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1327 2013-11-18 Tom Tromey <tromey@redhat.com>
1329 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1331 * gnulib/aclocal.m4: Update.
1332 * gnulib/config.in: Update.
1333 * gnulib/configure: Update.
1334 * gnulib/import/Makefile.am: Update.
1335 * gnulib/import/Makefile.in: Update.
1336 * gnulib/import/errno.in.h: New.
1337 * gnulib/import/intprops.h: New.
1338 * gnulib/import/m4/errno_h.m4: New.
1339 * gnulib/import/m4/gnulib-cache.m4: Update.
1340 * gnulib/import/m4/gnulib-comp.m4: Update.
1341 * gnulib/import/m4/strerror.m4: New.
1342 * gnulib/import/m4/strstr.m4: New.
1343 * gnulib/import/m4/sys_socket_h.m4: New.
1344 * gnulib/import/strerror-override.c: New.
1345 * gnulib/import/strerror-override.h: New.
1346 * gnulib/import/strerror.c: New.
1347 * gnulib/import/strstr.c: New.
1349 2013-11-18 Tom Tromey <tromey@redhat.com>
1351 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1354 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1356 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1357 * sparc-tdep.h: And its prototype.
1359 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1361 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1363 2013-11-18 Pedro Alves <palves@redhat.com>
1365 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1368 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1370 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1371 to -list-features output.
1373 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1375 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1376 <read_addr_from_reg>: Renames "read_reg".
1377 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1379 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1380 Use read_addr_from_reg in place of read_reg.
1381 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1382 in place of read_reg.
1383 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1384 dwarf_expr_read_reg.
1385 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1386 with dwarf_expr_read_addr_from_reg.
1387 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1388 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1389 needs_frame_read_addr_from_reg.
1391 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1393 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1395 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1397 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1400 2013-11-15 Tom Tromey <tromey@redhat.com>
1403 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1404 (classify_name): Likewise. Prefer a field of "this" over a
1406 (classify_inner_name, yylex): Update.
1408 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1410 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1411 Extend the documentation a bit.
1412 <get_reg_value>: New field.
1413 * dwarf2loc.c (dwarf_expr_get_reg_value)
1414 (needs_frame_get_reg_value): New functions.
1415 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1417 * dwarf2-frame.c (get_reg_value): New function.
1418 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1419 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1420 Use new callback to compute result_val.
1422 2013-11-15 Alan Modra <amodra@gmail.com>
1424 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1425 (ppc64_desc_entry_point): ..this. Update comments here and at
1427 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1428 ppc64_standard_linkage3): Update comments.
1429 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1430 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1432 (ppc64_standard_linkage4_target): New function.
1433 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1434 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1435 nop match. Fix comment wrap.
1437 2013-11-14 Pedro Alves <palves@redhat.com>
1439 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1440 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1442 2013-11-14 Pedro Alves <palves@redhat.com>
1444 * infrun.c (struct execution_control_state)
1445 <stepped_after_stopped_by_watchpoint>: New field.
1446 (get_inferior_stop_soon): New function.
1447 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1448 moved to struct execution_control_state -- adjust. Use
1449 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1451 (handle_signal_stop): New function, factored out from
1452 handle_inferior_event.
1454 2013-11-14 Pedro Alves <palves@redhat.com>
1456 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1458 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1460 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1461 Adjust to return a boolean.
1462 * breakpoint.h (enum bpstat_signal_value): Delete.
1463 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1464 (bpstat_explains_signal): Likewise.
1465 * infrun.c (handle_inferior_event) <random signal checks>:
1466 bpstat_explains_signal now returns a boolean - adjust. No longer
1467 consider hiding signals.
1469 2013-11-14 Pedro Alves <palves@redhat.com>
1471 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1472 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1473 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1475 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1476 instead of BPSTAT_SIGNAL_HIDE.
1477 * infrun.c (handle_inferior_event): Rework random signal checks.
1479 2013-11-14 Pedro Alves <palves@redhat.com>
1481 * infrun.c (struct execution_control_state): Remove
1482 'random_signal' field.
1483 (handle_syscall_event): Use bpstat_causes_stop instead of
1484 bpstat_explains_signal. Don't set ecs->random_signal.
1485 (handle_inferior_event): New 'random_signal' local.
1486 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1487 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1488 bpstat_explains_signal. Don't set ecs->random_signal.
1489 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1492 2013-11-14 Pedro Alves <palves@redhat.com>
1494 * infrun.c (handle_inferior_event): Move comment from the
1495 function's body to the function's description, adjusted.
1497 2013-11-14 Pedro Alves <palves@redhat.com>
1499 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1500 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1501 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1504 2013-11-14 Tom Tromey <tromey@redhat.com>
1506 * python/py-linetable.c (ltpy_has_line)
1507 (ltpy_get_all_source_lines): Fix loop termination condition.
1509 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1511 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1512 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1513 PARSE->LANGUAGE during command execution, if set.
1514 * mi/mi-parse.c: Add "language.h" #include.
1515 (mi_parse): Add parsing of "--language" command option.
1517 * NEWS: Add entry mentioning the new "--language" command option.
1519 2013-11-14 Pedro Alves <palves@redhat.com>
1520 Joel Brobecker <brobecker@adacore.com>
1522 * cli/cli-utils.h (extract_arg_const): Add declaration.
1523 * cli/cli-utils.c (extract_arg_const): New function.
1524 (extract_arg): Reimplement using extract_arg_const.
1526 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1528 * language.h: Add "symtab.h" #include.
1530 2013-11-13 Doug Evans <xdje42@gmail.com>
1532 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1533 specific breakpoints, don't evaluate breakpoint condition if
1536 2013-11-13 Keith Seitz <keiths@redhat.com>
1540 * cp-support.c (insepct_type): Add support for substituting
1541 namespace aliases, too.
1542 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1543 for DW_TAG_imported_declaration.
1544 (add_partial_symbol): Likewise.
1545 (process_die): Handle namespace aliases with
1546 read_namespace_alias.
1547 (die_needs_namespace): Add DW_TAG_imported_declaration.
1548 (read_namespace_alias): New function.
1549 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1550 (new_symbol_full): Handle DW_TAG_imported_declaration.
1552 2013-11-13 Keith Seitz <keiths@redhat.com>
1554 * p-exp.y (uptok): Make first parameter const.
1555 (yylex): Make `tokstart' and `tokptr' const.
1556 Don't copy the lexer input to a temporary buffer.
1558 Remove const workaround for parse_escape.
1559 Create a temporary buffer for a convenience variable instead
1560 of doing in-place modification of the input.
1561 If a match is found with a different case from the input,
1562 do not change the input at all.
1563 Use `tmp' to construct the resultant stoken instead of
1566 2013-11-13 Doug Evans <xdje42@gmail.com>
1568 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1570 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1572 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1573 entry with "ada-exceptions".
1575 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1577 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1578 after re-initialization of OBJFILE's obstack.
1580 2013-11-12 Doug Evans <xdje42@gmail.com>
1582 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1583 bs->stop != 0 on entry. Update function comment. Simplify early
1584 exit for frame mismatch. Reindent rest of function.
1586 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1591 2013-11-12 Doug Evans <dje@google.com>
1593 Work around gold/15646.
1594 * dwarf2read.c (read_index_from_section): Update comment.
1595 (struct dw2_symtab_iterator): New member global_seen.
1596 (dw2_symtab_iter_init): Initialize it.
1597 (dw2_symtab_iter_next): Skip duplicate global symbols.
1598 (dw2_expand_symtabs_matching): Ditto.
1600 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1602 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1603 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1605 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1606 (mi_cmd_info_ada_exceptions): New function.
1607 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1609 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1611 * ada-lang.h: #include "vec.h".
1612 (struct ada_exc_info): New.
1613 (ada_exc_info): New typedef.
1614 (DEF_VEC_O(ada_exc_info)): New vector.
1615 (ada_exceptions_list): Add declaration.
1616 * ada-lang.c (ada_is_exception_sym)
1617 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1618 (sort_remove_dups_ada_exceptions_list)
1619 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1620 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1621 (ada_exceptions_list_1, ada_exceptions_list)
1622 (info_exceptions_command): New function.
1623 (_initialize_ada_language): Add "info exception" command.
1625 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1628 * NEWS: Add linetable feature.
1629 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1630 * python/py-linetable.c: New file.
1631 * python/py-symtab.c (stpy_get_linetable): New function.
1632 * python/python-internal.h (symtab_to_linetable_object): Declare.
1633 (gdbpy_initialize_linetable): Ditto.
1634 * python/python.c (_initialize_python): Call
1635 gdbpy_initialize_linetable.
1637 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1639 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1640 the documentation of fields "except_string" and "condition".
1641 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1642 CONDITION on the heap before passing it to
1643 create_ada_exception_catchpoint.
1644 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1647 2013-11-11 Tom Tromey <tromey@redhat.com>
1649 * config.in, configure: Rebuild.
1650 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1652 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1654 * remote-sim.c (gdbsim_detach): Break declaration into
1655 shorter lines. No code change.
1657 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1659 * remote-sim.c (gdbsim_detach): Fix prototype.
1661 2013-11-08 Doug Evans <dje@google.com>
1663 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1664 (create_debug_types_hash_table): Only print debugging messages for
1665 each TU if dwarf2-read >= 2.
1666 (process_queue): Ditto.
1667 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1670 2013-11-08 Tom Tromey <tromey@redhat.com>
1672 * configure: Rebuild.
1673 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1675 2013-11-08 Tom Tromey <tromey@redhat.com>
1677 * configure, config.in: Rebuild.
1678 * configure.ac: Remove unused configury.
1680 2013-11-08 Tom Tromey <tromey@redhat.com>
1682 * m32c-tdep.c: Use gdb_string.h.
1684 2013-11-08 Tom Tromey <tromey@redhat.com>
1686 * configure, config.in: Rebuild.
1687 * configure.ac: Remove all link.h-related checks.
1689 2013-11-08 Tom Tromey <tromey@redhat.com>
1691 * acinclude.m4: Include common.m4.
1692 * common/common.m4: New file.
1693 * configure, config.in: Rebuild.
1694 * configure.ac: Use GDB_AC_COMMON.
1696 2013-11-08 Doug Evans <dje@google.com>
1698 * NEWS: Mention that "set debug symtab-create" now accepts a
1700 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1701 to set the symtab's primary flag.
1702 * jit.c (finalize_symtab): Ditto.
1703 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1704 * symfile.c (allocate_symtab): Only print debugging messages for
1705 symtab_create_debug levels 2 and higher.
1706 * symtab.c (symtab_create_debug): Change type to unsigned int.
1707 (set_symtab_primary): New function.
1708 (_initialize_symtab): Change "set debug symtab-create" to a
1710 * symtab.h (set_symtab_primary): Declare.
1711 (symtab_create_debug): Update decl.
1713 2013-11-08 Tom Tromey <tromey@redhat.com>
1715 * aix-thread.c (aix_thread_detach): Update.
1716 * corelow.c (core_detach): Update.
1717 * darwin-nat.c (darwin_detach): Update.
1718 * dec-thread.c (dec_thread_detach): Update.
1719 * gnu-nat.c (gnu_detach): Update.
1720 * go32-nat.c (go32_detach): Update.
1721 * inf-ptrace.c (inf_ptrace_detach): Update.
1722 * inf-ttrace.c (inf_ttrace_detach): Update.
1723 * linux-fork.c (linux_fork_detach): Update.
1724 * linux-fork.h (linux_fork_detach): Update.
1725 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1726 local for const-correctness.
1727 * linux-thread-db.c (thread_db_detach): Update.
1728 * monitor.c (monitor_detach): Update.
1729 * nto-procfs.c (procfs_detach): Update.
1730 * procfs.c (procfs_detach): Update.
1731 * record.c (record_detach): Update.
1732 * record.h (record_detach): Update.
1733 * remote-m32r-sdi.c (m32r_detach): Update.
1734 * remote-mips.c (mips_detach): Update.
1735 * remote-sim.c (gdbsim_detach): Update.
1736 * remote.c (remote_detach_1, remote_detach)
1737 (extended_remote_detach): Update.
1738 * sol-thread.c (sol_thread_detach): Update.
1739 * target.c (target_detach): Make "args" const.
1740 (init_dummy_target): Update.
1741 * target.h (struct target_ops) <to_detach>: Make argument const.
1742 (target_detach): Likewise.
1743 * windows-nat.c (windows_detach): Update.
1745 2013-11-07 Doug Evans <dje@google.com>
1748 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1749 and align fields for PT_GNU_RELRO segments.
1751 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1754 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1756 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1758 * NEWS: Document Python temporary breakpoint support.
1759 * python/py-breakpoint.c (bppy_get_temporary): New function.
1760 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1761 to temporary if True.
1763 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1765 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1766 removed to allow analyzing unconditional branch instructions
1767 with PC-relative offsets of zero.
1769 2013-11-07 Yao Qi <yao@codesourcery.com>
1771 * mi/mi-cmd-var.c: Include "language.h".
1772 (mi_cmd_var_info_expression): Get language name from
1774 * varobj.c (varobj_language_string): Remove.
1775 (variable_language): Remove declaration.
1776 (languages): Remove.
1777 (varobj_get_language): Change the type of return value.
1778 (variable_language): Remove.
1779 * varobj.h (enum varobj_languages): Remove.
1780 (varobj_language_string): Remove declaration.
1781 (varobj_get_language): Update declaration.
1783 2013-11-07 Yao Qi <yao@codesourcery.com>
1785 * language.h (struct language_defn) <la_natural_name>: New
1787 * ada-lang.c (ada_language_defn): Initialize field
1789 * c-lang.c (c_language_defn): Likewise.
1790 (cplus_language_defn, asm_language_defn): Likewise.
1791 * d-lang.c (d_language_defn): Likewise.
1792 * f-lang.c (f_language_defn): Likewise.
1793 * go-lang.c (go_language_defn): Likewise.
1794 * jv-lang.c (java_language_defn): Likewise.
1795 * language.c (unknown_language_defn ): Likewise.
1796 (auto_language_defn): Likewise.
1797 * m2-lang.c (m2_language_defn): Likewise.
1798 * objc-lang.c (objc_language_defn): Likewise.
1799 * opencl-lang.c (opencl_language_defn): Likewise.
1800 * p-lang.c (pascal_language_defn): Likewise.
1802 2013-11-07 Yao Qi <yao@codesourcery.com>
1804 * language.c (language_str): Return const char *.
1805 (add_language): Add const to 'language_names'
1806 * language.h (struct language_defn) <la_name>: Add const.
1807 (language_str: Update declaration.
1809 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1811 * s390-linux-nat.c (s390_read_description): Consider the TE field
1812 in the HWCAP for determining 'have_regset_tdb'.
1814 2013-11-06 Will Newton <will.newton@linaro.org>
1817 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1818 values. (read_partial_die): Likewise.
1820 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1823 * top.c (command_line_input): Unify interactivity tests to use
1824 input_from_terminal_p.
1825 * event-top.c (command_line_handler): Likewise.
1827 2013-11-06 Yao Qi <yao@codesourcery.com>
1829 * Makefile.in (check-perf): New target.
1831 2013-11-05 Will Newton <will.newton@linaro.org>
1834 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1835 (arm_print_float_info): Likewise.
1837 2013-11-04 Anton Blanchard <anton@samba.org>
1839 * target.c (memory_xfer_partial): Cap write to 4KB.
1841 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1843 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1844 probe scan even when the arch provides no get_longjmp_target.
1846 2013-10-31 Pedro Alves <palves@redhat.com>
1848 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1849 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1850 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1851 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1852 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1853 <bpstat handling>: If the bpstat chain wants the signal to be
1854 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1857 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1859 * breakpoint.c (update_watchpoint): Update error message and add
1860 an additional error message.
1862 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1864 * s390-tdep.h: Rename to...
1865 * s390-linux-tdep.h: ...here.
1866 * s390-tdep.c: Rename to...
1867 * s390-linux-tdep.c: ...here. Adjust #include.
1868 * s390-nat.c: Rename to...
1869 * s390-linux-nat.c: ...here. Adjust #include.
1870 * config/s390/s390.mh: Rename to...
1871 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1873 * configure.host: Reflect host rename "s390" -> "linux".
1874 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1875 * Makefile.in (ALL_TARGET_OBS): Likewise.
1876 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1878 (ALLDEPFILES): Reflect rename of .c files.
1880 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1882 * s390-nat.c: Whitespace cleanup.
1883 * s390-tdep.c: Likewise.
1884 * s390-tdep.h: Remove empty line at end of file.
1886 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1888 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1891 2013-10-29 Tom Tromey <tromey@redhat.com>
1893 * utils.c (reg): Move undefinition...
1894 * gdb_curses.h: ... here. Update comment to mention AIX.
1896 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1898 * exec.h (add_target_sections_of_objfile): New declaration.
1899 * exec.c (add_target_sections_of_objfile): New function.
1900 * symfile.c (add_symbol_file_command): Update current target sections.
1901 (remove_symbol_file_command): New command.
1902 (symfile_free_objfile): New function.
1903 (_initialize_symfile): Register observer for free_objfile events.
1904 * NEWS: Add description of the remove-symbol-file command.
1905 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1906 * objfiles.c (free_objfile): Notify free_objfile.
1907 (is_addr_in_objfile): New function.
1908 * objfiles.h (is_addr_in_objfile): New declaration.
1909 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1910 events instead of solib_unloaded events.
1911 (_initialize_printcmd): Register observer for free_objfile instead
1912 of solib_unloaded notifications.
1913 * solib.c (remove_user_added_objfile): New function.
1914 (_initialize_symfile): Add remove-symbol-file.
1916 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1918 * infcmd.c (default_print_one_register_info): Use val_print to
1919 print all values even optimized out or unavailable ones. Don't
1920 try to print a raw form of optimized out or unavailable values.
1922 2013-10-29 Yao Qi <yao@codesourcery.com>
1924 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1925 parameter 'arg' instead of from program_space_data.
1926 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1927 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1928 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1929 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1930 * inflow.c (inflow_inferior_data_cleanup): Get data from
1931 parameter 'arg' instead of inferior_data.
1932 * registry.h: Add comments.
1934 2013-10-28 Pedro Alves <palves@redhat.com>
1936 * breakpoint.c (watchpoints_triggered)
1937 <!target_stopped_data_address>: Hardcode return 1.
1939 2013-10-28 Pedro Alves <palves@redhat.com>
1941 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1944 2013-10-28 Pedro Alves <palves@redhat.com>
1946 * infrun.c (process_event_stop_test): New function, factored out
1947 from handle_inferior_event.
1948 (handle_inferior_event): 'process_event_stop_test' is now a
1949 function instead of a goto label -- adjust.
1951 2013-10-28 Pedro Alves <palves@redhat.com>
1953 * infrun.c (handle_inferior_event): Move process_event_stop_test
1954 goto label to the else branch of the ecs->random_signal check,
1955 along with FRAME and GDBARCH re-fetching.
1957 2013-10-28 Pedro Alves <palves@redhat.com>
1959 * infrun.c (switch_back_to_stepped_thread): New function, factored
1960 out from handle_inferior_event.
1961 (handle_inferior_event): Adjust to call
1962 switch_back_to_stepped_thread. Call it also at the tail of the
1963 random signal handling, and return, instead of also handling
1964 random signals just before the stepping tests.
1966 2013-10-28 Pedro Alves <palves@redhat.com>
1968 * infrun.c (clear_stop_func): Delete.
1969 (handle_inferior_event): Don't call clear_stop_func and don't
1970 clear 'ecs->random_signal'.
1972 2013-10-27 Yao Qi <yao@codesourcery.com>
1974 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1975 (varobj_create, varobj_get_path_expr): Update.
1976 (varobj_value_has_mutated, varobj_update): Likewise.
1977 (create_child_with_value, new_root_variable): Likewise.
1978 (number_of_children, name_of_variable): Likewise.
1979 (value_of_child, my_value_of_variable): Likewise.
1980 (varobj_value_is_changeable_p): Likewise.
1982 2013-10-25 Yao Qi <yao@codesourcery.com>
1984 * language.h (struct lang_varobj_ops): Declare.
1985 (struct language_defn) <la_varobj_ops>: New field.
1986 * ada-lang.c: Include "varobj.h"
1987 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1989 * c-lang.c: Include "varobj.h"
1990 (c_language_defn): Initialize field 'la_varobj_ops' with
1992 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1994 (asm_language_defn): Initialize field 'la_varobj_ops' with
1996 (minimal_language_defn): Likewise.
1997 * d-lang.c (d_language_defn): Likewise.
1998 * f-lang.c (f_language_defn): Likewise.
1999 * go-lang.c (go_language_defn): Likewise.
2000 * m2-lang.c (m2_language_defn): Likewise.
2001 * objc-lang.c (objc_language_defn): Likewise.
2002 * opencl-lang.c (opencl_language_defn): Likewise.
2003 * p-lang.c (pascal_language_defn): Likewise.
2004 * language.c (unknown_language_defn): Likewise.
2005 (auto_language_defn): Likewise.
2006 (local_language_defn): Likewise.
2007 * jv-lang.c (java_language_defn): Initialize field
2008 'la_varobj_ops' with java_varobj_ops.
2009 * varobj.c (varobj_create): Update.
2010 * varobj.h (default_varobj_ops): Define macro.
2012 2013-10-25 Pedro Alves <palves@redhat.com>
2014 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2016 (cp_print_static_field): If the value is entirely optimized out,
2017 print <optimized out> here.
2018 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2020 * p-valprint.c (pascal_object_print_static_field): If the value is
2021 entirely optimized out, print <optimized out> here.
2022 * valops.c (do_search_struct_field)
2023 (value_struct_elt_for_reference): No longer handle a NULL static
2025 * value.c (value_static_field): Return an optimized out value
2028 2013-10-25 Yao Qi <yao@codesourcery.com>
2030 * remote.c (remote_traceframe_info): Return early if
2031 traceframe is not selected.
2033 2013-10-25 Yao Qi <yao@codesourcery.com>
2035 * tracepoint.c (traceframe_fun): Remove.
2036 (traceframe_sal): Remove.
2037 (set_traceframe_context): Add local variables.
2039 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2041 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2044 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2046 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2047 failure from register information collection.
2049 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2051 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2053 (linux_corefile_thread_callback): Update accordingly.
2054 (linux_make_corefile_notes): Likewise.
2056 2013-10-24 Pedro Alves <palves@redhat.com>
2058 * NEWS (New options): Mention set/show startup-with-shell.
2059 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2061 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2062 startup-with-shell'.
2063 (show_startup_with_shell): New function.
2064 (_initialize_fork_child): Register the set/show startup-with-shell
2066 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2067 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2068 * procfs.c (procfs_init_inferior): Remove comment.
2069 * infcmd.c (startup_with_shell): New global.
2070 * inferior.h (startup_with_shell): Declare global.
2071 (STARTUP_WITH_SHELL): Delete.
2072 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2074 2013-10-23 Pedro Alves <palves@redhat.com>
2076 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2077 * common/signals.c: Include "gdb_assert.h".
2078 (signals): New field 'symbol'.
2079 (SET): Use the 'symbol' parameter.
2080 (gdb_signal_to_symbol_string): New function.
2081 * infrun.c (handle_inferior_event) <random signal>: In debug
2082 output, print the random signal enum as string in addition to its
2084 * target/waitstatus.c (target_waitstatus_to_string): Print the
2085 signal's enum value as string instead of the (POSIX) signal name.
2087 2013-10-23 Gary Benson <gbenson@redhat.com>
2090 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2091 from 32 to 18. Adjusted fscanf format string accordingly.
2092 (Avoids leaving cmd unterminated.)
2093 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2094 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2095 that local_address and remote_address will not overflow.
2096 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2097 leaving dependencies unterminated. Parse size as "%u" to match
2100 2013-10-22 Pedro Alves <palves@redhat.com>
2102 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2103 set ecs->random signal.
2105 2013-10-22 Pedro Alves <palves@redhat.com>
2107 * infrun.c (keep_going): Update comments.
2109 2013-10-22 Pedro Alves <palves@redhat.com>
2111 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2112 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2114 2013-10-22 Pedro Alves <palves@redhat.com>
2116 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2118 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2119 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2120 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2121 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2122 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2123 (GDB_SIGNAL_LAST): Change description string.
2124 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2125 Adjust to signal renaming.
2126 * darwin-nat.c (darwin_decode_message): Likewise.
2128 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2130 * MAINTAINERS (Write After Approval): Add myself to the list.
2132 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2134 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2135 forced off, downgrade them to software watchpoints if possible,
2136 and error out if not possible.
2137 (watch_command_1): Move watchpoint type selection closer to
2138 watchpoint creation, and extend the comments.
2140 2013-10-18 Pedro Alves <palves@redhat.com>
2143 * infrun.c (handle_inferior_event): Keep going if we got a random
2144 signal we should not stop for, instead of falling through to the
2147 2013-10-18 Yao Qi <yao@codesourcery.com>
2149 * c-varobj.c (cplus_number_of_children): Fix indentation.
2151 2013-10-17 Tom Tromey <tromey@redhat.com>
2154 * printcmd.c (printcmd): Call gdb_flush.
2156 2013-10-17 Tom Tromey <tromey@redhat.com>
2158 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2159 (elf_locate_sections): Update.
2161 2013-10-17 Yao Qi <yao@codesourcery.com>
2163 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2164 * ada-varobj.c: Remove the include of ada-varobj.h.
2165 (ada_varobj_get_number_of_children): Declare.
2166 (ada_varobj_get_name_of_child): Make it static.
2167 (ada_varobj_get_path_expr_of_child): Likewise.
2168 (ada_varobj_get_value_of_child): Likewise.
2169 (ada_varobj_get_type_of_child): Likewise.
2170 (ada_varobj_get_value_of_array_variable): Likewise.
2171 * ada-varobj.h: Remove.
2173 2013-10-17 Yao Qi <yao@codesourcery.com>
2175 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2176 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2177 * ada-varobj.c: Include "varobj.h".
2178 (ada_number_of_children): New. Moved from varobj.c.
2179 (ada_name_of_variable, ada_name_of_child): Likewise.
2180 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2181 (ada_type_of_child, ada_value_of_variable): Likewise.
2182 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2183 (ada_varobj_ops): New.
2184 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2185 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2186 * gdbtypes.h (get_target_type): Declare.
2187 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2189 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2190 (ANONYMOUS_UNION_NAME): Likewise.
2191 (get_type, get_value_type, get_target_type): Remove declarations.
2192 (value_get_print_value, varobj_value_get_print_value): Likewise.
2193 (c_number_of_children, c_name_of_variable): Likewise.
2194 (c_name_of_child, c_path_expr_of_child): Likewise.
2195 (c_value_of_child, c_type_of_child): Likewise.
2196 (c_value_of_variable, cplus_number_of_children): Likewise.
2197 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2198 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2199 (cplus_value_of_child, cplus_type_of_child): Likewise.
2200 (cplus_value_of_variable, java_number_of_children): Likewise.
2201 (java_name_of_variable, java_name_of_child): Likewise.
2202 (java_path_expr_of_child, java_value_of_child): Likewise.
2203 (java_type_of_child, java_value_of_variable): Likewise.
2204 (ada_number_of_children, ada_name_of_variable): Likewise.
2205 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2206 (ada_value_of_child, ada_type_of_child): Likewise.
2207 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2208 (ada_value_has_mutated): Likewise.
2209 (struct language_specific): Move it to varobj.h.
2210 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2211 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2213 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2215 (is_anonymous_child): Move it to c-varobj.c and rename to
2216 varobj_is_anonymous_child. Caller update.
2217 (get_type): Move it to c-varobj.c.
2218 (get_value_type): Rename it varobj_get_value_type. Make it
2220 (get_target_type): Move it gdbtypes.c.
2221 (varobj_formatted_print_options): New function.
2222 (value_get_print_value): Rename it to
2223 varobj_value_get_print_value and make it extern.
2224 (varobj_value_is_changeable_p): Make it extern.
2225 (adjust_value_for_child_access): Move it to c-varobj.c.
2226 (default_value_is_changeable_p): Rename it to
2227 varobj_default_value_is_changeable_p. Make it extern.
2228 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2229 (c_name_of_child, c_path_expr_of_child): Likewise.
2230 (c_value_of_child, c_type_of_child): Likewise.
2231 (c_value_of_variable, cplus_number_of_children): Likewise.
2232 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2233 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2234 (cplus_value_of_child, cplus_type_of_child): Likewise.
2235 (cplus_value_of_variable): Likewise.
2236 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2237 (java_name_of_child, java_path_expr_of_child): Likewise.
2238 (java_value_of_child, java_type_of_child): Likewise.
2239 (java_value_of_variable): Likewise.
2240 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2241 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2242 (ada_value_of_child, ada_type_of_child): Likewise.
2243 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2244 (ada_value_has_mutated): Likewise.
2245 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2246 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2247 (c_varobj_ops, cplus_varobj_ops): Declare.
2248 (java_varobj_ops, ada_varobj_ops): Declare.
2249 (varobj_default_value_is_changeable_p): Declare.
2250 (varobj_value_is_changeable_p): Declare.
2251 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2252 (varobj_get_path_expr_parent): Declare.
2253 (varobj_value_get_print_value): Declare.
2254 (varobj_formatted_print_options): Declare.
2255 (varobj_restrict_range): Declare.
2257 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2259 * target/waitstatus.h (target_waitkind): Remove spurious
2260 character from the comments.
2262 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2264 * gdbarch.sh (get_longjmp_target): Add method documentation.
2265 * gdbarch.h: Regenerate.
2267 2013-10-16 Tom Tromey <tromey@redhat.com>
2269 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2272 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2274 * gcore.in: Call GDB using the full path to the gcore script.
2275 Error out if the GDB binary is not found.
2277 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2280 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2283 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2286 * target.c (target_disable_btrace): Fix invalid return value for
2288 (target_teardown_btrace): Likewise.
2290 2013-10-14 Yao Qi <yao@codesourcery.com>
2292 * varobj.c (struct varobj): Move most of the fields to
2294 (struct varobj_dynamic): New struct.
2295 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2296 (varobj_has_more): Likewise.
2297 (dynamic_varobj_has_child_method): Likewise.
2298 (update_dynamic_varobj_children): Likewise.
2299 (varobj_get_num_children): Likewise.
2300 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2301 (install_new_value_visualizer): Likewise.
2302 (install_new_value_visualizer, install_new_value): Likewise.
2303 (varobj_update, new_variable, free_variable): Likewise.
2304 (my_value_of_variable, value_get_print_value): Likewise.
2305 (install_visualizer): Change the type of parameter 'var' to
2306 'struct varobjd_dynamic *'. Callers update.
2307 * varobj.h (struct varobj): Moved from varobj.c.
2308 (struct varobj) <dynamic>: New field.
2310 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2312 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2313 as the preferred name of r30.
2314 * nios2-linux-tdep.c (reg_offsets): Likewise.
2315 * features/nios2-cpu.xml: Likewise.
2316 * features/nios2-linux.c: Regenerated.
2317 * features/nios2.c: Regenerated.
2318 * regformats/nios2-linux.dat: Regenerated.
2320 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2322 Canonicalize directories for EXEC_FILENAME.
2323 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2325 * utils.c (gdb_realpath_keepfile): New function.
2326 * utils.h (gdb_realpath_keepfile): New declaration.
2328 2013-10-11 Doug Evans <dje@google.com>
2330 * Makefile.in (GDBFLAGS): New variable.
2333 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2335 * NEWS: Add entry documenting the new "-catch-assert" and
2336 "-catch-exception" GDB/MI commands.
2338 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2340 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2342 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2343 "enabled". Set B->ENABLE_STATE accordingly.
2344 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2346 (create_ada_exception_catchpoint): Add declaration.
2347 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2348 (create_ada_exception_catchpoint): Make non-static. Add new
2349 parameter "disabled". Use it in call to
2350 init_ada_exception_breakpoint.
2351 (catch_ada_exception_command): Add parameter "enabled" in call
2352 to create_ada_exception_catchpoint.
2353 (catch_assert_command): Likewise.
2355 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2357 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2358 "catch-exception" commands.
2359 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2360 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2362 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2364 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2365 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2366 of all its enumerates with "ada_". Update the rest of this
2369 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2371 * ada-lang.c (ada_decode_exception_location): Delete.
2372 (create_ada_exception_catchpoint): Remove arguments "sal",
2373 "addr_string" and "ops". Add argument "ex_kind" instead.
2374 Adjust implementation accordingly, calling ada_exception_sal
2375 to get the entities it no longer gets passed as arguments.
2376 Document the function's arguments.
2377 (catch_ada_exception_command): Use catch_ada_exception_command_split
2378 instead of ada_decode_exception_location, and update call to
2379 create_ada_exception_catchpoint.
2380 (catch_ada_assert_command_split): Renames
2381 ada_decode_assert_location. Remove parameters "addr_string" and
2382 "ops", and now returns void. Adjust implementation accordingly.
2383 Update the function documentation.
2384 (catch_assert_command): Use catch_ada_assert_command_split
2385 instead of ada_decode_assert_location. Update call to
2386 create_ada_exception_catchpoint.
2388 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2390 * utils.h (perror_warning_with_name): Add declaration.
2391 * utils.c (perror_warning_with_name): New function.
2392 * cli/cli-cmds.c (source_script_with_search): Add call to
2393 perror_warning_with_name if from_tty is nul.
2395 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2397 * utils.c (perror_string): New function, extracted out of
2398 throw_perror_with_name.
2399 (throw_perror_with_name): Rework to use perror_string.
2401 2013-10-11 Yao Qi <yao@codesourcery.com>
2403 * remote.c (discard_pending_stop_replies_in_queue): Update
2405 (struct stop_reply) <rs>: New field.
2406 (remove_stop_reply_of_remote_state): New function.
2407 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2408 Callers update. Pass remove_stop_reply_of_remote_state to
2410 (remote_parse_stop_reply): Initialize field 'rs'.
2412 2013-10-10 Will Newton <will.newton@linaro.org>
2414 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2417 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2419 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2420 serial_baud_show_cmd.
2421 (_initialize_cli_cmds): Delete the code creating the
2422 "set/show remotebaud" commands.
2423 * serial.c (baud_rate): Move here from top.c.
2424 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2425 (_initialize_serial): Create "set/show serial baud" commands.
2426 Add "set/show remotebaud" command aliases.
2427 * top.c (baud_rate): Moved to serial.c.
2428 * NEWS: Document the new "set/show serial baud" commands,
2429 replacing "set/show remotebaud".
2431 2013-10-09 Pedro Alves <palves@redhat.com>
2433 * breakpoint.c (insert_bp_location): Use memory_error_message to
2434 build the memory error string.
2435 * c-lang.c: Include "gdbcore.h".
2436 (c_get_string): Use memory_error to throw error.
2437 (target_xfer_memory_error): Delete.
2438 (memory_error_message): New, factored out from
2439 target_xfer_memory_error.
2440 (memory_error): Change parameter type to target_xfer_error.
2442 (read_memory): Use memory_error instead of
2443 target_xfer_memory_error.
2444 * gdbcore.h: Include "target.h".
2445 (memory_error): Change parameter type to target_xfer_error.
2446 (memory_error_message): Declare function.
2447 * target.c (target_read_memory, target_read_stack)
2448 (target_write_memory, target_write_raw_memory): Return
2449 TARGET_XFER_E_IO on error. Adjust comments.
2450 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2452 * target.h (target_read, target_insert_breakpoint)
2453 (target_remove_breakpoint): Adjust comments.
2454 * valprint.c (partial_memory_read): Rename parameter, and adjust
2456 (val_print_string): Use memory_error_message to build the memory
2459 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2462 result variable. Rename variable fopen_e_ever_failed to
2463 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2465 2013-10-09 Pedro Alves <palves@redhat.com>
2467 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2468 (monitor_write_memory_longlongs, monitor_write_memory_block):
2469 Constify 'myaddr' parameter.
2470 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2472 (monitor_xfer_partial): New function.
2473 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2474 hook. Install a to_xfer_partial hook.
2476 2013-10-09 Tom Tromey <tromey@redhat.com>
2478 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2479 bfd_get_alt_debug_link_info.
2481 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 New flag OBJF_NOT_FILENAME.
2484 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2485 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2487 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2488 symbol_file_add_from_bfd.
2489 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2491 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2493 * objfiles.h (OBJF_NOT_FILENAME): New.
2495 2013-10-08 Tom Tromey <tromey@redhat.com>
2497 * Makefile.in (SFILES): Add build-id.c.
2498 (HFILES_NO_SRCDIR): Add build-id.h.
2499 * build-id.c: New file, largely from elfread.c. Modified
2501 * build-id.h: New file.
2502 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2503 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2504 Search for dwz file using build-id.
2505 * elfread.c (build_id_bfd_get, build_id_verify)
2506 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2508 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2510 * ada-lang.c (compare_names_with_case): Renamed from
2511 compare_names, adding a new parameter "casing" and its handling.
2512 New function documentation.
2513 (compare_names): New function, implemented using
2514 compare_names_with_case.
2516 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2518 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2520 2013-10-07 Tom Tromey <tromey@redhat.com>
2522 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2523 demangled_names_hash.
2524 (free_objfile): Don't delete the demangled_names_hash.
2525 * objfiles.h (struct objfile_per_bfd_storage)
2526 <demangled_names_hash>: New field.
2527 (struct objfile) <demangled_names_hash>: Move to
2528 objfile_per_bfd_storage.
2529 * symfile.c (reread_symbols): Don't delete the
2530 demangled_names_hash.
2531 * symtab.c (create_demangled_names_hash): Update.
2532 (symbol_set_names): Update.
2534 2013-10-07 Tom Tromey <tromey@redhat.com>
2536 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2537 needs_relocations>: New fields.
2538 (gdb_bfd_requires_relocations): New function.
2539 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2540 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2541 the BFD needs relocations applied.
2543 2013-10-07 Pedro Alves <palves@redhat.com>
2545 PR breakpoints/11568
2546 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2547 the thread list" instead of "gone".
2549 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2551 * NEWS: Mention new convenience variable $_exitsignal.
2552 * corelow.c (core_open): Reset exit convenience variables. Set
2553 $_exitsignal to the uncaught signal which generated the corefile.
2554 * infrun.c (handle_inferior_event): Reset exit convenience
2555 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2556 (clear_exit_convenience_vars): New function.
2557 * inferior.h (clear_exit_convenience_vars): New prototype.
2559 2013-10-06 Yao Qi <yao@codesourcery.com>
2561 * varobj.h: Add comments to enum varobj_languages.
2563 2013-10-04 Doug Evans <dje@google.com>
2565 Add support for DWP file format version 2.
2566 * NEWS: Mention support for DWP file format version 2.
2567 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2568 union of asection, containing_section. New fields virtual_offset
2569 and is_virtual. Change type of readin filed from int to char.
2570 (dwo_sections, dwo_file): Tweak comments.
2571 (dwp_v2_section_ids): New enum.
2572 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2574 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2576 (virtual_v2_dwo_sections): New struct.
2577 (dwp_hash_table): New fields version, nr_columns. Change type of
2578 section_pool field to a union.
2579 (dwp_file): New field version.
2580 (dwarf2_has_info): Check for virtual sections.
2581 (get_containing_section): New function.
2582 (get_section_bfd_owner, get_section_bfd_section): Call it.
2583 (dwarf2_locate_sections): Update.
2584 (dwarf2_section_empty_p): Update.
2585 (dwarf2_read_section): Handle virtual sections.
2586 (locate_dwz_sections): Update.
2587 (create_dwp_hash_table): Document and handle V2 format.
2588 (locate_v1_virtual_dwo_sections): Renamed from
2589 locate_virtual_dwo_sections and update. All callers updated.
2590 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2591 Delete arg htab. Rename arg section_index to unit_index.
2592 All callers updated.
2593 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2595 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2596 (lookup_dwo_unit_in_dwp): Add V2 support.
2597 (dwarf2_locate_dwo_sections): Update.
2598 (dwarf2_locate_common_dwp_sections): Renamed from
2599 dwarf2_locate_dwp_sections and update. All callers updated.
2600 (dwarf2_locate_v2_dwp_sections): New function.
2601 (open_and_init_dwp_file): Add V2 support.
2602 (read_str_index): New locals str_section, str_offsets_section.
2604 2013-10-04 Pedro Alves <palves@redhat.com>
2606 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2607 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2608 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2609 describing comments with references to ptid.h.
2610 * common/ptid.h: Remove intro description of constructors,
2611 accessors and predicates.
2612 (struct ptid): Reformat.
2613 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2614 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2615 describing comments.
2617 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2619 * aix-thread.c (sync_threadlists): Add missing ')' in call
2622 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2624 * procfs.c (procfs_init_inferior): Fix typo causing the build
2627 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2629 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2631 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2633 * mi/mi-main.c (run_one_inferior): Add function description.
2634 Make ARG a pointer to an integer whose value determines whether
2635 we should "run" or "start" the program.
2636 (mi_cmd_exec_run): Add handling of the "--start" option.
2637 Reject all other command-line options.
2638 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2640 2013-10-04 Yao Qi <yao@codesourcery.com>
2642 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2643 (struct notif_client) <pending_event>: Moved
2644 to struct remote_notif_state.
2646 (struct remote_notif_state) <pending_event>: New field.
2647 (notif_event_xfree): Declare.
2648 * remote-notif.c (handle_notification): Adjust.
2649 (notif_event_xfree): New function.
2650 (do_notif_event_xfree): Call notif_event_xfree.
2651 (remote_notif_state_xfree): Call notif_event_xfree to free
2652 each element in field pending_event.
2653 * remote.c (discard_pending_stop_replies): Remove declaration.
2654 (discard_pending_stop_replies_in_queue): Declare.
2655 (remote_close): Call discard_pending_stop_replies_in_queue
2656 instead of discard_pending_stop_replies.
2657 (remote_start_remote): Adjust.
2658 (stop_reply_xfree): Call notif_event_xfree.
2659 (notif_client_stop): Adjust initialization.
2660 (remote_notif_remove_all): Rename it to ...
2661 (remove_stop_reply_for_inferior): ... this. Update comments.
2662 Don't check INF is NULL.
2663 (discard_pending_stop_replies): Return early if notif_state is
2664 NULL. Adjust. Don't check INF is NULL.
2665 (remote_notif_get_pending_events): Adjust.
2666 (discard_pending_stop_replies_in_queue): New function.
2667 (remote_wait_ns): Likewise.
2669 2013-10-04 Yao Qi <yao@codesourcery.com>
2671 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2672 (notif_queue): Remove.
2673 (remote_notif_process): Add one parameter 'notif_queue'.
2674 Update comments. Callers update.
2675 (remote_async_get_pending_events_token): Remove.
2676 (remote_notif_register_async_event_handler): Remove.
2677 (remote_notif_unregister_async_event_handler): Remove.
2678 (handle_notification): Add parameter 'notif_queue'. Update
2679 comments. Callers update.
2680 (notif_xfree): Remove.
2681 (remote_notif_state_allocate): New function.
2682 (remote_notif_state_xfree): New function.
2683 (_initialize_notif): Remove code to allocate queue.
2684 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2685 (struct remote_notif_state): New.
2686 (handle_notification): Update declaration.
2687 (remote_notif_process): Likewise.
2688 (remote_notif_register_async_event_handler): Remove.
2689 (remote_notif_unregister_async_event_handler): Remove.
2690 (remote_notif_state_allocate): Declare.
2691 (remote_notif_state_xfree): Declare.
2692 * remote.c (struct remote_state) <notif_state>: New field.
2693 (remote_close): Don't call
2694 remote_notif_unregister_async_event_handler. Call
2695 remote_notif_state_xfree.
2696 (remote_open_1): Don't call
2697 remote_notif_register_async_event_handler. Call
2698 remote_notif_state_allocate.
2700 2013-10-04 Yao Qi <yao@codesourcery.com>
2702 * varobj.c (create_child_with_value): Remove 'const' from the
2703 type of parameter 'name'.
2704 (varobj_add_child): Likewise.
2705 (install_dynamic_child): Remove 'const' from the type of
2707 (varobj_add_child): Likewise.
2708 (create_child_with_value): Likewise. Update comments. Don't
2710 (update_dynamic_varobj_children): Duplicate 'name'
2711 and pass it to install_dynamic_child.
2713 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2715 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2716 conversion logic to occur after PyLong_Check. Comment on order
2717 change significance.
2718 * python/py-arch.c (archpy_disassemble): Comment on order of
2719 conversion for integers and longs.
2721 2013-10-03 Pedro Alves <palves@redhat.com>
2723 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2724 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2725 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2726 PTRACE_O_TRACEFORK is not supported.
2727 (linux_test_for_tracesysgood): New function.
2728 (linux_test_for_tracefork): New function, factored out from
2729 linux_check_ptrace_features, and also don't kill child_pid here.
2731 2013-10-03 Tristan Gingold <gingold@adacore.com>
2733 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2734 Remove verbose error reporting. Use detected state to
2735 thread_set_state call.
2736 (i386_darwin_dr_get): Fix return type. Remove verbose error
2738 Remove trailing spaces.
2740 2013-10-02 Pedro Alves <palves@redhat.com>
2742 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2743 val_print_optimized_out.
2744 * jv-valprint.c (java_print_value_fields): Likewise.
2745 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2746 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2747 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2748 new optimized out value.
2749 * findvar.c (address_from_register): Likewise.
2750 * frame.c (put_frame_register): Tweak error string to say the
2751 register was not saved, rather than optimized out.
2752 * infcmd.c (default_print_one_register_info): Adjust call to
2753 val_print_optimized_out. Use value_of_register instead of
2754 get_frame_register_value.
2755 * mi/mi-main.c (output_register): Use value_of_register instead of
2756 get_frame_register_value.
2757 * valprint.c (valprint_check_validity): Likewise.
2758 (val_print_optimized_out): New value parameter. If the value is
2759 lval_register, print <not saved> instead.
2760 (value_check_printable, val_print_scalar_formatted): Adjust calls
2761 to val_print_optimized_out.
2762 * valprint.h (val_print_optimized_out): New value parameter.
2763 * value.c (struct value) <optimized_out>: Extend comment.
2764 (error_value_optimized_out): New function.
2765 (require_not_optimized_out): Use it. Use a different string for
2766 lval_register values.
2767 * value.h (error_value_optimized_out): New declaration.
2768 * NEWS: Mention <not saved>.
2770 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2772 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2773 strcmp to compare two symtab filenames.
2775 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2777 * symtab.c (search_symbols_equal): Delete.
2778 (sort_search_symbols_remove_dups): Replace call to
2779 search_symbols_equal by call to compare_search_syms,
2780 adjusting as necessary.
2782 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2785 * python/python.c: Document gdb.execute command in Python help.
2787 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2789 * python/py-frame.c (frame_info_to_frame_object): Use
2790 gdbpy_convert_exception. Clean up Python object on failure.
2792 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2794 * python/lib/gdb/command/frame_filters.py
2795 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2796 (ShowFrameFilterPriority.invoke): Ditto.
2798 2013-10-01 Keith Seitz <keiths@redhat.com>
2800 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2801 (parse_linespec): Make 'argptr' const.
2802 Remove temporary cast of 'argptr' to const char **.
2803 (decode_line_full): Pass const pointer to parse_linespec.
2804 (decode_line_1): Likewise.
2805 (decode_objc): Make local variable 'new_argptr' const.
2806 (find_function_symbols): Remove temporary cast to char *
2808 * objc-lang.c (find_imps): Make argument 'method' const.
2810 * objc-lang.h (find_imps): Likewise.
2812 2013-10-01 Keith Seitz <keiths@redhat.com>
2814 * completer.c (skip_quoted_chars): Make all arguments const.
2816 (skip_quoted): Likewise.
2817 * completer.h (skip_quoted_chars): Likewise.
2818 (skip_quoted): Likewise.
2819 * defs.h (skip_quoted): Remove duplicate declaration.
2820 * jv-exp.y: Include completer.h.
2821 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2822 * p-exp.y: Include completer.h.
2824 2013-10-01 Keith Seitz <keiths@redhat.com>
2826 * c-exp.y (parse_number): Make first argument const.
2827 Make a copy of the input to manipulate.
2828 (c_parse_escape): Make first argument const.
2829 Make local variable 'tokptr' const.
2830 (parse_string_or_char): Make first two arguments const.
2831 (macro_original_text): Make const.
2832 (lex_one_token): Make local variable 'tokstart' const.
2833 Likewise for local variables named 'p'.
2834 Cast away const for struct stoken (temporary).
2835 * c-lang.h (c_parse_escpae): Make first argument const.
2836 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2838 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2840 * f-exp.y (parse_number): Make first argument const.
2841 (match_string_literal): Make local variable 'tokstart'
2843 (yylex): Make local variable 'p' const.
2844 Cast away const for struct stoken (temporary).
2845 * go-exp.y (parse_number): Make first argument const.
2846 (parse_string_or_char): Likewise.
2847 Make local variable 'tokstart' const.
2848 (lex_one_token): Likewise for numerous locals called 'p'.
2849 Cast away const for struct stoken (temporary).
2850 * jv-exp.y (parse_number): Make first argument const.
2851 Make local variables 'tokstart' and 'tokptr' const.
2852 Cast away const for call to skip_quoted (temporary).
2853 (yylex): Make local variable 'p' const.
2854 Cast away const for struct stoken (temporary).
2855 * m2-exp.y (parse_number): Make local variable 'p' const.
2856 (yylex): Likewise for 'tokstart'.
2857 Cast away const for struct stoken (temporary).
2858 Make local variable 'p' const.
2859 * macroexp.c (get_character_constant): Pass a const string
2861 (get_string_literal): Likewise.
2862 (macro_expand_next): Make first argument const.
2863 Cast away const for init_shared_buffer.
2864 * macroexp.h (macro_expand_next): Make first argument const.
2865 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2866 Pass a const string to c_parse_escape.
2867 Make local variables 'p' and 'namestart' const.
2868 * parse.c (lexptr): Make const.
2869 (prev_lexptr): Likewise.
2870 (find_template_name_end): Return const.
2871 Make argument const, too.
2872 (parse_exp_in_context): Make first argument const.
2873 Remove the entire const_hack.
2874 (parse_exp_in_context_1): Make first argument const.
2875 * parser-defs.h (find_template_name_end): Return const.
2876 Make argument const, too.
2877 (lexptr): Make const.
2878 (prev_lexptr): Likewise.
2879 * utils.c (parse_escape): Make second argument const.
2880 * utils.h (parse_escape): Likewise.
2882 2013-10-01 Keith Seitz <keiths@redhat.com>
2884 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2886 (block_lookup): Make 'raw_name' and 'name' const.
2887 * ada-lex.l (processString): Update for struct stoken.ptr.
2888 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2889 (operator_stoken): Likewise.
2890 (lex_one_token): Remove temporary cast to char * for
2892 * f-exp.y (yylex): Likewise.
2893 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2894 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2895 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2897 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2898 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2899 * linespec.c (struct ls_parser): Make 'stream' const.
2900 (find_parameter_list_end): Make argument 'input' and local
2902 (linespec_lexer_lex_string): Make local variables 'start' and
2904 Use skip_spaces_const instead of skip_spaces.
2905 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2907 (parse_linespec): Temporarily cast 'argptr' to const for
2908 'parser->lexer.stream'.
2909 * m2-exp.y (yylex): Remove temporary cast to char * for
2911 * objc-lang.c (add_msglist): Make local variable 'p' const.
2912 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2913 (exp : STRING): Make 'sp' const.
2914 (parse_number): Make argument 'p' const.
2915 * parser-defs.h (struct stoken): Make 'ptr' const.
2917 2013-10-01 Doug Evans <dje@google.com>
2919 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2921 2013-10-01 Yao Qi <yao@codesourcery.com>
2923 * varobj.c (c_value_of_root): Remove declaration.
2924 (cplus_value_of_root, java_value_of_root): Likewise.
2925 (ada_value_of_root): Likewise.
2926 (struct language_specific) <value_of_root>: Remove.
2927 (languages): Update initialization.
2928 (check_scope): Move earlier.
2929 (c_value_of_root): Move earlier and rename to ...
2930 (value_of_root_1): ... this.
2931 (value_of_root): Caller update.
2932 (cplus_value_of_root, java_value_of_root): Remove.
2933 (ada_value_of_root): Remove.
2935 2013-10-01 Yao Qi <yao@codesourcery.com>
2937 * varobj.c (varobj_format_string): Remove "unknown".
2938 (languages): Remove the first element.
2939 * varobj.h (enum varobj_languages): Remove vlang_c.
2941 2013-10-01 Yao Qi <yao@codesourcery.com>
2943 * varobj.c (struct language_specific) <language>: Remove.
2944 (languages): Update the initialization.
2946 2013-10-01 Yao Qi <yao@codesourcery.com>
2948 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2949 "solib-target.h". Include "windows-tdep.h".
2950 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2951 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2952 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2953 windows-tdep.o to gdb_target_obs.
2955 2013-10-01 Yao Qi <yao@codesourcery.com>
2957 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2959 (amd64_windows_init_abi): Don't call set_solib_ops and
2960 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2961 windows_init_abi instead.
2962 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2964 (i386_cygwin_init_abi): Don't call set_solib_ops,
2965 set_gdbarch_has_dos_based_file_system and
2966 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2967 windows_init_abi instead.
2968 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2969 (windows_init_abi): New function.
2970 (windows_iterate_over_objfiles_in_search_order): Make it
2972 * windows-tdep.h (windows_init_abi): Declare.
2973 (windows_iterate_over_objfiles_in_search_order): Remove
2976 2013-10-01 Jerome Guitton <guitton@adacore.com>
2978 Checked in by Joel Brobecker <brobecker@adacore.com>
2979 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2980 incomplete dictionnary instead of None in case of missing
2981 environment variables.
2982 (elinos_init): in case of an incomplete environment, best
2983 effort to load system libraries instead of abort.
2985 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2987 * ada-lang.c (ada_has_this_exception_support): Ignore
2988 mst_solib_trampoline minimal symbols.
2990 2013-09-30 Tristan Gingold <gingold@adacore.com>
2992 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2993 hardware watchpoint.
2994 (i386_darwin_dr_set): Support 32 and 64 bit states.
2995 (i386_darwin_dr_get): Likewise.
2996 (i386_darwin_dr_set_control): Make static.
2997 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2998 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3000 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3002 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3003 Replace TIDGET with ptid_get_lwp.
3004 Replace GET_LWP with ptid_get_lwp.
3005 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3006 Replace BUILD_THREAD with ptid_build.
3007 Replace BUILD_LWP with ptid_build.
3008 Replace PIDGET with ptid_get_pid.
3009 Replace TIDGET with ptid_get_lwp.
3010 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3011 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3012 Replace TIDGET with ptid_get_lwp.
3013 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3014 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3015 Replace TIDGET with ptid_get_lwp.
3016 Replace GET_LWP with ptid_get_lwp.
3017 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3019 * breakpoint.c: Likewise.
3020 * common/ptid.c (ptid_is_pid): Condense check for
3021 null_ptid and minus_one_ptid.
3022 (ptid_lwp_p): New function.
3023 (ptid_tid_p): New function.
3024 * common/ptid.h: Update comments for accessors.
3025 (ptid_lwp_p): New prototype.
3026 (ptid_tid_p): New prototype.
3027 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3028 * gcore.c: Replace PIDGET with ptid_get_pid.
3029 * gdbthread.h: Likewise.
3030 * gnu-nat.c: Likewise.
3031 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3032 Replace TIDGET with ptid_get_lwp.
3033 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3034 * hppanbsd-nat.c: Likewise.
3035 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3036 Replace TIDGET with ptid_get_lwp.
3037 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3038 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3039 * infcmd.c: Likewise.
3040 * inferior.h: Likewise.
3041 * inflow.c: Likewise.
3042 * infrun.c: Likewise.
3043 * linux-fork.c: Likewise.
3044 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3045 Replace GET_PID with ptid_get_pid.
3046 Replace is_lwp with ptid_lwp_p.
3047 Replace GET_LWP with ptid_get_lwp.
3048 Replace BUILD_LWP with ptid_build.
3050 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3052 * common/linux-btrace.c: Move sys/syscall.h out of the
3053 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3054 Also check for SYS_perf_event_open before attempting to buid.
3056 2013-09-27 Doug Evans <dje@google.com>
3058 * dwarf2read.c (dwarf2_section_info): Add comment.
3059 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3061 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3062 (dwarf2_read_section): Delete unused local "header". Add section
3063 name to error message.
3064 (create_dwo_in_dwp): Tweak comment.
3065 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3067 * dwarf2read.c (die_reader_specs): Tweak comment.
3068 (get_section_bfd_owner, get_section_bfd_section): New functions.
3069 (get_section_name, get_section_file_name): New functions.
3070 (get_section_id, get_section_flags): New functions.
3071 (*): Use new functions to access section fields.
3073 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3074 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3075 arg "htab". All callers updated.
3076 (create_debug_types_hash_table): Remove redundant copy of
3078 (create_dwo_in_dwp): Tweak comments.
3079 (read_str_index): Tweak comment. Record dwarf form name in static
3082 2013-09-27 Pedro Alves <palves@redhat.com>
3084 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3085 (remote_filename_p): Add comment.
3086 * remote.c (remote_filename_p): Adjust to use
3087 REMOTE_SYSROOT_PREFIX.
3088 * solib.c (solib_find): When deciding whether we need to add a
3089 directory separator, check whether the sysroot is "remote:"
3090 instead of checking whether the patch has a drive spec. Add
3093 2013-09-27 Pedro Alves <palves@redhat.com>
3095 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3097 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3100 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3102 Fix set debug frame output.
3103 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3104 SENTINEL_FRAME entry lower to match enum frame_type order.
3106 2013-09-26 Pierre Muller <muller@sourceware.org>
3108 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3109 AMD64_R15_REGNUM when a register index is expected.
3110 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3111 Substitute in array.
3112 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3113 (amd64_push_arguments): Substitute in integer_regnum array.
3115 2013-09-25 Doug Evans <dje@google.com>
3117 * objfiles.c (allocate_objfile): Move comment to better place.
3119 New option "set debug symfile on".
3120 * NEWS: Mention "set debug symfile".
3121 * Makefile.in (SFILES): Add symfile-debug.c.
3122 (COMMON_OBS): Add symfile-debug.o.
3123 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3124 objfile's symbol functions.
3125 * objfiles.h (objfile_set_sym_fns): Declare.
3126 * symfile-debug.c: New file.
3127 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3128 objfile's symbol functions.
3129 (reread_symbols): Ditto.
3131 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3133 (add_symtab_fns): Update prototype.
3134 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3135 (registered_sym_fns): ... this.
3136 (symtab_fns): Update.
3137 (add_symtab_fns): New arg "flavour". All callers updated.
3138 (find_sym_fns): Rewrite to use new sym_fns registry.
3140 * symfile.h (struct sym_fns): Add "objfile" argument to
3141 sym_read_linetable. All uses updated.
3143 * symtab.c (domain_name, search_domain_name): New functions.
3144 * symtab.h (domain_name, search_domain_name): Declare.
3146 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3147 map_matching_symbols so objfile is first. All uses updated.
3148 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3149 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3151 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3154 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3157 2013-09-24 Doug Evans <dje@google.com>
3159 * objfiles.c (free_objfile): Move comment.
3161 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3163 * ada-exp.y (string_to_operator): Delete.
3164 (dummy_string_to_ada_operator): Delete.
3166 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3169 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3171 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3172 call_dummy_integer_regs, and classify.
3173 * amd64-tdep.h (amd64_classify): Add declaration.
3174 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3175 (amd64_reg_class): Delete, moved to i386-tdep.h.
3176 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3177 Replace call to amd64_classify by call to tdep->classify.
3178 (amd64_push_arguments): Get the list of registers to use for
3179 passing integer parameters from the gdbarch tdep structure,
3180 rather than using a hardcoded one. Replace calls to amd64_classify
3181 by calls to tdep->classify.
3182 (amd64_push_dummy_call): Get the register number used for
3183 the "hidden" argument from tdep->call_dummy_integer_regs.
3184 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3185 and tdep->call_dummy_integer_regs. Set tdep->classify.
3187 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3190 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3191 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3192 where tdep->memory_args_by_pointer is non-zero.
3194 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3197 * i386-tdep.h (struct gdbarch_tdep): Add new field
3198 integer_param_regs_saved_in_caller_frame.
3199 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3200 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3202 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3204 * amd64-windows-tdep.c: #include "value.h"
3205 (amd64_windows_classify): Delete.
3206 (amd64_windows_passed_by_integer_register)
3207 (amd64_windows_passed_by_xmm_register)
3208 (amd64_windows_passed_by_pointer)
3209 (amd64_windows_adjust_args_passed_by_pointer)
3210 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3211 (amd64_windows_push_dummy_call): New functions.
3212 (amd64_windows_init_abi): Remove setting of
3213 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3214 tdep->classify, tdep->memory_args_by_pointer and
3215 tdep->integer_param_regs_saved_in_caller_frame.
3216 Add call to set_gdbarch_push_dummy_call.
3218 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3220 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3221 objfile->original_name.
3223 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3225 Pass down original filename for objfile.
3226 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3227 * elfread.c (elf_symfile_read): Likewise.
3228 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3229 longer set ORIGINAL_NAME.
3230 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3231 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3232 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3233 symbol_file_add_from_bfd call.
3234 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3235 (macho_check_dsym): Add parameter filenamep. Change function comment.
3237 (macho_symfile_read): New variable dsym_filename. Update
3238 macho_check_dsym call. Use it for symbol_file_add_separate.
3239 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3240 it. Use it for objfile->original_name.
3241 (objfile_name): Return OBFD's filename, if available.
3242 * objfiles.h (allocate_objfile): Add new parameter name.
3243 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3244 * symfile-mem.c (symbol_file_add_from_memory): Update
3245 symbol_file_add_from_bfd call.
3246 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3248 (symbol_file_add_with_addrs): New parameter name, add function comment
3249 for it. Remove variable name. Update allocate_objfile call.
3250 (symbol_file_add_separate): New parameter name, add function comment
3251 for it. Update symbol_file_add_with_addrs call.
3252 (symbol_file_add_from_bfd): New parameter name. Update
3253 symbol_file_add_with_addrs call.
3254 (symbol_file_add): Update symbol_file_add_from_bfd call.
3255 (reread_symbols): New variable original_name. Save
3256 objfile->original_name by it.
3257 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3260 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3262 Code cleanup: Add objfile_name accessor function.
3263 * ada-lang.c (is_known_support_routine): Use objfile_name.
3264 * auto-load.c (source_gdb_script_for_objfile)
3265 (auto_load_objfile_script): Likewise.
3266 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3267 * dbxread.c (dbx_symfile_read): Likewise.
3268 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3269 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3270 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3271 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3272 (lookup_dwp_signatured_type, lookup_dwo_unit)
3273 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3274 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3275 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3276 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3277 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3278 (read_subrange_type, load_partial_dies, read_partial_die)
3279 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3280 (die_containing_type, build_error_marker_type, lookup_die_type)
3281 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3282 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3283 (get_DW_AT_signature_type, write_psymtabs_to_index)
3284 (save_gdb_index_command): Likewise.
3285 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3287 * expprint.c (dump_subexp_body_standard): Likewise.
3288 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3289 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3291 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3292 obj_name, use objfile_name for it, use the variable.
3293 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3295 * machoread.c (macho_symtab_read, macho_check_dsym)
3296 (macho_symfile_relocate): Likewise.
3297 * maint.c (maintenance_translate_address): Likewise.
3298 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3299 * minsyms.c (install_minimal_symbols): Likewise.
3300 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3302 (filter_overlapping_sections): Use objfile_name.
3303 (objfile_name): New function.
3304 * objfiles.h (struct objfile): Rename field name to original_name.
3305 (objfile_name): New prototype.
3306 * printcmd.c (sym_info, address_info): Use objfile_name.
3307 * probe.c (parse_probes, collect_probes, compare_probes)
3308 (info_probes_for_ops): Likewise.
3309 * progspace.c (clone_program_space): Likewise.
3310 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3311 (maintenance_info_psymtabs): Likewise.
3312 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3313 (source_section_scripts): Likewise.
3314 * python/py-objfile.c (objfpy_get_filename): Likewise.
3315 * python/py-progspace.c (pspy_get_filename): Likewise.
3316 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3317 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3318 * solib.c (solib_read_symbols): Likewise.
3319 * stabsread.c (scan_file_globals): Likewise.
3320 * stap-probe.c (handle_stap_probe): Likewise.
3321 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3322 (find_separate_debug_file_by_debuglink): Likewise.
3323 (reread_symbols): Likewise. Use the objfile field name renamed to
3325 (allocate_symtab): Use objfile_name.
3326 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3327 (dump_objfile, dump_msymbols, dump_symtab_1)
3328 (maintenance_print_msymbols, maintenance_print_objfiles)
3329 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3330 * target.c (target_translate_tls_address, target_info): Likewise.
3331 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3334 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 * probe.c (parse_probes): Rename variable objfile_name to
3340 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 Remove solib-sunos.c.
3343 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3344 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3345 * objfiles.c (rt_common_objfile): Remove.
3346 (free_objfile): Remove rt_common_objfile comparison.
3347 * objfiles.h (rt_common_objfile): Remove.
3348 * solib-sunos.c: Remove.
3349 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3351 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3353 Remove a.out NetBSD and OpenBSD hosts.
3354 * NEWS (Removed native configurations): New.
3355 * config/arm/nbsdaout.mh: Remove.
3356 * config/i386/nbsdaout.mh: Remove.
3357 * config/i386/obsdaout.mh: Remove.
3358 * config/m68k/nbsdaout.mh: Remove.
3359 * config/sparc/nbsdaout.mh: Remove.
3360 * config/vax/nbsdaout.mh: Remove.
3361 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3362 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3363 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3365 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3366 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3367 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3369 2013-09-23 Tom Tromey <tromey@redhat.com>
3371 * linespec.c (struct minsym_and_objfile): Remove.
3372 (minsym_and_objfile_d): Remove.
3373 (struct linespec, struct collect_info, linespec_parse_basic)
3374 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3375 (compare_msymbols, find_method, find_function_symbols)
3376 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3377 (add_minsym, search_minsyms_for_name): Update.
3379 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3381 * regcache.c: Add include of valprint.h.
3382 (dump_endian_bytes): Delete.
3383 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3385 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3387 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3389 2013-09-19 Pedro Alves <palves@redhat.com>
3391 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3394 2013-09-19 Pedro Alves <palves@redhat.com>
3395 Thomas Schwinge <thomas@codesourcery.com>
3396 Yue Lu <hacklu.newborn@gmail.com>
3398 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3399 Take a gdb_byte pointer instead of a char pointer.
3401 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3402 gnu_xfer_partial helper.
3403 (gnu_xfer_partial): New function.
3404 (gnu_target): Don't install a deprecated_xfer_memory hook.
3405 Install a to_xfer_partial hook.
3407 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3410 * main.c (captured_main): Replace catch_command_errors by
3411 catch_command_errors_const. Twice.
3412 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3413 (symbol_file_add): Make name parameter const.
3414 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3415 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3416 variable name. Change their usage accordingly.
3417 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3419 (symbol_file_add_main): Make args parameter const.
3421 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3422 Ulrich Weigand <uweigand@de.ibm.com>
3424 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3426 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3428 2013-09-18 Pedro Alves <palves@redhat.com>
3429 Yue Lu <hacklu.newborn@gmail.com>
3431 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3432 (gnu_create_inferior)
3433 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3434 (set_sig_thread_cmd): Use the lwpid field of ptids to
3435 store/extract thread ids instead of the tid field.
3436 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3438 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3440 * infcmd.c (default_print_one_register_info): Add detection of
3441 optimized out values.
3442 (default_print_registers_info): Switch to using
3443 get_frame_register_value.
3445 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3447 * infrun.c (handle_inferior_event): Check if we know the
3448 function start address before setting a resume breakpoint.
3450 2013-09-18 Pedro Alves <palves@redhat.com>
3452 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3453 minus_one_ptid instead of looking at the ptid's tid field and
3454 comparing that to -1.
3456 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3458 * main.h (get_gdb_program_name): Remove extra whitespace.
3460 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3462 * main.h (get_gdb_program_name): Add declaration.
3463 * main.c (get_gdb_program_name): Add definition.
3465 2013-09-17 Doug Evans <dje@google.com>
3467 * dwarf2read.c: Move definitions of complaint functions to after
3468 forward declarations of local functions.
3470 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3471 Pedro Alves <palves@redhat.com>
3474 * breakpoint.c (remove_threaded_breakpoints): New function.
3475 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3476 as thread_exit observer.
3478 2013-09-17 Pedro Alves <palves@redhat.com>
3481 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3482 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3483 * corelow.c (core_open):
3484 * frame.h (print_stack_frame, print_frame_info): New
3485 'set_current_sal' parameter.
3486 * infcmd.c (finish_command, kill_command): Adjust call to
3488 * inferior.c (inferior_command): Likewise.
3489 * infrun.c (normal_stop): Likewise.
3490 * linux-fork.c (linux_fork_context): Likewise.
3491 * record-full.c (record_full_goto_entry, record_full_restore):
3493 * remote-mips.c (common_open): Likewise.
3494 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3496 (print_frame_info): New 'set_current_sal' parameter. Set the last
3497 displayed sal depending on the new paremeter instead of looking at
3499 (backtrace_command_1, select_and_print_frame, frame_command)
3500 (current_frame_command, up_command, down_command): Adjust call to
3502 * thread.c (print_thread_info, restore_selected_frame)
3503 (do_captured_thread_select): Adjust call to print_stack_frame.
3504 * tracepoint.c (tfind_1): Likewise.
3505 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3506 (mi_cmd_stack_info_frame): Likewise.
3507 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3508 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3510 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3512 * value.c (isvoid_internal_fn): Replace "parameter" with
3515 2013-09-16 Stan Shebs <stan@codesourcery.com>
3517 * README: Update references to writing code for GDB.
3518 * configure.ac (build_warnings): Remove obsolete comment.
3519 * configure: Regenerate.
3520 * gdbarch.sh: Remove references to gdbint.texinfo.
3521 * gdbarch.h: Regenerate.
3522 * gdbtypes.c (objfile_type): Remove comments referencing internals
3525 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3527 * NEWS: Mention new convenience function $_isvoid.
3528 * value.c (isvoid_internal_fn): New function.
3529 (_initialize_values): Add new convenience function $_isvoid.
3531 2013-09-16 Pierre Muller <muller@sourceware.org>
3533 * arm-linux-tdep.c: Add "elf/common.h" header.
3534 Remove AT_HWCAP macro definintion as it is provided in
3536 * s390-tdep.c: Remove system header <elf.h>
3537 Add "elf/common.h" header for AT_HWCAP definition.
3538 (s390_core_read_description): Use correct CORE_ADDR
3539 for hwcap local variable used as third parameter
3540 of function target_auxv_search.
3542 2013-09-14 Pierre Muller <muller@sourceware.org>
3543 Tom Tromey <tromey@redhat.com>
3544 Pedro Alves <palves@redhat.com>
3546 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3547 mode if operating system doesn't know O_CLOEXEC.
3549 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3555 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3557 * NEWS: Mention TDB support.
3558 * features/s390-tdb.xml: New file.
3559 * features/s390-te-linux64.xml: New file.
3560 * features/s390x-te-linux64.xml: New file.
3561 * features/Makefile (WHICH): Add new tdescs above.
3562 (s390-te-linux64-expedite): Set.
3563 (s390x-te-linux64-expedite): Set.
3564 * features/s390-te-linux64.c: New file (generated).
3565 * features/s390x-te-linux64.c: New file (generated).
3566 * regformats/s390-te-linux64.dat: New file (generated).
3567 * regformats/s390x-te-linux64.dat: New file (generated).
3568 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3569 (HWCAP_S390_TE): Likewise.
3570 (S390_TDB_DWORD0_REGNUM): Likewise.
3571 (S390_TDB_DWORD0_REGNUM): Likewise.
3572 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3573 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3574 (S390_TDB_ATIA_REGNUM): Likewise.
3575 (S390_TDB_R0_REGNUM): Likewise.
3576 (S390_TDB_R1_REGNUM): Likewise.
3577 (S390_TDB_R2_REGNUM): Likewise.
3578 (S390_TDB_R3_REGNUM): Likewise.
3579 (S390_TDB_R4_REGNUM): Likewise.
3580 (S390_TDB_R5_REGNUM): Likewise.
3581 (S390_TDB_R6_REGNUM): Likewise.
3582 (S390_TDB_R7_REGNUM): Likewise.
3583 (S390_TDB_R8_REGNUM): Likewise.
3584 (S390_TDB_R9_REGNUM): Likewise.
3585 (S390_TDB_R10_REGNUM): Likewise.
3586 (S390_TDB_R11_REGNUM): Likewise.
3587 (S390_TDB_R12_REGNUM): Likewise.
3588 (S390_TDB_R13_REGNUM): Likewise.
3589 (S390_TDB_R14_REGNUM): Likewise.
3590 (S390_TDB_R15_REGNUM): Likewise.
3591 (S390_NUM_REGS): Increase.
3592 (S390_IS_TDBREGSET_REGNUM): New macro.
3593 (s390_regmap_tdb): Declare.
3594 (s390_sizeof_tdbregset): Define.
3595 (tdesc_s390_te_linux64): Declare.
3596 (tdesc_s390x_te_linux64): Likewise.
3597 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3598 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3599 (s390_regmap_tdb): New regmap.
3600 (s390_supply_tdb_regset): New function.
3601 (s390_tdb_regset): New regset.
3602 (s390_linux64v2_regset_sections): Add TDB regset to list.
3603 (s390x_linux64v2_regset_sections): Likewise.
3604 (s390_regset_from_core_section): Recognize TDB core note section.
3605 (s390_core_read_description): If HWCAP indicates TE support,
3606 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3607 (s390_gdbarch_init): Handle TDB regset.
3608 (_initialize_s390_tdep): Initialize new tdescs.
3609 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3610 (have_regset_tdb): New variable.
3611 (s390_native_supply): Support register invalidation.
3612 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3613 (check_regset): Treat ENODATA as "regset exists".
3614 (s390_linux_fetch_inferior_registers): Add TDB.
3615 (s390_read_description): Check for TDB existence and select
3617 * gdbserver/Makefile.in (clean): Add removal of new makefile
3619 (s390-te-linux64.c): New makefile target.
3620 (s390x-te-linux64.c): Likewise.
3621 * gdbserver/configure.srv (srv_regobj): Append new objects
3622 s390-te-linux64.o and s390x-te-linux64.o.
3623 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3624 s390x-te-linux64.xml, and s390-tdb.xml.
3625 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3627 (tdesc_s390_te_linux64): Likewise.
3628 (init_registers_s390x_te_linux64): Likewise.
3629 (tdesc_s390x_te_linux64): Likewise.
3630 (s390_check_regset): Treat ENODATA as "regset exists".
3631 (s390_arch_setup): Add TDB regset support.
3632 (initialize_low_arch): Initialize registers for new tdescs.
3634 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3636 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3637 (S390_IS_FPREGSET_REGNUM): New macro.
3638 * s390-tdep.c (s390_dwarf_regmap): Make const.
3639 (regnum_is_gpr_full): New function for replacing repeated code.
3640 (s390_pseudo_register_name): Use it.
3641 (s390_pseudo_register_type): Likewise.
3642 (s390_pseudo_register_read): Likewise.
3643 (s390_pseudo_register_write): Likewise.
3644 (s390_unwind_pseudo_register): Likewise.
3645 (s390_regmap_gregset): New format for regmap.
3646 (s390x_regmap_gregset): Likewise.
3647 (s390_regmap_fpregset): Likewise.
3648 (s390_regmap_upper): Likewise.
3649 (s390_regmap_last_break): Likewise.
3650 (s390_regmap_system_call): Likewise.
3651 (s390_supply_regset): Adjust to new regmap format.
3652 (s390_collect_regset): Likewise.
3653 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3654 (s390_native_collect): Likewise.
3655 (supply_gregset): Likewise.
3656 (fill_gregset): Likewise.
3657 (supply_fpregset): Likewise.
3658 (fill_fpregset): Likewise.
3659 (fetch_regset): Likewise.
3660 (store_regset): Likewise.
3661 (s390_linux_fetch_inferior_registers): Likewise.
3662 (s390_linux_fetch_inferior_registers): Likewise.
3664 2013-09-12 Andrew Pinski <apinski@cavium.com>
3666 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3668 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3670 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3672 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3674 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3676 2013-09-06 Pedro Alves <palves@redhat.com>
3678 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3679 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3680 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3681 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3682 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3685 2013-09-06 Pedro Alves <palves@redhat.com>
3687 * remote-sim.c (dump_mem): Constify buf parameter.
3688 gdbsim_xfer_inferior_memory): Rename to ...
3689 (gdbsim_xfer_memory): ... this. Adjust interface as
3690 target_xfer_partial helper.
3691 (gdbsim_xfer_partial): New function.
3692 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3693 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3695 2013-09-06 Pedro Alves <palves@redhat.com>
3697 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3698 host_address_to_string, and send debug output to gdb_stdlog.
3700 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3702 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3703 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3704 gdb_target_obs for cris target.
3705 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3706 (cris_gdbarch_init): Move calls to
3707 set_gdbarch_fetch_tls_load_module_address and
3708 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3709 Add call to gdbarch_init_osabi.
3710 * cris-linux-tdep.c: New file.
3711 * cris-tdep.h: New file.
3713 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3715 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3716 to deprecated_init_ui_hook.
3718 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3720 * cli/cli-interp.c (_initialize_cli_interp): Add a
3721 command_loop_proc to interp_procs.
3722 * event-top.c (cli_command_loop): Change signature to match
3723 interp_command_loop_ftype.
3724 * event-top.h (cli_command_loop): Same.
3725 * interps.c (interp_new): Require every interpreter to have a
3727 (current_interp_command_loop): Just call the command_loop_proc on
3728 the current interpreter.
3729 * tui/tui-interp.c (_initialize_tui_interp): Add a
3730 command_loop_proc to interp_procs.
3732 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3734 * cris-tdep.c (cris_gdbarch_init): Add call to
3735 get_gdbarch_fetch_tls_load_module_address.
3737 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3739 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3740 (cris_elf_gregset_t): Rename from elf_gregset_t.
3741 (crisv32_elf_gregset_t): Adjust.
3742 (cris_supply_gregset, fetch_core_registers): Adjust.
3744 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3746 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3748 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3750 * defs.h (deprecated_command_loop_hook): Remove, including
3751 references in comments.
3752 * interps.c (current_interp_command_loop): No longer use
3753 deprecated_command_loop_hook.
3754 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3756 * top.c (deprecated_command_loop_hook): Remove.
3758 2013-09-05 Pedro Alves <palves@redhat.com>
3760 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3761 local is now int instead of ULONGEST. Print it with %d
3762 instead of paddress.
3764 2013-09-05 Tristan Gingold <gingold@adacore.com>
3766 * MAINTAINERS: Remove avr maintainership.
3768 2013-09-05 Pedro Alves <palves@redhat.com>
3770 * findvar.c (value_of_register): Rework in terms of
3771 value_of_register_lazy.
3773 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3775 * symfile.c (add_symbol_file_command): Remove trailing
3776 whitespaces and blank line after comment.
3778 2013-09-05 Pedro Alves <palves@redhat.com>
3780 * tui/tui-regs.c (tui_register_format): Don't look at the
3781 register's name here. Return string representing register
3782 value instead of storing it in the data element.
3783 (tui_get_register): Compare register string representations
3784 instead of register value states and contents.
3786 2013-09-05 Pedro Alves <palves@redhat.com>
3789 * tui/tui-regs.c (tui_show_registers): Show registers of the
3790 selected frame, not the current frame.
3792 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3794 * MAINTAINERS (Write After Approval): Add myself to the list.
3796 2013-09-04 Doug Evans <dje@google.com>
3798 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3799 (queue_and_load_dwo_tu): New function.
3800 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3801 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3802 Make dependent_cu optional.
3803 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3804 and an older .gdb_index is in use, queue and load all its TUs too.
3806 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3808 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3809 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3810 variable search_flags.
3811 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3812 (OPF_RETURN_REALPATH): ... here.
3813 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3814 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3816 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3818 * solib.c (solib_find): Likewise. Four times.
3819 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3820 in the function comment and for the realpath_fptr variable.
3821 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3822 (find_and_open_source): Likewise. Twice.
3823 * symfile.c (symfile_bfd_open): Likewise, also twice.
3825 2013-09-04 Doug Evans <dje@google.com>
3827 * progspace.c (save_current_space_and_thread): Remove unnecessary
3828 call to save_current_inferior.
3830 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3832 * sh64-tdep.c (sh64_do_register): Return after printing message
3833 about unavailable register contents.
3835 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3836 Pedro Alves <palves@redhat.com>
3838 * symfile.c (add_symbol_file_command): Error out on unknown
3839 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3840 options and collapse into single conditional branch.
3842 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3844 * inf-child.c (inf_child_follow_fork): New parameter
3846 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3847 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3848 * inferior.h (detach_fork): Remove.
3849 * infrun.c (detach_fork): Adjust comment and make it
3851 (follow_fork): Pass detach_fork parameter to
3853 * linux-nat.c (linux_child_follow_fork): New parameter
3855 * target.c (target_follow_fork): New parameter detach_fork.
3856 Pass detach_fork as parameter and print its value.
3857 * target.h (struct target_ops) <to_follow_fork>: New int
3859 (target_follow_fork): New parameter detach_fork.
3861 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3863 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3864 Replace sec->bfd by sec->the_bfd_section->owner.
3866 2013-09-03 Yao Qi <yao@codesourcery.com>
3868 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3869 from linux_has_shared_address_space.
3870 (linux_has_shared_address_space): Call linux_is_uclinux.
3871 * linux-tdep.h (linux_is_uclinux): Declare.
3872 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3875 2013-09-03 Yao Qi <yao@codesourcery.com>
3877 * config/djgpp/fnchange.lst: Remove entry of
3878 i386-interix-nat.c and i386-interix-tdep.c.
3879 * configure.ac: Remove '*-*-interix*'.
3880 * configure: Re-generated.
3881 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3882 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3884 * osabi.c (gdb_osabi_names): Remove "Interix".
3886 2013-09-03 Yao Qi <yao@codesourcery.com>
3888 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3890 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3892 * record.h (record_print_flag) <record_print_src_line,
3893 record_print_insn_range>: Rename into ...
3894 (record_print_flag) <record_print_src_line,
3895 record_print_insn_range>: ... this. Update all users.
3897 2013-09-02 Pierre Muller <muller@sourceware.org>
3899 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3902 2013-09-02 Pierre Muller <muller@sourceware.org>
3904 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3905 by use of plongest function.
3907 2013-09-02 Tristan Gingold <gingold@adacore.com>
3909 * NEWS: Add entry mentioning support for native Windows x64
3912 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3913 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3914 (struct amd64_windows_frame_cache): New struct.
3915 (amd64_windows_w2gdb_regnum): New global.
3916 (pc_in_range, amd64_windows_frame_decode_epilogue)
3917 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3918 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3919 (amd64_windows_frame_this_id): New functions.
3920 (amd64_windows_frame_unwind): New static global.
3921 (amd64_windows_skip_prologue): New function.
3922 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3923 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3924 with amd64_windows_skip_prologue.
3926 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3930 2013-08-30 Pedro Alves <palves@redhat.com>
3932 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3935 2013-08-30 Pedro Alves <palves@redhat.com>
3937 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3940 2013-08-30 Pedro Alves <palves@redhat.com>
3942 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3943 Adjust arguments to print_stack_frame.
3945 2013-08-30 Pedro Alves <palves@redhat.com>
3947 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3949 2013-08-30 Pedro Alves <palves@redhat.com>
3951 * frame.h (show_and_print_stack_frame): Delete declaration.
3953 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3956 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3957 (archpy_name): Check for valid architecture.
3958 (archpy_disassemble): Ditto.
3960 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3962 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3963 instead of "long long" in call to ptrace64.
3965 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3967 * mi/mi-interp.c (mi_command_loop): Change signature to match
3968 interp_command_loop_ftype.
3969 (mi1_command_loop): Remove.
3970 (mi2_command_loop): Remove.
3971 (mi3_command_loop): Remove.
3972 (mi_interpreter_resume): Remove setting of
3973 deprecated_command_loop_hook.
3974 (_initialize_mi_interp): Set mi_command_loop as the command loop
3977 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3979 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3982 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3984 * value.c (allocate_value_contents): Make static.
3985 * value.h (allocate_value_contents): Remove prototype.
3987 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3989 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3990 of assembling value via allocate_value_lazy and attribute setter.
3991 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3992 assembling value via allocate_value_lazy and attribute setter.
3993 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3994 assembling value via allocate_value_lazy and attribute setter.
3996 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3998 * value.c (value_from_contents_and_address): Replace allocate_value and
3999 memcpy with value_from_contents.
4001 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4003 * python/py-framefilter.c (py_print_frame): Remove usage of
4004 PyString_AsString. Use python_string_to_host_string instead.
4005 Refactor function to work with a string as a new allocation
4006 instead of a pointer.
4007 (py_print_frame): Ditto.
4008 * python/lib/gdb/frames.py (return_list): Cain iterators together
4009 instead of adding them as a list.
4010 (_sort_list): Call return_list, and remove duplicate code.
4011 (execute_frame_filters): Convert iterator to a list with list().
4012 * python/lib/gdb/command/frame_filters.py
4013 (SetFrameFilterPriority._set_filter_priority): Convert priority
4014 attribute to an integer.
4015 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4016 wrapper function __next__.
4017 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4020 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4023 * python/py-framefilter.c (apply_frame_filter): Check
4024 gdb_python_initialized. Exit if the Python frame-filter code
4025 cannot be initialized.
4027 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4030 * top.c (print_gdb_version): Remove erroneous newline after help
4033 2013-08-29 Yao Qi <yao@codesourcery.com>
4035 * varobj.c (install_dynamic_child): Remove trailing space.
4036 Add one blank line after variable declaration.
4038 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4041 * corefile.c (get_exec_file): Use exec_filename.
4042 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4043 * exec.c (exec_close): Free EXEC_FILENAME.
4044 (exec_file_attach): New variable canonical_pathname. Use
4045 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4047 * exec.h (exec_filename): New.
4048 * inferior.c (print_inferior, inferior_command): Use
4049 PSPACE_EXEC_FILENAME.
4050 * mi/mi-main.c (print_one_inferior): Likewise.
4051 * progspace.c (clone_program_space, print_program_space): Likewise.
4052 * progspace.h (struct program_space): New field pspace_exec_filename.
4053 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4054 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4056 2013-08-28 Will Newton <will.newton@linaro.org>
4058 * common/linux-ptrace.c: Include stdint.h unconditionally.
4060 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4063 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4065 2013-08-28 Yao Qi <yao@codesourcery.com>
4066 Pedro Alves <palves@redhat.com>
4068 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4069 instead of stdio_fileopen.
4070 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4071 .Call stderr_fileopen instead of stdio_fileopen.
4072 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4073 [__MINGW32__] (stderr_file_fputs): New function.
4074 (stderr_fileopen): New function.
4075 * ui-file.h (stderr_fileopen): Declare.
4077 2013-08-27 Doug Evans <dje@google.com>
4079 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4080 (struct dwarf2_per_cu_data): Ditto.
4081 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4082 (process_imported_unit_die): Ditto.
4083 (follow_die_sig_1): Simplify assert.
4085 2013-08-27 Pedro Alves <palves@redhat.com>
4087 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4088 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4089 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4090 windows_xfer_memory directly.
4091 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4093 2013-08-27 Pedro Alves <palves@redhat.com>
4095 * darwin-nat.c (darwin_xfer_memory): Delete.
4096 (_initialize_darwin_inferior): Don't install a
4097 deprecated_xfer_memory method.
4099 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4100 Yao Qi <yao@codesourcery.com>
4102 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4103 (parse_no_frames_option): Remove.
4104 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4105 (mi_cmd_stack_list_args): Adjust.
4106 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4107 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4108 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4110 (list_args_or_locals): New parameter 'skip_unavailable'.
4112 * valprint.c (scalar_type_p): Rename to ...
4113 (val_print_scalar_type_p): ... this. Make extern.
4114 (val_print, value_check_printable): Adjust.
4115 * valprint.h (val_print_scalar_type_p): Declare.
4116 * value.c (value_entirely_unavailable): New function.
4117 * value.h (value_entirely_unavailable): Declare.
4119 * NEWS: Mention the new option "--skip-unavailable" to MI
4120 commands '-stack-list-locals', '-stack-list-arguments' and
4121 '-stack-list-variables'.
4123 2013-08-27 Yao Qi <yao@codesourcery.com>
4125 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4126 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4128 * mi/mi-getopt.c (mi_getopt): Remove.
4129 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4131 (mi_getopt): Call mi_getopt_1.
4132 (mi_getopt_silent): New.
4133 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4135 2013-08-26 Doug Evans <dje@google.com>
4138 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4139 .gdb_index is in use.
4140 * symfile.c (reread_symbols): Reset objfile->sf.
4142 * NEWS: Document "mt print objfiles" now takes optional regexp.
4143 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4144 regexp of objfiles to print.
4145 (_initialize_symmisc): Update doc string for "mt print objfiles".
4147 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4148 missing debug info checks.
4150 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4151 Ulrich Weigand <uweigand@de.ibm.com>
4153 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4154 line tables generated by XLC compiled binaries.
4156 2013-08-23 Doug Evans <dje@google.com>
4158 * symmisc.c (dump_symtab): Delete prototype.
4159 (dump_msymbols, dump_objfile): Ditto.
4160 (maintenance_info_symtabs): Mark as dont_repeat.
4161 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4163 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4164 debugging printf to better location.
4166 2013-08-23 Pedro Alves <palves@redhat.com>
4168 * target.c (target_read_live_memory): Change type of 'ret' local
4171 2013-08-23 Pedro Alves <palves@redhat.com>
4173 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4174 (remote_read_bytes): Change return type to LONGEST, and adjust to
4175 return a target_xfer_error on error.
4176 (remote_xfer_memory): Delete.
4177 (remote_flash_write): Change type of 'ret' local to LONGEST.
4178 (remote_xfer_partial, remote_xfer_partial): Adjust.
4179 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4181 2013-08-23 Pierre Muller <muller@sourceware.org>
4183 ARI fix: Push # directives to start of line.
4184 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4186 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4189 * breakpoint.c (enable_command, disable_command): Iterate over
4190 all specified breakpoint locations.
4192 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4194 * common/linux-ptrace.c (linux_fork_to_function): Push #
4195 directives to the start of the line.
4196 (linux_check_ptrace_features): Fix warning message to use
4199 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4201 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4202 nat/linux-waitpid.h.
4203 (linux-waitpid.o): New object file rule.
4204 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4205 (current_ptrace_options): Moved from linux-nat.c.
4206 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4208 (linux_fork_to_function): New function.
4209 (linux_grandchild_function): Likewise.
4210 (linux_child_function): Likewise.
4211 (linux_check_ptrace_features): New function, heavily
4212 based on linux-nat.c:linux_test_for_tracefork.
4213 (linux_enable_event_reporting): New function.
4214 (ptrace_supports_feature): Likewise.
4215 (linux_supports_tracefork): Likewise.
4216 (linux_supports_traceclone): Likewise.
4217 (linux_supports_tracevforkdone): Likewise.
4218 (linux_supports_tracesysgood): Likewise.
4219 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4220 gdbserver/linux-low.c.
4221 (linux_enable_event_reporting): New declaration.
4222 (linux_supports_tracefork): Likewise.
4223 (linux_supports_traceclone): Likewise.
4224 (linux_supports_tracevforkdone): Likewise.
4225 (linux_supports_tracesysgood): Likewise.
4226 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4227 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4228 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4229 * config/arm/linux.mh (NATDEPFILES): Likewise.
4230 * config/i386/linux.mh (NATDEPFILES): Likewise.
4231 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4232 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4233 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4234 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4235 * config/mips/linux.mh (NATDEPFILES): Likewise.
4236 * config/pa/linux.mh (NATDEPFILES): Likewise..
4237 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4238 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4239 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4240 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4241 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4242 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4243 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4244 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4245 ptrace's 4th argument's types.
4246 Check the type of PTRACE_TYPE_ARG4.
4247 * configure: Regenerate.
4248 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4249 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4250 (linux_supports_tracefork_flag): Remove.
4251 (linux_supports_tracesysgood_flag): Likewise.
4252 (linux_supports_tracevforkdone_flag): Likewise.
4253 (current_ptrace_options): Moved to
4254 common/linux-ptrace.c.
4255 (linux_tracefork_child): Remove.
4256 (my_waitpid): Remove.
4257 (linux_test_for_tracefork): Renamed to
4258 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4259 (linux_test_for_tracesysgood): Remove.
4260 (linux_supports_tracesysgood): Remove.
4261 (linux_supports_tracefork): Remove.
4262 (linux_supports_tracevforkdone): Remove.
4263 (linux_enable_tracesysgood): Remove.
4264 (linux_enable_event_reporting): Remove.
4265 (linux_init_ptrace): New function.
4266 (linux_child_post_attach): Call linux_init_ptrace.
4267 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4268 (linux_child_follow_fork): Call linux_supports_tracefork
4269 and linux_supports_tracevforkdone.
4270 (linux_child_insert_fork_catchpoint): Call
4271 linux_supports_tracefork.
4272 (linux_child_insert_vfork_catchpoint): Likewise.
4273 (linux_child_set_syscall_catchpoint): Call
4274 linux_supports_tracesysgood.
4275 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4276 * nat/linux-nat.h: New file.
4277 * nat/linux-waitpid.c: New file.
4278 * nat/linux-waitpid.h: New file.
4280 2013-08-22 Samuel Bronson <naesten@gmail.com>
4282 ARM Linux support for `catch syscall'.
4283 * syscalls/arm-linux.py: New file.
4284 * syscalls/arm-linux.xml: Likewise.
4285 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4286 (arm_linux_init_abi): Register the new function and syscall xml file.
4287 * data-directory/Makefile.in: Install the new syscall xml file.
4288 * NEWS: Brag about this.
4290 2013-08-22 Pedro Alves <palves@redhat.com>
4293 * corefile.c (target_xfer_memory_error): New function.
4294 (memory_error): Defer EIO to target_memory_error.
4295 (read_memory): Use target_xfer_partial, and handle finer-grained
4297 * target.c (target_xfer_error_to_string): New function.
4298 (memory_xfer_partial_1): If memory is known to be
4299 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4300 (target_xfer_partial): Make extern.
4301 * target.h (enum target_xfer_error): New enum.
4302 (target_xfer_error_to_string): Declare function.
4303 (target_xfer_partial): Declare function.
4304 (struct target_ops) <xfer_partial>: Adjust describing comment.
4306 2013-08-22 Alan Modra <amodra@gmail.com>
4308 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4309 * configure.tgt: Likewise as targets.
4311 2013-08-20 Doug Evans <dje@google.com>
4313 * buildsym.c (subfile_stack): Move here from buildsym.h.
4314 (pending_macros): Ditto.
4315 (get_macro_table): New function.
4316 (buildsym_init): Initialize subfile_stack.
4317 * coffread.c (type_vector,type_vector_length): Moved here from
4319 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4320 (coff_symtab_read): Use it.
4321 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4322 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4323 with call to get_macro_table.
4324 * stabsread.c (type_vector,type_vector_length): Moved here from
4326 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4327 * buildsym.h (get_macro_table): Declare.
4329 2013-08-20 Tom Tromey <tromey@redhat.com>
4331 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4333 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4335 2013-08-20 Doug Evans <dje@google.com>
4337 * blockframe.c: Remove #include "psymtab.h".
4338 * cp-support.c: Ditto.
4342 2013-08-20 Tom Tromey <tromey@redhat.com>
4345 * exceptions.h (return_mask): Now an enum.
4346 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4349 2013-08-20 Tom Tromey <tromey@redhat.com>
4351 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4353 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4354 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4355 * jit.c (jit_object_close_impl): Update.
4356 * jv-lang.c (get_dynamics_objfile): Update.
4357 * linespec.c (add_minsym): Use get_dynamics_objfile.
4358 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4359 (allocate_objfile): Don't initialize 'gdbarch' field.
4360 (get_objfile_arch): Update.
4361 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4363 (struct objfile) <gdbarch>: ... here. Remove.
4364 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4366 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4368 2013-08-20 Alan Modra <amodra@gmail.com>
4370 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4371 for IBM long double nan and inf.
4372 (floatformat_is_negative, floatformat_classify,
4373 floatformat_mantissa): Similarly.
4374 (floatformat_ieee_single, floatformat_ieee_double,
4375 floatformat_ieee_quad, floatformat_arm_ext,
4376 floatformat_ia64_spill): Delete unused vars.
4377 (_initialize_doublest): Delete unused function.
4378 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4379 little-endian variants of floatformat_ibm_long_double.
4381 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4383 * Makefile.in (SFILES): Remove common/target-common.c and
4384 add target/waitstatus.c.
4385 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4386 target/resume.h, target/wait.h and target/waitstatus.h.
4387 (COMMON_OBS): Remove target-common.o and add
4389 (target-common.o): Remove.
4390 (waitstatus.o): New target object file.
4391 * common/target-common.c: Move contents to
4392 target/waitstatus.c and remove.
4393 * common/target-common.h: Move contents to other files and
4395 (enum resume_kind: Move to target/resume.h.
4396 (TARGET_WNOHANG): Move to target/wait.h.
4397 (enum target_waitkind): Move to target/waitstatus.h.
4398 (struct target_waitstatus): Likewise.
4399 * target.h: Do not include target-common.h and
4400 include target/resume.h, target/wait.h and
4401 target/waitstatus.h.
4402 * target/resume.h: New file.
4403 * target/wait.h: New file.
4404 * target/waitstatus.h: New file.
4405 * target/waitstatus.c: New file.
4407 2013-08-19 Pedro Alves <palves@redhat.com>
4409 * linux-nat.c (linux_test_for_tracefork)
4410 (linux_test_for_tracesysgood, linux_child_follow_fork)
4411 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4412 (linux_nat_wait_1): Extend comment.
4413 (linux_async_pipe): Add comment.
4415 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4417 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4418 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4419 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4420 Update to account for fact that PC is now a pseudo-register.
4421 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4422 cases for RL78_PC_REGNUM.
4424 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4427 * top.c (quit_force): Skip writing history file
4428 if input is not from terminal.
4430 2013-08-14 Tom Tromey <tromey@redhat.com>
4432 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4433 resultthreadlist>: New fields.
4434 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4435 (remote_get_threadlist, remote_threadlist_iterator): Use
4436 new fields. Remove static variables.
4438 2013-08-14 Tom Tromey <tromey@redhat.com>
4440 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4441 remote_watch_data_address>: New fields.
4442 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4443 (process_stop_reply, remote_wait_as)
4444 (remote_check_watch_resources, remote_stopped_data_address): Update.
4446 2013-08-14 Tom Tromey <tromey@redhat.com>
4448 * remote.c (struct remote_state) <async_client_callback,
4449 async_client_context>: New fields.
4450 (async_client_callback, async_client_context): Remove.
4451 (remote_async_serial_handler, remote_async): Update.
4453 2013-08-14 Tom Tromey <tromey@redhat.com>
4455 * remote.c (sizeof_pkt): Remove.
4456 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4458 2013-08-14 Tom Tromey <tromey@redhat.com>
4460 * remote.c (struct remote_state) <use_threadinfo_query,
4461 use_threadextra_query>: New fields.
4462 (remote_threads_info, remote_threads_extra_info)
4463 (remote_open_1): Update.
4465 2013-08-14 Tom Tromey <tromey@redhat.com>
4467 * remote.c (struct remote_state) <finished_object,
4468 finished_annex, finished_offset>: New fields.
4469 (remote_read_qxfer): Use remote_state fields; remove static
4472 2013-08-14 Tom Tromey <tromey@redhat.com>
4474 * remote.c (struct remote_state) <last_sent_step>:
4476 (last_sent_step): Remove.
4477 (remote_resume, remote_wait_as): Update.
4479 2013-08-14 Tom Tromey <tromey@redhat.com>
4481 * remote.c (struct remote_state) <last_sent_signal>:
4483 (last_sent_signal): Remove.
4484 (new_remote_state, remote_resume, remote_wait_as): Update.
4486 2013-08-14 Tom Tromey <tromey@redhat.com>
4488 * remote.c (struct remote_state) <last_program_signals_packet>:
4490 (last_program_signals_packet): Remove.
4491 (remote_program_signals, remote_open_1): Update.
4493 2013-08-14 Tom Tromey <tromey@redhat.com>
4495 * remote.c (struct remote_state) <last_pass_packet>:
4497 (last_pass_packet): Remove.
4498 (remote_pass_signals, remote_open_1): Update.
4500 2013-08-14 Tom Tromey <tromey@redhat.com>
4502 * remote.c (struct remote_state) <remote_traceframe_number>:
4504 (remote_traceframe_number): Remove.
4505 (new_remote_state, remote_open_1, set_remote_traceframe)
4506 (remote_trace_find): Update.
4508 2013-08-14 Tom Tromey <tromey@redhat.com>
4510 * remote.c (struct remote_state) <general_thread, continue_thread>:
4512 (general_thread, continue_thread): Remove.
4513 (record_currthread, set_thread, set_general_process)
4514 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4515 (extended_remote_mourn_1): Update.
4517 2013-08-14 Tom Tromey <tromey@redhat.com>
4519 * remote.c (struct remote_state) <remote_desc>: New field.
4520 (remote_desc): Remove.
4521 (remote_threads_info, remote_threads_extra_info, remote_close)
4522 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4523 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4524 (remote_hostio_send_command, remote_file_put, remote_file_get)
4525 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4526 (remote_async, remote_new_objfile, set_range_stepping): Update.
4528 2013-08-14 Tom Tromey <tromey@redhat.com>
4530 * remote.c (remote_state): Now a pointer.
4531 (get_remote_state_raw): Update.
4532 (new_remote_state): New function.
4533 (_initialize_remote): Use new_remote_state.
4535 2013-08-14 Tom Tromey <tromey@redhat.com>
4537 * remote.c (remote_protocol_features): Now const.
4539 2013-08-14 Tom Tromey <tromey@redhat.com>
4541 * remote.c (crc32_table, crc32): Remove.
4542 (remote_verify_memory): Use xcrc32.
4544 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4546 * value.h (create_internalvar_type_lazy): Adjust prototype
4549 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4551 * common/format.c (parse_format_string): Don't allow '#' flag for
4552 pointer arguments in format string.
4554 2013-08-13 Pierre Muller <muller@sourceware.org>
4556 * utils.c (init_page_info): Only call tgetnum function
4557 if rl_get_screen_size did not return useful values.
4559 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4561 PR breakpoints/15117
4562 * linespec.c (linespec_parse_basic): Check for convenience
4563 variable or history value while parsing.
4565 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4567 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4569 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4570 different signals between the generic Linux kernel implementation
4572 (avr_linux_gdb_signal_from_target): Delete.
4573 (avr_linux_gdb_signal_to_target): Delete.
4574 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4576 2013-08-09 Doug Evans <dje@google.com>
4578 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4581 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4583 * linux-tdep.c: Define enum with generic signal numbers.
4584 (linux_gdb_signal_from_target): New function.
4585 (linux_gdb_signal_to_target): Likewise.
4586 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4587 methods to the functions above.
4588 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4589 (linux_gdb_signal_to_target): Likewise.
4590 * alpha-linux-tdep.c: Define new enum with signals different
4591 from generic Linux kernel.
4592 (alpha_linux_gdb_signal_from_target): New function.
4593 (alpha_linux_gdb_signal_to_target): Likewise.
4594 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4595 with the functions mentioned above.
4596 * avr-tdep.c: Define enum with differences between Linux kernel
4598 (avr_linux_gdb_signal_from_target): New function.
4599 (avr_linux_gdb_signal_to_target): Likewise.
4600 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4601 the functions mentioned above.
4602 * sparc-linux-tdep.c: Define enum with differences between SPARC
4603 and generic Linux kernel signal numbers.
4604 (sparc32_linux_gdb_signal_from_target): New function.
4605 (sparc32_linux_gdb_signal_to_target): Likewise.
4606 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4607 to the functions defined above.
4608 * xtensa-linux-tdep.c: Define enum with differences between
4609 Xtensa and Linux kernel generic signals.
4610 (xtensa_linux_gdb_signal_from_target): New function.
4611 (xtensa_linux_gdb_signal_to_target): Likewise.
4612 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4613 to the functions defined above.
4614 * mips-linux-tdep.c: Define enum with differences between
4615 signals in MIPS and Linux kernel generic ones.
4616 (mips_gdb_signal_to_target): New function.
4617 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4618 only different signals from the Linux kernel generic.
4619 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4620 the functions defined above.
4621 * mips-linux-tdep.h (enum mips_signals): Remove.
4623 2013-08-09 Pedro Alves <palves@redhat.com>
4625 * avr-tdep.c (XMALLOC): Delete macro.
4626 * cli/cli-dump.c (XMALLOC): Delete macro.
4628 2013-08-09 Pedro Alves <palves@redhat.com>
4630 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4631 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4632 (fopen_with_cleanup, add_dump_command): Make static.
4633 * cli/cli-dump.h: Delete file.
4634 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4637 2013-08-09 Pedro Alves <palves@redhat.com>
4639 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4642 2013-08-09 Pedro Alves <palves@redhat.com>
4644 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4647 2013-08-09 Pedro Alves <palves@redhat.com>
4649 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4650 (gcore_command): Use tilde_expand here, and when showing the
4651 filename to the user, show the expanded version.
4653 2013-08-09 Yao Qi <yao@codesourcery.com>
4655 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4658 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4660 * gcore.c (create_gcore_bfd): Use tilde_expand.
4662 2013-08-08 Yao Qi <yao@codesourcery.com>
4664 * frame.h (read_frame_local): Declare.
4665 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4667 * stack.c (read_frame_local): New.
4669 2013-08-08 Yao Qi <yao@codesourcery.com>
4671 * mi/mi-cmd-stack.c: Update comments to function
4672 list_args_or_locals.
4674 2013-08-07 Tom Tromey <tromey@redhat.com>
4677 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4678 (process_psymtab_comp_unit_reader): Use it.
4679 (process_psymtab_comp_unit): Update. Add "pretend_language"
4681 (dwarf2_build_psymtabs_hard): Update.
4682 (scan_partial_symbols): Pass CU's language to
4683 process_psymtab_comp_unit.
4685 2013-08-07 Tom Tromey <tromey@redhat.com>
4687 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4688 (dwarf2_gdb_index_functions): Update.
4689 * psymtab.c (find_symbol_file_from_partial): Remove.
4690 (psym_functions): Update.
4691 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4694 2013-08-07 Tom Tromey <tromey@redhat.com>
4696 * symfile.c (set_initial_language): Look up "main" symbol
4697 and use its language.
4698 * symtab.c (find_main_filename): Remove.
4699 * symtab.h (find_main_filename): Remove.
4701 2013-08-07 Tom Tromey <tromey@redhat.com>
4703 * dwarf2read.c (recursively_compute_inclusions): Add
4704 "immediate_parent" argument. Set symtab's "user" field
4706 (compute_symtab_includes): Update.
4708 2013-08-07 Tom Tromey <tromey@redhat.com>
4710 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4711 when adding label symbols.
4713 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4714 Ulrich Weigand <uweigand@de.ibm.com>
4716 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4717 * configure.host (powerpc64-*-aix*): Likewise.
4719 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4720 Ulrich Weigand <uweigand@de.ibm.com>
4722 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4724 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4725 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4726 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4727 * configure.ac: Check for ptrace64.
4728 * configure, config.in: Regenerate.
4730 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4731 Ulrich Weigand <uweigand@de.ibm.com>
4733 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4734 Call ptrace64 instead of ptrace if defined.
4735 Add macro addr_ptr to take care of ptrace address argument.
4736 (pdc_read_regs): Likewise.
4737 (pdc_write_regs): Likewise.
4738 (aix_thread_resume): Likewise.
4739 (fetch_regs_kernel_thread): Likewise.
4740 (store_regs_kernel_thread): Likewise.
4742 2013-08-07 Anton Blanchard <anton@samba.org>
4744 * MAINTAINERS: Add myself to Write After Approval.
4746 2013-08-05 Tom Tromey <tromey@redhat.com>
4748 * aix-thread.c (_initialize_aix_thread): Use
4749 complete_target_initialization.
4750 * bsd-uthread.c (_initialize_bsd_uthread): Use
4751 complete_target_initialization.
4752 * dec-thread.c (_initialize_dec_thread): Use
4753 complete_target_initialization.
4754 * ravenscar-thread.c (_initialize_ravenscar): Use
4755 complete_target_initialization.
4756 * sol-thread.c (_initialize_sol_thread): Use
4757 complete_target_initialization.
4758 * spu-multiarch.c (_initialize_spu_multiarch): Use
4759 complete_target_initialization.
4761 2013-08-05 Tom Tromey <tromey@redhat.com>
4763 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4764 * ada-lang.c (ada_lookup_simple_minsym): Return
4765 bound_minimal_symbol.
4766 * ada-lang.h (ada_lookup_simple_minsym): Update.
4767 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4768 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4769 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4770 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4771 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4772 * minsyms.c (msymbol_objfile): Remove.
4773 (lookup_minimal_symbol_internal): New function, from
4774 lookup_minimal_symbol.
4775 (lookup_minimal_symbol): Rewrite using
4776 lookup_minimal_symbol_internal.
4777 (lookup_bound_minimal_symbol): New function.
4778 * minsyms.h (msymbol_objfile): Remove.
4779 (lookup_bound_minimal_symbol): Declare.
4780 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4781 * parse.c (write_exp_msymbol): Change parameter to a
4782 bound_minimal_symbol.
4783 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4784 * parser-defs.h (write_exp_msymbol): Update.
4785 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4786 * symfile.c (simple_read_overlay_table): Use
4787 lookup_bound_minimal_symbol.
4788 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4789 (search_symbols): Likewise.
4790 (print_msymbol_info): Take a bound_minimal_symbol argument.
4791 (symtab_symbol_info, rbreak_command): Update.
4792 * symtab.h (struct symbol_search) <msymbol>: Change type
4793 to bound_minimal_symbol.
4794 * valops.c (find_function_in_inferior): Use
4795 lookup_bound_minimal_symbol.
4796 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4798 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4803 (async_cleanup_sigint_signal_handler): ... this.
4804 (initialize_sigint_signal_handler): Remove declaration.
4805 (handle_remote_sigint): Rename the declaration to ...
4806 (async_handle_remote_sigint): ... this.
4807 (handle_remote_sigint_twice): Rename the declaration to ...
4808 (async_handle_remote_sigint_twice): ... this.
4809 (async_remote_interrupt, async_remote_interrupt_twice)
4810 (remote_interrupt): Remove the declarations.
4811 (remote_interrupt_twice): Rename the declaration ...
4812 (sync_remote_interrupt_twice): ... this.
4813 (sigint_remote_twice_token): Rename the variable to ...
4814 (async_sigint_remote_twice_token): ... this.
4815 (sigint_remote_token): Rename the variable to ...
4816 (async_sigint_remote_token): ... this.
4817 (initialize_sigint_signal_handler): Rename the function to ...
4818 (async_initialize_sigint_signal_handler): ... this. Update the name
4820 (handle_remote_sigint): Rename the function to ...
4821 (async_handle_remote_sigint): ... this. Update the names inside.
4822 (handle_remote_sigint_twice): Rename the function to ...
4823 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4824 (cleanup_sigint_signal_handler): Rename the function to ...
4825 (async_cleanup_sigint_signal_handler): ... this.
4826 (remote_interrupt): Rename the function to ...
4827 (sync_remote_interrupt): this. Update the names inside.
4828 (remote_interrupt_twice): Rename the function to ...
4829 (sync_remote_interrupt_twice): this. Update the names inside.
4830 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4831 (_initialize_remote): Update the names inside.
4833 2013-08-02 Tom Tromey <tromey@redhat.com>
4836 * breakpoint.c (update_watchpoint, watchpoint_check)
4837 (watch_command_1): Update.
4838 * eval.c (fetch_subexp_value): Add "preserve_errors"
4840 * ppc-linux-nat.c (check_condition): Update.
4841 * value.h (fetch_subexp_value): Update.
4843 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4845 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4848 2013-08-01 Doug Evans <dje@google.com>
4851 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4852 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4853 Add assert of sig_entry->dwo_unit == NULL.
4854 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4855 had already been read.
4856 (read_signatured_type): Set per_cu.tu_read.
4859 * valops.c (value_struct_elt): Add missing call to check_typedef.
4860 (value_find_oload_method_list): Ditto.
4862 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4863 effectively, struct symbol_search **.
4864 (make_cleanup_free_search_symbols): Change arg to struct
4865 symbol_search **. All callers updated.
4866 (compare_search_syms): Compare symtab file name and block as well.
4867 (search_symbols_equal): New function.
4868 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4869 New args new_head, new_tail. Result is now void. Remove dups after
4870 sorting the symbols.
4871 (search_symbols): Sort all found symbols once, after all have been
4872 found, and remove duplicates. Simplify cleanup tracking of result.
4873 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4875 Further workarounds for binutils/15021.
4876 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4877 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4878 Watch for duplicate symtabs coming from type units.
4879 (compute_symtab_includes): Update call to
4880 recursively_compute_inclusions. Build vector of included symtabs
4882 * symtab.h (symtab_ptr): New typedef.
4883 (DEF_VEC_P (symtab_ptr)): New VEC type.
4884 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4887 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4889 * cli/cli-script.c (script_from_file): Remove use of
4891 * main.c (captured_main): Remove use of error_pre_print and
4893 * utils.c (error_pre_print, quit_pre_print): Remove.
4894 * utils.h (error_pre_print, quit_pre_print): Likewise.
4896 2013-08-01 Yao Qi <yao@codesourcery.com>
4898 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4900 (mi_cmd_stack_list_variables): Likewise.
4902 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4904 * exceptions.c (deprecated_throw_reason): Remove.
4905 * exceptions.h (deprecated_throw_reason): Remove.
4907 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4909 * remote-mips.c (mips_error): Replace use of
4910 deprecated_throw_reason with throw_verror. Use the error message
4911 passed to mips_error as the error message for throw_verror.
4913 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4915 * monitor.c (monitor_interrupt_query): Replace use of
4916 deprecated_throw_reason with quit.
4917 * nto-procfs.c (interrupt_query): Likewise.
4918 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4919 * remote-mips.c (mips_kill): Likewise.
4920 * remote.c (interrupt_query): Likewise.
4922 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4924 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4927 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4928 Yao Qi <yao@codesourcery.com>
4930 * tracepoint.c (trace_dump_command): Select the current frame.
4932 2013-07-30 Doug Evans <dje@google.com>
4934 * dwarf2read.c (process_queue): Add type signature to debug output.
4936 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4938 * value.c (value_fetch_lazy): Mark optimized out values as such
4939 rather than raising an error.
4941 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4943 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4944 before checking which bits of the parent, not the child, value are
4947 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4950 * top.c: Include "filenames.h".
4951 (set_history_filename): New function.
4952 (init_main): Install it as set hook of the "set history filename"
4955 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4957 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4958 attribute parameter.
4959 (dwarf2_const_value_data): Constify struct attribute parameter.
4960 (dwarf2_const_value): Constify struct attribute parameter.
4961 (dwarf2_const_value_attr): Constify struct attribute parameter.
4962 (lookup_die_type): Constify struct attribute parameter.
4963 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4964 (follow_die_ref_or_sig): Constify struct attribute parameter.
4965 (follow_die_ref): Constify struct attribute parameter.
4966 (follow_die_sig): Constify struct attribute parameter.
4967 (get_DW_AT_signature_type): Constify struct attribute parameter.
4968 (get_type_unit_group): Constify struct attribute parameter.
4969 (fill_in_loclist_baton): Constify struct attribute parameter.
4970 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4971 (type_unit_group): Constify struct attribute parameter.
4973 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4975 * dwarf2read.c (attr_form_is_block): Make argument const.
4976 (attr_form_is_section_offset): Make argument const.
4977 (attr_form_is_constant): Make argument const.
4978 (attr_form_is_ref): Make argument const.
4980 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4982 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4984 (attr_form_is_ref): Moved below attr_form_is_constant.
4986 2013-07-29 Doug Evans <dje@google.com>
4988 * main.c (captured_command_loop): Tweak comment.
4990 * target.c (target_async_permitted_1): Fix comment.
4992 * symtab.c (iterate_over_some_symtabs): Add comment.
4994 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4996 2013-07-27 Yao Qi <yao@codesourcery.com>
4998 * NEWS: Mention that GDBserver now supports hardware
4999 watchpoints on the MIPS GNU/Linux target.
5001 2013-07-27 Yao Qi <yao@codesourcery.com>
5003 * Makefile.in (HFILES_NO_SRCDIR): Add
5004 common/mips-linux-watch.h.
5005 (mips-linux-watch.o): New rule.
5006 * common/mips-linux-watch.c: New.
5007 * common/mips-linux-watch.h: New.
5008 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5009 * mips-linux-nat.c: Include mips-linux-watch.h.
5010 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5011 to common/mips-linux-watch.h.
5012 (MAX_DEBUG_REGISTER): Likewise.
5013 (enum pt_watch_style): Likewise.
5014 (struct mips32_watch_regs): Likewise.
5015 (struct mips64_watch_regs): Likewise.
5016 (struct pt_watch_regs): Likewise.
5017 (struct mips_watchpoint): Likewise.
5018 (mips_linux_watch_get_irw_mask): Move to
5019 common/mips-linux-watch.c.
5020 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5021 (mips_linux_watch_get_watchlo): Likewise.
5022 (mips_linux_watch_set_watchlo): Likewise.
5023 (mips_linux_watch_get_watchhi): Likewise.
5024 (mips_linux_watch_set_watchhi): Likewise.
5025 (mips_linux_read_watch_registers): Likewise.
5026 (mips_linux_watch_type_to_irw): Likewise.
5027 (mips_linux_stopped_data_address, fill_mask): Likewise.
5028 (mips_linux_watch_try_one_watch): Likewise.
5029 (mips_linux_watch_populate_regs): Likewise.
5031 2013-07-27 Yao Qi <yao@codesourcery.com>
5033 * mips-linux-nat.c (get_irw_mask): Rename to ...
5034 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5035 'set' to 'n'. Update function comment. All callers changed.
5036 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5037 function comment. All callers changed.
5038 (get_num_valid): Rename to ...
5039 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5040 'set' to 'n'. Update function comment. All callers changed.
5041 (get_watchlo): Rename to ...
5042 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5043 'set' to 'n'. Update function comment. All callers changed.
5044 (set_watchlo): Rename to ...
5045 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5046 'set' to 'n'. Update function comment. All callers changed.
5047 (get_watchhi): Rename to ...
5048 (mips_linux_watch_get_watchhi): ... this. Update function
5049 comment. All callers changed.
5050 (set_watchhi): Rename to ...
5051 (mips_linux_watch_set_watchhi): ... this. Update function
5052 comment. All callers changed.
5053 (mips_linux_read_watch_registers): Update function comment.
5054 Add new parameters 'lwpid', 'watch_readback', and
5055 'watch_readback_valid'. Update.
5056 (type_to_irw): Rename to ...
5057 (mips_linux_watch_type_to_irw): ... this. Update function
5058 comment. All callers changed.
5059 (fill_mask): Update function comment.
5060 (try_one_watch): Rename to ...
5061 (mips_linux_watch_try_one_watch): ... this. Change the type
5062 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5063 (populate_regs_from_watches): Rename to ...
5064 (mips_linux_watch_populate_regs): ... this. Add parameter
5065 'current_watches'. All callers changed.
5067 2013-07-27 Yao Qi <yao@codesourcery.com>
5069 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5071 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5072 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5073 (struct pt_watch_regs): Likewise.
5074 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5075 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5076 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5077 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5078 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5080 2013-07-27 Yao Qi <yao@codesourcery.com>
5082 * breakpoint.h: Include break-common.h.
5083 (enum target_hw_bp_type): Move to ...
5084 * common/break-common.h: ... here. New.
5086 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5088 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5089 process group regardless of having tty on stdin.
5091 2013-07-25 Doug Evans <dje@google.com>
5093 * linux-fork.h (detach_fork): Delete.
5095 2013-07-25 Tom Tromey <tromey@redhat.com>
5097 PR remote/15256, PR remote/15266:
5098 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5099 * monitor.c (monitor_detach): Use unpush_target.
5100 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5101 * remote-mips.c (mips_detach): Use unpush_target. Don't
5103 * remote-sim.c (gdbsim_detach): Use unpush_target.
5104 * target.c (pop_target): Remove.
5105 (pop_all_targets_above): Don't call target_close.
5106 (target_close): Assert that the target is unpushed.
5107 * target.h (pop_target): Don't declare.
5108 * tracepoint.c (tfile_open): Use unpush_target.
5110 2013-07-25 Tom Tromey <tromey@redhat.com>
5112 * linux-thread-db.c (init_thread_db_ops): Call
5113 complete_target_initialization.
5114 (_initialize_thread_db): Don't call add_target.
5115 * target.c (complete_target_initialization): New function.
5116 (add_target_with_completer): Call it.
5117 * target.h (complete_target_initialization): Declare.
5119 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5121 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5122 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5123 (HPPANBSD_SIZEOF_GREGS): New define.
5124 (hppaobsd_supply_gregset): Handle additional registers.
5125 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5126 we provide more registers now.
5127 (hppabsd_supply_gregset): Supply additional registers.
5128 (hppabsd_collect_gregset): Collect additional registers.
5130 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5132 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5133 (hppabsd_dwarf2_frame_init_reg): New function.
5134 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5136 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5138 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5139 'z' format code. Remove error for optimized out values, standard
5140 code will handle these fine.
5142 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5144 * NEWS: Mention new 'z' formatter.
5145 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5146 (_initialize_printcmd): Mention 'z' formatter in help text of the
5149 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5151 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5154 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5156 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5157 interface can evaluate arguments. Fallback to the old mode if it
5159 (create_exception_master_breakpoint): Likewise.
5160 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5161 (struct sym_probe_fns elf_probe_fns): Export function above to the
5163 * probe.c (can_evaluate_probe_arguments): New function.
5164 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5166 (can_evaluate_probe_arguments): New function prototype.
5167 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5168 probe interface can evaluate arguments. Fallback to the old mode
5170 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5171 interface can evaluate arguments. Warning the user if it cannot.
5172 (stap_can_evaluate_probe_arguments): New function.
5173 (struct probe_ops stap_probe_ops): Export function above to the
5175 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5176 New function pointer.
5178 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5180 * Makefile.in (SFILES): Add common/target-common.c.
5181 Add common/target-common.h to headers.
5182 (COMMON_OBS): Add target-common.o.
5183 (target-common.o): New target.
5184 * linux-nat.h (resume_kind): Move to common/target-common.h.
5185 * target.c (target_waitstatus_to_string): Move to
5186 common/target-common.c.
5187 * target.h: Include target-common.h.
5188 (target_waitkind): Move to common/target-common.h.
5189 (target_waitstatus): Likewise.
5190 (TARGET_WNOHANG): Likewise.
5191 * common/target-common.c: New file.
5192 * common/target-common.h: New file.
5194 2013-07-24 Doug Evans <dje@google.com>
5196 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5199 2013-07-23 Yao Qi <yao@codesourcery.com>
5201 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5202 parameter 'gdbarch'.
5203 (i386_stack_tramp_frame_sniffer): Caller update.
5204 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5205 parameter 'gdbarch' and 'target'.
5206 (i386_linux_core_read_description): Caller update.
5207 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5209 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5212 2013-07-23 Tom Tromey <tromey@redhat.com>
5214 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5217 2013-07-22 Doug Evans <dje@google.com>
5219 * exec.h (remove_target_sections): Delete arg abfd.
5220 * exec.c (exec_close): Update call to remove_target_sections.
5221 (remove_target_sections): Delete arg abfd.
5222 * solib.c (update_solib_list): Ditto.
5223 (reload_shared_libraries_1): Ditto.
5224 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5225 * target.h (struct target_section): Rename key to owner.
5228 2013-07-22 Tom Tromey <tromey@redhat.com>
5230 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5232 2013-07-22 Tom Tromey <tromey@redhat.com>
5234 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5235 Simplify cleanup handling.
5237 2013-07-22 Tom Tromey <tromey@redhat.com>
5239 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5240 on all return paths.
5242 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5244 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5245 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5246 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5248 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5250 * top.c (print_gdb_version): Add help, apropos description and
5251 url to online documentation.
5253 2013-07-19 Hui Zhu <hui@codesourcery.com>
5256 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5258 2013-07-19 Yao Qi <yao@codesourcery.com>
5260 * target.c (update_current_target): Change the default action
5261 of 'to_traceframe_info' from tcomplain to return_zero.
5262 * target.h (struct target_ops) <to_traceframe_info>: Add more
5264 * valops.c (read_value_memory): Call
5265 traceframe_available_memory unconditionally.
5267 2013-07-18 Yao Qi <yao@codesourcery.com>
5269 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5270 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5271 symbol without prefix. If found, set its type to
5272 'mst_solib_trampoline'.
5274 2013-07-17 Doug Evans <dje@google.com>
5276 * NEWS: Mention "set print raw frame-arguments".
5277 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5278 * stack.c (print_raw_frame_arguments): New static global.
5279 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5280 (_initialize_stack): New command "set/show print raw frame-arguments".
5281 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5282 (set_print_raw, show_print_raw): New functions.
5283 (_initialize_valprint): New prefix command "set/show print raw".
5284 * valprint.h (value_print_options): Improve comments.
5286 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5287 of all *list variables.
5289 * gdbcmd.h (togglelist): Delete.
5290 * cli/cli-cmds.c (togglelist): Delete.
5291 (init_cmd_lists): Update.
5292 * cli/cli-cmds.h (togglelist): Delete.
5294 2013-07-17 Tom Tromey <tromey@redhat.com>
5296 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5299 2013-07-16 Doug Evans <dje@google.com>
5301 * nto-tdep.c (nto_relocate_section_addresses): Update,
5302 target_section.bfd deleted.
5303 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5304 * s390-tdep.c (s390_load): Ditto.
5305 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5307 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5309 * common/format.c (parse_format_string): Add checks for NULL
5310 character before calling strchr.
5312 2013-07-16 Doug Evans <dje@google.com>
5314 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5315 temp_pathname argument.
5316 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5317 when opening the file fails.
5319 * target.h (struct target_section): Delete member bfd.
5320 All users updated to use the_bfd_section->owner instead.
5321 * exec.c (add_to_section_table): Assert bfd is expected value.
5322 Remove initialization of target_section.bfd.
5323 (remove_target_sections): Update.
5324 (section_table_available_memory): Update.
5325 (section_table_xfer_memory_partial): Update.
5326 (print_section_info): Update.
5327 (exec_set_section_address): Update.
5328 * record-full.c (record_full_core_xfer_partial): Update.
5329 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5330 * solib-target.c (solib_target_relocate_section_addresses): Update.
5331 * symfile.c (build_section_addr_info_from_section_table): Update.
5332 * target.c (memory_xfer_live_readonly_partial): Update.
5333 (memory_xfer_partial_1): Update.
5335 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5337 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5338 now available for embedded (BookE) and server (BookS) processors,
5339 correct mentions of 'booke' and adjust comments accordingly in order to
5340 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5341 (have_ptrace_booke_interface): Rename function and variable
5342 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5343 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5344 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5345 'hwdebug_point_cmp'. Update all uses.
5346 (booke_find_thread_points_by_tid): Rename function
5347 'booke_find_thread_points_by_tid' to
5348 'hwdebug_find_thread_points_by_tid'. Update all uses.
5349 (booke_insert_point): Rename function 'booke_insert_point' to
5350 'hwdebug_insert_point'. Update all uses.
5351 (booke_remove_point): Rename function 'booke_remove_point' to
5352 'hwdebug_remove_point'. Update all uses.
5354 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5356 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5357 numbers with enum values.
5359 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5362 * thread.c (thread_apply_all_command): Check for valid threads
5364 (thread_array_cleanup): New struct.
5365 (set_thread_refcount): New function.
5367 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5369 * infcmd.c (default_print_one_register_info): Reuse function
5372 2013-07-10 Tom Tromey <tromey@redhat.com>
5374 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5375 (ada-exp.o): New target.
5377 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5379 * mt-tdep.c (mt_registers_info): Call
5380 get_no_prettyformat_print_options instead of
5381 get_raw_print_options (regression by last patch from Doug
5384 2013-07-09 Pedro Alves <palves@redhat.com>
5386 Checked in by Joel Brobecker <brobecker@adacore.com>.
5387 * ada-lang.c (coerce_unspec_val_to_type): Use
5388 value_optimized_out_const.
5389 * value.c (value_optimized_out_const): New function.
5390 * value.h (value_optimized_out_const): New declaration.
5392 2013-07-09 Doug Evans <dje@google.com>
5394 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5395 Enum values rename as well. All uses updated.
5396 * valprint.h (value_print_options): Rename member pretty to
5397 pretty format. Rename member prettyprint_arrays to
5398 prettyformat_arrays. Rename member prettyprint_structs to
5399 prettyformat_structs. All uses updated.
5400 (get_no_prettyformat_print_options): Renamed from
5401 get_raw_print_options.
5402 * valprint.c (get_no_prettyformat_print_options): Renamed from
5403 get_raw_print_options. All callers updated.
5404 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5405 All callers updated.
5406 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5407 All callers updated.
5408 (_initialize_valprint): Improve help text for "set print pretty" and
5411 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5413 * value.c (value_bits_valid): Revert previous change, and change
5414 by Pedro on 2013-07-04, due to regressions in
5415 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5417 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5418 Pedro Alves <palves@redhat.com>
5420 * value.c (value_bits_valid): If the value is not lval_computed
5421 or has no check validity handler then the answer is the
5422 optimized_out flag, otherwise defer to the handler.
5424 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5426 * top.c (print_gdb_configuration): Explain in output of
5427 --configuration what does "relocatable" mean.
5429 * main.c (print_gdb_help): Regroup options in the --help text.
5430 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5431 the relevant discussions.
5433 2013-07-06 Yao Qi <yao@codesourcery.com>
5435 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5436 Remove parameter 'lsal'.
5437 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5438 to inner block. Caller update.
5439 (base_breakpoint_create_breakpoints_sal): Update.
5440 (bkpt_create_breakpoints_sal): Likewise.
5441 (tracepoint_create_breakpoints_sal): Likewise.
5442 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5443 element 0 of vector 'canonical->sals'.
5445 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5447 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5448 register number instead of the pseudo register one.
5449 (rs6000_dwarf2_reg_to_regnum): Likewise.
5451 2013-07-04 Pedro Alves <palves@redhat.com>
5453 * findvar.c (value_of_register): Use allocate_optimized_out_value
5454 if the register has been optimized out, instead of
5455 set_value_optimized_out.
5456 * frame-unwind.c (frame_unwind_got_optimized): Use
5457 allocate_optimized_out_value.
5459 2013-07-04 Pedro Alves <palves@redhat.com>
5461 * value.c (value_bits_valid): If the value is not lval_computed,
5462 or doesn't have a check_validity hook, assume the value is entirely
5465 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5467 * stack.c (read_frame_arg): No longer fetch lazy values.
5468 * value.c (value_optimized_out): If the value is not already
5469 marked optimized out, and is lazy then fetch it.
5470 (value_primitive_field): Move optimized out check to later in the
5471 function, after we have loaded any lazy values.
5472 (value_fetch_lazy): Use optimized out flag directly rather than
5473 calling optimized_out method.
5475 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5477 * valops.c: Don't include "user-regs.h".
5478 (value_fetch_lazy): Moved to value.c.
5479 * value.c: Include "user-regs.h".
5480 (value_fetch_lazy): Moved from valops.c.
5482 2013-07-04 Yao Qi <yao@codesourcery.com>
5485 2013-06-27 Yao Qi <yao@codesourcery.com>
5487 * common/create-version.sh: Update comments. Handle the case
5488 that TARGET_ALIAS is empty.
5490 2013-07-03 Pedro Alves <palves@redhat.com>
5492 * Makefile.in (config.status): Depend on development.sh.
5493 (aclocal_m4_deps): Add libmcheck.m4.
5494 * acinclude.m4: Include libmcheck.m4.
5495 * configure.ac: Source development.sh instead of setting
5496 'development' here. --enable-libmcheck/--disable-libmcheck code
5497 factored out to GDB_AC_LIBMCHECK. Run it.
5498 * development.sh: New file.
5499 * libmcheck.m4: New file.
5500 * configure: Regenerate.
5502 2013-07-02 Tom Tromey <tromey@redhat.com>
5504 * contrib/ari/update-web-ari.sh: Update for version.in change.
5506 2013-07-02 Tom Tromey <tromey@redhat.com>
5508 * common/ptid.h: Comment fixes.
5510 2013-07-01 Tom Tromey <tromey@redhat.com>
5512 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5513 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5514 (dwarf2_read_index, create_all_comp_units): Update.
5516 2013-07-01 Tom Tromey <tromey@redhat.com>
5518 * configure.ac (build_warnings): Add -Wold-style-definition.
5519 * configure: Rebuild.
5520 * machoread.c (_initialize_machoread): Use "(void)".
5521 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5524 2013-07-01 Tom Tromey <tromey@redhat.com>
5526 * configure.ac (build_warnings): Add -Wold-style-declaration.
5527 * configure: Rebuild.
5528 * dsrec.c (make_srec): Use "static const", not "const static".
5529 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5531 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5532 Use "static const", not "const static".
5533 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5535 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5537 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5539 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5541 (v850_dbtrap_breakpoint_from_pc): Likewise.
5542 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5545 2013-07-01 Tom Tromey <tromey@redhat.com>
5547 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5548 * configure: Rebuild.
5550 2013-07-01 Pedro Alves <palves@redhat.com>
5552 * defs.h: Include "pathmax.h".
5553 * utils.c: Don't include sys/param.h.
5554 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5555 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5556 instead of MAXPATHLEN.
5557 * solib-sunos.c: Don't include sys/param.h.
5558 * xcoffread.c: Don't include sys/param.h.
5559 * bsd-kvm.c: Don't include sys/param.h.
5560 * darwin-nat.c: Don't include sys/param.h.
5561 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5562 * darwin-nat-info.c: Don't include sys/param.h.
5563 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5565 * i386obsd-nat.c: Don't include sys/param.h.
5566 * inf-child.c: Don't include sys/param.h.
5567 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5568 * linux-fork.c: Don't include sys/param.h.
5569 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5570 * linux-nat.c: Don't include sys/param.h.
5571 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5572 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5573 * m68klinux-nat.c: Don't include sys/param.h.
5574 * nbsd-nat.c: Don't include sys/param.h.
5575 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5576 * ppc-linux-nat.c: Don't include sys/param.h.
5577 * rs6000-nat.c: Don't include sys/param.h.
5578 * spu-linux-nat.c. Don't include sys/param.h.
5579 * windows-nat.c: Don't include sys/param.h.
5580 * xtensa-linux-nat.c: Don't include sys/param.h.
5581 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5583 2013-07-01 Pedro Alves <palves@redhat.com>
5585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5586 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5587 * gnulib/aclocal.m4: Regenerate.
5588 * gnulib/config.in: Regenerate.
5589 * gnulib/configure: Regenerate.
5590 * gnulib/import/pathmax.h: New file.
5591 * gnulib/import/Makefile.am: Regenerate.
5592 * gnulib/import/Makefile.in: Regenerate.
5593 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5594 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5595 * gnulib/import/m4/pathmax.m4: New file.
5597 2013-07-01 Pedro Alves <palves@redhat.com>
5599 * configure.ac (GDBINIT): Define, depending on host.
5600 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5601 * top.c (PATH_MAX): Delete fallback definition.
5602 (GDBINIT_FILENAME): Delete.
5603 (gdbinit): Reimplement as const char array set to the GDBINIT
5605 * top.h (gdbinit): Make const.
5606 * configure, config.in: Regenerate.
5608 2013-07-01 Pedro Alves <palves@redhat.com>
5610 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5611 * cli/cli-cmds.h (source_script): Likewise.
5612 * exceptions.c (catch_command_errors_const): New function.
5613 * exceptions.h (catch_command_errors_const): Declare.
5614 * main.c (get_init_files): Make parameters const, and adjust.
5615 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5616 'local_gdbinit' locals const. Adjust to use
5617 catch_command_errors_const.
5618 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5619 'local_gdbinit' locals const.
5621 2013-07-01 Pedro Alves <palves@redhat.com>
5623 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5624 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5625 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5628 2013-07-01 Pedro Alves <palves@redhat.com>
5630 Import the "unistd" gnulib module.
5631 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5632 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5633 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5634 import/m4/unistd_h.m4.
5635 * gnulib/aclocal.m4: Renenerate.
5636 * gnulib/config.in: Renenerate.
5637 * gnulib/configure: Renenerate.
5638 * gnulib/import/Makefile.am: Renenerate.
5639 * gnulib/import/Makefile.in: Renenerate.
5640 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5641 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5642 * gnulib/import/m4/off_t.m4: New file.
5643 * gnulib/import/m4/ssize_t.m4: New file.
5644 * gnulib/import/m4/sys_types_h.m4: New file.
5645 * gnulib/import/m4/unistd_h.m4: New file.
5646 * gnulib/import/sys_types.in.h: New file.
5647 * gnulib/import/unistd.c: New file.
5648 * gnulib/import/unistd.in.h: New file.
5650 2013-07-01 Pedro Alves <palves@redhat.com>
5652 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5653 defined instead of checking HAVE_UNISTD_H.
5655 2013-07-01 Pedro Alves <palves@redhat.com>
5657 Reimport gnulib from scratch.
5658 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5659 import/m4/onceonly.m4.
5660 * gnulib/aclocal.m4: Renegerate.
5661 * gnulib/config.in: Renegerate.
5662 * gnulib/configure: Renegerate.
5663 * gnulib/import/Makefile.in: Renegerate.
5664 * gnulib/import/extra/update-copyright: Renegerate.
5665 * gnulib/import/m4/onceonly.m4: Delete.
5667 2013-07-01 Pedro Alves <palves@redhat.com>
5669 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5671 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5674 * remote.c (async_remote_interrupt_twice): Make it static.
5675 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5677 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5679 * ia64-linux-tdep.c: Include <ctype.h>.
5680 (ia64_linux_stap_is_single_operand): New function.
5681 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5683 2013-06-28 Tom Tromey <tromey@redhat.com>
5685 * Makefile.in (version.c): Use version.in, not
5687 * common/create-version.sh: Likewise.
5688 * common/version.in: Move...
5689 * version.in: ...here.
5691 2013-06-28 Pedro Alves <palves@redhat.com>
5693 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5695 * utils.h (pagination_enabled): Declare.
5697 2013-06-28 Pedro Alves <palves@redhat.com>
5699 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5700 Move higher up in file.
5702 2013-06-28 Tom Tromey <tromey@redhat.com>
5704 * tracepoint.c (deprecated_readline_begin_hook)
5705 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5708 2013-06-28 Pedro Alves <palves@redhat.com>
5711 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5712 checking if they're available.
5713 * value.c (value_available_contents_eq): Change comment.
5714 * value.h (value_available_contents_eq): Expand comment.
5716 2013-06-27 Tom Tromey <tromey@redhat.com>
5718 * target.c (find_run_target): Remove.
5719 * target.h (find_run_target): Remove.
5721 2013-06-27 Tom Tromey <tromey@redhat.com>
5723 * corelow.c (core_gdbarch): Now static.
5725 2013-06-27 Tom Tromey <tromey@redhat.com>
5727 * target.c (target_struct_index): Remove.
5729 2013-06-27 Pedro Alves <palves@redhat.com>
5731 * infrun.c: Remove comment describing the 'stepping over runtime
5732 loader dynamic symbol resolution code' mechanism; moved to
5735 2013-06-27 Pedro Alves <palves@redhat.com>
5737 * exceptions.c (catch_command_errors): Remove spurious space.
5738 * exceptions.h (catch_command_errors): Second parameter is "arg",
5741 2013-06-27 Yao Qi <yao@codesourcery.com>
5743 * common/create-version.sh: Update comments. Handle the case
5744 that TARGET_ALIAS is empty.
5746 2013-06-26 Pedro Alves <palves@redhat.com>
5748 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5751 2013-06-26 Pedro Alves <palves@redhat.com>
5753 * infrun.c: Update comments on stepping over runtime loader
5754 dynamic symbol resolution code.
5756 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5758 * ax-gdb.h (union exp_element): Forward declare.
5759 * parser-defs.h: Include expression.h.
5761 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5763 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5765 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5767 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5769 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5771 Fix trace-status to output proper start-time and stop-time.
5772 * tracepoint.c (trace_status_command): Fix type of printf arg to
5773 prevent improper type conversion.
5774 (trace_status_mi): Likewise.
5776 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5778 * mips-tdep.c (mips_next_pc): Fix a typo.
5780 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5782 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5784 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5785 Yao Qi <yao@codesourcery.com>
5787 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5788 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5789 * mi/mi-main.c (print_variable_or_computed): New function.
5790 (mi_cmd_trace_frame_collected): New function.
5791 * tracepoint.c (find_trace_state_variable_by_number): New.
5792 (struct traceframe_info): Move to tracepoint.h
5793 (struct collection_list): Likewise.
5794 (do_collect_symbol): Include locals and arguments in the
5795 collected variables list.
5796 (clear_collection_list): Clear wholly collected variables list
5797 and computed variables list.
5798 (append_exp): New function.
5799 (encode_actions_1): Include variables in the wholly
5800 collected variables list. Include memory ranges and
5801 full-fledged expressions in the computed expressions list.
5802 (encode_actions): Move some code to ...
5803 Return the cleanup chain.
5804 (encode_actions_rsp): ... here. New function.
5805 (get_traceframe_location, get_traceframe_info): Remove static.
5806 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5807 (struct collection_list): Moved from tracepoint.c. Add two
5808 new fields 'wholly_collected' and 'computed'.
5809 (find_trace_state_variable_by_number): Declare.
5810 (encode_actions): Adjust declaration.
5811 (encode_actions_rsp): Declare.
5812 (get_traceframe_info, get_traceframe_location): Declare.
5814 * NEWS: Mention new MI command -trace-frame-collected.
5816 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5817 Yao Qi <yao@codesourcery.com>
5819 * ctf.c (ctf_traceframe_info): Push trace state variables
5820 present in the trace data into the traceframe info object.
5821 * breakpoint.c (DEF_VEC_I): Remove.
5822 * common/filestuff.c (DEF_VEC_I): Likewise.
5823 * dwarf2loc.c (DEF_VEC_I): Likewise.
5824 * mi/mi-main.c (DEF_VEC_I): Likewise.
5825 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5826 * features/traceframe-info.dtd: Add tvar element and its
5828 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5829 (build_traceframe_info): Push trace state variables present in
5830 the trace data into the traceframe info object.
5831 (traceframe_info_start_tvar): New function.
5832 (tvar_attributes): New.
5833 (traceframe_info_children): Add "tvar" element.
5834 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5836 * NEWS: Mention the change in GDB and GDBserver.
5838 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5839 Yao Qi <yao@codesourcery.com>
5841 * tracepoint.c (trace_dump_command): Move code to ...
5842 (get_traceframe_location): ... here. New.
5844 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5845 Yao Qi <yao@codesourcery.com>
5847 * tracepoint.c (trace_dump_command): GDB emits an error
5848 instead of a warning when a traceframe is not selected.
5850 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5851 Yao Qi <yao@codesourcery.com>
5853 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5854 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5856 (do_clear_collection_list, init_collection_list): New.
5857 (encode_actions): Add local variables 'tracepoint_list' and
5858 'stepping_list'. Call init_collection_list and make cleanup
5859 which calls do_clear_collection_list. Don't call
5860 clear_collection_list.
5861 (_initialize_tracepoint): Delete references to
5862 'tracepoint_list' and 'stepping_list'.
5864 2013-06-25 Tom Tromey <tromey@redhat.com>
5866 * common/create-version.sh (date): Use "$", not "$$" in sed
5869 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5871 * NEWS (New targets): Add entry for TI MSP430.
5873 2013-06-25 Yao Qi <yao@codesourcery.com>
5875 * remote.c (remote_start_remote): Move code to upload tsv
5878 2013-06-25 Yao Qi <yao@codesourcery.com>
5879 Hui Zhu <hui@codesourcery.com>
5880 Pedro Alves <palves@redhat.com>
5882 PR breakpoints/15075
5883 PR breakpoints/15434
5884 * breakpoint.c (bpstat_stop_status): Call
5885 b->ops->after_condition_true.
5886 (update_dprintf_command_list): Don't append "continue" command
5887 to the command list of dprintf breakpoint.
5888 (base_breakpoint_after_condition_true): New function.
5889 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5890 (dprintf_after_condition_true): New function.
5891 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5892 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5894 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5896 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5897 (ALLDEPFILES): Add msp430-tdep.c.
5898 * configure.tgt (msp430*-*-elf): New target.
5899 * msp430-tdep.c: New file.
5901 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5903 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5904 microMIPS synthetic symbols.
5906 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5908 * objfiles.h (pc_in_section): New prototype.
5909 (in_plt_section): Remove name argument, replace prototype with
5910 static inline function.
5911 * mips-tdep.h: Include "objfiles.h".
5912 (in_mips_stubs_section): New function.
5913 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5914 in_solib_call_trampoline member.
5915 (hppa_in_solib_call_trampoline): Remove name argument.
5916 * objfiles.c (pc_in_section): New function.
5917 (in_plt_section): Remove function.
5918 * mips-linux-tdep.c: Include "objfiles.h".
5919 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5920 name argument. Return 1 rather than the low 16-bit halfword of
5921 any instruction examined.
5922 (mips_linux_in_dynsym_resolve_code): Update
5923 mips_linux_in_dynsym_stub call accordingly.
5924 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5925 rather than an equivalent hand-coded sequence.
5926 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5927 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5928 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5929 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5931 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5932 on call to tdep->in_solib_call_trampoline.
5933 (hppa_in_solib_call_trampoline): Remove name argument, update
5934 according to in_plt_section change.
5935 (hppa_skip_trampoline_code): Update according to in_plt_section
5937 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5938 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5940 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5941 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5942 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5943 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5944 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5945 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5946 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5947 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5948 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5949 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5950 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5951 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5952 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5954 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5956 * common/create-version.sh: Fix expansion of $host_alias
5957 and $target_alias in generation of HOST_NAME and TARGET_NAME
5960 2013-06-24 Tom Tromey <tromey@redhat.com>
5962 * common/create-version.sh: New file.
5963 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5965 (HFILES_NO_SRCDIR): Use common/version.h.
5966 * version.in: Move to ...
5967 * common/version.in: ... here. Replace date with "DATE".
5968 * version.h: Move to ...
5969 * common/version.h: ... here.
5971 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5973 * gdb/gnulib/Makefile.in: Update date in copyright header.
5974 * gdb/gnulib/configure.ac: Ditto.
5975 * gdb/gnulib/update-gnulib.sh: Ditto.
5977 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5979 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5980 "gdb/gnulib/import".
5982 2013-06-21 Will Newton <will.newton@linaro.org>
5984 * doublest.c (ldfrexp): Remove function.
5985 (convert_doublest_to_floatformat): Call frexpl instead of
5988 2013-06-21 Will Newton <will.newton@linaro.org>
5990 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5991 * gnulib/aclocal.m4: Regenerate.
5992 * gnulib/config.in: Regenerate.
5993 * gnulib/configure: Regenerate.
5994 * gnulib/import/Makefile.am: Update.
5995 * gnulib/import/Makefile.in: Update.
5996 * gnulib/import/m4/gnulib-cache.m4: Update.
5997 * gnulib/import/m4/gnulib-comp.m4: Update.
5998 * gnulib/import/float+.h: Import.
5999 * gnulib/import/float.c: Import.
6000 * gnulib/import/float.in.h: Import.
6001 * gnulib/import/fpucw.h: Import.
6002 * gnulib/import/frexp.c: Import.
6003 * gnulib/import/frexpl.c: Import.
6004 * gnulib/import/isnan.c: Import.
6005 * gnulib/import/isnand-nolibm.h: Import.
6006 * gnulib/import/isnand.c: Import.
6007 * gnulib/import/isnanl-nolibm.h: Import.
6008 * gnulib/import/isnanl.c: Import.
6009 * gnulib/import/itold.c: Import.
6010 * gnulib/import/m4/exponentd.m4: Import.
6011 * gnulib/import/m4/exponentl.m4: Import.
6012 * gnulib/import/m4/float_h.m4: Import.
6013 * gnulib/import/m4/fpieee.m4: Import.
6014 * gnulib/import/m4/frexp.m4: Import.
6015 * gnulib/import/m4/frexpl.m4: Import.
6016 * gnulib/import/m4/isnand.m4: Import.
6017 * gnulib/import/m4/isnanl.m4: Import.
6018 * gnulib/import/m4/math_h.m4: Import.
6019 * gnulib/import/math.c: Import.
6020 * gnulib/import/math.in.h: Import.
6022 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6024 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6025 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6026 signature_INTEL_edx comparisons.
6028 2013-06-20 Doug Evans <dje@google.com>
6031 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6032 All callers updated.
6033 (open_dwp_file): If we can't find the dwp file, search the basename
6034 in debug-file-directory.
6036 * dwarf2read.c (struct dwp_file): Fix comment.
6037 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6039 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6042 2013-06-20 Yao Qi <yao@codesourcery.com>
6044 * breakpoint.c (create_breakpoint): Fix code indentation.
6046 2013-06-20 Yao Qi <yao@codesourcery.com>
6048 * breakpoint.c (create_breakpoints_sal_default): Remove
6049 parameter 'lsal'. Update declaration.
6050 (bkpt_create_breakpoints_sal): Caller update.
6051 (tracepoint_create_breakpoints_sal): Likewise.
6053 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6054 Yao Qi <yao@codesourcery.com>
6056 * NEWS: Mention the new option '--skip-unavailable' of command
6057 -data-list-register-values.
6058 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6059 --skip-unavailable option. Adjust to use output_register.
6060 (output_register): Add new 'skip_unavailable' parameter.
6063 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6065 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6066 common/i386-gcc-cpuid.h.
6067 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6068 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6069 Copy the latest version from upstream gcc.
6070 * common/linux-btrace.c: Include i386-cpuid.h.
6071 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6073 (cpu_supports_btrace): Likewise.
6074 * go32-nat.c: Include i386-cpuid.h.
6075 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6077 2013-06-19 Doug Evans <dje@google.com>
6079 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6080 (get_section_index): Ditto.
6082 2013-06-19 Tom Tromey <tromey@redhat.com>
6084 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6087 2013-06-18 Doug Evans <dje@google.com>
6089 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6091 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6092 Move test of cu_index closer to use. Print complaint if cu_index
6095 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6097 * machoread.c (oso_vector): Delete this global.
6098 (macho_register_oso): Add new parameter "oso_vector_ptr".
6099 Use it instead of the "oso_vector" global.
6100 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6101 (macho_symfile_read): Use a local oso_vector, to be free'ed
6102 at the end of this function, in place of the old "oso_vector"
6103 global. Update various function calls accordingly. Use one
6104 single cleanup chain for the entire function.
6106 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6108 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6109 DWARF2_PER_OBJFILE by uses of DATA instead.
6111 2013-06-18 Tom Tromey <tromey@redhat.com>
6113 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6115 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6116 Special case signals other than GDB_SIGNAL_TRAP.
6117 (explains_signal_watchpoint): New function.
6118 (base_breakpoint_explains_signal): Add 'sig' argument.
6119 (initialize_breakpoint_ops): Set 'explains_signal' method for
6121 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6123 (bpstat_explains_signal): Likewise.
6124 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6126 2013-06-18 Tom Tromey <tromey@redhat.com>
6128 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6130 2013-06-18 Tom Tromey <tromey@redhat.com>
6132 * python/python.c (finish_python_initialization): Decref
6133 'pythondir' on failure path as well.
6135 2013-06-18 Tom Tromey <tromey@redhat.com>
6138 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6139 after taking bits_to_skip into account. Sign extend byte_offset.
6140 * utils.h (gdb_sign_extend): Declare.
6141 * utils.c (gdb_sign_extend): New function.
6143 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6145 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6147 2013-06-17 Pierre Muller <muller@sourceware.org>
6149 * corelow.c (core_open): Print GDB signal name instead of target
6152 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6154 * .gitignore: Add /gcore.
6156 2013-06-13 Doug Evans <dje@google.com>
6158 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6159 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6161 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6163 * stack.c (backtrace_command_1): Fix indentation.
6165 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6167 * window-nat.c (thread_rec): Add missing empty line after
6168 local variable declaration.
6170 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6172 * windows-nat.c (thread_rec): Revert format used to print
6173 error code returned by SuspendThread from %d back to %u.
6175 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6177 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6179 (get_windows_debug_event): Likewise, for all debug traces.
6181 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6183 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6186 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6187 Yao Qi <yao@codesourcery.com>
6189 * mi/mi-main.c (get_register): Remove declaration.
6190 (output_register): Declare.
6191 (mi_cmd_data_list_register_values): Remove local variable
6192 'tuple_cleanup'. Move some code into output_register.
6193 (get_register): Renamed to ...
6194 (output_register): ... this. Output the register's
6195 "number" ui_out tuple here.
6197 2013-06-07 Pedro Alves <palves@redhat.com>
6199 * darwin-nat.c: Fix formating in copyright header.
6200 * darwin-nat.h: Likewise.
6201 * gnu-nat.c: Likewise.
6202 * machoread.c: Likewise.
6204 2013-06-07 Pedro Alves <palves@redhat.com>
6207 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6208 static. Output a global target description pointer.
6209 (init_registers_${name}): Adjust to initialize a
6210 target description structure.
6212 2013-06-07 Will Newton <will.newton@linaro.org>
6214 * printcmd.c (build_address_symbolic): Call
6215 gdbarch_addr_bits_remove for text minimal symbols.
6217 2013-06-07 Will Newton <will.newton@linaro.org>
6219 * MAINTAINERS: Add myself to Write After Approval.
6221 2013-06-07 Yao Qi <yao@codesourcery.com>
6223 * tracepoint.c (start_tracing): Move code to ...
6224 (trace_reset_local_state): ... here. New.
6225 (disconnect_tracing): Don't call set_current_traceframe,
6226 set_tracepoint_num, and set_traceframe_context. Call
6227 trace_reset_local_state instead.
6228 (tfile_close): Call trace_reset_local_state.
6229 * ctf.c (ctf_close): Likewise.
6230 * remote.c (remote_close): Likewise.
6231 * tracepoint.h (trace_reset_local_state): Declare.
6233 2013-06-06 Doug Evans <dje@google.com>
6235 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6236 and fix header docs.
6238 2013-06-05 Doug Evans <dje@google.com>
6239 Keith Seitz <keiths@redhat.com>
6242 * cp-namespace.c (find_symbol_in_baseclass): Call
6243 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6244 Check result of call to lookup_symbol_static.
6245 Call lookup_static_symbol_aux unconditionally.
6246 Call check_typedef on base types before accessing them.
6247 (cp_lookup_nested_symbol): Fix comment.
6249 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6251 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6252 minimal symbols pointing to function descriptors.
6254 2013-06-05 Tom Tromey <tromey@redhat.com>
6256 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6258 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6259 Pedro Alves <palves@redhat.com>
6261 * remote.c (remote_wait_as): Restore signal handler before returning
6262 when GDB gets a notification.
6264 2013-06-04 Gary Benson <gbenson@redhat.com>
6267 * breakpoint.h (handle_solib_event): Moved function declaration
6269 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6270 (bpstat_stop_status): Pass new argument to handle_solib_event.
6271 * solib.h (update_solib_breakpoints): New function declaration.
6272 (handle_solib_event): Moved function declaration from
6274 * solib.c (update_solib_breakpoints): New function.
6275 (handle_solib_event): Moved function from breakpoint.c.
6276 Updated to call solib_ops->handle_event if not NULL.
6277 * solist.h (target_so_ops): New fields "update_breakpoints" and
6279 * infrun.c (set_stop_on_solib_events): New function.
6280 (_initialize_infrun): Use the above for "set
6281 stop-on-solib-events".
6282 (handle_inferior_event): Pass new argument to handle_solib_event.
6283 * solib-svr4.c (probe.h): New include.
6284 (svr4_free_library_list): New forward declaration.
6285 (probe_action): New enum.
6286 (probe_info): New struct.
6287 (probe_info): New static variable.
6288 (NUM_PROBES): New definition.
6289 (svr4_info): New fields "using_xfer", "probes_table" and
6291 (free_probes_table): New function.
6292 (free_solib_list): New function.
6293 (svr4_pspace_data_cleanup): Free probes table and solib list.
6294 (svr4_copy_library_list): New function.
6295 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6296 (svr4_read_so_list): New parameter "prev_lm".
6297 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6298 (svr4_current_sos): New function.
6299 (probe_and_action): New struct.
6300 (hash_probe_and_action): New function.
6301 (equal_probe_and_action): Likewise.
6302 (register_solib_event_probe): Likewise.
6303 (solib_event_probe_at): Likewise.
6304 (solib_event_probe_action): Likewise.
6305 (solist_update_full): Likewise.
6306 (solist_update_incremental): Likewise.
6307 (disable_probes_interface_cleanup): Likewise.
6308 (svr4_handle_solib_event): Likewise.
6309 (svr4_update_solib_event_breakpoint): Likewise.
6310 (svr4_update_solib_event_breakpoints): Likewise.
6311 (svr4_create_solib_event_breakpoints): Likewise.
6312 (enable_break): Free probes table before creating breakpoints.
6313 Use svr4_create_solib_event_breakpoints to create breakpoints.
6314 (svr4_solib_create_inferior_hook): Free the solib list.
6315 (_initialize_svr4_solib): Initialise
6316 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6318 2013-06-04 Gary Benson <gbenson@redhat.com>
6320 * target.h (target_ops): New field
6321 "to_augmented_libraries_svr4_read".
6322 (target_augmented_libraries_svr4_read): New macro.
6323 * target.c (update_current_target): Handle
6324 to_augmented_libraries_svr4_read.
6325 * remote.c (remote_state): New field
6326 "augmented_libraries_svr4_read".
6327 (remote_augmented_libraries_svr4_read_feature): New function.
6328 (remote_protocol_features): Add entry for
6329 "augmented-libraries-svr4-read".
6330 (remote_augmented_libraries_svr4_read): New function.
6331 (init_remote_ops): Initialize
6332 remote_ops.to_augmented_libraries_svr4_read.
6334 2013-06-04 Gary Benson <gbenson@redhat.com>
6338 2013-06-04 Gary Benson <gbenson@redhat.com>
6340 * objfiles.h (inhibit_section_map_updates): New function
6342 (resume_section_map_updates): Likewise.
6343 (resume_section_map_updates_cleanup): Likewise.
6344 * objfiles.c (objfile_pspace_info): Removed field
6345 "objfiles_changed_p". New fields "new_objfiles_available",
6346 "section_map_dirty" and "inhibit_updates".
6347 (allocate_objfile): Set new_objfiles_available.
6348 (free_objfile): Set section_map_dirty.
6349 (objfile_relocate1): Likewise.
6350 (in_plt_section): Likewise.
6351 (find_pc_section): Update the conditions under which the
6352 section map will be updated.
6353 (inhibit_section_map_updates): New function.
6354 (resume_section_map_updates): Likewise.
6355 (resume_section_map_updates_cleanup): Likewise.
6357 2013-06-04 Gary Benson <gbenson@redhat.com>
6359 * probe.h (get_probe_argument_count): New declaration.
6360 (evaluate_probe_argument): Likewise.
6361 * probe.c (get_probe_argument_count): New function.
6362 (evaluate_probe_argument): Likewise.
6363 (probe_safe_evaluate_at_pc): Use the above new functions.
6365 2013-06-04 Alan Modra <amodra@gmail.com>
6367 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6368 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6369 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6370 target mem reads on optional insns.
6371 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6372 ppc_insns_match_pattern calls.
6373 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6374 Add match for power7 thread safety insns, and new order of
6375 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6376 invocation in comment, and update rest of comment.
6377 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6378 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6379 (ppc64_standard_linkage2_target): Update insn offsets.
6380 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6381 stubs first. Update calls.
6383 2013-06-04 Yao Qi <yao@codesourcery.com>
6385 * solib.c (solib_find): Don't need dir separator if path has
6388 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6390 Revert (indirectly causes a SIGSEGV):
6391 * machoread.c (macho_symfile_read): Assign first cleanup to
6394 2013-06-03 Yao Qi <yao@codesourcery.com>
6396 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6397 mi-parse.c. Make them static.
6398 (mi_all_values): Likewise.
6399 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6400 mi_parse_print_values. Make it external.
6401 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6402 Remove the declarations.
6403 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6404 * mi/mi-parse.h (mi_parse_print_values): Declare.
6405 * mi/mi-cmd-stack.c: Include mi-parse.h.
6406 (parse_print_values): Remove
6407 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6408 of parse_print_values.
6409 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6411 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6412 Yao Qi <yao@codesourcery.com>
6414 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6415 (encode_actions): Move code to ...
6416 (all_tracepoint_actions_and_cleanup): ... here. New.
6417 (trace_dump_command): Likewise.
6419 2013-05-30 Tom Tromey <tromey@redhat.com>
6421 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6423 2013-05-30 Tom Tromey <tromey@redhat.com>
6425 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6426 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6427 'old_chain' argument. Add 'parser_result' argument.
6428 (gdb_xml_create_parser_and_cleanup): Remove old version.
6429 (gdb_xml_parse_quick): Update.
6430 (xml_process_xincludes): Update.
6431 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6434 2013-05-30 Tom Tromey <tromey@redhat.com>
6436 * probe.c (collect_probes): Check arguments for NULL before
6437 calling compile_rx_or_error.
6438 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6441 2013-05-30 Tom Tromey <tromey@redhat.com>
6443 * infrun.c (adjust_pc_after_break): Introduce an outer null
6446 2013-05-30 Tom Tromey <tromey@redhat.com>
6448 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6450 2013-05-30 Tom Tromey <tromey@redhat.com>
6452 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6453 for 'old_chain'. Do not check 'head' before processing
6456 2013-05-30 Tom Tromey <tromey@redhat.com>
6458 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6461 2013-05-30 Tom Tromey <tromey@redhat.com>
6463 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6464 inner scope. Unconditionally call do_cleanups.
6466 2013-05-30 Tom Tromey <tromey@redhat.com>
6468 * source.c (find_and_open_source): Call do_cleanups.
6470 2013-05-30 Tom Tromey <tromey@redhat.com>
6472 * linux-thread-db.c (thread_db_load_search): Unconditionally
6475 2013-05-30 Tom Tromey <tromey@redhat.com>
6477 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6478 for 'cleanup'; instead use a later one.
6480 2013-05-30 Tom Tromey <tromey@redhat.com>
6482 * python/py-breakpoint.c (bppy_get_commands): Use
6483 explicit, unconditional return.
6484 * python/py-frame.c (frapy_read_var): Likewise.
6485 * python/python.c (gdbpy_decode_line): Likewise.
6487 2013-05-30 Tom Tromey <tromey@redhat.com>
6489 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6490 do_cleanups on all return paths.
6492 2013-05-30 Tom Tromey <tromey@redhat.com>
6494 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6496 2013-05-30 Tom Tromey <tromey@redhat.com>
6498 * stabsread.c (read_struct_type): Call do_cleanups along
6501 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6503 * mips-linux-tdep.c: Adjust formatting throughout.
6505 2013-05-30 Tom Tromey <tromey@redhat.com>
6507 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6508 along all return paths.
6510 2013-05-30 Tom Tromey <tromey@redhat.com>
6512 * symfile.c (find_separate_debug_file): Call do_cleanups
6513 along all return paths.
6515 2013-05-30 Tom Tromey <tromey@redhat.com>
6517 * symtab.c (search_symbols): Introduce a null cleanup for
6520 2013-05-30 Tom Tromey <tromey@redhat.com>
6522 * python/py-value.c (valpy_binop): Call do_cleanups before
6525 2013-05-30 Tom Tromey <tromey@redhat.com>
6527 * python/py-prettyprint.c (print_children): Remove extra
6530 2013-05-30 Tom Tromey <tromey@redhat.com>
6532 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6535 2013-05-30 Tom Tromey <tromey@redhat.com>
6537 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6538 along all return paths.
6540 2013-05-30 Tom Tromey <tromey@redhat.com>
6542 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6545 2013-05-30 Tom Tromey <tromey@redhat.com>
6547 * varobj.c (c_value_of_root): Call do_cleanups along all
6550 2013-05-30 Tom Tromey <tromey@redhat.com>
6552 * tracepoint.c (trace_dump_command): Unconditionally call
6555 2013-05-30 Tom Tromey <tromey@redhat.com>
6557 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6558 do_cleanups earlier.
6560 2013-05-30 Tom Tromey <tromey@redhat.com>
6562 * machoread.c (macho_symfile_read): Assign first cleanup to
6565 2013-05-30 Tom Tromey <tromey@redhat.com>
6567 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6569 2013-05-30 Tom Tromey <tromey@redhat.com>
6571 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6573 2013-05-30 Tom Tromey <tromey@redhat.com>
6575 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6576 call discard_cleanups.
6577 (inf_ptrace_attach): Likewise.
6579 2013-05-30 Tom Tromey <tromey@redhat.com>
6581 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6583 (mips_initialize): Likewise.
6584 (common_open): Call do_cleanups.
6586 2013-05-30 Tom Tromey <tromey@redhat.com>
6588 * utils.c (internal_vproblem): Call do_cleanups.
6590 2013-05-30 Tom Tromey <tromey@redhat.com>
6592 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6594 2013-05-30 Tom Tromey <tromey@redhat.com>
6596 * cli/cli-script.c (setup_user_args): Don't return after error.
6598 2013-05-30 Tom Tromey <tromey@redhat.com>
6600 * somread.c (som_symtab_read): Call do_cleanups.
6602 2013-05-30 Tom Tromey <tromey@redhat.com>
6604 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6606 2013-05-30 Tom Tromey <tromey@redhat.com>
6608 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6609 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6610 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6611 * source.c (show_substitute_path_command): Call do_cleanups.
6612 (unset_substitute_path_command, set_substitute_path_command):
6614 * symfile.c (load_command): Call do_cleanups.
6616 2013-05-30 Tom Tromey <tromey@redhat.com>
6618 * contrib/cleanup_check.py: New file.
6619 * contrib/gcc-with-excheck: Add option parsing.
6621 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6623 * windows-nat.c (windows_delete_thread): Add missing space
6626 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6628 * inferior.c (top level): Include tilde.h.
6629 (add_inferior_command): Call tilde_expand on the value of 'exec'
6632 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6633 Yao Qi <yao@codesourcery.com>
6635 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6637 (encode_actions): Likewise.
6638 * remote.c (remote_download_tracepoint): Caller update.
6639 * tracepoint.h (encode_actions): Update declaration.
6641 2013-05-30 Pedro Alves <palves@redhat.com>
6643 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6646 2013-05-30 Yao Qi <yao@codesourcery.com>
6648 * remote.c (remote_check_symbols): Remove unused parameter
6651 (remote_start_remote, remote_new_objfile): Caller update.
6653 2013-05-30 Yao Qi <yao@codesourcery.com>
6655 * mi/mi-cmds.c (mi_cmds): Define MI command
6656 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6659 2013-05-29 Pedro Alves <palves@redhat.com>
6661 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6662 (remote_insert_watchpoint, remote_remove_watchpoint)
6663 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6664 (remote_verify_memory, compare_sections_command)
6665 (remote_search_memory): Set the general process/thread on the
6668 2013-05-29 Pedro Alves <palves@redhat.com>
6670 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6671 (_initialize_aarch64_tdep): Don't call
6672 initialize_tdesc_aarch64_without_fpu.
6673 * features/Makefile (WHICH): Remove reference to
6674 aarch64-without-fpu.
6675 * features/aarch64-without-fpu.c: Delete file.
6676 * regformats/aarch64-without-fpu.dat: Delete file.
6678 2013-05-28 Yao Qi <yao@codesourcery.com>
6680 * tracepoint.c (stringify_collection_list): Remove parameter
6682 (encode_actions): Caller update. Remove local variables.
6684 2013-05-24 Yao Qi <yao@codesourcery.com>
6686 * tracepoint.c (TFILE_PID): Remove.
6687 (tfile_open): Don't add thread and inferior.
6688 (tfile_close): Don't set 'inferior_ptid'. Don't call
6689 exit_inferior_silent.
6690 (tfile_thread_alive): Remove.
6691 (init_tfile_ops): Don't set field 'to_thread_alive' of
6694 2013-05-23 Doug Evans <dje@google.com>
6696 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6698 2013-05-23 Pedro Alves <palves@redhat.com>
6700 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6701 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6702 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6703 Only define if HAVE_SOCKETS is defined.
6704 * configure.ac: Check for sys/socket.h.
6705 * config.in, configure: Regenerate.
6707 2013-05-23 Pedro Alves <palves@redhat.com>
6709 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6710 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6711 printing uint32_t variables.
6713 2013-05-23 Pedro Alves <palves@redhat.com>
6715 * NEWS: Mention GDBserver range stepping support.
6717 2013-05-23 Yao Qi <yao@codesourcery.com>
6718 Pedro Alves <palves@redhat.com>
6720 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6722 * infcmd.c (step_once, until_next_command): Enable range stepping.
6723 * infrun.c (displaced_step_prepare): Disable range stepping.
6724 (resume): Disable range stepping if stepping over a breakpoint or
6725 we have software watchpoints. If range stepping is enabled,
6726 assert the thread is in the stepping range.
6727 (clear_proceed_status_thread): Clear may_range_step.
6728 (handle_inferior_event): Disable range stepping as soon as we know
6729 the thread that hit the event. Re-enable it whenever we're going
6730 to step with a step range.
6731 * remote.c (struct vCont_action_support) <r>: New field.
6732 (use_range_stepping): New global.
6733 (remote_vcont_probe): Handle 'r' action.
6734 (append_resumption): Append an 'r' action if the thread may range
6736 (show_range_stepping): New function.
6737 (set_range_stepping): New function.
6738 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6739 'set range-stepping' and 'show range-stepping' commands.
6740 * NEWS: Mention range stepping, the new vCont;r action, and the
6741 new "set/show range-stepping" commands.
6743 2013-05-23 Yao Qi <yao@codesourcery.com>
6744 Pedro Alves <palves@redhat.com>
6746 * remote.c (struct vCont_action_support): New struct.
6747 (struct remote_state) <support_vCont_t>: Remove field.
6748 <vCont_actions_support>: New field.
6749 (remote_vcont_probe, remote_stop_ns): Update.
6751 2013-05-23 Yao Qi <yao@codesourcery.com>
6752 Pedro Alves <palves@redhat.com>
6754 * gdbthread.h (pc_in_thread_step_range): New declaration.
6755 * thread.c (pc_in_thread_step_range): New function.
6756 * infrun.c (handle_inferior_event): Use it.
6758 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6760 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6763 2013-05-22 Keith Seitz <keiths@redhat.com>
6765 * ada-lang.c (is_known_support_routine): Add explicit free of
6766 'func_name' from find_frame_funname.
6767 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6768 for func_name from find_frame_funname.
6769 * python/py-frame.c (frapy_name): Add explicit free of
6770 'name' from find_frame_funname.
6771 * stack.c (find_frame_funname): Add comment explaining that
6772 funcp must be freed by the caller.
6773 Return copy of symbol names instead of pointers.
6774 (print_frame): Add a cleanup for 'funname' from
6776 * stack.h (find_frame_funname): Remove "const" from
6777 'funname' parameter.
6779 2013-05-22 Tom Tromey <tromey@redhat.com>
6782 * c-valprint.c (c_value_print): Use value_addr for
6783 references. Convert back to reference type with value_ref.
6785 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6787 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6788 unloaded DLL, it will be done by handle_solib_event. See
6789 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6792 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6794 * ui-out.c: Create typedef ui_out_level_p and define vector
6795 operations for that type.
6796 (struct ui_out): Use a vector instead of an array.
6797 (current_level): Return level from a vector.
6798 (push_level): Create a level in a vector.
6799 (pop_level): Delete a level in a vector.
6800 (ui_out_new): Create initial level zero level, and store in a
6802 (ui_out_destroy): Add vector cleanup.
6804 2013-05-22 Pedro Alves <palves@redhat.com>
6806 * python/python-internal.h (gdb_Py_DECREF): Tag with
6807 "ARI: editCase function".
6809 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6811 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6813 2013-05-21 Pedro Alves <palves@redhat.com>
6815 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6816 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6817 * python/py-utils.c (py_decref): Don't check for NULL before
6820 2013-05-21 Pedro Alves <palves@redhat.com>
6822 * python/py-utils.c (py_decref): Remove extra braces.
6823 (gdb_pymodule_addobject): Remove extra braces.
6824 * python-internal.h (gdb_Py_DECREF): New static inline function.
6825 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6827 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6829 * breakpoints.c (detach_breakpoints): Do not
6830 detach breakpoints locations with loc_type bp_loc_other.
6832 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6834 Workaround Python 2.6.
6835 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6838 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6840 Code cleanup: constification.
6841 * solib.c (solib_ops): Make return type and ops variable type const.
6842 (set_solib_ops): Make the new_ops parameter and ops variable const.
6843 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6844 (solib_add, solib_keep_data_in_core, clear_solib)
6845 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6846 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6848 * solib.h (set_solib_ops): Make the new_ops parameter const.
6850 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6852 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6854 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6855 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6856 (SYSTEM_GDBINIT_FILES): New variables.
6857 (all): Add stamp-system-gdbinit.
6858 (stamp-system-gdbinit): New rule.
6859 (clean-system-gdbinit, install-system-gdbinit)
6860 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6861 (install-only): Add dependency on install-system-gdbinit.
6862 (uninstall): Add dependency on uninstall-system-gdbinit.
6863 (clean): Add dependency on clean-system-gdbinit.
6864 * system-gdbinit/elinos.py: New file.
6865 * system-gdbinit/wrs-linux.py: New file.
6867 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6869 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6871 2013-05-21 Hui Zhu <hui@codesourcery.com>
6873 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6874 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6875 * mi/mi-cmd-break.c (ctype.h): New include.
6876 (gdb_obstack.h): New include.
6877 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6878 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6879 (mi_cmd_dprintf_insert): New.
6880 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6881 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6883 2013-05-20 Tom Tromey <tromey@redhat.com>
6885 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6887 2013-05-20 Tom Tromey <tromey@redhat.com>
6889 * python/py-value.c (valpy_get_dynamic_type): Simplify
6890 dynamic_type assignment. Use Py_XINCREF.
6892 2013-05-20 Tom Tromey <tromey@redhat.com>
6894 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6896 2013-05-20 Tom Tromey <tromey@redhat.com>
6898 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6899 (gdbpy_selected_frame): Move object-construction code
6902 2013-05-20 Tom Tromey <tromey@redhat.com>
6904 * python/py-arch.c (gdbpy_initialize_arch): Use
6905 gdb_pymodule_addobject.
6906 * python/py-block.c (gdbpy_initialize_blocks): Use
6907 gdb_pymodule_addobject.
6908 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6909 gdb_pymodule_addobject.
6910 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6911 gdb_pymodule_addobject.
6912 * python/py-event.c (gdbpy_initialize_event_generic): Use
6913 gdb_pymodule_addobject.
6914 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6915 gdb_pymodule_addobject.
6916 * python/py-evts.c (add_new_registry): Use
6917 gdb_pymodule_addobject.
6918 (gdbpy_initialize_py_events): Likewise.
6919 * python/py-finishbreakpoint.c
6920 (gdbpy_initialize_finishbreakpoints): Use
6921 gdb_pymodule_addobject.
6922 * python/py-frame.c (gdbpy_initialize_frames): Use
6923 gdb_pymodule_addobject.
6924 * python/py-function.c (gdbpy_initialize_functions): Use
6925 gdb_pymodule_addobject.
6926 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6927 gdb_pymodule_addobject.
6928 * python/py-infthread.c (gdbpy_initialize_thread): Use
6929 gdb_pymodule_addobject.
6930 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6931 gdb_pymodule_addobject.
6932 * python/py-param.c (gdbpy_initialize_parameters): Use
6933 gdb_pymodule_addobject.
6934 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6935 gdb_pymodule_addobject.
6936 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6937 gdb_pymodule_addobject.
6938 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6939 gdb_pymodule_addobject.
6940 * python/py-type.c (gdbpy_initialize_types): Use
6941 gdb_pymodule_addobject.
6942 * python/py-utils.c (gdb_pymodule_addobject): New function.
6943 * python/py-value.c (gdbpy_initialize_values): Use
6944 gdb_pymodule_addobject.
6945 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6946 * python/python.c (_initialize_python): Use
6947 gdb_pymodule_addobject.
6949 2013-05-20 Tom Tromey <tromey@redhat.com>
6951 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6952 * python/py-param.c (get_set_value, get_show_value): Use
6954 * python/python.c (start_type_printers, apply_type_printers):
6955 Use explicit decrefs.
6957 2013-05-20 Tom Tromey <tromey@redhat.com>
6959 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6962 2013-05-20 Tom Tromey <tromey@redhat.com>
6964 * python/python.c (gdbpy_run_events): Decref the result
6965 of PyObject_CallObject.
6967 2013-05-20 Tom Tromey <tromey@redhat.com>
6969 * python/py-symtab.c (set_sal): Use
6970 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6971 (symtab_and_line_to_sal_object): Update.
6973 2013-05-20 Tom Tromey <tromey@redhat.com>
6975 * python/py-param.c (compute_enum_values): Decref 'item'.
6977 2013-05-20 Tom Tromey <tromey@redhat.com>
6979 * mi/mi-main.c: Include python-internal.h.
6980 (mi_cmd_list_features): Check gdb_python_initialized.
6981 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6982 (python_inferior_exit, python_new_objfile, add_thread_object)
6983 (delete_thread_object, py_free_inferior): Check
6984 gdb_python_initialized.
6985 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6986 gdb_python_initialized.
6987 * python/py-type.c (save_objfile_types): Check
6988 gdb_python_initialized.
6989 * python/python-internal.h (gdb_python_initialized): Declare.
6990 * python/python.c (ensure_python_env): Throw exception if
6991 Python not initialized.
6992 (before_prompt_hook, source_python_script_for_objfile)
6993 (start_type_printers, apply_type_printers,
6994 free_type_printers): Check gdb_python_initialized.
6995 * varobj.c (varobj_get_display_hint)
6996 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6997 (install_new_value_visualizer, varobj_set_visualizer)
6998 (value_get_print_value): Check gdb_python_initialized.
7000 2013-05-20 Tom Tromey <tromey@redhat.com>
7002 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7004 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7005 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7007 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7009 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7011 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7013 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7014 init function to return 'int'.
7015 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7016 Return 'int'. Check errors.
7017 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7019 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7020 Return 'int'. Check errors.
7021 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7023 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7025 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7027 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7029 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7031 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7033 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7035 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7037 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7039 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7041 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7043 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7045 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7047 * python/python-internal.h (gdbpy_initialize_auto_load,
7048 gdbpy_initialize_values, gdbpy_initialize_frames,
7049 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7050 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7051 gdbpy_initialize_blocks, gdbpy_initialize_types,
7052 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7053 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7054 gdbpy_initialize_finishbreakpoints,
7055 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7056 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7057 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7058 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7059 gdbpy_initialize_signal_event,
7060 gdbpy_initialize_breakpoint_event,
7061 gdbpy_initialize_continue_event,
7062 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7063 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7064 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7065 * python/python.c (gdb_python_initialized): New global.
7066 (gdbpy_initialize_events): Return 'int'. Check errors.
7067 (_initialize_python): Check errors. Set
7068 gdb_python_initialized.
7070 2013-05-20 Tom Tromey <tromey@redhat.com>
7072 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7073 Decref the reslut of PyObject_CallMethod.
7075 2013-05-20 Tom Tromey <tromey@redhat.com>
7077 * python/py-event.c (gdbpy_initialize_event_generic): Return
7078 early if PyType_Ready fails.
7080 2013-05-20 Tom Tromey <tromey@redhat.com>
7082 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7083 as 'default' in the switch.
7085 2013-05-20 Tom Tromey <tromey@redhat.com>
7087 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7088 get_addr_from_python calls out of TRY_CATCH.
7089 (infpy_write_memory, infpy_search_memory): Likewise.
7090 * python/py-utils.c (get_addr_from_python): Return negative
7091 value on error. Use TRY_CATCH.
7092 * python/python-internal.h (get_addr_from_python): Use
7093 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7095 2013-05-20 Tom Tromey <tromey@redhat.com>
7097 * python/py-event.c (evpy_emit_event): Decref the
7098 result of PyObject_CallFunctionObjArgs.
7100 2013-05-20 Tom Tromey <tromey@redhat.com>
7102 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7105 2013-05-20 Tom Tromey <tromey@redhat.com>
7107 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7109 2013-05-20 Tom Tromey <tromey@redhat.com>
7111 * python/py-event.h (gdbpy_initialize_event_generic): Use
7112 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7113 * python/py-evts.c (add_new_registry): Use
7114 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7115 * python/python-internal.h
7116 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7118 2013-05-20 Tom Tromey <tromey@redhat.com>
7120 * python/py-arch.c (archpy_disassemble): Update.
7121 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7122 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7123 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7124 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7126 (GDB_PY_HANDLE_EXCEPTION): Update.
7127 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7129 2013-05-20 Tom Tromey <tromey@redhat.com>
7131 * python/python-internal.h (events_object_type): Remove.
7133 2013-05-20 Tom Tromey <tromey@redhat.com>
7135 * python/py-event.h (evpy_emit_event): Use
7136 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7137 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7140 2013-05-20 Tom Tromey <tromey@redhat.com>
7142 * py-evtregistry.c (create_event_object): Decref
7143 eventregistry_object if PyList_New fails.
7145 2013-05-20 Tom Tromey <tromey@redhat.com>
7147 * py-cmd.c (gdbpy_string_to_argv): Check result of
7150 2013-05-20 Tom Tromey <tromey@redhat.com>
7152 * python/python.c (before_prompt_hook): Add cleanup to
7155 2013-05-20 Tom Tromey <tromey@redhat.com>
7157 * python/py-function.c (fnpy_init): Decref result of
7158 PyObject_GetAttrString.
7160 2013-05-20 Tom Tromey <tromey@redhat.com>
7162 * python/py-threadevent.c (get_event_thread): Use
7163 CPYCHECKER_RETURNS_BORROWED_REF.
7164 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7166 (pspace_to_pspace_object, objfile_to_objfile_object)
7167 (find_thread_object): Use it.
7169 2013-05-20 Tom Tromey <tromey@redhat.com>
7171 * python/py-arch.c (arch_object_type): Use
7172 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7173 * python/py-block.c (block_syms_iterator_object_type):
7174 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7175 * python/py-bpevent.c (breakpoint_event_object_type):
7176 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7177 * python/py-cmd.c (cmdpy_object_type): Use
7178 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7179 * python/py-continueevent.c (continue_event_object_type):
7180 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7181 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7182 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7183 * python/py-events.h (thread_event_object_type):
7184 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7185 * python/py-evtregistry.c (eventregistry_object_type): Use
7186 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7187 * python/py-exitedevent.c (exited_event_object_type):
7188 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7189 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7190 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7191 * python/py-function.c (fnpy_object_type): Use
7192 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7193 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7194 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7195 * python/py-infthread.c (thread_object_type): Use
7196 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7197 * python/py-lazy-string.c (lazy_string_object_type):
7198 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7199 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7200 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7201 * python/py-objfile.c (objfile_object_type): Use
7202 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7203 * python/py-param.c (parmpy_object_type):
7204 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7205 * python/py-progspace.c (pspace_object_type):
7206 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7207 * python/py-signalevent.c (signal_event_object_type):
7208 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7209 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7210 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7211 * python/py-type.c (type_object_type, field_object_type)
7212 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7213 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7215 (value_object_type, block_object_type, symbol_object_type)
7216 (event_object_type, stop_event_object_type, breakpoint_object_type)
7217 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7219 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7221 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7222 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7224 2013-05-20 Doug Evans <dje@google.com>
7226 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7228 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7229 reading_dwo_directly.
7230 (struct signatured_type): New member dwo_unit.
7231 (struct die_reader_specs): New member comp_dir.
7232 (create_signatured_type_table_from_index): Use malloc for
7233 all_type_units instead of objfile's obstack.
7234 (create_all_type_units): Ditto.
7235 (fill_in_sig_entry_from_dwo_entry): New function.
7236 (add_type_unit): New function.
7237 (lookup_dwo_signatured_type): New function.
7238 (lookup_dwp_signatured_type): New function.
7239 (lookup_signatured_type): New arg cu. All callers updated.
7240 (init_cu_die_reader): Initialize comp_dir.
7241 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7242 Change assert of matching type signatures to call error on mismatch.
7243 (lookup_dwo_unit): Add assert.
7244 (init_tu_and_read_dwo_dies): New function.
7245 (init_cutu_and_read_dies): Call it.
7246 (build_type_unit_groups): Handle case of no type unit groups created.
7247 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7248 (lookup_dwo_cutu): Tweak complaint.
7249 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7250 (dwarf2_per_objfile_free): Free all_type_units.
7252 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7254 * windows-nat.c (handle_unload_dll): Add missing empty line.
7256 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7258 * dwarf2read.c (prototyped_function_p): New function.
7259 (read_subroutine_type): Use it.
7261 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7263 * rs6000-aix-tdep.c: De-indent some example code provided
7266 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7268 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7269 region is ok for a hardware watchpoint using the new ptrace interface
7272 2013-05-17 Doug Evans <dje@google.com>
7274 * NEWS: Mention new maintenance commands check-symtabs, and
7275 expand-symtabs, and renamed check-psymtabs.
7276 * psymtab.c (maintenance_check_psymtabs): Renamed from
7277 maintenance_check_symtabs. Only process already-expanded symbol
7279 (_initialize_psymtab): Update.
7280 * symmisc.c (maintenance_check_symtabs): New function.
7281 (maintenance_expand_name_matcher): New function
7282 (maintenance_expand_file_matcher): New function
7283 (maintenance_expand_symtabs): New function.
7284 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7287 2013-05-17 Tom Tromey <tromey@redhat.com>
7289 * python/py-inferior.c (infpy_read_memory): Don't call
7290 PyErr_SetString if PyObject_New fails.
7291 * python/py-frame.c (frame_info_to_frame_object): Don't call
7292 PyErr_SetString if PyObject_New fails.
7294 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7296 * acinclude.m4: Add check for dlopen in libdl.
7297 * configure.ac: Ditto.
7298 * configure: Regenerate.
7300 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7302 * frame.c (frame_stash): Convert to htab.
7303 (frame_addr_hash): New function.
7304 (frame_addr_hash_eq): New function.
7305 (frame_stash_create): Convert function to create
7307 (frame_stash_add): Convert function to add an entry to a hash
7309 (frame_stash_find): Convert function to search the hash table.
7310 (frame_stash_invalidate): Convert function to empty the hash
7312 (get_frame_id): Only add to stash if a frame_id is created.
7313 (_initialize_frame): Call frame_stash_create.
7315 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7317 * configure.ac: Ensure MIG is available when building for GNU Hurd
7319 * configure: Regenerate.
7321 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7323 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7325 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7327 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7328 all cleanups are done before returning from this function.
7330 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7332 * utils.h: #include "exceptions.h".
7333 (enum errors): Remove partial declaration.
7335 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7337 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7338 * gdbarch.h, gdbarch.c: Regenerate.
7339 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7342 * rs6000-aix-tdep.h: New file.
7343 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7344 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7346 (struct field_info, struct ld_info_desc): New types.
7347 (ld_info32_desc, ld_info64_desc): New static constants.
7348 (struct ld_info): New type.
7349 (rs6000_aix_extract_ld_info): New function.
7350 (rs6000_aix_shared_library_to_xml): Likewise.
7351 (rs6000_aix_ld_info_to_xml): Likewise.
7352 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7353 (rs6000_aix_init_osabi): Add call to
7354 set_gdbarch_core_xfer_shared_libraries_aix.
7355 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7356 Remove "xml-utils.h" include.
7357 (LdInfo): Delete typedef.
7358 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7360 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7361 Adjust code accordingly.
7362 (rs6000_core_ldinfo): Delete, folded into
7363 rs6000_aix_core_xfer_shared_libraries_aix.
7364 (rs6000_xfer_shared_library): Delete.
7365 (rs6000_xfer_shared_libraries): Reimplement.
7367 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7369 * record.c (record_goto_cmdlist): New.
7370 (cmd_record_goto): Split into this ...
7371 (cmd_record_goto_begin): ... this
7372 (cmd_record_goto_end): ... and this.
7373 (_initialize_record): Change "record goto" to prefix command.
7374 Add commands for "record goto begin" and "record goto end".
7375 Add an alias for "record goto start" to "record goto begin".
7377 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7379 * linespec.c (convert_linespec_to_sals): New comment for
7380 SOURCE_FILENAME assignment.
7382 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7384 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7387 2013-05-14 Tom Tromey <tromey@redhat.com>
7389 * eval.c (parse_and_eval_long): Make 'exp' const.
7390 * value.h (parse_and_eval_long): Update.
7392 2013-05-14 Tom Tromey <tromey@redhat.com>
7394 * ui-file.c (gdb_fopen): Make arguments const.
7395 * ui-file.h (gdb_fopen): Make arguments const.
7397 2013-05-14 Tom Tromey <tromey@redhat.com>
7399 * remote.c (remote_set_trace_notes): Make arguments const.
7400 * target.c (update_current_target): Update cast.
7401 * target.h (to_set_trace_notes): Make arguments const.
7403 2013-05-14 Tom Tromey <tromey@redhat.com>
7405 * go32-nat.c (go32_terminal_info): Make 'args' const.
7406 * inferior.h (child_terminal_info): Update.
7407 * inflow.c (child_terminal_info): Make 'args' const.
7408 * target.c (default_terminal_info): Make 'args' const.
7409 (debug_to_terminal_save_ours): Likewise.
7410 * target.h (struct target_ops) <to_terminal_info>: Make argument
7413 2013-05-13 Tom Tromey <tromey@redhat.com>
7415 * gcore.c (create_gcore_bfd): Make 'filename' const.
7416 * gcore.h (create_gcore_bfd): Make 'filename' const.
7417 * record-full.c (record_full_save): Make 'recfilename' const.
7418 * target.c (target_save_record): Make 'filename' const.
7419 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7421 (target_save_record): Likewise.
7423 2013-05-13 Tom Tromey <tromey@redhat.com>
7426 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7427 ranges section has been read.
7429 2013-05-13 Tom Tromey <tromey@redhat.com>
7432 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7433 STRUCTOP_PTR>: Return a not_lval value for
7434 EVAL_AVOID_SIDE_EFFECTS.
7435 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7436 for EVAL_AVOID_SIDE_EFFECTS.
7438 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7440 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7441 floating point registers to register type before storing
7443 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7446 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7447 Tom Tromey <tromey@redhat.com>
7449 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7451 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7453 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7454 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7455 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7456 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7458 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7459 Tom Tromey <tromey@redhat.com>
7462 * configure: Rebuild.
7463 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7466 2013-05-10 Pedro Alves <palves@redhat.com>
7468 * remote.c (_initialize_remote): Fix spelling of
7469 qXfer:traceframe-info:read packet in packet config command.
7471 2013-05-10 David Taylor <dtaylor@emc.com>
7475 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7476 "QTro" at start of packet.
7478 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7480 * solib-aix.c (solib_aix_relocate_section_addresses):
7481 For the .bss section action, apply the same offset as
7484 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7486 * solib-aix.c (solib_aix_relocate_section_addresses):
7487 Remove FIXME comment.
7489 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7492 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7493 New functions, directly copied from sparc-sol-thread.c.
7494 * sparc-sol-thread.c: Delete.
7495 * configure.ac: Remove code handling sparc-solaris-thread.c.
7496 * configure: Regenerate.
7498 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7500 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7502 (backtrace_command): Add "no-filters" option parsing.
7503 (_initialize_stack): Alter help to reflect "no-filters" option.
7504 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7505 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7506 (py-frame.o): Add target
7507 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7509 * python/python.h: Add new frame filter constants, and flag enum.
7510 (apply_frame_filter): Add definition.
7511 * python/python.c (apply_frame_filter): New non-Python
7513 * python/py-utils.c (py_xdecref): New function.
7514 (make_cleanup_py_xdecref): Ditto.
7515 * python/py-objfile.c: Declare frame_filters dictionary.
7516 (objfpy_dealloc): Add frame_filters dealloc.
7517 (objfpy_new): Initialize frame_filters attribute.
7518 (objfile_to_objfile_object): Ditto.
7519 (objfpy_get_frame_filters): New function.
7520 (objfpy_set_frame_filters): New function.
7521 * python/py-progspace.c: Declare frame_filters dictionary.
7522 (pspy_dealloc): Add frame_filters dealloc.
7523 (pspy_new): Initialize frame_filters attribute.
7524 (pspacee_to_pspace_object): Ditto.
7525 (pspy_get_frame_filters): New function.
7526 (pspy_set_frame_filters): New function.
7527 * python/py-framefilter.c: New file.
7528 * python/lib/gdb/command/frame_filters.py: New file.
7529 * python/lib/gdb/frames.py: New file.
7530 * python/lib/gdb/__init__.py: Initialize global frame_filters
7532 * python/lib/gdb/FrameDecorator.py: New file.
7533 * python/lib/gdb/FrameIterator.py: New file.
7534 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7535 * mi/mi-cmds.h: Declare.
7536 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7537 --no-frame-filter logic, and Python frame filter logic.
7538 (stack_enable_frame_filters): New function.
7539 (parse_no_frame_option): Ditto.
7540 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7542 (mi_cmd_stack_list_locals): Ditto.
7543 (mi_cmd_stack_list_args): Ditto.
7544 (mi_cmd_stack_list_variables): Ditto.
7545 * NEWS: Add frame filter note.
7547 2013-05-09 Doug Evans <dje@google.com>
7549 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7550 All callers updated.
7551 (syms_from_objfile): Ditto. Make static.
7552 (symbol_file_add_with_addrs): Renamed from
7553 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7554 num_offsets. All callers updated.
7555 * symfile.h (syms_from_objfile): Delete.
7557 * symfile.c (decrement_reading_symtab): Add assert.
7558 (increment_reading_symtab): Ditto.
7560 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7562 * source.c (forward_search_command): Replace call to getc
7564 (reverse_search_command): Likewise.
7566 2013-05-08 Doug Evans <dje@google.com>
7568 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7571 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7573 * sol-thread.c (info_cb): Factorize the code a little.
7575 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7577 * sol-thread.c (info_cb): Rework the output of the "maintenance
7578 info sol-threads" command a bit.
7580 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7582 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7583 Replace ti.ti_startfunc by ti.ti_pc.
7585 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7587 * solib-aix.c (solib_aix_free_library_list): New function
7588 for the case where HAVE_LIBEXPAT is not defined.
7590 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7592 PR breakpoints/15413:
7593 * breakpoint.c (condition_completer): Simplify the code to
7594 disconsider multiple locations of breakpoints when completing the
7595 "condition" command.
7597 2013-05-07 Pierre Muller <muller@sourceware.org>
7599 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7600 instead of <sys/wait.h>.
7602 2013-05-07 Pierre Muller <muller@sourceware.org>
7604 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7605 trailing new line from warning message.
7607 2013-05-07 Pierre Muller <muller@sourceware.org>
7609 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7610 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7612 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7614 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7615 error message (ARI fix).
7617 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7619 * features/library-list-aix.dtd: Replace library-list by
7621 * rs6000-nat.c: Replace library-list by library-list-aix
7623 * solib-aix.c: Likewise.
7625 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7627 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7628 Renames TARGET_OBJECT_AIX_LIBRARIES.
7629 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7630 TARGET_OBJECT_LIBRARIES_AIX throughout.
7631 * solib-aix.c: Likwise.
7633 2013-05-07 Yao Qi <yao@codesourcery.com>
7635 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7636 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7638 2013-05-07 Yao Qi <yao@codesourcery.com>
7640 * solib-dsbt.c (enable_break): Declare.
7641 (dsbt_current_sos): Remove call to enable_break2.
7642 (enable_break2): Rename to enable_break. Set solib breakpoint
7643 on '_dl_debug_state'.
7644 (enable_break): Remove.
7646 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7648 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7649 debug state prior to replicating existing hardware watchpoints or
7652 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 * gcore.c (gcore_create_callback): Ignore sections with
7655 separate_debug_objfile_backlink != NULL.
7657 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7658 Andrew Jenner <andrew@codesourcery.com>
7659 Chung-Lin Tang <cltang@codesourcery.com>
7660 Julian Brown <julian@codesourcery.com>
7662 Based on the nios2-elf port from Altera Corporation.
7664 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7666 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7667 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7668 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7669 * nios2-tdep.h: New.
7670 * nios2-tdep.c: New.
7671 * nios2-linux-tdep.c: New.
7672 * features/Makefile (WHICH): Add nios2-linux.
7673 (nios2-linux-expedite): Set.
7674 * features/nios2-cpu.xml: New.
7675 * features/nios2.xml: New.
7676 * features/nios2-linux.xml: New.
7677 * features/nios2.c: New (autogenerated).
7678 * features/nios2-linux.c: New (autogenerated).
7679 * regformats/nios2-linux.dat: New (autogenerated).
7680 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7683 2013-05-06 Doug Evans <dje@google.com>
7685 * symfile.c: Whitespace cleanup.
7687 * solist.h (struct target_so_ops): New member clear_so.
7688 * solib-svr4.c (svr4_clear_so): New function.
7689 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7690 * solib.c (clear_so): Renamed from free_so_symbols.
7691 All callers updated. Call target clear_so if it exists.
7693 2013-05-06 Tom Tromey <tromey@redhat.com>
7695 * ada-lang.c (ada_value_primitive_packed_val): Don't
7697 * value.c (set_value_parent): Incref the new parent and decref
7699 (value_copy, value_primitive_field): Use set_value_parent.
7701 2013-05-06 Tom Tromey <tromey@redhat.com>
7703 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7704 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7706 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7707 * dwarf2read.c (write_constant_as_bytes)
7708 (dwarf2_fetch_constant_bytes): New functions.
7710 2013-05-06 Tom Tromey <tromey@redhat.com>
7712 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7714 (dwarf2_const_value_attr): Update.
7716 2013-05-06 Tom Tromey <tromey@redhat.com>
7718 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7719 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7720 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7723 2013-05-06 Tom Tromey <tromey@redhat.com>
7725 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7728 2013-05-06 Doug Evans <dje@google.com>
7730 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7731 * stabsread.h (process_one_symbol): Update declaration.
7732 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7733 * elfread.c (elf_symfile_relocate_probe): Ditto.
7734 * psymtab.c (relocate_psymtabs): Ditto.
7735 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7736 (objfile_relocate): Ditto.
7737 * objfiles.h (objfile_relocate): Update declaration.
7738 * symfile.c (relative_addr_info_to_section_offsets): Constify
7740 (default_symfile_offsets): Ditto.
7741 (syms_from_objfile_1): Constify offsets parameter.
7742 (syms_from_objfile): Ditto.
7743 (symbol_file_add_with_addrs_or_offsets): Ditto.
7744 (symfile_map_offsets_to_segments): Constify data parameter.
7745 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7746 delta parameters of member relocate.
7747 (struct sym_probe_fns): Constify new_offsets,
7748 delta parameters of member sym_relocate_probe.
7749 (struct sym_fns): Constify section_addr_info parameter of member
7751 (relative_addr_info_to_section_offsets): Update declaration.
7752 (default_symfile_offsets): Ditto.
7753 (syms_from_objfile): Ditto.
7754 (symfile_map_offsets_to_segments): Ditto.
7756 * symfile.c (syms_from_objfile_1): Use correct section count when
7757 objfile->sf == NULL.
7759 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7761 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7763 2013-05-06 Doug Evans <dje@google.com>
7765 * psympriv.h (struct partial_symtab): Augment comment for member
7768 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7770 Reimplement shared library support on ppc-aix...
7771 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7772 * features/library-list-aix.dtd: New file.
7773 * solib-aix.h, solib-aix.c: New file.
7774 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7775 (rs6000_find_toc_address_hook): Delete.
7776 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7777 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7778 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7780 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7781 (vmap_symtab, fixup_breakpoints): Delete.
7782 (rs6000_xfer_shared_libraries): New function.
7783 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7784 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7785 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7786 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7787 (rs6000_xfer_shared_library): New function.
7788 (find_toc_address): Delete.
7789 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7790 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7791 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7792 before creating minimal symbol. Adjust function description
7794 (scan_xcoff_symtab): Replace call to
7795 prim_record_minimal_symbol_and_info by call to
7796 record_minimal_symbol.
7797 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7798 around default_symfile_offsets.
7799 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7800 powerpc-aix targets.
7801 * config/rs6000/nm-rs6000.h: Delete.
7802 * config/powerpc/aix.mh (NAT_FILE): Delete.
7803 (NATDEPFILES): Remove xcoffsolib.o.
7804 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7805 (ALL_TARGET_OBS): Add solib-aix.o.
7806 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7807 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7808 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7809 * xcoffsolib.h, xcoffsolib.c: Delete.
7811 * solib.c (reload_shared_libraries): Remove reference to
7812 SOLIB_CREATE_INFERIOR_HOOK.
7813 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7814 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7815 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7817 * corelow.c (deprecated_core_resize_section_table): Delete.
7818 * exec.c: Remove include of xcoffsolib.h".
7819 (map_vmap, vmap): Delete.
7820 (exec_close_1): Remove references to vmap.
7821 (exec_file_attach): Remove vmap handling code, and reference
7822 to DEPRECATED_IBM6000_TARGET.
7823 (bfdsec_to_vmap): Delete.
7824 (exec_files_info): Remove block of code handling VMAP.
7825 * infcmd.c (post_create_inferior): Remove reference to
7826 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7827 * infrun.c (follow_exec): Remove reference to
7828 SOLIB_CREATE_INFERIOR_HOOK.
7829 * stack.c (print_frame): Remove reference to PC_SOLIB.
7830 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7831 (dsbt_relocate_main_executable): Likewise.
7832 * solib-frv.c (frv_current_sos): Likewise.
7834 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7836 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7837 to target_write_memory and target_read_memory.
7839 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7841 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7842 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7844 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7846 * darwin-nat.c: Replace all "%x" instances in format strings
7847 into "0x%x" throughout.
7849 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7851 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7852 gdb_assert by call to MACH_CHECK_ERROR.
7853 (darwin_attach_pid): Raise an error rather than a failed
7854 assertion when various system calls failed. Report a warning
7855 instead of raising a failed assertion when PREV_NOT is not NULL
7856 after call to mach_port_request_notification.
7857 (darwin_ptrace_me): Raise an error rather than a failed
7858 assertion when read returns nonzero.
7860 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7862 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7864 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7866 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7868 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7870 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7871 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7872 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7873 a stale cleanup. Fix double free of NAME.
7875 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7877 * windows-nat.c (windows_delete_thread): Accept an additional
7878 argument, the thread's exit code, and announce thread death when
7879 print_thread_events is non-zero and we are deleting a thread that
7880 is not the main thread.
7881 (get_windows_debug_event): Pass thread exit code to
7882 windows_delete_thread.
7884 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7886 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7887 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7888 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7889 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7890 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7891 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7892 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7893 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7894 (gdbarch_tdep): New struct.
7895 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7897 (v850e3v5_register_name): New function.
7898 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7899 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7900 code handling the struct return conventions for the RH850 ABI.
7902 (v850_eight_byte_align_p): New function.
7903 (v850_push_call_dummy): Push structs by value, not by reference
7904 for the RH850 ABI. Add support for eight byte alignment.
7905 (v850_dbtrap_breakpoint_from_pc): New function.
7906 (v850_gdbarch_init): Add ABI detection code. Register
7907 v850e3v5_register_name for the v850e3v5 architecture. Set the
7908 number of registers for v850e3v5. Register
7909 v850_dbtrap_breakpoint_from_pc as appropriate.
7910 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7912 2013-05-03 Doug Evans <dje@google.com>
7914 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7915 of bfd_count_sections.
7916 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7917 * symfile.c (default_symfile_offsets): Ditto.
7918 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7919 one entry, not bfd_count_sections entries.
7921 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7923 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7924 `save' and `restore' register groups. Don't include SPL
7925 or SPH in these groups.
7926 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7927 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7928 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7929 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7930 dwarf2_append_unwinders().
7932 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7934 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7935 ignore SIGINT and SIGTRAP in case these internal signals are
7938 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7940 * darwin-nat.c (darwin_read_write_inferior): Change types
7941 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7942 of copy_count to "mach_msg_type_number_t".
7943 (darwin_read_dyld_info): Change type of parameter
7944 rdaddr to "gdb_byte *".
7946 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7948 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7949 of &info->load_map from "char *" to "gdb_byte *".
7951 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7953 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7954 from "char *" to "gdb_byte *".
7955 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7957 2013-04-30 Doug Evans <dje@google.com>
7959 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7960 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7961 DWO stub. If DWO isn't found, just use stub.
7962 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7964 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7965 calling init_cutu_and_read_dies.
7967 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7969 * target-descriptions.c (maint_print_c_tdesc_cmd):
7970 Add case to parse structures as register types and
7973 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7975 * MAINTAINERS (Write After Approval): Add myself to the list.
7977 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7979 * sol-thread.c (rw_common): Change type of parameter "buf"
7981 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7982 rw_common to "gdb_byte *" instead of "char *".
7984 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7986 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7987 of local variable msym to const struct bound_minimal_symbol.
7988 Adjust use accordingly.
7989 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7991 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7993 * i386gnu-nat.c (CREG_OFFSET): New macro.
7994 (creg_offset): New array.
7995 (CREG_ADDR): Use creg_offset instead of reg_offset.
7997 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7999 * mep-tdep.c (mep_write_pc): Delete.
8000 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8001 Add call to set_gdbarch_pc_regnum.
8003 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8005 * common/filestuff.c: Replace #include <dirent.h> by
8006 #include "gdb_dirent.h".
8008 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8010 * common/filestuff.c: Replace #include <sys/stat.h> by
8011 #include "gdb_stat.h".
8013 2013-04-29 Pierre Muller <muller@sourceware.org>
8015 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8016 editCase function rule.
8017 (get_DW_AT_signature_type): Likewise.
8019 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8021 * m32r-tdep.c (m32r_write_pc): Delete.
8022 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8023 Add call to set_gdbarch_pc_regnum.
8025 2013-04-29 Pierre Muller <muller@sourceware.org>
8027 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8029 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8031 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8033 2013-04-28 Yao Qi <yao@codesourcery.com>
8035 * solib-dsbt.c (fetch_loadmap): Re-indent.
8036 (displacement_from_map, enable_break2): Likewise.
8037 (dsbt_relocate_section_addresses): Likewise.
8039 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8043 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8046 * dwarf2read.c (process_full_comp_unit): Always create a static
8049 2013-04-25 Hui Zhu <hui@codesourcery.com>
8051 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8052 to loc->cmd_bytecode.
8054 2013-04-24 Doug Evans <dje@google.com>
8056 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8058 2013-04-22 Keith Seitz <keiths@redhat.com>
8060 * tracepoint.c (trace_save): Call the writer's start method.
8062 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8065 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8068 2013-04-23 Tom Tromey <tromey@redhat.com>
8070 * common/filestuff.c: Check USE_WIN32API before including
8072 (HAVE_F_GETFD): New define.
8073 (mark_cloexec): Check HAVE_F_GETFD.
8074 (gdb_open_cloexec): Change 'mode' to unsigned long.
8075 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8076 (gdb_pipe_cloexec): Check HAVE_PIPE.
8077 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8080 2013-04-23 Hui Zhu <hui@codesourcery.com>
8083 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8085 2013-04-23 Hui Zhu <hui@codesourcery.com>
8088 * breakpoint.c (dprintf_print_recreate): New.
8089 (save_breakpoints): Let it not save dprintf commands.
8090 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8092 2013-04-22 Tom Tromey <tromey@redhat.com>
8095 * Makefile.in (SFILES): Add filestuff.c
8096 (COMMON_OBS): Add filestuff.o.
8097 (filestuff.o): New target.
8098 * auto-load.c (auto_load_objfile_script_1): Use
8100 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8101 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8102 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8103 * common/agent.c (gdb_connect_sync_socket): Use
8105 * common/filestuff.c: New file.
8106 * common/filestuff.h: New file.
8107 * common/linux-osdata.c (linux_common_core_of_thread)
8108 (command_from_pid, commandline_from_pid, print_source_lines)
8109 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8110 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8112 * common/linux-procfs.c (linux_proc_get_int)
8113 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8114 * config.in, configure: Rebuild.
8115 * configure.ac: Don't check for sys/socket.h. Check for
8117 * corelow.c (core_open): Use gdb_open_cloexec.
8118 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8119 * fork-child.c (fork_inferior): Call close_most_fds.
8120 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8121 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8122 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8123 Use gdb_fopen_cloexec.
8124 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8126 (linux_async_pipe): Use gdb_pipe_cloexec.
8127 * remote-fileio.c (remote_fileio_func_open): Use
8129 * remote.c (remote_file_put, remote_file_get): Use
8131 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8133 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8134 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8135 * solib.c (solib_find): Use gdb_open_cloexec.
8136 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8137 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8138 (tfile_open): Use gdb_open_cloexec.
8139 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8140 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8141 * xml-support.c (xml_fetch_content_from_file): Use
8143 * main.c (captured_main): Call notice_open_fds.
8145 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8147 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8148 'char *' to 'gdb_byte *'.
8149 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8152 2013-04-22 Yao Qi <yao@codesourcery.com>
8154 * infrun.c: Fix typo in comment.
8156 2013-04-22 Andrew Haley <aph@redhat.com>
8158 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8161 2013-04-20 Yao Qi <yao@codesourcery.com>
8163 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8164 'char *' to 'gdb_byte *'. Cast the return value of
8165 'bt_ctf_get_char_array' to 'gdb_byte *'.
8167 2013-04-19 Pedro Alves <palves@redhat.com>
8169 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8171 * configure: Regenerate.
8173 2013-04-19 Pedro Alves <palves@redhat.com>
8175 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8178 2013-04-19 Pedro Alves <palves@redhat.com>
8180 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8181 Change type of 'myaddr' parameter to gdb_byte pointer.
8182 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8183 to 'long long' pointer instead of to 'unsigned long long'.
8184 (monitor_write_memory_block, monitor_read_memory_single)
8185 (monitor_read_memory): Change type of 'myaddr' parameter to
8188 2013-04-19 Pedro Alves <palves@redhat.com>
8190 * record.c (validate_history_size): Make parameter 'setting'
8193 2013-04-19 Pedro Alves <palves@redhat.com>
8195 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8198 2013-04-19 Pedro Alves <palves@redhat.com>
8200 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8203 2013-04-19 Pedro Alves <palves@redhat.com>
8205 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8206 * ada-tasks.c (read_fat_string_value): Likewise.
8208 2013-04-19 Pedro Alves <palves@redhat.com>
8210 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8211 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8212 'offset', and adjust.
8214 2013-04-19 Pedro Alves <palves@redhat.com>
8216 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8217 (read_index_from_section): Add cast to 'char *'.
8219 2013-04-19 Pedro Alves <palves@redhat.com>
8221 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8223 2013-04-19 Pedro Alves <palves@redhat.com>
8225 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8227 2013-04-19 Pedro Alves <palves@redhat.com>
8229 * record-full.c (record_full_get_bookmark): Change local 'ret'
8230 type to char * and add cast to gdb_byte *.
8231 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8233 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8235 2013-04-19 Pedro Alves <palves@redhat.com>
8237 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8238 * python/py-prettyprint.c (print_string_repr): Change type of
8239 'output' local to char *. Add cast to gdb_byte * in
8240 LA_PRINT_STRING call.
8241 (print_children): Change type of 'output' local to char *.
8242 * python/py-value.c (valpy_string): Add cast to const char * in
8243 PyUnicode_Decode call.
8245 2013-04-19 Pedro Alves <palves@redhat.com>
8247 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8248 and change its type to 'const char *'. Adjust.
8249 (mips_send_packet): Add cast to 'char *', and remove cast to
8251 (mips_receive_packet): Remove cast to 'unsigned char *'.
8252 (mips_load_srec): Use bfd_byte.
8253 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8254 (pmon_checkset): Make 'value' parameter unsigned.
8256 2013-04-19 Pedro Alves <palves@redhat.com>
8258 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8260 2013-04-19 Pedro Alves <palves@redhat.com>
8262 * remote.c (remote_write_bytes_aux, compare_sections_command)
8264 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8265 (remote_hostio_readlink, remote_bfd_iovec_pread)
8266 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8267 binary buffer, and char when buffer is used as string.
8268 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8269 (trace_save, tfile_open, traceframe_walk_blocks)
8270 (tfile_fetch_registers): Likewise.
8272 2013-04-19 Pedro Alves <palves@redhat.com>
8274 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8275 buffer and size_t size. Adjust.
8276 * ser-base.h (ser_base_write): Adjust.
8277 * ser-go32.c (cnts): Change type to size_t.
8278 (dos_write): Change prototype -- take 'void *'
8279 buffer and size_t size. Adjust.
8280 (dos_info): Print elements of 'cnts' as unsigned long.
8281 * serial.c (serial_write): Likewise.
8282 * serial.h (serial_write): Adjust.
8283 (struct serial_ops) <write>: Change prototype -- take 'void *'
8284 buffer and size_t size. Adjust.
8286 2013-04-19 Pedro Alves <palves@redhat.com>
8288 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8290 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8292 2013-04-19 Pedro Alves <palves@redhat.com>
8294 * alpha-tdep.c (alpha_extract_return_value): Use
8295 regcache_cooked_read_unsigned to read 'v0'.
8297 2013-04-19 Pedro Alves <palves@redhat.com>
8299 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8300 parameters 'at', 'as' and 'offset' to uint32_t.
8302 2013-04-19 Pedro Alves <palves@redhat.com>
8304 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8305 'is64' to signed 'int'.
8307 2013-04-19 Pedro Alves <palves@redhat.com>
8309 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8312 2013-04-19 Pedro Alves <palves@redhat.com>
8314 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8315 'insnbuf' buffer type to unsigned int[].
8317 2013-04-19 Pedro Alves <palves@redhat.com>
8319 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8321 2013-04-19 Pedro Alves <palves@redhat.com>
8323 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8326 2013-04-19 Pedro Alves <palves@redhat.com>
8328 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8329 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8331 * mips-tdep.c (heuristic_fence_post): Change type to int.
8332 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8334 2013-04-19 Pedro Alves <palves@redhat.com>
8336 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8337 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8338 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8340 2013-04-19 Pedro Alves <palves@redhat.com>
8342 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8343 it to get a string view of the byte buffer.
8344 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8345 type to gdb_byte *. Adjust.
8346 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8347 Change local to char *.
8348 * solib-darwin.c (find_program_interpreter): Change return type to
8350 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8351 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8352 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8353 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8354 * solib-svr4.c (find_program_interpreter): Change return type to
8356 (enable_break): Change local 'interp_name' to char *.
8357 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8358 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8359 (spu_pseudo_register_write_spu): Use char for string buffer.
8361 (info_spu_event_command, info_spu_signal_command): Add casts to
8364 2013-04-19 Pedro Alves <palves@redhat.com>
8366 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8368 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8369 * ada-lang.c (ada_value_assign): Use gdb_byte.
8370 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8371 (alphanbsd_sigtramp_offset): Use gdb_byte.
8372 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8373 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8374 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8375 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8376 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8377 * arm-tdep.c (arm_stub_unwind_sniffer)
8378 (arm_displaced_init_closure): Use gdb_byte.
8379 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8380 (arm_default_thumb_le_breakpoint)
8381 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8382 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8383 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8384 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8385 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8386 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8387 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8388 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8389 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8390 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8391 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8392 (cris_store_return_value, cris_extract_return_value): Use
8394 (constraint): Change type of parameter to char * from signed
8395 char*. Use gdb_byte.
8396 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8397 of local buffer to gdb_byte *.
8398 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8399 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8400 (add_address_entry): Change type of local buffer to gdb_byte[].
8401 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8402 (frv_push_dummy_call): Use gdb_byte.
8403 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8404 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8405 (hppa_hpux_supply_save_state): Use gdb_byte.
8406 * hppa-tdep.c (hppa32_push_dummy_call)
8407 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8408 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8409 (slotN_contents, replace_slotN_contents): Change type of parameter
8411 (fetch_instruction, ia64_pseudo_register_write)
8412 (ia64_register_to_value, ia64_value_to_register)
8413 (ia64_extract_return_value, ia64_store_return_value)
8414 (ia64_push_dummy_call): Use gdb_byte.
8415 * m32c-tdep.c (m32c_return_value): Remove cast.
8416 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8417 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8419 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8420 * mn10300-tdep.c (mn10300_store_return_value)
8421 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8423 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8424 (moxie_process_record): Remove casts.
8425 * ppc-ravenscar-thread.c (supply_register_at_address)
8426 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8427 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8428 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8429 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8430 * remote.c (compare_sections_command): Use gdb_byte.
8431 * score-tdep.c (score7_free_memblock): Change type of parameter to
8433 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8434 gdb_byte *. Use gdb_byte.
8435 (sh_push_dummy_call_fpu): Use gdb_byte.
8436 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8437 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8438 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8439 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8440 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8441 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8442 (sh64_store_return_value, sh64_register_convert_to_virtual):
8443 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8444 (sh64_pseudo_register_write): Use gdb_byte.
8445 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8446 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8448 (irix_current_sos): Use gdb_byte.
8449 * solib-som.c (som_current_sos): Use gdb_byte.
8450 * sparc-ravenscar-thread.c (supply_register_at_address)
8451 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8452 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8453 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8454 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8456 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8458 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8459 * xstormy16-tdep.c (xstormy16_extract_return_value)
8460 (xstormy16_store_return_value): Change parameter type to
8461 'gdb_byte *'. Adjust.
8462 (xstormy16_push_dummy_call): Use gdb_byte.
8463 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8464 (call0_analyze_prologue, execute_code): Use gdb_byte.
8466 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8467 Pedro Alves <palves@redhat.com>
8469 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8472 2013-04-17 Doug Evans <dje@google.com>
8474 * dwarf2read.c (struct signatured_type): New member type.
8475 (struct attribute): Replace member signatured_type with signature.
8476 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8477 (read_call_site_scope): Call follow_die_ref instead of
8478 follow_die_ref_or_sig.
8479 (read_structure_type): Rewrite handling of signatured types.
8480 (read_enumeration_type): Ditto.
8481 (read_attribute_value): Update.
8482 (build_error_marker_type): New function.
8483 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8484 Don't call error for bad types, just build an error marker type.
8485 (dump_die_shallow): Update.
8486 (follow_die_sig_1): Renamed from follow_die_sig.
8487 Don't call error for bad types, instead return NULL.
8488 (follow_die_sig): New function.
8489 (get_signatured_type, get_DW_AT_signature_type): New functions.
8491 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8493 * aarch64-tdep.c (aarch64_write_pc): Removed.
8494 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8497 2013-04-17 Yao Qi <yao@codesourcery.com>
8499 * top.c (print_gdb_configuration): Print configure-time
8500 parameter on using libbabeltrace or not.
8502 2013-04-16 Pedro Alves <palves@redhat.com>
8504 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8506 2013-04-16 Pedro Alves <palves@redhat.com>
8508 * common/glibc_thread_db.h: Update from upstream glibc
8509 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8511 2013-04-16 Pedro Alves <palves@redhat.com>
8513 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8514 * common/glibc_thread_db.h: ... this new file ...
8515 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8517 2013-04-16 Will Newton <will.newton@gmail.com>
8518 Pedro Alves <palves@redhat.com>
8522 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8523 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8526 2013-04-16 Pedro Alves <palves@redhat.com>
8527 Eli Zaretskii <eliz@gnu.org>
8529 * NEWS: Mention "set foo unlimited".
8531 2013-04-15 Doug Evans <dje@google.com>
8533 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8534 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8535 (create_dwo_cu_reader): Renamed from
8536 create_dwo_debug_info_hash_table_reader.
8537 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8538 Remove support for multiple CUs in a DWO file.
8539 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8541 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8543 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8544 (create_dwo_in_dwp): Ditto.
8546 2013-04-15 Tom Tromey <tromey@redhat.com>
8548 * NEWS: Move recent entries into "since 7.6" section.
8550 2013-04-15 Tom Tromey <tromey@redhat.com>
8554 * break-catch-throw.c (struct exception_catchpoint)
8555 <exception_rx, pattern>: New fields.
8556 (fetch_probe_arguments, dtor_exception_catchpoint)
8557 (check_status_exception_catchpoint)
8558 (print_one_detail_exception_catchpoint): New functions.
8559 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8560 Compile regular expression if needed.
8561 (extract_exception_regexp): New function.
8562 (catch_exception_command_1): Use extract_exception_regexp.
8563 (compute_exception): Use fetch_probe_arguments.
8564 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8565 and check_status fields.
8566 * cp-abi.c (cplus_typename_from_type_info): New function.
8567 * cp-abi.h (cplus_typename_from_type_info): Declare.
8568 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8569 * gdb_regex.h (compile_rx_or_error): Declare.
8570 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8572 (init_gnuv3_ops): Set get_type_from_type_info field.
8573 * probe.c (compile_rx_or_error): Move...
8574 * utils.c (compile_rx_or_error): ... here.
8576 2013-04-15 Tom Tromey <tromey@redhat.com>
8580 * break-catch-throw.c (compute_exception): New function.
8581 (exception_funcs): New global.
8582 (_initialize_break_catch_throw): Create $_exception.
8583 * cp-abi.c (cplus_type_from_type_info): New function.
8584 * cp-abi.h (cplus_type_from_type_info): Declare.
8585 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8586 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8587 (gnuv3_get_type_from_type_info): New functions.
8588 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8590 2013-04-15 Tom Tromey <tromey@redhat.com>
8592 * break-catch-throw.c (struct exception_names): New.
8593 (exception_functions): Change type.
8594 (re_set_exception_catchpoint): Look for SDT probes.
8596 2013-04-15 Tom Tromey <tromey@redhat.com>
8599 * break-catch-throw.c (exception_functions): New global.
8600 (gnu_v3_exception_catchpoint_ops): Move earlier.
8601 (struct exception_catchpoint): New.
8602 (classify_exception_breakpoint): Rewrite.
8603 (re_set_exception_catchpoint): New function.
8604 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8605 Allocate a struct exception_catchpoint.
8606 (catch_exception_command_1): Update.
8607 (initialize_throw_catchpoint_ops): Set 're_set' method.
8609 2013-04-15 Tom Tromey <tromey@redhat.com>
8611 * Makefile.in (SFILES): Add break-catch-throw.c
8612 (COMMON_OBS): Add break-catch-throw.o.
8613 * break-catch-throw.c: New file.
8614 * breakpoint.c: Move exception-catching code to new file.
8615 (ep_parse_optional_if_clause): No longer static.
8616 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8618 2013-04-15 Tom Tromey <tromey@redhat.com>
8622 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8623 * c-exp.y (TYPEID): New token.
8624 (exp): Add new TYPEID productions.
8625 (ident_tokens): Add "typeid".
8626 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8627 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8628 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8629 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8630 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8632 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8633 (build_std_type_info_type, gnuv3_get_typeid_type)
8634 (gnuv3_get_typeid): New functions.
8635 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8636 new fields on ABI object.
8637 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8638 * std-operator.def (OP_TYPEID): New.
8640 2013-04-15 Tom Tromey <tromey@redhat.com>
8642 * elfread.c (elf_symtab_read): Install versioned symbol under
8643 unversioned name as well.
8645 2013-04-15 Tom Tromey <tromey@redhat.com>
8648 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8649 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8650 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8651 (gdb_demangle): New function.
8652 * cp-support.h (gdb_demangle): Declare.
8653 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8654 (dwarf2_name): Use gdb_demangle.
8655 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8656 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8658 (gnuv3_print_method_ptr): Use gdb_demangle.
8659 * jv-lang.c (java_demangle): Use gdb_demangle.
8660 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8661 * language.c (unk_lang_demangle): Use gdb_demangle.
8662 * symtab.c (symbol_find_demangled_name)
8663 (demangle_for_lookup): Use gdb_demangle.
8665 2013-04-15 Tom Tromey <tromey@redhat.com>
8669 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8671 (classify_exception_breakpoint): New function.
8672 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8673 (print_mention_exception_catchpoint)
8674 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8675 (catch_exception_command_1): Handle "rethrow" catchpoint.
8676 (catch_rethrow_command): New function.
8677 (_initialize_breakpoint): Add "catch rethrow" command.
8679 2013-04-15 Pierre Muller <muller@sourceware.org>
8681 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8682 set_gdbarch_write_pc as deprecated anymore.
8684 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8686 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8689 2013-04-13 Yao Qi <yao@codesourcery.com>
8691 * ctf.c (_initialize_ctf): Include "completer.h".
8692 Call add_target_with_completer instead of add_target.
8694 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8696 Fix GDB regression related to PR binutils/14813.
8697 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8698 * minidebug.c (lzma_close): Add return value comment.
8699 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8700 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8701 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8703 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8705 * config.in: Regenerate.
8707 2013-04-12 Tom Tromey <tromey@redhat.com>
8709 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8711 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8712 (struct die_reader_specs) <buffer>: Likewise.
8713 (die_reader_func_ftype): Make 'info_ptr' const.
8714 (struct line_header) <include_dirs, statement_program_start,
8715 statement_program_end>: Now const.
8716 (struct file_entry) <name>: Likewise.
8717 (struct partial_die_info) <sibling>: Likewise.
8718 (struct dwarf_block) <data>: Likewise.
8719 (dwarf2_read_section): Remove cast.
8720 (dwarf2_get_section_info): Make 'bufp' const.
8721 (read_index_from_section): Constify.
8722 (dw2_get_file_names_reader): Make 'info_ptr' const.
8723 (dw2_get_primary_filename_reader): Likewise.
8724 (read_comp_unit_head): Make 'info_ptr' and return type const.
8725 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8727 (read_abbrev_offset): Constify.
8728 (dwarf2_create_include_psymtab): Make 'name' const.
8729 (create_debug_types_hash_table): Update.
8730 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8731 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8733 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8734 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8735 (read_comp_units_from_section): Constify.
8736 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8737 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8739 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8740 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8741 (create_dwp_hash_table, dwarf2_ranges_read)
8742 (dwarf2_record_block_ranges): Constify.
8743 (read_die_and_children, read_die_and_siblings_1)
8744 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8746 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8747 (abbrev_table_read_table): Constify.
8748 (load_partial_dies): Make 'info_ptr' const.
8749 (read_partial_die, read_attribute_value, read_attribute): Make
8750 'info_ptr' and return type const.
8751 (read_address, read_initial_length)
8752 (read_checked_initial_length_and_offset, read_offset)
8753 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8755 (read_direct_string): Make 'buf' and return type const.
8756 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8757 (read_indirect_string): Make return type const.
8758 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8759 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8761 (read_str_index): Make return type const.
8762 (add_include_dir): Make 'include_dir' const.
8763 (add_file_name): Make 'name' const.
8764 (dwarf_decode_line_header): Constify.
8765 (psymtab_include_file_name): Make return type const.
8766 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8767 (dwarf2_start_subfile): Make 'filename' const.
8768 (dwarf2_const_value_attr): Make 'bytes' const.
8769 (read_signatured_type_reader): Make 'info_ptr' const.
8770 (decode_locdesc): Constify.
8771 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8773 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8774 'mac_end', and return type const.
8775 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8776 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8778 (per_cu_header_read_in): Constify.
8779 * symfile.h (dwarf2_get_section_info): Update.
8781 2013-04-12 Tom Tromey <tromey@redhat.com>
8783 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8785 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8787 * NEWS: Mention "show configuration", --configuration.
8788 * top.c (print_gdb_configuration): New function, displays the
8789 details about GDB configure-time parameters.
8790 (print_gdb_version): Mention "show configuration".
8791 * cli/cli-cmds.c (show_configuration): New function.
8792 (_initialize_cli_cmds): Add the "show configuration" command.
8793 * main.c (captured_main) <print_configuration>: New static var.
8794 <long_options>: Use it.
8795 If --configuration was given, call print_gdb_configuration.
8797 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8798 Pedro Alves <palves@redhat.com>
8800 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8801 (generated_files): Add gcore.
8802 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8803 HAVE_NATIVE_GCORE_HOST.
8805 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8806 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8807 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8808 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8809 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8810 Add HAVE_NATIVE_GCORE_HOST.
8811 * configure: Regenerate.
8812 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8813 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8814 AC_CONFIG_FILES for gcore.
8815 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8817 * gdb_gcore.sh: Rename to ...
8818 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8819 and GCORE_TRANSFORM_NAME substitutions.
8821 Fix parsing tabs in ${gdb_target_obs}.
8822 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8824 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8826 * remote.c (unpush_and_perror): Add output message final dot.
8828 2013-04-11 Yao Qi <yao@codesourcery.com>
8830 * tracepoint.c (tfile_interp_line): Fit parameters line and
8833 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8835 * solib.c (solib_map_sections): Remove code overwriting
8836 SO->SO_NAME with the bfd's filename.
8838 2013-04-10 Pedro Alves <palves@redhat.com>
8840 * cli/cli-decode.c (integer_unlimited_completer): New function.
8841 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8842 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8844 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8845 (is_unlimited_literal): New function.
8846 (do_set_command): Handle literal "unlimited" arguments.
8847 * frame.c (_initialize_frame) <set backtrace limit>: Document
8849 * printcmd.c (_initialize_printcmd) <set print
8850 max-symbolic-offset>: Add help text.
8851 * record-full.c (_initialize_record_full) <set record full
8852 insn-number-max>: Likewise.
8853 * record.c (_initialize_record) <set record
8854 instruction-history-size, set record function-call-history-size>:
8856 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8858 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8860 * source.c (_initialize_source) <set listsize>: Add help text.
8861 * utils.c (initialize_utils) <set height, set width>: Likewise.
8862 <set pagination>: Mention "set height unlimited".
8863 * valprint.c (_initialize_valprint) <set print elements, set print
8864 repeats>: Document "unlimited".
8866 2013-04-10 Pedro Alves <palves@redhat.com>
8868 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8869 instead of disconnect_tracing.
8870 * infcmd.c (detach_command, disconnect_command): Call
8871 query_if_trace_running. Adjust.
8872 * top.c: Include "tracepoint.h".
8873 (quit_target): Delete. Contents moved ...
8874 (quit_force): ... here. Wrap each stage of teardown in
8875 TRY_CATCH. Call disconnect_tracing before detaching.
8877 2013-04-10 Hui Zhu <hui@codesourcery.com>
8878 Yao Qi <yao@codesourcery.com>
8880 * configure.ac: Check libbabeltrace is installed.
8881 * config.in: Regenerate.
8882 * configure: Regenerate.
8883 * Makefile.in (LIBBABELTRACE): New.
8884 (CLIBS): Add LIBBABELTRACE.
8885 * ctf.c: Include "exec.h".
8886 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8887 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8888 (ctf_save_metadata_header): Define new type aliases in
8890 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8891 in metadata. Start a new faked packet for trace status.
8892 (ctf_write_status): Write trace status to CTF.
8893 (ctf_write_uploaded_tsv): Write TSV to CTF.
8894 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8895 (ctf_write_definition_end): End the faked packet.
8897 (ctx, ctf_iter, trace_dirname): New.
8898 (start_pos): New variable.
8899 (ctf_destroy, ctf_open_dir, ctf_open): New.
8900 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8902 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8903 (ctf_fetch_registers, ctf_xfer_partial): New.
8904 (ctf_get_trace_state_variable_value): New.
8905 (ctf_get_tpnum_from_frame_event): New.
8906 (ctf_get_traceframe_address): New.
8907 (ctf_trace_find, ctf_has_stack): New.
8908 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8909 (ctf_get_trace_status, ctf_read_status): New.
8910 (_initialize_ctf): New.
8911 * tracepoint.c (get_tracepoint_number): New
8912 (get_uploaded_tsv): Remove 'static'.
8913 (struct traceframe_info, trace_regblock_size): Move it to ...
8914 * tracepoint.h: ... here.
8915 (get_tracepoint_number): Declare it.
8916 (get_uploaded_tsv): Declare it.
8918 * NEWS: Mention new configure option.
8920 2013-04-10 Pedro Alves <palves@redhat.com>
8921 Hui Zhu <hui@codesourcery.com>
8923 * breakpoint.c (dprintf_re_set): New.
8924 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8927 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8929 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8930 Remove solib-svr4.o from the list.
8932 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8934 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8935 Use gdb_assert_not_reached instead of invalid boolean expression.
8937 2013-04-09 Pedro Alves <palves@redhat.com>
8939 * remote.c (unpush_and_perror): New function.
8940 (readchar, remote_serial_write): Use it.
8942 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8944 * NEWS: Mention new btrace RSP packets.
8946 2013-04-08 Tom Tromey <tromey@redhat.com>
8948 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8951 2013-04-08 Tom Tromey <tromey@redhat.com>
8953 * maint.c (print_bfd_section_info): Print the section index.
8954 * symmisc.c (dump_msymbols): Print the section index.
8956 2013-04-08 Tom Tromey <tromey@redhat.com>
8959 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8960 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8961 * breakpoint.c (resolve_sal_pc): Update.
8962 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8963 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8964 (minsym_lookup_iterator_cb): Use it.
8965 (default_read_var_value): Update.
8966 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8968 * infcmd.c (jump_command): Update.
8969 * linespec.c (minsym_found): Update.
8970 * maint.c (maintenance_translate_address): Update.
8971 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8972 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8973 * parse.c (write_exp_msymbol): Update.
8974 * printcmd.c (address_info): Update.
8975 * psymtab.c (find_pc_sect_psymbol): Update.
8976 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8978 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8979 Don't initialize SYMBOL_OBJ_SECTION.
8980 * spu-tdep.c (spu_catch_start): Update.
8981 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8982 * symmisc.c (dump_msymbols, print_symbol): Update.
8983 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8984 how fallback section is computed.
8985 (fixup_symbol_section): Update.
8986 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8988 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8989 Initialize SYMBOL_SECTION.
8990 * symtab.h (struct general_symbol_info) <section>: Update comment.
8991 <obj_section>: Remove.
8992 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8993 (SYMBOL_OBJFILE): New macro.
8995 2013-04-08 Tom Tromey <tromey@redhat.com>
8997 * coffread.c (record_minimal_symbol): Update.
8998 * dbxread.c (record_minimal_symbol): Update.
8999 * elfread.c (record_minimal_symbol): Update.
9000 * machoread.c (macho_symtab_add_minsym): Update.
9001 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9003 * minsyms.c (prim_record_minimal_symbol): Update.
9004 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9006 (prim_record_minimal_symbol_and_info): Likewise.
9007 * minsyms.h (prim_record_minimal_symbol_full)
9008 (prim_record_minimal_symbol_and_info): Update.
9009 * symtab.c (allocate_symbol, initialize_symbol)
9010 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9011 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9014 2013-04-08 Tom Tromey <tromey@redhat.com>
9017 * solib-som.c (som_solib_section_offsets): Use BFD section
9018 indices. Set offsets for all sections.
9019 * somread.c (som_symtab_read): Compute BFD section for
9020 symbol. Use prim_record_minimal_symbol_and_info.
9021 (som_symfile_read): Fix comment.
9022 (struct find_section_offset_arg): New.
9023 (find_section_offset, set_section_index): New functions.
9024 (som_symfile_offsets): Use set_section_index to compute
9027 2013-04-08 Tom Tromey <tromey@redhat.com>
9029 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9030 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9031 gdb_bfd_section_index.
9032 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9034 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9036 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9038 * objfiles.c (add_to_objfile_sections_full): New function.
9039 (add_to_objfile_sections): Use it.
9040 (build_section_table): Rewrite.
9041 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9042 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9043 (struct objfile) <sections>: Update comment.
9044 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9046 (ALL_OBJSECTIONS): Use it.
9047 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9048 * solib-frv.c (frv_relocate_main_executable): Update.
9049 * solib-target.c (solib_target_relocate_section_addresses):
9050 Use gdb_bfd_section_index.
9051 * symfile.c (build_section_addr_info_from_section_table):
9052 Use gdb_bfd_section_index.
9053 (build_section_addr_info_from_bfd, place_section): Likewise.
9054 * symtab.c (fixup_section): Update.
9055 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9057 2013-04-08 Tom Tromey <tromey@redhat.com>
9059 * minsyms.h (struct bound_minimal_symbol): New.
9060 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9061 Remove objfile argument.
9062 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9063 Return bound_minimal_symbol.
9064 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9065 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9066 Return bound_minimal_symbol.
9067 (in_gnu_ifunc_stub): Update.
9068 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9069 Remove 'objfile_p' argument.
9070 (lookup_solib_trampoline_symbol_by_pc): Update.
9071 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9072 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9073 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9074 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9075 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9076 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9077 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9078 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9079 stack.c, symtab.c, tui/tui-disasm.c: Update.
9081 2013-04-08 Tom Tromey <tromey@redhat.com>
9083 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9084 Use symbol's obstack, not an objfile.
9085 * coffread.c (process_coff_symbol): Update.
9086 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9087 * jv-lang.c (add_class_symbol): Update.
9088 * mdebugread.c (new_symbol): Update.
9089 * minsyms.c (prim_record_minimal_symbol_full)
9090 (terminate_minimal_symbol_table): Update.
9091 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9092 * stabsread.c (define_symbol, read_enum_type): Update.
9093 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9094 Handle Ada specially.
9095 (symbol_set_language): Add 'obstack' argument.
9096 (symbol_set_names): Update.
9097 (symbol_natural_name, symbol_demangled_name): Always use
9099 * symtab.h (struct general_symbol_info)
9100 <language_specific::obstack>: New field.
9101 <ada_mangled>: New field.
9102 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9103 (symbol_set_language): Update.
9105 2013-04-08 Tom Tromey <tromey@redhat.com>
9107 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9108 Take an obstack, not an objfile.
9109 (symbol_set_names): Update.
9110 * symtab.h (symbol_set_demangled_name): Update.
9112 2013-04-08 Tom Tromey <tromey@redhat.com>
9114 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9116 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9117 (read_func_scope): Call allocate_template_symbol.
9118 (new_symbol_full): Call allocate_symbol.
9119 * jit.c (finalize_symtab): Call allocate_symbol.
9120 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9121 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9122 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9123 (common_block_end): Call allocate_symbol.
9124 * symtab.c (allocate_symbol, initialize_symbol)
9125 (allocate_template_symbol): New functions.
9126 * symtab.c (allocate_symbol, initialize_symbol)
9127 (allocate_template_symbol): Declare.
9128 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9130 2013-04-08 Pedro Alves <palves@redhat.com>
9131 Keith Seitz <keiths@redhat.com>
9133 * breakpoint.c (create_breakpoint): Rename
9134 "parse_condition_and_thread" parameter to "parse_arg". Update
9135 describing comment. If !PARSE_ARG, then error out if ARG is not
9136 the empty string after extracting the location.
9137 * breakpoint.h (create_breakpoint): Rename
9138 "parse_condition_and_thread" parameter to "parse_arg".
9140 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9142 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9144 2013-04-07 Yao Qi <yao@codesourcery.com>
9146 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9147 and 'addr2' to CORE_ADDR.
9148 * target.c (update_current_target): Update.
9149 * target.h (struct target_ops) <to_trace_find>: Change parameter
9151 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9152 'addr2' to CORE_ADDR.
9153 (tfile_trace_find): Likewise.
9154 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9155 Change local variable 'addr' to type CORE_ADDR.
9156 * tracepoint.h (tfind_1): Update declaration.
9158 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9160 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9161 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9164 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9166 * main.h (windows_get_absolute_argv0): ...to here.
9168 2013-04-05 Doug Evans <dje@google.com>
9170 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9171 (read_cutu_die_from_dwo): Add comments.
9172 (read_structure_type): Update comment.
9173 (read_enumeration_type, read_namespace_type): Update comment.
9174 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9176 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9178 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9179 * Makefile.in (gdb.z): Remove.
9180 (install-only): Remove $(man1dir) and gdb.1 installation.
9183 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9185 Fix compatibility with Linux kernel 3.8.3.
9186 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9187 to more inner block. Remove parsing of NUMBER from outer block.
9188 Parse NUMBER only if KEYWORD has been identified.
9190 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9192 Fix variable name shadowing.
9193 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9194 filename to mapsfilename and update its uses.
9196 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9198 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9199 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9200 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9201 details of the problem.
9203 2013-04-04 Pedro Alves <palves@redhat.com>
9204 Hui Zhu <hui@codesourcery.com>
9206 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9207 tracepoint, reset its STEP_COUNT and call validate_actionline.
9209 2013-04-03 Doug Evans <dje@google.com>
9211 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9212 read_die_and_siblings.
9213 (read_die_and_siblings): New function.
9214 (read_cutu_die_from_dwo): Dump die if requested.
9215 (read_die_and_children): Call read_full_die_1 and
9216 read_die_and_siblings_1.
9217 (read_full_die): Dump die if requested.
9219 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9221 * dwarf2read.c (struct dwo_file): New member comp_dir.
9222 Rename member name to dwo_name. All uses updated.
9223 (hash_dwo_file): Include comp_dir in computation.
9224 (eq_dwo_file): Ditto.
9225 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9226 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9228 * psymtab.c (read_psymtabs_with_fullname): Don't call
9229 psymtab_to_fullname if the basenames are different.
9231 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9233 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9234 New entry about "fullname" presence.
9236 2013-04-03 Pedro Alves <palves@redhat.com>
9238 * NEWS: Mention x86_64/Cygwin as new native configuration.
9240 2013-04-02 Doug Evans <dje@google.com>
9242 * dwarf2read.c (read_structure_type): Fix typo in comment.
9244 2013-04-02 Pedro Alves <palves@redhat.com>
9246 * NEWS: Mention "set/show debug aarch64", "set/show debug
9247 coff-pe-read" and "set/show debug mach-o".
9249 2013-04-02 Pedro Alves <palves@redhat.com>
9251 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9253 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9255 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9256 gdb_string.h is now in common/.
9258 2013-04-02 Pedro Alves <palves@redhat.com>
9260 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9261 under "New options".
9263 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9267 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9269 2013-04-02 Pedro Alves <palves@redhat.com>
9273 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9274 (remote_serial_write): New function.
9275 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9277 2013-04-01 Jiong Wang <jiwang@tilera.com>
9279 * NEWS: Mention TILE-Gx in "New native configurations" and
9280 "New targets" sections.
9282 2013-04-01 Doug Evans <dje@google.com>
9284 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9285 (process_enumeration_scope): Simplify.
9287 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9289 (struct signatured_type): ... to here.
9290 (sig_type_ptr): New typedef.
9291 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9292 out of union 't'. All uses updated.
9293 (dw2_get_file_names_reader): Assert not called for a type unit.
9294 (dw2_get_file_names): Assert not called for a type unit or type
9296 (build_type_psymtabs_reader): Assert called for a type unit.
9297 (build_type_psymtab_dependencies): Assert called for a type unit group.
9299 * dwarf2read.c (free_dwo_file): Add comment.
9300 (dwarf2_per_objfile_free): Unref dwp bfd.
9302 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9304 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9305 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9306 (read_pe_exported_syms): Remove unused 'exportix'.
9307 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9308 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9309 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9311 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9313 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9314 (print_it_watchpoint): Remove unused 'bl'.
9315 (say_where): Remove unused 'uiout'.
9316 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9317 (bkpt_breakpoint_hit): Remove unused 'b'.
9318 (internal_bkpt_print_it): Remove unused 'uiout'.
9319 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9321 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9324 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9326 2013-03-29 Doug Evans <dje@google.com>
9328 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9329 Delete arg is_dwp. All callers updated.
9330 (open_dwp_file): New function.
9331 (open_and_init_dwp_file): Call it.
9332 (get_dwp_file): New function.
9333 (lookup_dwo_cutu): Call it.
9335 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9336 unnecessary, cleanup.
9338 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9340 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9341 (lookup_dwo_unit): New function.
9342 (init_cutu_and_read_dies): Move DWO handling to new functions.
9344 * dwarf2read.c (struct signatured_type): Tweak comment.
9345 (struct dwo_unit): Tweak comment.
9346 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9347 (create_dwo_debug_info_hash_table): Tweak comment.
9348 (dwarf2_per_cu_offset_and_type): Tweak comment.
9350 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9351 missing .debug_types section.
9353 2013-03-29 Yao Qi <yao@codesourcery.com>
9355 * corelow.c: Include "completer.h".
9356 (_initialize_corelow): Call add_target_with_completer with
9357 argument 'filename_completer'.
9358 * tracepoint.c: Likewise.
9359 * exec.c (_initialize_exec): Likewise.
9360 * target.c (add_target): Rename to ...
9361 (add_target_with_completer): ... this. Call set_cmd_completer
9362 if parameter completer is not NULL.
9364 * target.h: Include "command.h".
9365 (add_target_with_completer): Declare it.
9367 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9369 * coffread.c (is_import_fixup_symbol): New function.
9370 (record_minimal_symbol): Use is_import_fixup_symbol to
9371 detect import fixup symbols, and discard them.
9373 2013-03-28 Doug Evans <dje@google.com>
9375 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9376 types hash table until we know we need it.
9378 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9381 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9382 All callers updated.
9383 (dw2_print_stats): Print #read CUs too.
9384 (dump_die_shallow): Print signatured types better.
9386 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9387 info_or_types_section to section. All uses updated.
9388 (struct dwo_unit): Ditto.
9390 2013-03-28 Pedro Alves <palves@redhat.com>
9392 * NEWS (New options): New section.
9393 (New options): Mention set/show remote trace-status-packet.
9394 * remote.c (PACKET_qTStatus): New enumeration value.
9395 (remote_get_trace_status): Skip sending qTStatus if the packet is
9396 disabled. Use packet_ok.
9397 (_initialize_remote): Register a configuration command for
9400 2013-03-28 Doug Evans <dje@google.com>
9402 * symfile.c (find_separate_debug_file): Add comment.
9403 (terminate_after_last_dir_separator): Tweak comment.
9405 * dwarf2read.c (create_partial_symtab): Add forward decl.
9406 (create_partial_symtab): Move to be closer to other psymtab functions.
9407 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9409 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9410 (compute_symtab_includes): Remove unnecessary forward declaration.
9411 (die_needs_namespace): Add comment marking group of functions for
9412 dwarf2 name computation.
9414 * typeprint.c (_initialize_typeprint): Improve type help text.
9416 * python/python.c (finish_python_initialization): Provide suggestion
9417 for how to tell gdb to find its python files.
9419 2013-03-28 Pedro Alves <palves@redhat.com>
9423 * source.c (_initialize_source): Change back "set listsize" to an
9426 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9429 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9431 2013-03-27 Pedro Alves <palves@redhat.com>
9433 * top.c (history_size): Rename to ...
9434 (history_size_setshow_var): ... this. Add comment.
9435 (show_commands): Use readline's 'history_length' instead of
9436 computing the history length by calling history_get in a loop.
9437 (set_history_size_command): Error out for sizes over INT_MAX.
9438 Restore previous history size on invalid size.
9439 (init_history): If HISTSIZE is negative, leave the history size as
9441 (init_main): Adjust.
9443 2013-03-27 Pedro Alves <palves@redhat.com>
9445 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9446 coff_pe_read" command to "set debug coff-pe-read".
9448 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9450 * record.c (command_size_to_target_size): Fix size comparison.
9451 Change parameter type from pointer to integer to integer.
9454 2013-03-27 Pierre Muller <muller@sourceware.org>
9456 * windows-nat.c (handle_output_debug_string): Avoid typecast
9457 from integer of different size warning.
9459 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9461 * windows-nat.c (handle_output_debug_string): Add empty line
9462 after local block variable definition.
9464 2013-03-26 Pedro Alves <palves@redhat.com>
9466 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9467 (net_open): Make 'polls' local unsigned.
9469 2013-03-26 Pedro Alves <palves@redhat.com>
9471 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9472 a zuinteger command instead of uinteger.
9474 2013-03-26 Pedro Alves <palves@redhat.com>
9476 * record-full.c (record_full_insn_num): Make it unsigned.
9477 (record_full_check_insn_num, record_full_message)
9478 (record_full_registers_change, record_full_xfer_partial): Remove
9479 record_full_insn_max_num check (it's always != 0).
9480 (record_full_info, record_full_restore): Use %u as format string.
9481 (): Use %u as format string.
9482 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9483 check (it's always != 0).
9485 2013-03-26 Pedro Alves <palves@redhat.com>
9487 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9488 and "set dcache size" commands zuinteger instead of uinteger.
9490 2013-03-26 Pedro Alves <palves@redhat.com>
9492 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9493 command zuinteger instead of uinteger.
9495 2013-03-26 Pedro Alves <palves@redhat.com>
9497 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9498 zuinteger instead of uinteger.
9500 2013-03-26 Pedro Alves <palves@redhat.com>
9502 * record.c (record_insn_history_size_setshow_var)
9503 (record_call_history_size_setshow_var): New globals.
9504 (command_size_to_target_size): New function.
9505 (cmd_record_insn_history, cmd_record_call_history): Use
9506 command_size_to_target_size instead of cast.
9507 (validate_history_size, set_record_insn_history_size)
9508 (set_record_call_history_size): New functions.
9509 (_initialize_record): Install set_record_insn_history_size and
9510 set_record_call_history_size as "set" hooks of "set record
9511 instruction-history-size" and "set record
9512 function-call-history-size".
9514 2013-03-26 Pedro Alves <palves@redhat.com>
9516 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9517 use with history_max_entries use. Remove FIXME note.
9519 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9521 * record-btrace.c (record_btrace_close): Call
9522 record_btrace_auto_disable.
9524 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9526 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9528 2013-03-25 Doug Evans <dje@google.com>
9530 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9532 2013-03-25 Tom Tromey <tromey@redhat.com>
9535 * c-exp.y (exp): Add new productions for destructors after '.' and
9537 (write_destructor_name): New function.
9539 2013-03-25 Tom Tromey <tromey@redhat.com>
9542 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9543 value_struct_elt, not lookup_struct_elt_type.
9544 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9545 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9546 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9548 2013-03-25 Yao Qi <yao@codesourcery.com>
9550 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9551 instead of '_mkdir'.
9553 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9555 * windows-nat.c (windows_get_absolute_argv0): New function.
9556 * windows-nat.h: Add its prototype.
9558 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9559 Use IS_DIR_SEPARATOR instead of looking for a character inside
9560 SLASH_STRING. Include filenames.h.
9561 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9562 relocate_gdb_directory works when passed gdb_program_name.
9563 Include windows-nat.h.
9565 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9567 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9568 * remote.c (trace_error): Remove the special handling of '2'.
9569 (readchar) <SERIAL_EOF>
9570 (readchar) <SERIAL_ERROR>
9571 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9572 (remote_get_trace_status): Call throw_exception if EX is
9574 * utils.c (perror_with_name): Rename to ...
9575 (throw_perror_with_name): ... here. New parameter errcode, describe it
9576 in the function comment.
9577 (perror_with_name): New function wrapper.
9578 * utils.h (enum errors): New stub declaration.
9579 (throw_perror_with_name): New declaration.
9581 2013-03-22 Pedro Alves <palves@redhat.com>
9582 Yao Qi <yao@codesourcery.com>
9583 Mark Kettenis <kettenis@gnu.org>
9585 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9586 Don't let the user set the value to UINT_MAX directly.
9587 <var_integer>: Don't let the user set the value to INT_MAX
9590 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9592 * remote.c (remote_unpush_target): New function.
9593 (remote_open_1): Remove two pop_target calls, update one comment, add
9594 comment to target_preopen call. Replace pop_target call by
9595 remote_unpush_target call.
9596 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9597 pop_target calls by remote_unpush_target calls.
9599 2013-03-22 Pedro Alves <palves@redhat.com>
9601 * linux-nat.c (linux_child_follow_fork): Don't call
9602 linux_enable_event_reporting.
9603 (linux_handle_extended_wait): Don't call
9604 linux_enable_event_reporting.
9606 2013-03-22 Pedro Alves <palves@redhat.com>
9608 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9609 use it to rewrite the trampoline buffers with type gdb_byte[], and
9610 undefine the macro. Remove char* cast.
9612 2013-03-21 Doug Evans <dje@google.com>
9614 New commands "mt set per-command {space,time,symtab} {on,off}".
9616 * event-top.c: #include "maint.h".
9617 * main.c: #include "maint.h".
9618 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9619 timeval-utils.h, maint.h, cli/cli-setshow.h.
9620 (per_command_time, per_command_space): New static globals.
9621 (per_command_symtab): New static global.
9622 (per_command_setlist, per_command_showlist): New static globals.
9623 (struct cmd_stats): Move here from utils.c.
9624 (set_per_command_time): Renamed from set_display_time in utils.c
9625 and moved here. All callers updated.
9626 (set_per_command_space): Renamed from set_display_space in utils.c
9627 and moved here. All callers updated.
9628 (count_symtabs_and_blocks): New function.
9629 (report_command_stats): Moved here from utils.c. Add support for
9630 printing symtab stats. Only print data if enabled before command
9632 (make_command_stats_cleanup): Ditto.
9633 (sert_per_command_cmd, show_per_command_cmd): New functions.
9634 (_initialize_maint_cmds): Add new commands
9635 mt set per-command {space,time,symtab} {on,off}.
9636 * maint.h: New file.
9637 * top.c: #include "maint.h".
9638 * utils.c (reset_prompt_for_continue_wait_time): New function.
9639 (get_prompt_for_continue_wait_time): New function.
9640 * utils.h (reset_prompt_for_continue_wait_time): Declare
9641 (get_prompt_for_continue_wait_time): Declare.
9642 (make_command_stats_cleanup): Moved to maint.h.
9643 (set_display_time, set_display_space): Moved to maint.h and renamed
9644 to set_per_command_time, set_per_command_space.
9645 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9646 parse_binary_operation and made non-static. Don't call error,
9647 just return an error marker. All callers updated.
9648 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9650 2013-03-21 Tom Tromey <tromey@redhat.com>
9652 * symfile.c (alloc_section_addr_info): Update header. Don't set
9653 'num_sections' field.
9654 (build_section_addr_info_from_section_table): Set 'num_sections'.
9655 (build_section_addr_info_from_bfd): Likewise.
9656 (build_section_addr_info_from_objfile): Remove dead loop
9658 (free_section_addr_info): Unconditionally call xfree.
9659 (relative_addr_info_to_section_offsets, addrs_section_sort)
9660 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9662 (syms_from_objfile_1): Remove dead 'if' condition. Check
9664 (add_symbol_file_command): Set 'num_sections'.
9665 * symfile-mem.c (symbol_file_add_from_memory): Set
9667 * somread.c (som_symfile_offsets): Remove dead loop condition.
9668 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9669 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9671 2013-03-21 Tom Tromey <tromey@redhat.com>
9673 * tracepoint.h (decode_agent_options): Add 'trace_string'
9675 * tracepoint.c (decode_agent_options): Add 'trace_string'
9677 (validate_actionline): Update.
9678 (collect_symbol): Add 'trace_string' argument.
9679 (struct add_local_symbols_data) <trace_string>: New field.
9680 (do_collect_symbol): Update.
9681 (add_local_symbols): Add 'trace_string' argument.
9682 (encode_actions_1): Update.
9683 (trace_dump_actions): Update.
9684 * dwarf2loc.c (access_memory): Update.
9685 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9686 * ax-general.c (new_agent_expr): Update.
9687 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9688 (gen_trace_for_return_address): Add argument.
9689 (trace_kludge, trace_string_kludge): Remove.
9690 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9691 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9692 (gen_trace_for_var): Add 'trace_string' argument.
9693 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9694 (gen_printf, agent_eval_command_one): Update.
9696 2013-03-21 Tom Tromey <tromey@redhat.com>
9699 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9700 Handle FILENAME token.
9702 2013-03-21 Tom Tromey <tromey@redhat.com>
9704 * c-exp.y (YYPRINT): Define.
9705 (c_print_token): New function.
9707 2013-03-21 Tom Tromey <tromey@redhat.com>
9709 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9711 2013-03-21 Yao Qi <yao@codesourcery.com>
9713 * ctf.c: Include "gdb_stat.h".
9714 [USE_WIN32API]: New macro 'mkdir'.
9715 (ctf_start): Use permission bits macros if they are defined.
9717 2013-03-20 Keith Seitz <keiths@redhat.com>
9719 * breakpoint.h (struct breakpoint): Add comment to
9720 extra_string indicating that this member is mallod'd.
9721 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9723 2013-03-20 Pedro Alves <palves@redhat.com>
9727 * cli/cli-setshow.c (do_set_command)
9728 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9729 the result of parsing the command argument. Throw error if the
9730 value is greater than UINT_MAX. Print the invalid value with
9732 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9733 result of parsing the command argument. Throw error if the value
9734 is greater than INT_MAX, not greater or equal. Also throw error
9735 if the value is less than INT_MIN. Print the invalid value with
9737 <var_zuinteger_unlimited>: Throw error if the value is greater
9738 than INT_MAX, not greater or equal.
9739 (do_show_command) <var_integer, var_zinteger,
9740 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9742 2013-03-20 Tom Tromey <tromey@redhat.com>
9744 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9746 * dwarf2read.c (read_func_scope): Remove old FIXME.
9747 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9749 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9750 Unconditionally call via computed ops, if possible.
9751 * printcmd.c (address_info): Unconditionally call via computed ops,
9753 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9755 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9756 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9759 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 Tom Tromey <tromey@redhat.com>
9763 * coffread.c (coff_register_index): New global.
9764 (process_coff_symbol, coff_read_enum_type): Set
9765 SYMBOL_ACLASS_INDEX.
9766 (_initialize_coffread): Initialize new global.
9767 * dwarf2loc.c (locexpr_find_frame_base_location)
9768 (dwarf2_block_frame_base_locexpr_funcs)
9769 (loclist_find_frame_base_location)
9770 (dwarf2_block_frame_base_loclist_funcs): New.
9771 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9772 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9773 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9774 (dwarf2_block_frame_base_loclist_funcs): New.
9775 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9776 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9778 (read_func_scope): Update.
9779 (fixup_go_packaging, mark_common_block_symbol_computed)
9780 (var_decode_location, new_symbol_full, dwarf2_const_value):
9781 Set SYMBOL_ACLASS_INDEX.
9782 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9783 (_initialize_dwarf2_read): Initialize new globals.
9784 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9785 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9786 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9788 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9789 (_initialize_mdebugread): Initialize new globals.
9790 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9791 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9792 (stab_register_index, stab_regparm_index): New globals.
9793 (define_symbol, read_enum_type, common_block_end): Set
9794 SYMBOL_ACLASS_INDEX.
9795 (_initialize_stabsread): Initialize new globals.
9796 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9798 (MAX_SYMBOL_IMPLS): New define.
9799 (register_symbol_computed_impl, register_symbol_block_impl)
9800 (register_symbol_register_impl)
9801 (initialize_ordinary_address_classes): New functions.
9802 (_initialize_symtab): Call initialize_ordinary_address_classes.
9803 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9804 (struct symbol_impl): New.
9805 (SYMBOL_ACLASS_BITS): New define.
9806 (struct symbol) <aclass, ops>: Remove fields.
9807 <aclass_index>: New field.
9808 (symbol_impls): Declare.
9809 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9810 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9811 (register_symbol_computed_impl, register_symbol_block_impl)
9812 (register_symbol_register_impl): Declare.
9813 (struct symbol_computed_ops): Add location_has_loclist.
9814 (struct symbol_block_ops): New.
9815 (SYMBOL_BLOCK_OPS): New.
9816 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9818 2013-03-20 Tom Tromey <tromey@redhat.com>
9820 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9821 (print_partial_symbols, recursively_search_psymtabs): Use
9824 2013-03-20 Pierre Muller <muller@sourceware.org>
9826 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9827 addtion, subtraction, multiplication and division binary operator.
9829 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9832 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9833 * bsd-kvm.c (bsd_kvm_close): Likewise.
9834 * bsd-uthread.c (bsd_uthread_close): Likewise.
9835 * corelow.c (core_close): Likewise.
9836 (core_close_cleanup): Remove parameter quitting from a caller.
9837 * event-top.c (async_disconnect): Likewise.
9838 * exec.c (exec_close_1): Remove parameter quitting.
9839 * go32-nat.c (go32_close): Likewise.
9840 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9841 parameter quitting from a caller.
9842 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9844 (mips_linux_close): Remove parameter quitting. Remove parameter
9845 quitting from a caller.
9846 * monitor.c (monitor_close): Remove parameter quitting.
9847 * monitor.h (monitor_close): Likewise.
9848 * record-btrace.c (record_btrace_close): Likewise.
9849 * record-full.c (record_full_close): Likewise.
9850 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9851 it also from fprintf_unfiltered.
9852 * remote-mips.c (mips_close): Remove parameter quitting.
9853 (mips_detach): Remove parameter quitting from a caller.
9854 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9855 (gdbsim_close): Remove duplicate function comment. Remove parameter
9856 quitting and remove it also from printf_filtered.
9857 * remote.c (remote_close): Remove parameter quitting.
9858 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9859 * target.c (update_current_target): Remove parameter int from to_close
9861 (push_target, unpush_target, pop_target): Remove parameter quitting from
9863 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9864 Remove parameter quitting from a caller.
9865 (target_preopen): Remove parameter quitting from a caller.
9866 (target_close): Remove parameter quitting. Remove parameter quitting
9867 from a caller two times. Remove parameter quitting also from
9869 * target.h (struct target_ops): Remove parameter quitting and as int
9870 from fields to_xclose and to_close.
9871 (extern struct target_ops current_target):
9872 (target_close, pop_all_targets): Remove parameter quitting. Update the
9874 (pop_all_targets_above): Remove parameter quitting.
9875 * top.c (quit_target): Remove parameter quitting from a caller.
9876 * tracepoint.c (tfile_close): Remove parameter quitting.
9877 * windows-nat.c (windows_close): Remove parameter quitting.
9879 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9881 * windows-nat.c (handle_output_debug_string): Replace call
9882 to string_to_core_addr with call to strtoull.
9884 2013-03-20 Yao Qi <yao@codesourcery.com>
9886 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9887 and write it to CTF metadata.
9889 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9891 * windows-nat.c (handle_output_debug_string): Change type of n to
9892 SIZE_T to avoid crash on 64 bit systems.
9894 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9896 * python/python-internal.h (HAVE_SNPRINTF)
9897 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9898 about redefinition of snprintf by pyerrors.h.
9900 2013-03-15 Steve Ellcey <sellcey@mips.com>
9902 * remote-sim.c (sim_command_completer): Make char arguments const.
9904 2013-03-15 Tom Tromey <tromey@redhat.com>
9907 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9909 2013-03-14 Tom Tromey <tromey@redhat.com>
9911 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9913 (get_file_crc): Move from symfile.c.
9914 (gdb_bfd_crc): New function.
9915 * gdb_bfd.h (gdb_bfd_crc): Declare.
9916 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9917 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9918 (separate_debug_file_exists): Use gdb_bfd_crc.
9920 2013-03-14 Tom Tromey <tromey@redhat.com>
9922 * symfile.c (get_debug_link_info): Remove.
9923 (find_separate_debug_file_by_debuglink): Use
9924 bfd_get_debug_link_info.
9926 2013-03-14 Tom Tromey <tromey@redhat.com>
9928 * symtab.c (error_in_psymtab_expansion): New function.
9929 (lookup_symbol_aux_quick)
9930 (basic_lookup_transparent_type_quick): Remove "last resort"
9931 code. Use error_in_psymtab_expansion.
9933 2013-03-14 Doug Evans <dje@google.com>
9934 Jan Kratochvil <jan.kratochvil@redhat.com>
9936 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9937 any successful compare_filenames_for_search or FILENAME_CMP.
9938 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9939 * symtab.c (iterate_over_some_symtabs): Likewise.
9941 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9943 * source.c (print_source_lines_base): Make a local copy of
9946 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9947 Jan Kratochvil <jan.kratochvil@redhat.com>
9949 * source.c (print_source_lines_base): Suppress "file" for TUI.
9951 2013-03-14 Keith Seitz <keiths@redhat.com>
9952 Alan Matsuoka <alanm@redhat.com>
9956 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9958 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9961 2013-03-14 Yao Qi <yao@codesourcery.com>
9963 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9964 status to tfile if trace is stopped by command 'tstop'.
9966 2013-03-14 Yao Qi <yao@codesourcery.com>
9968 * tracepoint.c (tfile_write_status): Write trace notes and user
9969 name into tfile if they are not NULL.
9971 2013-03-14 Hui Zhu <hui@codesourcery.com>
9972 Yao Qi <yao@codesourcery.com>
9974 * Makefile.in (REMOTE_OBS): Add ctf.o.
9975 (SFILES): Add ctf.c.
9976 (HFILES_NO_SRCDIR): Add ctf.h.
9977 * ctf.c, ctf.h: New files.
9978 * tracepoint.c: Include 'ctf.h'.
9979 (collect_pseudocommand): Remove static.
9980 (trace_save_command): Parse option "-ctf".
9981 Produce different trace file writers per option.
9982 Adjust output message.
9983 (trace_save_tfile, trace_save_ctf): New.
9984 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9985 * mi/mi-main.c: Include 'ctf.h'.
9986 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9987 trace_save_tfile or trace_save_ctf.
9988 * NEWS: Mention these changes.
9990 2013-03-14 Yao Qi <yao@codesourcery.com>
9992 * tracepoint.c (trace_file_writer_xfree): New.
9993 (struct tfile_writer_data): New.
9994 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9995 (tfile_write_header, tfile_write_regblock_type): New.
9996 (tfile_write_status, tfile_write_uploaded_tsv): New.
9997 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9998 (tfile_write_raw_data, (tfile_end): New.
9999 (tfile_write_ops): New global variable.
10000 (TRACE_WRITE_R_BLOCK): New macro.
10001 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10002 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10003 (TRACE_WRITE_V_BLOCK): New macro.
10004 (trace_save): Add extra one parameter WRITER. Make it static.
10005 Use WRITER to writer trace.
10006 (tfile_trace_file_writer_new): New.
10007 (trace_save_command): Caller update.
10008 (trace_save_tfile): Write trace data in TFILE format.
10009 * tracepoint.h (struct trace_frame_write_ops): New.
10010 (struct trace_file_write_ops): New.
10011 (struct trace_file_writer): New.
10012 (trace_save): Remove its declaration.
10013 (trace_save_tfile): Declare it.
10014 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10015 instead of trace_save.
10017 2013-03-13 Pedro Alves <palves@redhat.com>
10019 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10021 2013-03-13 Pedro Alves <palves@redhat.com>
10023 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10024 commented out code.
10025 * demangle.c (current_demangling_style_string): Make it const.
10026 (set_demangling_command): Assert the demangling style is known.
10027 Remove all handling of unknown styles. Set
10028 'current_demangling_style_string' to an element of the
10029 demangling_style_names array.
10030 (set_demangling_style): Delete.
10031 (_initialize_demangler): Set current_demangling_style_string to the
10032 element of the demangling_style_names array that corresponds to
10033 the default demangling style. Remove FIXME note. Don't call
10034 set_demangling_style.
10035 * gdb-demangle.h (set_demangling_style): Remove declaration.
10037 2013-03-13 Pedro Alves <palves@redhat.com>
10039 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10041 (ada_make_symbol_completion_list): Make "text0" parameter const.
10042 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10043 * breakpoint.c (condition_completer): Make "text" and "word"
10044 parameters const. Adjust.
10045 (check_tracepoint_command): Adjust to validate_actionline
10047 (catch_syscall_completer): Make "text" and "word" parameters
10049 * cli/cli-cmds.c (show_user): Make "comname" local const.
10050 (valid_command_p): Make "command" parameter const.
10051 (alias_command): Make "alias_prefix" and "command_prefix" locals
10053 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10054 (add_alias_cmd): Make "name" and "oldname" parameters const.
10055 Adjust. No longer make copy of OLDNAME.
10056 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10057 (add_setshow_cmd_full, add_setshow_enum_cmd)
10058 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10059 (add_setshow_filename_cmd, add_setshow_string_cmd)
10060 (add_setshow_string_noescape_cmd)
10061 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10062 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10063 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10064 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10065 Make "name" parameter const.
10066 (help_cmd): Rename "command" parameter to "arg". New const local
10068 (find_cmd): Make "command" parameter const.
10069 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10070 deprecated_cmd_warning prototype change.
10071 (undef_cmd_error): Make "cmdtype" parameter const.
10072 (lookup_cmd): Make "line" parameter const.
10073 (deprecated_cmd_warning): Change type of "text" parameter to
10074 pointer to const char, from pointer to pointer to char. Adjust.
10075 (lookup_cmd_composition): Make "text" parameter const.
10076 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10078 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10080 * cli/cli-script.c (validate_comname): Make "tem" local const.
10081 (define_command): New const local "tem_c". Use it in calls to
10083 (document_command): Make "tem" and "comfull" locals const.
10084 (show_user_1): Make "prefix" and "name" parameters const.
10085 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10087 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10088 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10089 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10090 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10091 (complete_on_enum, add_setshow_enum_cmd)
10092 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10093 (add_setshow_filename_cmd, add_setshow_string_cmd)
10094 (add_setshow_string_noescape_cmd)
10095 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10096 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10097 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10098 Change prototypes, constifying strings.
10099 * completer.c (noop_completer, filename_completer): Make "text"
10100 and "prefix" parameters const.
10101 (location_completer, expression_completer)
10102 (complete_line_internal): Make "text" and "prefix" parameters
10104 (command_completer, signal_completer): Make "text" and "prefix"
10106 * completer.h (noop_completer, filename_completer)
10107 (expression_completer, location_completer, command_completer)
10108 (signal_completer): Change prototypes.
10109 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10111 * cp-abi.c (cp_abi_completer): Likewise.
10112 * expression.h (parse_expression_for_completion): Change
10114 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10116 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10117 * infrun.c (handle_completer): Make "text" and "word" parameters
10119 * interps.c (interpreter_completer): Make "text" and "word"
10121 * language.h (struct language_defn)
10122 <la_make_symbol_completion_list>: Make "text" and "word"
10124 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10125 (parse_exp_in_context): Rename to ...
10126 (parse_exp_in_context_1): ... this.
10127 (parse_exp_in_context): Reimplement, with const hack from
10129 (parse_expression_for_completion): Make "string" parameter const.
10130 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10131 to pointer to const char. Adjust.
10132 (print_command_1): Make "exp" parameter const.
10133 (output_command): Rename to ...
10134 (output_command_const): ... this. Make "exp" parameter const.
10135 (output_command): Reimplement.
10136 (x_command): Adjust.
10137 (display_command): Rename "exp" parameter to "arg". New "exp"
10138 local, const version of "arg".
10139 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10140 "cmd_name" local const.
10141 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10143 (cmdpy_completer): Make "text" and "word" parameters const.
10144 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10145 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10147 * remote.c (_initialize_remote): Make "cmd_name" local const.
10148 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10149 parameters const. Adjust.
10150 (completion_list_add_fields): Make "sym_text", "text" and "word"
10152 (struct add_name_data) <sym_text, text, word>: Make fields const.
10153 (default_make_symbol_completion_list_break_on): Make "text" and
10154 "word" parameters const. Adjust locals.
10155 (default_make_symbol_completion_list)
10156 (make_symbol_completion_list, make_symbol_completion_type)
10157 (make_symbol_completion_list_fn): Make "text" and "word"
10159 (make_file_symbol_completion_list): Make "text", "word" and
10160 "srcfile" parameters const. Adjust locals.
10161 (add_filename_to_list): Make "text" and "word" parameters const.
10162 (struct add_partial_filename_data) <text, word>: Make fields
10164 (make_source_files_completion_list): Make "text" and "word"
10166 * symtab.h (default_make_symbol_completion_list_break_on)
10167 (default_make_symbol_completion_list, make_symbol_completion_list)
10168 (make_symbol_completion_type enum type_code)
10169 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10170 (make_source_files_completion_list): Change prototype.
10171 * top.c (execute_command): Adjust to pass pointer to pointer to
10172 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10174 (set_verbose): Make "cmdname" local const.
10175 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10177 (validate_actionline): Make "line" parameter a pointer to const
10179 (encode_actions_1): Make "action_exp" local const, and adjust.
10180 (encode_actions): Adjust.
10181 (replace_comma): Delete.
10182 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10183 const, and adjust. Don't frob the action string while splitting
10184 it at commas. Instead, make a copy of each split substring in
10186 (trace_dump_command): Adjust to validate_actionline prototype
10188 * tracepoint.h (decode_agent_options, decode_agent_options)
10189 (encode_actions, validate_actionline): Change prototypes.
10190 * valprint.h (output_command): Delete declaration.
10191 (output_command_const): Declare.
10192 * value.c (function_destroyer): Cast const away in xfree call.
10194 2013-03-13 Pedro Alves <palves@redhat.com>
10196 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10197 rather than casting 'const char * const *' to 'const char **'.
10198 * ada-lex.l (processInt): Make "trailer" local const. Remove
10199 'const char **' cast.
10200 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10201 locals, and use those as strtol output pointer, instead than doing
10202 invalid casts to from 'const char **' to 'char **'.
10203 (_initialize_demangle): Remove cast.
10204 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10205 locals, and use those as strtol output pointer, instead than doing
10206 invalid casts to from 'const char **' to 'char **'.
10207 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10209 * stap-probe.c (stap_parse_register_operand)
10210 (stap_parse_single_operand): Likewise.
10212 2013-03-13 Yao Qi <yao@codesourcery.com>
10214 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10215 the last matched 'V' blcok in trace frame.
10217 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10219 * NEWS: Create a new section for the next release branch.
10220 Rename the section of the current branch, now that it has
10223 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10225 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10226 * version.in: Bump version to 7.6.50.20130312-cvs.
10228 2013-03-12 Keith Seitz <keiths@redhat.com>
10230 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10231 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10232 Remove temporary copy of input string.
10233 (mi_execute_command_wrapper): Make "cmd" const.
10234 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10235 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10237 (mi_parse): Make "cmd" const.
10239 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10241 2013-03-12 Keith Seitz <keiths@redhat.com>
10243 * ada-lang.c (ada_read_renaming_var_value): Pass const
10244 pointer to expression string to parse_exp_1.
10245 (create_excep_cond_exprs): Likewise.
10246 * ax-gdb.c (agent_eval_command_one): Likewise.
10247 (maint_agent_printf_command): Likewise.
10248 Constify much of the string handling/parsing.
10249 * breakpoint.c (set_breakpoint_condition): Pass const
10250 pointer to expression string to parse_exp_1.
10251 (update_watchpoint): Likewise.
10252 (parse_cmd_to_aexpr): Constify string handling.
10253 Pass const pointer to parse_exp_1.
10254 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10255 (find_condition_and_thread): Likewise.
10257 (watch_command_1): Make "arg" const.
10258 Constify string handling.
10259 Copy the expression string instead of changing the input
10261 (update_breakpoint_location): Pass const pointer to
10263 * eval.c (parse_and_eval_address): Make "exp" const.
10264 (parse_to_comma_and_eval): Make "expp" const.
10265 (parse_and_eval): Make "exp" const.
10266 * expression.h (parse_expression): Make argument const.
10267 (parse_exp_1): Make first argument const.
10268 * findcmd.c (parse_find_args): Treat "args" as const.
10269 * linespec.c (parse_linespec): Pass const pointer to
10270 linespec_expression_to_pc.
10271 (linespec_expression_to_pc): Make "exp_ptr" const.
10272 * parse.c (parse_exp_1): Make "stringptr" const.
10273 Make a copy of the expression to pass to parse_exp_in_context until
10274 this whole interface can be constified.
10275 (parse_expression): Make "string" const.
10276 * printcmd.c (ui_printf): Treat "arg" as const.
10277 Handle const strings.
10278 * tracepoint.c (validate_actionline): Pass const pointer to
10279 all calls to parse_exp_1.
10280 (encode_actions_1): Likewise.
10281 * value.h (parse_to_comma_and_eval): Make argument const.
10282 (parse_and_eval_address): Likewise.
10283 (parse_and_eval): Likewise.
10284 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10285 (varobj_set_value): Likewise.
10286 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10287 constify string handling.
10288 Pass const pointers to parse_and_eval_address and
10289 parse_to_comman_and_eval.
10290 * cli/cli-utils.c (skip_to_space): Rename to ...
10291 (skip_to_space_const): ... this. Handle const strings.
10292 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10293 skip_to_space_const.
10294 (skip_to_space_const): Declare.
10295 * common/format.c (parse_format_string): Make "arg" const.
10296 Handle const strings.
10297 * common/format.h (parse_format_string): Make "arg" const.
10298 * gdbserver/ax.c (ax_printf): Make "format" const.
10299 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10300 of the expression string.
10302 2013-03-12 Hui Zhu <hui@codesourcery.com>
10304 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10306 2013-03-12 Yao Qi <yao@codesourcery.com>
10307 Hui Zhu <hui@codesourcery.com>
10309 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10310 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10313 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10315 * ada-lex.l (rules): Only recognize 'thread' as a
10316 delimiter when followed by numerals, as for c-exp.y.
10317 Use new rewind_to_char function to rewind the input for
10318 expression-delimiting tokens.
10319 (rewind_to_char): New function.
10321 2013-03-11 Pedro Alves <palves@redhat.com>
10322 Jan Kratochvil <jan.kratochvil@redhat.com>
10324 * configure: Regenerate.
10325 * configure.ac (check dynamic export flag): Link python test with
10328 2013-03-11 Doug Evans <dje@google.com>
10329 Keith Seitz <keiths@redhat.com>
10331 * linespec.c (find_linespec_symbols): Call find_function_symbols
10332 first, and then call lookup_prefix_sym/find_method.
10334 2013-03-11 Pedro Alves <palves@redhat.com>
10336 * charset.c (convert_between_encodings): Don't cast between
10337 different pointer to pointer types. Instead, make the 'inp' local
10338 be of the type iconv expects.
10339 (wchar_iterate): Don't cast between different pointer to pointer
10340 types. Instead, use new pointer local of the type iconv expects.
10341 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10342 Add new local of type char pointer, and use it to get a
10343 char/string view of the byte buffer, instead of casting between
10344 pointer to pointer types.
10346 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10348 * remote.c (remote_set_trace_buffer_size): Move != operator
10349 to the start of next line to fix an ARI warning.
10351 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10353 * NEWS: Add record changes.
10355 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10357 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10358 the instruction history disassembly.
10359 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10360 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10362 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10364 * Makefile.in (SFILES): Add record-btrace.c
10365 (COMMON_OBS): Add record-btrace.o
10366 * record-btrace.c: New.
10367 * objfiles.c: Include btrace.h.
10368 (free_objfile): call btrace_free_objfile.
10370 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10372 * target.c (target_call_history, target_call_history_from,
10373 target_call_history_range): New.
10374 * target.h (target_ops) <to_call_history, to_call_history_from,
10375 to_call_history_range>: New fields.
10376 (target_call_history, target_call_history_from,
10377 target_call_history_range): New declaration.
10378 * record.c (get_call_history_modifiers, cmd_record_call_history,
10379 record_call_history_size): New.
10380 (_initialize_record): Add the "record function-call-history" command.
10381 Add "set/show record function-call-history-size" commands.
10382 * record.h (record_print_flag): New.
10384 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10386 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10387 to_insn_history_range>: New fields.
10388 (target_insn_history): New.
10389 (target_insn_history_from): New.
10390 (target_insn_history_range): New.
10391 * target.c (target_insn_history): New.
10392 (target_insn_history_from): New.
10393 (target_insn_history_range): New.
10394 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10395 (record_insn_history_size): New.
10396 (get_insn_number): New.
10397 (get_context_size): New.
10399 (get_insn_history_modifiers): New.
10400 (cmd_record_insn_history): New.
10401 (_initialize_record): Add "set/show record instruction-history-size"
10402 command. Add "record instruction-history" command.
10404 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10406 * record.h (record_disconnect): New.
10407 (record_detach): New.
10408 (record_mourn_inferior): New.
10409 (record_kill): New.
10410 * record-full.c (record_disconnect, record_detach,
10411 record_mourn_inferior, record_kill): Move to...
10412 * record.c: ...here.
10414 (record_stop): New.
10415 (record_unpush): New.
10416 (cmd_record_stop): Call record_stop. Replace unpush_target
10417 call with record_unpush call.
10418 (record_disconnect, record_detach): Assert that the target
10419 is of record stratum. Call record_unpush, record_stop, and
10421 (record_mourn_inferior, record_kill): Assert that the target
10422 is of record stratum. Call record_unpush and DEBUG.
10424 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10426 * record-full.h, record-full.c (record_memory_query): Rename
10428 (record_full_memory_query): ...this. Update all users.
10429 (record_arch_list_add_reg): Rename to ...
10430 (record_full_arch_list_add_reg): ...this. Update all users.
10431 (record_arch_list_add_mem): Rename to ...
10432 (record_full_arch_list_add_mem): ...this. Update all users.
10433 (record_arch_list_add_end): Rename to ...
10434 (record_full_arch_list_add_end): ...this. Update all users.
10435 (record_gdb_operation_disable_set): Rename to ...
10436 (record_full_gdb_operation_disable_set): ...this.
10439 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10441 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10442 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10443 (RECORD_IS_REPLAY): Renamed to ...
10444 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10445 (RECORD_FILE_MAGIC): Renamed to ...
10446 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10447 (record_mem_entry): Renamed to ...
10448 (record_full_mem_entry): ... this. Updated all users.
10449 (record_reg_entry): Renamed to ...
10450 (record_full_reg_entry): ... this. Updated all users.
10451 (record_end_entry): Renamed to ...
10452 (record_full_end_entry): ... this. Updated all users.
10453 (record_type) <record_end, record_reg, record_mem>: Renamed
10455 (record_full_type) <record_full_end, record_full_reg,
10456 record_full_mem>: ... this. Updated all users.
10457 (record_entry): Renamed to ...
10458 (record_full_entry): ... this. Updated all users.
10459 (record_core_buf_entry): Renamed to ...
10460 (record_full_core_buf_entry): ... this. Updated all users.
10461 (record_core_regbuf): Renamed to ...
10462 (record_full_core_regbuf): ... this. Updated all users.
10463 (record_core_start): Renamed to ...
10464 (record_full_core_start): ... this. Updated all users.
10465 (record_core_end): Renamed to ...
10466 (record_full_core_end): ... this. Updated all users.
10467 (record_core_buf_list): Renamed to ...
10468 (record_full_core_buf_list): ... this. Updated all users.
10469 (record_first): Renamed to ...
10470 (record_full_first): ... this. Updated all users.
10471 (record_list): Renamed to ...
10472 (record_full_list): ... this. Updated all users.
10473 (record_arch_list_head): Renamed to ...
10474 (record_full_arch_list_head): ... this. Updated all users.
10475 (record_arch_list_tail): Renamed to ...
10476 (record_full_arch_list_tail): ... this. Updated all users.
10477 (record_stop_at_limit): Renamed to ...
10478 (record_full_stop_at_limit): ... this. Updated all users.
10479 (record_insn_max_num): Renamed to ...
10480 (record_full_insn_max_num): ... this. Updated all users.
10481 (record_insn_num): Renamed to ...
10482 (record_full_insn_num): ... this. Updated all users.
10483 (record_insn_count): Renamed to ...
10484 (record_full_insn_count): ... this. Updated all users.
10485 (record_ops): Renamed to ...
10486 (record_full_ops): ... this. Updated all users.
10487 (record_core_ops): Renamed to ...
10488 (record_full_core_ops): ... this. Updated all users.
10489 (set_record_cmdlist): Renamed to ...
10490 (set_record_full_cmdlist): ... this. Updated all users.
10491 (show_record_cmdlist): Renamed to ...
10492 (show_record_full_cmdlist): ... this. Updated all users.
10493 (record_cmdlist): Renamed to ...
10494 (record_full_cmdlist): ... this. Updated all users.
10495 (record_beneath_to_resume_ops): Renamed to ...
10496 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10497 (record_beneath_to_resume): Renamed to ...
10498 (record_full_beneath_to_resume): ... this. Updated all users.
10499 (record_beneath_to_wait_ops): Renamed to ...
10500 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10501 (record_beneath_to_wait): Renamed to ...
10502 (record_full_beneath_to_wait): ... this. Updated all users.
10503 (record_beneath_to_store_registers_ops): Renamed to ...
10504 (record_full_beneath_to_store_registers_ops): ... this.
10506 (record_beneath_to_store_registers): Renamed to ...
10507 (record_full_beneath_to_store_registers): ... this.
10509 (record_beneath_to_xfer_partial_ops): Renamed to ...
10510 (record_full_beneath_to_xfer_partial_ops): ... this.
10512 (record_beneath_to_xfer_partial): Renamed to ...
10513 (record_full_beneath_to_xfer_partial): ... this.
10515 (record_beneath_to_insert_breakpoint): Renamed to ...
10516 (record_full_beneath_to_insert_breakpoint): ... this.
10518 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10519 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10521 (record_beneath_to_stopped_data_address): Renamed to ...
10522 (record_full_beneath_to_stopped_data_address): ... this.
10524 (record_beneath_to_async): Renamed to ...
10525 (record_full_beneath_to_async): ... this. Updated all users.
10526 (record_goto_insn): Renamed to ...
10527 (record_full_goto_insn): ... this. Updated all users.
10528 (record_save): Renamed to ...
10529 (record_full_save): ... this. Updated all users.
10530 (record_reg_alloc): Renamed to ...
10531 (record_full_reg_alloc): ... this. Updated all users.
10532 (record_reg_release): Renamed to ...
10533 (record_full_reg_release): ... this. Updated all users.
10534 (record_mem_alloc): Renamed to ...
10535 (record_full_mem_alloc): ... this. Updated all users.
10536 (record_mem_release): Renamed to ...
10537 (record_full_mem_release): ... this. Updated all users.
10538 (record_end_alloc): Renamed to ...
10539 (record_full_end_alloc): ... this. Updated all users.
10540 (record_end_release): Renamed to ...
10541 (record_full_end_release): ... this. Updated all users.
10542 (record_entry_release): Renamed to ...
10543 (record_full_entry_release): ... this. Updated all users.
10544 (record_list_release): Renamed to ...
10545 (record_full_list_release): ... this. Updated all users.
10546 (record_list_release_following): Renamed to ...
10547 (record_full_list_release_following): ... this.
10549 (record_list_release_first): Renamed to ...
10550 (record_full_list_release_first): ... this. Updated all users.
10551 (record_arch_list_add): Renamed to ...
10552 (record_full_arch_list_add): ... this. Updated all users.
10553 (record_get_loc): Renamed to ...
10554 (record_full_get_loc): ... this. Updated all users.
10555 (record_check_insn_num): Renamed to ...
10556 (record_full_check_insn_num): ... this. Updated all users.
10557 (record_arch_list_cleanups): Renamed to ...
10558 (record_full_arch_list_cleanups): ... this. Updated all users.
10559 (record_message): Renamed to ...
10560 (record_full_message): ... this. Updated all users.
10561 (record_message_wrapper): Renamed to ...
10562 (record_full_message_wrapper): ... this. Updated all users.
10563 (record_message_wrapper_safe): Renamed to ...
10564 (record_full_message_wrapper_safe): ... this. Updated all users.
10565 (record_gdb_operation_disable): Renamed to ...
10566 (record_full_gdb_operation_disable): ... this. Updated all users.
10567 (record_hw_watchpoint): Renamed to ...
10568 (record_full_hw_watchpoint): ... this. Updated all users.
10569 (record_exec_insn): Renamed to ...
10570 (record_full_exec_insn): ... this. Updated all users.
10571 (record_restore): Renamed to ...
10572 (record_full_restore): ... this. Updated all users.
10573 (record_async_inferior_event_token): Renamed to ...
10574 (record_full_async_inferior_event_token): ... this.
10576 (record_async_inferior_event_handler): Renamed to ...
10577 (record_full_async_inferior_event_handler): ... this.
10579 (record_core_open_1): Renamed to ...
10580 (record_full_core_open_1): ... this. Updated all users.
10581 (record_open_1): Renamed to ...
10582 (record_full_open_1): ... this. Updated all users.
10583 (record_open): Renamed to ...
10584 (record_full_open): ... this. Updated all users.
10585 (record_close): Renamed to ...
10586 (record_full_close): ... this. Updated all users.
10587 (record_resume_step): Renamed to ...
10588 (record_full_resume_step): ... this. Updated all users.
10589 (record_resumed): Renamed to ...
10590 (record_full_resumed): ... this. Updated all users.
10591 (record_execution_dir): Renamed to ...
10592 (record_full_execution_dir): ... this. Updated all users.
10593 (record_resume): Renamed to ...
10594 (record_full_resume): ... this. Updated all users.
10595 (record_get_sig): Renamed to ...
10596 (record_full_get_sig): ... this. Updated all users.
10597 (record_sig_handler): Renamed to ...
10598 (record_full_sig_handler): ... this. Updated all users.
10599 (record_wait_cleanups): Renamed to ...
10600 (record_full_wait_cleanups): ... this. Updated all users.
10601 (record_wait_1): Renamed to ...
10602 (record_full_wait_1): ... this. Updated all users.
10603 (record_wait): Renamed to ...
10604 (record_full_wait): ... this. Updated all users.
10605 (record_stopped_by_watchpoint): Renamed to ...
10606 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10607 (record_disconnect): Renamed to ...
10608 (record_full_disconnect): ... this. Updated all users.
10609 (record_detach): Renamed to ...
10610 (record_full_detach): ... this. Updated all users.
10611 (record_mourn_inferior): Renamed to ...
10612 (record_full_mourn_inferior): ... this. Updated all users.
10613 (record_kill): Renamed to ...
10614 (record_full_kill): ... this. Updated all users.
10615 (record_stopped_data_address): Renamed to ...
10616 (record_full_stopped_data_address): ... this. Updated all users.
10617 (record_registers_change): Renamed to ...
10618 (record_full_registers_change): ... this. Updated all users.
10619 (record_store_registers): Renamed to ...
10620 (record_full_store_registers): ... this. Updated all users.
10621 (record_xfer_partial): Renamed to ...
10622 (record_full_xfer_partial): ... this. Updated all users.
10623 (record_breakpoint): Renamed to ...
10624 (record_full_breakpoint): ... this. Updated all users.
10625 (record_breakpoint_p): Renamed to ...
10626 (record_full_breakpoint_p): ... this. Updated all users.
10627 (record_breakpoints): Renamed to ...
10628 (record_full_breakpoints): ... this. Updated all users.
10629 (record_sync_record_breakpoints): Renamed to ...
10630 (record_full_sync_record_breakpoints): ... this.
10632 (record_init_record_breakpoints): Renamed to ...
10633 (record_full_init_record_breakpoints): ... this.
10635 (record_insert_breakpoint): Renamed to ...
10636 (record_full_insert_breakpoint): ... this. Updated all users.
10637 (record_remove_breakpoint): Renamed to ...
10638 (record_full_remove_breakpoint): ... this. Updated all users.
10639 (record_can_execute_reverse): Renamed to ...
10640 (record_full_can_execute_reverse): ... this. Updated all users.
10641 (record_get_bookmark): Renamed to ...
10642 (record_full_get_bookmark): ... this. Updated all users.
10643 (record_goto_bookmark): Renamed to ...
10644 (record_full_goto_bookmark): ... this. Updated all users.
10645 (record_async): Renamed to ...
10646 (record_full_async): ... this. Updated all users.
10647 (record_can_async_p): Renamed to ...
10648 (record_full_can_async_p): ... this. Updated all users.
10649 (record_is_async_p): Renamed to ...
10650 (record_full_is_async_p): ... this. Updated all users.
10651 (record_execution_direction): Renamed to ...
10652 (record_full_execution_direction): ... this. Updated all users.
10653 (record_info): Renamed to ...
10654 (record_full_info): ... this. Updated all users.
10655 (record_delete): Renamed to ...
10656 (record_full_delete): ... this. Updated all users.
10657 (record_is_replaying): Renamed to ...
10658 (record_full_is_replaying): ... this. Updated all users.
10659 (record_goto_entry): Renamed to ...
10660 (record_full_goto_entry): ... this. Updated all users.
10661 (record_goto_begin): Renamed to ...
10662 (record_full_goto_begin): ... this. Updated all users.
10663 (record_goto_end): Renamed to ...
10664 (record_full_goto_end): ... this. Updated all users.
10665 (record_goto): Renamed to ...
10666 (record_full_goto): ... this. Updated all users.
10667 (init_record_ops): Renamed to ...
10668 (init_record_full_ops): ... this. Updated all users.
10669 (record_core_resume): Renamed to ...
10670 (record_full_core_resume): ... this. Updated all users.
10671 (record_core_kill): Renamed to ...
10672 (record_full_core_kill): ... this. Updated all users.
10673 (record_core_fetch_registers): Renamed to ...
10674 (record_full_core_fetch_registers): ... this. Updated all users.
10675 (record_core_prepare_to_store): Renamed to ...
10676 (record_full_core_prepare_to_store): ... this. Updated all users.
10677 (record_core_store_registers): Renamed to ...
10678 (record_full_core_store_registers): ... this. Updated all users.
10679 (record_core_xfer_partial): Renamed to ...
10680 (record_full_core_xfer_partial): ... this. Updated all users.
10681 (record_core_insert_breakpoint): Renamed to ...
10682 (record_full_core_insert_breakpoint): ... this. Updated all users.
10683 (record_core_remove_breakpoint): Renamed to ...
10684 (record_full_core_remove_breakpoint): ... this. Updated all users.
10685 (record_core_has_execution): Renamed to ...
10686 (record_full_core_has_execution): ... this. Updated all users.
10687 (init_record_core_ops): Renamed to ...
10688 (init_record_full_core_ops): ... this. Updated all users.
10689 (cmd_record_restore): Renamed to ...
10690 (cmd_record_full_restore): ... this. Updated all users.
10691 (record_save_cleanups): Renamed to ...
10692 (record_full_save_cleanups): ... this. Updated all users.
10693 (cmd_record_start): Renamed to ...
10694 (cmd_record_full_start): ... this. Updated all users.
10695 (set_record_insn_max_num): Renamed to ...
10696 (set_record_full_insn_max_num): ... this. Updated all users.
10697 (set_record_command): Renamed to ...
10698 (set_record_full_command): ... this. Updated all users.
10699 (show_record_command): Renamed to ...
10700 (show_record_full_command): ... this. Updated all users.
10701 (_initialize_record): Renamed to ...
10702 (_initialize_record_full): ... this. Updated all users.
10704 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10706 * record.h: Split into this and ...
10707 * record-full.h: ... this.
10708 * record.c: Split into this and ...
10709 * record-full.c: ... this.
10710 * target.h (target_ops): Add new fields to_info_record,
10711 to_save_record, to_delete_record, to_record_is_replaying,
10712 to_goto_record_begin, to_goto_record_end, to_goto_record.
10713 (target_info_record): New.
10714 (target_save_record): New.
10715 (target_supports_delete_record): New.
10716 (target_delete_record): New.
10717 (target_record_is_replaying): New.
10718 (target_goto_record_begin): New.
10719 (target_goto_record_end): New.
10720 (target_goto_record): New.
10721 * target.c (target_info_record): New.
10722 (target_save_record): New.
10723 (target_supports_delete_record): New.
10724 (target_delete_record): New.
10725 (target_record_is_replaying): New.
10726 (target_goto_record_begin): New.
10727 (target_goto_record_end): New.
10728 (target_goto_record): New.
10729 * record.h: Declare struct cmd_list_element.
10730 (record_cmdlist): New declaration.
10731 (set_record_cmdlist): New declaration.
10732 (show_record_cmdlist): New declaration.
10733 (info_record_cmdlist): New declaration.
10734 (cmd_record_goto): New declaration.
10735 * record.c: Remove unnecessary includes.
10736 Include inferior.h.
10737 (cmd_record_goto): Remove declaration.
10738 (record_cmdlist): Now extern. Initialize.
10739 (set_record_cmdlist): Now extern. Initialize.
10740 (show_record_cmdlist): Now extern. Initialize.
10741 (info_record_cmdlist): Now extern. Initialize.
10742 (find_record_target): New.
10743 (require_record_target): New.
10744 (cmd_record_start): Update.
10745 (cmd_record_delete): Remove target-specific code.
10746 Call target_delete_record.
10747 (cmd_record_stop): Unpush any record target.
10748 (set_record_insn_max_num): Move to record-full.c
10749 (set_record_command): Add comment.
10750 (show_record_command): Add comment.
10751 (info_record_command): Update comment.
10752 Remove target-specific code.
10753 Call the record target's to_info_record.
10754 (cmd_record_start): New.
10755 (cmd_record_goto): Now extern.
10756 Remove target-specific code.
10757 Call target_goto_begin, target_goto_end, or target_goto.
10758 (_initialize_record): Move record target ops initialization to
10760 Change "record" command help text.
10761 Move "record restore", "record set", and "record show" commands to
10763 * Makefile.in (SFILES): Add record-full.c.
10764 (HFILES_NO_SRCDIR): Add record-full.h.
10765 (COMMON_OBS): Add record-full.o.
10766 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10767 * arm-tdep.c: Include record-full.h.
10768 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10769 * i386-tdep.c: Include record-full.h.
10770 * infrun.c: Include record-full.h.
10771 * linux-record.c: Include record-full.h.
10772 * moxie-tdep.c: Include record-full.h.
10773 * record-full.c: Include record-full.h.
10774 Change module comment.
10775 (set_record_full_cmdlist): New.
10776 (show_record_full_cmdlist): New.
10777 (record_full_cmdlist): New.
10778 (record_goto_insn): New declaration.
10779 (record_save): New declaration.
10780 (record_check_insn_num): Change query string.
10781 (record_info): New.
10782 (record_delete): New.
10783 (record_is_replaying): New.
10784 (record_goto_entry): New.
10785 (record_goto_begin): New.
10786 (record_goto_end): New.
10787 (record_goto): New.
10788 (init_record_ops): Update.
10789 (init_record_core_ops): Update.
10790 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10791 (cmd_record_start): New.
10792 (set_record_insn_max_num): Moved from record.c
10793 (set_record_full_command): New.
10794 (show_record_full_command): New.
10795 (_initialize_record_full): New.
10797 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10799 * target.h (add_deprecated_target_alias): New.
10800 * target.c (add_deprecated_target_alias): New.
10802 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10804 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10806 (linux_supports_btrace): Add kernel and
10808 (kernel_supports_btrace): New function.
10809 (cpu_supports_btrace): New function.
10810 (intel_supports_btrace): New function.
10812 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10814 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10815 * remote.c: Include btrace.h.
10816 (struct btrace_target_info): New struct.
10817 (remote_supports_btrace): New function.
10818 (send_Qbtrace): New function.
10819 (remote_enable_btrace): New function.
10820 (remote_disable_btrace): New function.
10821 (remote_teardown_btrace): New function.
10822 (remote_read_btrace): New function.
10823 (init_remote_ops): Add btrace ops.
10824 (enum <unnamed>): Add btrace packets.
10825 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10826 (_initialize_remote): Add packet configuration for branch tracing.
10828 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10830 * features/btrace.dtd: New file.
10831 * Makefile.in (XMLFILES): Add btrace.dtd.
10832 * btrace.h (parse_xml_btrace): New declaration.
10833 * btrace.c: Include xml-support.h.
10834 (parse_xml_btrace): New function.
10835 (parse_xml_btrace_block): New function.
10836 (block_attributes): New struct.
10837 (btrace_attributes): New struct.
10838 (btrace_children): New struct.
10839 (btrace_elements): New struct.
10841 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10843 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10844 (amd64_linux_enable_btrace): New.
10845 (amd64_linux_disable_btrace): New.
10846 (amd64_linux_teardown_btrace): New.
10847 (_initialize_amd64_linux_nat): Initialize btrace ops.
10848 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10849 (i386_linux_enable_btrace): New.
10850 (i386_linux_disable_btrace): New.
10851 (i386_linux_teardown_btrace): New.
10852 (_initialize_i386_linux_nat): Initialize btrace ops.
10853 * config/i386/linux.mh: Add linux-btrace.o.
10854 * config/i386/linux64.mh: Add linux-btrace.o.
10856 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10858 * common/linux_btrace.h: New file.
10859 * common/linux_btrace.c: New file.
10860 * Makefile.in (SFILES): Add btrace.c.
10861 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10862 (COMMON_OBS): Add btrace.o.
10863 (linux-btrace.o): New rule.
10865 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10867 * target.h: Include btrace.h.
10868 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10869 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10870 * target.c (target_supports_btrace): New function.
10871 (target_enable_btrace): New function.
10872 (target_disable_btrace): New function.
10873 (target_teardown_btrace): New function.
10874 (target_read_btrace): New function.
10875 * btrace.h: New file.
10876 * btrace.c: New file.
10877 * Makefile.in: Add btrace.c.
10878 * gdbthread.h: Include btrace.h.
10879 (struct thread_info): Add btrace field.
10880 * thread.c: Include btrace.h.
10881 (clear_thread_inferior_resources): Call target_teardown_btrace.
10882 * common/btrace-common.h: New file.
10884 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10886 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10887 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10888 kill_status to outer block.
10890 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10892 Fix entry-values if the callee called a noreturn function.
10893 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10894 get_frame_address_in_block. Add new comment.
10896 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10898 Fix entry-values in C++ across CUs.
10899 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10900 lookup_minimal_symbol. Add a comment.
10902 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10903 DW_AT_linkage_name.
10905 2013-03-08 Yao Qi <yao@codesourcery.com>
10907 * tracepoint.c (_initialize_tracepoint): Indent the code.
10909 2013-03-08 Pedro Alves <palves@redhat.com>
10911 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10912 (parse_find_args, find_command): Change type of pattern buffer
10913 locals to 'gdb_byte *'.
10915 2013-03-08 Stan Shebs <stan@codesourcery.com>
10916 Hafiz Abid Qadeer <abidh@codesourcery.com>
10918 * NEWS: Mention set and show trace-buffer-size commands.
10919 Mention new packet.
10920 * target.h (struct target_ops): New method
10921 to_set_trace_buffer_size.
10922 (target_set_trace_buffer_size): New macro.
10923 * target.c (update_current_target): Set up new method.
10924 * tracepoint.c (trace_buffer_size): New global.
10925 (start_tracing): Send it to the target.
10926 (set_trace_buffer_size): New function.
10927 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10928 * remote.c (remote_set_trace_buffer_size): New function.
10929 (_initialize_remote): Use it.
10930 (QTBuffer:size) New remote command.
10931 (PACKET_QTBuffer_size): New enum.
10932 (remote_protocol_features): Add an entry for
10933 PACKET_QTBuffer_size.
10935 2013-03-08 Tom Tromey <tromey@redhat.com>
10937 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10940 2013-03-07 Pedro Alves <palves@redhat.com>
10942 * target.c (target_read_stralloc, target_fileio_read_alloc):
10943 *Cast pointer to 'gdb_byte *' in target call.
10945 2013-03-07 Pedro Alves <palves@redhat.com>
10947 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10950 2013-03-07 Keith Seitz <keiths@redhat.com>
10952 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10953 (trace_pass_command): Likewise.
10954 * cli/cli-cmds.c: Include cli/cli-utils.h.
10955 (source_command): Use skip-spaces.
10956 (disassemble_command): Likewise.
10957 * findcmd.c: Include cli/cli-utils.h.
10958 (parse_find_args): Use skip_spaces.
10959 * go32-nat.c: Include cli/cli-utils.h.
10960 (go32_sldt): Use skip_spaces.
10961 (go32_sgdt): Likewise.
10962 (go32_sidt): Likewise.
10963 (go32_pde): Likewise.
10964 (go32_pte): Likewise.
10965 (go32_pte_for_address): Likewise.
10966 * infcmd.c: Include cli/cli-utils.h.
10967 (registers_info): Use skip_spaces.
10968 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10969 (linux_info_proc): Likewise.
10970 * linux-thread-db.c: Include cli/cli-utils.h.
10971 (info_auto_load_libthread_db): Use skip_spaces_const.
10972 * m32r-rom.c: Include cli/cli-utils.h.
10973 (m32r_upload_command): Use skip_spaces.
10974 * maint.c: Include cli/cli-utils.h.
10975 (maintenance_translate_address): Use skip_spaces.
10976 * mi/mi-parse.c: Include cli/cli-utils.h.
10977 (mi_parse_argv): Use skip_spaces.
10978 (mi_parse): Likewise.
10979 * minsyms.c: Include cli/cli-utils.h.
10980 (msymbol_hash_iw): Use skip_spaces_const.
10981 * objc-lang.c: Include cli/cli-utils.h.
10982 (parse_selector): Use skip_spaces.
10983 (parse_method): Likewise.
10984 * python/python.c: Include cli/cli-utils.h.
10985 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10986 (python_command)[HAVE_PYTHON]: Likewise.
10987 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10988 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10989 (m32r_load): Use skip_spaces.
10990 * serial.c: Include cli/cli-utils.h.
10991 (serial_open): Use skip_spaces_const.
10992 * stack.c: Include cli/cli-utils.h.
10993 (parse_frame_specification_1): Use skip_spaces_const.
10994 * symfile.c: Include cli/cli-utils.h.
10995 (set_ext_lang_command): Use skip_spaces.
10996 * symtab.c: Include cli/cli-utils.h.
10997 (rbreak_command): Use skip_spaces.
10998 * thread.c (thread_name_command): Use skip_spaces.
10999 * tracepoint.c (validate_actionline): Use skip_spaces.
11000 (encode_actions_1): Likewise.
11001 (trace_find_range_command): Likewise.
11002 (trace_find_outside_command): Likewise.
11003 (trace_dump_actions): Likewise.
11005 2013-03-07 Pedro Alves <palves@redhat.com>
11007 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11008 * expprint.c (print_subexp_standard): Likewise.
11009 * utils.c (host_char_to_target): Likewise.
11010 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11011 * varobj.c (value_get_print_value): Change type of local to char*.
11012 Cast it gdb_byte * in call to language printer.
11014 2013-03-07 Pedro Alves <palves@redhat.com>
11016 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11018 (make_wchar_iterator): Remove cast to char*.
11019 (wchar_iterate): Change type of local.
11021 2013-03-07 Pedro Alves <palves@redhat.com>
11023 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11024 for 'regcache->register_status'.
11026 2013-03-07 Pedro Alves <palves@redhat.com>
11028 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11031 2013-03-07 Pedro Alves <palves@redhat.com>
11033 * stap-probe.c (handle_stap_probe): Add cast to char*.
11035 2013-03-07 Pedro Alves <palves@redhat.com>
11037 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11038 RECORD_MSGRCV>: Pass a signed variable to
11039 regcache_raw_read_signed, instead of an unsigned one.
11041 2013-03-07 Pedro Alves <palves@redhat.com>
11043 * remote-notif.c (notif_debug): Change type to int.
11044 * remote-notif.h (notif_debug): Likewise.
11046 2013-03-07 Pedro Alves <palves@redhat.com>
11048 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11050 2013-03-07 Pedro Alves <palves@redhat.com>
11052 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11053 * remote.h (hex2bin, bin2hex): ... here.
11054 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11056 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11058 * utils.c (initialize_utils): Improve doc strings of "set/show
11059 width", "set/show height", and "set/show pagination".
11061 2013-03-06 Keith Seitz <keiths@redhat.com>
11063 * ax-gdb.c (gen_printf): Make FORMAT const.
11064 * ax-gdb.h (gen_printf): Likewise.
11065 * ax-general.c (ax_string): Make STR const.
11066 * ax.h (ax_string): Likewise.
11068 2013-03-06 Doug Evans <dje@google.com>
11070 * elfread.c (elf_symfile_read): Move debugging printf to more
11073 2013-03-06 Pedro Alves <palves@redhat.com>
11075 * python/py-utils.c (target_string_to_unicode): Delete function.
11076 * python/python-internal.h (target_string_to_unicode): Delete
11079 2013-03-06 Pierre Muller <muller@sourceware.org>
11081 * linespec.c (get_current_search_block): ARI fix, use (void)
11082 for empty parameter list.
11084 2013-03-05 Doug Evans <dje@google.com>
11086 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11087 of old ada_lookup_symbol_list. In !full_search case, don't
11088 search superblocks.
11089 (ada_lookup_symbol_list): Delete arg full_search, all callers
11090 updated. Call ada_lookup_symbol_list_worker.
11091 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11092 * ada-lang.h (ada_lookup_symbol_list): Update.
11093 * language.h (language_defn): Update comment for
11094 la_iterate_over_symbols.
11095 * linespec.c (iterate_over_file_blocks): New function.
11096 (iterate_over_all_matching_symtabs): Call it.
11097 (lookup_prefix_sym): Ditto.
11098 (get_current_search_block): New function.
11099 (get_search_block): Delete.
11100 (find_label_symbols): Call get_current_search_block.
11101 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11102 * symtab.c (iterate_over_symbols): Don't search superblocks.
11104 2013-03-05 Yao Qi <yao@codesourcery.com>
11106 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11107 parameter VAR's type from "unsigned int" to "int".
11108 * command.h (var_zuinteger_unlimited): Update its comments.
11109 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11111 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11113 * NEWS: Mention new target x86_64-*-cygwin*.
11115 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11117 * configure.host: Add x86_64-*-cygwin* as host.
11118 * configure.tgt: Add x86_64-*-cygwin* as target.
11119 * config/i386/cygwin64.mh: New file.
11121 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11123 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11125 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11127 * linespec.c (struct linespec_canonical_name): New.
11128 (struct linespec_state): Change canonical_names type to it.
11129 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11130 xrealloc element size. Initialize the different CANONICAL fields.
11131 (canonical_to_fullform): New.
11132 (filter_results): Use it. Add variables canonical, fullform and
11134 (struct decode_line_2_item, decode_line_2_compare_items): New.
11135 (decode_line_2): Remove variables iter and item_names, add variables
11136 items and items_count. Modify the code for these new variables.
11138 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11140 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11141 calling do_cleanup.
11143 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11145 * tracepoint.c (build_traceframe_info): Add code for byte order.
11147 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11149 * v850-tdep.c: (v850e2_register_name): Revise system register
11150 names to match current V850E2M architecture specifications.
11151 Update register number enum comments too.
11153 2013-03-01 Jiong Wang <jiwang@tilera.com>
11154 Pedro Alves <palves@redhat.com>
11156 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11158 (tilegx_skip_prologue): Limit prologue analysis to section end.
11160 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11162 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11165 2013-03-01 Pedro Alves <palves@redhat.com>
11167 Use gdb_byte for bytes from the program being debugged.
11169 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11170 Change type of local 'buf' to gdb_byte.
11171 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11172 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11173 * cris-tdep.c (cris_sigcontext_addr)
11174 (cris_sigtramp_frame_unwind_cache): Likewise.
11175 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11176 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11178 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11179 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11180 (hppa32_hpux_search_dummy_call_sequence)
11181 (hppa_hpux_supply_save_state): Likewise.
11182 * hppa-linux-tdep.c (insns_match_pattern)
11183 (hppa_linux_find_global_pointer): Likewise.
11184 * hppa-tdep.c (hppa_in_function_epilogue_p)
11185 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11186 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11187 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11188 (i386fbsd_collect_uthread): Likewise.
11189 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11190 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11191 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11192 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11193 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11194 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11195 (ia64_libunwind_frame_prev_register)
11196 (ia64_libunwind_sigtramp_frame_this_id)
11197 (ia64_find_global_pointer_from_dynamic_section)
11198 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11199 (ia64_unwind_pc): Likewise.
11200 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11201 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11202 (m68hc11_extract_return_value): Likewise.
11203 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11204 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11205 (mep_get_insn, mep_push_dummy_call): Likewise.
11206 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11207 (mips_linux_in_dynsym_stub): Likewise.
11208 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11209 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11210 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11212 * remote-mips.c (mips_set_register): Likewise.
11213 * remote-sim.c (gdbsim_fetch_register): Likewise.
11214 * score-tdep.c (score7_fetch_inst): Change type of parameter
11215 'memblock' and local 'buf' to gdb_byte.
11216 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11217 Change type of local 'buf' to gdb_byte. Adjust.
11218 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11220 (score7_analyze_prologue): Change type of 'memblock' and
11221 'memblock_ptr' locals to gdb_byte*.
11222 * sh64-tdep.c (sh64_extract_return_value)
11223 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11224 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11225 * solib-pa64.c (pa64_solib_create_inferior_hook)
11226 (pa64_open_symbol_file_object): Remove local 'buf'.
11227 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11228 (som_open_symbol_file_object): Likewise.
11229 * solib-spu.c (spu_current_sos): Likewise.
11230 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11231 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11232 (spu_store_registers): Likewise.
11233 * target.c (debug_print_register): Likewise.
11234 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11235 * xstormy16-tdep.c (xstormy16_store_return_value)
11236 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11237 (xstormy16_find_jmp_table_entry): Likewise.
11239 2013-03-01 Jiong Wang <jiwang@tilera.com>
11241 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11242 (tilegx_gdbarch_init): Install it.
11244 2013-02-28 Tom Tromey <tromey@redhat.com>
11246 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11249 2013-02-28 Doug Evans <dje@google.com>
11251 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11252 * python/python.c (gdbpy_find_pc_line): Ditto.
11254 2013-02-28 Tom Tromey <tromey@redhat.com>
11256 * contrib/excheck.py: New file.
11257 * contrib/exsummary.py: New file.
11258 * contrib/gcc-with-excheck: New file.
11260 2013-02-28 Tom Tromey <tromey@redhat.com>
11262 * python/python.c (gdbpy_print_stack): Call begin_line and
11263 fprintf_filtered inside TRY_CATCH.
11265 2013-02-28 Tom Tromey <tromey@redhat.com>
11267 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11270 2013-02-28 Tom Tromey <tromey@redhat.com>
11272 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11273 frame_object_to_frame_info inside TRY_CATCH.
11275 2013-02-28 Tom Tromey <tromey@redhat.com>
11277 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11280 2013-02-28 Tom Tromey <tromey@redhat.com>
11282 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11284 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11286 * windows-nat.c: Throughout, fix format strings and casts of
11287 printf-like functions to avoid type related warnings on all
11289 (handle_output_debug_string): Fetch context information address
11290 from debug string using string_to_core_addr.
11292 2013-02-27 Jiong Wang <jiwang@tilera.com>
11294 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11295 * regformats/reg-tilegx32.dat: New.
11297 2013-02-27 Jiong Wang <jiwang@tilera.com>
11299 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11301 2013-02-27 Jiong Wang <jiwang@tilera.com>
11303 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11305 2013-02-27 Yao Qi <yao@codesourcery.com>
11306 Pedro Alves <palves@redhat.com>
11308 * tracepoint.c (tfile_trace_find): For tfind
11309 pc/tp/range/outside, look for the next trace frame instead of
11310 always starting from frame 0.
11312 2013-02-26 Anthony Green <green@moxielogic.com>
11314 * configure.tgt: Add support for moxie-*-rtems* target.
11316 2013-02-25 Pedro Alves <palves@redhat.com>
11318 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11321 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11323 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11324 if $fp is used as the virtual frame pointer.
11326 2013-02-23 Alan Modra <amodra@gmail.com>
11328 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11330 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11331 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11332 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11333 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11335 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11338 * elfread.c (build_id_bfd_get): Make the return type const.
11339 (build_id_verify): Make the check parameter const.
11340 (build_id_to_debug_filename): Make the build_id parameter and variable
11342 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11344 2013-02-21 Alan Modra <amodra@gmail.com>
11346 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11348 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11350 Add a new method 'disassemble' to gdb.Architecture class.
11351 * python/py-arch.c (archpy_disassmble): Implementation of the
11352 new method gdb.Architecture.disassemble.
11353 (arch_object_methods): Add entry for the new method.
11355 2013-02-20 Jiong Wang <jiwang@tilera.com>
11357 * MAINTAINERS (Write After Approval): Add myself to the list.
11359 2013-02-19 Pedro Alves <palves@redhat.com>
11361 Garbage collect 'struct monitor_ops'::load_routine.
11363 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11364 * monitor.c (monitor_load): No longer call
11365 current_monitor->load_routine.
11366 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11367 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11368 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11370 2013-02-19 Pedro Alves <palves@redhat.com>
11374 Harmonize with generic_load.
11376 * monitor.c: Include "readline/readline.h".
11377 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11378 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11379 long/strtol for the 'load_offset' local. Error out if no argument
11380 is given or if too many arguments are given. Tilde expand the
11381 passed in file name.
11383 2013-02-19 Kai Tietz <ktietz@redhat.com>
11386 * symfile.c (load_section_data): Change type of load_offset
11388 (generic_load): User strtoulst instead of strtoul for conversion
11391 2013-02-19 Jiong Wang <jiwang@tilera.com>
11393 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11394 for return address, "lr" register, saved on stack.
11395 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11396 after we invoke tilegx_analyze_prologue.
11398 2013-02-19 Jiong Wang <jiwang@tilera.com>
11400 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11402 2013-02-19 Jiong Wang <jiwang@tilera.com>
11404 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11406 2013-02-19 Jiong Wang <jiwang@tilera.com>
11408 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11409 (tilegx_write_pc): New function.
11410 (tilegx_cannot_reference_register): Return zero if REGNO
11411 is TILEGX_FAULTNUM_REGNUM.
11412 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11413 (tilegx_register_name): Add handling of "faultnum" register.
11414 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11415 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11416 handling of TILEGX_FAULTNUM_REGNUM.
11417 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11419 2013-02-19 Jiong Wang <jiwang@tilera.com>
11421 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11422 should be aligned to 64bit.
11424 2013-02-19 Kai Tietz <ktietz@redhat.com>
11426 * windows-nat.c (windows_xfer_memory): Fix debug-output
11429 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11431 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11432 Don't check DSP register number if HAVE_DSP is not set.
11434 2013-02-19 Alan Modra <amodra@gmail.com>
11436 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11437 throughout file instead.
11438 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11439 Don't xmalloc return value.
11440 (build_id_verify): Similarly. Don't xfree.
11441 (build_id_to_debug_filename): Update.
11442 (find_separate_debug_file_by_buildid): Update, don't xfree.
11444 2013-02-18 Tom Tromey <tromey@redhat.com>
11447 * dwarf2read.c (read_subrange_type): Use result of
11450 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11452 * frame.c: Remove one extra white space after #include
11455 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11457 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11459 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11461 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11462 and dir commands into an if block.
11464 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11466 * python/py-breakpoint (struct pybp_code): Use int instead of
11469 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11470 Hafiz Abid Qadeer <abidh@codesourcery.com>
11472 * NEWS: Mention new field "trace-file".
11473 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11474 (tfile_open): Record the trace file's filename in the trace
11476 (tfile_files_info): Mention the name of the trace file.
11477 Check the "filename" field explicitely.
11478 (trace_status_command): Explicitely check "filename" field.
11479 (trace_find_command): Ditto.
11480 (trace_find_pc_command): Ditto.
11481 (trace_find_tracepoint_command): Ditto.
11482 (trace_find_line_command): Ditto.
11483 (trace_find_range_command): Ditto.
11484 (trace_find_outside_command): Ditto.
11485 * tracepoint.h (struct trace_status) <from_file>: Rename it
11486 to "filename" and make it hold the trace file's filename
11487 instead of a boolean.
11488 * remote.c (remote_get_trace_status): Initialize "filename"
11489 field with NULL instead of 0.
11491 2013-02-15 Yao Qi <yao@codesourcery.com>
11493 * remote.c: Fix a typo.
11495 2013-02-14 Pierre Muller <muller@sourceware.org>
11497 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11499 2013-02-14 Pedro Alves <palves@redhat.com>
11501 * utils.c (savestring): Don't #undef it. Move function to
11502 common/common-utils.c.
11503 * common/common-utils.c: Include gdb_string.h.
11504 (savestring): Move here from utils.c.
11505 * common/common-utils.h (savestring): Declare.
11507 2013-02-14 Pedro Alves <palves@redhat.com>
11509 * utils.c (savestring): Rename parameter 'size' to 'len'.
11511 2013-02-14 Pedro Alves <palves@redhat.com>
11512 Yufeng Zhang <yufeng.zhang@arm.com>
11514 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11515 (aarch64_inferior_data, struct aarch64_inferior_data):
11517 (struct aarch64_process_info): New.
11518 (aarch64_process_list): New global.
11519 (aarch64_find_process_pid, aarch64_add_process)
11520 (aarch64_process_info_get): New functions.
11521 (aarch64_inferior_data_get): Delete.
11522 (aarch64_process_info_get): New function.
11523 (aarch64_forget_process): New function.
11524 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11525 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11526 aarch64_get_debug_reg_state.
11527 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11528 instead of linux_nat_iterate_watchpoint_lwps.
11529 (aarch64_linux_new_fork): New function.
11530 (aarch64_linux_child_post_startup_inferior): Use
11531 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11532 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11533 (aarch64_linux_remove_hw_breakpoint)
11534 (aarch64_handle_aligned_watchpoint)
11535 (aarch64_handle_unaligned_watchpoint)
11536 (aarch64_linux_insert_watchpoint)
11537 (aarch64_linux_remove_watchpoint)
11538 (aarch64_linux_stopped_data_address): Adjust to pass the current
11539 process id to aarch64_debug_reg_state.
11540 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11541 linux_nat_new_fork hook, and aarch64_forget_process as
11542 linux_nat_forget_process hook; remove the call to
11543 register_inferior_data_with_cleanup.
11545 2013-02-14 Pedro Alves <palves@redhat.com>
11547 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11548 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11551 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11552 Hafiz Abid Qadeer <abidh@codesourcery.com>
11554 * tracepoint.h (validate_trace_state_variable_name): Declare.
11555 * tracepoint.c (validate_trace_state_variable_name): New.
11556 (trace_variable_command): Parse the trace state variable's name
11557 without using parse_expression. Do several validations.
11558 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11559 trace state variable's name with parse_expression. Validate it.
11561 2013-02-14 Yao Qi <yao@codesourcery.com>
11563 * infcmd.c (breakpoint_proceeded): Remove it.
11565 2013-02-14 Yao Qi <yao@codesourcery.com>
11567 * tracepoint.c (end_actions_pseudocommand): Make it static.
11568 (while_stepping_pseudocommand): Likewise.
11569 * tracepoint.h (end_actions_pseudocommand): Remove the
11571 (while_stepping_pseudocommand): Likewise.
11573 2013-02-14 Yao Qi <yao@codesourcery.com>
11575 * cli/cli-decode.c (help_cmd): Remove the declaration of
11577 (help_all): Likewise.
11579 2013-02-13 Pedro Alves <palves@redhat.com>
11581 * amd64-linux-nat.c (update_debug_registers_callback):
11583 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11585 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11586 i386_debug_reg_state.
11587 (amd64_linux_new_fork): New function.
11588 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11589 linux_nat_new_fork hook, and i386_forget_process as
11590 linux_nat_forget_process hook.
11591 * i386-linux-nat.c (update_debug_registers_callback):
11593 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11595 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11596 i386_debug_reg_state.
11597 (i386_linux_new_fork): New function.
11598 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11599 linux_nat_new_fork hook, and i386_forget_process as
11600 linux_nat_forget_process hook.
11601 * i386-nat.c (i386_init_dregs): Delete.
11602 (i386_inferior_data, struct i386_inferior_data):
11604 (struct i386_process_info): New.
11605 (i386_process_list): New global.
11606 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11608 (i386_inferior_data_get): Delete.
11609 (i386_process_info_get): New function.
11610 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11611 (i386_forget_process): New function.
11612 (i386_cleanup_dregs): Rewrite.
11613 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11614 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11615 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11616 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11617 to i386_debug_reg_state.
11618 (i386_use_watchpoints): Don't register inferior data.
11619 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11621 (i386_forget_process): Declare.
11622 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11623 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11624 New static globals.
11625 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11626 (add_initial_lwp): New, factored out from ...
11627 (add_lwp): ... this. Don't check the number of lwps before
11628 calling linux_nat_new_thread.
11629 (linux_nat_iterate_watchpoint_lwps): Delete.
11630 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11631 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11633 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11635 (linux_nat_kill, linux_nat_mourn_inferior): Call
11636 linux_nat_forget_process.
11637 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11638 (linux_nat_forget_process): New functions.
11639 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11641 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11642 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11644 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11645 (linux_nat_forget_process): New declarations.
11647 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11648 (amd64fbsd_mourn_inferior): New function.
11649 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11650 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11652 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11654 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11657 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11659 * aarch64-linux-nat.c (debug_reg_change_callback)
11660 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11663 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11665 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11668 2013-02-13 Pedro Alves <palves@redhat.com>
11669 Hafiz Abid Qadeer <abidh@codesourcery.com>
11671 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11673 2013-02-12 Tom Tromey <tromey@redhat.com>
11676 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11678 (classify_inner_name): Remove 'first_name' argument, add
11679 'context'. Remove unused variable.
11680 (yylex): Explicitly maintain the context type. Exit loop earlier
11681 if NAME result is seen.
11683 2013-02-12 Pedro Alves <palves@redhat.com>
11685 * amd64-darwin-tdep.c: Add (C) after Copyright.
11686 * cli/cli-cmds.h: Ditto.
11687 * cli/cli-decode.c: Ditto.
11688 * cli/cli-decode.h: Ditto.
11689 * cli/cli-dump.c: Ditto.
11690 * cli/cli-dump.h: Ditto.
11691 * cli/cli-interp.c: Ditto.
11692 * cli/cli-logging.c: Ditto.
11693 * cli/cli-script.c: Ditto.
11694 * cli/cli-script.h: Ditto.
11695 * cli/cli-setshow.c: Ditto.
11696 * cli/cli-setshow.h: Ditto.
11697 * cli/cli-utils.c: Ditto.
11698 * cli/cli-utils.h: Ditto.
11699 * config/alpha/nm-osf3.h: Ditto.
11700 * config/djgpp/djconfig.sh: Ditto.
11701 * config/i386/nm-fbsd.h: Ditto.
11702 * config/i386/nm-i386gnu.h: Ditto.
11703 * config/nm-linux.h: Ditto.
11704 * config/nm-nto.h: Ditto.
11705 * config/rs6000/nm-rs6000.h: Ditto.
11706 * config/sparc/nm-sol2.h: Ditto.
11707 * darwin-nat-info.c: Ditto.
11710 * gdb-demangle.h: Ditto.
11711 * i386-darwin-nat.c: Ditto.
11712 * i386-darwin-tdep.c: Ditto.
11713 * linux-fork.h: Ditto.
11714 * m32c-tdep.c: Ditto.
11715 * microblaze-linux-tdep.c: Ditto.
11716 * microblaze-rom.c: Ditto.
11717 * microblaze-tdep.c: Ditto.
11718 * microblaze-tdep.h: Ditto.
11719 * mips-linux-tdep.h: Ditto.
11720 * ppc-ravenscar-thread.c: Ditto.
11721 * ppc-ravenscar-thread.h: Ditto.
11722 * prologue-value.c: Ditto.
11723 * prologue-value.h: Ditto.
11724 * ravenscar-thread.c: Ditto.
11725 * ravenscar-thread.h: Ditto.
11726 * sparc-ravenscar-thread.c: Ditto.
11727 * sparc-ravenscar-thread.h: Ditto.
11728 * tilegx-linux-tdep.c: Ditto.
11729 * unwind_stop_reasons.def: Ditto.
11730 * windows-nat.h: Ditto.
11731 * xtensa-linux-tdep.c: Ditto.
11732 * xtensa-xtregs.c: Ditto.
11733 * regformats/regdat.sh: Ditto.
11734 * regformats/regdef.h: Ditto.
11736 2013-02-12 Pedro Alves <palves@redhat.com>
11738 * break-catch-sig.c: Update copyright years.
11740 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11742 Add support for a destructor for ui_out data and use it to
11743 provide a ui_out destructor.
11744 * ui-out.h: Declare the new ui_out destructor.
11745 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11746 * ui-out.c (default_data_destroy): Add a default data destructor
11747 which does nothing.
11748 (default_ui_out_impl): Set the new data_destroy field to
11749 default_data_destroy
11750 (uo_data_destroy): Local function which invokes the data
11751 destructor if present.
11752 (clear_table): Local function which clears the table data of a
11754 (ui_out_destroy): Public function which frees a ui_out object.
11755 (ui_out_table_end): Use the new clear_table function.
11756 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11758 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11761 2013-02-11 Doug Evans <dje@google.com>
11763 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11764 (printf_decfloat): New function. Broken out from ui_printf.
11765 Remove unnecessary code to shift the entire format string down.
11766 (printf_pointer): New function.
11767 (ui_printf): Code to print C strings, wide C strings, decfloats,
11768 and pointers moved to separate functions.
11770 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11772 * valops.c (value_assign): Handling bitfield offset in
11773 `lval_internalvar_component' case.
11775 2013-02-08 Doug Evans <dje@google.com>
11777 * common/format.c (parse_format_string): Fix whitespace.
11779 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11781 * stack.c (return_command): Work around uninitialized variable
11784 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11786 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11787 number of the registers from 36 to 34.
11789 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11791 * NEWS: Mention new AArch64 native and target support.
11793 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11795 * MAINTAINERS (Write After Approval): Add myself.
11797 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11798 Marcus Shawcroft <marcus.shawcroft@arm.com>
11799 Nigel Stephens <nigel.stephens@arm.com>
11800 Yufeng Zhang <yufeng.zhang@arm.com>
11802 * aarch64-linux-nat.c: New file.
11803 * config/aarch64/linux.mh: New file.
11804 * configure.host: Add AArch64.
11805 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11807 2013-02-07 Doug Evans <dje@google.com>
11809 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11810 disassemble command.
11812 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11814 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11815 set_gdbarch_fetch_tls_load_module_address.
11817 2013-02-06 David S. Miller <davem@davemloft.net>
11819 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11820 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11821 * value.c (struct_return_convention): New function.
11822 (using_struct_return): Implement in terms of struct_return_convention.
11823 * value.h (struct_return_convention): Declare.
11824 * stack.c (return_command): Allow successful overriding of the return
11825 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11827 2013-02-06 Tom Tromey <tromey@redhat.com>
11829 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11830 outside of TRY_CATCH.
11832 2013-02-06 Yao Qi <yao@codesourcery.com>
11834 * mi/mi-interp.c: Include "tracepoint.h".
11835 (mi_tsv_modified): Declare.
11836 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11837 (mi_interpreter_init): Call observer_attach_tsv_modified.
11838 (mi_tsv_modified): New.
11839 (mi_tsv_created, mi_tsv_deleted): Update.
11840 * tracepoint.c (trace_variable_command): Call
11841 observer_notify_tsv_modified if the initial value of tsv is
11843 (delete_trace_state_variable): Call
11844 observer_notify_tsv_deleted earlier.
11845 (trace_variable_command): Caller update.
11846 (create_tsv_from_upload): Likewise.
11847 * observer.sh: Declare "struct trace_state_variable".
11849 * NEWS: Mention the new MI notification "=tsv-modified".
11851 2013-02-05 Doug Evans <dje@google.com>
11853 * completer.c (location_completer): Fix typo in comment.
11855 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11857 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11860 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11862 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11863 Refactor if statement to avoid trailing || operator.
11865 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11867 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11869 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11871 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11872 * configure.host: Add powerpc*-*-freebsd* target.
11873 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11874 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11875 * config/powerpc/fbsd.mh: New file.
11877 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11878 Denys Vlasenko <dvlasenk@redhat.com>
11879 Pedro Alves <palves@redhat.com>
11881 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11882 (struct elf_internal_linux_prpsinfo): Forward declare.
11883 * gdbarch.h, gdbarch.c: Regenerate.
11884 * linux-tdep.c: Include `cli/cli-utils.h'.
11885 (linux_fill_prpsinfo): New function.
11886 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11887 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11888 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11889 depending on gdbarch pointer bitness.
11890 * ppc-linux-tdep.c: Include elf-bfd.h.
11891 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11894 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11895 Marcus Shawcroft <marcus.shawcroft@arm.com>
11896 Nigel Stephens <nigel.stephens@arm.com>
11897 Yufeng Zhang <yufeng.zhang@arm.com>
11899 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11901 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11902 Marcus Shawcroft <marcus.shawcroft@arm.com>
11903 Nigel Stephens <nigel.stephens@arm.com>
11904 Yufeng Zhang <yufeng.zhang@arm.com>
11906 * aarch64-newlib-tdep.c: New file.
11907 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11909 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11910 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11911 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11912 * osabi.c (gdb_osabi_names): Add "Newlib".
11914 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11915 Marcus Shawcroft <marcus.shawcroft@arm.com>
11916 Nigel Stephens <nigel.stephens@arm.com>
11917 Yufeng Zhang <yufeng.zhang@arm.com>
11919 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11920 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11921 * aarch64-linux-tdep.c: New file.
11922 * aarch64-linux-tdep.h: New file.
11923 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11924 * configure.tgt: Add aarch64-none-linux-gnu.
11926 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11927 Marcus Shawcroft <marcus.shawcroft@arm.com>
11928 Nigel Stephens <nigel.stephens@arm.com>
11929 Yufeng Zhang <yufeng.zhang@arm.com>
11931 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11932 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11933 (ALLDEPFILES): Add aarch64-tdep.c.
11934 * aarch64-tdep.c: New file.
11935 * aarch64-tdep.h: New file.
11936 * configure.tgt: Add AArch64.
11937 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11938 (aarch64-expedite): New definition.
11939 * features/aarch64-core.xml: New file.
11940 * features/aarch64-fpu.xml: New file.
11941 * features/aarch64-without-fpu.c: New file (generated).
11942 * features/aarch64-without-fpu.xml: New file.
11943 * features/aarch64.c: New file (generated).
11944 * features/aarch64.xml: New file.
11945 * regformats/aarch64-without-fpu.dat: New file (generated).
11946 * regformats/aarch64.dat: New file (generated).
11948 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11950 * contrib/expect-read1.c: New file.
11951 * contrib/expect-read1.sh: New file.
11953 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11955 * dwarf2read.c (file_file_name): New function with code from
11957 (file_full_name): Move most of the code to file_file_name.
11958 (macro_start_file): Rename variable full_name to file_name and use
11959 file_file_name for it. Add comp_dir parameter to new_macro_table.
11960 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11961 macro_source_file->filename access by macro_source_fullname call.
11962 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11964 * macrotab.c (struct macro_table): New field comp_dir.
11965 (macro_include): New variables link_fullname and source_fullname.
11966 Replace any macro_source_file->filename access by macro_source_fullname
11968 (macro_lookup_inclusion): Remove the partial filenames checking code.
11969 (check_for_redefinition): New variables source_fullname and
11970 found_key_fullname. Replace any macro_source_file->filename access by
11971 macro_source_fullname call.
11972 (macro_undef): New variables source_fullname and key_fullname. Replace
11973 any macro_source_file->filename access by macro_source_fullname call.
11974 (macro_lookup_definition): New variables retval and source_fullname.
11975 Replace any macro_source_file->filename access by macro_source_fullname
11977 (foreach_macro): New variable key_fullname. Replace any
11978 macro_source_file->filename access by macro_source_fullname call.
11979 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11980 macro_source_file->filename access by macro_source_fullname call.
11981 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11982 (macro_source_fullname): New function.
11983 * macrotab.h (struct macro_source_file): Extent the filename field
11985 (new_macro_table): New parameter comp_dir, add a comment for it.
11986 (macro_source_fullname): new declaration.
11988 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11990 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11991 this_real_name to outer block. Use it also for
11992 compare_filenames_for_search.
11993 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11994 with dw2_get_real_path for file_matcher, considering also
11995 BASENAMES_MAY_DIFFER.
11996 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11998 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12000 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12001 to the file_matcher parameter. Pass 0 to it.
12002 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12003 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12004 NULL psymtab_to_fullname result.
12005 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12006 an expected filename instead.
12007 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12008 file_matcher parameter. Call also psymtab_to_fullname, after newly
12009 considering BASENAMES_MAY_DIFFER.
12010 * source.c (rewrite_source_path): Remove static.
12011 * source.h (rewrite_source_path): New declaration.
12012 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12013 the expand_symtabs_matching field. Comment it.
12014 * symtab.c (file_matches): New function comment. Add parameter
12015 basenames, implement it.
12016 (search_symbols_file_matches): Add basenames parameter. Update the
12017 file_matches caller.
12018 (search_symbols): Match FILES also against symtab_to_fullname.
12019 Optimize it for BASENAMES_MAY_DIFFER.
12021 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12023 * source.c (print_source_lines_base): Print for TUI also "fullname".
12024 * tui/tui-data.c (init_content_element): Change tui_locator_element
12025 field to full_name.
12026 * tui/tui-data.h (struct tui_locator_element): Likewise.
12027 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12028 tui_update_locator_filename calls to tui_update_locator_fullname.
12029 Replace symtab->filename refererence by symtab_to_fullname call.
12030 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12031 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12032 field to full_name. Replace symtab->filename refererence by
12033 symtab_to_fullname call.
12034 (tui_show_symtab_source): Rename parameter to fullname. Change
12035 tui_locator_element field to full_name.
12036 * tui/tui-stack.c: Include source.h.
12037 (tui_set_locator_filename): Rename the declaration to ...
12038 (tui_set_locator_fullname): ... here. Rename its parameter to
12039 fullname, updates its comment.
12040 (tui_set_locator_info): Rename its parameter to fullname.
12041 (tui_set_locator_filename): Rename the definition to ...
12042 (tui_set_locator_fullname): ... here. Rename its parameter to
12043 fullname, updates its comment. Change tui_locator_element field to
12045 (tui_set_locator_info): Rename its parameter to fullname.
12046 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12047 (tui_update_locator_filename): Rename to ...
12048 (tui_update_locator_fullname): ... here. Rename callee to
12049 tui_set_locator_fullname.
12050 (tui_show_frame_info): Replace symtab->filename refererence by
12051 symtab_to_fullname call.
12052 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12053 (tui_update_locator_fullname): ... here.
12054 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12055 tui_update_locator_fullname. Replace symtab->filename refererence by
12056 symtab_to_fullname call.
12057 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12058 Rename the callee to tui_update_locator_fullname.
12059 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12061 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12063 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12064 by symtab_to_filename_for_display calls.
12065 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12066 (clear_command): New variable sal_fullname, initialize it. Replace
12067 compare_filenames_for_search by filename_cmp with sal_fullname.
12068 (say_where, update_static_tracepoint): Replace symtab->filename
12069 refererences by symtab_to_filename_for_display calls.
12070 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12072 * dwarf2read.c: Include source.h.
12073 (fixup_go_packaging): Replace symtab->filename refererences by
12074 symtab_to_filename_for_display calls.
12075 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12076 Replace symtab->filename refererences by symtab_to_filename_for_display
12078 (create_sals_line_offset, convert_linespec_to_sals): New variable
12079 fullname, initialize it, replace symtab->filename reference by the
12081 * linux-fork.c: Include source.h.
12082 (info_checkpoints_command): Replace symtab->filename refererences by
12083 symtab_to_filename_for_display calls.
12084 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12085 by symtab_to_filename_for_display calls.
12086 * mdebugread.c: Include source.h.
12087 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12088 symtab_to_filename_for_display calls.
12089 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12090 (mi_cmd_file_list_exec_source_files): Likewise.
12091 * printcmd.c: Include source.h.
12092 (build_address_symbolic): Replace symtab->filename refererences by
12093 symtab_to_filename_for_display calls.
12094 * psymtab.c (partial_map_symtabs_matching_filename)
12095 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12096 with psymtab_to_fullname.
12097 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12098 by symtab_to_filename_for_display calls.
12099 (stpy_get_filename): New variable filename, initialize it, use instead
12100 of symtab->filename refererences.
12101 (salpy_str): Make variable filename const char *. Replace
12102 symtab->filename refererences by symtab_to_filename_for_display calls.
12103 * skip.c: Include source.h and filenames.h.
12104 (skip_file_command): Remove const from the symtab variable. Replace
12105 symtab->filename refererences by symtab_to_fullname call.
12106 (function_name_is_marked_for_skip): New variables searched_for_fullname
12107 and fullname. Use them to search also with symtab's fullname.
12108 * source.c (find_source_lines): Replace symtab->filename refererences
12109 by symtab_to_filename_for_display calls.
12110 (print_source_lines_base): New variable filename, use it instead of
12111 symtab->filename. Replace symtab->filename refererences by
12112 symtab_to_filename_for_display calls.
12113 (line_info, forward_search_command): Replace symtab->filename
12114 refererences by symtab_to_filename_for_display calls.
12115 (reverse_search_command): Replace symtab->filename refererences by
12116 symtab_to_filename_for_display calls. New variable filename for it.
12117 * stack.c (frame_info): Likewise.
12118 * symmisc.c: Include source.h.
12119 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12120 (maintenance_info_symtabs): Replace symtab->filename refererences by
12121 symtab_to_filename_for_display calls.
12122 * symtab.c (iterate_over_some_symtabs): Call
12123 compare_filenames_for_search also with symtab_to_fullname.
12124 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12125 symtab->filename refererences by symtab_to_filename_for_display calls.
12126 (find_line_symtab): Replace symtab->filename refererences by
12127 symtab_to_filename_for_display calls.
12128 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12129 (print_symbol_info): Make the last parameter const char *. New
12130 variable s_filename. Use it in the function.
12131 (symtab_symbol_info): Make the last_filename variable const char *.
12132 Replace symtab->filename refererences by symtab_to_filename_for_display
12134 (rbreak_command): New variable fullname. Use it. Replace
12135 symtab->filename refererence by symtab_to_filename_for_display call.
12136 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12137 (print_one_static_tracepoint_marker): Replace symtab->filename
12138 refererences by symtab_to_filename_for_display calls.
12139 * tui/tui-source.c (tui_set_source_content): New variables filename and
12140 s_filename. Replace symtab->filename refererences by this variable.
12141 Replace other symtab->filename refererences by
12142 symtab_to_filename_for_display calls.
12144 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12145 Jan Kratochvil <jan.kratochvil@redhat.com>
12147 Add a new variable that controls a way in which filenames are
12149 * NEWS (set filename-display): New entry.
12150 * source.c (filename_display_basename, filename_display_relative)
12151 (filename_display_absolute, filename_display_kind_names)
12152 (filename_display_string, show_filename_display_string)
12153 (symtab_to_filename_for_display): New.
12154 (_initialize_source): Added initialization of 'filename-display'
12156 * source.h (symtab_to_filename_for_display): Added declaration.
12157 * stack.c (print_frame): Added new variable and calling of a new
12158 function and condition with this variable. Changed third argument of
12159 calling of a function.
12161 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12163 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12164 Rename field reference filename to fullname.
12165 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12166 fullname. New comment for it.
12167 * tui/tui-source.c (tui_set_source_content): Rename field reference
12168 filename to fullname. Initialize field by symtab_to_fullname now.
12169 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12170 reference filename to fullname. Use symtab_to_fullname during
12173 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12176 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12177 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12178 filename to fullname. Rename variable this_name to this_fullname.
12179 Lowercase FILENAME_CMP call.
12180 (dw2_find_symbol_file): New comment for the returned string.
12181 (dwarf2_gdb_index_functions): Rename the function to
12182 dw2_expand_symtabs_with_fullname.
12183 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12184 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12186 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12187 * symfile.h (struct quick_symbol_functions): Rename field
12188 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12189 parameter filename to fullname. Document returned string meaning for
12191 * symtab.c (find_line_symtab): Rename the called function to
12192 expand_symtabs_with_fullname.
12194 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12197 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12198 call of filename_cmp with compare_filenames_for_search.
12199 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12200 is_abs, unify the call of FILENAME_CMP with
12201 compare_filenames_for_search. New gdb_asserts for real_path and name.
12202 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12203 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12204 * symfile.h (struct quick_symbol_functions): Extend the comment for
12205 map_symtabs_matching_filename.
12206 * symtab.c (compare_filenames_for_search): Remove the function comment
12207 relative path requirement. Handle absolute filenames, with a comment.
12208 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12209 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12210 real_path and name. Unify the call of compare_filenames_for_search
12212 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12214 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12217 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12218 source_file references by symtab field references. Remove variables
12220 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12221 (clear_command, say_where): Replace bp_location field source_file
12222 references by symtab field references.
12223 (bp_location_dtor): Remove the source_file reference.
12224 (update_static_tracepoint): Replace bp_location field source_file
12225 references by symtab field references.
12226 (breakpoint_free_objfile): New function.
12227 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12228 Replace the field source_file by field symtab, extend its comment.
12229 (breakpoint_free_objfile): New declaration.
12230 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12231 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12232 field source_file references by symtab field references.
12234 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12236 Replace xfullpath calls by gdb_realpath calls.
12237 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12239 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12240 Remove it from the iterate_over_some_symtabs call.
12241 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12242 Remove it from the dw2_map_expand_apply calls, remove a block handling
12244 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12245 Remove it from the iterate_over_some_symtabs call.
12246 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12247 Remove it from the partial_map_expand_apply calls, remove a block
12248 handling it. Drop gdb_realpath call and cleanups from the real_path
12250 * source.c (openp): Drop the comment part about xfullpath. Replace
12251 xfullpath calls by gdb_realpath calls.
12252 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12253 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12254 from method map_symtabs_matching_filename and its comment.
12255 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12257 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12258 remove it also from the function comment, remove a block handling it.
12259 Drop gdb_realpath call and cleanups from the real_path handling.
12260 (iterate_over_symtabs): Drop variable full_path and its use.
12261 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12262 * utils.c (xfullpath): Remove.
12263 * utils.h (xfullpath): Remove.
12265 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12267 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12268 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12269 (ALLDEPFILES): Add ppc64-tdep.c.
12270 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12271 ppc64-tdep.o to gdb_target_obs.
12272 * ppc64-tdep.h: New file.
12273 * ppc64-tdep.c: New file.
12274 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12275 ppc-linux-tdep.c to here.
12276 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12277 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12278 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12279 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12280 from ppc-linux-tdep.c to here.
12281 (ppc64_convert_from_func_ptr_addr): Rename from
12282 ppc64_linux_convert_from_func_ptr_addr to
12283 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12286 (read_insn): Move from ppc-linux-tdep.c to here.
12287 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12288 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12289 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12290 Removed above functions.
12291 (ppc_linux_init_abi): Adjust.
12293 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12295 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12297 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12299 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12301 2013-02-01 Pedro Alves <palves@redhat.com>
12303 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12304 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12306 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12308 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12309 files with no separate debug info.
12310 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12311 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12312 only for files with no separate debug info.
12314 2013-01-31 Tom Tromey <tromey@redhat.com>
12316 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12318 (struct jit_program_space_data): Rename from jit_inferior_data.
12320 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12321 Change return type. Attach data to program space.
12322 (jit_program_space_data_cleanup): Rename from
12323 jit_inferior_data_cleanup; change argument type.
12324 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12326 (jit_register_code): Update.
12327 (jit_update_inferior_cache): Remove.
12328 (jit_breakpoint_deleted): Get jit data from the location's program
12330 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12331 'ps_data', change type.
12332 (jit_inferior_init, jit_breakpoint_re_set_internal)
12333 (jit_event_handler): Update.
12334 (free_objfile_data): Get data from objfile's program space.
12335 (_initialize_jit): Update.
12337 2013-01-31 Tom Tromey <tromey@redhat.com>
12340 * jit.c (struct jit_inferior_data) <cached_code_address,
12341 jit_breakpoint>: New fields.
12342 (jit_breakpoint_re_set_internal): Fix logging. Only create
12343 breakpoint if cached address has changed.
12344 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12346 (_initialize_jit): Register breakpoint deleted observer.
12348 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12350 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12351 (save_infcall_suspend_state): Ifdef out unused inf.
12352 (restore_infcall_suspend_state): Ifdef out unused inf.
12353 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12354 (jit_frame_sniffer): Remove unused inf_data.
12356 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12358 * c-exp.y (classify_inner_name): Remove unused type.
12359 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12360 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12362 (c_get_string): Remove unused kind.
12363 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12365 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12367 * charset.c (intermediate_encoding): Remove unused i.
12368 * completer.c (signal_completer): Remove unused i.
12369 * continuations.c (discard_my_continuations_1): Remove unused
12371 * corelow.c (core_close): Remove unuseD name.
12372 (get_core_siginfo): Remove unused pid.
12373 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12375 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12376 (loclist_describe_location): Remove unused first.
12377 * event-top.c (command_line_handler): Remove unused got_eof.
12378 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12379 (resize_section_table): Remove unused old_value.
12380 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12381 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12382 * i386-tdep.c (i386_process_record): Remove unused rex.
12383 * infcmd.c (get_return_value): Remove unused uiout.
12384 * jv-lang.c (type_from_class): Remove unused is_array.
12385 * jv-valprint.c (java_val_print): Remove unused i.
12386 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12387 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12388 * m2-typeprint.c (m2_print_type): Remove unused code.
12389 * macroexp.c (get_character_constant): Remove unused body_start.
12390 (macro_stringify): Remove unused result.
12391 * objc-lang.c (find_methods): Remove unused gdbarch.
12392 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12393 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12394 * stack.c (print_frame_args): Remove unused summary.
12395 * thread.c (thread_apply_command): Remove unused p.
12396 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12397 * valops.c (search_struct_method): Remove unused skip.
12398 * valprint.c (generic_val_print): Remove unused byte_order.
12399 * varobj.c (varobj_update): Remove unused changed.
12400 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12401 (alias_command): Remove unused c.
12402 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12403 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12405 (mi_cmd_data_write_memory): Remove unused word_format.
12406 (mi_cmd_data_write_memory_bytes): Remove unused r.
12407 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12409 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12410 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12413 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12415 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12416 * symtab.c (iterate_over_symtabs): Remove unused s.
12417 (find_pc_sect_symtab): Remove unused pspAce.
12418 (find_pc_sect_line): Remove unused alt_symtab.
12419 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12420 (completion_list_add_name): Remove unused newsize.
12422 2013-01-31 Tom Tromey <tromey@redhat.com>
12425 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12428 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12430 * target.c (target_read_string): Remove unused origlen.
12432 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12434 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12435 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12436 * ax-general.c (ax_print): Remove unused is_float.
12437 * blockframe.c (block_innermost_frame): Remove unused start, end.
12438 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12440 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12442 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12443 (svr4_read_so_list): Remove unused lmo.
12444 * solib-target.c (solib_target_relocate_section_addresses): Remove
12447 2013-01-30 Tom Tromey <tromey@redhat.com>
12449 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12451 2013-01-30 Tom Tromey <tromey@redhat.com>
12453 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12454 * utils.c (gnu_debuglink_crc32): Remove.
12455 * utils.h (gnu_debuglink_crc32): Don't declare.
12457 2013-01-30 Tom Tromey <tromey@redhat.com>
12459 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12460 (read_structure_type, read_enumeration_type): Remove cast.
12462 2013-01-30 Tom Tromey <tromey@redhat.com>
12464 * dwarf2read.c (read_namespace_type): Remove cast.
12465 (read_typedef): Likewise.
12467 2013-01-29 Tom Tromey <tromey@redhat.com>
12469 * dwarf2read.c (free_dwo_file): Remove assert.
12471 2013-01-29 Tom Tromey <tromey@redhat.com>
12473 * value.c (deprecated_set_value_modifiable): Remove.
12474 * value.h (deprecated_set_value_modifiable): Remove.
12476 2013-01-28 Doug Evans <dje@google.com>
12478 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12479 to addresses from dwo files.
12481 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12483 * valops.c (find_overload_match): Remove unused argument 'lax'.
12484 * value.h: Remove unused argument 'lax' from the declaration of
12485 find_overload_match.
12486 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12487 to find_overload_match.
12488 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12489 argument to find_overload_match.
12491 2013-01-25 Tom Tromey <tromey@redhat.com>
12493 * dwarf2read.c (processing_has_namespace_info): Remove.
12494 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12495 (process_die, read_func_scope, dwarf2_start_symtab)
12496 (new_symbol_full): Update.
12498 2013-01-25 Tom Tromey <tromey@redhat.com>
12500 * cp-namespace.c (cp_set_block_scope): Remove.
12501 * cp-support.h (cp_set_block_scope): Remove.
12502 * dbxread.c: Include block.h.
12503 (cp_set_block_scope): New function.
12504 (process_one_symbol): Update.
12505 * dwarf2read.c (read_func_scope): Use block_set_scope.
12507 2013-01-25 Pedro Alves <palves@redhat.com>
12509 * remote.c (add_current_inferior_and_thread): Tweak comment.
12511 2013-01-25 Tom Tromey <tromey@redhat.com>
12513 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12514 (cp_add_using_directive): Add 'copy_names' argument.
12515 * cp-support.h (cp_add_using_directive): Update.
12516 (struct using_direct) <import_src, import_dest, alias,
12517 declaration>: Now const.
12518 * dwarf2read.c (read_import_statement): Use obconcat.
12519 Don't copy names passed to cp_add_using_directive.
12521 2013-01-25 Tom Tromey <tromey@redhat.com>
12523 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12525 2013-01-25 Pedro Alves <palves@redhat.com>
12527 * remote.c (stop_reply_extract_thread): New.
12528 (add_current_inferior_and_thread): New parameter 'wait_status'.
12530 (remote_start_remote): Pass wait status to
12531 add_current_inferior_and_thread.
12532 (extended_remote_run): Update comment.
12533 (extended_remote_create_inferior_1): Pass wait status to
12534 add_current_inferior_and_thread.
12536 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12537 Ulrich Weigand <uweigand@de.ibm.com>
12539 * valarith.c (value_vector_widen): New function for replicating a
12540 scalar into a vector.
12541 (value_binop): Use value_vector_widen to widen scalar to vector
12542 rather than casting, this better matches gcc C behaviour.
12543 * valops.c (value_casst): Update logic for casting between vector
12544 types, and for casting from scalar to vector, try to match gcc C
12546 * value.h (value_vector_widen): Declare.
12547 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12548 function, handle special case for casting scalar to vector.
12549 (opencl_relop): Use opencl_value_cast.
12550 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12551 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12552 in order to use opencl_value_cast.
12554 2013-01-25 Yao Qi <yao@codesourcery.com>
12556 * event-loop.c: Include "queue.h".
12557 (gdb_event_p): New typedef.
12558 (DECLARE_QUEUE_P): Use.
12559 (DEFINE_QUEUE_P): Use.
12560 (async_queue_event): Remove.
12561 (gdb_event_xfree): New.
12562 (initialize_event_loop): New.
12563 (process_event): Use QUEUE macros.
12564 (event_queue): Remove.
12565 (gdb_wait_for_event): Caller update.
12566 (check_async_event_handlers): Likewise.
12567 (poll_timers): Likewise.
12568 * event-loop.h (initialize_event_loop): Declare.
12569 * event-loop.c (gdb_event_xfree): New.
12570 * top.c (gdb_init): Call initialize_event_loop.
12572 2013-01-25 Yao Qi <yao@codesourcery.com>
12574 * event-loop.c (async_queue_event): Remove one parameter
12575 'position'. Remove code handling 'position' == TAIL.
12576 (gdb_wait_for_event): Caller update.
12577 (check_async_event_handlers): Caller update.
12578 (poll_timers): Caller update.
12579 * event-loop.h (enum queue_position): Remove.
12581 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12583 * MAINTAINERS: Update my email.
12585 2013-01-25 Yao Qi <yao@codesourcery.com>
12587 * main.c (print_gdb_help): Remove "--epoch" from the help
12590 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12592 * symtab.c (skip_prologue_using_sal): Consider a file
12593 change the same as an increased line number
12595 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12597 * MAINTAINERS (Write After Approval): Add myself to the list.
12599 2013-01-24 Tom Tromey <tromey@redhat.com>
12601 * ada-lang.h (ada_decode_symbol): Make return type const.
12602 * ada-lang.c (ada_decode_symbol): Likewise.
12604 2013-01-23 Doug Evans <dje@google.com>
12606 * linespec.c (find_linespec_symbols): Make static.
12608 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12610 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12611 type on float conversion for complex type.
12613 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12615 Add a new class gdb.Architecture which exposes GDB's
12616 internal representation of architecture via GDB Python API.
12617 * Makefile.in: Add entries corresponding to the new file
12619 * NEWS (Python Scripting): Add entries for the new class
12620 gdb.Architecture and the new method gdb.Frame.architecture.
12621 * python/py-arch.c: Implement gdb.Architecture class.
12622 * python/py-frame.c (frapy_arch): Implement the method
12623 gdb.Frame.architecture().
12624 (frame_object_methods): Add 'architecture' to the method table.
12625 * python/python-internal.h: Add declarations of new utility
12627 * python/python.c (_initialize_python): Initialize
12628 gdb.Architecture class.
12630 2013-01-23 Doug Evans <dje@google.com>
12632 Work around binutils/15021.
12633 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12634 type_unit_group out of union s. All uses updated.
12635 (read_index_from_section): Watch for index version 8.
12636 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12637 an imported symtab.
12638 (write_psymtabs_to_index): Increment version number to 8.
12640 2013-01-22 Pedro Alves <palves@redhat.com>
12642 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12645 2013-01-22 Pedro Alves <palves@redhat.com>
12647 * annotate.c (annotate_breakpoints_changed): Rename to ...
12648 (annotate_breakpoints_invalid): ... this. Make static.
12649 (breakpoint_changed): Adjust.
12650 (_initialize_annotate): Always install the observers. Install a
12651 "breakpoint_created" observer.
12652 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12653 * breakpoint.c (set_breakpoint_condition)
12654 (breakpoint_set_commands, do_map_commands_command)
12655 (init_raw_breakpoint, clear_command, set_ignore_count)
12656 (enable_breakpoint_disp): No longer call
12657 annotate_breakpoints_changed.
12659 2013-01-22 Pedro Alves <palves@redhat.com>
12661 * annotate.c: Include "inferior.h".
12662 (frames_invalid_emitted)
12663 (breakpoints_invalid_emitted): New globals.
12664 (async_background_execution_p): New function.
12665 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12666 emitting the annotation if it has already been emitted.
12667 (annotate_display_prompt): New function.
12668 * annotate.h (annotate_display_prompt): New declaration.
12669 * event-top.c: Include annotate.h.
12670 (display_gdb_prompt): Call annotate_display_prompt.
12672 2013-01-22 Pedro Alves <palves@redhat.com>
12674 * annotate.c (ignore_count_changed): Delete.
12675 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12676 (annotate_ignore_count_change): Delete.
12677 (annotate_stopped): Don't emit a delayed breakpoints-changed
12679 * annotate.h (annotate_ignore_count_change): Delete.
12680 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12681 annotate_ignore_count_change.
12683 2013-01-22 Tom Tromey <tromey@redhat.com>
12685 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12686 require_rvalue for a register location.
12688 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12690 * breakpoint.c (print_one_breakpoint_location): Add MI
12691 field 'thread-groups' when printing a breakpoint.
12692 (output_thread_groups): New function.
12694 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12696 * python/lib/gdb/commands/explore.py
12697 (CompoundExplorer.explore_expr): Correct the name of a method
12699 (ExploreTypeCommand.invoke): Add a missing 'return'.
12701 2013-01-21 Tom Tromey <tromey@redhat.com>
12703 * gdb_obstack.h (obconcat): Move declaration here, from...
12704 * symfile.h (obconcat): ... here.
12705 * gdb_obstack.c: New file.
12706 (obconcat): Move from...
12707 * symfile.c (obconcat): ... here.
12708 * Makefile.in (SFILES): Add gdb_obstack.c.
12709 (COMMON_OBS): Add gdb_obstack.o.
12711 2013-01-21 Tom Tromey <tromey@redhat.com>
12713 * symfile.h (obsavestring): Don't declare.
12714 * symfile.c (obsavestring): Remove.
12715 * ada-exp.y: Use obstack_copy0, not obsavestring.
12716 * ada-lang.c: Use obstack_copy0, not obsavestring.
12717 * coffread.c: Use obstack_copy0, not obsavestring.
12718 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12719 * dbxread.c: Use obstack_copy0, not obsavestring.
12720 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12721 * jit.c: Use obstack_copy0, not obsavestring.
12722 * mdebugread.c: Use obstack_copy0, not obsavestring.
12723 * psymtab.c: Use obstack_copy0, not obsavestring.
12724 * stabsread.c: Use obstack_copy0, not obsavestring.
12725 * xcoffread.c: Use obstack_copy0, not obsavestring.
12727 2013-01-21 Tom Tromey <tromey@redhat.com>
12729 * dwarf2read.c (fixup_go_packaging): Save package name
12730 on objfile obstack.
12731 * gdbtypes.c (init_type): Don't copy name.
12733 2013-01-21 Tom Tromey <tromey@redhat.com>
12735 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12737 (struct attribute) <u.str>: Now const.
12738 (struct fnfieldlist) <name>: Now const.
12739 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12740 (partial_die_parent_scope): Make return type const.
12741 (partial_die_full_name, add_partial_symbol): Update.
12742 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12744 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12745 (read_file_scope, read_func_scope, dwarf2_add_field)
12746 (dwarf2_add_member_fn, read_structure_type)
12747 (process_enumeration_scope, read_array_type, read_module_type)
12748 (read_base_type, read_subrange_type): Update.
12749 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12750 (new_symbol_full, guess_full_die_structure_name): Update.
12751 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12752 (dwarf2_name): Return const type.
12753 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12756 2013-01-21 Tom Tromey <tromey@redhat.com>
12758 * gdbtypes.c (init_type): Make 'name' const.
12759 * gdbtypes.h (init_type): Update.
12761 2013-01-21 Tom Tromey <tromey@redhat.com>
12763 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12764 (start_symtab): Make 'name' and 'dirname' const. Use
12765 set_last_source_file.
12766 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12767 (last_source_file): Define. Now static.
12768 (set_last_source_file, get_last_source_file): New functions.
12769 * buildsym.h (last_source_file): Don't declare.
12770 (start_symtab): Update.
12771 (set_last_source_file, get_last_source_file): Declare.
12772 * coffread.c (complete_symtab): Use set_last_source_file.
12773 (coff_end_symtab): Likewise.
12774 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12775 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12776 set_last_source_file.
12777 (process_one_symbol): Use get_last_source_file.
12778 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12779 (psymtab_to_symtab_1): Use get_last_source_file.
12780 * xcoffread.c (process_linenos): Use get_last_source_file.
12781 (complete_symtab): Use set_last_source_file.
12782 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12783 (scan_xcoff_symtab): Use set_last_source_file.
12785 2013-01-21 Tom Tromey <tromey@redhat.com>
12787 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12788 (symbol_set_names): Remove casts. Handle field const-ness.
12790 2013-01-21 Tom Tromey <tromey@redhat.com>
12792 * dwarf2read.c (new_symbol_full): Remove cast.
12793 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12794 * symtab.h (symbol_set_demangled_name): Update.
12796 2013-01-21 Tom Tromey <tromey@redhat.com>
12798 * main.c (captured_main): Call bfd_init.
12800 2013-01-21 Tom Tromey <tromey@redhat.com>
12802 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12803 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12804 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12807 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12809 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12811 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12813 Fix gdb.fortran/common-block.exp crash in PIE mode.
12814 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12816 * f-valprint.c (info_common_command_for_block): Expect
12817 LOC_COMMON_BLOCK in gdb_assert.
12818 * symtab.h (struct general_symbol_info): Update comment for the
12819 common_block member.
12820 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12821 (enum address_class): New member LOC_COMMON_BLOCK.
12823 2013-01-18 David Blaikie <dblaikie@gmail.com>
12825 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12827 2013-01-18 Tom Tromey <tromey@redhat.com>
12830 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12831 Call require_rvalue.
12833 2013-01-18 Yao Qi <yao@codesourcery.com>
12835 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12836 (dbx_read_symtab): New declaration.
12837 (dbx_psymtab_to_symtab): Delete.
12838 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12839 Rename parameter PST to SELF. Exchanged two parameters.
12840 (start_psymtab): Caller update.
12841 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12842 (dwarf2_read_symtab): New declaration.
12843 (dwarf2_psymtab_to_symtab): Delete.
12844 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12845 Rename parameter PST to SELF. Exchanged two parameters.
12846 (create_partial_symtab): Caller update.
12847 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12848 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12849 Rename parameter PST to SELF. Exchanged two parameters.
12850 (parse_partial_symbols, new_psymtab): Caller update.
12851 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12853 * psymtab.c (psymtab_to_symtab): Caller update.
12854 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12855 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12856 Rename parameter PST to SELF. Exchanged two parameters.
12857 (xcoff_start_psymtab): Caller update.
12859 2013-01-18 Yao Qi <yao@codesourcery.com>
12861 * infrun.c (proceed): Rename local variable 'oneproc' to
12864 2013-01-17 Doug Evans <dje@google.com>
12866 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12867 (dw2_build_type_unit_groups): Delete. All uses updated.
12869 * symtab.h (struct symbol_search): Add comment.
12871 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12873 * symtab.c (compare_filenames_for_search): New comment for
12876 2013-01-17 Tom Tromey <tromey@redhat.com>
12878 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12880 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12882 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12883 initialize it by existing make_cleanup. Call new do_cleanups.
12885 2013-01-17 Tom Tromey <tromey@redhat.com>
12887 * cp-abi.c (cp_abi_completer): New function.
12888 (_initialize_cp_abi): Set completer for "set cp-abi".
12890 2013-01-17 Tom Tromey <tromey@redhat.com>
12892 * mem-break.c: Remove obsolete comment.
12893 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12895 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12897 * jit.c (jit_reader_load_command): Interpret the jit reader name
12898 as an absolute path if it begins with a forward slash.
12900 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12904 * jit.c (finalize_symtab): Ensure that only the global block has a
12907 2013-01-17 Pedro Alves <palves@redhat.com>
12909 * acinclude.m4: Include ../config/plugins.m4,
12910 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12911 * Makefile.in (aclocal_m4_deps): Update.
12912 * aclocal.m4: Renegerate.
12914 2013-01-16 Doug Evans <dje@google.com>
12916 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12918 2013-01-16 Pedro Alves <palves@redhat.com>
12919 Tom Tromey <tromey@redhat.com>
12922 * NEWS: Add "catch signal".
12923 * breakpoint.c (base_breakpoint_ops): No longer static.
12924 (bpstat_explains_signal): New function.
12925 (init_catchpoint): No longer static.
12926 (base_breakpoint_explains_signal): New function.
12927 (base_breakpoint_ops): Initialize new field.
12928 * breakpoint.h (enum bpstat_signal_value): New.
12929 (struct breakpoint_ops) <explains_signal>: New field.
12930 (bpstat_explains_signal): Remove macro, declare as function.
12931 (base_breakpoint_ops, init_catchpoint): Declare.
12932 * break-catch-sig.c: New file.
12933 * inferior.h (signal_catch_update): Declare.
12934 * infrun.c (signal_catch): New global.
12935 (handle_syscall_event): Update for change to
12936 bpstat_explains_signal.
12937 (handle_inferior_event): Likewise. Always handle random signals
12939 (signal_cache_update): Check signal_catch.
12940 (signal_catch_update): New function.
12941 (_initialize_infrun): Initialize signal_catch.
12942 * Makefile.in (SFILES): Add break-catch-sig.c.
12943 (COMMON_OBS): Add break-catch-sig.o.
12945 2013-01-16 Tom Tromey <tromey@redhat.com>
12947 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12948 (print_one_catch_solib, print_one_catch_syscall)
12949 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12952 2013-01-16 Yao Qi <yao@codesourcery.com>
12954 * printcmd.c (current_display_number): Make it static.
12956 2013-01-16 Yao Qi <yao@codesourcery.com>
12958 * infcmd.c (step_once): Don't check '!single_inst' as it was
12961 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12963 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12965 2013-01-14 Tom Tromey <tromey@redhat.com>
12967 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12969 * command.h (add_setshow_string_noescape_cmd): Update.
12970 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12971 (complete_set_gnutarget): New function.
12972 (_initialize_core): Set the "set gnutarget" completer.
12974 2013-01-14 Tom Tromey <tromey@redhat.com>
12977 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12978 (c_type_print_modifier): Likewise.
12979 * dwarf2read.c (read_tag_restrict_type): New function.
12980 (read_type_die_1): Handle DW_TAG_restrict_type.
12981 * gdbtypes.c (make_restrict_type): New function.
12982 (recursive_dump_type): Handle TYPE_RESTRICT.
12983 * gdbtypes.h (enum type_flag_values): Renumber.
12984 (enum type_instance_flag_value): Add
12985 TYPE_INSTANCE_FLAG_RESTRICT.
12986 (TYPE_RESTRICT): New macro.
12987 (make_restrict_type): Declare.
12989 2013-01-14 Tom Tromey <tromey@redhat.com>
12992 * psymtab.c (struct psymtab_state): New.
12993 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12995 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12996 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12998 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12999 Pedro Alves <palves@redhat.com>
13003 * remote.c (remote_threads_info): Make a copy of the reply from
13004 qfThreadInfo and use that instead of rs->buf.
13006 2013-01-14 Yao Qi <yao@codesourcery.com>
13008 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13009 (dbx_psymtab_to_symtab): Likewise.
13010 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13011 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13012 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13014 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13016 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13017 make_cleanup_restore_current_language. Call set_language. Move
13018 OLD_CHAIN and INNER_CHAIN cleanups.
13019 * utils.c (do_restore_current_language)
13020 (make_cleanup_restore_current_language): New functions.
13021 * utils.h (make_cleanup_restore_current_language): New declaration.
13023 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13025 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13026 non-existing files.
13028 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13029 non-existing files if FILENAME is already absolute.
13031 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13033 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13034 fputs_filtered. Append trailing newline.
13036 2013-01-11 Yao Qi <yao@codesourcery.com>
13037 Stan Shebs <stan@codesourcery.com>
13039 * psymtab.c (init_psymbol_list): Clarify the comment.
13041 2013-01-11 Yao Qi <yao@codesourcery.com>
13043 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13044 (update_dprintf_command_list): Assert that 'printf_line' is
13045 non-null. Remove condition check.
13047 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13050 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13052 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13054 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13056 2013-01-09 Anthony Green <green@moxielogic.com>
13058 * cp-abi.c (cplus_print_vtable): Don't return value from void
13060 * ada-lang.c (re_set_catch_assert): Ditto.
13062 2013-01-09 Doug Evans <dje@google.com>
13064 * symfile.h (quick_symbol_functions): Delete member
13065 pre_expand_symtabs_matching. All uses removed.
13066 * dwarf2read.c (dw2_lookup_symbol): Implement.
13067 (dw2_do_expand_symtabs_matching): Delete.
13068 (dw2_pre_expand_symtabs_matching): Delete.
13069 (struct dw2_symtab_iterator): New type.
13070 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13071 (dw2_expand_symtabs_for_function): Rewrite.
13072 (dwarf2_gdb_index_functions): Update.
13073 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13074 (psym_functions): Update.
13076 2013-01-09 Tom Tromey <tromey@redhat.com>
13078 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13079 * configure: Rebuild.
13080 * configure.ac: Add somread.o to the build if BFD has SOM
13082 * somread.c: Include som/aout.h, not syms.h.
13083 (som_symtab_read): Use som_external_symbol_dictionary_record.
13084 Unpack records manually.
13085 (_initialize_somread): Declare.
13087 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13089 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13090 Cast return_address to 64bits.
13092 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13094 * printcmd.c: Remove define of function output_command.
13095 * tracepoint.c: Remove extern of function output_command.
13096 * valprint.h: (output_command): New extern.
13098 2013-01-07 Tom Tromey <tromey@redhat.com>
13100 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13102 (objc_language_defn): Use c_printchar, c_printstr,
13105 2013-01-07 Tom Tromey <tromey@redhat.com>
13109 * ada-valprint.c (printstr, print_field_values): Remove
13111 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13113 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13115 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13116 * main.c (captured_main): Remove "epoch" argument.
13117 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13118 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13119 * p-valprint.c (pascal_object_print_value_fields): Remove
13121 * printcmd.c (print_command_1): Remove 'inspect' argument.
13122 (print_command, call_command): Update.
13123 (inspect_command): Remove.
13124 (_initialize_printcmd): Make "inspect" an alias for "print".
13125 * top.c (epoch_interface): Remove.
13126 * top.h (epoch_interface): Remove.
13127 * valprint.c (user_print_options): Update.
13128 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13129 * valprint.h (struct value_print_options) <inspect_it>: Remove
13132 2013-01-04 Tom Tromey <tromey@redhat.com>
13134 * valprint.h (read_string): Add 'extern'.
13136 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13138 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13139 used to decide whether to define darwin_read_dyld_info or not.
13141 2013-01-03 Pierre Muller <muller@sourceware.org>
13143 * main.c (relocate_gdb_directory): Avoid calling stat function
13146 2013-01-03 Yao Qi <yao@codesourcery.com>
13148 * psymtab.c (fixup_psymbol_section): Update declaration.
13149 (fixup_psymbol_section): Remove code returning value.
13151 2013-01-03 Yao Qi <yao@codesourcery.com>
13153 * symtab.h: Remove some out of date comments.
13154 (enum exception_event_kind): Move it ...
13155 * breakpoint.c: ... here.
13157 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13160 * darwin-nat.c (darwin_read_dyld_info): Only build if
13161 TASK_DYLD_INFO_COUNT is defined.
13162 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13163 TASK_DYLD_INFO_COUNT is defined.
13165 2013-01-02 Tom Tromey <tromey@redhat.com>
13167 * symfile.h (struct ecoff_debug_hack): Remove.
13168 * objfiles.c: Don't include mdebugread.h.
13170 2013-01-02 Tom Tromey <tromey@redhat.com>
13172 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13173 * configure.ac: Check for Mach-O support in BFD. Update
13175 * configure: Rebuild.
13177 2013-01-02 Tom Tromey <tromey@redhat.com>
13179 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13180 * configure.ac: Use GDB_AC_CHECK_BFD.
13181 * configure: Rebuild.
13183 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13185 * MAINTAINERS: Update my email.
13187 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13189 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13191 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13193 * rs6000-nat.c (bss_data_overlap): New function.
13194 (vmap_symtab): Use it to adjust the .bss section's offset.
13196 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13198 Update year range in copyright notice of all files.
13200 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13202 * top.c (print_gdb_version): Update copyright year.
13204 For older changes see ChangeLog-2012.
13210 version-control: never