1 2013-12-16 Pedro Alves <palves@redhat.com>
4 * sol-thread.c (check_for_thread_db): If the target can't run or
5 isn't a core, return without pushing.
7 2013-12-15 Joel Brobecker <brobecker@adacore.com>
9 Revert the following commit:
10 * solib.c (solib_map_sections): Remove code overwriting
11 SO->SO_NAME with the bfd's filename.
13 Make the following changes required after the revert above:
14 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
15 returned bfd to a copy of the synthetic pathname.
16 * solib-darwin.c (darwin_bfd_open): Set the filename of the
17 returned bfd to a copy of PATHNAME.
19 2013-12-13 Joel Brobecker <brobecker@adacore.com>
21 * ada-lang.c (ada_array_bound_from_type): Move the declaration
22 and assignment of variable "elt_type" inside the else block
23 where it is used. Add two missing check_typedef calls.
24 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
25 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
27 2013-12-13 Joel Brobecker <brobecker@adacore.com>
29 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
30 between 'struct type *' and 'arr_type'.
32 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
35 * NEWS (Python Scripting): Add entry for the new feature and the
36 new attribute of gdb.Field objects.
37 * python/py-type.c (gdbpy_is_field): New function
38 (convert_field): Add 'parent_type' attribute to gdb.Field
40 * python/py-value.c (valpy_getitem): Allow subscript value to be
42 (value_has_field): New function
43 (get_field_flag): New function
44 * python/python-internal.h (gdbpy_is_field): Add declaration.
46 2013-12-12 Pedro Alves <palves@redhat.com>
48 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
49 const, and remove casts.
51 2013-12-12 Pedro Alves <palves@redhat.com>
53 * cli/cli-cmds.c (source_script_from_stream) Use have_python
54 instead of catching UNSUPPORTED_ERROR.
55 * exceptions.h (UNSUPPORTED_ERROR): Delete.
56 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
58 * python/python.h (have_python): New static inline function.
60 2013-12-11 Doug Evans <dje@google.com>
62 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
63 "can't find DWO" warning.
65 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
67 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
68 to get_probe_argument_count and evaluate_probe_argument.
69 * probe.c (get_probe_argument_count): Adjust declaration to accept
70 frame. Pass frame to probe_ops's get_probe_argument_count.
71 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
72 (probe_safe_evaluate_at_pc): Pass frame to
73 get_probe_argument_count and evaluate_probe_argument.
74 * probe.h (struct probe_ops) <get_probe_argument_count,
75 evaluate_probe_argument>: Adjust declarations to accept frame.
76 (get_probe_argument_count, evaluate_probe_argument): Likewise.
77 * solib-svr4.c (solib_event_probe_action): Get current frame.
78 Pass it to get_probe_argument_count.
79 (svr4_handle_solib_event): Get current frame. Pass it to
80 get_probe_argument_count and evaluate_probe_argument.
81 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
82 accept gdbarch. Do not obtain it from the probe's objfile.
83 (stap_get_probe_argument_count): Adjust declaration to accept
84 frame. Obtain gdbarch from the frame. Call generic
85 can_evaluate_probe_arguments. Pass gdbarch to
86 stap_parse_probe_arguments.
87 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
88 stap_parse_probe_arguments.
89 (stap_evaluate_probe_argument): Adjust declaration to accept
90 frame. Obtain gdbarch from the frame. Pass gdbarch to
92 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
93 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
94 get_probe_argument_count and evaluate_probe_argument.
96 2013-12-10 Doug Evans <dje@google.com>
99 * c-lang.c (c_get_string): Ignore the declared size of the object
100 if a specific length is requested.
102 2013-12-10 Doug Evans <dje@google.com>
104 * interps.h (interp_exec_p): Delete.
105 * interps.c (interp_exec_p): Delete.
106 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
107 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
109 2013-12-10 Yao Qi <yao@codesourcery.com>
111 * amd64-tdep.c (amd64_analyze_stack_align): Call
112 target_read_code instead of target_read_memory.
113 (amd64_analyze_prologue): Call read_code_unsigned_integer
114 instead of read_memory_unsigned_integer. Call read_code
115 instead of read_memory.
116 (amd64_skip_xmm_prologue): Likewise.
118 2013-12-10 Yao Qi <yao@codesourcery.com>
120 * corefile.c (read_code): New function.
121 (read_code_integer): New function.
122 (read_code_unsigned_integer): New function.
123 * gdbcore.h (read_code): Declare.
124 (read_code_integer): Declare.
125 (read_code_unsigned_integer): Declare.
126 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
127 of target_read_memory. Call read_code_unsigned_integer instead
128 of read_memory_unsigned_integer.
129 (i386_analyze_struct_return): Likewise.
130 (i386_skip_probe): Likewise.
131 (i386_analyze_stack_align): Likewise.
132 (i386_match_pattern): Likewise.
133 (i386_skip_noop): Likewise.
134 (i386_analyze_frame_setup): Likewise.
135 (i386_analyze_register_saves): Likewise.
136 (i386_skip_prologue): Likewise.
137 (i386_skip_main_prologue): Likewise.
138 (i386_frame_cache_1): Likewise.
140 2013-12-10 Yao Qi <yao@codesourcery.com>
142 * infrun.c: Include "target-dcache.h".
143 (prepare_for_detach): Call target_dcache_invalidate.
144 (wait_for_inferior): Likewise.
145 (fetch_inferior_event): Likewise.
146 (infrun_thread_stop_requested_callback): Likewise. Set
147 overlay_cache_invalid to 1.
149 2013-12-10 Joel Brobecker <brobecker@adacore.com>
151 * symtab.c (symbol_find_demangled_name): Add handling of
154 2013-12-10 Joel Brobecker <brobecker@adacore.com>
156 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
157 * NEWS: Expand the entry documenting the new -exec-run --start
158 option to mention the corresponding new entry in the output of
161 2013-12-10 Joel Brobecker <brobecker@adacore.com>
163 * windows-nat.c (handle_load_dll): Add comments.
164 (windows_ensure_ntdll_loaded): New function.
165 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
168 2013-12-08 Joel Brobecker <brobecker@adacore.com>
172 2013-12-08 Yao Qi <yao@codesourcery.com>
174 * stack.c (frame_info): Initialize variable caller_pc.
176 2013-12-06 Pedro Alves <palves@redhat.com>
178 * frame.c (enum cached_copy_status): New enum.
179 (struct frame_info) <prev_pc.p>: Change type to enum
181 (fprint_frame): Handle not saved and unavailable prev_pc values.
182 (frame_unwind_pc_if_available): Delete and merge contents into ...
183 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
184 to use enum cached_copy_status.
185 (frame_unwind_caller_pc_if_available): Delete.
186 (create_new_frame): Adjust.
187 * frame.h (frame_unwind_caller_pc_if_available): Delete
189 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
190 frame_unwind_caller_pc_if_available, and handle
191 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
192 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
193 (val_print_not_saved): New function.
194 * valprint.h (val_print_not_saved): Declare.
196 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
197 Pedro Alves <palves@redhat.com>
199 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
200 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
201 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
202 * spu-tdep.c (spu_software_single_step): Throw
204 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
206 2013-12-06 Tom Tromey <tromey@redhat.com>
208 * objfiles.c (free_objfile): Update comment.
210 2013-12-06 Tom Tromey <tromey@redhat.com>
212 * objfiles.h (objfile_to_front): Remove.
213 * objfiles.c (objfile_to_front): Remove.
215 2013-12-06 Tom Tromey <tromey@redhat.com>
217 * minsyms.c (get_symbol_leading_char): Remove unnecessary
220 2013-12-06 Tom Tromey <tromey@redhat.com>
222 * psympriv.h (struct partial_symtab) <user>: Move earlier.
224 2013-12-06 Tom Tromey <tromey@redhat.com>
226 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
227 (list_command): Likewise.
229 2013-12-06 Tom Tromey <tromey@redhat.com>
231 * psymtab.c (allocate_psymtab): Put the filename in the filename
234 2013-12-06 Tom Tromey <tromey@redhat.com>
236 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
237 * symtab.h (struct symtab) <dirname>: Now const.
239 2013-12-06 Tom Tromey <tromey@redhat.com>
241 * symfile.c (allocate_symtab): Remove cast.
242 * symtab.h (struct symtab) <filename>: Now const.
244 2013-12-06 Tom Tromey <tromey@redhat.com>
246 * break-catch-throw.c (fetch_probe_arguments): Use
247 get_probe_argument_count and evaluate_probe_argument.
248 * elfread.c (elf_get_probe_argument_count)
249 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
250 (elf_compile_to_ax): Remove.
251 (elf_probe_fns): Update.
252 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
253 (evaluate_probe_argument): Call method on probe, not via sym
255 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
256 evaluate_probe_argument.
257 (compile_probe_arg): Use get_probe_argument_count. Call method on
258 probe, not via sym functions.
259 * symfile-debug.c (debug_sym_get_probe_argument_count)
260 (debug_can_evaluate_probe_arguments)
261 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
263 (debug_sym_probe_fns): Remove.
264 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
265 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
266 sym_compile_to_ax>: Remove fields.
268 2013-12-06 Pierre Muller <muller@sourceware.org>
270 Fix completion for pascal language.
271 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
272 (exp : field_exp name COMPLETE): New rule.
273 (exp : SIZEOF): Set correct current_type.
274 (last_was_structop): Remove static variable.
275 (yylex): Remove saw_structop local variable.
276 Adapt code to removal of variables above.
278 2013-12-06 Joel Brobecker <brobecker@adacore.com>
280 * frame.c (get_prev_frame_1): Delete variable "this_id".
281 Replace its use by a call to get_frame_id.
283 2013-12-05 Anthony Green <green@moxielogic.com>
285 * moxie-tdep.c (moxie_software_single_step): New function.
286 (INST2OFFSET): New helper macro.
287 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
288 (moxie_process_readu): Move this up in the file.
290 2013-12-05 Doug Evans <xdje42@gmail.com>
292 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
294 2013-12-05 Joel Brobecker <brobecker@adacore.com>
295 Tristan Gingold <gingold@adacore.com>
297 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
298 Accept version 2. Ignore operations using opcode 6.
300 2013-12-05 Joel Brobecker <brobecker@adacore.com>
302 * ada-lex.l (find_dot_all): Fix coding style violations.
304 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
306 * NEWS: Add section for Intel(R) Architecture Instructions
307 Extesions mentioning MPX.
309 2013-12-03 Joel Brobecker <brobecker@adacore.com>
311 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
313 2013-12-03 Joel Brobecker <brobecker@adacore.com>
315 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
316 when parse_exp_1 threw an error. Add comment.
318 2013-12-03 Joel Brobecker <brobecker@adacore.com>
320 * NEWS: Mention "-list-features" in the entry documenting
321 the support for the "--language" option.
323 2013-12-03 Tom Tromey <tromey@redhat.com>
324 Jan Kratochvil <jan.kratochvil@redhat.com>
325 Doug Evans <dje@google.com>
326 Samuel Bronson <naesten@gmail.com>
328 Bring back gdb-add-index as a contrib script.
329 * contrib/gdb-add-index.sh: New file.
330 * NEWS: Note the addition.
332 2013-12-03 Samuel Bronson <naesten@gmail.com>
334 * MAINTAINERS (Write After Approval): Add myself to the list.
336 2013-12-03 Joel Brobecker <brobecker@adacore.com>
338 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
340 2013-12-03 Joel Brobecker <brobecker@adacore.com>
342 * mi/mi-main.c: Remove trailing spaces throughout.
344 2013-12-03 Pedro Alves <palves@redhat.com>
345 Joel Brobecker <brobecker@adacore.com>
347 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
348 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
349 of a regular error when the GDB/MI command does not exist.
350 * mi/mi-main.c (mi_cmd_list_features): Add
351 "undefined-command-error-code".
352 (mi_print_exception): Print an "undefined-command"
353 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
354 * NEWS: Add entry documenting the new "code" variable in
355 "^error" result records.
357 2013-12-03 Joel Brobecker <brobecker@adacore.com>
359 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
360 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
361 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
362 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
363 field to output of "-list-features".
365 * NEWS: Add entry for new -info-gdb-mi-command.
367 2013-12-02 Doug Evans <dje@google.com>
368 Jan Kratochvil <jan.kratochvil@redhat.com>
370 * objfiles.c (allocate_objfile): Save original_name as an absolute
372 * objfiles.h (struct objfile): Expand comment on original_name.
373 * source.c (openp): Call gdb_abspath.
374 * utils.c (gdb_abspath): New function.
375 * utils.h (gdb_abspath): Declare.
377 2013-12-02 Pedro Alves <palves@redhat.com>
379 * dcache.c (dcache_read_line): Use target_read_raw_memory.
380 * target.c (target_read_raw_memory): New function.
381 (target_read_stack, target_write_memory, target_write_raw_memory):
383 (target_read_code): Add comment.
384 * target.h (target_read_raw_memory): Declare.
386 2013-12-02 Pedro Alves <palves@redhat.com>
388 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
391 2013-12-02 Pedro Alves <pedro@codesourcery.com>
392 Maciej W. Rozycki <macro@codesourcery.com>
394 * remote.c (putpkt_for_catch_errors): Remove function.
395 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
398 2013-12-02 Pedro Alves <palves@redhat.com>
401 * remote-notif.c (handle_notification): Return early if no
402 notification is found.
404 2013-12-02 Joel Brobecker <brobecker@adacore.com>
406 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
409 2013-12-02 Joel Brobecker <brobecker@adacore.com>
411 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
413 2013-12-02 Joel Brobecker <brobecker@adacore.com>
415 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
416 * ctf.c (ctf_start): Remove obsolete comment.
418 2013-12-02 Joel Brobecker <brobecker@adacore.com>
420 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
422 2013-11-30 Doug Evans <xdje42@gmail.com>
424 * auto-load.h (script_language): New members name, auto_load_enabled.
425 Add missing comments on struct members.
426 (auto_load_objfile_script): Delete.
427 * auto-load.c: #include "cli/cli-cmds.h".
428 (auto_load_gdb_scripts_enabled): New function.
429 (script_language_gdb): Update, add new members.
430 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
431 and call to maybe_add_script moved to caller.
432 (auto_load_objfile_script_1): Auto-load safe-checking and
433 call to maybe_add_script moved here.
434 (auto_load_objfile_script): Make static. Early exit if support for
435 scripting language hasn't been compiled in, or auto-loading has been
437 (source_section_scripts): Argument "source_name" renamed to
438 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
439 with section_name. Skip loading script if support for scripting
440 language hasn't been compiled in, or auto-loading has been disabled.
441 Call language->source_script_for_objfile instead of calling
442 source_python_script_for_objfile directly.
443 (load_auto_scripts_for_objfile): Update.
444 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
445 (gdbpy_load_auto_script_for_objfile): Delete.
446 (auto_load_python_scripts_enabled): New function.
447 (script_language_python): Update, add new members.
448 (gdbpy_script_language_defn): New function.
449 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
450 (gdbpy_script_language_defn): Declare.
452 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
453 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
454 (source_section_scripts): Moved here from py-auto-load.c.
455 (auto_load_section_scripts): Ditto.
456 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
457 auto-load.c, renamed AUTO_SECTION_NAME.
458 (source_section_scripts, auto_load_section_scripts): Moved to
461 2013-11-30 Yao Qi <yao@codesourcery.com>
463 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
465 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
467 * gdbarch.sh: Remove include of "gdb_string.h", replace by
470 2013-11-29 Doug Evans <xdje42@gmail.com>
472 * python/py-auto-load.c (source_section_scripts): Move comment to
473 more relevant location.
476 * python/py-breakpoint.c: Remove trailing whitespace.
477 * python/py-cmd.c: Ditto.
478 * python/py-evts.c: Ditto.
479 * python/py-finishbreakpoint.c: Ditto.
480 * python/py-frame.c: Ditto.
481 * python/py-function.c: Ditto.
482 * python/py-inferior.c: Ditto.
483 * python/py-infthread.c: Ditto.
484 * python/py-param.c: Ditto.
485 * python/py-prettyprint.c: Ditto.
486 * python/py-symbol.c: Ditto.
487 * python/py-type.c: Ditto.
488 * python/py-utils.c: Ditto.
489 * python/py-value.c: Ditto.
490 * python/python-internal.h: Ditto.
491 * python/python.c: Ditto.
493 2013-11-29 Pedro Alves <palves@redhat.com>
495 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
497 2013-11-29 Pedro Alves <palves@redhat.com>
499 * breakpoint.c (build_target_condition_list): Release previous
501 (build_target_command_list): Release previous commands.
502 (bp_location_dtor): Release target conditions and commands.
503 * remote.c (remote_add_target_side_condition): Don't release
505 (remote_add_target_side_commands): Don't release commands.
507 2013-11-29 Yao Qi <yao@codesourcery.com>
508 Pedro Alves <palves@redhat.com>
510 * dcache.c (dcache_read_line): Use current_target.beneath
511 instead of ¤t_target.
512 * target.c (memory_xfer_partial_1): Factor code out to ...
513 (raw_memory_xfer_partial): ... it. New function.
514 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
515 is TARGET_OBJECT_RAW_MEMORY.
517 2013-11-28 Doug Evans <xdje42@gmail.com>
519 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
520 breakpoint_object. All uses updated.
521 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
522 breakpoint_object. All uses updated.
523 * python.c (*): All uses of breakpoint_object updated.
524 * python.h (*): All uses of breakpoint_object updated.
525 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
526 * python/py-finishbreakpoint.c (*): Ditto.
528 2013-11-28 Doug Evans <xdje42@gmail.com>
530 * configure.ac: Add comments delineating libpython and libmcheck.
531 * configure: Regenerate.
533 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
534 Pedro Alves <palves@redhat.com>
536 * valprint.c (value_check_printable): If the value is entirely
537 unavailable, print a single "<unavailable>" instead of printing
540 2013-11-28 Pedro Alves <palves@redhat.com>
542 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
543 Add "set debug frame" output.
544 (frame_stop_reason_symbol_string): New function.
546 2013-11-28 Pedro Alves <palves@redhat.com>
548 * frame-unwind.c (default_frame_unwind_stop_reason): Return
549 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
550 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
552 2013-11-28 Pedro Alves <palves@redhat.com>
554 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
555 set the unwind stop reason to UNWIND_OUTERMOST, not
556 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
558 2013-11-28 Pedro Alves <palves@redhat.com>
560 * frame.c (frame_unwind_register): Say the register was "not
561 saved" instead of "optimized out".
563 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
566 * configure: Rebuild.
567 * configure.ac: Tighten cygwin detection check.
569 2013-11-27 Pedro Alves <palves@redhat.com>
571 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
572 register in the previous frame's arch.
574 2013-11-27 Pedro Alves <palves@redhat.com>
576 * frame-unwind.c (frame_unwind_got_optimized): Return
577 an lval_register value instead of a not_lval value.
579 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
581 * frame.c: Include "valprint.h".
582 (frame_unwind_register_value): Use value_optimized_out.
583 * value.c (value_fetch_lazy): Likewise.
585 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
587 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
589 2013-11-26 Tom Tromey <tromey@redhat.com>
591 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
594 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
596 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
597 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
598 (HAS_MPX): New macro.
599 (HAS_AVX): New macro.
600 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
602 2013-11-25 Keith Seitz <keiths@redhat.com>
605 * c-exp.y (classify_inner_name): If no matching symbol was
606 found, try looking up the token as a base class.
607 Likewise if a constructor was found.
608 * cp-namespace.c (find_type_baseclass_by_name): New function.
609 * cp-support.h (find_type_baseclass_by_name): Declare.
610 * valops.c (value_struct_elt_for_reference): If we get
611 a non-static field, try to get a value based on the
612 current instance, if any.
614 2013-11-24 Yao Qi <yao@codesourcery.com>
616 * disasm.c (dis_asm_read_memory): Call target_read_code
617 instead of target_read_memory.
619 2013-11-24 Yao Qi <yao@codesourcery.com>
621 * NEWS: Add note on new "set code-cache" option.
622 * target-dcache.c (code_cache_enabled_1): New variable.
623 (code_cache_enabled): New variable.
624 (show_code_cache, set_code_cache): New function.
625 (code_cache_enabled_p): New function.
626 (_initialize_target_dcache): Register command.
627 * target-dcache.h (code_cache_enabled_p): Declare.
628 * target.c (memory_xfer_partial_1):Handle
629 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
630 (target_read_code): New function.
631 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
633 (target_read_code): Declare.
635 2013-11-24 Yao Qi <yao@codesourcery.com>
637 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
638 (stack_cache_enabled_1): ... this. New variable.
639 (stack_cache_enabled_p): Rename to ...
640 (stack_cache_enabled): ... this. New variable.
641 (set_stack_cache_enabled_p): Rename to ...
642 (set_stack_cache): ... this. Update caller.
643 (show_stack_cache_enabled_p): Rename to ...
644 (show_stack_cache): ... this. Update caller.
645 (stack_cache_enabled): Rename to ...
646 (stack_cache_enabled_p): ... this. Update caller.
647 (_initialize_target_dcache): Replace "data cache" with
648 "target memory cache".
649 * target-dcache.h (stack_cache_enabled): Remove declaration.
650 (stack_cache_enabled_p): Add declaration.
652 2013-11-23 Doug Evans <xdje42@gmail.com>
654 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
657 2013-11-23 Doug Evans <xdje42@gmail.com>
659 * python/py-frame.c (frapy_block): Fix error message text.
661 2013-11-23 Doug Evans <xdje42@gmail.com>
663 * cli/cli-script.c (multi_line_command_p): New function.
664 (recurse_read_control_structure, read_command_lines_1): Call it.
665 (execute_control_command): Consistently have a blank line between
668 2013-11-22 Sterling Augustine <saugustine@google.com>
671 * valprint.c (read_string): Set new variable fetchlen based on
672 fetchlimit and size. Use it in call to partial_memory_read.
675 2013-11-22 Tom Tromey <tromey@redhat.com>
678 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
679 the return address column is unspecified.
681 2013-11-22 Tom Tromey <tromey@redhat.com>
682 Pedro Alves <palves@redhat.com>
685 * value.c (value_fetch_lazy): Internal error if
686 get_frame_register_value returns the same register.
688 2013-11-22 Pedro Alves <palves@redhat.com>
689 Tom Tromey <tromey@redhat.com>
691 * frame.c (frame_stash_add): Now returns whether a frame with the
692 same ID was already known.
693 (compute_frame_id): New function, factored out from get_frame_id.
694 (get_frame_id): No longer lazilly compute the frame id here.
695 (get_prev_frame_if_no_cycle): New function. Detects wider stack
697 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
698 and checking for stack cycles here.
700 2013-11-22 Pedro Alves <palves@redhat.com>
703 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
704 this frame and the new previous frame, not between this frame and
707 2013-11-22 Pedro Alves <palves@redhat.com>
710 * dwarf2-frame.c (struct dwarf2_frame_cache)
711 <checked_tailcall_bottom, entry_cfa_sp_offset,
712 entry_cfa_sp_offset_p>: New fields.
713 (dwarf2_frame_cache): Adjust to use the new cache fields instead
714 of locals. Don't call dwarf2_tailcall_sniffer_first here.
715 (dwarf2_frame_prev_register): Call it here, but only once.
717 2013-11-21 Doug Evans <xdje42@gmail.com>
719 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
720 (type_equality_entry): Move here from python/py-type.c.
721 (type_equality_entry_d): Ditto.
722 (compare_maybe_null_strings, check_types_equal): Ditto.
723 (check_types_worklist, types_deeply_equal): Ditto.
724 * gdbtypes.h (types_deeply_equal): Declare.
725 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
726 (typy_richcompare): Update.
728 2013-11-20 Joel Brobecker <brobecker@adacore.com>
730 * python/py-value.c (is_intlike): Delete.
731 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
732 by use of is_integral_type.
733 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
734 by use of is_integral_type and check for TYPE_CODE_PTR.
736 2013-11-20 Tom Tromey <tromey@redhat.com>
738 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
740 * gnulib/aclocal.m4: Update.
741 * gnulib/config.in: Update.
742 * gnulib/configure: Update.
743 * gnulib/import/Makefile.am: Update.
744 * gnulib/import/Makefile.in: Update.
745 * gnulib/import/errno.in.h: Remove.
746 * gnulib/import/intprops.h: Remove.
747 * gnulib/import/m4/errno_h.m4: Remove.
748 * gnulib/import/m4/gnulib-cache.m4: Update.
749 * gnulib/import/m4/gnulib-comp.m4: Update.
750 * gnulib/import/m4/strerror.m4: Remove.
751 * gnulib/import/m4/sys_socket_h.m4: Remove.
752 * gnulib/import/strerror-override.c: Remove.
753 * gnulib/import/strerror-override.h: Remove.
754 * gnulib/import/strerror.c: Remove.
755 * gnulib/update-gnulib.sh: Update.
757 2013-11-20 Yao Qi <yao@codesourcery.com>
759 * target-dcache.c (target_dcache_get_or_init): Call
760 set_address_space_data if 'dcache' is NULL.
762 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
764 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
766 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
768 * python/lib/gdb/command/bound_register.py: New file.
769 * data-directory/Makefile.in: Copy bond_register.py to the right path
770 to be initialized at gdb startup.
772 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
774 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
776 (amd64_linux_read_description): Add initialization for MPX and
778 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
779 (amd64_linux_gregset_reg_offset): Add MPX registers.
780 (amd64_linux_core_read_description): Add initialization for MPX
782 (_initialize_amd64_linux_tdep): Initialize MPX targets.
783 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
784 register on the list.
785 (tdesc_amd64_mpx_linux) Add new target for MPX.
786 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
787 (amd64_mpx_names): MPX register names.
788 (amd64_init_abi): Add MPX register while initializing the ABI.
789 (_initialize_amd64_tdep): Initialize MPX targets.
790 * amd64-tdep.h (amd64_regnum): Add MPX registers.
791 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
793 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
795 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
796 registers on the range of registers to be read from
798 (i386_linux_read_description): Add case for MPX.
799 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
800 (i386_linux_gregset_reg_offset): Add MPX registers.
801 (i386_linux_core_read_description): Initialize also MPX.
802 (_initialize_i386_linux_tdep): Add mpx initialization.
803 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
805 (i386_regnum): Add MPX registers.
806 (I386_MPX_NUM_REGS): New macro.
807 (i386_bnd_regnum_p): New function.
808 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
809 number of registers to be the number of BNDSTATUS.
810 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
811 * i386-tdep.c: Include features/i386/i386-mpx.c.
812 (i386_mpx_names): Add MPX register names array.
813 (i386_bnd_names): Add bnd pseudo register names array.
814 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
816 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
817 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
819 (i386_bnd_type): New function.
820 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
822 (i386_pseudo_register_read_into_value): Add bnd case.
823 (i386_pseudo_register_write): Add bnd pseudo registers.
824 (i386_register_reggroup_p): Add MPX register to the group all.
825 (i386_validate_tdesc_p): Add MPX to the target description
827 (i386_pseudo_register_name): Add bnd pseudo registers.
828 (i386_gdbarch_init): Add MPX for architecture initialization.
829 (_initia_initialize_i386_tdep): Add mpx initialization.
830 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
832 (XSAVE_MPX_ADDR): New macro.
833 (i387_supply_xsave): Add MPX case.
834 (i387_collect_xsave): Add MPX case.
835 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
836 (I387_BNDCFGU_REGNUM): New macro.
837 (I387_NUM_MPX_REGS): New macro.
838 (I387_NUM_BND_REGS): New macro.
839 (I387_NUM_MPX_CTRL_REGS): New macro.
840 (I387_MPXEND_REGNUM): New macro.
841 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
842 (I386_XSTATE_BNDCFG): Likewise.
843 (I386_XSTATE_MPX_MASK): Likewise.
844 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
845 (I386_XSTATE_BNDREGS_SIZE): New macro.
846 (I386_XSTATE_BNDCFG_SIZE): Likewise.
847 (I386_XSTATE_SIZE): Adapt for MPX.
848 (I386_XSTATE_MAX_SIZE): Likewise.
850 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
852 * features/i386/Makefile: Adapts for using MPX registers.
853 * features/i386/32bit-mpx.xml: New file.
854 * features/i386/64bit-mpx.xml: Likewise.
855 * features/i386/amd64-mpx-linux.c: Likewise.
856 * features/i386/amd64-mpx-linux.xml: Likewise.
857 * features/i386/amd64-mpx.c: Likewise.
858 * features/i386/amd64-mpx.xml: Likewise.
859 * features/i386/i386-mpx-linux.c: Likewise.
860 * features/i386/i386-mpx-linux.xml: Likewise.
861 * features/i386/i386-mpx.c: Likewise.
862 * features/i386/i386-mpx.xml: Likewise.
863 * regformats/i386/amd64-mpx-linux.dat: New file.
864 * regformats/i386/amd64-mpx.dat: Likewise.
865 * regformats/i386/i386-mpx-linux.dat: Likewise.
866 * regformats/i386/i386-mpx.dat: Likewise.
868 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
870 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
871 Modified logic of creating a bitfield to be in sync with
874 2013-11-20 Will Newton <will.newton@linaro.org>
876 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
879 2013-11-20 Yao Qi <yao@codesourcery.com>
881 * progspace.h (struct address_space_data): Declare.
882 * target-dcache.c: Include "progspace.h".
883 (target_dache): Remove.
884 (target_dcache_aspace_key): New.
885 (target_dcache_cleanup): New function.
886 (target_dcache_init_p): Get data through
887 target_dcache_aspace_key.
888 (target_dcache_invalidate): Likewise.
889 (target_dcache_get): Likewise.
890 (target_dcache_get_or_init): Likewise.
891 (_initialize_target_dcache): Initialize
892 target_dcache_aspace_key.
894 2013-11-20 Yao Qi <yao@codesourcery.com>
896 * progspace.c (struct address_space): Update comments.
897 <REGISTRY_FIELDS>: New fields.
898 DEFINE_REGISTRY for address_space.
899 (new_address_space): Call address_space_alloc_data.
900 (free_address_space): Call address_space_free_data.
901 * progspace.h: Use DECLARE_REGISTRY.
903 2013-11-20 Yao Qi <yao@codesourcery.com>
905 * Makefile.in (SFILES):Add target-dcache.c.
906 (HFILES_NO_SRCDIR): Add target-dcache.h.
907 (COMMON_OBS): Add target-dcache.o.
908 * dcache.c: Remove inclusion to "target.h". Include
910 * memattr.c: Include "target-dcache.h".
912 * tracepoint.c: Likewise.
913 * target.c: (stack_cache_enabled_p_1): Move to
915 (stack_cache_enabled_p): Likewise.
916 (set_stack_cache_enabled_p): Likewise.
917 (show_stack_cache_enabled_p): Likewise.
918 (target_dcache, target_dcache_init_p): Likewise.
919 (target_dcache_invalidate): Likewise.
920 (target_dcache_get, target_dcache_get_or_init): Likewise.
921 (memory_xfer_partial_1): Call function stack_cache_enabled.
922 (initialize_target): Move code to target-dcache.c.
923 * target.h (target_dcache_invalidate): Move to
925 (target_dcache_get): Likewise.
926 * target-dcache.c: New.
927 * target-dcache.h: New.
929 2013-11-20 Yao Qi <yao@codesourcery.com>
931 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
934 2013-11-20 Yao Qi <yao@codesourcery.com>
936 * dcache.c (last_cache): Remove.
937 (dcache_free, dcache_init): Update.
939 (dcache_print_line): Add parameter 'dcache'. Replace
940 'target_dcache' with 'dcache'.
941 (dcache_info): Move code to dcache_info_1. Call
943 (dcache_info_1): New function.
944 (set_dcache_size): Call target_dcache_invalidate.
945 (set_dcache_line_size): Call target_dcache_invalidate.
946 * target.c (target_dcache_init_p): New function.
947 (target_dcache_invalidate): Check target_dcache_init_p first.
948 (target_dcache_get, target_dcache_get_or_init): New function.
949 (memory_xfer_partial_1): Adjust.
950 (initialize_target): Don't initialize 'target_dcache'.
951 * target.h (struct dcache_struct): Declare.
952 (target_dcache_get): Declare.
954 2013-11-19 Yao Qi <yao@codesourcery.com>
956 * varobj.c (varobj_get_type): Fix typo.
958 2013-11-19 Joel Brobecker <brobecker@adacore.com>
960 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
962 2013-11-19 Joel Brobecker <brobecker@adacore.com>
964 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
967 2013-11-18 Tom Tromey <tromey@redhat.com>
969 * common/gdb_stat.h: Remove.
970 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
971 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
972 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
973 * corefile.c: Use sys/stat.h, not gdb_stat.h.
974 * ctf.c: Use sys/stat.h, not gdb_stat.h.
975 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
976 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
977 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
978 * exec.c: Use sys/stat.h, not gdb_stat.h.
979 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
980 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
981 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
982 * jit.c: Use sys/stat.h, not gdb_stat.h.
983 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
984 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
985 * main.c: Use sys/stat.h, not gdb_stat.h.
986 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
987 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
988 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
989 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
990 * procfs.c: Use sys/stat.h, not gdb_stat.h.
991 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
992 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
993 * remote.c: Use sys/stat.h, not gdb_stat.h.
994 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
995 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
996 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
997 * source.c: Use sys/stat.h, not gdb_stat.h.
998 * symfile.c: Use sys/stat.h, not gdb_stat.h.
999 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1000 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1001 * top.c: Use sys/stat.h, not gdb_stat.h.
1002 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1004 2013-11-18 Tom Tromey <tromey@redhat.com>
1006 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1008 * gnulib/aclocal.m4: Update.
1009 * gnulib/config.in: Update.
1010 * gnulib/configure: Update.
1011 * gnulib/import/Makefile.am: Update.
1012 * gnulib/import/Makefile.in: Update.
1013 * gnulib/import/m4/gnulib-cache.m4: Update.
1014 * gnulib/import/m4/gnulib-comp.m4: Update.
1015 * gnulib/import/m4/sys_stat_h.m4: New.
1016 * gnulib/import/m4/time_h.m4: New.
1017 * gnulib/import/sys_stat.in.h: New.
1018 * gnulib/import/time.in.h: New.
1020 2013-11-18 Tom Tromey <tromey@redhat.com>
1022 * configure: Rebuild.
1023 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1025 2013-11-18 Tom Tromey <tromey@redhat.com>
1027 * configure: Rebuild.
1028 * configure.ac: Don't check for unistd.h.
1030 2013-11-18 Tom Tromey <tromey@redhat.com>
1032 * configure: Rebuild.
1033 * configure.ac: Don't check for stdlib.h
1034 * defs.h: Include stdlib.h unconditionally.
1036 2013-11-18 Tom Tromey <tromey@redhat.com>
1038 * config.in: Rebuild.
1039 * configure: Rebuild.
1040 * configure.ac: Don't check for stddef.h.
1041 * defs.h: Unconditionally include stddef.h. Remove duplicate
1044 2013-11-18 Tom Tromey <tromey@redhat.com>
1046 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1047 * common/gdb_dirent.h: Remove.
1048 * common/filestuff.c: Use dirent.h.
1049 * common/linux-osdata.c: Use dirent.h.
1051 * config.in: Rebuild.
1052 * configure: Rebuild.
1053 * configure.ac: Don't use AC_HEADER_DIRENT.
1054 * linux-fork.c: Use dirent.h
1055 * linux-nat.c: Use dirent.h.
1056 * nto-procfs.c: Use dirent.h.
1057 * procfs.c: Use dirent.h.
1059 2013-11-18 Tom Tromey <tromey@redhat.com>
1061 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1062 * gnulib/aclocal.m4: Update.
1063 * gnulib/config.in: Update.
1064 * gnulib/configure: Update.
1065 * gnulib/import/Makefile.am: Update.
1066 * gnulib/import/Makefile.in: Update.
1067 * gnulib/import/dirent.in.h: New.
1068 * gnulib/import/m4/dirent_h.m4: New.
1069 * gnulib/import/m4/gnulib-cache.m4: Update.
1070 * gnulib/import/m4/gnulib-comp.m4: Update.
1072 2013-11-18 Tom Tromey <tromey@redhat.com>
1074 * configure: Rebuild.
1075 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1078 2013-11-18 Tom Tromey <tromey@redhat.com>
1080 * common/gdb_string.h: Remove.
1081 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1082 * ada-exp.y: Use string.h, not gdb_string.h.
1083 * ada-lang.c: Use string.h, not gdb_string.h.
1084 * ada-lex.l: Use string.h, not gdb_string.h.
1085 * ada-typeprint.c: Use string.h, not gdb_string.h.
1086 * ada-valprint.c: Use string.h, not gdb_string.h.
1087 * aix-thread.c: Use string.h, not gdb_string.h.
1088 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1089 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1090 * alpha-nat.c: Use string.h, not gdb_string.h.
1091 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1092 * alpha-tdep.c: Use string.h, not gdb_string.h.
1093 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1094 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1095 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1096 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1097 * amd64-nat.c: Use string.h, not gdb_string.h.
1098 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1099 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1100 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1101 * arch-utils.c: Use string.h, not gdb_string.h.
1102 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1103 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1104 * arm-tdep.c: Use string.h, not gdb_string.h.
1105 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1106 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1107 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1108 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1109 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1110 * avr-tdep.c: Use string.h, not gdb_string.h.
1111 * ax-gdb.c: Use string.h, not gdb_string.h.
1112 * ax-general.c: Use string.h, not gdb_string.h.
1113 * bcache.c: Use string.h, not gdb_string.h.
1114 * bfin-tdep.c: Use string.h, not gdb_string.h.
1115 * breakpoint.c: Use string.h, not gdb_string.h.
1116 * build-id.c: Use string.h, not gdb_string.h.
1117 * buildsym.c: Use string.h, not gdb_string.h.
1118 * c-exp.y: Use string.h, not gdb_string.h.
1119 * c-lang.c: Use string.h, not gdb_string.h.
1120 * c-typeprint.c: Use string.h, not gdb_string.h.
1121 * c-valprint.c: Use string.h, not gdb_string.h.
1122 * charset.c: Use string.h, not gdb_string.h.
1123 * cli-out.c: Use string.h, not gdb_string.h.
1124 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1125 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1126 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1127 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1128 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1129 * cli/cli-script.c: Use string.h, not gdb_string.h.
1130 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1131 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1132 * coffread.c: Use string.h, not gdb_string.h.
1133 * common/common-utils.c: Use string.h, not gdb_string.h.
1134 * common/filestuff.c: Use string.h, not gdb_string.h.
1135 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1136 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1137 * common/signals.c: Use string.h, not gdb_string.h.
1138 * common/vec.h: Use string.h, not gdb_string.h.
1139 * core-regset.c: Use string.h, not gdb_string.h.
1140 * corefile.c: Use string.h, not gdb_string.h.
1141 * corelow.c: Use string.h, not gdb_string.h.
1142 * cp-abi.c: Use string.h, not gdb_string.h.
1143 * cp-support.c: Use string.h, not gdb_string.h.
1144 * cp-valprint.c: Use string.h, not gdb_string.h.
1145 * cris-tdep.c: Use string.h, not gdb_string.h.
1146 * d-lang.c: Use string.h, not gdb_string.h.
1147 * dbxread.c: Use string.h, not gdb_string.h.
1148 * dcache.c: Use string.h, not gdb_string.h.
1149 * demangle.c: Use string.h, not gdb_string.h.
1150 * dicos-tdep.c: Use string.h, not gdb_string.h.
1151 * disasm.c: Use string.h, not gdb_string.h.
1152 * doublest.c: Use string.h, not gdb_string.h.
1153 * dsrec.c: Use string.h, not gdb_string.h.
1154 * dummy-frame.c: Use string.h, not gdb_string.h.
1155 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1156 * dwarf2loc.c: Use string.h, not gdb_string.h.
1157 * dwarf2read.c: Use string.h, not gdb_string.h.
1158 * elfread.c: Use string.h, not gdb_string.h.
1159 * environ.c: Use string.h, not gdb_string.h.
1160 * eval.c: Use string.h, not gdb_string.h.
1161 * event-loop.c: Use string.h, not gdb_string.h.
1162 * exceptions.c: Use string.h, not gdb_string.h.
1163 * exec.c: Use string.h, not gdb_string.h.
1164 * expprint.c: Use string.h, not gdb_string.h.
1165 * f-exp.y: Use string.h, not gdb_string.h.
1166 * f-lang.c: Use string.h, not gdb_string.h.
1167 * f-typeprint.c: Use string.h, not gdb_string.h.
1168 * f-valprint.c: Use string.h, not gdb_string.h.
1169 * fbsd-nat.c: Use string.h, not gdb_string.h.
1170 * findcmd.c: Use string.h, not gdb_string.h.
1171 * findvar.c: Use string.h, not gdb_string.h.
1172 * fork-child.c: Use string.h, not gdb_string.h.
1173 * frame.c: Use string.h, not gdb_string.h.
1174 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1175 * frv-tdep.c: Use string.h, not gdb_string.h.
1176 * gdb.c: Use string.h, not gdb_string.h.
1177 * gdb_bfd.c: Use string.h, not gdb_string.h.
1178 * gdbarch.c: Use string.h, not gdb_string.h.
1179 * gdbtypes.c: Use string.h, not gdb_string.h.
1180 * gnu-nat.c: Use string.h, not gdb_string.h.
1181 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1182 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1183 * go-exp.y: Use string.h, not gdb_string.h.
1184 * go-lang.c: Use string.h, not gdb_string.h.
1185 * go32-nat.c: Use string.h, not gdb_string.h.
1186 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1187 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1188 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1189 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1190 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1191 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1192 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1193 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1194 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1195 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1196 * i386-tdep.c: Use string.h, not gdb_string.h.
1197 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1198 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1199 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1200 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1201 * i387-tdep.c: Use string.h, not gdb_string.h.
1202 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1203 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1204 * inf-child.c: Use string.h, not gdb_string.h.
1205 * inf-ptrace.c: Use string.h, not gdb_string.h.
1206 * inf-ttrace.c: Use string.h, not gdb_string.h.
1207 * infcall.c: Use string.h, not gdb_string.h.
1208 * infcmd.c: Use string.h, not gdb_string.h.
1209 * inflow.c: Use string.h, not gdb_string.h.
1210 * infrun.c: Use string.h, not gdb_string.h.
1211 * interps.c: Use string.h, not gdb_string.h.
1212 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1213 * irix5-nat.c: Use string.h, not gdb_string.h.
1214 * jv-exp.y: Use string.h, not gdb_string.h.
1215 * jv-lang.c: Use string.h, not gdb_string.h.
1216 * jv-typeprint.c: Use string.h, not gdb_string.h.
1217 * jv-valprint.c: Use string.h, not gdb_string.h.
1218 * language.c: Use string.h, not gdb_string.h.
1219 * linux-fork.c: Use string.h, not gdb_string.h.
1220 * linux-nat.c: Use string.h, not gdb_string.h.
1221 * lm32-tdep.c: Use string.h, not gdb_string.h.
1222 * m2-exp.y: Use string.h, not gdb_string.h.
1223 * m2-typeprint.c: Use string.h, not gdb_string.h.
1224 * m32c-tdep.c: Use string.h, not gdb_string.h.
1225 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1226 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1227 * m32r-rom.c: Use string.h, not gdb_string.h.
1228 * m32r-tdep.c: Use string.h, not gdb_string.h.
1229 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1230 * m68k-tdep.c: Use string.h, not gdb_string.h.
1231 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1232 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1233 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1234 * m88k-tdep.c: Use string.h, not gdb_string.h.
1235 * macrocmd.c: Use string.h, not gdb_string.h.
1236 * main.c: Use string.h, not gdb_string.h.
1237 * mdebugread.c: Use string.h, not gdb_string.h.
1238 * mem-break.c: Use string.h, not gdb_string.h.
1239 * memattr.c: Use string.h, not gdb_string.h.
1240 * memory-map.c: Use string.h, not gdb_string.h.
1241 * mep-tdep.c: Use string.h, not gdb_string.h.
1242 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1243 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1244 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1245 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1246 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1247 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1248 * mi/mi-console.c: Use string.h, not gdb_string.h.
1249 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1250 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1251 * mi/mi-main.c: Use string.h, not gdb_string.h.
1252 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1253 * microblaze-rom.c: Use string.h, not gdb_string.h.
1254 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1255 * mingw-hdep.c: Use string.h, not gdb_string.h.
1256 * minidebug.c: Use string.h, not gdb_string.h.
1257 * minsyms.c: Use string.h, not gdb_string.h.
1258 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1259 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1260 * mips-tdep.c: Use string.h, not gdb_string.h.
1261 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1262 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1263 * mipsread.c: Use string.h, not gdb_string.h.
1264 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1265 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1266 * monitor.c: Use string.h, not gdb_string.h.
1267 * moxie-tdep.c: Use string.h, not gdb_string.h.
1268 * mt-tdep.c: Use string.h, not gdb_string.h.
1269 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1270 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1271 * nto-procfs.c: Use string.h, not gdb_string.h.
1272 * nto-tdep.c: Use string.h, not gdb_string.h.
1273 * objc-lang.c: Use string.h, not gdb_string.h.
1274 * objfiles.c: Use string.h, not gdb_string.h.
1275 * opencl-lang.c: Use string.h, not gdb_string.h.
1276 * osabi.c: Use string.h, not gdb_string.h.
1277 * osdata.c: Use string.h, not gdb_string.h.
1278 * p-exp.y: Use string.h, not gdb_string.h.
1279 * p-lang.c: Use string.h, not gdb_string.h.
1280 * p-typeprint.c: Use string.h, not gdb_string.h.
1281 * parse.c: Use string.h, not gdb_string.h.
1282 * posix-hdep.c: Use string.h, not gdb_string.h.
1283 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1284 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1285 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1286 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1287 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1288 * printcmd.c: Use string.h, not gdb_string.h.
1289 * procfs.c: Use string.h, not gdb_string.h.
1290 * prologue-value.c: Use string.h, not gdb_string.h.
1291 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1292 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1293 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1294 * regcache.c: Use string.h, not gdb_string.h.
1295 * registry.c: Use string.h, not gdb_string.h.
1296 * remote-fileio.c: Use string.h, not gdb_string.h.
1297 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1298 * remote-mips.c: Use string.h, not gdb_string.h.
1299 * remote-sim.c: Use string.h, not gdb_string.h.
1300 * remote.c: Use string.h, not gdb_string.h.
1301 * reverse.c: Use string.h, not gdb_string.h.
1302 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1303 * ser-base.c: Use string.h, not gdb_string.h.
1304 * ser-go32.c: Use string.h, not gdb_string.h.
1305 * ser-mingw.c: Use string.h, not gdb_string.h.
1306 * ser-pipe.c: Use string.h, not gdb_string.h.
1307 * ser-tcp.c: Use string.h, not gdb_string.h.
1308 * ser-unix.c: Use string.h, not gdb_string.h.
1309 * serial.c: Use string.h, not gdb_string.h.
1310 * sh-tdep.c: Use string.h, not gdb_string.h.
1311 * sh64-tdep.c: Use string.h, not gdb_string.h.
1312 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1313 * skip.c: Use string.h, not gdb_string.h.
1314 * sol-thread.c: Use string.h, not gdb_string.h.
1315 * solib-dsbt.c: Use string.h, not gdb_string.h.
1316 * solib-frv.c: Use string.h, not gdb_string.h.
1317 * solib-osf.c: Use string.h, not gdb_string.h.
1318 * solib-spu.c: Use string.h, not gdb_string.h.
1319 * solib-target.c: Use string.h, not gdb_string.h.
1320 * solib.c: Use string.h, not gdb_string.h.
1321 * somread.c: Use string.h, not gdb_string.h.
1322 * source.c: Use string.h, not gdb_string.h.
1323 * sparc-nat.c: Use string.h, not gdb_string.h.
1324 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1325 * sparc-tdep.c: Use string.h, not gdb_string.h.
1326 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1327 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1328 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1329 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1330 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1331 * spu-multiarch.c: Use string.h, not gdb_string.h.
1332 * spu-tdep.c: Use string.h, not gdb_string.h.
1333 * stabsread.c: Use string.h, not gdb_string.h.
1334 * stack.c: Use string.h, not gdb_string.h.
1335 * std-regs.c: Use string.h, not gdb_string.h.
1336 * symfile.c: Use string.h, not gdb_string.h.
1337 * symmisc.c: Use string.h, not gdb_string.h.
1338 * symtab.c: Use string.h, not gdb_string.h.
1339 * target.c: Use string.h, not gdb_string.h.
1340 * thread.c: Use string.h, not gdb_string.h.
1341 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1342 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1343 * top.c: Use string.h, not gdb_string.h.
1344 * tracepoint.c: Use string.h, not gdb_string.h.
1345 * tui/tui-command.c: Use string.h, not gdb_string.h.
1346 * tui/tui-data.c: Use string.h, not gdb_string.h.
1347 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1348 * tui/tui-file.c: Use string.h, not gdb_string.h.
1349 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1350 * tui/tui-out.c: Use string.h, not gdb_string.h.
1351 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1352 * tui/tui-source.c: Use string.h, not gdb_string.h.
1353 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1354 * tui/tui-win.c: Use string.h, not gdb_string.h.
1355 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1356 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1357 * typeprint.c: Use string.h, not gdb_string.h.
1358 * ui-file.c: Use string.h, not gdb_string.h.
1359 * ui-out.c: Use string.h, not gdb_string.h.
1360 * user-regs.c: Use string.h, not gdb_string.h.
1361 * utils.c: Use string.h, not gdb_string.h.
1362 * v850-tdep.c: Use string.h, not gdb_string.h.
1363 * valarith.c: Use string.h, not gdb_string.h.
1364 * valops.c: Use string.h, not gdb_string.h.
1365 * valprint.c: Use string.h, not gdb_string.h.
1366 * value.c: Use string.h, not gdb_string.h.
1367 * varobj.c: Use string.h, not gdb_string.h.
1368 * vax-tdep.c: Use string.h, not gdb_string.h.
1369 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1370 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1371 * windows-nat.c: Use string.h, not gdb_string.h.
1372 * xcoffread.c: Use string.h, not gdb_string.h.
1373 * xml-support.c: Use string.h, not gdb_string.h.
1374 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1375 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1377 2013-11-18 Tom Tromey <tromey@redhat.com>
1379 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1381 * gnulib/aclocal.m4: Update.
1382 * gnulib/config.in: Update.
1383 * gnulib/configure: Update.
1384 * gnulib/import/Makefile.am: Update.
1385 * gnulib/import/Makefile.in: Update.
1386 * gnulib/import/errno.in.h: New.
1387 * gnulib/import/intprops.h: New.
1388 * gnulib/import/m4/errno_h.m4: New.
1389 * gnulib/import/m4/gnulib-cache.m4: Update.
1390 * gnulib/import/m4/gnulib-comp.m4: Update.
1391 * gnulib/import/m4/strerror.m4: New.
1392 * gnulib/import/m4/strstr.m4: New.
1393 * gnulib/import/m4/sys_socket_h.m4: New.
1394 * gnulib/import/strerror-override.c: New.
1395 * gnulib/import/strerror-override.h: New.
1396 * gnulib/import/strerror.c: New.
1397 * gnulib/import/strstr.c: New.
1399 2013-11-18 Tom Tromey <tromey@redhat.com>
1401 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1404 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1406 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1407 * sparc-tdep.h: And its prototype.
1409 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1411 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1413 2013-11-18 Pedro Alves <palves@redhat.com>
1415 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1418 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1420 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1421 to -list-features output.
1423 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1425 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1426 <read_addr_from_reg>: Renames "read_reg".
1427 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1429 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1430 Use read_addr_from_reg in place of read_reg.
1431 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1432 in place of read_reg.
1433 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1434 dwarf_expr_read_reg.
1435 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1436 with dwarf_expr_read_addr_from_reg.
1437 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1438 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1439 needs_frame_read_addr_from_reg.
1441 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1443 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1445 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1447 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1450 2013-11-15 Tom Tromey <tromey@redhat.com>
1453 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1454 (classify_name): Likewise. Prefer a field of "this" over a
1456 (classify_inner_name, yylex): Update.
1458 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1460 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1461 Extend the documentation a bit.
1462 <get_reg_value>: New field.
1463 * dwarf2loc.c (dwarf_expr_get_reg_value)
1464 (needs_frame_get_reg_value): New functions.
1465 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1467 * dwarf2-frame.c (get_reg_value): New function.
1468 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1469 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1470 Use new callback to compute result_val.
1472 2013-11-15 Alan Modra <amodra@gmail.com>
1474 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1475 (ppc64_desc_entry_point): ..this. Update comments here and at
1477 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1478 ppc64_standard_linkage3): Update comments.
1479 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1480 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1482 (ppc64_standard_linkage4_target): New function.
1483 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1484 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1485 nop match. Fix comment wrap.
1487 2013-11-14 Pedro Alves <palves@redhat.com>
1489 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1490 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1492 2013-11-14 Pedro Alves <palves@redhat.com>
1494 * infrun.c (struct execution_control_state)
1495 <stepped_after_stopped_by_watchpoint>: New field.
1496 (get_inferior_stop_soon): New function.
1497 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1498 moved to struct execution_control_state -- adjust. Use
1499 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1501 (handle_signal_stop): New function, factored out from
1502 handle_inferior_event.
1504 2013-11-14 Pedro Alves <palves@redhat.com>
1506 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1508 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1510 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1511 Adjust to return a boolean.
1512 * breakpoint.h (enum bpstat_signal_value): Delete.
1513 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1514 (bpstat_explains_signal): Likewise.
1515 * infrun.c (handle_inferior_event) <random signal checks>:
1516 bpstat_explains_signal now returns a boolean - adjust. No longer
1517 consider hiding signals.
1519 2013-11-14 Pedro Alves <palves@redhat.com>
1521 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1522 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1523 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1525 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1526 instead of BPSTAT_SIGNAL_HIDE.
1527 * infrun.c (handle_inferior_event): Rework random signal checks.
1529 2013-11-14 Pedro Alves <palves@redhat.com>
1531 * infrun.c (struct execution_control_state): Remove
1532 'random_signal' field.
1533 (handle_syscall_event): Use bpstat_causes_stop instead of
1534 bpstat_explains_signal. Don't set ecs->random_signal.
1535 (handle_inferior_event): New 'random_signal' local.
1536 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1537 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1538 bpstat_explains_signal. Don't set ecs->random_signal.
1539 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1542 2013-11-14 Pedro Alves <palves@redhat.com>
1544 * infrun.c (handle_inferior_event): Move comment from the
1545 function's body to the function's description, adjusted.
1547 2013-11-14 Pedro Alves <palves@redhat.com>
1549 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1550 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1551 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1554 2013-11-14 Tom Tromey <tromey@redhat.com>
1556 * python/py-linetable.c (ltpy_has_line)
1557 (ltpy_get_all_source_lines): Fix loop termination condition.
1559 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1561 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1562 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1563 PARSE->LANGUAGE during command execution, if set.
1564 * mi/mi-parse.c: Add "language.h" #include.
1565 (mi_parse): Add parsing of "--language" command option.
1567 * NEWS: Add entry mentioning the new "--language" command option.
1569 2013-11-14 Pedro Alves <palves@redhat.com>
1570 Joel Brobecker <brobecker@adacore.com>
1572 * cli/cli-utils.h (extract_arg_const): Add declaration.
1573 * cli/cli-utils.c (extract_arg_const): New function.
1574 (extract_arg): Reimplement using extract_arg_const.
1576 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1578 * language.h: Add "symtab.h" #include.
1580 2013-11-13 Doug Evans <xdje42@gmail.com>
1582 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1583 specific breakpoints, don't evaluate breakpoint condition if
1586 2013-11-13 Keith Seitz <keiths@redhat.com>
1590 * cp-support.c (insepct_type): Add support for substituting
1591 namespace aliases, too.
1592 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1593 for DW_TAG_imported_declaration.
1594 (add_partial_symbol): Likewise.
1595 (process_die): Handle namespace aliases with
1596 read_namespace_alias.
1597 (die_needs_namespace): Add DW_TAG_imported_declaration.
1598 (read_namespace_alias): New function.
1599 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1600 (new_symbol_full): Handle DW_TAG_imported_declaration.
1602 2013-11-13 Keith Seitz <keiths@redhat.com>
1604 * p-exp.y (uptok): Make first parameter const.
1605 (yylex): Make `tokstart' and `tokptr' const.
1606 Don't copy the lexer input to a temporary buffer.
1608 Remove const workaround for parse_escape.
1609 Create a temporary buffer for a convenience variable instead
1610 of doing in-place modification of the input.
1611 If a match is found with a different case from the input,
1612 do not change the input at all.
1613 Use `tmp' to construct the resultant stoken instead of
1616 2013-11-13 Doug Evans <xdje42@gmail.com>
1618 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1620 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1622 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1623 entry with "ada-exceptions".
1625 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1627 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1628 after re-initialization of OBJFILE's obstack.
1630 2013-11-12 Doug Evans <xdje42@gmail.com>
1632 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1633 bs->stop != 0 on entry. Update function comment. Simplify early
1634 exit for frame mismatch. Reindent rest of function.
1636 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1638 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1641 2013-11-12 Doug Evans <dje@google.com>
1643 Work around gold/15646.
1644 * dwarf2read.c (read_index_from_section): Update comment.
1645 (struct dw2_symtab_iterator): New member global_seen.
1646 (dw2_symtab_iter_init): Initialize it.
1647 (dw2_symtab_iter_next): Skip duplicate global symbols.
1648 (dw2_expand_symtabs_matching): Ditto.
1650 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1652 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1653 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1655 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1656 (mi_cmd_info_ada_exceptions): New function.
1657 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1659 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1661 * ada-lang.h: #include "vec.h".
1662 (struct ada_exc_info): New.
1663 (ada_exc_info): New typedef.
1664 (DEF_VEC_O(ada_exc_info)): New vector.
1665 (ada_exceptions_list): Add declaration.
1666 * ada-lang.c (ada_is_exception_sym)
1667 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1668 (sort_remove_dups_ada_exceptions_list)
1669 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1670 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1671 (ada_exceptions_list_1, ada_exceptions_list)
1672 (info_exceptions_command): New function.
1673 (_initialize_ada_language): Add "info exception" command.
1675 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1678 * NEWS: Add linetable feature.
1679 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1680 * python/py-linetable.c: New file.
1681 * python/py-symtab.c (stpy_get_linetable): New function.
1682 * python/python-internal.h (symtab_to_linetable_object): Declare.
1683 (gdbpy_initialize_linetable): Ditto.
1684 * python/python.c (_initialize_python): Call
1685 gdbpy_initialize_linetable.
1687 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1689 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1690 the documentation of fields "except_string" and "condition".
1691 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1692 CONDITION on the heap before passing it to
1693 create_ada_exception_catchpoint.
1694 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1697 2013-11-11 Tom Tromey <tromey@redhat.com>
1699 * config.in, configure: Rebuild.
1700 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1702 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1704 * remote-sim.c (gdbsim_detach): Break declaration into
1705 shorter lines. No code change.
1707 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1709 * remote-sim.c (gdbsim_detach): Fix prototype.
1711 2013-11-08 Doug Evans <dje@google.com>
1713 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1714 (create_debug_types_hash_table): Only print debugging messages for
1715 each TU if dwarf2-read >= 2.
1716 (process_queue): Ditto.
1717 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1720 2013-11-08 Tom Tromey <tromey@redhat.com>
1722 * configure: Rebuild.
1723 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1725 2013-11-08 Tom Tromey <tromey@redhat.com>
1727 * configure, config.in: Rebuild.
1728 * configure.ac: Remove unused configury.
1730 2013-11-08 Tom Tromey <tromey@redhat.com>
1732 * m32c-tdep.c: Use gdb_string.h.
1734 2013-11-08 Tom Tromey <tromey@redhat.com>
1736 * configure, config.in: Rebuild.
1737 * configure.ac: Remove all link.h-related checks.
1739 2013-11-08 Tom Tromey <tromey@redhat.com>
1741 * acinclude.m4: Include common.m4.
1742 * common/common.m4: New file.
1743 * configure, config.in: Rebuild.
1744 * configure.ac: Use GDB_AC_COMMON.
1746 2013-11-08 Doug Evans <dje@google.com>
1748 * NEWS: Mention that "set debug symtab-create" now accepts a
1750 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1751 to set the symtab's primary flag.
1752 * jit.c (finalize_symtab): Ditto.
1753 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1754 * symfile.c (allocate_symtab): Only print debugging messages for
1755 symtab_create_debug levels 2 and higher.
1756 * symtab.c (symtab_create_debug): Change type to unsigned int.
1757 (set_symtab_primary): New function.
1758 (_initialize_symtab): Change "set debug symtab-create" to a
1760 * symtab.h (set_symtab_primary): Declare.
1761 (symtab_create_debug): Update decl.
1763 2013-11-08 Tom Tromey <tromey@redhat.com>
1765 * aix-thread.c (aix_thread_detach): Update.
1766 * corelow.c (core_detach): Update.
1767 * darwin-nat.c (darwin_detach): Update.
1768 * dec-thread.c (dec_thread_detach): Update.
1769 * gnu-nat.c (gnu_detach): Update.
1770 * go32-nat.c (go32_detach): Update.
1771 * inf-ptrace.c (inf_ptrace_detach): Update.
1772 * inf-ttrace.c (inf_ttrace_detach): Update.
1773 * linux-fork.c (linux_fork_detach): Update.
1774 * linux-fork.h (linux_fork_detach): Update.
1775 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1776 local for const-correctness.
1777 * linux-thread-db.c (thread_db_detach): Update.
1778 * monitor.c (monitor_detach): Update.
1779 * nto-procfs.c (procfs_detach): Update.
1780 * procfs.c (procfs_detach): Update.
1781 * record.c (record_detach): Update.
1782 * record.h (record_detach): Update.
1783 * remote-m32r-sdi.c (m32r_detach): Update.
1784 * remote-mips.c (mips_detach): Update.
1785 * remote-sim.c (gdbsim_detach): Update.
1786 * remote.c (remote_detach_1, remote_detach)
1787 (extended_remote_detach): Update.
1788 * sol-thread.c (sol_thread_detach): Update.
1789 * target.c (target_detach): Make "args" const.
1790 (init_dummy_target): Update.
1791 * target.h (struct target_ops) <to_detach>: Make argument const.
1792 (target_detach): Likewise.
1793 * windows-nat.c (windows_detach): Update.
1795 2013-11-07 Doug Evans <dje@google.com>
1798 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1799 and align fields for PT_GNU_RELRO segments.
1801 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1804 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1806 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1808 * NEWS: Document Python temporary breakpoint support.
1809 * python/py-breakpoint.c (bppy_get_temporary): New function.
1810 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1811 to temporary if True.
1813 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1815 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1816 removed to allow analyzing unconditional branch instructions
1817 with PC-relative offsets of zero.
1819 2013-11-07 Yao Qi <yao@codesourcery.com>
1821 * mi/mi-cmd-var.c: Include "language.h".
1822 (mi_cmd_var_info_expression): Get language name from
1824 * varobj.c (varobj_language_string): Remove.
1825 (variable_language): Remove declaration.
1826 (languages): Remove.
1827 (varobj_get_language): Change the type of return value.
1828 (variable_language): Remove.
1829 * varobj.h (enum varobj_languages): Remove.
1830 (varobj_language_string): Remove declaration.
1831 (varobj_get_language): Update declaration.
1833 2013-11-07 Yao Qi <yao@codesourcery.com>
1835 * language.h (struct language_defn) <la_natural_name>: New
1837 * ada-lang.c (ada_language_defn): Initialize field
1839 * c-lang.c (c_language_defn): Likewise.
1840 (cplus_language_defn, asm_language_defn): Likewise.
1841 * d-lang.c (d_language_defn): Likewise.
1842 * f-lang.c (f_language_defn): Likewise.
1843 * go-lang.c (go_language_defn): Likewise.
1844 * jv-lang.c (java_language_defn): Likewise.
1845 * language.c (unknown_language_defn ): Likewise.
1846 (auto_language_defn): Likewise.
1847 * m2-lang.c (m2_language_defn): Likewise.
1848 * objc-lang.c (objc_language_defn): Likewise.
1849 * opencl-lang.c (opencl_language_defn): Likewise.
1850 * p-lang.c (pascal_language_defn): Likewise.
1852 2013-11-07 Yao Qi <yao@codesourcery.com>
1854 * language.c (language_str): Return const char *.
1855 (add_language): Add const to 'language_names'
1856 * language.h (struct language_defn) <la_name>: Add const.
1857 (language_str: Update declaration.
1859 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1861 * s390-linux-nat.c (s390_read_description): Consider the TE field
1862 in the HWCAP for determining 'have_regset_tdb'.
1864 2013-11-06 Will Newton <will.newton@linaro.org>
1867 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1868 values. (read_partial_die): Likewise.
1870 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1873 * top.c (command_line_input): Unify interactivity tests to use
1874 input_from_terminal_p.
1875 * event-top.c (command_line_handler): Likewise.
1877 2013-11-06 Yao Qi <yao@codesourcery.com>
1879 * Makefile.in (check-perf): New target.
1881 2013-11-05 Will Newton <will.newton@linaro.org>
1884 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1885 (arm_print_float_info): Likewise.
1887 2013-11-04 Anton Blanchard <anton@samba.org>
1889 * target.c (memory_xfer_partial): Cap write to 4KB.
1891 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1893 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1894 probe scan even when the arch provides no get_longjmp_target.
1896 2013-10-31 Pedro Alves <palves@redhat.com>
1898 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1899 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1900 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1901 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1902 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1903 <bpstat handling>: If the bpstat chain wants the signal to be
1904 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1907 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1909 * breakpoint.c (update_watchpoint): Update error message and add
1910 an additional error message.
1912 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1914 * s390-tdep.h: Rename to...
1915 * s390-linux-tdep.h: ...here.
1916 * s390-tdep.c: Rename to...
1917 * s390-linux-tdep.c: ...here. Adjust #include.
1918 * s390-nat.c: Rename to...
1919 * s390-linux-nat.c: ...here. Adjust #include.
1920 * config/s390/s390.mh: Rename to...
1921 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1923 * configure.host: Reflect host rename "s390" -> "linux".
1924 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1925 * Makefile.in (ALL_TARGET_OBS): Likewise.
1926 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1928 (ALLDEPFILES): Reflect rename of .c files.
1930 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1932 * s390-nat.c: Whitespace cleanup.
1933 * s390-tdep.c: Likewise.
1934 * s390-tdep.h: Remove empty line at end of file.
1936 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1938 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1941 2013-10-29 Tom Tromey <tromey@redhat.com>
1943 * utils.c (reg): Move undefinition...
1944 * gdb_curses.h: ... here. Update comment to mention AIX.
1946 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1948 * exec.h (add_target_sections_of_objfile): New declaration.
1949 * exec.c (add_target_sections_of_objfile): New function.
1950 * symfile.c (add_symbol_file_command): Update current target sections.
1951 (remove_symbol_file_command): New command.
1952 (symfile_free_objfile): New function.
1953 (_initialize_symfile): Register observer for free_objfile events.
1954 * NEWS: Add description of the remove-symbol-file command.
1955 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1956 * objfiles.c (free_objfile): Notify free_objfile.
1957 (is_addr_in_objfile): New function.
1958 * objfiles.h (is_addr_in_objfile): New declaration.
1959 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1960 events instead of solib_unloaded events.
1961 (_initialize_printcmd): Register observer for free_objfile instead
1962 of solib_unloaded notifications.
1963 * solib.c (remove_user_added_objfile): New function.
1964 (_initialize_symfile): Add remove-symbol-file.
1966 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1968 * infcmd.c (default_print_one_register_info): Use val_print to
1969 print all values even optimized out or unavailable ones. Don't
1970 try to print a raw form of optimized out or unavailable values.
1972 2013-10-29 Yao Qi <yao@codesourcery.com>
1974 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1975 parameter 'arg' instead of from program_space_data.
1976 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1977 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1978 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1979 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1980 * inflow.c (inflow_inferior_data_cleanup): Get data from
1981 parameter 'arg' instead of inferior_data.
1982 * registry.h: Add comments.
1984 2013-10-28 Pedro Alves <palves@redhat.com>
1986 * breakpoint.c (watchpoints_triggered)
1987 <!target_stopped_data_address>: Hardcode return 1.
1989 2013-10-28 Pedro Alves <palves@redhat.com>
1991 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1994 2013-10-28 Pedro Alves <palves@redhat.com>
1996 * infrun.c (process_event_stop_test): New function, factored out
1997 from handle_inferior_event.
1998 (handle_inferior_event): 'process_event_stop_test' is now a
1999 function instead of a goto label -- adjust.
2001 2013-10-28 Pedro Alves <palves@redhat.com>
2003 * infrun.c (handle_inferior_event): Move process_event_stop_test
2004 goto label to the else branch of the ecs->random_signal check,
2005 along with FRAME and GDBARCH re-fetching.
2007 2013-10-28 Pedro Alves <palves@redhat.com>
2009 * infrun.c (switch_back_to_stepped_thread): New function, factored
2010 out from handle_inferior_event.
2011 (handle_inferior_event): Adjust to call
2012 switch_back_to_stepped_thread. Call it also at the tail of the
2013 random signal handling, and return, instead of also handling
2014 random signals just before the stepping tests.
2016 2013-10-28 Pedro Alves <palves@redhat.com>
2018 * infrun.c (clear_stop_func): Delete.
2019 (handle_inferior_event): Don't call clear_stop_func and don't
2020 clear 'ecs->random_signal'.
2022 2013-10-27 Yao Qi <yao@codesourcery.com>
2024 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2025 (varobj_create, varobj_get_path_expr): Update.
2026 (varobj_value_has_mutated, varobj_update): Likewise.
2027 (create_child_with_value, new_root_variable): Likewise.
2028 (number_of_children, name_of_variable): Likewise.
2029 (value_of_child, my_value_of_variable): Likewise.
2030 (varobj_value_is_changeable_p): Likewise.
2032 2013-10-25 Yao Qi <yao@codesourcery.com>
2034 * language.h (struct lang_varobj_ops): Declare.
2035 (struct language_defn) <la_varobj_ops>: New field.
2036 * ada-lang.c: Include "varobj.h"
2037 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2039 * c-lang.c: Include "varobj.h"
2040 (c_language_defn): Initialize field 'la_varobj_ops' with
2042 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2044 (asm_language_defn): Initialize field 'la_varobj_ops' with
2046 (minimal_language_defn): Likewise.
2047 * d-lang.c (d_language_defn): Likewise.
2048 * f-lang.c (f_language_defn): Likewise.
2049 * go-lang.c (go_language_defn): Likewise.
2050 * m2-lang.c (m2_language_defn): Likewise.
2051 * objc-lang.c (objc_language_defn): Likewise.
2052 * opencl-lang.c (opencl_language_defn): Likewise.
2053 * p-lang.c (pascal_language_defn): Likewise.
2054 * language.c (unknown_language_defn): Likewise.
2055 (auto_language_defn): Likewise.
2056 (local_language_defn): Likewise.
2057 * jv-lang.c (java_language_defn): Initialize field
2058 'la_varobj_ops' with java_varobj_ops.
2059 * varobj.c (varobj_create): Update.
2060 * varobj.h (default_varobj_ops): Define macro.
2062 2013-10-25 Pedro Alves <palves@redhat.com>
2064 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2066 (cp_print_static_field): If the value is entirely optimized out,
2067 print <optimized out> here.
2068 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2070 * p-valprint.c (pascal_object_print_static_field): If the value is
2071 entirely optimized out, print <optimized out> here.
2072 * valops.c (do_search_struct_field)
2073 (value_struct_elt_for_reference): No longer handle a NULL static
2075 * value.c (value_static_field): Return an optimized out value
2078 2013-10-25 Yao Qi <yao@codesourcery.com>
2080 * remote.c (remote_traceframe_info): Return early if
2081 traceframe is not selected.
2083 2013-10-25 Yao Qi <yao@codesourcery.com>
2085 * tracepoint.c (traceframe_fun): Remove.
2086 (traceframe_sal): Remove.
2087 (set_traceframe_context): Add local variables.
2089 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2091 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2094 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2096 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2097 failure from register information collection.
2099 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2101 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2103 (linux_corefile_thread_callback): Update accordingly.
2104 (linux_make_corefile_notes): Likewise.
2106 2013-10-24 Pedro Alves <palves@redhat.com>
2108 * NEWS (New options): Mention set/show startup-with-shell.
2109 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2111 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2112 startup-with-shell'.
2113 (show_startup_with_shell): New function.
2114 (_initialize_fork_child): Register the set/show startup-with-shell
2116 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2117 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2118 * procfs.c (procfs_init_inferior): Remove comment.
2119 * infcmd.c (startup_with_shell): New global.
2120 * inferior.h (startup_with_shell): Declare global.
2121 (STARTUP_WITH_SHELL): Delete.
2122 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2124 2013-10-23 Pedro Alves <palves@redhat.com>
2126 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2127 * common/signals.c: Include "gdb_assert.h".
2128 (signals): New field 'symbol'.
2129 (SET): Use the 'symbol' parameter.
2130 (gdb_signal_to_symbol_string): New function.
2131 * infrun.c (handle_inferior_event) <random signal>: In debug
2132 output, print the random signal enum as string in addition to its
2134 * target/waitstatus.c (target_waitstatus_to_string): Print the
2135 signal's enum value as string instead of the (POSIX) signal name.
2137 2013-10-23 Gary Benson <gbenson@redhat.com>
2140 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2141 from 32 to 18. Adjusted fscanf format string accordingly.
2142 (Avoids leaving cmd unterminated.)
2143 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2144 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2145 that local_address and remote_address will not overflow.
2146 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2147 leaving dependencies unterminated. Parse size as "%u" to match
2150 2013-10-22 Pedro Alves <palves@redhat.com>
2152 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2153 set ecs->random signal.
2155 2013-10-22 Pedro Alves <palves@redhat.com>
2157 * infrun.c (keep_going): Update comments.
2159 2013-10-22 Pedro Alves <palves@redhat.com>
2161 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2162 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2164 2013-10-22 Pedro Alves <palves@redhat.com>
2166 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2168 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2169 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2170 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2171 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2172 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2173 (GDB_SIGNAL_LAST): Change description string.
2174 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2175 Adjust to signal renaming.
2176 * darwin-nat.c (darwin_decode_message): Likewise.
2178 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2180 * MAINTAINERS (Write After Approval): Add myself to the list.
2182 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2184 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2185 forced off, downgrade them to software watchpoints if possible,
2186 and error out if not possible.
2187 (watch_command_1): Move watchpoint type selection closer to
2188 watchpoint creation, and extend the comments.
2190 2013-10-18 Pedro Alves <palves@redhat.com>
2193 * infrun.c (handle_inferior_event): Keep going if we got a random
2194 signal we should not stop for, instead of falling through to the
2197 2013-10-18 Yao Qi <yao@codesourcery.com>
2199 * c-varobj.c (cplus_number_of_children): Fix indentation.
2201 2013-10-17 Tom Tromey <tromey@redhat.com>
2204 * printcmd.c (printcmd): Call gdb_flush.
2206 2013-10-17 Tom Tromey <tromey@redhat.com>
2208 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2209 (elf_locate_sections): Update.
2211 2013-10-17 Yao Qi <yao@codesourcery.com>
2213 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2214 * ada-varobj.c: Remove the include of ada-varobj.h.
2215 (ada_varobj_get_number_of_children): Declare.
2216 (ada_varobj_get_name_of_child): Make it static.
2217 (ada_varobj_get_path_expr_of_child): Likewise.
2218 (ada_varobj_get_value_of_child): Likewise.
2219 (ada_varobj_get_type_of_child): Likewise.
2220 (ada_varobj_get_value_of_array_variable): Likewise.
2221 * ada-varobj.h: Remove.
2223 2013-10-17 Yao Qi <yao@codesourcery.com>
2225 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2226 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2227 * ada-varobj.c: Include "varobj.h".
2228 (ada_number_of_children): New. Moved from varobj.c.
2229 (ada_name_of_variable, ada_name_of_child): Likewise.
2230 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2231 (ada_type_of_child, ada_value_of_variable): Likewise.
2232 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2233 (ada_varobj_ops): New.
2234 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2235 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2236 * gdbtypes.h (get_target_type): Declare.
2237 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2239 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2240 (ANONYMOUS_UNION_NAME): Likewise.
2241 (get_type, get_value_type, get_target_type): Remove declarations.
2242 (value_get_print_value, varobj_value_get_print_value): Likewise.
2243 (c_number_of_children, c_name_of_variable): Likewise.
2244 (c_name_of_child, c_path_expr_of_child): Likewise.
2245 (c_value_of_child, c_type_of_child): Likewise.
2246 (c_value_of_variable, cplus_number_of_children): Likewise.
2247 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2248 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2249 (cplus_value_of_child, cplus_type_of_child): Likewise.
2250 (cplus_value_of_variable, java_number_of_children): Likewise.
2251 (java_name_of_variable, java_name_of_child): Likewise.
2252 (java_path_expr_of_child, java_value_of_child): Likewise.
2253 (java_type_of_child, java_value_of_variable): Likewise.
2254 (ada_number_of_children, ada_name_of_variable): Likewise.
2255 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2256 (ada_value_of_child, ada_type_of_child): Likewise.
2257 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2258 (ada_value_has_mutated): Likewise.
2259 (struct language_specific): Move it to varobj.h.
2260 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2261 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2263 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2265 (is_anonymous_child): Move it to c-varobj.c and rename to
2266 varobj_is_anonymous_child. Caller update.
2267 (get_type): Move it to c-varobj.c.
2268 (get_value_type): Rename it varobj_get_value_type. Make it
2270 (get_target_type): Move it gdbtypes.c.
2271 (varobj_formatted_print_options): New function.
2272 (value_get_print_value): Rename it to
2273 varobj_value_get_print_value and make it extern.
2274 (varobj_value_is_changeable_p): Make it extern.
2275 (adjust_value_for_child_access): Move it to c-varobj.c.
2276 (default_value_is_changeable_p): Rename it to
2277 varobj_default_value_is_changeable_p. Make it extern.
2278 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2279 (c_name_of_child, c_path_expr_of_child): Likewise.
2280 (c_value_of_child, c_type_of_child): Likewise.
2281 (c_value_of_variable, cplus_number_of_children): Likewise.
2282 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2283 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2284 (cplus_value_of_child, cplus_type_of_child): Likewise.
2285 (cplus_value_of_variable): Likewise.
2286 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2287 (java_name_of_child, java_path_expr_of_child): Likewise.
2288 (java_value_of_child, java_type_of_child): Likewise.
2289 (java_value_of_variable): Likewise.
2290 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2291 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2292 (ada_value_of_child, ada_type_of_child): Likewise.
2293 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2294 (ada_value_has_mutated): Likewise.
2295 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2296 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2297 (c_varobj_ops, cplus_varobj_ops): Declare.
2298 (java_varobj_ops, ada_varobj_ops): Declare.
2299 (varobj_default_value_is_changeable_p): Declare.
2300 (varobj_value_is_changeable_p): Declare.
2301 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2302 (varobj_get_path_expr_parent): Declare.
2303 (varobj_value_get_print_value): Declare.
2304 (varobj_formatted_print_options): Declare.
2305 (varobj_restrict_range): Declare.
2307 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2309 * target/waitstatus.h (target_waitkind): Remove spurious
2310 character from the comments.
2312 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2314 * gdbarch.sh (get_longjmp_target): Add method documentation.
2315 * gdbarch.h: Regenerate.
2317 2013-10-16 Tom Tromey <tromey@redhat.com>
2319 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2322 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2324 * gcore.in: Call GDB using the full path to the gcore script.
2325 Error out if the GDB binary is not found.
2327 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2330 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2333 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2336 * target.c (target_disable_btrace): Fix invalid return value for
2338 (target_teardown_btrace): Likewise.
2340 2013-10-14 Yao Qi <yao@codesourcery.com>
2342 * varobj.c (struct varobj): Move most of the fields to
2344 (struct varobj_dynamic): New struct.
2345 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2346 (varobj_has_more): Likewise.
2347 (dynamic_varobj_has_child_method): Likewise.
2348 (update_dynamic_varobj_children): Likewise.
2349 (varobj_get_num_children): Likewise.
2350 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2351 (install_new_value_visualizer): Likewise.
2352 (install_new_value_visualizer, install_new_value): Likewise.
2353 (varobj_update, new_variable, free_variable): Likewise.
2354 (my_value_of_variable, value_get_print_value): Likewise.
2355 (install_visualizer): Change the type of parameter 'var' to
2356 'struct varobjd_dynamic *'. Callers update.
2357 * varobj.h (struct varobj): Moved from varobj.c.
2358 (struct varobj) <dynamic>: New field.
2360 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2362 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2363 as the preferred name of r30.
2364 * nios2-linux-tdep.c (reg_offsets): Likewise.
2365 * features/nios2-cpu.xml: Likewise.
2366 * features/nios2-linux.c: Regenerated.
2367 * features/nios2.c: Regenerated.
2368 * regformats/nios2-linux.dat: Regenerated.
2370 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 Canonicalize directories for EXEC_FILENAME.
2373 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2375 * utils.c (gdb_realpath_keepfile): New function.
2376 * utils.h (gdb_realpath_keepfile): New declaration.
2378 2013-10-11 Doug Evans <dje@google.com>
2380 * Makefile.in (GDBFLAGS): New variable.
2383 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2385 * NEWS: Add entry documenting the new "-catch-assert" and
2386 "-catch-exception" GDB/MI commands.
2388 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2390 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2392 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2393 "enabled". Set B->ENABLE_STATE accordingly.
2394 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2396 (create_ada_exception_catchpoint): Add declaration.
2397 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2398 (create_ada_exception_catchpoint): Make non-static. Add new
2399 parameter "disabled". Use it in call to
2400 init_ada_exception_breakpoint.
2401 (catch_ada_exception_command): Add parameter "enabled" in call
2402 to create_ada_exception_catchpoint.
2403 (catch_assert_command): Likewise.
2405 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2407 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2408 "catch-exception" commands.
2409 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2410 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2412 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2414 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2415 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2416 of all its enumerates with "ada_". Update the rest of this
2419 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2421 * ada-lang.c (ada_decode_exception_location): Delete.
2422 (create_ada_exception_catchpoint): Remove arguments "sal",
2423 "addr_string" and "ops". Add argument "ex_kind" instead.
2424 Adjust implementation accordingly, calling ada_exception_sal
2425 to get the entities it no longer gets passed as arguments.
2426 Document the function's arguments.
2427 (catch_ada_exception_command): Use catch_ada_exception_command_split
2428 instead of ada_decode_exception_location, and update call to
2429 create_ada_exception_catchpoint.
2430 (catch_ada_assert_command_split): Renames
2431 ada_decode_assert_location. Remove parameters "addr_string" and
2432 "ops", and now returns void. Adjust implementation accordingly.
2433 Update the function documentation.
2434 (catch_assert_command): Use catch_ada_assert_command_split
2435 instead of ada_decode_assert_location. Update call to
2436 create_ada_exception_catchpoint.
2438 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2440 * utils.h (perror_warning_with_name): Add declaration.
2441 * utils.c (perror_warning_with_name): New function.
2442 * cli/cli-cmds.c (source_script_with_search): Add call to
2443 perror_warning_with_name if from_tty is nul.
2445 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2447 * utils.c (perror_string): New function, extracted out of
2448 throw_perror_with_name.
2449 (throw_perror_with_name): Rework to use perror_string.
2451 2013-10-11 Yao Qi <yao@codesourcery.com>
2453 * remote.c (discard_pending_stop_replies_in_queue): Update
2455 (struct stop_reply) <rs>: New field.
2456 (remove_stop_reply_of_remote_state): New function.
2457 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2458 Callers update. Pass remove_stop_reply_of_remote_state to
2460 (remote_parse_stop_reply): Initialize field 'rs'.
2462 2013-10-10 Will Newton <will.newton@linaro.org>
2464 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2467 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2469 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2470 serial_baud_show_cmd.
2471 (_initialize_cli_cmds): Delete the code creating the
2472 "set/show remotebaud" commands.
2473 * serial.c (baud_rate): Move here from top.c.
2474 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2475 (_initialize_serial): Create "set/show serial baud" commands.
2476 Add "set/show remotebaud" command aliases.
2477 * top.c (baud_rate): Moved to serial.c.
2478 * NEWS: Document the new "set/show serial baud" commands,
2479 replacing "set/show remotebaud".
2481 2013-10-09 Pedro Alves <palves@redhat.com>
2483 * breakpoint.c (insert_bp_location): Use memory_error_message to
2484 build the memory error string.
2485 * c-lang.c: Include "gdbcore.h".
2486 (c_get_string): Use memory_error to throw error.
2487 (target_xfer_memory_error): Delete.
2488 (memory_error_message): New, factored out from
2489 target_xfer_memory_error.
2490 (memory_error): Change parameter type to target_xfer_error.
2492 (read_memory): Use memory_error instead of
2493 target_xfer_memory_error.
2494 * gdbcore.h: Include "target.h".
2495 (memory_error): Change parameter type to target_xfer_error.
2496 (memory_error_message): Declare function.
2497 * target.c (target_read_memory, target_read_stack)
2498 (target_write_memory, target_write_raw_memory): Return
2499 TARGET_XFER_E_IO on error. Adjust comments.
2500 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2502 * target.h (target_read, target_insert_breakpoint)
2503 (target_remove_breakpoint): Adjust comments.
2504 * valprint.c (partial_memory_read): Rename parameter, and adjust
2506 (val_print_string): Use memory_error_message to build the memory
2509 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2512 result variable. Rename variable fopen_e_ever_failed to
2513 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2515 2013-10-09 Pedro Alves <palves@redhat.com>
2517 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2518 (monitor_write_memory_longlongs, monitor_write_memory_block):
2519 Constify 'myaddr' parameter.
2520 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2522 (monitor_xfer_partial): New function.
2523 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2524 hook. Install a to_xfer_partial hook.
2526 2013-10-09 Tom Tromey <tromey@redhat.com>
2528 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2529 bfd_get_alt_debug_link_info.
2531 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2533 New flag OBJF_NOT_FILENAME.
2534 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2535 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2537 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2538 symbol_file_add_from_bfd.
2539 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2541 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2543 * objfiles.h (OBJF_NOT_FILENAME): New.
2545 2013-10-08 Tom Tromey <tromey@redhat.com>
2547 * Makefile.in (SFILES): Add build-id.c.
2548 (HFILES_NO_SRCDIR): Add build-id.h.
2549 * build-id.c: New file, largely from elfread.c. Modified
2551 * build-id.h: New file.
2552 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2553 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2554 Search for dwz file using build-id.
2555 * elfread.c (build_id_bfd_get, build_id_verify)
2556 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2558 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2560 * ada-lang.c (compare_names_with_case): Renamed from
2561 compare_names, adding a new parameter "casing" and its handling.
2562 New function documentation.
2563 (compare_names): New function, implemented using
2564 compare_names_with_case.
2566 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2568 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2570 2013-10-07 Tom Tromey <tromey@redhat.com>
2572 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2573 demangled_names_hash.
2574 (free_objfile): Don't delete the demangled_names_hash.
2575 * objfiles.h (struct objfile_per_bfd_storage)
2576 <demangled_names_hash>: New field.
2577 (struct objfile) <demangled_names_hash>: Move to
2578 objfile_per_bfd_storage.
2579 * symfile.c (reread_symbols): Don't delete the
2580 demangled_names_hash.
2581 * symtab.c (create_demangled_names_hash): Update.
2582 (symbol_set_names): Update.
2584 2013-10-07 Tom Tromey <tromey@redhat.com>
2586 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2587 needs_relocations>: New fields.
2588 (gdb_bfd_requires_relocations): New function.
2589 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2590 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2591 the BFD needs relocations applied.
2593 2013-10-07 Pedro Alves <palves@redhat.com>
2595 PR breakpoints/11568
2596 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2597 the thread list" instead of "gone".
2599 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2601 * NEWS: Mention new convenience variable $_exitsignal.
2602 * corelow.c (core_open): Reset exit convenience variables. Set
2603 $_exitsignal to the uncaught signal which generated the corefile.
2604 * infrun.c (handle_inferior_event): Reset exit convenience
2605 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2606 (clear_exit_convenience_vars): New function.
2607 * inferior.h (clear_exit_convenience_vars): New prototype.
2609 2013-10-06 Yao Qi <yao@codesourcery.com>
2611 * varobj.h: Add comments to enum varobj_languages.
2613 2013-10-04 Doug Evans <dje@google.com>
2615 Add support for DWP file format version 2.
2616 * NEWS: Mention support for DWP file format version 2.
2617 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2618 union of asection, containing_section. New fields virtual_offset
2619 and is_virtual. Change type of readin filed from int to char.
2620 (dwo_sections, dwo_file): Tweak comments.
2621 (dwp_v2_section_ids): New enum.
2622 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2624 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2626 (virtual_v2_dwo_sections): New struct.
2627 (dwp_hash_table): New fields version, nr_columns. Change type of
2628 section_pool field to a union.
2629 (dwp_file): New field version.
2630 (dwarf2_has_info): Check for virtual sections.
2631 (get_containing_section): New function.
2632 (get_section_bfd_owner, get_section_bfd_section): Call it.
2633 (dwarf2_locate_sections): Update.
2634 (dwarf2_section_empty_p): Update.
2635 (dwarf2_read_section): Handle virtual sections.
2636 (locate_dwz_sections): Update.
2637 (create_dwp_hash_table): Document and handle V2 format.
2638 (locate_v1_virtual_dwo_sections): Renamed from
2639 locate_virtual_dwo_sections and update. All callers updated.
2640 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2641 Delete arg htab. Rename arg section_index to unit_index.
2642 All callers updated.
2643 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2645 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2646 (lookup_dwo_unit_in_dwp): Add V2 support.
2647 (dwarf2_locate_dwo_sections): Update.
2648 (dwarf2_locate_common_dwp_sections): Renamed from
2649 dwarf2_locate_dwp_sections and update. All callers updated.
2650 (dwarf2_locate_v2_dwp_sections): New function.
2651 (open_and_init_dwp_file): Add V2 support.
2652 (read_str_index): New locals str_section, str_offsets_section.
2654 2013-10-04 Pedro Alves <palves@redhat.com>
2656 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2657 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2658 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2659 describing comments with references to ptid.h.
2660 * common/ptid.h: Remove intro description of constructors,
2661 accessors and predicates.
2662 (struct ptid): Reformat.
2663 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2664 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2665 describing comments.
2667 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2669 * aix-thread.c (sync_threadlists): Add missing ')' in call
2672 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2674 * procfs.c (procfs_init_inferior): Fix typo causing the build
2677 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2679 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2681 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2683 * mi/mi-main.c (run_one_inferior): Add function description.
2684 Make ARG a pointer to an integer whose value determines whether
2685 we should "run" or "start" the program.
2686 (mi_cmd_exec_run): Add handling of the "--start" option.
2687 Reject all other command-line options.
2688 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2690 2013-10-04 Yao Qi <yao@codesourcery.com>
2692 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2693 (struct notif_client) <pending_event>: Moved
2694 to struct remote_notif_state.
2696 (struct remote_notif_state) <pending_event>: New field.
2697 (notif_event_xfree): Declare.
2698 * remote-notif.c (handle_notification): Adjust.
2699 (notif_event_xfree): New function.
2700 (do_notif_event_xfree): Call notif_event_xfree.
2701 (remote_notif_state_xfree): Call notif_event_xfree to free
2702 each element in field pending_event.
2703 * remote.c (discard_pending_stop_replies): Remove declaration.
2704 (discard_pending_stop_replies_in_queue): Declare.
2705 (remote_close): Call discard_pending_stop_replies_in_queue
2706 instead of discard_pending_stop_replies.
2707 (remote_start_remote): Adjust.
2708 (stop_reply_xfree): Call notif_event_xfree.
2709 (notif_client_stop): Adjust initialization.
2710 (remote_notif_remove_all): Rename it to ...
2711 (remove_stop_reply_for_inferior): ... this. Update comments.
2712 Don't check INF is NULL.
2713 (discard_pending_stop_replies): Return early if notif_state is
2714 NULL. Adjust. Don't check INF is NULL.
2715 (remote_notif_get_pending_events): Adjust.
2716 (discard_pending_stop_replies_in_queue): New function.
2717 (remote_wait_ns): Likewise.
2719 2013-10-04 Yao Qi <yao@codesourcery.com>
2721 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2722 (notif_queue): Remove.
2723 (remote_notif_process): Add one parameter 'notif_queue'.
2724 Update comments. Callers update.
2725 (remote_async_get_pending_events_token): Remove.
2726 (remote_notif_register_async_event_handler): Remove.
2727 (remote_notif_unregister_async_event_handler): Remove.
2728 (handle_notification): Add parameter 'notif_queue'. Update
2729 comments. Callers update.
2730 (notif_xfree): Remove.
2731 (remote_notif_state_allocate): New function.
2732 (remote_notif_state_xfree): New function.
2733 (_initialize_notif): Remove code to allocate queue.
2734 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2735 (struct remote_notif_state): New.
2736 (handle_notification): Update declaration.
2737 (remote_notif_process): Likewise.
2738 (remote_notif_register_async_event_handler): Remove.
2739 (remote_notif_unregister_async_event_handler): Remove.
2740 (remote_notif_state_allocate): Declare.
2741 (remote_notif_state_xfree): Declare.
2742 * remote.c (struct remote_state) <notif_state>: New field.
2743 (remote_close): Don't call
2744 remote_notif_unregister_async_event_handler. Call
2745 remote_notif_state_xfree.
2746 (remote_open_1): Don't call
2747 remote_notif_register_async_event_handler. Call
2748 remote_notif_state_allocate.
2750 2013-10-04 Yao Qi <yao@codesourcery.com>
2752 * varobj.c (create_child_with_value): Remove 'const' from the
2753 type of parameter 'name'.
2754 (varobj_add_child): Likewise.
2755 (install_dynamic_child): Remove 'const' from the type of
2757 (varobj_add_child): Likewise.
2758 (create_child_with_value): Likewise. Update comments. Don't
2760 (update_dynamic_varobj_children): Duplicate 'name'
2761 and pass it to install_dynamic_child.
2763 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2765 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2766 conversion logic to occur after PyLong_Check. Comment on order
2767 change significance.
2768 * python/py-arch.c (archpy_disassemble): Comment on order of
2769 conversion for integers and longs.
2771 2013-10-03 Pedro Alves <palves@redhat.com>
2773 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2774 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2775 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2776 PTRACE_O_TRACEFORK is not supported.
2777 (linux_test_for_tracesysgood): New function.
2778 (linux_test_for_tracefork): New function, factored out from
2779 linux_check_ptrace_features, and also don't kill child_pid here.
2781 2013-10-03 Tristan Gingold <gingold@adacore.com>
2783 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2784 Remove verbose error reporting. Use detected state to
2785 thread_set_state call.
2786 (i386_darwin_dr_get): Fix return type. Remove verbose error
2788 Remove trailing spaces.
2790 2013-10-02 Pedro Alves <palves@redhat.com>
2792 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2793 val_print_optimized_out.
2794 * jv-valprint.c (java_print_value_fields): Likewise.
2795 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2796 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2797 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2798 new optimized out value.
2799 * findvar.c (address_from_register): Likewise.
2800 * frame.c (put_frame_register): Tweak error string to say the
2801 register was not saved, rather than optimized out.
2802 * infcmd.c (default_print_one_register_info): Adjust call to
2803 val_print_optimized_out. Use value_of_register instead of
2804 get_frame_register_value.
2805 * mi/mi-main.c (output_register): Use value_of_register instead of
2806 get_frame_register_value.
2807 * valprint.c (valprint_check_validity): Likewise.
2808 (val_print_optimized_out): New value parameter. If the value is
2809 lval_register, print <not saved> instead.
2810 (value_check_printable, val_print_scalar_formatted): Adjust calls
2811 to val_print_optimized_out.
2812 * valprint.h (val_print_optimized_out): New value parameter.
2813 * value.c (struct value) <optimized_out>: Extend comment.
2814 (error_value_optimized_out): New function.
2815 (require_not_optimized_out): Use it. Use a different string for
2816 lval_register values.
2817 * value.h (error_value_optimized_out): New declaration.
2818 * NEWS: Mention <not saved>.
2820 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2822 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2823 strcmp to compare two symtab filenames.
2825 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2827 * symtab.c (search_symbols_equal): Delete.
2828 (sort_search_symbols_remove_dups): Replace call to
2829 search_symbols_equal by call to compare_search_syms,
2830 adjusting as necessary.
2832 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2835 * python/python.c: Document gdb.execute command in Python help.
2837 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2839 * python/py-frame.c (frame_info_to_frame_object): Use
2840 gdbpy_convert_exception. Clean up Python object on failure.
2842 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2844 * python/lib/gdb/command/frame_filters.py
2845 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2846 (ShowFrameFilterPriority.invoke): Ditto.
2848 2013-10-01 Keith Seitz <keiths@redhat.com>
2850 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2851 (parse_linespec): Make 'argptr' const.
2852 Remove temporary cast of 'argptr' to const char **.
2853 (decode_line_full): Pass const pointer to parse_linespec.
2854 (decode_line_1): Likewise.
2855 (decode_objc): Make local variable 'new_argptr' const.
2856 (find_function_symbols): Remove temporary cast to char *
2858 * objc-lang.c (find_imps): Make argument 'method' const.
2860 * objc-lang.h (find_imps): Likewise.
2862 2013-10-01 Keith Seitz <keiths@redhat.com>
2864 * completer.c (skip_quoted_chars): Make all arguments const.
2866 (skip_quoted): Likewise.
2867 * completer.h (skip_quoted_chars): Likewise.
2868 (skip_quoted): Likewise.
2869 * defs.h (skip_quoted): Remove duplicate declaration.
2870 * jv-exp.y: Include completer.h.
2871 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2872 * p-exp.y: Include completer.h.
2874 2013-10-01 Keith Seitz <keiths@redhat.com>
2876 * c-exp.y (parse_number): Make first argument const.
2877 Make a copy of the input to manipulate.
2878 (c_parse_escape): Make first argument const.
2879 Make local variable 'tokptr' const.
2880 (parse_string_or_char): Make first two arguments const.
2881 (macro_original_text): Make const.
2882 (lex_one_token): Make local variable 'tokstart' const.
2883 Likewise for local variables named 'p'.
2884 Cast away const for struct stoken (temporary).
2885 * c-lang.h (c_parse_escpae): Make first argument const.
2886 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2888 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2890 * f-exp.y (parse_number): Make first argument const.
2891 (match_string_literal): Make local variable 'tokstart'
2893 (yylex): Make local variable 'p' const.
2894 Cast away const for struct stoken (temporary).
2895 * go-exp.y (parse_number): Make first argument const.
2896 (parse_string_or_char): Likewise.
2897 Make local variable 'tokstart' const.
2898 (lex_one_token): Likewise for numerous locals called 'p'.
2899 Cast away const for struct stoken (temporary).
2900 * jv-exp.y (parse_number): Make first argument const.
2901 Make local variables 'tokstart' and 'tokptr' const.
2902 Cast away const for call to skip_quoted (temporary).
2903 (yylex): Make local variable 'p' const.
2904 Cast away const for struct stoken (temporary).
2905 * m2-exp.y (parse_number): Make local variable 'p' const.
2906 (yylex): Likewise for 'tokstart'.
2907 Cast away const for struct stoken (temporary).
2908 Make local variable 'p' const.
2909 * macroexp.c (get_character_constant): Pass a const string
2911 (get_string_literal): Likewise.
2912 (macro_expand_next): Make first argument const.
2913 Cast away const for init_shared_buffer.
2914 * macroexp.h (macro_expand_next): Make first argument const.
2915 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2916 Pass a const string to c_parse_escape.
2917 Make local variables 'p' and 'namestart' const.
2918 * parse.c (lexptr): Make const.
2919 (prev_lexptr): Likewise.
2920 (find_template_name_end): Return const.
2921 Make argument const, too.
2922 (parse_exp_in_context): Make first argument const.
2923 Remove the entire const_hack.
2924 (parse_exp_in_context_1): Make first argument const.
2925 * parser-defs.h (find_template_name_end): Return const.
2926 Make argument const, too.
2927 (lexptr): Make const.
2928 (prev_lexptr): Likewise.
2929 * utils.c (parse_escape): Make second argument const.
2930 * utils.h (parse_escape): Likewise.
2932 2013-10-01 Keith Seitz <keiths@redhat.com>
2934 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2936 (block_lookup): Make 'raw_name' and 'name' const.
2937 * ada-lex.l (processString): Update for struct stoken.ptr.
2938 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2939 (operator_stoken): Likewise.
2940 (lex_one_token): Remove temporary cast to char * for
2942 * f-exp.y (yylex): Likewise.
2943 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2944 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2945 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2947 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2948 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2949 * linespec.c (struct ls_parser): Make 'stream' const.
2950 (find_parameter_list_end): Make argument 'input' and local
2952 (linespec_lexer_lex_string): Make local variables 'start' and
2954 Use skip_spaces_const instead of skip_spaces.
2955 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2957 (parse_linespec): Temporarily cast 'argptr' to const for
2958 'parser->lexer.stream'.
2959 * m2-exp.y (yylex): Remove temporary cast to char * for
2961 * objc-lang.c (add_msglist): Make local variable 'p' const.
2962 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2963 (exp : STRING): Make 'sp' const.
2964 (parse_number): Make argument 'p' const.
2965 * parser-defs.h (struct stoken): Make 'ptr' const.
2967 2013-10-01 Doug Evans <dje@google.com>
2969 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2971 2013-10-01 Yao Qi <yao@codesourcery.com>
2973 * varobj.c (c_value_of_root): Remove declaration.
2974 (cplus_value_of_root, java_value_of_root): Likewise.
2975 (ada_value_of_root): Likewise.
2976 (struct language_specific) <value_of_root>: Remove.
2977 (languages): Update initialization.
2978 (check_scope): Move earlier.
2979 (c_value_of_root): Move earlier and rename to ...
2980 (value_of_root_1): ... this.
2981 (value_of_root): Caller update.
2982 (cplus_value_of_root, java_value_of_root): Remove.
2983 (ada_value_of_root): Remove.
2985 2013-10-01 Yao Qi <yao@codesourcery.com>
2987 * varobj.c (varobj_format_string): Remove "unknown".
2988 (languages): Remove the first element.
2989 * varobj.h (enum varobj_languages): Remove vlang_c.
2991 2013-10-01 Yao Qi <yao@codesourcery.com>
2993 * varobj.c (struct language_specific) <language>: Remove.
2994 (languages): Update the initialization.
2996 2013-10-01 Yao Qi <yao@codesourcery.com>
2998 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2999 "solib-target.h". Include "windows-tdep.h".
3000 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3001 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3002 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3003 windows-tdep.o to gdb_target_obs.
3005 2013-10-01 Yao Qi <yao@codesourcery.com>
3007 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3009 (amd64_windows_init_abi): Don't call set_solib_ops and
3010 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3011 windows_init_abi instead.
3012 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3014 (i386_cygwin_init_abi): Don't call set_solib_ops,
3015 set_gdbarch_has_dos_based_file_system and
3016 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3017 windows_init_abi instead.
3018 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3019 (windows_init_abi): New function.
3020 (windows_iterate_over_objfiles_in_search_order): Make it
3022 * windows-tdep.h (windows_init_abi): Declare.
3023 (windows_iterate_over_objfiles_in_search_order): Remove
3026 2013-10-01 Jerome Guitton <guitton@adacore.com>
3028 Checked in by Joel Brobecker <brobecker@adacore.com>
3029 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3030 incomplete dictionnary instead of None in case of missing
3031 environment variables.
3032 (elinos_init): in case of an incomplete environment, best
3033 effort to load system libraries instead of abort.
3035 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3037 * ada-lang.c (ada_has_this_exception_support): Ignore
3038 mst_solib_trampoline minimal symbols.
3040 2013-09-30 Tristan Gingold <gingold@adacore.com>
3042 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3043 hardware watchpoint.
3044 (i386_darwin_dr_set): Support 32 and 64 bit states.
3045 (i386_darwin_dr_get): Likewise.
3046 (i386_darwin_dr_set_control): Make static.
3047 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3048 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3050 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3052 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3053 Replace TIDGET with ptid_get_lwp.
3054 Replace GET_LWP with ptid_get_lwp.
3055 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3056 Replace BUILD_THREAD with ptid_build.
3057 Replace BUILD_LWP with ptid_build.
3058 Replace PIDGET with ptid_get_pid.
3059 Replace TIDGET with ptid_get_lwp.
3060 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3061 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3062 Replace TIDGET with ptid_get_lwp.
3063 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3064 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3065 Replace TIDGET with ptid_get_lwp.
3066 Replace GET_LWP with ptid_get_lwp.
3067 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3069 * breakpoint.c: Likewise.
3070 * common/ptid.c (ptid_is_pid): Condense check for
3071 null_ptid and minus_one_ptid.
3072 (ptid_lwp_p): New function.
3073 (ptid_tid_p): New function.
3074 * common/ptid.h: Update comments for accessors.
3075 (ptid_lwp_p): New prototype.
3076 (ptid_tid_p): New prototype.
3077 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3078 * gcore.c: Replace PIDGET with ptid_get_pid.
3079 * gdbthread.h: Likewise.
3080 * gnu-nat.c: Likewise.
3081 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3082 Replace TIDGET with ptid_get_lwp.
3083 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3084 * hppanbsd-nat.c: Likewise.
3085 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3086 Replace TIDGET with ptid_get_lwp.
3087 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3088 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3089 * infcmd.c: Likewise.
3090 * inferior.h: Likewise.
3091 * inflow.c: Likewise.
3092 * infrun.c: Likewise.
3093 * linux-fork.c: Likewise.
3094 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3095 Replace GET_PID with ptid_get_pid.
3096 Replace is_lwp with ptid_lwp_p.
3097 Replace GET_LWP with ptid_get_lwp.
3098 Replace BUILD_LWP with ptid_build.
3100 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3102 * common/linux-btrace.c: Move sys/syscall.h out of the
3103 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3104 Also check for SYS_perf_event_open before attempting to buid.
3106 2013-09-27 Doug Evans <dje@google.com>
3108 * dwarf2read.c (dwarf2_section_info): Add comment.
3109 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3111 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3112 (dwarf2_read_section): Delete unused local "header". Add section
3113 name to error message.
3114 (create_dwo_in_dwp): Tweak comment.
3115 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3117 * dwarf2read.c (die_reader_specs): Tweak comment.
3118 (get_section_bfd_owner, get_section_bfd_section): New functions.
3119 (get_section_name, get_section_file_name): New functions.
3120 (get_section_id, get_section_flags): New functions.
3121 (*): Use new functions to access section fields.
3123 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3124 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3125 arg "htab". All callers updated.
3126 (create_debug_types_hash_table): Remove redundant copy of
3128 (create_dwo_in_dwp): Tweak comments.
3129 (read_str_index): Tweak comment. Record dwarf form name in static
3132 2013-09-27 Pedro Alves <palves@redhat.com>
3134 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3135 (remote_filename_p): Add comment.
3136 * remote.c (remote_filename_p): Adjust to use
3137 REMOTE_SYSROOT_PREFIX.
3138 * solib.c (solib_find): When deciding whether we need to add a
3139 directory separator, check whether the sysroot is "remote:"
3140 instead of checking whether the patch has a drive spec. Add
3143 2013-09-27 Pedro Alves <palves@redhat.com>
3145 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3147 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3150 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3152 Fix set debug frame output.
3153 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3154 SENTINEL_FRAME entry lower to match enum frame_type order.
3156 2013-09-26 Pierre Muller <muller@sourceware.org>
3158 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3159 AMD64_R15_REGNUM when a register index is expected.
3160 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3161 Substitute in array.
3162 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3163 (amd64_push_arguments): Substitute in integer_regnum array.
3165 2013-09-25 Doug Evans <dje@google.com>
3167 * objfiles.c (allocate_objfile): Move comment to better place.
3169 New option "set debug symfile on".
3170 * NEWS: Mention "set debug symfile".
3171 * Makefile.in (SFILES): Add symfile-debug.c.
3172 (COMMON_OBS): Add symfile-debug.o.
3173 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3174 objfile's symbol functions.
3175 * objfiles.h (objfile_set_sym_fns): Declare.
3176 * symfile-debug.c: New file.
3177 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3178 objfile's symbol functions.
3179 (reread_symbols): Ditto.
3181 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3183 (add_symtab_fns): Update prototype.
3184 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3185 (registered_sym_fns): ... this.
3186 (symtab_fns): Update.
3187 (add_symtab_fns): New arg "flavour". All callers updated.
3188 (find_sym_fns): Rewrite to use new sym_fns registry.
3190 * symfile.h (struct sym_fns): Add "objfile" argument to
3191 sym_read_linetable. All uses updated.
3193 * symtab.c (domain_name, search_domain_name): New functions.
3194 * symtab.h (domain_name, search_domain_name): Declare.
3196 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3197 map_matching_symbols so objfile is first. All uses updated.
3198 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3199 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3201 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3204 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3207 2013-09-24 Doug Evans <dje@google.com>
3209 * objfiles.c (free_objfile): Move comment.
3211 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3213 * ada-exp.y (string_to_operator): Delete.
3214 (dummy_string_to_ada_operator): Delete.
3216 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3219 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3221 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3222 call_dummy_integer_regs, and classify.
3223 * amd64-tdep.h (amd64_classify): Add declaration.
3224 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3225 (amd64_reg_class): Delete, moved to i386-tdep.h.
3226 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3227 Replace call to amd64_classify by call to tdep->classify.
3228 (amd64_push_arguments): Get the list of registers to use for
3229 passing integer parameters from the gdbarch tdep structure,
3230 rather than using a hardcoded one. Replace calls to amd64_classify
3231 by calls to tdep->classify.
3232 (amd64_push_dummy_call): Get the register number used for
3233 the "hidden" argument from tdep->call_dummy_integer_regs.
3234 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3235 and tdep->call_dummy_integer_regs. Set tdep->classify.
3237 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3240 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3241 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3242 where tdep->memory_args_by_pointer is non-zero.
3244 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3247 * i386-tdep.h (struct gdbarch_tdep): Add new field
3248 integer_param_regs_saved_in_caller_frame.
3249 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3250 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3252 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3254 * amd64-windows-tdep.c: #include "value.h"
3255 (amd64_windows_classify): Delete.
3256 (amd64_windows_passed_by_integer_register)
3257 (amd64_windows_passed_by_xmm_register)
3258 (amd64_windows_passed_by_pointer)
3259 (amd64_windows_adjust_args_passed_by_pointer)
3260 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3261 (amd64_windows_push_dummy_call): New functions.
3262 (amd64_windows_init_abi): Remove setting of
3263 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3264 tdep->classify, tdep->memory_args_by_pointer and
3265 tdep->integer_param_regs_saved_in_caller_frame.
3266 Add call to set_gdbarch_push_dummy_call.
3268 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3270 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3271 objfile->original_name.
3273 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3275 Pass down original filename for objfile.
3276 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3277 * elfread.c (elf_symfile_read): Likewise.
3278 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3279 longer set ORIGINAL_NAME.
3280 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3281 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3282 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3283 symbol_file_add_from_bfd call.
3284 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3285 (macho_check_dsym): Add parameter filenamep. Change function comment.
3287 (macho_symfile_read): New variable dsym_filename. Update
3288 macho_check_dsym call. Use it for symbol_file_add_separate.
3289 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3290 it. Use it for objfile->original_name.
3291 (objfile_name): Return OBFD's filename, if available.
3292 * objfiles.h (allocate_objfile): Add new parameter name.
3293 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3294 * symfile-mem.c (symbol_file_add_from_memory): Update
3295 symbol_file_add_from_bfd call.
3296 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3298 (symbol_file_add_with_addrs): New parameter name, add function comment
3299 for it. Remove variable name. Update allocate_objfile call.
3300 (symbol_file_add_separate): New parameter name, add function comment
3301 for it. Update symbol_file_add_with_addrs call.
3302 (symbol_file_add_from_bfd): New parameter name. Update
3303 symbol_file_add_with_addrs call.
3304 (symbol_file_add): Update symbol_file_add_from_bfd call.
3305 (reread_symbols): New variable original_name. Save
3306 objfile->original_name by it.
3307 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3310 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3312 Code cleanup: Add objfile_name accessor function.
3313 * ada-lang.c (is_known_support_routine): Use objfile_name.
3314 * auto-load.c (source_gdb_script_for_objfile)
3315 (auto_load_objfile_script): Likewise.
3316 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3317 * dbxread.c (dbx_symfile_read): Likewise.
3318 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3319 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3320 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3321 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3322 (lookup_dwp_signatured_type, lookup_dwo_unit)
3323 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3324 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3325 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3326 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3327 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3328 (read_subrange_type, load_partial_dies, read_partial_die)
3329 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3330 (die_containing_type, build_error_marker_type, lookup_die_type)
3331 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3332 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3333 (get_DW_AT_signature_type, write_psymtabs_to_index)
3334 (save_gdb_index_command): Likewise.
3335 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3337 * expprint.c (dump_subexp_body_standard): Likewise.
3338 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3339 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3341 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3342 obj_name, use objfile_name for it, use the variable.
3343 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3345 * machoread.c (macho_symtab_read, macho_check_dsym)
3346 (macho_symfile_relocate): Likewise.
3347 * maint.c (maintenance_translate_address): Likewise.
3348 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3349 * minsyms.c (install_minimal_symbols): Likewise.
3350 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3352 (filter_overlapping_sections): Use objfile_name.
3353 (objfile_name): New function.
3354 * objfiles.h (struct objfile): Rename field name to original_name.
3355 (objfile_name): New prototype.
3356 * printcmd.c (sym_info, address_info): Use objfile_name.
3357 * probe.c (parse_probes, collect_probes, compare_probes)
3358 (info_probes_for_ops): Likewise.
3359 * progspace.c (clone_program_space): Likewise.
3360 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3361 (maintenance_info_psymtabs): Likewise.
3362 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3363 (source_section_scripts): Likewise.
3364 * python/py-objfile.c (objfpy_get_filename): Likewise.
3365 * python/py-progspace.c (pspy_get_filename): Likewise.
3366 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3367 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3368 * solib.c (solib_read_symbols): Likewise.
3369 * stabsread.c (scan_file_globals): Likewise.
3370 * stap-probe.c (handle_stap_probe): Likewise.
3371 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3372 (find_separate_debug_file_by_debuglink): Likewise.
3373 (reread_symbols): Likewise. Use the objfile field name renamed to
3375 (allocate_symtab): Use objfile_name.
3376 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3377 (dump_objfile, dump_msymbols, dump_symtab_1)
3378 (maintenance_print_msymbols, maintenance_print_objfiles)
3379 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3380 * target.c (target_translate_tls_address, target_info): Likewise.
3381 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3384 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 * probe.c (parse_probes): Rename variable objfile_name to
3390 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 Remove solib-sunos.c.
3393 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3394 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3395 * objfiles.c (rt_common_objfile): Remove.
3396 (free_objfile): Remove rt_common_objfile comparison.
3397 * objfiles.h (rt_common_objfile): Remove.
3398 * solib-sunos.c: Remove.
3399 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3401 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3403 Remove a.out NetBSD and OpenBSD hosts.
3404 * NEWS (Removed native configurations): New.
3405 * config/arm/nbsdaout.mh: Remove.
3406 * config/i386/nbsdaout.mh: Remove.
3407 * config/i386/obsdaout.mh: Remove.
3408 * config/m68k/nbsdaout.mh: Remove.
3409 * config/sparc/nbsdaout.mh: Remove.
3410 * config/vax/nbsdaout.mh: Remove.
3411 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3412 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3413 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3415 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3416 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3417 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3419 2013-09-23 Tom Tromey <tromey@redhat.com>
3421 * linespec.c (struct minsym_and_objfile): Remove.
3422 (minsym_and_objfile_d): Remove.
3423 (struct linespec, struct collect_info, linespec_parse_basic)
3424 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3425 (compare_msymbols, find_method, find_function_symbols)
3426 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3427 (add_minsym, search_minsyms_for_name): Update.
3429 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3431 * regcache.c: Add include of valprint.h.
3432 (dump_endian_bytes): Delete.
3433 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3435 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3437 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3439 2013-09-19 Pedro Alves <palves@redhat.com>
3441 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3444 2013-09-19 Pedro Alves <palves@redhat.com>
3445 Thomas Schwinge <thomas@codesourcery.com>
3446 Yue Lu <hacklu.newborn@gmail.com>
3448 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3449 Take a gdb_byte pointer instead of a char pointer.
3451 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3452 gnu_xfer_partial helper.
3453 (gnu_xfer_partial): New function.
3454 (gnu_target): Don't install a deprecated_xfer_memory hook.
3455 Install a to_xfer_partial hook.
3457 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 * main.c (captured_main): Replace catch_command_errors by
3461 catch_command_errors_const. Twice.
3462 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3463 (symbol_file_add): Make name parameter const.
3464 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3465 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3466 variable name. Change their usage accordingly.
3467 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3469 (symbol_file_add_main): Make args parameter const.
3471 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3472 Ulrich Weigand <uweigand@de.ibm.com>
3474 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3476 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3478 2013-09-18 Pedro Alves <palves@redhat.com>
3479 Yue Lu <hacklu.newborn@gmail.com>
3481 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3482 (gnu_create_inferior)
3483 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3484 (set_sig_thread_cmd): Use the lwpid field of ptids to
3485 store/extract thread ids instead of the tid field.
3486 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3488 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3490 * infcmd.c (default_print_one_register_info): Add detection of
3491 optimized out values.
3492 (default_print_registers_info): Switch to using
3493 get_frame_register_value.
3495 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3497 * infrun.c (handle_inferior_event): Check if we know the
3498 function start address before setting a resume breakpoint.
3500 2013-09-18 Pedro Alves <palves@redhat.com>
3502 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3503 minus_one_ptid instead of looking at the ptid's tid field and
3504 comparing that to -1.
3506 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3508 * main.h (get_gdb_program_name): Remove extra whitespace.
3510 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3512 * main.h (get_gdb_program_name): Add declaration.
3513 * main.c (get_gdb_program_name): Add definition.
3515 2013-09-17 Doug Evans <dje@google.com>
3517 * dwarf2read.c: Move definitions of complaint functions to after
3518 forward declarations of local functions.
3520 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3521 Pedro Alves <palves@redhat.com>
3524 * breakpoint.c (remove_threaded_breakpoints): New function.
3525 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3526 as thread_exit observer.
3528 2013-09-17 Pedro Alves <palves@redhat.com>
3531 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3532 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3533 * corelow.c (core_open):
3534 * frame.h (print_stack_frame, print_frame_info): New
3535 'set_current_sal' parameter.
3536 * infcmd.c (finish_command, kill_command): Adjust call to
3538 * inferior.c (inferior_command): Likewise.
3539 * infrun.c (normal_stop): Likewise.
3540 * linux-fork.c (linux_fork_context): Likewise.
3541 * record-full.c (record_full_goto_entry, record_full_restore):
3543 * remote-mips.c (common_open): Likewise.
3544 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3546 (print_frame_info): New 'set_current_sal' parameter. Set the last
3547 displayed sal depending on the new paremeter instead of looking at
3549 (backtrace_command_1, select_and_print_frame, frame_command)
3550 (current_frame_command, up_command, down_command): Adjust call to
3552 * thread.c (print_thread_info, restore_selected_frame)
3553 (do_captured_thread_select): Adjust call to print_stack_frame.
3554 * tracepoint.c (tfind_1): Likewise.
3555 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3556 (mi_cmd_stack_info_frame): Likewise.
3557 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3558 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3560 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3562 * value.c (isvoid_internal_fn): Replace "parameter" with
3565 2013-09-16 Stan Shebs <stan@codesourcery.com>
3567 * README: Update references to writing code for GDB.
3568 * configure.ac (build_warnings): Remove obsolete comment.
3569 * configure: Regenerate.
3570 * gdbarch.sh: Remove references to gdbint.texinfo.
3571 * gdbarch.h: Regenerate.
3572 * gdbtypes.c (objfile_type): Remove comments referencing internals
3575 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3577 * NEWS: Mention new convenience function $_isvoid.
3578 * value.c (isvoid_internal_fn): New function.
3579 (_initialize_values): Add new convenience function $_isvoid.
3581 2013-09-16 Pierre Muller <muller@sourceware.org>
3583 * arm-linux-tdep.c: Add "elf/common.h" header.
3584 Remove AT_HWCAP macro definintion as it is provided in
3586 * s390-tdep.c: Remove system header <elf.h>
3587 Add "elf/common.h" header for AT_HWCAP definition.
3588 (s390_core_read_description): Use correct CORE_ADDR
3589 for hwcap local variable used as third parameter
3590 of function target_auxv_search.
3592 2013-09-14 Pierre Muller <muller@sourceware.org>
3593 Tom Tromey <tromey@redhat.com>
3594 Pedro Alves <palves@redhat.com>
3596 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3597 mode if operating system doesn't know O_CLOEXEC.
3599 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3602 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3605 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3607 * NEWS: Mention TDB support.
3608 * features/s390-tdb.xml: New file.
3609 * features/s390-te-linux64.xml: New file.
3610 * features/s390x-te-linux64.xml: New file.
3611 * features/Makefile (WHICH): Add new tdescs above.
3612 (s390-te-linux64-expedite): Set.
3613 (s390x-te-linux64-expedite): Set.
3614 * features/s390-te-linux64.c: New file (generated).
3615 * features/s390x-te-linux64.c: New file (generated).
3616 * regformats/s390-te-linux64.dat: New file (generated).
3617 * regformats/s390x-te-linux64.dat: New file (generated).
3618 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3619 (HWCAP_S390_TE): Likewise.
3620 (S390_TDB_DWORD0_REGNUM): Likewise.
3621 (S390_TDB_DWORD0_REGNUM): Likewise.
3622 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3623 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3624 (S390_TDB_ATIA_REGNUM): Likewise.
3625 (S390_TDB_R0_REGNUM): Likewise.
3626 (S390_TDB_R1_REGNUM): Likewise.
3627 (S390_TDB_R2_REGNUM): Likewise.
3628 (S390_TDB_R3_REGNUM): Likewise.
3629 (S390_TDB_R4_REGNUM): Likewise.
3630 (S390_TDB_R5_REGNUM): Likewise.
3631 (S390_TDB_R6_REGNUM): Likewise.
3632 (S390_TDB_R7_REGNUM): Likewise.
3633 (S390_TDB_R8_REGNUM): Likewise.
3634 (S390_TDB_R9_REGNUM): Likewise.
3635 (S390_TDB_R10_REGNUM): Likewise.
3636 (S390_TDB_R11_REGNUM): Likewise.
3637 (S390_TDB_R12_REGNUM): Likewise.
3638 (S390_TDB_R13_REGNUM): Likewise.
3639 (S390_TDB_R14_REGNUM): Likewise.
3640 (S390_TDB_R15_REGNUM): Likewise.
3641 (S390_NUM_REGS): Increase.
3642 (S390_IS_TDBREGSET_REGNUM): New macro.
3643 (s390_regmap_tdb): Declare.
3644 (s390_sizeof_tdbregset): Define.
3645 (tdesc_s390_te_linux64): Declare.
3646 (tdesc_s390x_te_linux64): Likewise.
3647 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3648 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3649 (s390_regmap_tdb): New regmap.
3650 (s390_supply_tdb_regset): New function.
3651 (s390_tdb_regset): New regset.
3652 (s390_linux64v2_regset_sections): Add TDB regset to list.
3653 (s390x_linux64v2_regset_sections): Likewise.
3654 (s390_regset_from_core_section): Recognize TDB core note section.
3655 (s390_core_read_description): If HWCAP indicates TE support,
3656 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3657 (s390_gdbarch_init): Handle TDB regset.
3658 (_initialize_s390_tdep): Initialize new tdescs.
3659 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3660 (have_regset_tdb): New variable.
3661 (s390_native_supply): Support register invalidation.
3662 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3663 (check_regset): Treat ENODATA as "regset exists".
3664 (s390_linux_fetch_inferior_registers): Add TDB.
3665 (s390_read_description): Check for TDB existence and select
3667 * gdbserver/Makefile.in (clean): Add removal of new makefile
3669 (s390-te-linux64.c): New makefile target.
3670 (s390x-te-linux64.c): Likewise.
3671 * gdbserver/configure.srv (srv_regobj): Append new objects
3672 s390-te-linux64.o and s390x-te-linux64.o.
3673 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3674 s390x-te-linux64.xml, and s390-tdb.xml.
3675 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3677 (tdesc_s390_te_linux64): Likewise.
3678 (init_registers_s390x_te_linux64): Likewise.
3679 (tdesc_s390x_te_linux64): Likewise.
3680 (s390_check_regset): Treat ENODATA as "regset exists".
3681 (s390_arch_setup): Add TDB regset support.
3682 (initialize_low_arch): Initialize registers for new tdescs.
3684 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3686 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3687 (S390_IS_FPREGSET_REGNUM): New macro.
3688 * s390-tdep.c (s390_dwarf_regmap): Make const.
3689 (regnum_is_gpr_full): New function for replacing repeated code.
3690 (s390_pseudo_register_name): Use it.
3691 (s390_pseudo_register_type): Likewise.
3692 (s390_pseudo_register_read): Likewise.
3693 (s390_pseudo_register_write): Likewise.
3694 (s390_unwind_pseudo_register): Likewise.
3695 (s390_regmap_gregset): New format for regmap.
3696 (s390x_regmap_gregset): Likewise.
3697 (s390_regmap_fpregset): Likewise.
3698 (s390_regmap_upper): Likewise.
3699 (s390_regmap_last_break): Likewise.
3700 (s390_regmap_system_call): Likewise.
3701 (s390_supply_regset): Adjust to new regmap format.
3702 (s390_collect_regset): Likewise.
3703 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3704 (s390_native_collect): Likewise.
3705 (supply_gregset): Likewise.
3706 (fill_gregset): Likewise.
3707 (supply_fpregset): Likewise.
3708 (fill_fpregset): Likewise.
3709 (fetch_regset): Likewise.
3710 (store_regset): Likewise.
3711 (s390_linux_fetch_inferior_registers): Likewise.
3712 (s390_linux_fetch_inferior_registers): Likewise.
3714 2013-09-12 Andrew Pinski <apinski@cavium.com>
3716 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3718 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3720 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3722 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3724 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3726 2013-09-06 Pedro Alves <palves@redhat.com>
3728 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3729 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3730 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3731 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3732 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3735 2013-09-06 Pedro Alves <palves@redhat.com>
3737 * remote-sim.c (dump_mem): Constify buf parameter.
3738 gdbsim_xfer_inferior_memory): Rename to ...
3739 (gdbsim_xfer_memory): ... this. Adjust interface as
3740 target_xfer_partial helper.
3741 (gdbsim_xfer_partial): New function.
3742 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3743 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3745 2013-09-06 Pedro Alves <palves@redhat.com>
3747 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3748 host_address_to_string, and send debug output to gdb_stdlog.
3750 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3752 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3753 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3754 gdb_target_obs for cris target.
3755 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3756 (cris_gdbarch_init): Move calls to
3757 set_gdbarch_fetch_tls_load_module_address and
3758 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3759 Add call to gdbarch_init_osabi.
3760 * cris-linux-tdep.c: New file.
3761 * cris-tdep.h: New file.
3763 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3765 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3766 to deprecated_init_ui_hook.
3768 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3770 * cli/cli-interp.c (_initialize_cli_interp): Add a
3771 command_loop_proc to interp_procs.
3772 * event-top.c (cli_command_loop): Change signature to match
3773 interp_command_loop_ftype.
3774 * event-top.h (cli_command_loop): Same.
3775 * interps.c (interp_new): Require every interpreter to have a
3777 (current_interp_command_loop): Just call the command_loop_proc on
3778 the current interpreter.
3779 * tui/tui-interp.c (_initialize_tui_interp): Add a
3780 command_loop_proc to interp_procs.
3782 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3784 * cris-tdep.c (cris_gdbarch_init): Add call to
3785 get_gdbarch_fetch_tls_load_module_address.
3787 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3789 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3790 (cris_elf_gregset_t): Rename from elf_gregset_t.
3791 (crisv32_elf_gregset_t): Adjust.
3792 (cris_supply_gregset, fetch_core_registers): Adjust.
3794 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3796 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3798 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3800 * defs.h (deprecated_command_loop_hook): Remove, including
3801 references in comments.
3802 * interps.c (current_interp_command_loop): No longer use
3803 deprecated_command_loop_hook.
3804 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3806 * top.c (deprecated_command_loop_hook): Remove.
3808 2013-09-05 Pedro Alves <palves@redhat.com>
3810 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3811 local is now int instead of ULONGEST. Print it with %d
3812 instead of paddress.
3814 2013-09-05 Tristan Gingold <gingold@adacore.com>
3816 * MAINTAINERS: Remove avr maintainership.
3818 2013-09-05 Pedro Alves <palves@redhat.com>
3820 * findvar.c (value_of_register): Rework in terms of
3821 value_of_register_lazy.
3823 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3825 * symfile.c (add_symbol_file_command): Remove trailing
3826 whitespaces and blank line after comment.
3828 2013-09-05 Pedro Alves <palves@redhat.com>
3830 * tui/tui-regs.c (tui_register_format): Don't look at the
3831 register's name here. Return string representing register
3832 value instead of storing it in the data element.
3833 (tui_get_register): Compare register string representations
3834 instead of register value states and contents.
3836 2013-09-05 Pedro Alves <palves@redhat.com>
3839 * tui/tui-regs.c (tui_show_registers): Show registers of the
3840 selected frame, not the current frame.
3842 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3844 * MAINTAINERS (Write After Approval): Add myself to the list.
3846 2013-09-04 Doug Evans <dje@google.com>
3848 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3849 (queue_and_load_dwo_tu): New function.
3850 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3851 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3852 Make dependent_cu optional.
3853 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3854 and an older .gdb_index is in use, queue and load all its TUs too.
3856 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3859 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3860 variable search_flags.
3861 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3862 (OPF_RETURN_REALPATH): ... here.
3863 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3864 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3866 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3868 * solib.c (solib_find): Likewise. Four times.
3869 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3870 in the function comment and for the realpath_fptr variable.
3871 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3872 (find_and_open_source): Likewise. Twice.
3873 * symfile.c (symfile_bfd_open): Likewise, also twice.
3875 2013-09-04 Doug Evans <dje@google.com>
3877 * progspace.c (save_current_space_and_thread): Remove unnecessary
3878 call to save_current_inferior.
3880 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3882 * sh64-tdep.c (sh64_do_register): Return after printing message
3883 about unavailable register contents.
3885 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3886 Pedro Alves <palves@redhat.com>
3888 * symfile.c (add_symbol_file_command): Error out on unknown
3889 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3890 options and collapse into single conditional branch.
3892 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3894 * inf-child.c (inf_child_follow_fork): New parameter
3896 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3897 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3898 * inferior.h (detach_fork): Remove.
3899 * infrun.c (detach_fork): Adjust comment and make it
3901 (follow_fork): Pass detach_fork parameter to
3903 * linux-nat.c (linux_child_follow_fork): New parameter
3905 * target.c (target_follow_fork): New parameter detach_fork.
3906 Pass detach_fork as parameter and print its value.
3907 * target.h (struct target_ops) <to_follow_fork>: New int
3909 (target_follow_fork): New parameter detach_fork.
3911 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3913 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3914 Replace sec->bfd by sec->the_bfd_section->owner.
3916 2013-09-03 Yao Qi <yao@codesourcery.com>
3918 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3919 from linux_has_shared_address_space.
3920 (linux_has_shared_address_space): Call linux_is_uclinux.
3921 * linux-tdep.h (linux_is_uclinux): Declare.
3922 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3925 2013-09-03 Yao Qi <yao@codesourcery.com>
3927 * config/djgpp/fnchange.lst: Remove entry of
3928 i386-interix-nat.c and i386-interix-tdep.c.
3929 * configure.ac: Remove '*-*-interix*'.
3930 * configure: Re-generated.
3931 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3932 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3934 * osabi.c (gdb_osabi_names): Remove "Interix".
3936 2013-09-03 Yao Qi <yao@codesourcery.com>
3938 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3940 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3942 * record.h (record_print_flag) <record_print_src_line,
3943 record_print_insn_range>: Rename into ...
3944 (record_print_flag) <record_print_src_line,
3945 record_print_insn_range>: ... this. Update all users.
3947 2013-09-02 Pierre Muller <muller@sourceware.org>
3949 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3952 2013-09-02 Pierre Muller <muller@sourceware.org>
3954 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3955 by use of plongest function.
3957 2013-09-02 Tristan Gingold <gingold@adacore.com>
3959 * NEWS: Add entry mentioning support for native Windows x64
3962 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3963 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3964 (struct amd64_windows_frame_cache): New struct.
3965 (amd64_windows_w2gdb_regnum): New global.
3966 (pc_in_range, amd64_windows_frame_decode_epilogue)
3967 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3968 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3969 (amd64_windows_frame_this_id): New functions.
3970 (amd64_windows_frame_unwind): New static global.
3971 (amd64_windows_skip_prologue): New function.
3972 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3973 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3974 with amd64_windows_skip_prologue.
3976 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3980 2013-08-30 Pedro Alves <palves@redhat.com>
3982 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3985 2013-08-30 Pedro Alves <palves@redhat.com>
3987 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3990 2013-08-30 Pedro Alves <palves@redhat.com>
3992 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3993 Adjust arguments to print_stack_frame.
3995 2013-08-30 Pedro Alves <palves@redhat.com>
3997 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3999 2013-08-30 Pedro Alves <palves@redhat.com>
4001 * frame.h (show_and_print_stack_frame): Delete declaration.
4003 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4006 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4007 (archpy_name): Check for valid architecture.
4008 (archpy_disassemble): Ditto.
4010 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4012 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4013 instead of "long long" in call to ptrace64.
4015 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4017 * mi/mi-interp.c (mi_command_loop): Change signature to match
4018 interp_command_loop_ftype.
4019 (mi1_command_loop): Remove.
4020 (mi2_command_loop): Remove.
4021 (mi3_command_loop): Remove.
4022 (mi_interpreter_resume): Remove setting of
4023 deprecated_command_loop_hook.
4024 (_initialize_mi_interp): Set mi_command_loop as the command loop
4027 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4029 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4032 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4034 * value.c (allocate_value_contents): Make static.
4035 * value.h (allocate_value_contents): Remove prototype.
4037 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4039 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4040 of assembling value via allocate_value_lazy and attribute setter.
4041 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4042 assembling value via allocate_value_lazy and attribute setter.
4043 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4044 assembling value via allocate_value_lazy and attribute setter.
4046 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4048 * value.c (value_from_contents_and_address): Replace allocate_value and
4049 memcpy with value_from_contents.
4051 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4053 * python/py-framefilter.c (py_print_frame): Remove usage of
4054 PyString_AsString. Use python_string_to_host_string instead.
4055 Refactor function to work with a string as a new allocation
4056 instead of a pointer.
4057 (py_print_frame): Ditto.
4058 * python/lib/gdb/frames.py (return_list): Cain iterators together
4059 instead of adding them as a list.
4060 (_sort_list): Call return_list, and remove duplicate code.
4061 (execute_frame_filters): Convert iterator to a list with list().
4062 * python/lib/gdb/command/frame_filters.py
4063 (SetFrameFilterPriority._set_filter_priority): Convert priority
4064 attribute to an integer.
4065 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4066 wrapper function __next__.
4067 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4070 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4073 * python/py-framefilter.c (apply_frame_filter): Check
4074 gdb_python_initialized. Exit if the Python frame-filter code
4075 cannot be initialized.
4077 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4080 * top.c (print_gdb_version): Remove erroneous newline after help
4083 2013-08-29 Yao Qi <yao@codesourcery.com>
4085 * varobj.c (install_dynamic_child): Remove trailing space.
4086 Add one blank line after variable declaration.
4088 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4091 * corefile.c (get_exec_file): Use exec_filename.
4092 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4093 * exec.c (exec_close): Free EXEC_FILENAME.
4094 (exec_file_attach): New variable canonical_pathname. Use
4095 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4097 * exec.h (exec_filename): New.
4098 * inferior.c (print_inferior, inferior_command): Use
4099 PSPACE_EXEC_FILENAME.
4100 * mi/mi-main.c (print_one_inferior): Likewise.
4101 * progspace.c (clone_program_space, print_program_space): Likewise.
4102 * progspace.h (struct program_space): New field pspace_exec_filename.
4103 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4104 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4106 2013-08-28 Will Newton <will.newton@linaro.org>
4108 * common/linux-ptrace.c: Include stdint.h unconditionally.
4110 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4113 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4115 2013-08-28 Yao Qi <yao@codesourcery.com>
4116 Pedro Alves <palves@redhat.com>
4118 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4119 instead of stdio_fileopen.
4120 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4121 .Call stderr_fileopen instead of stdio_fileopen.
4122 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4123 [__MINGW32__] (stderr_file_fputs): New function.
4124 (stderr_fileopen): New function.
4125 * ui-file.h (stderr_fileopen): Declare.
4127 2013-08-27 Doug Evans <dje@google.com>
4129 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4130 (struct dwarf2_per_cu_data): Ditto.
4131 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4132 (process_imported_unit_die): Ditto.
4133 (follow_die_sig_1): Simplify assert.
4135 2013-08-27 Pedro Alves <palves@redhat.com>
4137 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4138 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4139 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4140 windows_xfer_memory directly.
4141 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4143 2013-08-27 Pedro Alves <palves@redhat.com>
4145 * darwin-nat.c (darwin_xfer_memory): Delete.
4146 (_initialize_darwin_inferior): Don't install a
4147 deprecated_xfer_memory method.
4149 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4150 Yao Qi <yao@codesourcery.com>
4152 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4153 (parse_no_frames_option): Remove.
4154 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4155 (mi_cmd_stack_list_args): Adjust.
4156 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4157 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4158 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4160 (list_args_or_locals): New parameter 'skip_unavailable'.
4162 * valprint.c (scalar_type_p): Rename to ...
4163 (val_print_scalar_type_p): ... this. Make extern.
4164 (val_print, value_check_printable): Adjust.
4165 * valprint.h (val_print_scalar_type_p): Declare.
4166 * value.c (value_entirely_unavailable): New function.
4167 * value.h (value_entirely_unavailable): Declare.
4169 * NEWS: Mention the new option "--skip-unavailable" to MI
4170 commands '-stack-list-locals', '-stack-list-arguments' and
4171 '-stack-list-variables'.
4173 2013-08-27 Yao Qi <yao@codesourcery.com>
4175 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4176 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4178 * mi/mi-getopt.c (mi_getopt): Remove.
4179 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4181 (mi_getopt): Call mi_getopt_1.
4182 (mi_getopt_silent): New.
4183 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4185 2013-08-26 Doug Evans <dje@google.com>
4188 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4189 .gdb_index is in use.
4190 * symfile.c (reread_symbols): Reset objfile->sf.
4192 * NEWS: Document "mt print objfiles" now takes optional regexp.
4193 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4194 regexp of objfiles to print.
4195 (_initialize_symmisc): Update doc string for "mt print objfiles".
4197 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4198 missing debug info checks.
4200 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4201 Ulrich Weigand <uweigand@de.ibm.com>
4203 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4204 line tables generated by XLC compiled binaries.
4206 2013-08-23 Doug Evans <dje@google.com>
4208 * symmisc.c (dump_symtab): Delete prototype.
4209 (dump_msymbols, dump_objfile): Ditto.
4210 (maintenance_info_symtabs): Mark as dont_repeat.
4211 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4213 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4214 debugging printf to better location.
4216 2013-08-23 Pedro Alves <palves@redhat.com>
4218 * target.c (target_read_live_memory): Change type of 'ret' local
4221 2013-08-23 Pedro Alves <palves@redhat.com>
4223 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4224 (remote_read_bytes): Change return type to LONGEST, and adjust to
4225 return a target_xfer_error on error.
4226 (remote_xfer_memory): Delete.
4227 (remote_flash_write): Change type of 'ret' local to LONGEST.
4228 (remote_xfer_partial, remote_xfer_partial): Adjust.
4229 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4231 2013-08-23 Pierre Muller <muller@sourceware.org>
4233 ARI fix: Push # directives to start of line.
4234 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4236 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4239 * breakpoint.c (enable_command, disable_command): Iterate over
4240 all specified breakpoint locations.
4242 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4244 * common/linux-ptrace.c (linux_fork_to_function): Push #
4245 directives to the start of the line.
4246 (linux_check_ptrace_features): Fix warning message to use
4249 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4251 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4252 nat/linux-waitpid.h.
4253 (linux-waitpid.o): New object file rule.
4254 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4255 (current_ptrace_options): Moved from linux-nat.c.
4256 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4258 (linux_fork_to_function): New function.
4259 (linux_grandchild_function): Likewise.
4260 (linux_child_function): Likewise.
4261 (linux_check_ptrace_features): New function, heavily
4262 based on linux-nat.c:linux_test_for_tracefork.
4263 (linux_enable_event_reporting): New function.
4264 (ptrace_supports_feature): Likewise.
4265 (linux_supports_tracefork): Likewise.
4266 (linux_supports_traceclone): Likewise.
4267 (linux_supports_tracevforkdone): Likewise.
4268 (linux_supports_tracesysgood): Likewise.
4269 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4270 gdbserver/linux-low.c.
4271 (linux_enable_event_reporting): New declaration.
4272 (linux_supports_tracefork): Likewise.
4273 (linux_supports_traceclone): Likewise.
4274 (linux_supports_tracevforkdone): Likewise.
4275 (linux_supports_tracesysgood): Likewise.
4276 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4277 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4278 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4279 * config/arm/linux.mh (NATDEPFILES): Likewise.
4280 * config/i386/linux.mh (NATDEPFILES): Likewise.
4281 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4282 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4283 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4284 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4285 * config/mips/linux.mh (NATDEPFILES): Likewise.
4286 * config/pa/linux.mh (NATDEPFILES): Likewise..
4287 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4288 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4289 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4290 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4291 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4292 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4293 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4294 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4295 ptrace's 4th argument's types.
4296 Check the type of PTRACE_TYPE_ARG4.
4297 * configure: Regenerate.
4298 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4299 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4300 (linux_supports_tracefork_flag): Remove.
4301 (linux_supports_tracesysgood_flag): Likewise.
4302 (linux_supports_tracevforkdone_flag): Likewise.
4303 (current_ptrace_options): Moved to
4304 common/linux-ptrace.c.
4305 (linux_tracefork_child): Remove.
4306 (my_waitpid): Remove.
4307 (linux_test_for_tracefork): Renamed to
4308 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4309 (linux_test_for_tracesysgood): Remove.
4310 (linux_supports_tracesysgood): Remove.
4311 (linux_supports_tracefork): Remove.
4312 (linux_supports_tracevforkdone): Remove.
4313 (linux_enable_tracesysgood): Remove.
4314 (linux_enable_event_reporting): Remove.
4315 (linux_init_ptrace): New function.
4316 (linux_child_post_attach): Call linux_init_ptrace.
4317 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4318 (linux_child_follow_fork): Call linux_supports_tracefork
4319 and linux_supports_tracevforkdone.
4320 (linux_child_insert_fork_catchpoint): Call
4321 linux_supports_tracefork.
4322 (linux_child_insert_vfork_catchpoint): Likewise.
4323 (linux_child_set_syscall_catchpoint): Call
4324 linux_supports_tracesysgood.
4325 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4326 * nat/linux-nat.h: New file.
4327 * nat/linux-waitpid.c: New file.
4328 * nat/linux-waitpid.h: New file.
4330 2013-08-22 Samuel Bronson <naesten@gmail.com>
4332 ARM Linux support for `catch syscall'.
4333 * syscalls/arm-linux.py: New file.
4334 * syscalls/arm-linux.xml: Likewise.
4335 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4336 (arm_linux_init_abi): Register the new function and syscall xml file.
4337 * data-directory/Makefile.in: Install the new syscall xml file.
4338 * NEWS: Brag about this.
4340 2013-08-22 Pedro Alves <palves@redhat.com>
4343 * corefile.c (target_xfer_memory_error): New function.
4344 (memory_error): Defer EIO to target_memory_error.
4345 (read_memory): Use target_xfer_partial, and handle finer-grained
4347 * target.c (target_xfer_error_to_string): New function.
4348 (memory_xfer_partial_1): If memory is known to be
4349 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4350 (target_xfer_partial): Make extern.
4351 * target.h (enum target_xfer_error): New enum.
4352 (target_xfer_error_to_string): Declare function.
4353 (target_xfer_partial): Declare function.
4354 (struct target_ops) <xfer_partial>: Adjust describing comment.
4356 2013-08-22 Alan Modra <amodra@gmail.com>
4358 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4359 * configure.tgt: Likewise as targets.
4361 2013-08-20 Doug Evans <dje@google.com>
4363 * buildsym.c (subfile_stack): Move here from buildsym.h.
4364 (pending_macros): Ditto.
4365 (get_macro_table): New function.
4366 (buildsym_init): Initialize subfile_stack.
4367 * coffread.c (type_vector,type_vector_length): Moved here from
4369 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4370 (coff_symtab_read): Use it.
4371 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4372 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4373 with call to get_macro_table.
4374 * stabsread.c (type_vector,type_vector_length): Moved here from
4376 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4377 * buildsym.h (get_macro_table): Declare.
4379 2013-08-20 Tom Tromey <tromey@redhat.com>
4381 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4383 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4385 2013-08-20 Doug Evans <dje@google.com>
4387 * blockframe.c: Remove #include "psymtab.h".
4388 * cp-support.c: Ditto.
4392 2013-08-20 Tom Tromey <tromey@redhat.com>
4395 * exceptions.h (return_mask): Now an enum.
4396 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4399 2013-08-20 Tom Tromey <tromey@redhat.com>
4401 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4403 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4404 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4405 * jit.c (jit_object_close_impl): Update.
4406 * jv-lang.c (get_dynamics_objfile): Update.
4407 * linespec.c (add_minsym): Use get_dynamics_objfile.
4408 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4409 (allocate_objfile): Don't initialize 'gdbarch' field.
4410 (get_objfile_arch): Update.
4411 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4413 (struct objfile) <gdbarch>: ... here. Remove.
4414 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4416 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4418 2013-08-20 Alan Modra <amodra@gmail.com>
4420 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4421 for IBM long double nan and inf.
4422 (floatformat_is_negative, floatformat_classify,
4423 floatformat_mantissa): Similarly.
4424 (floatformat_ieee_single, floatformat_ieee_double,
4425 floatformat_ieee_quad, floatformat_arm_ext,
4426 floatformat_ia64_spill): Delete unused vars.
4427 (_initialize_doublest): Delete unused function.
4428 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4429 little-endian variants of floatformat_ibm_long_double.
4431 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4433 * Makefile.in (SFILES): Remove common/target-common.c and
4434 add target/waitstatus.c.
4435 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4436 target/resume.h, target/wait.h and target/waitstatus.h.
4437 (COMMON_OBS): Remove target-common.o and add
4439 (target-common.o): Remove.
4440 (waitstatus.o): New target object file.
4441 * common/target-common.c: Move contents to
4442 target/waitstatus.c and remove.
4443 * common/target-common.h: Move contents to other files and
4445 (enum resume_kind: Move to target/resume.h.
4446 (TARGET_WNOHANG): Move to target/wait.h.
4447 (enum target_waitkind): Move to target/waitstatus.h.
4448 (struct target_waitstatus): Likewise.
4449 * target.h: Do not include target-common.h and
4450 include target/resume.h, target/wait.h and
4451 target/waitstatus.h.
4452 * target/resume.h: New file.
4453 * target/wait.h: New file.
4454 * target/waitstatus.h: New file.
4455 * target/waitstatus.c: New file.
4457 2013-08-19 Pedro Alves <palves@redhat.com>
4459 * linux-nat.c (linux_test_for_tracefork)
4460 (linux_test_for_tracesysgood, linux_child_follow_fork)
4461 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4462 (linux_nat_wait_1): Extend comment.
4463 (linux_async_pipe): Add comment.
4465 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4467 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4468 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4469 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4470 Update to account for fact that PC is now a pseudo-register.
4471 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4472 cases for RL78_PC_REGNUM.
4474 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4477 * top.c (quit_force): Skip writing history file
4478 if input is not from terminal.
4480 2013-08-14 Tom Tromey <tromey@redhat.com>
4482 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4483 resultthreadlist>: New fields.
4484 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4485 (remote_get_threadlist, remote_threadlist_iterator): Use
4486 new fields. Remove static variables.
4488 2013-08-14 Tom Tromey <tromey@redhat.com>
4490 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4491 remote_watch_data_address>: New fields.
4492 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4493 (process_stop_reply, remote_wait_as)
4494 (remote_check_watch_resources, remote_stopped_data_address): Update.
4496 2013-08-14 Tom Tromey <tromey@redhat.com>
4498 * remote.c (struct remote_state) <async_client_callback,
4499 async_client_context>: New fields.
4500 (async_client_callback, async_client_context): Remove.
4501 (remote_async_serial_handler, remote_async): Update.
4503 2013-08-14 Tom Tromey <tromey@redhat.com>
4505 * remote.c (sizeof_pkt): Remove.
4506 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4508 2013-08-14 Tom Tromey <tromey@redhat.com>
4510 * remote.c (struct remote_state) <use_threadinfo_query,
4511 use_threadextra_query>: New fields.
4512 (remote_threads_info, remote_threads_extra_info)
4513 (remote_open_1): Update.
4515 2013-08-14 Tom Tromey <tromey@redhat.com>
4517 * remote.c (struct remote_state) <finished_object,
4518 finished_annex, finished_offset>: New fields.
4519 (remote_read_qxfer): Use remote_state fields; remove static
4522 2013-08-14 Tom Tromey <tromey@redhat.com>
4524 * remote.c (struct remote_state) <last_sent_step>:
4526 (last_sent_step): Remove.
4527 (remote_resume, remote_wait_as): Update.
4529 2013-08-14 Tom Tromey <tromey@redhat.com>
4531 * remote.c (struct remote_state) <last_sent_signal>:
4533 (last_sent_signal): Remove.
4534 (new_remote_state, remote_resume, remote_wait_as): Update.
4536 2013-08-14 Tom Tromey <tromey@redhat.com>
4538 * remote.c (struct remote_state) <last_program_signals_packet>:
4540 (last_program_signals_packet): Remove.
4541 (remote_program_signals, remote_open_1): Update.
4543 2013-08-14 Tom Tromey <tromey@redhat.com>
4545 * remote.c (struct remote_state) <last_pass_packet>:
4547 (last_pass_packet): Remove.
4548 (remote_pass_signals, remote_open_1): Update.
4550 2013-08-14 Tom Tromey <tromey@redhat.com>
4552 * remote.c (struct remote_state) <remote_traceframe_number>:
4554 (remote_traceframe_number): Remove.
4555 (new_remote_state, remote_open_1, set_remote_traceframe)
4556 (remote_trace_find): Update.
4558 2013-08-14 Tom Tromey <tromey@redhat.com>
4560 * remote.c (struct remote_state) <general_thread, continue_thread>:
4562 (general_thread, continue_thread): Remove.
4563 (record_currthread, set_thread, set_general_process)
4564 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4565 (extended_remote_mourn_1): Update.
4567 2013-08-14 Tom Tromey <tromey@redhat.com>
4569 * remote.c (struct remote_state) <remote_desc>: New field.
4570 (remote_desc): Remove.
4571 (remote_threads_info, remote_threads_extra_info, remote_close)
4572 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4573 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4574 (remote_hostio_send_command, remote_file_put, remote_file_get)
4575 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4576 (remote_async, remote_new_objfile, set_range_stepping): Update.
4578 2013-08-14 Tom Tromey <tromey@redhat.com>
4580 * remote.c (remote_state): Now a pointer.
4581 (get_remote_state_raw): Update.
4582 (new_remote_state): New function.
4583 (_initialize_remote): Use new_remote_state.
4585 2013-08-14 Tom Tromey <tromey@redhat.com>
4587 * remote.c (remote_protocol_features): Now const.
4589 2013-08-14 Tom Tromey <tromey@redhat.com>
4591 * remote.c (crc32_table, crc32): Remove.
4592 (remote_verify_memory): Use xcrc32.
4594 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4596 * value.h (create_internalvar_type_lazy): Adjust prototype
4599 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4601 * common/format.c (parse_format_string): Don't allow '#' flag for
4602 pointer arguments in format string.
4604 2013-08-13 Pierre Muller <muller@sourceware.org>
4606 * utils.c (init_page_info): Only call tgetnum function
4607 if rl_get_screen_size did not return useful values.
4609 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4611 PR breakpoints/15117
4612 * linespec.c (linespec_parse_basic): Check for convenience
4613 variable or history value while parsing.
4615 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4617 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4619 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4620 different signals between the generic Linux kernel implementation
4622 (avr_linux_gdb_signal_from_target): Delete.
4623 (avr_linux_gdb_signal_to_target): Delete.
4624 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4626 2013-08-09 Doug Evans <dje@google.com>
4628 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4631 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4633 * linux-tdep.c: Define enum with generic signal numbers.
4634 (linux_gdb_signal_from_target): New function.
4635 (linux_gdb_signal_to_target): Likewise.
4636 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4637 methods to the functions above.
4638 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4639 (linux_gdb_signal_to_target): Likewise.
4640 * alpha-linux-tdep.c: Define new enum with signals different
4641 from generic Linux kernel.
4642 (alpha_linux_gdb_signal_from_target): New function.
4643 (alpha_linux_gdb_signal_to_target): Likewise.
4644 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4645 with the functions mentioned above.
4646 * avr-tdep.c: Define enum with differences between Linux kernel
4648 (avr_linux_gdb_signal_from_target): New function.
4649 (avr_linux_gdb_signal_to_target): Likewise.
4650 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4651 the functions mentioned above.
4652 * sparc-linux-tdep.c: Define enum with differences between SPARC
4653 and generic Linux kernel signal numbers.
4654 (sparc32_linux_gdb_signal_from_target): New function.
4655 (sparc32_linux_gdb_signal_to_target): Likewise.
4656 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4657 to the functions defined above.
4658 * xtensa-linux-tdep.c: Define enum with differences between
4659 Xtensa and Linux kernel generic signals.
4660 (xtensa_linux_gdb_signal_from_target): New function.
4661 (xtensa_linux_gdb_signal_to_target): Likewise.
4662 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4663 to the functions defined above.
4664 * mips-linux-tdep.c: Define enum with differences between
4665 signals in MIPS and Linux kernel generic ones.
4666 (mips_gdb_signal_to_target): New function.
4667 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4668 only different signals from the Linux kernel generic.
4669 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4670 the functions defined above.
4671 * mips-linux-tdep.h (enum mips_signals): Remove.
4673 2013-08-09 Pedro Alves <palves@redhat.com>
4675 * avr-tdep.c (XMALLOC): Delete macro.
4676 * cli/cli-dump.c (XMALLOC): Delete macro.
4678 2013-08-09 Pedro Alves <palves@redhat.com>
4680 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4681 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4682 (fopen_with_cleanup, add_dump_command): Make static.
4683 * cli/cli-dump.h: Delete file.
4684 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4687 2013-08-09 Pedro Alves <palves@redhat.com>
4689 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4692 2013-08-09 Pedro Alves <palves@redhat.com>
4694 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4697 2013-08-09 Pedro Alves <palves@redhat.com>
4699 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4700 (gcore_command): Use tilde_expand here, and when showing the
4701 filename to the user, show the expanded version.
4703 2013-08-09 Yao Qi <yao@codesourcery.com>
4705 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4708 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4710 * gcore.c (create_gcore_bfd): Use tilde_expand.
4712 2013-08-08 Yao Qi <yao@codesourcery.com>
4714 * frame.h (read_frame_local): Declare.
4715 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4717 * stack.c (read_frame_local): New.
4719 2013-08-08 Yao Qi <yao@codesourcery.com>
4721 * mi/mi-cmd-stack.c: Update comments to function
4722 list_args_or_locals.
4724 2013-08-07 Tom Tromey <tromey@redhat.com>
4727 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4728 (process_psymtab_comp_unit_reader): Use it.
4729 (process_psymtab_comp_unit): Update. Add "pretend_language"
4731 (dwarf2_build_psymtabs_hard): Update.
4732 (scan_partial_symbols): Pass CU's language to
4733 process_psymtab_comp_unit.
4735 2013-08-07 Tom Tromey <tromey@redhat.com>
4737 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4738 (dwarf2_gdb_index_functions): Update.
4739 * psymtab.c (find_symbol_file_from_partial): Remove.
4740 (psym_functions): Update.
4741 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4744 2013-08-07 Tom Tromey <tromey@redhat.com>
4746 * symfile.c (set_initial_language): Look up "main" symbol
4747 and use its language.
4748 * symtab.c (find_main_filename): Remove.
4749 * symtab.h (find_main_filename): Remove.
4751 2013-08-07 Tom Tromey <tromey@redhat.com>
4753 * dwarf2read.c (recursively_compute_inclusions): Add
4754 "immediate_parent" argument. Set symtab's "user" field
4756 (compute_symtab_includes): Update.
4758 2013-08-07 Tom Tromey <tromey@redhat.com>
4760 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4761 when adding label symbols.
4763 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4764 Ulrich Weigand <uweigand@de.ibm.com>
4766 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4767 * configure.host (powerpc64-*-aix*): Likewise.
4769 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4770 Ulrich Weigand <uweigand@de.ibm.com>
4772 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4774 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4775 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4776 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4777 * configure.ac: Check for ptrace64.
4778 * configure, config.in: Regenerate.
4780 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4781 Ulrich Weigand <uweigand@de.ibm.com>
4783 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4784 Call ptrace64 instead of ptrace if defined.
4785 Add macro addr_ptr to take care of ptrace address argument.
4786 (pdc_read_regs): Likewise.
4787 (pdc_write_regs): Likewise.
4788 (aix_thread_resume): Likewise.
4789 (fetch_regs_kernel_thread): Likewise.
4790 (store_regs_kernel_thread): Likewise.
4792 2013-08-07 Anton Blanchard <anton@samba.org>
4794 * MAINTAINERS: Add myself to Write After Approval.
4796 2013-08-05 Tom Tromey <tromey@redhat.com>
4798 * aix-thread.c (_initialize_aix_thread): Use
4799 complete_target_initialization.
4800 * bsd-uthread.c (_initialize_bsd_uthread): Use
4801 complete_target_initialization.
4802 * dec-thread.c (_initialize_dec_thread): Use
4803 complete_target_initialization.
4804 * ravenscar-thread.c (_initialize_ravenscar): Use
4805 complete_target_initialization.
4806 * sol-thread.c (_initialize_sol_thread): Use
4807 complete_target_initialization.
4808 * spu-multiarch.c (_initialize_spu_multiarch): Use
4809 complete_target_initialization.
4811 2013-08-05 Tom Tromey <tromey@redhat.com>
4813 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4814 * ada-lang.c (ada_lookup_simple_minsym): Return
4815 bound_minimal_symbol.
4816 * ada-lang.h (ada_lookup_simple_minsym): Update.
4817 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4818 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4819 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4820 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4821 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4822 * minsyms.c (msymbol_objfile): Remove.
4823 (lookup_minimal_symbol_internal): New function, from
4824 lookup_minimal_symbol.
4825 (lookup_minimal_symbol): Rewrite using
4826 lookup_minimal_symbol_internal.
4827 (lookup_bound_minimal_symbol): New function.
4828 * minsyms.h (msymbol_objfile): Remove.
4829 (lookup_bound_minimal_symbol): Declare.
4830 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4831 * parse.c (write_exp_msymbol): Change parameter to a
4832 bound_minimal_symbol.
4833 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4834 * parser-defs.h (write_exp_msymbol): Update.
4835 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4836 * symfile.c (simple_read_overlay_table): Use
4837 lookup_bound_minimal_symbol.
4838 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4839 (search_symbols): Likewise.
4840 (print_msymbol_info): Take a bound_minimal_symbol argument.
4841 (symtab_symbol_info, rbreak_command): Update.
4842 * symtab.h (struct symbol_search) <msymbol>: Change type
4843 to bound_minimal_symbol.
4844 * valops.c (find_function_in_inferior): Use
4845 lookup_bound_minimal_symbol.
4846 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4848 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4851 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4853 (async_cleanup_sigint_signal_handler): ... this.
4854 (initialize_sigint_signal_handler): Remove declaration.
4855 (handle_remote_sigint): Rename the declaration to ...
4856 (async_handle_remote_sigint): ... this.
4857 (handle_remote_sigint_twice): Rename the declaration to ...
4858 (async_handle_remote_sigint_twice): ... this.
4859 (async_remote_interrupt, async_remote_interrupt_twice)
4860 (remote_interrupt): Remove the declarations.
4861 (remote_interrupt_twice): Rename the declaration ...
4862 (sync_remote_interrupt_twice): ... this.
4863 (sigint_remote_twice_token): Rename the variable to ...
4864 (async_sigint_remote_twice_token): ... this.
4865 (sigint_remote_token): Rename the variable to ...
4866 (async_sigint_remote_token): ... this.
4867 (initialize_sigint_signal_handler): Rename the function to ...
4868 (async_initialize_sigint_signal_handler): ... this. Update the name
4870 (handle_remote_sigint): Rename the function to ...
4871 (async_handle_remote_sigint): ... this. Update the names inside.
4872 (handle_remote_sigint_twice): Rename the function to ...
4873 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4874 (cleanup_sigint_signal_handler): Rename the function to ...
4875 (async_cleanup_sigint_signal_handler): ... this.
4876 (remote_interrupt): Rename the function to ...
4877 (sync_remote_interrupt): this. Update the names inside.
4878 (remote_interrupt_twice): Rename the function to ...
4879 (sync_remote_interrupt_twice): this. Update the names inside.
4880 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4881 (_initialize_remote): Update the names inside.
4883 2013-08-02 Tom Tromey <tromey@redhat.com>
4886 * breakpoint.c (update_watchpoint, watchpoint_check)
4887 (watch_command_1): Update.
4888 * eval.c (fetch_subexp_value): Add "preserve_errors"
4890 * ppc-linux-nat.c (check_condition): Update.
4891 * value.h (fetch_subexp_value): Update.
4893 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4895 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4898 2013-08-01 Doug Evans <dje@google.com>
4901 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4902 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4903 Add assert of sig_entry->dwo_unit == NULL.
4904 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4905 had already been read.
4906 (read_signatured_type): Set per_cu.tu_read.
4909 * valops.c (value_struct_elt): Add missing call to check_typedef.
4910 (value_find_oload_method_list): Ditto.
4912 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4913 effectively, struct symbol_search **.
4914 (make_cleanup_free_search_symbols): Change arg to struct
4915 symbol_search **. All callers updated.
4916 (compare_search_syms): Compare symtab file name and block as well.
4917 (search_symbols_equal): New function.
4918 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4919 New args new_head, new_tail. Result is now void. Remove dups after
4920 sorting the symbols.
4921 (search_symbols): Sort all found symbols once, after all have been
4922 found, and remove duplicates. Simplify cleanup tracking of result.
4923 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4925 Further workarounds for binutils/15021.
4926 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4927 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4928 Watch for duplicate symtabs coming from type units.
4929 (compute_symtab_includes): Update call to
4930 recursively_compute_inclusions. Build vector of included symtabs
4932 * symtab.h (symtab_ptr): New typedef.
4933 (DEF_VEC_P (symtab_ptr)): New VEC type.
4934 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4937 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4939 * cli/cli-script.c (script_from_file): Remove use of
4941 * main.c (captured_main): Remove use of error_pre_print and
4943 * utils.c (error_pre_print, quit_pre_print): Remove.
4944 * utils.h (error_pre_print, quit_pre_print): Likewise.
4946 2013-08-01 Yao Qi <yao@codesourcery.com>
4948 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4950 (mi_cmd_stack_list_variables): Likewise.
4952 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4954 * exceptions.c (deprecated_throw_reason): Remove.
4955 * exceptions.h (deprecated_throw_reason): Remove.
4957 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4959 * remote-mips.c (mips_error): Replace use of
4960 deprecated_throw_reason with throw_verror. Use the error message
4961 passed to mips_error as the error message for throw_verror.
4963 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4965 * monitor.c (monitor_interrupt_query): Replace use of
4966 deprecated_throw_reason with quit.
4967 * nto-procfs.c (interrupt_query): Likewise.
4968 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4969 * remote-mips.c (mips_kill): Likewise.
4970 * remote.c (interrupt_query): Likewise.
4972 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4974 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4977 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4978 Yao Qi <yao@codesourcery.com>
4980 * tracepoint.c (trace_dump_command): Select the current frame.
4982 2013-07-30 Doug Evans <dje@google.com>
4984 * dwarf2read.c (process_queue): Add type signature to debug output.
4986 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4988 * value.c (value_fetch_lazy): Mark optimized out values as such
4989 rather than raising an error.
4991 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4993 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4994 before checking which bits of the parent, not the child, value are
4997 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5000 * top.c: Include "filenames.h".
5001 (set_history_filename): New function.
5002 (init_main): Install it as set hook of the "set history filename"
5005 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5007 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5008 attribute parameter.
5009 (dwarf2_const_value_data): Constify struct attribute parameter.
5010 (dwarf2_const_value): Constify struct attribute parameter.
5011 (dwarf2_const_value_attr): Constify struct attribute parameter.
5012 (lookup_die_type): Constify struct attribute parameter.
5013 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5014 (follow_die_ref_or_sig): Constify struct attribute parameter.
5015 (follow_die_ref): Constify struct attribute parameter.
5016 (follow_die_sig): Constify struct attribute parameter.
5017 (get_DW_AT_signature_type): Constify struct attribute parameter.
5018 (get_type_unit_group): Constify struct attribute parameter.
5019 (fill_in_loclist_baton): Constify struct attribute parameter.
5020 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5021 (type_unit_group): Constify struct attribute parameter.
5023 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5025 * dwarf2read.c (attr_form_is_block): Make argument const.
5026 (attr_form_is_section_offset): Make argument const.
5027 (attr_form_is_constant): Make argument const.
5028 (attr_form_is_ref): Make argument const.
5030 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5032 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5034 (attr_form_is_ref): Moved below attr_form_is_constant.
5036 2013-07-29 Doug Evans <dje@google.com>
5038 * main.c (captured_command_loop): Tweak comment.
5040 * target.c (target_async_permitted_1): Fix comment.
5042 * symtab.c (iterate_over_some_symtabs): Add comment.
5044 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5046 2013-07-27 Yao Qi <yao@codesourcery.com>
5048 * NEWS: Mention that GDBserver now supports hardware
5049 watchpoints on the MIPS GNU/Linux target.
5051 2013-07-27 Yao Qi <yao@codesourcery.com>
5053 * Makefile.in (HFILES_NO_SRCDIR): Add
5054 common/mips-linux-watch.h.
5055 (mips-linux-watch.o): New rule.
5056 * common/mips-linux-watch.c: New.
5057 * common/mips-linux-watch.h: New.
5058 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5059 * mips-linux-nat.c: Include mips-linux-watch.h.
5060 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5061 to common/mips-linux-watch.h.
5062 (MAX_DEBUG_REGISTER): Likewise.
5063 (enum pt_watch_style): Likewise.
5064 (struct mips32_watch_regs): Likewise.
5065 (struct mips64_watch_regs): Likewise.
5066 (struct pt_watch_regs): Likewise.
5067 (struct mips_watchpoint): Likewise.
5068 (mips_linux_watch_get_irw_mask): Move to
5069 common/mips-linux-watch.c.
5070 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5071 (mips_linux_watch_get_watchlo): Likewise.
5072 (mips_linux_watch_set_watchlo): Likewise.
5073 (mips_linux_watch_get_watchhi): Likewise.
5074 (mips_linux_watch_set_watchhi): Likewise.
5075 (mips_linux_read_watch_registers): Likewise.
5076 (mips_linux_watch_type_to_irw): Likewise.
5077 (mips_linux_stopped_data_address, fill_mask): Likewise.
5078 (mips_linux_watch_try_one_watch): Likewise.
5079 (mips_linux_watch_populate_regs): Likewise.
5081 2013-07-27 Yao Qi <yao@codesourcery.com>
5083 * mips-linux-nat.c (get_irw_mask): Rename to ...
5084 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5085 'set' to 'n'. Update function comment. All callers changed.
5086 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5087 function comment. All callers changed.
5088 (get_num_valid): Rename to ...
5089 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5090 'set' to 'n'. Update function comment. All callers changed.
5091 (get_watchlo): Rename to ...
5092 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5093 'set' to 'n'. Update function comment. All callers changed.
5094 (set_watchlo): Rename to ...
5095 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5096 'set' to 'n'. Update function comment. All callers changed.
5097 (get_watchhi): Rename to ...
5098 (mips_linux_watch_get_watchhi): ... this. Update function
5099 comment. All callers changed.
5100 (set_watchhi): Rename to ...
5101 (mips_linux_watch_set_watchhi): ... this. Update function
5102 comment. All callers changed.
5103 (mips_linux_read_watch_registers): Update function comment.
5104 Add new parameters 'lwpid', 'watch_readback', and
5105 'watch_readback_valid'. Update.
5106 (type_to_irw): Rename to ...
5107 (mips_linux_watch_type_to_irw): ... this. Update function
5108 comment. All callers changed.
5109 (fill_mask): Update function comment.
5110 (try_one_watch): Rename to ...
5111 (mips_linux_watch_try_one_watch): ... this. Change the type
5112 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5113 (populate_regs_from_watches): Rename to ...
5114 (mips_linux_watch_populate_regs): ... this. Add parameter
5115 'current_watches'. All callers changed.
5117 2013-07-27 Yao Qi <yao@codesourcery.com>
5119 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5121 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5122 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5123 (struct pt_watch_regs): Likewise.
5124 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5125 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5126 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5127 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5128 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5130 2013-07-27 Yao Qi <yao@codesourcery.com>
5132 * breakpoint.h: Include break-common.h.
5133 (enum target_hw_bp_type): Move to ...
5134 * common/break-common.h: ... here. New.
5136 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5138 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5139 process group regardless of having tty on stdin.
5141 2013-07-25 Doug Evans <dje@google.com>
5143 * linux-fork.h (detach_fork): Delete.
5145 2013-07-25 Tom Tromey <tromey@redhat.com>
5147 PR remote/15256, PR remote/15266:
5148 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5149 * monitor.c (monitor_detach): Use unpush_target.
5150 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5151 * remote-mips.c (mips_detach): Use unpush_target. Don't
5153 * remote-sim.c (gdbsim_detach): Use unpush_target.
5154 * target.c (pop_target): Remove.
5155 (pop_all_targets_above): Don't call target_close.
5156 (target_close): Assert that the target is unpushed.
5157 * target.h (pop_target): Don't declare.
5158 * tracepoint.c (tfile_open): Use unpush_target.
5160 2013-07-25 Tom Tromey <tromey@redhat.com>
5162 * linux-thread-db.c (init_thread_db_ops): Call
5163 complete_target_initialization.
5164 (_initialize_thread_db): Don't call add_target.
5165 * target.c (complete_target_initialization): New function.
5166 (add_target_with_completer): Call it.
5167 * target.h (complete_target_initialization): Declare.
5169 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5171 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5172 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5173 (HPPANBSD_SIZEOF_GREGS): New define.
5174 (hppaobsd_supply_gregset): Handle additional registers.
5175 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5176 we provide more registers now.
5177 (hppabsd_supply_gregset): Supply additional registers.
5178 (hppabsd_collect_gregset): Collect additional registers.
5180 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5182 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5183 (hppabsd_dwarf2_frame_init_reg): New function.
5184 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5186 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5188 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5189 'z' format code. Remove error for optimized out values, standard
5190 code will handle these fine.
5192 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5194 * NEWS: Mention new 'z' formatter.
5195 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5196 (_initialize_printcmd): Mention 'z' formatter in help text of the
5199 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5201 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5204 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5206 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5207 interface can evaluate arguments. Fallback to the old mode if it
5209 (create_exception_master_breakpoint): Likewise.
5210 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5211 (struct sym_probe_fns elf_probe_fns): Export function above to the
5213 * probe.c (can_evaluate_probe_arguments): New function.
5214 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5216 (can_evaluate_probe_arguments): New function prototype.
5217 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5218 probe interface can evaluate arguments. Fallback to the old mode
5220 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5221 interface can evaluate arguments. Warning the user if it cannot.
5222 (stap_can_evaluate_probe_arguments): New function.
5223 (struct probe_ops stap_probe_ops): Export function above to the
5225 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5226 New function pointer.
5228 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5230 * Makefile.in (SFILES): Add common/target-common.c.
5231 Add common/target-common.h to headers.
5232 (COMMON_OBS): Add target-common.o.
5233 (target-common.o): New target.
5234 * linux-nat.h (resume_kind): Move to common/target-common.h.
5235 * target.c (target_waitstatus_to_string): Move to
5236 common/target-common.c.
5237 * target.h: Include target-common.h.
5238 (target_waitkind): Move to common/target-common.h.
5239 (target_waitstatus): Likewise.
5240 (TARGET_WNOHANG): Likewise.
5241 * common/target-common.c: New file.
5242 * common/target-common.h: New file.
5244 2013-07-24 Doug Evans <dje@google.com>
5246 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5249 2013-07-23 Yao Qi <yao@codesourcery.com>
5251 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5252 parameter 'gdbarch'.
5253 (i386_stack_tramp_frame_sniffer): Caller update.
5254 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5255 parameter 'gdbarch' and 'target'.
5256 (i386_linux_core_read_description): Caller update.
5257 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5259 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5262 2013-07-23 Tom Tromey <tromey@redhat.com>
5264 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5267 2013-07-22 Doug Evans <dje@google.com>
5269 * exec.h (remove_target_sections): Delete arg abfd.
5270 * exec.c (exec_close): Update call to remove_target_sections.
5271 (remove_target_sections): Delete arg abfd.
5272 * solib.c (update_solib_list): Ditto.
5273 (reload_shared_libraries_1): Ditto.
5274 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5275 * target.h (struct target_section): Rename key to owner.
5278 2013-07-22 Tom Tromey <tromey@redhat.com>
5280 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5282 2013-07-22 Tom Tromey <tromey@redhat.com>
5284 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5285 Simplify cleanup handling.
5287 2013-07-22 Tom Tromey <tromey@redhat.com>
5289 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5290 on all return paths.
5292 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5294 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5295 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5296 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5298 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5300 * top.c (print_gdb_version): Add help, apropos description and
5301 url to online documentation.
5303 2013-07-19 Hui Zhu <hui@codesourcery.com>
5306 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5308 2013-07-19 Yao Qi <yao@codesourcery.com>
5310 * target.c (update_current_target): Change the default action
5311 of 'to_traceframe_info' from tcomplain to return_zero.
5312 * target.h (struct target_ops) <to_traceframe_info>: Add more
5314 * valops.c (read_value_memory): Call
5315 traceframe_available_memory unconditionally.
5317 2013-07-18 Yao Qi <yao@codesourcery.com>
5319 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5320 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5321 symbol without prefix. If found, set its type to
5322 'mst_solib_trampoline'.
5324 2013-07-17 Doug Evans <dje@google.com>
5326 * NEWS: Mention "set print raw frame-arguments".
5327 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5328 * stack.c (print_raw_frame_arguments): New static global.
5329 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5330 (_initialize_stack): New command "set/show print raw frame-arguments".
5331 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5332 (set_print_raw, show_print_raw): New functions.
5333 (_initialize_valprint): New prefix command "set/show print raw".
5334 * valprint.h (value_print_options): Improve comments.
5336 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5337 of all *list variables.
5339 * gdbcmd.h (togglelist): Delete.
5340 * cli/cli-cmds.c (togglelist): Delete.
5341 (init_cmd_lists): Update.
5342 * cli/cli-cmds.h (togglelist): Delete.
5344 2013-07-17 Tom Tromey <tromey@redhat.com>
5346 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5349 2013-07-16 Doug Evans <dje@google.com>
5351 * nto-tdep.c (nto_relocate_section_addresses): Update,
5352 target_section.bfd deleted.
5353 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5354 * s390-tdep.c (s390_load): Ditto.
5355 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5357 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5359 * common/format.c (parse_format_string): Add checks for NULL
5360 character before calling strchr.
5362 2013-07-16 Doug Evans <dje@google.com>
5364 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5365 temp_pathname argument.
5366 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5367 when opening the file fails.
5369 * target.h (struct target_section): Delete member bfd.
5370 All users updated to use the_bfd_section->owner instead.
5371 * exec.c (add_to_section_table): Assert bfd is expected value.
5372 Remove initialization of target_section.bfd.
5373 (remove_target_sections): Update.
5374 (section_table_available_memory): Update.
5375 (section_table_xfer_memory_partial): Update.
5376 (print_section_info): Update.
5377 (exec_set_section_address): Update.
5378 * record-full.c (record_full_core_xfer_partial): Update.
5379 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5380 * solib-target.c (solib_target_relocate_section_addresses): Update.
5381 * symfile.c (build_section_addr_info_from_section_table): Update.
5382 * target.c (memory_xfer_live_readonly_partial): Update.
5383 (memory_xfer_partial_1): Update.
5385 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5387 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5388 now available for embedded (BookE) and server (BookS) processors,
5389 correct mentions of 'booke' and adjust comments accordingly in order to
5390 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5391 (have_ptrace_booke_interface): Rename function and variable
5392 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5393 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5394 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5395 'hwdebug_point_cmp'. Update all uses.
5396 (booke_find_thread_points_by_tid): Rename function
5397 'booke_find_thread_points_by_tid' to
5398 'hwdebug_find_thread_points_by_tid'. Update all uses.
5399 (booke_insert_point): Rename function 'booke_insert_point' to
5400 'hwdebug_insert_point'. Update all uses.
5401 (booke_remove_point): Rename function 'booke_remove_point' to
5402 'hwdebug_remove_point'. Update all uses.
5404 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5406 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5407 numbers with enum values.
5409 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5412 * thread.c (thread_apply_all_command): Check for valid threads
5414 (thread_array_cleanup): New struct.
5415 (set_thread_refcount): New function.
5417 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5419 * infcmd.c (default_print_one_register_info): Reuse function
5422 2013-07-10 Tom Tromey <tromey@redhat.com>
5424 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5425 (ada-exp.o): New target.
5427 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5429 * mt-tdep.c (mt_registers_info): Call
5430 get_no_prettyformat_print_options instead of
5431 get_raw_print_options (regression by last patch from Doug
5434 2013-07-09 Pedro Alves <palves@redhat.com>
5436 Checked in by Joel Brobecker <brobecker@adacore.com>.
5437 * ada-lang.c (coerce_unspec_val_to_type): Use
5438 value_optimized_out_const.
5439 * value.c (value_optimized_out_const): New function.
5440 * value.h (value_optimized_out_const): New declaration.
5442 2013-07-09 Doug Evans <dje@google.com>
5444 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5445 Enum values rename as well. All uses updated.
5446 * valprint.h (value_print_options): Rename member pretty to
5447 pretty format. Rename member prettyprint_arrays to
5448 prettyformat_arrays. Rename member prettyprint_structs to
5449 prettyformat_structs. All uses updated.
5450 (get_no_prettyformat_print_options): Renamed from
5451 get_raw_print_options.
5452 * valprint.c (get_no_prettyformat_print_options): Renamed from
5453 get_raw_print_options. All callers updated.
5454 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5455 All callers updated.
5456 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5457 All callers updated.
5458 (_initialize_valprint): Improve help text for "set print pretty" and
5461 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5463 * value.c (value_bits_valid): Revert previous change, and change
5464 by Pedro on 2013-07-04, due to regressions in
5465 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5467 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5468 Pedro Alves <palves@redhat.com>
5470 * value.c (value_bits_valid): If the value is not lval_computed
5471 or has no check validity handler then the answer is the
5472 optimized_out flag, otherwise defer to the handler.
5474 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5476 * top.c (print_gdb_configuration): Explain in output of
5477 --configuration what does "relocatable" mean.
5479 * main.c (print_gdb_help): Regroup options in the --help text.
5480 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5481 the relevant discussions.
5483 2013-07-06 Yao Qi <yao@codesourcery.com>
5485 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5486 Remove parameter 'lsal'.
5487 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5488 to inner block. Caller update.
5489 (base_breakpoint_create_breakpoints_sal): Update.
5490 (bkpt_create_breakpoints_sal): Likewise.
5491 (tracepoint_create_breakpoints_sal): Likewise.
5492 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5493 element 0 of vector 'canonical->sals'.
5495 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5497 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5498 register number instead of the pseudo register one.
5499 (rs6000_dwarf2_reg_to_regnum): Likewise.
5501 2013-07-04 Pedro Alves <palves@redhat.com>
5503 * findvar.c (value_of_register): Use allocate_optimized_out_value
5504 if the register has been optimized out, instead of
5505 set_value_optimized_out.
5506 * frame-unwind.c (frame_unwind_got_optimized): Use
5507 allocate_optimized_out_value.
5509 2013-07-04 Pedro Alves <palves@redhat.com>
5511 * value.c (value_bits_valid): If the value is not lval_computed,
5512 or doesn't have a check_validity hook, assume the value is entirely
5515 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5517 * stack.c (read_frame_arg): No longer fetch lazy values.
5518 * value.c (value_optimized_out): If the value is not already
5519 marked optimized out, and is lazy then fetch it.
5520 (value_primitive_field): Move optimized out check to later in the
5521 function, after we have loaded any lazy values.
5522 (value_fetch_lazy): Use optimized out flag directly rather than
5523 calling optimized_out method.
5525 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5527 * valops.c: Don't include "user-regs.h".
5528 (value_fetch_lazy): Moved to value.c.
5529 * value.c: Include "user-regs.h".
5530 (value_fetch_lazy): Moved from valops.c.
5532 2013-07-04 Yao Qi <yao@codesourcery.com>
5535 2013-06-27 Yao Qi <yao@codesourcery.com>
5537 * common/create-version.sh: Update comments. Handle the case
5538 that TARGET_ALIAS is empty.
5540 2013-07-03 Pedro Alves <palves@redhat.com>
5542 * Makefile.in (config.status): Depend on development.sh.
5543 (aclocal_m4_deps): Add libmcheck.m4.
5544 * acinclude.m4: Include libmcheck.m4.
5545 * configure.ac: Source development.sh instead of setting
5546 'development' here. --enable-libmcheck/--disable-libmcheck code
5547 factored out to GDB_AC_LIBMCHECK. Run it.
5548 * development.sh: New file.
5549 * libmcheck.m4: New file.
5550 * configure: Regenerate.
5552 2013-07-02 Tom Tromey <tromey@redhat.com>
5554 * contrib/ari/update-web-ari.sh: Update for version.in change.
5556 2013-07-02 Tom Tromey <tromey@redhat.com>
5558 * common/ptid.h: Comment fixes.
5560 2013-07-01 Tom Tromey <tromey@redhat.com>
5562 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5563 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5564 (dwarf2_read_index, create_all_comp_units): Update.
5566 2013-07-01 Tom Tromey <tromey@redhat.com>
5568 * configure.ac (build_warnings): Add -Wold-style-definition.
5569 * configure: Rebuild.
5570 * machoread.c (_initialize_machoread): Use "(void)".
5571 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5574 2013-07-01 Tom Tromey <tromey@redhat.com>
5576 * configure.ac (build_warnings): Add -Wold-style-declaration.
5577 * configure: Rebuild.
5578 * dsrec.c (make_srec): Use "static const", not "const static".
5579 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5581 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5582 Use "static const", not "const static".
5583 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5585 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5587 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5589 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5591 (v850_dbtrap_breakpoint_from_pc): Likewise.
5592 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5595 2013-07-01 Tom Tromey <tromey@redhat.com>
5597 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5598 * configure: Rebuild.
5600 2013-07-01 Pedro Alves <palves@redhat.com>
5602 * defs.h: Include "pathmax.h".
5603 * utils.c: Don't include sys/param.h.
5604 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5605 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5606 instead of MAXPATHLEN.
5607 * solib-sunos.c: Don't include sys/param.h.
5608 * xcoffread.c: Don't include sys/param.h.
5609 * bsd-kvm.c: Don't include sys/param.h.
5610 * darwin-nat.c: Don't include sys/param.h.
5611 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5612 * darwin-nat-info.c: Don't include sys/param.h.
5613 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5615 * i386obsd-nat.c: Don't include sys/param.h.
5616 * inf-child.c: Don't include sys/param.h.
5617 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5618 * linux-fork.c: Don't include sys/param.h.
5619 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5620 * linux-nat.c: Don't include sys/param.h.
5621 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5622 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5623 * m68klinux-nat.c: Don't include sys/param.h.
5624 * nbsd-nat.c: Don't include sys/param.h.
5625 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5626 * ppc-linux-nat.c: Don't include sys/param.h.
5627 * rs6000-nat.c: Don't include sys/param.h.
5628 * spu-linux-nat.c. Don't include sys/param.h.
5629 * windows-nat.c: Don't include sys/param.h.
5630 * xtensa-linux-nat.c: Don't include sys/param.h.
5631 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5633 2013-07-01 Pedro Alves <palves@redhat.com>
5635 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5636 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5637 * gnulib/aclocal.m4: Regenerate.
5638 * gnulib/config.in: Regenerate.
5639 * gnulib/configure: Regenerate.
5640 * gnulib/import/pathmax.h: New file.
5641 * gnulib/import/Makefile.am: Regenerate.
5642 * gnulib/import/Makefile.in: Regenerate.
5643 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5644 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5645 * gnulib/import/m4/pathmax.m4: New file.
5647 2013-07-01 Pedro Alves <palves@redhat.com>
5649 * configure.ac (GDBINIT): Define, depending on host.
5650 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5651 * top.c (PATH_MAX): Delete fallback definition.
5652 (GDBINIT_FILENAME): Delete.
5653 (gdbinit): Reimplement as const char array set to the GDBINIT
5655 * top.h (gdbinit): Make const.
5656 * configure, config.in: Regenerate.
5658 2013-07-01 Pedro Alves <palves@redhat.com>
5660 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5661 * cli/cli-cmds.h (source_script): Likewise.
5662 * exceptions.c (catch_command_errors_const): New function.
5663 * exceptions.h (catch_command_errors_const): Declare.
5664 * main.c (get_init_files): Make parameters const, and adjust.
5665 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5666 'local_gdbinit' locals const. Adjust to use
5667 catch_command_errors_const.
5668 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5669 'local_gdbinit' locals const.
5671 2013-07-01 Pedro Alves <palves@redhat.com>
5673 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5674 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5675 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5678 2013-07-01 Pedro Alves <palves@redhat.com>
5680 Import the "unistd" gnulib module.
5681 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5682 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5683 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5684 import/m4/unistd_h.m4.
5685 * gnulib/aclocal.m4: Renenerate.
5686 * gnulib/config.in: Renenerate.
5687 * gnulib/configure: Renenerate.
5688 * gnulib/import/Makefile.am: Renenerate.
5689 * gnulib/import/Makefile.in: Renenerate.
5690 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5691 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5692 * gnulib/import/m4/off_t.m4: New file.
5693 * gnulib/import/m4/ssize_t.m4: New file.
5694 * gnulib/import/m4/sys_types_h.m4: New file.
5695 * gnulib/import/m4/unistd_h.m4: New file.
5696 * gnulib/import/sys_types.in.h: New file.
5697 * gnulib/import/unistd.c: New file.
5698 * gnulib/import/unistd.in.h: New file.
5700 2013-07-01 Pedro Alves <palves@redhat.com>
5702 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5703 defined instead of checking HAVE_UNISTD_H.
5705 2013-07-01 Pedro Alves <palves@redhat.com>
5707 Reimport gnulib from scratch.
5708 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5709 import/m4/onceonly.m4.
5710 * gnulib/aclocal.m4: Renegerate.
5711 * gnulib/config.in: Renegerate.
5712 * gnulib/configure: Renegerate.
5713 * gnulib/import/Makefile.in: Renegerate.
5714 * gnulib/import/extra/update-copyright: Renegerate.
5715 * gnulib/import/m4/onceonly.m4: Delete.
5717 2013-07-01 Pedro Alves <palves@redhat.com>
5719 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5721 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5724 * remote.c (async_remote_interrupt_twice): Make it static.
5725 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5727 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5729 * ia64-linux-tdep.c: Include <ctype.h>.
5730 (ia64_linux_stap_is_single_operand): New function.
5731 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5733 2013-06-28 Tom Tromey <tromey@redhat.com>
5735 * Makefile.in (version.c): Use version.in, not
5737 * common/create-version.sh: Likewise.
5738 * common/version.in: Move...
5739 * version.in: ...here.
5741 2013-06-28 Pedro Alves <palves@redhat.com>
5743 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5745 * utils.h (pagination_enabled): Declare.
5747 2013-06-28 Pedro Alves <palves@redhat.com>
5749 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5750 Move higher up in file.
5752 2013-06-28 Tom Tromey <tromey@redhat.com>
5754 * tracepoint.c (deprecated_readline_begin_hook)
5755 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5758 2013-06-28 Pedro Alves <palves@redhat.com>
5761 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5762 checking if they're available.
5763 * value.c (value_available_contents_eq): Change comment.
5764 * value.h (value_available_contents_eq): Expand comment.
5766 2013-06-27 Tom Tromey <tromey@redhat.com>
5768 * target.c (find_run_target): Remove.
5769 * target.h (find_run_target): Remove.
5771 2013-06-27 Tom Tromey <tromey@redhat.com>
5773 * corelow.c (core_gdbarch): Now static.
5775 2013-06-27 Tom Tromey <tromey@redhat.com>
5777 * target.c (target_struct_index): Remove.
5779 2013-06-27 Pedro Alves <palves@redhat.com>
5781 * infrun.c: Remove comment describing the 'stepping over runtime
5782 loader dynamic symbol resolution code' mechanism; moved to
5785 2013-06-27 Pedro Alves <palves@redhat.com>
5787 * exceptions.c (catch_command_errors): Remove spurious space.
5788 * exceptions.h (catch_command_errors): Second parameter is "arg",
5791 2013-06-27 Yao Qi <yao@codesourcery.com>
5793 * common/create-version.sh: Update comments. Handle the case
5794 that TARGET_ALIAS is empty.
5796 2013-06-26 Pedro Alves <palves@redhat.com>
5798 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5801 2013-06-26 Pedro Alves <palves@redhat.com>
5803 * infrun.c: Update comments on stepping over runtime loader
5804 dynamic symbol resolution code.
5806 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5808 * ax-gdb.h (union exp_element): Forward declare.
5809 * parser-defs.h: Include expression.h.
5811 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5813 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5815 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5817 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5819 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5821 Fix trace-status to output proper start-time and stop-time.
5822 * tracepoint.c (trace_status_command): Fix type of printf arg to
5823 prevent improper type conversion.
5824 (trace_status_mi): Likewise.
5826 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5828 * mips-tdep.c (mips_next_pc): Fix a typo.
5830 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5832 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5834 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5835 Yao Qi <yao@codesourcery.com>
5837 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5838 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5839 * mi/mi-main.c (print_variable_or_computed): New function.
5840 (mi_cmd_trace_frame_collected): New function.
5841 * tracepoint.c (find_trace_state_variable_by_number): New.
5842 (struct traceframe_info): Move to tracepoint.h
5843 (struct collection_list): Likewise.
5844 (do_collect_symbol): Include locals and arguments in the
5845 collected variables list.
5846 (clear_collection_list): Clear wholly collected variables list
5847 and computed variables list.
5848 (append_exp): New function.
5849 (encode_actions_1): Include variables in the wholly
5850 collected variables list. Include memory ranges and
5851 full-fledged expressions in the computed expressions list.
5852 (encode_actions): Move some code to ...
5853 Return the cleanup chain.
5854 (encode_actions_rsp): ... here. New function.
5855 (get_traceframe_location, get_traceframe_info): Remove static.
5856 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5857 (struct collection_list): Moved from tracepoint.c. Add two
5858 new fields 'wholly_collected' and 'computed'.
5859 (find_trace_state_variable_by_number): Declare.
5860 (encode_actions): Adjust declaration.
5861 (encode_actions_rsp): Declare.
5862 (get_traceframe_info, get_traceframe_location): Declare.
5864 * NEWS: Mention new MI command -trace-frame-collected.
5866 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5867 Yao Qi <yao@codesourcery.com>
5869 * ctf.c (ctf_traceframe_info): Push trace state variables
5870 present in the trace data into the traceframe info object.
5871 * breakpoint.c (DEF_VEC_I): Remove.
5872 * common/filestuff.c (DEF_VEC_I): Likewise.
5873 * dwarf2loc.c (DEF_VEC_I): Likewise.
5874 * mi/mi-main.c (DEF_VEC_I): Likewise.
5875 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5876 * features/traceframe-info.dtd: Add tvar element and its
5878 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5879 (build_traceframe_info): Push trace state variables present in
5880 the trace data into the traceframe info object.
5881 (traceframe_info_start_tvar): New function.
5882 (tvar_attributes): New.
5883 (traceframe_info_children): Add "tvar" element.
5884 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5886 * NEWS: Mention the change in GDB and GDBserver.
5888 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5889 Yao Qi <yao@codesourcery.com>
5891 * tracepoint.c (trace_dump_command): Move code to ...
5892 (get_traceframe_location): ... here. New.
5894 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5895 Yao Qi <yao@codesourcery.com>
5897 * tracepoint.c (trace_dump_command): GDB emits an error
5898 instead of a warning when a traceframe is not selected.
5900 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5901 Yao Qi <yao@codesourcery.com>
5903 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5904 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5906 (do_clear_collection_list, init_collection_list): New.
5907 (encode_actions): Add local variables 'tracepoint_list' and
5908 'stepping_list'. Call init_collection_list and make cleanup
5909 which calls do_clear_collection_list. Don't call
5910 clear_collection_list.
5911 (_initialize_tracepoint): Delete references to
5912 'tracepoint_list' and 'stepping_list'.
5914 2013-06-25 Tom Tromey <tromey@redhat.com>
5916 * common/create-version.sh (date): Use "$", not "$$" in sed
5919 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5921 * NEWS (New targets): Add entry for TI MSP430.
5923 2013-06-25 Yao Qi <yao@codesourcery.com>
5925 * remote.c (remote_start_remote): Move code to upload tsv
5928 2013-06-25 Yao Qi <yao@codesourcery.com>
5929 Hui Zhu <hui@codesourcery.com>
5930 Pedro Alves <palves@redhat.com>
5932 PR breakpoints/15075
5933 PR breakpoints/15434
5934 * breakpoint.c (bpstat_stop_status): Call
5935 b->ops->after_condition_true.
5936 (update_dprintf_command_list): Don't append "continue" command
5937 to the command list of dprintf breakpoint.
5938 (base_breakpoint_after_condition_true): New function.
5939 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5940 (dprintf_after_condition_true): New function.
5941 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5942 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5944 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5946 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5947 (ALLDEPFILES): Add msp430-tdep.c.
5948 * configure.tgt (msp430*-*-elf): New target.
5949 * msp430-tdep.c: New file.
5951 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5953 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5954 microMIPS synthetic symbols.
5956 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5958 * objfiles.h (pc_in_section): New prototype.
5959 (in_plt_section): Remove name argument, replace prototype with
5960 static inline function.
5961 * mips-tdep.h: Include "objfiles.h".
5962 (in_mips_stubs_section): New function.
5963 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5964 in_solib_call_trampoline member.
5965 (hppa_in_solib_call_trampoline): Remove name argument.
5966 * objfiles.c (pc_in_section): New function.
5967 (in_plt_section): Remove function.
5968 * mips-linux-tdep.c: Include "objfiles.h".
5969 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5970 name argument. Return 1 rather than the low 16-bit halfword of
5971 any instruction examined.
5972 (mips_linux_in_dynsym_resolve_code): Update
5973 mips_linux_in_dynsym_stub call accordingly.
5974 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5975 rather than an equivalent hand-coded sequence.
5976 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5977 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5978 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5979 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5981 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5982 on call to tdep->in_solib_call_trampoline.
5983 (hppa_in_solib_call_trampoline): Remove name argument, update
5984 according to in_plt_section change.
5985 (hppa_skip_trampoline_code): Update according to in_plt_section
5987 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5988 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5990 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5991 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5992 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5993 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5994 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5995 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5996 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5997 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5998 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5999 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6000 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6001 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6002 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6004 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6006 * common/create-version.sh: Fix expansion of $host_alias
6007 and $target_alias in generation of HOST_NAME and TARGET_NAME
6010 2013-06-24 Tom Tromey <tromey@redhat.com>
6012 * common/create-version.sh: New file.
6013 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6015 (HFILES_NO_SRCDIR): Use common/version.h.
6016 * version.in: Move to ...
6017 * common/version.in: ... here. Replace date with "DATE".
6018 * version.h: Move to ...
6019 * common/version.h: ... here.
6021 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6023 * gdb/gnulib/Makefile.in: Update date in copyright header.
6024 * gdb/gnulib/configure.ac: Ditto.
6025 * gdb/gnulib/update-gnulib.sh: Ditto.
6027 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6029 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6030 "gdb/gnulib/import".
6032 2013-06-21 Will Newton <will.newton@linaro.org>
6034 * doublest.c (ldfrexp): Remove function.
6035 (convert_doublest_to_floatformat): Call frexpl instead of
6038 2013-06-21 Will Newton <will.newton@linaro.org>
6040 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6041 * gnulib/aclocal.m4: Regenerate.
6042 * gnulib/config.in: Regenerate.
6043 * gnulib/configure: Regenerate.
6044 * gnulib/import/Makefile.am: Update.
6045 * gnulib/import/Makefile.in: Update.
6046 * gnulib/import/m4/gnulib-cache.m4: Update.
6047 * gnulib/import/m4/gnulib-comp.m4: Update.
6048 * gnulib/import/float+.h: Import.
6049 * gnulib/import/float.c: Import.
6050 * gnulib/import/float.in.h: Import.
6051 * gnulib/import/fpucw.h: Import.
6052 * gnulib/import/frexp.c: Import.
6053 * gnulib/import/frexpl.c: Import.
6054 * gnulib/import/isnan.c: Import.
6055 * gnulib/import/isnand-nolibm.h: Import.
6056 * gnulib/import/isnand.c: Import.
6057 * gnulib/import/isnanl-nolibm.h: Import.
6058 * gnulib/import/isnanl.c: Import.
6059 * gnulib/import/itold.c: Import.
6060 * gnulib/import/m4/exponentd.m4: Import.
6061 * gnulib/import/m4/exponentl.m4: Import.
6062 * gnulib/import/m4/float_h.m4: Import.
6063 * gnulib/import/m4/fpieee.m4: Import.
6064 * gnulib/import/m4/frexp.m4: Import.
6065 * gnulib/import/m4/frexpl.m4: Import.
6066 * gnulib/import/m4/isnand.m4: Import.
6067 * gnulib/import/m4/isnanl.m4: Import.
6068 * gnulib/import/m4/math_h.m4: Import.
6069 * gnulib/import/math.c: Import.
6070 * gnulib/import/math.in.h: Import.
6072 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6074 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6075 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6076 signature_INTEL_edx comparisons.
6078 2013-06-20 Doug Evans <dje@google.com>
6081 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6082 All callers updated.
6083 (open_dwp_file): If we can't find the dwp file, search the basename
6084 in debug-file-directory.
6086 * dwarf2read.c (struct dwp_file): Fix comment.
6087 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6089 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6092 2013-06-20 Yao Qi <yao@codesourcery.com>
6094 * breakpoint.c (create_breakpoint): Fix code indentation.
6096 2013-06-20 Yao Qi <yao@codesourcery.com>
6098 * breakpoint.c (create_breakpoints_sal_default): Remove
6099 parameter 'lsal'. Update declaration.
6100 (bkpt_create_breakpoints_sal): Caller update.
6101 (tracepoint_create_breakpoints_sal): Likewise.
6103 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6104 Yao Qi <yao@codesourcery.com>
6106 * NEWS: Mention the new option '--skip-unavailable' of command
6107 -data-list-register-values.
6108 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6109 --skip-unavailable option. Adjust to use output_register.
6110 (output_register): Add new 'skip_unavailable' parameter.
6113 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6115 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6116 common/i386-gcc-cpuid.h.
6117 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6118 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6119 Copy the latest version from upstream gcc.
6120 * common/linux-btrace.c: Include i386-cpuid.h.
6121 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6123 (cpu_supports_btrace): Likewise.
6124 * go32-nat.c: Include i386-cpuid.h.
6125 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6127 2013-06-19 Doug Evans <dje@google.com>
6129 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6130 (get_section_index): Ditto.
6132 2013-06-19 Tom Tromey <tromey@redhat.com>
6134 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6137 2013-06-18 Doug Evans <dje@google.com>
6139 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6141 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6142 Move test of cu_index closer to use. Print complaint if cu_index
6145 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6147 * machoread.c (oso_vector): Delete this global.
6148 (macho_register_oso): Add new parameter "oso_vector_ptr".
6149 Use it instead of the "oso_vector" global.
6150 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6151 (macho_symfile_read): Use a local oso_vector, to be free'ed
6152 at the end of this function, in place of the old "oso_vector"
6153 global. Update various function calls accordingly. Use one
6154 single cleanup chain for the entire function.
6156 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6158 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6159 DWARF2_PER_OBJFILE by uses of DATA instead.
6161 2013-06-18 Tom Tromey <tromey@redhat.com>
6163 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6165 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6166 Special case signals other than GDB_SIGNAL_TRAP.
6167 (explains_signal_watchpoint): New function.
6168 (base_breakpoint_explains_signal): Add 'sig' argument.
6169 (initialize_breakpoint_ops): Set 'explains_signal' method for
6171 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6173 (bpstat_explains_signal): Likewise.
6174 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6176 2013-06-18 Tom Tromey <tromey@redhat.com>
6178 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6180 2013-06-18 Tom Tromey <tromey@redhat.com>
6182 * python/python.c (finish_python_initialization): Decref
6183 'pythondir' on failure path as well.
6185 2013-06-18 Tom Tromey <tromey@redhat.com>
6188 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6189 after taking bits_to_skip into account. Sign extend byte_offset.
6190 * utils.h (gdb_sign_extend): Declare.
6191 * utils.c (gdb_sign_extend): New function.
6193 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6195 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6197 2013-06-17 Pierre Muller <muller@sourceware.org>
6199 * corelow.c (core_open): Print GDB signal name instead of target
6202 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6204 * .gitignore: Add /gcore.
6206 2013-06-13 Doug Evans <dje@google.com>
6208 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6209 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6211 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6213 * stack.c (backtrace_command_1): Fix indentation.
6215 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6217 * window-nat.c (thread_rec): Add missing empty line after
6218 local variable declaration.
6220 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6222 * windows-nat.c (thread_rec): Revert format used to print
6223 error code returned by SuspendThread from %d back to %u.
6225 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6227 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6229 (get_windows_debug_event): Likewise, for all debug traces.
6231 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6233 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6236 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6237 Yao Qi <yao@codesourcery.com>
6239 * mi/mi-main.c (get_register): Remove declaration.
6240 (output_register): Declare.
6241 (mi_cmd_data_list_register_values): Remove local variable
6242 'tuple_cleanup'. Move some code into output_register.
6243 (get_register): Renamed to ...
6244 (output_register): ... this. Output the register's
6245 "number" ui_out tuple here.
6247 2013-06-07 Pedro Alves <palves@redhat.com>
6249 * darwin-nat.c: Fix formating in copyright header.
6250 * darwin-nat.h: Likewise.
6251 * gnu-nat.c: Likewise.
6252 * machoread.c: Likewise.
6254 2013-06-07 Pedro Alves <palves@redhat.com>
6257 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6258 static. Output a global target description pointer.
6259 (init_registers_${name}): Adjust to initialize a
6260 target description structure.
6262 2013-06-07 Will Newton <will.newton@linaro.org>
6264 * printcmd.c (build_address_symbolic): Call
6265 gdbarch_addr_bits_remove for text minimal symbols.
6267 2013-06-07 Will Newton <will.newton@linaro.org>
6269 * MAINTAINERS: Add myself to Write After Approval.
6271 2013-06-07 Yao Qi <yao@codesourcery.com>
6273 * tracepoint.c (start_tracing): Move code to ...
6274 (trace_reset_local_state): ... here. New.
6275 (disconnect_tracing): Don't call set_current_traceframe,
6276 set_tracepoint_num, and set_traceframe_context. Call
6277 trace_reset_local_state instead.
6278 (tfile_close): Call trace_reset_local_state.
6279 * ctf.c (ctf_close): Likewise.
6280 * remote.c (remote_close): Likewise.
6281 * tracepoint.h (trace_reset_local_state): Declare.
6283 2013-06-06 Doug Evans <dje@google.com>
6285 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6286 and fix header docs.
6288 2013-06-05 Doug Evans <dje@google.com>
6289 Keith Seitz <keiths@redhat.com>
6292 * cp-namespace.c (find_symbol_in_baseclass): Call
6293 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6294 Check result of call to lookup_symbol_static.
6295 Call lookup_static_symbol_aux unconditionally.
6296 Call check_typedef on base types before accessing them.
6297 (cp_lookup_nested_symbol): Fix comment.
6299 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6301 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6302 minimal symbols pointing to function descriptors.
6304 2013-06-05 Tom Tromey <tromey@redhat.com>
6306 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6308 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6309 Pedro Alves <palves@redhat.com>
6311 * remote.c (remote_wait_as): Restore signal handler before returning
6312 when GDB gets a notification.
6314 2013-06-04 Gary Benson <gbenson@redhat.com>
6317 * breakpoint.h (handle_solib_event): Moved function declaration
6319 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6320 (bpstat_stop_status): Pass new argument to handle_solib_event.
6321 * solib.h (update_solib_breakpoints): New function declaration.
6322 (handle_solib_event): Moved function declaration from
6324 * solib.c (update_solib_breakpoints): New function.
6325 (handle_solib_event): Moved function from breakpoint.c.
6326 Updated to call solib_ops->handle_event if not NULL.
6327 * solist.h (target_so_ops): New fields "update_breakpoints" and
6329 * infrun.c (set_stop_on_solib_events): New function.
6330 (_initialize_infrun): Use the above for "set
6331 stop-on-solib-events".
6332 (handle_inferior_event): Pass new argument to handle_solib_event.
6333 * solib-svr4.c (probe.h): New include.
6334 (svr4_free_library_list): New forward declaration.
6335 (probe_action): New enum.
6336 (probe_info): New struct.
6337 (probe_info): New static variable.
6338 (NUM_PROBES): New definition.
6339 (svr4_info): New fields "using_xfer", "probes_table" and
6341 (free_probes_table): New function.
6342 (free_solib_list): New function.
6343 (svr4_pspace_data_cleanup): Free probes table and solib list.
6344 (svr4_copy_library_list): New function.
6345 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6346 (svr4_read_so_list): New parameter "prev_lm".
6347 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6348 (svr4_current_sos): New function.
6349 (probe_and_action): New struct.
6350 (hash_probe_and_action): New function.
6351 (equal_probe_and_action): Likewise.
6352 (register_solib_event_probe): Likewise.
6353 (solib_event_probe_at): Likewise.
6354 (solib_event_probe_action): Likewise.
6355 (solist_update_full): Likewise.
6356 (solist_update_incremental): Likewise.
6357 (disable_probes_interface_cleanup): Likewise.
6358 (svr4_handle_solib_event): Likewise.
6359 (svr4_update_solib_event_breakpoint): Likewise.
6360 (svr4_update_solib_event_breakpoints): Likewise.
6361 (svr4_create_solib_event_breakpoints): Likewise.
6362 (enable_break): Free probes table before creating breakpoints.
6363 Use svr4_create_solib_event_breakpoints to create breakpoints.
6364 (svr4_solib_create_inferior_hook): Free the solib list.
6365 (_initialize_svr4_solib): Initialise
6366 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6368 2013-06-04 Gary Benson <gbenson@redhat.com>
6370 * target.h (target_ops): New field
6371 "to_augmented_libraries_svr4_read".
6372 (target_augmented_libraries_svr4_read): New macro.
6373 * target.c (update_current_target): Handle
6374 to_augmented_libraries_svr4_read.
6375 * remote.c (remote_state): New field
6376 "augmented_libraries_svr4_read".
6377 (remote_augmented_libraries_svr4_read_feature): New function.
6378 (remote_protocol_features): Add entry for
6379 "augmented-libraries-svr4-read".
6380 (remote_augmented_libraries_svr4_read): New function.
6381 (init_remote_ops): Initialize
6382 remote_ops.to_augmented_libraries_svr4_read.
6384 2013-06-04 Gary Benson <gbenson@redhat.com>
6388 2013-06-04 Gary Benson <gbenson@redhat.com>
6390 * objfiles.h (inhibit_section_map_updates): New function
6392 (resume_section_map_updates): Likewise.
6393 (resume_section_map_updates_cleanup): Likewise.
6394 * objfiles.c (objfile_pspace_info): Removed field
6395 "objfiles_changed_p". New fields "new_objfiles_available",
6396 "section_map_dirty" and "inhibit_updates".
6397 (allocate_objfile): Set new_objfiles_available.
6398 (free_objfile): Set section_map_dirty.
6399 (objfile_relocate1): Likewise.
6400 (in_plt_section): Likewise.
6401 (find_pc_section): Update the conditions under which the
6402 section map will be updated.
6403 (inhibit_section_map_updates): New function.
6404 (resume_section_map_updates): Likewise.
6405 (resume_section_map_updates_cleanup): Likewise.
6407 2013-06-04 Gary Benson <gbenson@redhat.com>
6409 * probe.h (get_probe_argument_count): New declaration.
6410 (evaluate_probe_argument): Likewise.
6411 * probe.c (get_probe_argument_count): New function.
6412 (evaluate_probe_argument): Likewise.
6413 (probe_safe_evaluate_at_pc): Use the above new functions.
6415 2013-06-04 Alan Modra <amodra@gmail.com>
6417 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6418 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6419 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6420 target mem reads on optional insns.
6421 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6422 ppc_insns_match_pattern calls.
6423 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6424 Add match for power7 thread safety insns, and new order of
6425 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6426 invocation in comment, and update rest of comment.
6427 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6428 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6429 (ppc64_standard_linkage2_target): Update insn offsets.
6430 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6431 stubs first. Update calls.
6433 2013-06-04 Yao Qi <yao@codesourcery.com>
6435 * solib.c (solib_find): Don't need dir separator if path has
6438 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6440 Revert (indirectly causes a SIGSEGV):
6441 * machoread.c (macho_symfile_read): Assign first cleanup to
6444 2013-06-03 Yao Qi <yao@codesourcery.com>
6446 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6447 mi-parse.c. Make them static.
6448 (mi_all_values): Likewise.
6449 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6450 mi_parse_print_values. Make it external.
6451 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6452 Remove the declarations.
6453 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6454 * mi/mi-parse.h (mi_parse_print_values): Declare.
6455 * mi/mi-cmd-stack.c: Include mi-parse.h.
6456 (parse_print_values): Remove
6457 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6458 of parse_print_values.
6459 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6461 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6462 Yao Qi <yao@codesourcery.com>
6464 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6465 (encode_actions): Move code to ...
6466 (all_tracepoint_actions_and_cleanup): ... here. New.
6467 (trace_dump_command): Likewise.
6469 2013-05-30 Tom Tromey <tromey@redhat.com>
6471 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6473 2013-05-30 Tom Tromey <tromey@redhat.com>
6475 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6476 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6477 'old_chain' argument. Add 'parser_result' argument.
6478 (gdb_xml_create_parser_and_cleanup): Remove old version.
6479 (gdb_xml_parse_quick): Update.
6480 (xml_process_xincludes): Update.
6481 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6484 2013-05-30 Tom Tromey <tromey@redhat.com>
6486 * probe.c (collect_probes): Check arguments for NULL before
6487 calling compile_rx_or_error.
6488 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6491 2013-05-30 Tom Tromey <tromey@redhat.com>
6493 * infrun.c (adjust_pc_after_break): Introduce an outer null
6496 2013-05-30 Tom Tromey <tromey@redhat.com>
6498 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6500 2013-05-30 Tom Tromey <tromey@redhat.com>
6502 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6503 for 'old_chain'. Do not check 'head' before processing
6506 2013-05-30 Tom Tromey <tromey@redhat.com>
6508 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6511 2013-05-30 Tom Tromey <tromey@redhat.com>
6513 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6514 inner scope. Unconditionally call do_cleanups.
6516 2013-05-30 Tom Tromey <tromey@redhat.com>
6518 * source.c (find_and_open_source): Call do_cleanups.
6520 2013-05-30 Tom Tromey <tromey@redhat.com>
6522 * linux-thread-db.c (thread_db_load_search): Unconditionally
6525 2013-05-30 Tom Tromey <tromey@redhat.com>
6527 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6528 for 'cleanup'; instead use a later one.
6530 2013-05-30 Tom Tromey <tromey@redhat.com>
6532 * python/py-breakpoint.c (bppy_get_commands): Use
6533 explicit, unconditional return.
6534 * python/py-frame.c (frapy_read_var): Likewise.
6535 * python/python.c (gdbpy_decode_line): Likewise.
6537 2013-05-30 Tom Tromey <tromey@redhat.com>
6539 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6540 do_cleanups on all return paths.
6542 2013-05-30 Tom Tromey <tromey@redhat.com>
6544 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6546 2013-05-30 Tom Tromey <tromey@redhat.com>
6548 * stabsread.c (read_struct_type): Call do_cleanups along
6551 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6553 * mips-linux-tdep.c: Adjust formatting throughout.
6555 2013-05-30 Tom Tromey <tromey@redhat.com>
6557 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6558 along all return paths.
6560 2013-05-30 Tom Tromey <tromey@redhat.com>
6562 * symfile.c (find_separate_debug_file): Call do_cleanups
6563 along all return paths.
6565 2013-05-30 Tom Tromey <tromey@redhat.com>
6567 * symtab.c (search_symbols): Introduce a null cleanup for
6570 2013-05-30 Tom Tromey <tromey@redhat.com>
6572 * python/py-value.c (valpy_binop): Call do_cleanups before
6575 2013-05-30 Tom Tromey <tromey@redhat.com>
6577 * python/py-prettyprint.c (print_children): Remove extra
6580 2013-05-30 Tom Tromey <tromey@redhat.com>
6582 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6585 2013-05-30 Tom Tromey <tromey@redhat.com>
6587 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6588 along all return paths.
6590 2013-05-30 Tom Tromey <tromey@redhat.com>
6592 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6595 2013-05-30 Tom Tromey <tromey@redhat.com>
6597 * varobj.c (c_value_of_root): Call do_cleanups along all
6600 2013-05-30 Tom Tromey <tromey@redhat.com>
6602 * tracepoint.c (trace_dump_command): Unconditionally call
6605 2013-05-30 Tom Tromey <tromey@redhat.com>
6607 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6608 do_cleanups earlier.
6610 2013-05-30 Tom Tromey <tromey@redhat.com>
6612 * machoread.c (macho_symfile_read): Assign first cleanup to
6615 2013-05-30 Tom Tromey <tromey@redhat.com>
6617 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6619 2013-05-30 Tom Tromey <tromey@redhat.com>
6621 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6623 2013-05-30 Tom Tromey <tromey@redhat.com>
6625 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6626 call discard_cleanups.
6627 (inf_ptrace_attach): Likewise.
6629 2013-05-30 Tom Tromey <tromey@redhat.com>
6631 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6633 (mips_initialize): Likewise.
6634 (common_open): Call do_cleanups.
6636 2013-05-30 Tom Tromey <tromey@redhat.com>
6638 * utils.c (internal_vproblem): Call do_cleanups.
6640 2013-05-30 Tom Tromey <tromey@redhat.com>
6642 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6644 2013-05-30 Tom Tromey <tromey@redhat.com>
6646 * cli/cli-script.c (setup_user_args): Don't return after error.
6648 2013-05-30 Tom Tromey <tromey@redhat.com>
6650 * somread.c (som_symtab_read): Call do_cleanups.
6652 2013-05-30 Tom Tromey <tromey@redhat.com>
6654 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6656 2013-05-30 Tom Tromey <tromey@redhat.com>
6658 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6659 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6660 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6661 * source.c (show_substitute_path_command): Call do_cleanups.
6662 (unset_substitute_path_command, set_substitute_path_command):
6664 * symfile.c (load_command): Call do_cleanups.
6666 2013-05-30 Tom Tromey <tromey@redhat.com>
6668 * contrib/cleanup_check.py: New file.
6669 * contrib/gcc-with-excheck: Add option parsing.
6671 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6673 * windows-nat.c (windows_delete_thread): Add missing space
6676 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6678 * inferior.c (top level): Include tilde.h.
6679 (add_inferior_command): Call tilde_expand on the value of 'exec'
6682 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6683 Yao Qi <yao@codesourcery.com>
6685 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6687 (encode_actions): Likewise.
6688 * remote.c (remote_download_tracepoint): Caller update.
6689 * tracepoint.h (encode_actions): Update declaration.
6691 2013-05-30 Pedro Alves <palves@redhat.com>
6693 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6696 2013-05-30 Yao Qi <yao@codesourcery.com>
6698 * remote.c (remote_check_symbols): Remove unused parameter
6701 (remote_start_remote, remote_new_objfile): Caller update.
6703 2013-05-30 Yao Qi <yao@codesourcery.com>
6705 * mi/mi-cmds.c (mi_cmds): Define MI command
6706 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6709 2013-05-29 Pedro Alves <palves@redhat.com>
6711 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6712 (remote_insert_watchpoint, remote_remove_watchpoint)
6713 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6714 (remote_verify_memory, compare_sections_command)
6715 (remote_search_memory): Set the general process/thread on the
6718 2013-05-29 Pedro Alves <palves@redhat.com>
6720 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6721 (_initialize_aarch64_tdep): Don't call
6722 initialize_tdesc_aarch64_without_fpu.
6723 * features/Makefile (WHICH): Remove reference to
6724 aarch64-without-fpu.
6725 * features/aarch64-without-fpu.c: Delete file.
6726 * regformats/aarch64-without-fpu.dat: Delete file.
6728 2013-05-28 Yao Qi <yao@codesourcery.com>
6730 * tracepoint.c (stringify_collection_list): Remove parameter
6732 (encode_actions): Caller update. Remove local variables.
6734 2013-05-24 Yao Qi <yao@codesourcery.com>
6736 * tracepoint.c (TFILE_PID): Remove.
6737 (tfile_open): Don't add thread and inferior.
6738 (tfile_close): Don't set 'inferior_ptid'. Don't call
6739 exit_inferior_silent.
6740 (tfile_thread_alive): Remove.
6741 (init_tfile_ops): Don't set field 'to_thread_alive' of
6744 2013-05-23 Doug Evans <dje@google.com>
6746 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6748 2013-05-23 Pedro Alves <palves@redhat.com>
6750 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6751 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6752 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6753 Only define if HAVE_SOCKETS is defined.
6754 * configure.ac: Check for sys/socket.h.
6755 * config.in, configure: Regenerate.
6757 2013-05-23 Pedro Alves <palves@redhat.com>
6759 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6760 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6761 printing uint32_t variables.
6763 2013-05-23 Pedro Alves <palves@redhat.com>
6765 * NEWS: Mention GDBserver range stepping support.
6767 2013-05-23 Yao Qi <yao@codesourcery.com>
6768 Pedro Alves <palves@redhat.com>
6770 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6772 * infcmd.c (step_once, until_next_command): Enable range stepping.
6773 * infrun.c (displaced_step_prepare): Disable range stepping.
6774 (resume): Disable range stepping if stepping over a breakpoint or
6775 we have software watchpoints. If range stepping is enabled,
6776 assert the thread is in the stepping range.
6777 (clear_proceed_status_thread): Clear may_range_step.
6778 (handle_inferior_event): Disable range stepping as soon as we know
6779 the thread that hit the event. Re-enable it whenever we're going
6780 to step with a step range.
6781 * remote.c (struct vCont_action_support) <r>: New field.
6782 (use_range_stepping): New global.
6783 (remote_vcont_probe): Handle 'r' action.
6784 (append_resumption): Append an 'r' action if the thread may range
6786 (show_range_stepping): New function.
6787 (set_range_stepping): New function.
6788 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6789 'set range-stepping' and 'show range-stepping' commands.
6790 * NEWS: Mention range stepping, the new vCont;r action, and the
6791 new "set/show range-stepping" commands.
6793 2013-05-23 Yao Qi <yao@codesourcery.com>
6794 Pedro Alves <palves@redhat.com>
6796 * remote.c (struct vCont_action_support): New struct.
6797 (struct remote_state) <support_vCont_t>: Remove field.
6798 <vCont_actions_support>: New field.
6799 (remote_vcont_probe, remote_stop_ns): Update.
6801 2013-05-23 Yao Qi <yao@codesourcery.com>
6802 Pedro Alves <palves@redhat.com>
6804 * gdbthread.h (pc_in_thread_step_range): New declaration.
6805 * thread.c (pc_in_thread_step_range): New function.
6806 * infrun.c (handle_inferior_event): Use it.
6808 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6810 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6813 2013-05-22 Keith Seitz <keiths@redhat.com>
6815 * ada-lang.c (is_known_support_routine): Add explicit free of
6816 'func_name' from find_frame_funname.
6817 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6818 for func_name from find_frame_funname.
6819 * python/py-frame.c (frapy_name): Add explicit free of
6820 'name' from find_frame_funname.
6821 * stack.c (find_frame_funname): Add comment explaining that
6822 funcp must be freed by the caller.
6823 Return copy of symbol names instead of pointers.
6824 (print_frame): Add a cleanup for 'funname' from
6826 * stack.h (find_frame_funname): Remove "const" from
6827 'funname' parameter.
6829 2013-05-22 Tom Tromey <tromey@redhat.com>
6832 * c-valprint.c (c_value_print): Use value_addr for
6833 references. Convert back to reference type with value_ref.
6835 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6837 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6838 unloaded DLL, it will be done by handle_solib_event. See
6839 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6842 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6844 * ui-out.c: Create typedef ui_out_level_p and define vector
6845 operations for that type.
6846 (struct ui_out): Use a vector instead of an array.
6847 (current_level): Return level from a vector.
6848 (push_level): Create a level in a vector.
6849 (pop_level): Delete a level in a vector.
6850 (ui_out_new): Create initial level zero level, and store in a
6852 (ui_out_destroy): Add vector cleanup.
6854 2013-05-22 Pedro Alves <palves@redhat.com>
6856 * python/python-internal.h (gdb_Py_DECREF): Tag with
6857 "ARI: editCase function".
6859 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6861 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6863 2013-05-21 Pedro Alves <palves@redhat.com>
6865 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6866 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6867 * python/py-utils.c (py_decref): Don't check for NULL before
6870 2013-05-21 Pedro Alves <palves@redhat.com>
6872 * python/py-utils.c (py_decref): Remove extra braces.
6873 (gdb_pymodule_addobject): Remove extra braces.
6874 * python-internal.h (gdb_Py_DECREF): New static inline function.
6875 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6877 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6879 * breakpoints.c (detach_breakpoints): Do not
6880 detach breakpoints locations with loc_type bp_loc_other.
6882 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6884 Workaround Python 2.6.
6885 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6888 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6890 Code cleanup: constification.
6891 * solib.c (solib_ops): Make return type and ops variable type const.
6892 (set_solib_ops): Make the new_ops parameter and ops variable const.
6893 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6894 (solib_add, solib_keep_data_in_core, clear_solib)
6895 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6896 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6898 * solib.h (set_solib_ops): Make the new_ops parameter const.
6900 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6902 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6904 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6905 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6906 (SYSTEM_GDBINIT_FILES): New variables.
6907 (all): Add stamp-system-gdbinit.
6908 (stamp-system-gdbinit): New rule.
6909 (clean-system-gdbinit, install-system-gdbinit)
6910 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6911 (install-only): Add dependency on install-system-gdbinit.
6912 (uninstall): Add dependency on uninstall-system-gdbinit.
6913 (clean): Add dependency on clean-system-gdbinit.
6914 * system-gdbinit/elinos.py: New file.
6915 * system-gdbinit/wrs-linux.py: New file.
6917 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6919 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6921 2013-05-21 Hui Zhu <hui@codesourcery.com>
6923 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6924 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6925 * mi/mi-cmd-break.c (ctype.h): New include.
6926 (gdb_obstack.h): New include.
6927 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6928 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6929 (mi_cmd_dprintf_insert): New.
6930 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6931 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6933 2013-05-20 Tom Tromey <tromey@redhat.com>
6935 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6937 2013-05-20 Tom Tromey <tromey@redhat.com>
6939 * python/py-value.c (valpy_get_dynamic_type): Simplify
6940 dynamic_type assignment. Use Py_XINCREF.
6942 2013-05-20 Tom Tromey <tromey@redhat.com>
6944 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6946 2013-05-20 Tom Tromey <tromey@redhat.com>
6948 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6949 (gdbpy_selected_frame): Move object-construction code
6952 2013-05-20 Tom Tromey <tromey@redhat.com>
6954 * python/py-arch.c (gdbpy_initialize_arch): Use
6955 gdb_pymodule_addobject.
6956 * python/py-block.c (gdbpy_initialize_blocks): Use
6957 gdb_pymodule_addobject.
6958 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6959 gdb_pymodule_addobject.
6960 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6961 gdb_pymodule_addobject.
6962 * python/py-event.c (gdbpy_initialize_event_generic): Use
6963 gdb_pymodule_addobject.
6964 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6965 gdb_pymodule_addobject.
6966 * python/py-evts.c (add_new_registry): Use
6967 gdb_pymodule_addobject.
6968 (gdbpy_initialize_py_events): Likewise.
6969 * python/py-finishbreakpoint.c
6970 (gdbpy_initialize_finishbreakpoints): Use
6971 gdb_pymodule_addobject.
6972 * python/py-frame.c (gdbpy_initialize_frames): Use
6973 gdb_pymodule_addobject.
6974 * python/py-function.c (gdbpy_initialize_functions): Use
6975 gdb_pymodule_addobject.
6976 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6977 gdb_pymodule_addobject.
6978 * python/py-infthread.c (gdbpy_initialize_thread): Use
6979 gdb_pymodule_addobject.
6980 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6981 gdb_pymodule_addobject.
6982 * python/py-param.c (gdbpy_initialize_parameters): Use
6983 gdb_pymodule_addobject.
6984 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6985 gdb_pymodule_addobject.
6986 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6987 gdb_pymodule_addobject.
6988 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6989 gdb_pymodule_addobject.
6990 * python/py-type.c (gdbpy_initialize_types): Use
6991 gdb_pymodule_addobject.
6992 * python/py-utils.c (gdb_pymodule_addobject): New function.
6993 * python/py-value.c (gdbpy_initialize_values): Use
6994 gdb_pymodule_addobject.
6995 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6996 * python/python.c (_initialize_python): Use
6997 gdb_pymodule_addobject.
6999 2013-05-20 Tom Tromey <tromey@redhat.com>
7001 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7002 * python/py-param.c (get_set_value, get_show_value): Use
7004 * python/python.c (start_type_printers, apply_type_printers):
7005 Use explicit decrefs.
7007 2013-05-20 Tom Tromey <tromey@redhat.com>
7009 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7012 2013-05-20 Tom Tromey <tromey@redhat.com>
7014 * python/python.c (gdbpy_run_events): Decref the result
7015 of PyObject_CallObject.
7017 2013-05-20 Tom Tromey <tromey@redhat.com>
7019 * python/py-symtab.c (set_sal): Use
7020 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7021 (symtab_and_line_to_sal_object): Update.
7023 2013-05-20 Tom Tromey <tromey@redhat.com>
7025 * python/py-param.c (compute_enum_values): Decref 'item'.
7027 2013-05-20 Tom Tromey <tromey@redhat.com>
7029 * mi/mi-main.c: Include python-internal.h.
7030 (mi_cmd_list_features): Check gdb_python_initialized.
7031 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7032 (python_inferior_exit, python_new_objfile, add_thread_object)
7033 (delete_thread_object, py_free_inferior): Check
7034 gdb_python_initialized.
7035 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7036 gdb_python_initialized.
7037 * python/py-type.c (save_objfile_types): Check
7038 gdb_python_initialized.
7039 * python/python-internal.h (gdb_python_initialized): Declare.
7040 * python/python.c (ensure_python_env): Throw exception if
7041 Python not initialized.
7042 (before_prompt_hook, source_python_script_for_objfile)
7043 (start_type_printers, apply_type_printers,
7044 free_type_printers): Check gdb_python_initialized.
7045 * varobj.c (varobj_get_display_hint)
7046 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7047 (install_new_value_visualizer, varobj_set_visualizer)
7048 (value_get_print_value): Check gdb_python_initialized.
7050 2013-05-20 Tom Tromey <tromey@redhat.com>
7052 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7054 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7055 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7057 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7059 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7061 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7063 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7064 init function to return 'int'.
7065 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7066 Return 'int'. Check errors.
7067 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7069 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7070 Return 'int'. Check errors.
7071 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7073 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7075 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7077 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7079 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7081 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7083 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7085 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7087 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7089 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7091 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7093 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7095 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7097 * python/python-internal.h (gdbpy_initialize_auto_load,
7098 gdbpy_initialize_values, gdbpy_initialize_frames,
7099 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7100 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7101 gdbpy_initialize_blocks, gdbpy_initialize_types,
7102 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7103 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7104 gdbpy_initialize_finishbreakpoints,
7105 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7106 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7107 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7108 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7109 gdbpy_initialize_signal_event,
7110 gdbpy_initialize_breakpoint_event,
7111 gdbpy_initialize_continue_event,
7112 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7113 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7114 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7115 * python/python.c (gdb_python_initialized): New global.
7116 (gdbpy_initialize_events): Return 'int'. Check errors.
7117 (_initialize_python): Check errors. Set
7118 gdb_python_initialized.
7120 2013-05-20 Tom Tromey <tromey@redhat.com>
7122 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7123 Decref the reslut of PyObject_CallMethod.
7125 2013-05-20 Tom Tromey <tromey@redhat.com>
7127 * python/py-event.c (gdbpy_initialize_event_generic): Return
7128 early if PyType_Ready fails.
7130 2013-05-20 Tom Tromey <tromey@redhat.com>
7132 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7133 as 'default' in the switch.
7135 2013-05-20 Tom Tromey <tromey@redhat.com>
7137 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7138 get_addr_from_python calls out of TRY_CATCH.
7139 (infpy_write_memory, infpy_search_memory): Likewise.
7140 * python/py-utils.c (get_addr_from_python): Return negative
7141 value on error. Use TRY_CATCH.
7142 * python/python-internal.h (get_addr_from_python): Use
7143 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7145 2013-05-20 Tom Tromey <tromey@redhat.com>
7147 * python/py-event.c (evpy_emit_event): Decref the
7148 result of PyObject_CallFunctionObjArgs.
7150 2013-05-20 Tom Tromey <tromey@redhat.com>
7152 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7155 2013-05-20 Tom Tromey <tromey@redhat.com>
7157 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7159 2013-05-20 Tom Tromey <tromey@redhat.com>
7161 * python/py-event.h (gdbpy_initialize_event_generic): Use
7162 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7163 * python/py-evts.c (add_new_registry): Use
7164 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7165 * python/python-internal.h
7166 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7168 2013-05-20 Tom Tromey <tromey@redhat.com>
7170 * python/py-arch.c (archpy_disassemble): Update.
7171 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7172 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7173 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7174 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7176 (GDB_PY_HANDLE_EXCEPTION): Update.
7177 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7179 2013-05-20 Tom Tromey <tromey@redhat.com>
7181 * python/python-internal.h (events_object_type): Remove.
7183 2013-05-20 Tom Tromey <tromey@redhat.com>
7185 * python/py-event.h (evpy_emit_event): Use
7186 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7187 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7190 2013-05-20 Tom Tromey <tromey@redhat.com>
7192 * py-evtregistry.c (create_event_object): Decref
7193 eventregistry_object if PyList_New fails.
7195 2013-05-20 Tom Tromey <tromey@redhat.com>
7197 * py-cmd.c (gdbpy_string_to_argv): Check result of
7200 2013-05-20 Tom Tromey <tromey@redhat.com>
7202 * python/python.c (before_prompt_hook): Add cleanup to
7205 2013-05-20 Tom Tromey <tromey@redhat.com>
7207 * python/py-function.c (fnpy_init): Decref result of
7208 PyObject_GetAttrString.
7210 2013-05-20 Tom Tromey <tromey@redhat.com>
7212 * python/py-threadevent.c (get_event_thread): Use
7213 CPYCHECKER_RETURNS_BORROWED_REF.
7214 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7216 (pspace_to_pspace_object, objfile_to_objfile_object)
7217 (find_thread_object): Use it.
7219 2013-05-20 Tom Tromey <tromey@redhat.com>
7221 * python/py-arch.c (arch_object_type): Use
7222 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7223 * python/py-block.c (block_syms_iterator_object_type):
7224 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7225 * python/py-bpevent.c (breakpoint_event_object_type):
7226 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7227 * python/py-cmd.c (cmdpy_object_type): Use
7228 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7229 * python/py-continueevent.c (continue_event_object_type):
7230 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7231 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7232 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7233 * python/py-events.h (thread_event_object_type):
7234 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7235 * python/py-evtregistry.c (eventregistry_object_type): Use
7236 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7237 * python/py-exitedevent.c (exited_event_object_type):
7238 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7239 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7240 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7241 * python/py-function.c (fnpy_object_type): Use
7242 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7243 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7244 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7245 * python/py-infthread.c (thread_object_type): Use
7246 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7247 * python/py-lazy-string.c (lazy_string_object_type):
7248 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7249 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7250 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7251 * python/py-objfile.c (objfile_object_type): Use
7252 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7253 * python/py-param.c (parmpy_object_type):
7254 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7255 * python/py-progspace.c (pspace_object_type):
7256 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7257 * python/py-signalevent.c (signal_event_object_type):
7258 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7259 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7260 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7261 * python/py-type.c (type_object_type, field_object_type)
7262 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7263 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7265 (value_object_type, block_object_type, symbol_object_type)
7266 (event_object_type, stop_event_object_type, breakpoint_object_type)
7267 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7269 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7271 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7272 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7274 2013-05-20 Doug Evans <dje@google.com>
7276 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7278 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7279 reading_dwo_directly.
7280 (struct signatured_type): New member dwo_unit.
7281 (struct die_reader_specs): New member comp_dir.
7282 (create_signatured_type_table_from_index): Use malloc for
7283 all_type_units instead of objfile's obstack.
7284 (create_all_type_units): Ditto.
7285 (fill_in_sig_entry_from_dwo_entry): New function.
7286 (add_type_unit): New function.
7287 (lookup_dwo_signatured_type): New function.
7288 (lookup_dwp_signatured_type): New function.
7289 (lookup_signatured_type): New arg cu. All callers updated.
7290 (init_cu_die_reader): Initialize comp_dir.
7291 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7292 Change assert of matching type signatures to call error on mismatch.
7293 (lookup_dwo_unit): Add assert.
7294 (init_tu_and_read_dwo_dies): New function.
7295 (init_cutu_and_read_dies): Call it.
7296 (build_type_unit_groups): Handle case of no type unit groups created.
7297 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7298 (lookup_dwo_cutu): Tweak complaint.
7299 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7300 (dwarf2_per_objfile_free): Free all_type_units.
7302 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7304 * windows-nat.c (handle_unload_dll): Add missing empty line.
7306 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7308 * dwarf2read.c (prototyped_function_p): New function.
7309 (read_subroutine_type): Use it.
7311 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7313 * rs6000-aix-tdep.c: De-indent some example code provided
7316 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7318 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7319 region is ok for a hardware watchpoint using the new ptrace interface
7322 2013-05-17 Doug Evans <dje@google.com>
7324 * NEWS: Mention new maintenance commands check-symtabs, and
7325 expand-symtabs, and renamed check-psymtabs.
7326 * psymtab.c (maintenance_check_psymtabs): Renamed from
7327 maintenance_check_symtabs. Only process already-expanded symbol
7329 (_initialize_psymtab): Update.
7330 * symmisc.c (maintenance_check_symtabs): New function.
7331 (maintenance_expand_name_matcher): New function
7332 (maintenance_expand_file_matcher): New function
7333 (maintenance_expand_symtabs): New function.
7334 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7337 2013-05-17 Tom Tromey <tromey@redhat.com>
7339 * python/py-inferior.c (infpy_read_memory): Don't call
7340 PyErr_SetString if PyObject_New fails.
7341 * python/py-frame.c (frame_info_to_frame_object): Don't call
7342 PyErr_SetString if PyObject_New fails.
7344 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7346 * acinclude.m4: Add check for dlopen in libdl.
7347 * configure.ac: Ditto.
7348 * configure: Regenerate.
7350 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7352 * frame.c (frame_stash): Convert to htab.
7353 (frame_addr_hash): New function.
7354 (frame_addr_hash_eq): New function.
7355 (frame_stash_create): Convert function to create
7357 (frame_stash_add): Convert function to add an entry to a hash
7359 (frame_stash_find): Convert function to search the hash table.
7360 (frame_stash_invalidate): Convert function to empty the hash
7362 (get_frame_id): Only add to stash if a frame_id is created.
7363 (_initialize_frame): Call frame_stash_create.
7365 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7367 * configure.ac: Ensure MIG is available when building for GNU Hurd
7369 * configure: Regenerate.
7371 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7373 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7375 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7377 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7378 all cleanups are done before returning from this function.
7380 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7382 * utils.h: #include "exceptions.h".
7383 (enum errors): Remove partial declaration.
7385 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7387 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7388 * gdbarch.h, gdbarch.c: Regenerate.
7389 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7392 * rs6000-aix-tdep.h: New file.
7393 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7394 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7396 (struct field_info, struct ld_info_desc): New types.
7397 (ld_info32_desc, ld_info64_desc): New static constants.
7398 (struct ld_info): New type.
7399 (rs6000_aix_extract_ld_info): New function.
7400 (rs6000_aix_shared_library_to_xml): Likewise.
7401 (rs6000_aix_ld_info_to_xml): Likewise.
7402 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7403 (rs6000_aix_init_osabi): Add call to
7404 set_gdbarch_core_xfer_shared_libraries_aix.
7405 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7406 Remove "xml-utils.h" include.
7407 (LdInfo): Delete typedef.
7408 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7410 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7411 Adjust code accordingly.
7412 (rs6000_core_ldinfo): Delete, folded into
7413 rs6000_aix_core_xfer_shared_libraries_aix.
7414 (rs6000_xfer_shared_library): Delete.
7415 (rs6000_xfer_shared_libraries): Reimplement.
7417 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7419 * record.c (record_goto_cmdlist): New.
7420 (cmd_record_goto): Split into this ...
7421 (cmd_record_goto_begin): ... this
7422 (cmd_record_goto_end): ... and this.
7423 (_initialize_record): Change "record goto" to prefix command.
7424 Add commands for "record goto begin" and "record goto end".
7425 Add an alias for "record goto start" to "record goto begin".
7427 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7429 * linespec.c (convert_linespec_to_sals): New comment for
7430 SOURCE_FILENAME assignment.
7432 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7434 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7437 2013-05-14 Tom Tromey <tromey@redhat.com>
7439 * eval.c (parse_and_eval_long): Make 'exp' const.
7440 * value.h (parse_and_eval_long): Update.
7442 2013-05-14 Tom Tromey <tromey@redhat.com>
7444 * ui-file.c (gdb_fopen): Make arguments const.
7445 * ui-file.h (gdb_fopen): Make arguments const.
7447 2013-05-14 Tom Tromey <tromey@redhat.com>
7449 * remote.c (remote_set_trace_notes): Make arguments const.
7450 * target.c (update_current_target): Update cast.
7451 * target.h (to_set_trace_notes): Make arguments const.
7453 2013-05-14 Tom Tromey <tromey@redhat.com>
7455 * go32-nat.c (go32_terminal_info): Make 'args' const.
7456 * inferior.h (child_terminal_info): Update.
7457 * inflow.c (child_terminal_info): Make 'args' const.
7458 * target.c (default_terminal_info): Make 'args' const.
7459 (debug_to_terminal_save_ours): Likewise.
7460 * target.h (struct target_ops) <to_terminal_info>: Make argument
7463 2013-05-13 Tom Tromey <tromey@redhat.com>
7465 * gcore.c (create_gcore_bfd): Make 'filename' const.
7466 * gcore.h (create_gcore_bfd): Make 'filename' const.
7467 * record-full.c (record_full_save): Make 'recfilename' const.
7468 * target.c (target_save_record): Make 'filename' const.
7469 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7471 (target_save_record): Likewise.
7473 2013-05-13 Tom Tromey <tromey@redhat.com>
7476 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7477 ranges section has been read.
7479 2013-05-13 Tom Tromey <tromey@redhat.com>
7482 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7483 STRUCTOP_PTR>: Return a not_lval value for
7484 EVAL_AVOID_SIDE_EFFECTS.
7485 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7486 for EVAL_AVOID_SIDE_EFFECTS.
7488 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7490 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7491 floating point registers to register type before storing
7493 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7496 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7497 Tom Tromey <tromey@redhat.com>
7499 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7501 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7503 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7504 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7505 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7506 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7508 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7509 Tom Tromey <tromey@redhat.com>
7512 * configure: Rebuild.
7513 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7516 2013-05-10 Pedro Alves <palves@redhat.com>
7518 * remote.c (_initialize_remote): Fix spelling of
7519 qXfer:traceframe-info:read packet in packet config command.
7521 2013-05-10 David Taylor <dtaylor@emc.com>
7525 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7526 "QTro" at start of packet.
7528 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7530 * solib-aix.c (solib_aix_relocate_section_addresses):
7531 For the .bss section action, apply the same offset as
7534 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7536 * solib-aix.c (solib_aix_relocate_section_addresses):
7537 Remove FIXME comment.
7539 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7542 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7543 New functions, directly copied from sparc-sol-thread.c.
7544 * sparc-sol-thread.c: Delete.
7545 * configure.ac: Remove code handling sparc-solaris-thread.c.
7546 * configure: Regenerate.
7548 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7550 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7552 (backtrace_command): Add "no-filters" option parsing.
7553 (_initialize_stack): Alter help to reflect "no-filters" option.
7554 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7555 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7556 (py-frame.o): Add target
7557 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7559 * python/python.h: Add new frame filter constants, and flag enum.
7560 (apply_frame_filter): Add definition.
7561 * python/python.c (apply_frame_filter): New non-Python
7563 * python/py-utils.c (py_xdecref): New function.
7564 (make_cleanup_py_xdecref): Ditto.
7565 * python/py-objfile.c: Declare frame_filters dictionary.
7566 (objfpy_dealloc): Add frame_filters dealloc.
7567 (objfpy_new): Initialize frame_filters attribute.
7568 (objfile_to_objfile_object): Ditto.
7569 (objfpy_get_frame_filters): New function.
7570 (objfpy_set_frame_filters): New function.
7571 * python/py-progspace.c: Declare frame_filters dictionary.
7572 (pspy_dealloc): Add frame_filters dealloc.
7573 (pspy_new): Initialize frame_filters attribute.
7574 (pspacee_to_pspace_object): Ditto.
7575 (pspy_get_frame_filters): New function.
7576 (pspy_set_frame_filters): New function.
7577 * python/py-framefilter.c: New file.
7578 * python/lib/gdb/command/frame_filters.py: New file.
7579 * python/lib/gdb/frames.py: New file.
7580 * python/lib/gdb/__init__.py: Initialize global frame_filters
7582 * python/lib/gdb/FrameDecorator.py: New file.
7583 * python/lib/gdb/FrameIterator.py: New file.
7584 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7585 * mi/mi-cmds.h: Declare.
7586 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7587 --no-frame-filter logic, and Python frame filter logic.
7588 (stack_enable_frame_filters): New function.
7589 (parse_no_frame_option): Ditto.
7590 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7592 (mi_cmd_stack_list_locals): Ditto.
7593 (mi_cmd_stack_list_args): Ditto.
7594 (mi_cmd_stack_list_variables): Ditto.
7595 * NEWS: Add frame filter note.
7597 2013-05-09 Doug Evans <dje@google.com>
7599 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7600 All callers updated.
7601 (syms_from_objfile): Ditto. Make static.
7602 (symbol_file_add_with_addrs): Renamed from
7603 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7604 num_offsets. All callers updated.
7605 * symfile.h (syms_from_objfile): Delete.
7607 * symfile.c (decrement_reading_symtab): Add assert.
7608 (increment_reading_symtab): Ditto.
7610 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7612 * source.c (forward_search_command): Replace call to getc
7614 (reverse_search_command): Likewise.
7616 2013-05-08 Doug Evans <dje@google.com>
7618 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7621 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7623 * sol-thread.c (info_cb): Factorize the code a little.
7625 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7627 * sol-thread.c (info_cb): Rework the output of the "maintenance
7628 info sol-threads" command a bit.
7630 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7632 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7633 Replace ti.ti_startfunc by ti.ti_pc.
7635 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7637 * solib-aix.c (solib_aix_free_library_list): New function
7638 for the case where HAVE_LIBEXPAT is not defined.
7640 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7642 PR breakpoints/15413:
7643 * breakpoint.c (condition_completer): Simplify the code to
7644 disconsider multiple locations of breakpoints when completing the
7645 "condition" command.
7647 2013-05-07 Pierre Muller <muller@sourceware.org>
7649 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7650 instead of <sys/wait.h>.
7652 2013-05-07 Pierre Muller <muller@sourceware.org>
7654 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7655 trailing new line from warning message.
7657 2013-05-07 Pierre Muller <muller@sourceware.org>
7659 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7660 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7662 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7664 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7665 error message (ARI fix).
7667 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7669 * features/library-list-aix.dtd: Replace library-list by
7671 * rs6000-nat.c: Replace library-list by library-list-aix
7673 * solib-aix.c: Likewise.
7675 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7677 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7678 Renames TARGET_OBJECT_AIX_LIBRARIES.
7679 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7680 TARGET_OBJECT_LIBRARIES_AIX throughout.
7681 * solib-aix.c: Likwise.
7683 2013-05-07 Yao Qi <yao@codesourcery.com>
7685 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7686 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7688 2013-05-07 Yao Qi <yao@codesourcery.com>
7690 * solib-dsbt.c (enable_break): Declare.
7691 (dsbt_current_sos): Remove call to enable_break2.
7692 (enable_break2): Rename to enable_break. Set solib breakpoint
7693 on '_dl_debug_state'.
7694 (enable_break): Remove.
7696 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7698 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7699 debug state prior to replicating existing hardware watchpoints or
7702 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7704 * gcore.c (gcore_create_callback): Ignore sections with
7705 separate_debug_objfile_backlink != NULL.
7707 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7708 Andrew Jenner <andrew@codesourcery.com>
7709 Chung-Lin Tang <cltang@codesourcery.com>
7710 Julian Brown <julian@codesourcery.com>
7712 Based on the nios2-elf port from Altera Corporation.
7714 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7716 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7717 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7718 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7719 * nios2-tdep.h: New.
7720 * nios2-tdep.c: New.
7721 * nios2-linux-tdep.c: New.
7722 * features/Makefile (WHICH): Add nios2-linux.
7723 (nios2-linux-expedite): Set.
7724 * features/nios2-cpu.xml: New.
7725 * features/nios2.xml: New.
7726 * features/nios2-linux.xml: New.
7727 * features/nios2.c: New (autogenerated).
7728 * features/nios2-linux.c: New (autogenerated).
7729 * regformats/nios2-linux.dat: New (autogenerated).
7730 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7733 2013-05-06 Doug Evans <dje@google.com>
7735 * symfile.c: Whitespace cleanup.
7737 * solist.h (struct target_so_ops): New member clear_so.
7738 * solib-svr4.c (svr4_clear_so): New function.
7739 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7740 * solib.c (clear_so): Renamed from free_so_symbols.
7741 All callers updated. Call target clear_so if it exists.
7743 2013-05-06 Tom Tromey <tromey@redhat.com>
7745 * ada-lang.c (ada_value_primitive_packed_val): Don't
7747 * value.c (set_value_parent): Incref the new parent and decref
7749 (value_copy, value_primitive_field): Use set_value_parent.
7751 2013-05-06 Tom Tromey <tromey@redhat.com>
7753 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7754 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7756 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7757 * dwarf2read.c (write_constant_as_bytes)
7758 (dwarf2_fetch_constant_bytes): New functions.
7760 2013-05-06 Tom Tromey <tromey@redhat.com>
7762 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7764 (dwarf2_const_value_attr): Update.
7766 2013-05-06 Tom Tromey <tromey@redhat.com>
7768 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7769 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7770 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7773 2013-05-06 Tom Tromey <tromey@redhat.com>
7775 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7778 2013-05-06 Doug Evans <dje@google.com>
7780 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7781 * stabsread.h (process_one_symbol): Update declaration.
7782 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7783 * elfread.c (elf_symfile_relocate_probe): Ditto.
7784 * psymtab.c (relocate_psymtabs): Ditto.
7785 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7786 (objfile_relocate): Ditto.
7787 * objfiles.h (objfile_relocate): Update declaration.
7788 * symfile.c (relative_addr_info_to_section_offsets): Constify
7790 (default_symfile_offsets): Ditto.
7791 (syms_from_objfile_1): Constify offsets parameter.
7792 (syms_from_objfile): Ditto.
7793 (symbol_file_add_with_addrs_or_offsets): Ditto.
7794 (symfile_map_offsets_to_segments): Constify data parameter.
7795 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7796 delta parameters of member relocate.
7797 (struct sym_probe_fns): Constify new_offsets,
7798 delta parameters of member sym_relocate_probe.
7799 (struct sym_fns): Constify section_addr_info parameter of member
7801 (relative_addr_info_to_section_offsets): Update declaration.
7802 (default_symfile_offsets): Ditto.
7803 (syms_from_objfile): Ditto.
7804 (symfile_map_offsets_to_segments): Ditto.
7806 * symfile.c (syms_from_objfile_1): Use correct section count when
7807 objfile->sf == NULL.
7809 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7811 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7813 2013-05-06 Doug Evans <dje@google.com>
7815 * psympriv.h (struct partial_symtab): Augment comment for member
7818 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7820 Reimplement shared library support on ppc-aix...
7821 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7822 * features/library-list-aix.dtd: New file.
7823 * solib-aix.h, solib-aix.c: New file.
7824 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7825 (rs6000_find_toc_address_hook): Delete.
7826 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7827 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7828 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7830 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7831 (vmap_symtab, fixup_breakpoints): Delete.
7832 (rs6000_xfer_shared_libraries): New function.
7833 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7834 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7835 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7836 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7837 (rs6000_xfer_shared_library): New function.
7838 (find_toc_address): Delete.
7839 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7840 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7841 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7842 before creating minimal symbol. Adjust function description
7844 (scan_xcoff_symtab): Replace call to
7845 prim_record_minimal_symbol_and_info by call to
7846 record_minimal_symbol.
7847 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7848 around default_symfile_offsets.
7849 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7850 powerpc-aix targets.
7851 * config/rs6000/nm-rs6000.h: Delete.
7852 * config/powerpc/aix.mh (NAT_FILE): Delete.
7853 (NATDEPFILES): Remove xcoffsolib.o.
7854 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7855 (ALL_TARGET_OBS): Add solib-aix.o.
7856 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7857 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7858 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7859 * xcoffsolib.h, xcoffsolib.c: Delete.
7861 * solib.c (reload_shared_libraries): Remove reference to
7862 SOLIB_CREATE_INFERIOR_HOOK.
7863 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7864 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7865 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7867 * corelow.c (deprecated_core_resize_section_table): Delete.
7868 * exec.c: Remove include of xcoffsolib.h".
7869 (map_vmap, vmap): Delete.
7870 (exec_close_1): Remove references to vmap.
7871 (exec_file_attach): Remove vmap handling code, and reference
7872 to DEPRECATED_IBM6000_TARGET.
7873 (bfdsec_to_vmap): Delete.
7874 (exec_files_info): Remove block of code handling VMAP.
7875 * infcmd.c (post_create_inferior): Remove reference to
7876 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7877 * infrun.c (follow_exec): Remove reference to
7878 SOLIB_CREATE_INFERIOR_HOOK.
7879 * stack.c (print_frame): Remove reference to PC_SOLIB.
7880 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7881 (dsbt_relocate_main_executable): Likewise.
7882 * solib-frv.c (frv_current_sos): Likewise.
7884 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7886 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7887 to target_write_memory and target_read_memory.
7889 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7891 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7892 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7894 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7896 * darwin-nat.c: Replace all "%x" instances in format strings
7897 into "0x%x" throughout.
7899 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7901 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7902 gdb_assert by call to MACH_CHECK_ERROR.
7903 (darwin_attach_pid): Raise an error rather than a failed
7904 assertion when various system calls failed. Report a warning
7905 instead of raising a failed assertion when PREV_NOT is not NULL
7906 after call to mach_port_request_notification.
7907 (darwin_ptrace_me): Raise an error rather than a failed
7908 assertion when read returns nonzero.
7910 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7912 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7914 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7916 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7918 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7920 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7921 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7922 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7923 a stale cleanup. Fix double free of NAME.
7925 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7927 * windows-nat.c (windows_delete_thread): Accept an additional
7928 argument, the thread's exit code, and announce thread death when
7929 print_thread_events is non-zero and we are deleting a thread that
7930 is not the main thread.
7931 (get_windows_debug_event): Pass thread exit code to
7932 windows_delete_thread.
7934 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7936 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7937 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7938 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7939 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7940 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7941 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7942 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7943 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7944 (gdbarch_tdep): New struct.
7945 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7947 (v850e3v5_register_name): New function.
7948 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7949 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7950 code handling the struct return conventions for the RH850 ABI.
7952 (v850_eight_byte_align_p): New function.
7953 (v850_push_call_dummy): Push structs by value, not by reference
7954 for the RH850 ABI. Add support for eight byte alignment.
7955 (v850_dbtrap_breakpoint_from_pc): New function.
7956 (v850_gdbarch_init): Add ABI detection code. Register
7957 v850e3v5_register_name for the v850e3v5 architecture. Set the
7958 number of registers for v850e3v5. Register
7959 v850_dbtrap_breakpoint_from_pc as appropriate.
7960 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7962 2013-05-03 Doug Evans <dje@google.com>
7964 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7965 of bfd_count_sections.
7966 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7967 * symfile.c (default_symfile_offsets): Ditto.
7968 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7969 one entry, not bfd_count_sections entries.
7971 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7973 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7974 `save' and `restore' register groups. Don't include SPL
7975 or SPH in these groups.
7976 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7977 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7978 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7979 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7980 dwarf2_append_unwinders().
7982 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7984 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7985 ignore SIGINT and SIGTRAP in case these internal signals are
7988 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7990 * darwin-nat.c (darwin_read_write_inferior): Change types
7991 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7992 of copy_count to "mach_msg_type_number_t".
7993 (darwin_read_dyld_info): Change type of parameter
7994 rdaddr to "gdb_byte *".
7996 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7998 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7999 of &info->load_map from "char *" to "gdb_byte *".
8001 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8003 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8004 from "char *" to "gdb_byte *".
8005 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8007 2013-04-30 Doug Evans <dje@google.com>
8009 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8010 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8011 DWO stub. If DWO isn't found, just use stub.
8012 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8014 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8015 calling init_cutu_and_read_dies.
8017 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8019 * target-descriptions.c (maint_print_c_tdesc_cmd):
8020 Add case to parse structures as register types and
8023 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8025 * MAINTAINERS (Write After Approval): Add myself to the list.
8027 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8029 * sol-thread.c (rw_common): Change type of parameter "buf"
8031 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8032 rw_common to "gdb_byte *" instead of "char *".
8034 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8036 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8037 of local variable msym to const struct bound_minimal_symbol.
8038 Adjust use accordingly.
8039 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8041 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8043 * i386gnu-nat.c (CREG_OFFSET): New macro.
8044 (creg_offset): New array.
8045 (CREG_ADDR): Use creg_offset instead of reg_offset.
8047 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8049 * mep-tdep.c (mep_write_pc): Delete.
8050 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8051 Add call to set_gdbarch_pc_regnum.
8053 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8055 * common/filestuff.c: Replace #include <dirent.h> by
8056 #include "gdb_dirent.h".
8058 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8060 * common/filestuff.c: Replace #include <sys/stat.h> by
8061 #include "gdb_stat.h".
8063 2013-04-29 Pierre Muller <muller@sourceware.org>
8065 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8066 editCase function rule.
8067 (get_DW_AT_signature_type): Likewise.
8069 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8071 * m32r-tdep.c (m32r_write_pc): Delete.
8072 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8073 Add call to set_gdbarch_pc_regnum.
8075 2013-04-29 Pierre Muller <muller@sourceware.org>
8077 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8079 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8081 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8083 2013-04-28 Yao Qi <yao@codesourcery.com>
8085 * solib-dsbt.c (fetch_loadmap): Re-indent.
8086 (displacement_from_map, enable_break2): Likewise.
8087 (dsbt_relocate_section_addresses): Likewise.
8089 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8093 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8096 * dwarf2read.c (process_full_comp_unit): Always create a static
8099 2013-04-25 Hui Zhu <hui@codesourcery.com>
8101 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8102 to loc->cmd_bytecode.
8104 2013-04-24 Doug Evans <dje@google.com>
8106 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8108 2013-04-22 Keith Seitz <keiths@redhat.com>
8110 * tracepoint.c (trace_save): Call the writer's start method.
8112 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8115 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8118 2013-04-23 Tom Tromey <tromey@redhat.com>
8120 * common/filestuff.c: Check USE_WIN32API before including
8122 (HAVE_F_GETFD): New define.
8123 (mark_cloexec): Check HAVE_F_GETFD.
8124 (gdb_open_cloexec): Change 'mode' to unsigned long.
8125 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8126 (gdb_pipe_cloexec): Check HAVE_PIPE.
8127 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8130 2013-04-23 Hui Zhu <hui@codesourcery.com>
8133 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8135 2013-04-23 Hui Zhu <hui@codesourcery.com>
8138 * breakpoint.c (dprintf_print_recreate): New.
8139 (save_breakpoints): Let it not save dprintf commands.
8140 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8142 2013-04-22 Tom Tromey <tromey@redhat.com>
8145 * Makefile.in (SFILES): Add filestuff.c
8146 (COMMON_OBS): Add filestuff.o.
8147 (filestuff.o): New target.
8148 * auto-load.c (auto_load_objfile_script_1): Use
8150 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8151 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8152 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8153 * common/agent.c (gdb_connect_sync_socket): Use
8155 * common/filestuff.c: New file.
8156 * common/filestuff.h: New file.
8157 * common/linux-osdata.c (linux_common_core_of_thread)
8158 (command_from_pid, commandline_from_pid, print_source_lines)
8159 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8160 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8162 * common/linux-procfs.c (linux_proc_get_int)
8163 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8164 * config.in, configure: Rebuild.
8165 * configure.ac: Don't check for sys/socket.h. Check for
8167 * corelow.c (core_open): Use gdb_open_cloexec.
8168 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8169 * fork-child.c (fork_inferior): Call close_most_fds.
8170 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8171 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8172 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8173 Use gdb_fopen_cloexec.
8174 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8176 (linux_async_pipe): Use gdb_pipe_cloexec.
8177 * remote-fileio.c (remote_fileio_func_open): Use
8179 * remote.c (remote_file_put, remote_file_get): Use
8181 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8183 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8184 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8185 * solib.c (solib_find): Use gdb_open_cloexec.
8186 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8187 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8188 (tfile_open): Use gdb_open_cloexec.
8189 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8190 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8191 * xml-support.c (xml_fetch_content_from_file): Use
8193 * main.c (captured_main): Call notice_open_fds.
8195 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8197 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8198 'char *' to 'gdb_byte *'.
8199 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8202 2013-04-22 Yao Qi <yao@codesourcery.com>
8204 * infrun.c: Fix typo in comment.
8206 2013-04-22 Andrew Haley <aph@redhat.com>
8208 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8211 2013-04-20 Yao Qi <yao@codesourcery.com>
8213 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8214 'char *' to 'gdb_byte *'. Cast the return value of
8215 'bt_ctf_get_char_array' to 'gdb_byte *'.
8217 2013-04-19 Pedro Alves <palves@redhat.com>
8219 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8221 * configure: Regenerate.
8223 2013-04-19 Pedro Alves <palves@redhat.com>
8225 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8228 2013-04-19 Pedro Alves <palves@redhat.com>
8230 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8231 Change type of 'myaddr' parameter to gdb_byte pointer.
8232 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8233 to 'long long' pointer instead of to 'unsigned long long'.
8234 (monitor_write_memory_block, monitor_read_memory_single)
8235 (monitor_read_memory): Change type of 'myaddr' parameter to
8238 2013-04-19 Pedro Alves <palves@redhat.com>
8240 * record.c (validate_history_size): Make parameter 'setting'
8243 2013-04-19 Pedro Alves <palves@redhat.com>
8245 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8248 2013-04-19 Pedro Alves <palves@redhat.com>
8250 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8253 2013-04-19 Pedro Alves <palves@redhat.com>
8255 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8256 * ada-tasks.c (read_fat_string_value): Likewise.
8258 2013-04-19 Pedro Alves <palves@redhat.com>
8260 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8261 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8262 'offset', and adjust.
8264 2013-04-19 Pedro Alves <palves@redhat.com>
8266 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8267 (read_index_from_section): Add cast to 'char *'.
8269 2013-04-19 Pedro Alves <palves@redhat.com>
8271 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8273 2013-04-19 Pedro Alves <palves@redhat.com>
8275 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8277 2013-04-19 Pedro Alves <palves@redhat.com>
8279 * record-full.c (record_full_get_bookmark): Change local 'ret'
8280 type to char * and add cast to gdb_byte *.
8281 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8283 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8285 2013-04-19 Pedro Alves <palves@redhat.com>
8287 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8288 * python/py-prettyprint.c (print_string_repr): Change type of
8289 'output' local to char *. Add cast to gdb_byte * in
8290 LA_PRINT_STRING call.
8291 (print_children): Change type of 'output' local to char *.
8292 * python/py-value.c (valpy_string): Add cast to const char * in
8293 PyUnicode_Decode call.
8295 2013-04-19 Pedro Alves <palves@redhat.com>
8297 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8298 and change its type to 'const char *'. Adjust.
8299 (mips_send_packet): Add cast to 'char *', and remove cast to
8301 (mips_receive_packet): Remove cast to 'unsigned char *'.
8302 (mips_load_srec): Use bfd_byte.
8303 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8304 (pmon_checkset): Make 'value' parameter unsigned.
8306 2013-04-19 Pedro Alves <palves@redhat.com>
8308 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8310 2013-04-19 Pedro Alves <palves@redhat.com>
8312 * remote.c (remote_write_bytes_aux, compare_sections_command)
8314 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8315 (remote_hostio_readlink, remote_bfd_iovec_pread)
8316 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8317 binary buffer, and char when buffer is used as string.
8318 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8319 (trace_save, tfile_open, traceframe_walk_blocks)
8320 (tfile_fetch_registers): Likewise.
8322 2013-04-19 Pedro Alves <palves@redhat.com>
8324 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8325 buffer and size_t size. Adjust.
8326 * ser-base.h (ser_base_write): Adjust.
8327 * ser-go32.c (cnts): Change type to size_t.
8328 (dos_write): Change prototype -- take 'void *'
8329 buffer and size_t size. Adjust.
8330 (dos_info): Print elements of 'cnts' as unsigned long.
8331 * serial.c (serial_write): Likewise.
8332 * serial.h (serial_write): Adjust.
8333 (struct serial_ops) <write>: Change prototype -- take 'void *'
8334 buffer and size_t size. Adjust.
8336 2013-04-19 Pedro Alves <palves@redhat.com>
8338 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8340 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8342 2013-04-19 Pedro Alves <palves@redhat.com>
8344 * alpha-tdep.c (alpha_extract_return_value): Use
8345 regcache_cooked_read_unsigned to read 'v0'.
8347 2013-04-19 Pedro Alves <palves@redhat.com>
8349 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8350 parameters 'at', 'as' and 'offset' to uint32_t.
8352 2013-04-19 Pedro Alves <palves@redhat.com>
8354 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8355 'is64' to signed 'int'.
8357 2013-04-19 Pedro Alves <palves@redhat.com>
8359 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8362 2013-04-19 Pedro Alves <palves@redhat.com>
8364 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8365 'insnbuf' buffer type to unsigned int[].
8367 2013-04-19 Pedro Alves <palves@redhat.com>
8369 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8371 2013-04-19 Pedro Alves <palves@redhat.com>
8373 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8376 2013-04-19 Pedro Alves <palves@redhat.com>
8378 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8379 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8381 * mips-tdep.c (heuristic_fence_post): Change type to int.
8382 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8384 2013-04-19 Pedro Alves <palves@redhat.com>
8386 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8387 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8388 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8390 2013-04-19 Pedro Alves <palves@redhat.com>
8392 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8393 it to get a string view of the byte buffer.
8394 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8395 type to gdb_byte *. Adjust.
8396 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8397 Change local to char *.
8398 * solib-darwin.c (find_program_interpreter): Change return type to
8400 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8401 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8402 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8403 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8404 * solib-svr4.c (find_program_interpreter): Change return type to
8406 (enable_break): Change local 'interp_name' to char *.
8407 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8408 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8409 (spu_pseudo_register_write_spu): Use char for string buffer.
8411 (info_spu_event_command, info_spu_signal_command): Add casts to
8414 2013-04-19 Pedro Alves <palves@redhat.com>
8416 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8418 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8419 * ada-lang.c (ada_value_assign): Use gdb_byte.
8420 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8421 (alphanbsd_sigtramp_offset): Use gdb_byte.
8422 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8423 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8424 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8425 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8426 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8427 * arm-tdep.c (arm_stub_unwind_sniffer)
8428 (arm_displaced_init_closure): Use gdb_byte.
8429 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8430 (arm_default_thumb_le_breakpoint)
8431 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8432 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8433 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8434 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8435 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8436 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8437 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8438 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8439 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8440 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8441 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8442 (cris_store_return_value, cris_extract_return_value): Use
8444 (constraint): Change type of parameter to char * from signed
8445 char*. Use gdb_byte.
8446 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8447 of local buffer to gdb_byte *.
8448 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8449 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8450 (add_address_entry): Change type of local buffer to gdb_byte[].
8451 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8452 (frv_push_dummy_call): Use gdb_byte.
8453 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8454 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8455 (hppa_hpux_supply_save_state): Use gdb_byte.
8456 * hppa-tdep.c (hppa32_push_dummy_call)
8457 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8458 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8459 (slotN_contents, replace_slotN_contents): Change type of parameter
8461 (fetch_instruction, ia64_pseudo_register_write)
8462 (ia64_register_to_value, ia64_value_to_register)
8463 (ia64_extract_return_value, ia64_store_return_value)
8464 (ia64_push_dummy_call): Use gdb_byte.
8465 * m32c-tdep.c (m32c_return_value): Remove cast.
8466 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8467 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8469 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8470 * mn10300-tdep.c (mn10300_store_return_value)
8471 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8473 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8474 (moxie_process_record): Remove casts.
8475 * ppc-ravenscar-thread.c (supply_register_at_address)
8476 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8477 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8478 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8479 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8480 * remote.c (compare_sections_command): Use gdb_byte.
8481 * score-tdep.c (score7_free_memblock): Change type of parameter to
8483 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8484 gdb_byte *. Use gdb_byte.
8485 (sh_push_dummy_call_fpu): Use gdb_byte.
8486 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8487 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8488 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8489 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8490 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8491 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8492 (sh64_store_return_value, sh64_register_convert_to_virtual):
8493 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8494 (sh64_pseudo_register_write): Use gdb_byte.
8495 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8496 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8498 (irix_current_sos): Use gdb_byte.
8499 * solib-som.c (som_current_sos): Use gdb_byte.
8500 * sparc-ravenscar-thread.c (supply_register_at_address)
8501 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8502 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8503 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8504 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8506 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8508 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8509 * xstormy16-tdep.c (xstormy16_extract_return_value)
8510 (xstormy16_store_return_value): Change parameter type to
8511 'gdb_byte *'. Adjust.
8512 (xstormy16_push_dummy_call): Use gdb_byte.
8513 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8514 (call0_analyze_prologue, execute_code): Use gdb_byte.
8516 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8517 Pedro Alves <palves@redhat.com>
8519 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8522 2013-04-17 Doug Evans <dje@google.com>
8524 * dwarf2read.c (struct signatured_type): New member type.
8525 (struct attribute): Replace member signatured_type with signature.
8526 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8527 (read_call_site_scope): Call follow_die_ref instead of
8528 follow_die_ref_or_sig.
8529 (read_structure_type): Rewrite handling of signatured types.
8530 (read_enumeration_type): Ditto.
8531 (read_attribute_value): Update.
8532 (build_error_marker_type): New function.
8533 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8534 Don't call error for bad types, just build an error marker type.
8535 (dump_die_shallow): Update.
8536 (follow_die_sig_1): Renamed from follow_die_sig.
8537 Don't call error for bad types, instead return NULL.
8538 (follow_die_sig): New function.
8539 (get_signatured_type, get_DW_AT_signature_type): New functions.
8541 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8543 * aarch64-tdep.c (aarch64_write_pc): Removed.
8544 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8547 2013-04-17 Yao Qi <yao@codesourcery.com>
8549 * top.c (print_gdb_configuration): Print configure-time
8550 parameter on using libbabeltrace or not.
8552 2013-04-16 Pedro Alves <palves@redhat.com>
8554 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8556 2013-04-16 Pedro Alves <palves@redhat.com>
8558 * common/glibc_thread_db.h: Update from upstream glibc
8559 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8561 2013-04-16 Pedro Alves <palves@redhat.com>
8563 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8564 * common/glibc_thread_db.h: ... this new file ...
8565 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8567 2013-04-16 Will Newton <will.newton@gmail.com>
8568 Pedro Alves <palves@redhat.com>
8572 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8573 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8576 2013-04-16 Pedro Alves <palves@redhat.com>
8577 Eli Zaretskii <eliz@gnu.org>
8579 * NEWS: Mention "set foo unlimited".
8581 2013-04-15 Doug Evans <dje@google.com>
8583 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8584 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8585 (create_dwo_cu_reader): Renamed from
8586 create_dwo_debug_info_hash_table_reader.
8587 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8588 Remove support for multiple CUs in a DWO file.
8589 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8591 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8593 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8594 (create_dwo_in_dwp): Ditto.
8596 2013-04-15 Tom Tromey <tromey@redhat.com>
8598 * NEWS: Move recent entries into "since 7.6" section.
8600 2013-04-15 Tom Tromey <tromey@redhat.com>
8604 * break-catch-throw.c (struct exception_catchpoint)
8605 <exception_rx, pattern>: New fields.
8606 (fetch_probe_arguments, dtor_exception_catchpoint)
8607 (check_status_exception_catchpoint)
8608 (print_one_detail_exception_catchpoint): New functions.
8609 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8610 Compile regular expression if needed.
8611 (extract_exception_regexp): New function.
8612 (catch_exception_command_1): Use extract_exception_regexp.
8613 (compute_exception): Use fetch_probe_arguments.
8614 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8615 and check_status fields.
8616 * cp-abi.c (cplus_typename_from_type_info): New function.
8617 * cp-abi.h (cplus_typename_from_type_info): Declare.
8618 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8619 * gdb_regex.h (compile_rx_or_error): Declare.
8620 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8622 (init_gnuv3_ops): Set get_type_from_type_info field.
8623 * probe.c (compile_rx_or_error): Move...
8624 * utils.c (compile_rx_or_error): ... here.
8626 2013-04-15 Tom Tromey <tromey@redhat.com>
8630 * break-catch-throw.c (compute_exception): New function.
8631 (exception_funcs): New global.
8632 (_initialize_break_catch_throw): Create $_exception.
8633 * cp-abi.c (cplus_type_from_type_info): New function.
8634 * cp-abi.h (cplus_type_from_type_info): Declare.
8635 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8636 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8637 (gnuv3_get_type_from_type_info): New functions.
8638 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8640 2013-04-15 Tom Tromey <tromey@redhat.com>
8642 * break-catch-throw.c (struct exception_names): New.
8643 (exception_functions): Change type.
8644 (re_set_exception_catchpoint): Look for SDT probes.
8646 2013-04-15 Tom Tromey <tromey@redhat.com>
8649 * break-catch-throw.c (exception_functions): New global.
8650 (gnu_v3_exception_catchpoint_ops): Move earlier.
8651 (struct exception_catchpoint): New.
8652 (classify_exception_breakpoint): Rewrite.
8653 (re_set_exception_catchpoint): New function.
8654 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8655 Allocate a struct exception_catchpoint.
8656 (catch_exception_command_1): Update.
8657 (initialize_throw_catchpoint_ops): Set 're_set' method.
8659 2013-04-15 Tom Tromey <tromey@redhat.com>
8661 * Makefile.in (SFILES): Add break-catch-throw.c
8662 (COMMON_OBS): Add break-catch-throw.o.
8663 * break-catch-throw.c: New file.
8664 * breakpoint.c: Move exception-catching code to new file.
8665 (ep_parse_optional_if_clause): No longer static.
8666 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8668 2013-04-15 Tom Tromey <tromey@redhat.com>
8672 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8673 * c-exp.y (TYPEID): New token.
8674 (exp): Add new TYPEID productions.
8675 (ident_tokens): Add "typeid".
8676 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8677 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8678 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8679 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8680 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8682 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8683 (build_std_type_info_type, gnuv3_get_typeid_type)
8684 (gnuv3_get_typeid): New functions.
8685 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8686 new fields on ABI object.
8687 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8688 * std-operator.def (OP_TYPEID): New.
8690 2013-04-15 Tom Tromey <tromey@redhat.com>
8692 * elfread.c (elf_symtab_read): Install versioned symbol under
8693 unversioned name as well.
8695 2013-04-15 Tom Tromey <tromey@redhat.com>
8698 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8699 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8700 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8701 (gdb_demangle): New function.
8702 * cp-support.h (gdb_demangle): Declare.
8703 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8704 (dwarf2_name): Use gdb_demangle.
8705 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8706 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8708 (gnuv3_print_method_ptr): Use gdb_demangle.
8709 * jv-lang.c (java_demangle): Use gdb_demangle.
8710 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8711 * language.c (unk_lang_demangle): Use gdb_demangle.
8712 * symtab.c (symbol_find_demangled_name)
8713 (demangle_for_lookup): Use gdb_demangle.
8715 2013-04-15 Tom Tromey <tromey@redhat.com>
8719 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8721 (classify_exception_breakpoint): New function.
8722 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8723 (print_mention_exception_catchpoint)
8724 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8725 (catch_exception_command_1): Handle "rethrow" catchpoint.
8726 (catch_rethrow_command): New function.
8727 (_initialize_breakpoint): Add "catch rethrow" command.
8729 2013-04-15 Pierre Muller <muller@sourceware.org>
8731 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8732 set_gdbarch_write_pc as deprecated anymore.
8734 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8736 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8739 2013-04-13 Yao Qi <yao@codesourcery.com>
8741 * ctf.c (_initialize_ctf): Include "completer.h".
8742 Call add_target_with_completer instead of add_target.
8744 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8746 Fix GDB regression related to PR binutils/14813.
8747 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8748 * minidebug.c (lzma_close): Add return value comment.
8749 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8750 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8751 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8753 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8755 * config.in: Regenerate.
8757 2013-04-12 Tom Tromey <tromey@redhat.com>
8759 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8761 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8762 (struct die_reader_specs) <buffer>: Likewise.
8763 (die_reader_func_ftype): Make 'info_ptr' const.
8764 (struct line_header) <include_dirs, statement_program_start,
8765 statement_program_end>: Now const.
8766 (struct file_entry) <name>: Likewise.
8767 (struct partial_die_info) <sibling>: Likewise.
8768 (struct dwarf_block) <data>: Likewise.
8769 (dwarf2_read_section): Remove cast.
8770 (dwarf2_get_section_info): Make 'bufp' const.
8771 (read_index_from_section): Constify.
8772 (dw2_get_file_names_reader): Make 'info_ptr' const.
8773 (dw2_get_primary_filename_reader): Likewise.
8774 (read_comp_unit_head): Make 'info_ptr' and return type const.
8775 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8777 (read_abbrev_offset): Constify.
8778 (dwarf2_create_include_psymtab): Make 'name' const.
8779 (create_debug_types_hash_table): Update.
8780 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8781 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8783 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8784 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8785 (read_comp_units_from_section): Constify.
8786 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8787 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8789 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8790 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8791 (create_dwp_hash_table, dwarf2_ranges_read)
8792 (dwarf2_record_block_ranges): Constify.
8793 (read_die_and_children, read_die_and_siblings_1)
8794 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8796 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8797 (abbrev_table_read_table): Constify.
8798 (load_partial_dies): Make 'info_ptr' const.
8799 (read_partial_die, read_attribute_value, read_attribute): Make
8800 'info_ptr' and return type const.
8801 (read_address, read_initial_length)
8802 (read_checked_initial_length_and_offset, read_offset)
8803 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8805 (read_direct_string): Make 'buf' and return type const.
8806 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8807 (read_indirect_string): Make return type const.
8808 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8809 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8811 (read_str_index): Make return type const.
8812 (add_include_dir): Make 'include_dir' const.
8813 (add_file_name): Make 'name' const.
8814 (dwarf_decode_line_header): Constify.
8815 (psymtab_include_file_name): Make return type const.
8816 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8817 (dwarf2_start_subfile): Make 'filename' const.
8818 (dwarf2_const_value_attr): Make 'bytes' const.
8819 (read_signatured_type_reader): Make 'info_ptr' const.
8820 (decode_locdesc): Constify.
8821 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8823 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8824 'mac_end', and return type const.
8825 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8826 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8828 (per_cu_header_read_in): Constify.
8829 * symfile.h (dwarf2_get_section_info): Update.
8831 2013-04-12 Tom Tromey <tromey@redhat.com>
8833 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8835 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8837 * NEWS: Mention "show configuration", --configuration.
8838 * top.c (print_gdb_configuration): New function, displays the
8839 details about GDB configure-time parameters.
8840 (print_gdb_version): Mention "show configuration".
8841 * cli/cli-cmds.c (show_configuration): New function.
8842 (_initialize_cli_cmds): Add the "show configuration" command.
8843 * main.c (captured_main) <print_configuration>: New static var.
8844 <long_options>: Use it.
8845 If --configuration was given, call print_gdb_configuration.
8847 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8848 Pedro Alves <palves@redhat.com>
8850 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8851 (generated_files): Add gcore.
8852 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8853 HAVE_NATIVE_GCORE_HOST.
8855 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8856 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8857 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8858 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8859 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8860 Add HAVE_NATIVE_GCORE_HOST.
8861 * configure: Regenerate.
8862 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8863 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8864 AC_CONFIG_FILES for gcore.
8865 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8867 * gdb_gcore.sh: Rename to ...
8868 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8869 and GCORE_TRANSFORM_NAME substitutions.
8871 Fix parsing tabs in ${gdb_target_obs}.
8872 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8874 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8876 * remote.c (unpush_and_perror): Add output message final dot.
8878 2013-04-11 Yao Qi <yao@codesourcery.com>
8880 * tracepoint.c (tfile_interp_line): Fit parameters line and
8883 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8885 * solib.c (solib_map_sections): Remove code overwriting
8886 SO->SO_NAME with the bfd's filename.
8888 2013-04-10 Pedro Alves <palves@redhat.com>
8890 * cli/cli-decode.c (integer_unlimited_completer): New function.
8891 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8892 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8894 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8895 (is_unlimited_literal): New function.
8896 (do_set_command): Handle literal "unlimited" arguments.
8897 * frame.c (_initialize_frame) <set backtrace limit>: Document
8899 * printcmd.c (_initialize_printcmd) <set print
8900 max-symbolic-offset>: Add help text.
8901 * record-full.c (_initialize_record_full) <set record full
8902 insn-number-max>: Likewise.
8903 * record.c (_initialize_record) <set record
8904 instruction-history-size, set record function-call-history-size>:
8906 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8908 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8910 * source.c (_initialize_source) <set listsize>: Add help text.
8911 * utils.c (initialize_utils) <set height, set width>: Likewise.
8912 <set pagination>: Mention "set height unlimited".
8913 * valprint.c (_initialize_valprint) <set print elements, set print
8914 repeats>: Document "unlimited".
8916 2013-04-10 Pedro Alves <palves@redhat.com>
8918 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8919 instead of disconnect_tracing.
8920 * infcmd.c (detach_command, disconnect_command): Call
8921 query_if_trace_running. Adjust.
8922 * top.c: Include "tracepoint.h".
8923 (quit_target): Delete. Contents moved ...
8924 (quit_force): ... here. Wrap each stage of teardown in
8925 TRY_CATCH. Call disconnect_tracing before detaching.
8927 2013-04-10 Hui Zhu <hui@codesourcery.com>
8928 Yao Qi <yao@codesourcery.com>
8930 * configure.ac: Check libbabeltrace is installed.
8931 * config.in: Regenerate.
8932 * configure: Regenerate.
8933 * Makefile.in (LIBBABELTRACE): New.
8934 (CLIBS): Add LIBBABELTRACE.
8935 * ctf.c: Include "exec.h".
8936 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8937 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8938 (ctf_save_metadata_header): Define new type aliases in
8940 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8941 in metadata. Start a new faked packet for trace status.
8942 (ctf_write_status): Write trace status to CTF.
8943 (ctf_write_uploaded_tsv): Write TSV to CTF.
8944 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8945 (ctf_write_definition_end): End the faked packet.
8947 (ctx, ctf_iter, trace_dirname): New.
8948 (start_pos): New variable.
8949 (ctf_destroy, ctf_open_dir, ctf_open): New.
8950 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8952 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8953 (ctf_fetch_registers, ctf_xfer_partial): New.
8954 (ctf_get_trace_state_variable_value): New.
8955 (ctf_get_tpnum_from_frame_event): New.
8956 (ctf_get_traceframe_address): New.
8957 (ctf_trace_find, ctf_has_stack): New.
8958 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8959 (ctf_get_trace_status, ctf_read_status): New.
8960 (_initialize_ctf): New.
8961 * tracepoint.c (get_tracepoint_number): New
8962 (get_uploaded_tsv): Remove 'static'.
8963 (struct traceframe_info, trace_regblock_size): Move it to ...
8964 * tracepoint.h: ... here.
8965 (get_tracepoint_number): Declare it.
8966 (get_uploaded_tsv): Declare it.
8968 * NEWS: Mention new configure option.
8970 2013-04-10 Pedro Alves <palves@redhat.com>
8971 Hui Zhu <hui@codesourcery.com>
8973 * breakpoint.c (dprintf_re_set): New.
8974 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8977 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8979 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8980 Remove solib-svr4.o from the list.
8982 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8984 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8985 Use gdb_assert_not_reached instead of invalid boolean expression.
8987 2013-04-09 Pedro Alves <palves@redhat.com>
8989 * remote.c (unpush_and_perror): New function.
8990 (readchar, remote_serial_write): Use it.
8992 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8994 * NEWS: Mention new btrace RSP packets.
8996 2013-04-08 Tom Tromey <tromey@redhat.com>
8998 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9001 2013-04-08 Tom Tromey <tromey@redhat.com>
9003 * maint.c (print_bfd_section_info): Print the section index.
9004 * symmisc.c (dump_msymbols): Print the section index.
9006 2013-04-08 Tom Tromey <tromey@redhat.com>
9009 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9010 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9011 * breakpoint.c (resolve_sal_pc): Update.
9012 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9013 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9014 (minsym_lookup_iterator_cb): Use it.
9015 (default_read_var_value): Update.
9016 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9018 * infcmd.c (jump_command): Update.
9019 * linespec.c (minsym_found): Update.
9020 * maint.c (maintenance_translate_address): Update.
9021 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9022 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9023 * parse.c (write_exp_msymbol): Update.
9024 * printcmd.c (address_info): Update.
9025 * psymtab.c (find_pc_sect_psymbol): Update.
9026 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9028 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9029 Don't initialize SYMBOL_OBJ_SECTION.
9030 * spu-tdep.c (spu_catch_start): Update.
9031 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9032 * symmisc.c (dump_msymbols, print_symbol): Update.
9033 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9034 how fallback section is computed.
9035 (fixup_symbol_section): Update.
9036 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9038 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9039 Initialize SYMBOL_SECTION.
9040 * symtab.h (struct general_symbol_info) <section>: Update comment.
9041 <obj_section>: Remove.
9042 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9043 (SYMBOL_OBJFILE): New macro.
9045 2013-04-08 Tom Tromey <tromey@redhat.com>
9047 * coffread.c (record_minimal_symbol): Update.
9048 * dbxread.c (record_minimal_symbol): Update.
9049 * elfread.c (record_minimal_symbol): Update.
9050 * machoread.c (macho_symtab_add_minsym): Update.
9051 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9053 * minsyms.c (prim_record_minimal_symbol): Update.
9054 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9056 (prim_record_minimal_symbol_and_info): Likewise.
9057 * minsyms.h (prim_record_minimal_symbol_full)
9058 (prim_record_minimal_symbol_and_info): Update.
9059 * symtab.c (allocate_symbol, initialize_symbol)
9060 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9061 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9064 2013-04-08 Tom Tromey <tromey@redhat.com>
9067 * solib-som.c (som_solib_section_offsets): Use BFD section
9068 indices. Set offsets for all sections.
9069 * somread.c (som_symtab_read): Compute BFD section for
9070 symbol. Use prim_record_minimal_symbol_and_info.
9071 (som_symfile_read): Fix comment.
9072 (struct find_section_offset_arg): New.
9073 (find_section_offset, set_section_index): New functions.
9074 (som_symfile_offsets): Use set_section_index to compute
9077 2013-04-08 Tom Tromey <tromey@redhat.com>
9079 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9080 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9081 gdb_bfd_section_index.
9082 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9084 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9086 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9088 * objfiles.c (add_to_objfile_sections_full): New function.
9089 (add_to_objfile_sections): Use it.
9090 (build_section_table): Rewrite.
9091 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9092 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9093 (struct objfile) <sections>: Update comment.
9094 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9096 (ALL_OBJSECTIONS): Use it.
9097 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9098 * solib-frv.c (frv_relocate_main_executable): Update.
9099 * solib-target.c (solib_target_relocate_section_addresses):
9100 Use gdb_bfd_section_index.
9101 * symfile.c (build_section_addr_info_from_section_table):
9102 Use gdb_bfd_section_index.
9103 (build_section_addr_info_from_bfd, place_section): Likewise.
9104 * symtab.c (fixup_section): Update.
9105 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9107 2013-04-08 Tom Tromey <tromey@redhat.com>
9109 * minsyms.h (struct bound_minimal_symbol): New.
9110 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9111 Remove objfile argument.
9112 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9113 Return bound_minimal_symbol.
9114 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9115 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9116 Return bound_minimal_symbol.
9117 (in_gnu_ifunc_stub): Update.
9118 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9119 Remove 'objfile_p' argument.
9120 (lookup_solib_trampoline_symbol_by_pc): Update.
9121 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9122 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9123 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9124 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9125 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9126 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9127 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9128 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9129 stack.c, symtab.c, tui/tui-disasm.c: Update.
9131 2013-04-08 Tom Tromey <tromey@redhat.com>
9133 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9134 Use symbol's obstack, not an objfile.
9135 * coffread.c (process_coff_symbol): Update.
9136 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9137 * jv-lang.c (add_class_symbol): Update.
9138 * mdebugread.c (new_symbol): Update.
9139 * minsyms.c (prim_record_minimal_symbol_full)
9140 (terminate_minimal_symbol_table): Update.
9141 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9142 * stabsread.c (define_symbol, read_enum_type): Update.
9143 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9144 Handle Ada specially.
9145 (symbol_set_language): Add 'obstack' argument.
9146 (symbol_set_names): Update.
9147 (symbol_natural_name, symbol_demangled_name): Always use
9149 * symtab.h (struct general_symbol_info)
9150 <language_specific::obstack>: New field.
9151 <ada_mangled>: New field.
9152 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9153 (symbol_set_language): Update.
9155 2013-04-08 Tom Tromey <tromey@redhat.com>
9157 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9158 Take an obstack, not an objfile.
9159 (symbol_set_names): Update.
9160 * symtab.h (symbol_set_demangled_name): Update.
9162 2013-04-08 Tom Tromey <tromey@redhat.com>
9164 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9166 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9167 (read_func_scope): Call allocate_template_symbol.
9168 (new_symbol_full): Call allocate_symbol.
9169 * jit.c (finalize_symtab): Call allocate_symbol.
9170 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9171 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9172 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9173 (common_block_end): Call allocate_symbol.
9174 * symtab.c (allocate_symbol, initialize_symbol)
9175 (allocate_template_symbol): New functions.
9176 * symtab.c (allocate_symbol, initialize_symbol)
9177 (allocate_template_symbol): Declare.
9178 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9180 2013-04-08 Pedro Alves <palves@redhat.com>
9181 Keith Seitz <keiths@redhat.com>
9183 * breakpoint.c (create_breakpoint): Rename
9184 "parse_condition_and_thread" parameter to "parse_arg". Update
9185 describing comment. If !PARSE_ARG, then error out if ARG is not
9186 the empty string after extracting the location.
9187 * breakpoint.h (create_breakpoint): Rename
9188 "parse_condition_and_thread" parameter to "parse_arg".
9190 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9192 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9194 2013-04-07 Yao Qi <yao@codesourcery.com>
9196 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9197 and 'addr2' to CORE_ADDR.
9198 * target.c (update_current_target): Update.
9199 * target.h (struct target_ops) <to_trace_find>: Change parameter
9201 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9202 'addr2' to CORE_ADDR.
9203 (tfile_trace_find): Likewise.
9204 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9205 Change local variable 'addr' to type CORE_ADDR.
9206 * tracepoint.h (tfind_1): Update declaration.
9208 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9210 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9211 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9214 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9216 * main.h (windows_get_absolute_argv0): ...to here.
9218 2013-04-05 Doug Evans <dje@google.com>
9220 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9221 (read_cutu_die_from_dwo): Add comments.
9222 (read_structure_type): Update comment.
9223 (read_enumeration_type, read_namespace_type): Update comment.
9224 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9226 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9228 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9229 * Makefile.in (gdb.z): Remove.
9230 (install-only): Remove $(man1dir) and gdb.1 installation.
9233 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9235 Fix compatibility with Linux kernel 3.8.3.
9236 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9237 to more inner block. Remove parsing of NUMBER from outer block.
9238 Parse NUMBER only if KEYWORD has been identified.
9240 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9242 Fix variable name shadowing.
9243 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9244 filename to mapsfilename and update its uses.
9246 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9248 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9249 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9250 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9251 details of the problem.
9253 2013-04-04 Pedro Alves <palves@redhat.com>
9254 Hui Zhu <hui@codesourcery.com>
9256 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9257 tracepoint, reset its STEP_COUNT and call validate_actionline.
9259 2013-04-03 Doug Evans <dje@google.com>
9261 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9262 read_die_and_siblings.
9263 (read_die_and_siblings): New function.
9264 (read_cutu_die_from_dwo): Dump die if requested.
9265 (read_die_and_children): Call read_full_die_1 and
9266 read_die_and_siblings_1.
9267 (read_full_die): Dump die if requested.
9269 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9271 * dwarf2read.c (struct dwo_file): New member comp_dir.
9272 Rename member name to dwo_name. All uses updated.
9273 (hash_dwo_file): Include comp_dir in computation.
9274 (eq_dwo_file): Ditto.
9275 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9276 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9278 * psymtab.c (read_psymtabs_with_fullname): Don't call
9279 psymtab_to_fullname if the basenames are different.
9281 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9283 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9284 New entry about "fullname" presence.
9286 2013-04-03 Pedro Alves <palves@redhat.com>
9288 * NEWS: Mention x86_64/Cygwin as new native configuration.
9290 2013-04-02 Doug Evans <dje@google.com>
9292 * dwarf2read.c (read_structure_type): Fix typo in comment.
9294 2013-04-02 Pedro Alves <palves@redhat.com>
9296 * NEWS: Mention "set/show debug aarch64", "set/show debug
9297 coff-pe-read" and "set/show debug mach-o".
9299 2013-04-02 Pedro Alves <palves@redhat.com>
9301 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9303 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9305 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9306 gdb_string.h is now in common/.
9308 2013-04-02 Pedro Alves <palves@redhat.com>
9310 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9311 under "New options".
9313 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9317 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9319 2013-04-02 Pedro Alves <palves@redhat.com>
9323 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9324 (remote_serial_write): New function.
9325 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9327 2013-04-01 Jiong Wang <jiwang@tilera.com>
9329 * NEWS: Mention TILE-Gx in "New native configurations" and
9330 "New targets" sections.
9332 2013-04-01 Doug Evans <dje@google.com>
9334 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9335 (process_enumeration_scope): Simplify.
9337 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9339 (struct signatured_type): ... to here.
9340 (sig_type_ptr): New typedef.
9341 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9342 out of union 't'. All uses updated.
9343 (dw2_get_file_names_reader): Assert not called for a type unit.
9344 (dw2_get_file_names): Assert not called for a type unit or type
9346 (build_type_psymtabs_reader): Assert called for a type unit.
9347 (build_type_psymtab_dependencies): Assert called for a type unit group.
9349 * dwarf2read.c (free_dwo_file): Add comment.
9350 (dwarf2_per_objfile_free): Unref dwp bfd.
9352 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9354 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9355 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9356 (read_pe_exported_syms): Remove unused 'exportix'.
9357 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9358 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9359 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9361 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9363 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9364 (print_it_watchpoint): Remove unused 'bl'.
9365 (say_where): Remove unused 'uiout'.
9366 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9367 (bkpt_breakpoint_hit): Remove unused 'b'.
9368 (internal_bkpt_print_it): Remove unused 'uiout'.
9369 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9371 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9373 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9374 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9376 2013-03-29 Doug Evans <dje@google.com>
9378 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9379 Delete arg is_dwp. All callers updated.
9380 (open_dwp_file): New function.
9381 (open_and_init_dwp_file): Call it.
9382 (get_dwp_file): New function.
9383 (lookup_dwo_cutu): Call it.
9385 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9386 unnecessary, cleanup.
9388 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9390 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9391 (lookup_dwo_unit): New function.
9392 (init_cutu_and_read_dies): Move DWO handling to new functions.
9394 * dwarf2read.c (struct signatured_type): Tweak comment.
9395 (struct dwo_unit): Tweak comment.
9396 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9397 (create_dwo_debug_info_hash_table): Tweak comment.
9398 (dwarf2_per_cu_offset_and_type): Tweak comment.
9400 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9401 missing .debug_types section.
9403 2013-03-29 Yao Qi <yao@codesourcery.com>
9405 * corelow.c: Include "completer.h".
9406 (_initialize_corelow): Call add_target_with_completer with
9407 argument 'filename_completer'.
9408 * tracepoint.c: Likewise.
9409 * exec.c (_initialize_exec): Likewise.
9410 * target.c (add_target): Rename to ...
9411 (add_target_with_completer): ... this. Call set_cmd_completer
9412 if parameter completer is not NULL.
9414 * target.h: Include "command.h".
9415 (add_target_with_completer): Declare it.
9417 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9419 * coffread.c (is_import_fixup_symbol): New function.
9420 (record_minimal_symbol): Use is_import_fixup_symbol to
9421 detect import fixup symbols, and discard them.
9423 2013-03-28 Doug Evans <dje@google.com>
9425 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9426 types hash table until we know we need it.
9428 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9431 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9432 All callers updated.
9433 (dw2_print_stats): Print #read CUs too.
9434 (dump_die_shallow): Print signatured types better.
9436 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9437 info_or_types_section to section. All uses updated.
9438 (struct dwo_unit): Ditto.
9440 2013-03-28 Pedro Alves <palves@redhat.com>
9442 * NEWS (New options): New section.
9443 (New options): Mention set/show remote trace-status-packet.
9444 * remote.c (PACKET_qTStatus): New enumeration value.
9445 (remote_get_trace_status): Skip sending qTStatus if the packet is
9446 disabled. Use packet_ok.
9447 (_initialize_remote): Register a configuration command for
9450 2013-03-28 Doug Evans <dje@google.com>
9452 * symfile.c (find_separate_debug_file): Add comment.
9453 (terminate_after_last_dir_separator): Tweak comment.
9455 * dwarf2read.c (create_partial_symtab): Add forward decl.
9456 (create_partial_symtab): Move to be closer to other psymtab functions.
9457 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9459 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9460 (compute_symtab_includes): Remove unnecessary forward declaration.
9461 (die_needs_namespace): Add comment marking group of functions for
9462 dwarf2 name computation.
9464 * typeprint.c (_initialize_typeprint): Improve type help text.
9466 * python/python.c (finish_python_initialization): Provide suggestion
9467 for how to tell gdb to find its python files.
9469 2013-03-28 Pedro Alves <palves@redhat.com>
9473 * source.c (_initialize_source): Change back "set listsize" to an
9476 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9479 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9481 2013-03-27 Pedro Alves <palves@redhat.com>
9483 * top.c (history_size): Rename to ...
9484 (history_size_setshow_var): ... this. Add comment.
9485 (show_commands): Use readline's 'history_length' instead of
9486 computing the history length by calling history_get in a loop.
9487 (set_history_size_command): Error out for sizes over INT_MAX.
9488 Restore previous history size on invalid size.
9489 (init_history): If HISTSIZE is negative, leave the history size as
9491 (init_main): Adjust.
9493 2013-03-27 Pedro Alves <palves@redhat.com>
9495 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9496 coff_pe_read" command to "set debug coff-pe-read".
9498 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9500 * record.c (command_size_to_target_size): Fix size comparison.
9501 Change parameter type from pointer to integer to integer.
9504 2013-03-27 Pierre Muller <muller@sourceware.org>
9506 * windows-nat.c (handle_output_debug_string): Avoid typecast
9507 from integer of different size warning.
9509 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9511 * windows-nat.c (handle_output_debug_string): Add empty line
9512 after local block variable definition.
9514 2013-03-26 Pedro Alves <palves@redhat.com>
9516 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9517 (net_open): Make 'polls' local unsigned.
9519 2013-03-26 Pedro Alves <palves@redhat.com>
9521 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9522 a zuinteger command instead of uinteger.
9524 2013-03-26 Pedro Alves <palves@redhat.com>
9526 * record-full.c (record_full_insn_num): Make it unsigned.
9527 (record_full_check_insn_num, record_full_message)
9528 (record_full_registers_change, record_full_xfer_partial): Remove
9529 record_full_insn_max_num check (it's always != 0).
9530 (record_full_info, record_full_restore): Use %u as format string.
9531 (): Use %u as format string.
9532 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9533 check (it's always != 0).
9535 2013-03-26 Pedro Alves <palves@redhat.com>
9537 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9538 and "set dcache size" commands zuinteger instead of uinteger.
9540 2013-03-26 Pedro Alves <palves@redhat.com>
9542 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9543 command zuinteger instead of uinteger.
9545 2013-03-26 Pedro Alves <palves@redhat.com>
9547 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9548 zuinteger instead of uinteger.
9550 2013-03-26 Pedro Alves <palves@redhat.com>
9552 * record.c (record_insn_history_size_setshow_var)
9553 (record_call_history_size_setshow_var): New globals.
9554 (command_size_to_target_size): New function.
9555 (cmd_record_insn_history, cmd_record_call_history): Use
9556 command_size_to_target_size instead of cast.
9557 (validate_history_size, set_record_insn_history_size)
9558 (set_record_call_history_size): New functions.
9559 (_initialize_record): Install set_record_insn_history_size and
9560 set_record_call_history_size as "set" hooks of "set record
9561 instruction-history-size" and "set record
9562 function-call-history-size".
9564 2013-03-26 Pedro Alves <palves@redhat.com>
9566 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9567 use with history_max_entries use. Remove FIXME note.
9569 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9571 * record-btrace.c (record_btrace_close): Call
9572 record_btrace_auto_disable.
9574 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9576 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9578 2013-03-25 Doug Evans <dje@google.com>
9580 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9582 2013-03-25 Tom Tromey <tromey@redhat.com>
9585 * c-exp.y (exp): Add new productions for destructors after '.' and
9587 (write_destructor_name): New function.
9589 2013-03-25 Tom Tromey <tromey@redhat.com>
9592 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9593 value_struct_elt, not lookup_struct_elt_type.
9594 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9595 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9596 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9598 2013-03-25 Yao Qi <yao@codesourcery.com>
9600 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9601 instead of '_mkdir'.
9603 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9605 * windows-nat.c (windows_get_absolute_argv0): New function.
9606 * windows-nat.h: Add its prototype.
9608 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9609 Use IS_DIR_SEPARATOR instead of looking for a character inside
9610 SLASH_STRING. Include filenames.h.
9611 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9612 relocate_gdb_directory works when passed gdb_program_name.
9613 Include windows-nat.h.
9615 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9617 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9618 * remote.c (trace_error): Remove the special handling of '2'.
9619 (readchar) <SERIAL_EOF>
9620 (readchar) <SERIAL_ERROR>
9621 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9622 (remote_get_trace_status): Call throw_exception if EX is
9624 * utils.c (perror_with_name): Rename to ...
9625 (throw_perror_with_name): ... here. New parameter errcode, describe it
9626 in the function comment.
9627 (perror_with_name): New function wrapper.
9628 * utils.h (enum errors): New stub declaration.
9629 (throw_perror_with_name): New declaration.
9631 2013-03-22 Pedro Alves <palves@redhat.com>
9632 Yao Qi <yao@codesourcery.com>
9633 Mark Kettenis <kettenis@gnu.org>
9635 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9636 Don't let the user set the value to UINT_MAX directly.
9637 <var_integer>: Don't let the user set the value to INT_MAX
9640 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9642 * remote.c (remote_unpush_target): New function.
9643 (remote_open_1): Remove two pop_target calls, update one comment, add
9644 comment to target_preopen call. Replace pop_target call by
9645 remote_unpush_target call.
9646 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9647 pop_target calls by remote_unpush_target calls.
9649 2013-03-22 Pedro Alves <palves@redhat.com>
9651 * linux-nat.c (linux_child_follow_fork): Don't call
9652 linux_enable_event_reporting.
9653 (linux_handle_extended_wait): Don't call
9654 linux_enable_event_reporting.
9656 2013-03-22 Pedro Alves <palves@redhat.com>
9658 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9659 use it to rewrite the trampoline buffers with type gdb_byte[], and
9660 undefine the macro. Remove char* cast.
9662 2013-03-21 Doug Evans <dje@google.com>
9664 New commands "mt set per-command {space,time,symtab} {on,off}".
9666 * event-top.c: #include "maint.h".
9667 * main.c: #include "maint.h".
9668 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9669 timeval-utils.h, maint.h, cli/cli-setshow.h.
9670 (per_command_time, per_command_space): New static globals.
9671 (per_command_symtab): New static global.
9672 (per_command_setlist, per_command_showlist): New static globals.
9673 (struct cmd_stats): Move here from utils.c.
9674 (set_per_command_time): Renamed from set_display_time in utils.c
9675 and moved here. All callers updated.
9676 (set_per_command_space): Renamed from set_display_space in utils.c
9677 and moved here. All callers updated.
9678 (count_symtabs_and_blocks): New function.
9679 (report_command_stats): Moved here from utils.c. Add support for
9680 printing symtab stats. Only print data if enabled before command
9682 (make_command_stats_cleanup): Ditto.
9683 (sert_per_command_cmd, show_per_command_cmd): New functions.
9684 (_initialize_maint_cmds): Add new commands
9685 mt set per-command {space,time,symtab} {on,off}.
9686 * maint.h: New file.
9687 * top.c: #include "maint.h".
9688 * utils.c (reset_prompt_for_continue_wait_time): New function.
9689 (get_prompt_for_continue_wait_time): New function.
9690 * utils.h (reset_prompt_for_continue_wait_time): Declare
9691 (get_prompt_for_continue_wait_time): Declare.
9692 (make_command_stats_cleanup): Moved to maint.h.
9693 (set_display_time, set_display_space): Moved to maint.h and renamed
9694 to set_per_command_time, set_per_command_space.
9695 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9696 parse_binary_operation and made non-static. Don't call error,
9697 just return an error marker. All callers updated.
9698 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9700 2013-03-21 Tom Tromey <tromey@redhat.com>
9702 * symfile.c (alloc_section_addr_info): Update header. Don't set
9703 'num_sections' field.
9704 (build_section_addr_info_from_section_table): Set 'num_sections'.
9705 (build_section_addr_info_from_bfd): Likewise.
9706 (build_section_addr_info_from_objfile): Remove dead loop
9708 (free_section_addr_info): Unconditionally call xfree.
9709 (relative_addr_info_to_section_offsets, addrs_section_sort)
9710 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9712 (syms_from_objfile_1): Remove dead 'if' condition. Check
9714 (add_symbol_file_command): Set 'num_sections'.
9715 * symfile-mem.c (symbol_file_add_from_memory): Set
9717 * somread.c (som_symfile_offsets): Remove dead loop condition.
9718 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9719 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9721 2013-03-21 Tom Tromey <tromey@redhat.com>
9723 * tracepoint.h (decode_agent_options): Add 'trace_string'
9725 * tracepoint.c (decode_agent_options): Add 'trace_string'
9727 (validate_actionline): Update.
9728 (collect_symbol): Add 'trace_string' argument.
9729 (struct add_local_symbols_data) <trace_string>: New field.
9730 (do_collect_symbol): Update.
9731 (add_local_symbols): Add 'trace_string' argument.
9732 (encode_actions_1): Update.
9733 (trace_dump_actions): Update.
9734 * dwarf2loc.c (access_memory): Update.
9735 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9736 * ax-general.c (new_agent_expr): Update.
9737 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9738 (gen_trace_for_return_address): Add argument.
9739 (trace_kludge, trace_string_kludge): Remove.
9740 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9741 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9742 (gen_trace_for_var): Add 'trace_string' argument.
9743 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9744 (gen_printf, agent_eval_command_one): Update.
9746 2013-03-21 Tom Tromey <tromey@redhat.com>
9749 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9750 Handle FILENAME token.
9752 2013-03-21 Tom Tromey <tromey@redhat.com>
9754 * c-exp.y (YYPRINT): Define.
9755 (c_print_token): New function.
9757 2013-03-21 Tom Tromey <tromey@redhat.com>
9759 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9761 2013-03-21 Yao Qi <yao@codesourcery.com>
9763 * ctf.c: Include "gdb_stat.h".
9764 [USE_WIN32API]: New macro 'mkdir'.
9765 (ctf_start): Use permission bits macros if they are defined.
9767 2013-03-20 Keith Seitz <keiths@redhat.com>
9769 * breakpoint.h (struct breakpoint): Add comment to
9770 extra_string indicating that this member is mallod'd.
9771 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9773 2013-03-20 Pedro Alves <palves@redhat.com>
9777 * cli/cli-setshow.c (do_set_command)
9778 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9779 the result of parsing the command argument. Throw error if the
9780 value is greater than UINT_MAX. Print the invalid value with
9782 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9783 result of parsing the command argument. Throw error if the value
9784 is greater than INT_MAX, not greater or equal. Also throw error
9785 if the value is less than INT_MIN. Print the invalid value with
9787 <var_zuinteger_unlimited>: Throw error if the value is greater
9788 than INT_MAX, not greater or equal.
9789 (do_show_command) <var_integer, var_zinteger,
9790 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9792 2013-03-20 Tom Tromey <tromey@redhat.com>
9794 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9796 * dwarf2read.c (read_func_scope): Remove old FIXME.
9797 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9799 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9800 Unconditionally call via computed ops, if possible.
9801 * printcmd.c (address_info): Unconditionally call via computed ops,
9803 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9805 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9806 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9809 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9810 Tom Tromey <tromey@redhat.com>
9813 * coffread.c (coff_register_index): New global.
9814 (process_coff_symbol, coff_read_enum_type): Set
9815 SYMBOL_ACLASS_INDEX.
9816 (_initialize_coffread): Initialize new global.
9817 * dwarf2loc.c (locexpr_find_frame_base_location)
9818 (dwarf2_block_frame_base_locexpr_funcs)
9819 (loclist_find_frame_base_location)
9820 (dwarf2_block_frame_base_loclist_funcs): New.
9821 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9822 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9823 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9824 (dwarf2_block_frame_base_loclist_funcs): New.
9825 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9826 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9828 (read_func_scope): Update.
9829 (fixup_go_packaging, mark_common_block_symbol_computed)
9830 (var_decode_location, new_symbol_full, dwarf2_const_value):
9831 Set SYMBOL_ACLASS_INDEX.
9832 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9833 (_initialize_dwarf2_read): Initialize new globals.
9834 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9835 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9836 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9838 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9839 (_initialize_mdebugread): Initialize new globals.
9840 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9841 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9842 (stab_register_index, stab_regparm_index): New globals.
9843 (define_symbol, read_enum_type, common_block_end): Set
9844 SYMBOL_ACLASS_INDEX.
9845 (_initialize_stabsread): Initialize new globals.
9846 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9848 (MAX_SYMBOL_IMPLS): New define.
9849 (register_symbol_computed_impl, register_symbol_block_impl)
9850 (register_symbol_register_impl)
9851 (initialize_ordinary_address_classes): New functions.
9852 (_initialize_symtab): Call initialize_ordinary_address_classes.
9853 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9854 (struct symbol_impl): New.
9855 (SYMBOL_ACLASS_BITS): New define.
9856 (struct symbol) <aclass, ops>: Remove fields.
9857 <aclass_index>: New field.
9858 (symbol_impls): Declare.
9859 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9860 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9861 (register_symbol_computed_impl, register_symbol_block_impl)
9862 (register_symbol_register_impl): Declare.
9863 (struct symbol_computed_ops): Add location_has_loclist.
9864 (struct symbol_block_ops): New.
9865 (SYMBOL_BLOCK_OPS): New.
9866 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9868 2013-03-20 Tom Tromey <tromey@redhat.com>
9870 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9871 (print_partial_symbols, recursively_search_psymtabs): Use
9874 2013-03-20 Pierre Muller <muller@sourceware.org>
9876 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9877 addtion, subtraction, multiplication and division binary operator.
9879 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9882 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9883 * bsd-kvm.c (bsd_kvm_close): Likewise.
9884 * bsd-uthread.c (bsd_uthread_close): Likewise.
9885 * corelow.c (core_close): Likewise.
9886 (core_close_cleanup): Remove parameter quitting from a caller.
9887 * event-top.c (async_disconnect): Likewise.
9888 * exec.c (exec_close_1): Remove parameter quitting.
9889 * go32-nat.c (go32_close): Likewise.
9890 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9891 parameter quitting from a caller.
9892 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9894 (mips_linux_close): Remove parameter quitting. Remove parameter
9895 quitting from a caller.
9896 * monitor.c (monitor_close): Remove parameter quitting.
9897 * monitor.h (monitor_close): Likewise.
9898 * record-btrace.c (record_btrace_close): Likewise.
9899 * record-full.c (record_full_close): Likewise.
9900 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9901 it also from fprintf_unfiltered.
9902 * remote-mips.c (mips_close): Remove parameter quitting.
9903 (mips_detach): Remove parameter quitting from a caller.
9904 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9905 (gdbsim_close): Remove duplicate function comment. Remove parameter
9906 quitting and remove it also from printf_filtered.
9907 * remote.c (remote_close): Remove parameter quitting.
9908 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9909 * target.c (update_current_target): Remove parameter int from to_close
9911 (push_target, unpush_target, pop_target): Remove parameter quitting from
9913 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9914 Remove parameter quitting from a caller.
9915 (target_preopen): Remove parameter quitting from a caller.
9916 (target_close): Remove parameter quitting. Remove parameter quitting
9917 from a caller two times. Remove parameter quitting also from
9919 * target.h (struct target_ops): Remove parameter quitting and as int
9920 from fields to_xclose and to_close.
9921 (extern struct target_ops current_target):
9922 (target_close, pop_all_targets): Remove parameter quitting. Update the
9924 (pop_all_targets_above): Remove parameter quitting.
9925 * top.c (quit_target): Remove parameter quitting from a caller.
9926 * tracepoint.c (tfile_close): Remove parameter quitting.
9927 * windows-nat.c (windows_close): Remove parameter quitting.
9929 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9931 * windows-nat.c (handle_output_debug_string): Replace call
9932 to string_to_core_addr with call to strtoull.
9934 2013-03-20 Yao Qi <yao@codesourcery.com>
9936 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9937 and write it to CTF metadata.
9939 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9941 * windows-nat.c (handle_output_debug_string): Change type of n to
9942 SIZE_T to avoid crash on 64 bit systems.
9944 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9946 * python/python-internal.h (HAVE_SNPRINTF)
9947 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9948 about redefinition of snprintf by pyerrors.h.
9950 2013-03-15 Steve Ellcey <sellcey@mips.com>
9952 * remote-sim.c (sim_command_completer): Make char arguments const.
9954 2013-03-15 Tom Tromey <tromey@redhat.com>
9957 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9959 2013-03-14 Tom Tromey <tromey@redhat.com>
9961 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9963 (get_file_crc): Move from symfile.c.
9964 (gdb_bfd_crc): New function.
9965 * gdb_bfd.h (gdb_bfd_crc): Declare.
9966 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9967 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9968 (separate_debug_file_exists): Use gdb_bfd_crc.
9970 2013-03-14 Tom Tromey <tromey@redhat.com>
9972 * symfile.c (get_debug_link_info): Remove.
9973 (find_separate_debug_file_by_debuglink): Use
9974 bfd_get_debug_link_info.
9976 2013-03-14 Tom Tromey <tromey@redhat.com>
9978 * symtab.c (error_in_psymtab_expansion): New function.
9979 (lookup_symbol_aux_quick)
9980 (basic_lookup_transparent_type_quick): Remove "last resort"
9981 code. Use error_in_psymtab_expansion.
9983 2013-03-14 Doug Evans <dje@google.com>
9984 Jan Kratochvil <jan.kratochvil@redhat.com>
9986 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9987 any successful compare_filenames_for_search or FILENAME_CMP.
9988 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9989 * symtab.c (iterate_over_some_symtabs): Likewise.
9991 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9993 * source.c (print_source_lines_base): Make a local copy of
9996 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9997 Jan Kratochvil <jan.kratochvil@redhat.com>
9999 * source.c (print_source_lines_base): Suppress "file" for TUI.
10001 2013-03-14 Keith Seitz <keiths@redhat.com>
10002 Alan Matsuoka <alanm@redhat.com>
10006 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10008 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10011 2013-03-14 Yao Qi <yao@codesourcery.com>
10013 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10014 status to tfile if trace is stopped by command 'tstop'.
10016 2013-03-14 Yao Qi <yao@codesourcery.com>
10018 * tracepoint.c (tfile_write_status): Write trace notes and user
10019 name into tfile if they are not NULL.
10021 2013-03-14 Hui Zhu <hui@codesourcery.com>
10022 Yao Qi <yao@codesourcery.com>
10024 * Makefile.in (REMOTE_OBS): Add ctf.o.
10025 (SFILES): Add ctf.c.
10026 (HFILES_NO_SRCDIR): Add ctf.h.
10027 * ctf.c, ctf.h: New files.
10028 * tracepoint.c: Include 'ctf.h'.
10029 (collect_pseudocommand): Remove static.
10030 (trace_save_command): Parse option "-ctf".
10031 Produce different trace file writers per option.
10032 Adjust output message.
10033 (trace_save_tfile, trace_save_ctf): New.
10034 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10035 * mi/mi-main.c: Include 'ctf.h'.
10036 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10037 trace_save_tfile or trace_save_ctf.
10038 * NEWS: Mention these changes.
10040 2013-03-14 Yao Qi <yao@codesourcery.com>
10042 * tracepoint.c (trace_file_writer_xfree): New.
10043 (struct tfile_writer_data): New.
10044 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10045 (tfile_write_header, tfile_write_regblock_type): New.
10046 (tfile_write_status, tfile_write_uploaded_tsv): New.
10047 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10048 (tfile_write_raw_data, (tfile_end): New.
10049 (tfile_write_ops): New global variable.
10050 (TRACE_WRITE_R_BLOCK): New macro.
10051 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10052 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10053 (TRACE_WRITE_V_BLOCK): New macro.
10054 (trace_save): Add extra one parameter WRITER. Make it static.
10055 Use WRITER to writer trace.
10056 (tfile_trace_file_writer_new): New.
10057 (trace_save_command): Caller update.
10058 (trace_save_tfile): Write trace data in TFILE format.
10059 * tracepoint.h (struct trace_frame_write_ops): New.
10060 (struct trace_file_write_ops): New.
10061 (struct trace_file_writer): New.
10062 (trace_save): Remove its declaration.
10063 (trace_save_tfile): Declare it.
10064 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10065 instead of trace_save.
10067 2013-03-13 Pedro Alves <palves@redhat.com>
10069 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10071 2013-03-13 Pedro Alves <palves@redhat.com>
10073 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10074 commented out code.
10075 * demangle.c (current_demangling_style_string): Make it const.
10076 (set_demangling_command): Assert the demangling style is known.
10077 Remove all handling of unknown styles. Set
10078 'current_demangling_style_string' to an element of the
10079 demangling_style_names array.
10080 (set_demangling_style): Delete.
10081 (_initialize_demangler): Set current_demangling_style_string to the
10082 element of the demangling_style_names array that corresponds to
10083 the default demangling style. Remove FIXME note. Don't call
10084 set_demangling_style.
10085 * gdb-demangle.h (set_demangling_style): Remove declaration.
10087 2013-03-13 Pedro Alves <palves@redhat.com>
10089 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10091 (ada_make_symbol_completion_list): Make "text0" parameter const.
10092 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10093 * breakpoint.c (condition_completer): Make "text" and "word"
10094 parameters const. Adjust.
10095 (check_tracepoint_command): Adjust to validate_actionline
10097 (catch_syscall_completer): Make "text" and "word" parameters
10099 * cli/cli-cmds.c (show_user): Make "comname" local const.
10100 (valid_command_p): Make "command" parameter const.
10101 (alias_command): Make "alias_prefix" and "command_prefix" locals
10103 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10104 (add_alias_cmd): Make "name" and "oldname" parameters const.
10105 Adjust. No longer make copy of OLDNAME.
10106 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10107 (add_setshow_cmd_full, add_setshow_enum_cmd)
10108 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10109 (add_setshow_filename_cmd, add_setshow_string_cmd)
10110 (add_setshow_string_noescape_cmd)
10111 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10112 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10113 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10114 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10115 Make "name" parameter const.
10116 (help_cmd): Rename "command" parameter to "arg". New const local
10118 (find_cmd): Make "command" parameter const.
10119 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10120 deprecated_cmd_warning prototype change.
10121 (undef_cmd_error): Make "cmdtype" parameter const.
10122 (lookup_cmd): Make "line" parameter const.
10123 (deprecated_cmd_warning): Change type of "text" parameter to
10124 pointer to const char, from pointer to pointer to char. Adjust.
10125 (lookup_cmd_composition): Make "text" parameter const.
10126 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10128 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10130 * cli/cli-script.c (validate_comname): Make "tem" local const.
10131 (define_command): New const local "tem_c". Use it in calls to
10133 (document_command): Make "tem" and "comfull" locals const.
10134 (show_user_1): Make "prefix" and "name" parameters const.
10135 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10137 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10138 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10139 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10140 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10141 (complete_on_enum, add_setshow_enum_cmd)
10142 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10143 (add_setshow_filename_cmd, add_setshow_string_cmd)
10144 (add_setshow_string_noescape_cmd)
10145 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10146 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10147 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10148 Change prototypes, constifying strings.
10149 * completer.c (noop_completer, filename_completer): Make "text"
10150 and "prefix" parameters const.
10151 (location_completer, expression_completer)
10152 (complete_line_internal): Make "text" and "prefix" parameters
10154 (command_completer, signal_completer): Make "text" and "prefix"
10156 * completer.h (noop_completer, filename_completer)
10157 (expression_completer, location_completer, command_completer)
10158 (signal_completer): Change prototypes.
10159 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10161 * cp-abi.c (cp_abi_completer): Likewise.
10162 * expression.h (parse_expression_for_completion): Change
10164 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10166 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10167 * infrun.c (handle_completer): Make "text" and "word" parameters
10169 * interps.c (interpreter_completer): Make "text" and "word"
10171 * language.h (struct language_defn)
10172 <la_make_symbol_completion_list>: Make "text" and "word"
10174 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10175 (parse_exp_in_context): Rename to ...
10176 (parse_exp_in_context_1): ... this.
10177 (parse_exp_in_context): Reimplement, with const hack from
10179 (parse_expression_for_completion): Make "string" parameter const.
10180 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10181 to pointer to const char. Adjust.
10182 (print_command_1): Make "exp" parameter const.
10183 (output_command): Rename to ...
10184 (output_command_const): ... this. Make "exp" parameter const.
10185 (output_command): Reimplement.
10186 (x_command): Adjust.
10187 (display_command): Rename "exp" parameter to "arg". New "exp"
10188 local, const version of "arg".
10189 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10190 "cmd_name" local const.
10191 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10193 (cmdpy_completer): Make "text" and "word" parameters const.
10194 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10195 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10197 * remote.c (_initialize_remote): Make "cmd_name" local const.
10198 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10199 parameters const. Adjust.
10200 (completion_list_add_fields): Make "sym_text", "text" and "word"
10202 (struct add_name_data) <sym_text, text, word>: Make fields const.
10203 (default_make_symbol_completion_list_break_on): Make "text" and
10204 "word" parameters const. Adjust locals.
10205 (default_make_symbol_completion_list)
10206 (make_symbol_completion_list, make_symbol_completion_type)
10207 (make_symbol_completion_list_fn): Make "text" and "word"
10209 (make_file_symbol_completion_list): Make "text", "word" and
10210 "srcfile" parameters const. Adjust locals.
10211 (add_filename_to_list): Make "text" and "word" parameters const.
10212 (struct add_partial_filename_data) <text, word>: Make fields
10214 (make_source_files_completion_list): Make "text" and "word"
10216 * symtab.h (default_make_symbol_completion_list_break_on)
10217 (default_make_symbol_completion_list, make_symbol_completion_list)
10218 (make_symbol_completion_type enum type_code)
10219 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10220 (make_source_files_completion_list): Change prototype.
10221 * top.c (execute_command): Adjust to pass pointer to pointer to
10222 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10224 (set_verbose): Make "cmdname" local const.
10225 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10227 (validate_actionline): Make "line" parameter a pointer to const
10229 (encode_actions_1): Make "action_exp" local const, and adjust.
10230 (encode_actions): Adjust.
10231 (replace_comma): Delete.
10232 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10233 const, and adjust. Don't frob the action string while splitting
10234 it at commas. Instead, make a copy of each split substring in
10236 (trace_dump_command): Adjust to validate_actionline prototype
10238 * tracepoint.h (decode_agent_options, decode_agent_options)
10239 (encode_actions, validate_actionline): Change prototypes.
10240 * valprint.h (output_command): Delete declaration.
10241 (output_command_const): Declare.
10242 * value.c (function_destroyer): Cast const away in xfree call.
10244 2013-03-13 Pedro Alves <palves@redhat.com>
10246 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10247 rather than casting 'const char * const *' to 'const char **'.
10248 * ada-lex.l (processInt): Make "trailer" local const. Remove
10249 'const char **' cast.
10250 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10251 locals, and use those as strtol output pointer, instead than doing
10252 invalid casts to from 'const char **' to 'char **'.
10253 (_initialize_demangle): Remove cast.
10254 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10255 locals, and use those as strtol output pointer, instead than doing
10256 invalid casts to from 'const char **' to 'char **'.
10257 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10259 * stap-probe.c (stap_parse_register_operand)
10260 (stap_parse_single_operand): Likewise.
10262 2013-03-13 Yao Qi <yao@codesourcery.com>
10264 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10265 the last matched 'V' blcok in trace frame.
10267 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10269 * NEWS: Create a new section for the next release branch.
10270 Rename the section of the current branch, now that it has
10273 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10275 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10276 * version.in: Bump version to 7.6.50.20130312-cvs.
10278 2013-03-12 Keith Seitz <keiths@redhat.com>
10280 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10281 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10282 Remove temporary copy of input string.
10283 (mi_execute_command_wrapper): Make "cmd" const.
10284 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10285 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10287 (mi_parse): Make "cmd" const.
10289 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10291 2013-03-12 Keith Seitz <keiths@redhat.com>
10293 * ada-lang.c (ada_read_renaming_var_value): Pass const
10294 pointer to expression string to parse_exp_1.
10295 (create_excep_cond_exprs): Likewise.
10296 * ax-gdb.c (agent_eval_command_one): Likewise.
10297 (maint_agent_printf_command): Likewise.
10298 Constify much of the string handling/parsing.
10299 * breakpoint.c (set_breakpoint_condition): Pass const
10300 pointer to expression string to parse_exp_1.
10301 (update_watchpoint): Likewise.
10302 (parse_cmd_to_aexpr): Constify string handling.
10303 Pass const pointer to parse_exp_1.
10304 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10305 (find_condition_and_thread): Likewise.
10307 (watch_command_1): Make "arg" const.
10308 Constify string handling.
10309 Copy the expression string instead of changing the input
10311 (update_breakpoint_location): Pass const pointer to
10313 * eval.c (parse_and_eval_address): Make "exp" const.
10314 (parse_to_comma_and_eval): Make "expp" const.
10315 (parse_and_eval): Make "exp" const.
10316 * expression.h (parse_expression): Make argument const.
10317 (parse_exp_1): Make first argument const.
10318 * findcmd.c (parse_find_args): Treat "args" as const.
10319 * linespec.c (parse_linespec): Pass const pointer to
10320 linespec_expression_to_pc.
10321 (linespec_expression_to_pc): Make "exp_ptr" const.
10322 * parse.c (parse_exp_1): Make "stringptr" const.
10323 Make a copy of the expression to pass to parse_exp_in_context until
10324 this whole interface can be constified.
10325 (parse_expression): Make "string" const.
10326 * printcmd.c (ui_printf): Treat "arg" as const.
10327 Handle const strings.
10328 * tracepoint.c (validate_actionline): Pass const pointer to
10329 all calls to parse_exp_1.
10330 (encode_actions_1): Likewise.
10331 * value.h (parse_to_comma_and_eval): Make argument const.
10332 (parse_and_eval_address): Likewise.
10333 (parse_and_eval): Likewise.
10334 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10335 (varobj_set_value): Likewise.
10336 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10337 constify string handling.
10338 Pass const pointers to parse_and_eval_address and
10339 parse_to_comman_and_eval.
10340 * cli/cli-utils.c (skip_to_space): Rename to ...
10341 (skip_to_space_const): ... this. Handle const strings.
10342 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10343 skip_to_space_const.
10344 (skip_to_space_const): Declare.
10345 * common/format.c (parse_format_string): Make "arg" const.
10346 Handle const strings.
10347 * common/format.h (parse_format_string): Make "arg" const.
10348 * gdbserver/ax.c (ax_printf): Make "format" const.
10349 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10350 of the expression string.
10352 2013-03-12 Hui Zhu <hui@codesourcery.com>
10354 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10356 2013-03-12 Yao Qi <yao@codesourcery.com>
10357 Hui Zhu <hui@codesourcery.com>
10359 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10360 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10363 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10365 * ada-lex.l (rules): Only recognize 'thread' as a
10366 delimiter when followed by numerals, as for c-exp.y.
10367 Use new rewind_to_char function to rewind the input for
10368 expression-delimiting tokens.
10369 (rewind_to_char): New function.
10371 2013-03-11 Pedro Alves <palves@redhat.com>
10372 Jan Kratochvil <jan.kratochvil@redhat.com>
10374 * configure: Regenerate.
10375 * configure.ac (check dynamic export flag): Link python test with
10378 2013-03-11 Doug Evans <dje@google.com>
10379 Keith Seitz <keiths@redhat.com>
10381 * linespec.c (find_linespec_symbols): Call find_function_symbols
10382 first, and then call lookup_prefix_sym/find_method.
10384 2013-03-11 Pedro Alves <palves@redhat.com>
10386 * charset.c (convert_between_encodings): Don't cast between
10387 different pointer to pointer types. Instead, make the 'inp' local
10388 be of the type iconv expects.
10389 (wchar_iterate): Don't cast between different pointer to pointer
10390 types. Instead, use new pointer local of the type iconv expects.
10391 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10392 Add new local of type char pointer, and use it to get a
10393 char/string view of the byte buffer, instead of casting between
10394 pointer to pointer types.
10396 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10398 * remote.c (remote_set_trace_buffer_size): Move != operator
10399 to the start of next line to fix an ARI warning.
10401 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10403 * NEWS: Add record changes.
10405 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10407 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10408 the instruction history disassembly.
10409 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10410 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10412 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10414 * Makefile.in (SFILES): Add record-btrace.c
10415 (COMMON_OBS): Add record-btrace.o
10416 * record-btrace.c: New.
10417 * objfiles.c: Include btrace.h.
10418 (free_objfile): call btrace_free_objfile.
10420 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10422 * target.c (target_call_history, target_call_history_from,
10423 target_call_history_range): New.
10424 * target.h (target_ops) <to_call_history, to_call_history_from,
10425 to_call_history_range>: New fields.
10426 (target_call_history, target_call_history_from,
10427 target_call_history_range): New declaration.
10428 * record.c (get_call_history_modifiers, cmd_record_call_history,
10429 record_call_history_size): New.
10430 (_initialize_record): Add the "record function-call-history" command.
10431 Add "set/show record function-call-history-size" commands.
10432 * record.h (record_print_flag): New.
10434 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10436 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10437 to_insn_history_range>: New fields.
10438 (target_insn_history): New.
10439 (target_insn_history_from): New.
10440 (target_insn_history_range): New.
10441 * target.c (target_insn_history): New.
10442 (target_insn_history_from): New.
10443 (target_insn_history_range): New.
10444 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10445 (record_insn_history_size): New.
10446 (get_insn_number): New.
10447 (get_context_size): New.
10449 (get_insn_history_modifiers): New.
10450 (cmd_record_insn_history): New.
10451 (_initialize_record): Add "set/show record instruction-history-size"
10452 command. Add "record instruction-history" command.
10454 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10456 * record.h (record_disconnect): New.
10457 (record_detach): New.
10458 (record_mourn_inferior): New.
10459 (record_kill): New.
10460 * record-full.c (record_disconnect, record_detach,
10461 record_mourn_inferior, record_kill): Move to...
10462 * record.c: ...here.
10464 (record_stop): New.
10465 (record_unpush): New.
10466 (cmd_record_stop): Call record_stop. Replace unpush_target
10467 call with record_unpush call.
10468 (record_disconnect, record_detach): Assert that the target
10469 is of record stratum. Call record_unpush, record_stop, and
10471 (record_mourn_inferior, record_kill): Assert that the target
10472 is of record stratum. Call record_unpush and DEBUG.
10474 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10476 * record-full.h, record-full.c (record_memory_query): Rename
10478 (record_full_memory_query): ...this. Update all users.
10479 (record_arch_list_add_reg): Rename to ...
10480 (record_full_arch_list_add_reg): ...this. Update all users.
10481 (record_arch_list_add_mem): Rename to ...
10482 (record_full_arch_list_add_mem): ...this. Update all users.
10483 (record_arch_list_add_end): Rename to ...
10484 (record_full_arch_list_add_end): ...this. Update all users.
10485 (record_gdb_operation_disable_set): Rename to ...
10486 (record_full_gdb_operation_disable_set): ...this.
10489 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10491 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10492 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10493 (RECORD_IS_REPLAY): Renamed to ...
10494 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10495 (RECORD_FILE_MAGIC): Renamed to ...
10496 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10497 (record_mem_entry): Renamed to ...
10498 (record_full_mem_entry): ... this. Updated all users.
10499 (record_reg_entry): Renamed to ...
10500 (record_full_reg_entry): ... this. Updated all users.
10501 (record_end_entry): Renamed to ...
10502 (record_full_end_entry): ... this. Updated all users.
10503 (record_type) <record_end, record_reg, record_mem>: Renamed
10505 (record_full_type) <record_full_end, record_full_reg,
10506 record_full_mem>: ... this. Updated all users.
10507 (record_entry): Renamed to ...
10508 (record_full_entry): ... this. Updated all users.
10509 (record_core_buf_entry): Renamed to ...
10510 (record_full_core_buf_entry): ... this. Updated all users.
10511 (record_core_regbuf): Renamed to ...
10512 (record_full_core_regbuf): ... this. Updated all users.
10513 (record_core_start): Renamed to ...
10514 (record_full_core_start): ... this. Updated all users.
10515 (record_core_end): Renamed to ...
10516 (record_full_core_end): ... this. Updated all users.
10517 (record_core_buf_list): Renamed to ...
10518 (record_full_core_buf_list): ... this. Updated all users.
10519 (record_first): Renamed to ...
10520 (record_full_first): ... this. Updated all users.
10521 (record_list): Renamed to ...
10522 (record_full_list): ... this. Updated all users.
10523 (record_arch_list_head): Renamed to ...
10524 (record_full_arch_list_head): ... this. Updated all users.
10525 (record_arch_list_tail): Renamed to ...
10526 (record_full_arch_list_tail): ... this. Updated all users.
10527 (record_stop_at_limit): Renamed to ...
10528 (record_full_stop_at_limit): ... this. Updated all users.
10529 (record_insn_max_num): Renamed to ...
10530 (record_full_insn_max_num): ... this. Updated all users.
10531 (record_insn_num): Renamed to ...
10532 (record_full_insn_num): ... this. Updated all users.
10533 (record_insn_count): Renamed to ...
10534 (record_full_insn_count): ... this. Updated all users.
10535 (record_ops): Renamed to ...
10536 (record_full_ops): ... this. Updated all users.
10537 (record_core_ops): Renamed to ...
10538 (record_full_core_ops): ... this. Updated all users.
10539 (set_record_cmdlist): Renamed to ...
10540 (set_record_full_cmdlist): ... this. Updated all users.
10541 (show_record_cmdlist): Renamed to ...
10542 (show_record_full_cmdlist): ... this. Updated all users.
10543 (record_cmdlist): Renamed to ...
10544 (record_full_cmdlist): ... this. Updated all users.
10545 (record_beneath_to_resume_ops): Renamed to ...
10546 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10547 (record_beneath_to_resume): Renamed to ...
10548 (record_full_beneath_to_resume): ... this. Updated all users.
10549 (record_beneath_to_wait_ops): Renamed to ...
10550 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10551 (record_beneath_to_wait): Renamed to ...
10552 (record_full_beneath_to_wait): ... this. Updated all users.
10553 (record_beneath_to_store_registers_ops): Renamed to ...
10554 (record_full_beneath_to_store_registers_ops): ... this.
10556 (record_beneath_to_store_registers): Renamed to ...
10557 (record_full_beneath_to_store_registers): ... this.
10559 (record_beneath_to_xfer_partial_ops): Renamed to ...
10560 (record_full_beneath_to_xfer_partial_ops): ... this.
10562 (record_beneath_to_xfer_partial): Renamed to ...
10563 (record_full_beneath_to_xfer_partial): ... this.
10565 (record_beneath_to_insert_breakpoint): Renamed to ...
10566 (record_full_beneath_to_insert_breakpoint): ... this.
10568 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10569 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10571 (record_beneath_to_stopped_data_address): Renamed to ...
10572 (record_full_beneath_to_stopped_data_address): ... this.
10574 (record_beneath_to_async): Renamed to ...
10575 (record_full_beneath_to_async): ... this. Updated all users.
10576 (record_goto_insn): Renamed to ...
10577 (record_full_goto_insn): ... this. Updated all users.
10578 (record_save): Renamed to ...
10579 (record_full_save): ... this. Updated all users.
10580 (record_reg_alloc): Renamed to ...
10581 (record_full_reg_alloc): ... this. Updated all users.
10582 (record_reg_release): Renamed to ...
10583 (record_full_reg_release): ... this. Updated all users.
10584 (record_mem_alloc): Renamed to ...
10585 (record_full_mem_alloc): ... this. Updated all users.
10586 (record_mem_release): Renamed to ...
10587 (record_full_mem_release): ... this. Updated all users.
10588 (record_end_alloc): Renamed to ...
10589 (record_full_end_alloc): ... this. Updated all users.
10590 (record_end_release): Renamed to ...
10591 (record_full_end_release): ... this. Updated all users.
10592 (record_entry_release): Renamed to ...
10593 (record_full_entry_release): ... this. Updated all users.
10594 (record_list_release): Renamed to ...
10595 (record_full_list_release): ... this. Updated all users.
10596 (record_list_release_following): Renamed to ...
10597 (record_full_list_release_following): ... this.
10599 (record_list_release_first): Renamed to ...
10600 (record_full_list_release_first): ... this. Updated all users.
10601 (record_arch_list_add): Renamed to ...
10602 (record_full_arch_list_add): ... this. Updated all users.
10603 (record_get_loc): Renamed to ...
10604 (record_full_get_loc): ... this. Updated all users.
10605 (record_check_insn_num): Renamed to ...
10606 (record_full_check_insn_num): ... this. Updated all users.
10607 (record_arch_list_cleanups): Renamed to ...
10608 (record_full_arch_list_cleanups): ... this. Updated all users.
10609 (record_message): Renamed to ...
10610 (record_full_message): ... this. Updated all users.
10611 (record_message_wrapper): Renamed to ...
10612 (record_full_message_wrapper): ... this. Updated all users.
10613 (record_message_wrapper_safe): Renamed to ...
10614 (record_full_message_wrapper_safe): ... this. Updated all users.
10615 (record_gdb_operation_disable): Renamed to ...
10616 (record_full_gdb_operation_disable): ... this. Updated all users.
10617 (record_hw_watchpoint): Renamed to ...
10618 (record_full_hw_watchpoint): ... this. Updated all users.
10619 (record_exec_insn): Renamed to ...
10620 (record_full_exec_insn): ... this. Updated all users.
10621 (record_restore): Renamed to ...
10622 (record_full_restore): ... this. Updated all users.
10623 (record_async_inferior_event_token): Renamed to ...
10624 (record_full_async_inferior_event_token): ... this.
10626 (record_async_inferior_event_handler): Renamed to ...
10627 (record_full_async_inferior_event_handler): ... this.
10629 (record_core_open_1): Renamed to ...
10630 (record_full_core_open_1): ... this. Updated all users.
10631 (record_open_1): Renamed to ...
10632 (record_full_open_1): ... this. Updated all users.
10633 (record_open): Renamed to ...
10634 (record_full_open): ... this. Updated all users.
10635 (record_close): Renamed to ...
10636 (record_full_close): ... this. Updated all users.
10637 (record_resume_step): Renamed to ...
10638 (record_full_resume_step): ... this. Updated all users.
10639 (record_resumed): Renamed to ...
10640 (record_full_resumed): ... this. Updated all users.
10641 (record_execution_dir): Renamed to ...
10642 (record_full_execution_dir): ... this. Updated all users.
10643 (record_resume): Renamed to ...
10644 (record_full_resume): ... this. Updated all users.
10645 (record_get_sig): Renamed to ...
10646 (record_full_get_sig): ... this. Updated all users.
10647 (record_sig_handler): Renamed to ...
10648 (record_full_sig_handler): ... this. Updated all users.
10649 (record_wait_cleanups): Renamed to ...
10650 (record_full_wait_cleanups): ... this. Updated all users.
10651 (record_wait_1): Renamed to ...
10652 (record_full_wait_1): ... this. Updated all users.
10653 (record_wait): Renamed to ...
10654 (record_full_wait): ... this. Updated all users.
10655 (record_stopped_by_watchpoint): Renamed to ...
10656 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10657 (record_disconnect): Renamed to ...
10658 (record_full_disconnect): ... this. Updated all users.
10659 (record_detach): Renamed to ...
10660 (record_full_detach): ... this. Updated all users.
10661 (record_mourn_inferior): Renamed to ...
10662 (record_full_mourn_inferior): ... this. Updated all users.
10663 (record_kill): Renamed to ...
10664 (record_full_kill): ... this. Updated all users.
10665 (record_stopped_data_address): Renamed to ...
10666 (record_full_stopped_data_address): ... this. Updated all users.
10667 (record_registers_change): Renamed to ...
10668 (record_full_registers_change): ... this. Updated all users.
10669 (record_store_registers): Renamed to ...
10670 (record_full_store_registers): ... this. Updated all users.
10671 (record_xfer_partial): Renamed to ...
10672 (record_full_xfer_partial): ... this. Updated all users.
10673 (record_breakpoint): Renamed to ...
10674 (record_full_breakpoint): ... this. Updated all users.
10675 (record_breakpoint_p): Renamed to ...
10676 (record_full_breakpoint_p): ... this. Updated all users.
10677 (record_breakpoints): Renamed to ...
10678 (record_full_breakpoints): ... this. Updated all users.
10679 (record_sync_record_breakpoints): Renamed to ...
10680 (record_full_sync_record_breakpoints): ... this.
10682 (record_init_record_breakpoints): Renamed to ...
10683 (record_full_init_record_breakpoints): ... this.
10685 (record_insert_breakpoint): Renamed to ...
10686 (record_full_insert_breakpoint): ... this. Updated all users.
10687 (record_remove_breakpoint): Renamed to ...
10688 (record_full_remove_breakpoint): ... this. Updated all users.
10689 (record_can_execute_reverse): Renamed to ...
10690 (record_full_can_execute_reverse): ... this. Updated all users.
10691 (record_get_bookmark): Renamed to ...
10692 (record_full_get_bookmark): ... this. Updated all users.
10693 (record_goto_bookmark): Renamed to ...
10694 (record_full_goto_bookmark): ... this. Updated all users.
10695 (record_async): Renamed to ...
10696 (record_full_async): ... this. Updated all users.
10697 (record_can_async_p): Renamed to ...
10698 (record_full_can_async_p): ... this. Updated all users.
10699 (record_is_async_p): Renamed to ...
10700 (record_full_is_async_p): ... this. Updated all users.
10701 (record_execution_direction): Renamed to ...
10702 (record_full_execution_direction): ... this. Updated all users.
10703 (record_info): Renamed to ...
10704 (record_full_info): ... this. Updated all users.
10705 (record_delete): Renamed to ...
10706 (record_full_delete): ... this. Updated all users.
10707 (record_is_replaying): Renamed to ...
10708 (record_full_is_replaying): ... this. Updated all users.
10709 (record_goto_entry): Renamed to ...
10710 (record_full_goto_entry): ... this. Updated all users.
10711 (record_goto_begin): Renamed to ...
10712 (record_full_goto_begin): ... this. Updated all users.
10713 (record_goto_end): Renamed to ...
10714 (record_full_goto_end): ... this. Updated all users.
10715 (record_goto): Renamed to ...
10716 (record_full_goto): ... this. Updated all users.
10717 (init_record_ops): Renamed to ...
10718 (init_record_full_ops): ... this. Updated all users.
10719 (record_core_resume): Renamed to ...
10720 (record_full_core_resume): ... this. Updated all users.
10721 (record_core_kill): Renamed to ...
10722 (record_full_core_kill): ... this. Updated all users.
10723 (record_core_fetch_registers): Renamed to ...
10724 (record_full_core_fetch_registers): ... this. Updated all users.
10725 (record_core_prepare_to_store): Renamed to ...
10726 (record_full_core_prepare_to_store): ... this. Updated all users.
10727 (record_core_store_registers): Renamed to ...
10728 (record_full_core_store_registers): ... this. Updated all users.
10729 (record_core_xfer_partial): Renamed to ...
10730 (record_full_core_xfer_partial): ... this. Updated all users.
10731 (record_core_insert_breakpoint): Renamed to ...
10732 (record_full_core_insert_breakpoint): ... this. Updated all users.
10733 (record_core_remove_breakpoint): Renamed to ...
10734 (record_full_core_remove_breakpoint): ... this. Updated all users.
10735 (record_core_has_execution): Renamed to ...
10736 (record_full_core_has_execution): ... this. Updated all users.
10737 (init_record_core_ops): Renamed to ...
10738 (init_record_full_core_ops): ... this. Updated all users.
10739 (cmd_record_restore): Renamed to ...
10740 (cmd_record_full_restore): ... this. Updated all users.
10741 (record_save_cleanups): Renamed to ...
10742 (record_full_save_cleanups): ... this. Updated all users.
10743 (cmd_record_start): Renamed to ...
10744 (cmd_record_full_start): ... this. Updated all users.
10745 (set_record_insn_max_num): Renamed to ...
10746 (set_record_full_insn_max_num): ... this. Updated all users.
10747 (set_record_command): Renamed to ...
10748 (set_record_full_command): ... this. Updated all users.
10749 (show_record_command): Renamed to ...
10750 (show_record_full_command): ... this. Updated all users.
10751 (_initialize_record): Renamed to ...
10752 (_initialize_record_full): ... this. Updated all users.
10754 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10756 * record.h: Split into this and ...
10757 * record-full.h: ... this.
10758 * record.c: Split into this and ...
10759 * record-full.c: ... this.
10760 * target.h (target_ops): Add new fields to_info_record,
10761 to_save_record, to_delete_record, to_record_is_replaying,
10762 to_goto_record_begin, to_goto_record_end, to_goto_record.
10763 (target_info_record): New.
10764 (target_save_record): New.
10765 (target_supports_delete_record): New.
10766 (target_delete_record): New.
10767 (target_record_is_replaying): New.
10768 (target_goto_record_begin): New.
10769 (target_goto_record_end): New.
10770 (target_goto_record): New.
10771 * target.c (target_info_record): New.
10772 (target_save_record): New.
10773 (target_supports_delete_record): New.
10774 (target_delete_record): New.
10775 (target_record_is_replaying): New.
10776 (target_goto_record_begin): New.
10777 (target_goto_record_end): New.
10778 (target_goto_record): New.
10779 * record.h: Declare struct cmd_list_element.
10780 (record_cmdlist): New declaration.
10781 (set_record_cmdlist): New declaration.
10782 (show_record_cmdlist): New declaration.
10783 (info_record_cmdlist): New declaration.
10784 (cmd_record_goto): New declaration.
10785 * record.c: Remove unnecessary includes.
10786 Include inferior.h.
10787 (cmd_record_goto): Remove declaration.
10788 (record_cmdlist): Now extern. Initialize.
10789 (set_record_cmdlist): Now extern. Initialize.
10790 (show_record_cmdlist): Now extern. Initialize.
10791 (info_record_cmdlist): Now extern. Initialize.
10792 (find_record_target): New.
10793 (require_record_target): New.
10794 (cmd_record_start): Update.
10795 (cmd_record_delete): Remove target-specific code.
10796 Call target_delete_record.
10797 (cmd_record_stop): Unpush any record target.
10798 (set_record_insn_max_num): Move to record-full.c
10799 (set_record_command): Add comment.
10800 (show_record_command): Add comment.
10801 (info_record_command): Update comment.
10802 Remove target-specific code.
10803 Call the record target's to_info_record.
10804 (cmd_record_start): New.
10805 (cmd_record_goto): Now extern.
10806 Remove target-specific code.
10807 Call target_goto_begin, target_goto_end, or target_goto.
10808 (_initialize_record): Move record target ops initialization to
10810 Change "record" command help text.
10811 Move "record restore", "record set", and "record show" commands to
10813 * Makefile.in (SFILES): Add record-full.c.
10814 (HFILES_NO_SRCDIR): Add record-full.h.
10815 (COMMON_OBS): Add record-full.o.
10816 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10817 * arm-tdep.c: Include record-full.h.
10818 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10819 * i386-tdep.c: Include record-full.h.
10820 * infrun.c: Include record-full.h.
10821 * linux-record.c: Include record-full.h.
10822 * moxie-tdep.c: Include record-full.h.
10823 * record-full.c: Include record-full.h.
10824 Change module comment.
10825 (set_record_full_cmdlist): New.
10826 (show_record_full_cmdlist): New.
10827 (record_full_cmdlist): New.
10828 (record_goto_insn): New declaration.
10829 (record_save): New declaration.
10830 (record_check_insn_num): Change query string.
10831 (record_info): New.
10832 (record_delete): New.
10833 (record_is_replaying): New.
10834 (record_goto_entry): New.
10835 (record_goto_begin): New.
10836 (record_goto_end): New.
10837 (record_goto): New.
10838 (init_record_ops): Update.
10839 (init_record_core_ops): Update.
10840 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10841 (cmd_record_start): New.
10842 (set_record_insn_max_num): Moved from record.c
10843 (set_record_full_command): New.
10844 (show_record_full_command): New.
10845 (_initialize_record_full): New.
10847 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10849 * target.h (add_deprecated_target_alias): New.
10850 * target.c (add_deprecated_target_alias): New.
10852 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10854 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10856 (linux_supports_btrace): Add kernel and
10858 (kernel_supports_btrace): New function.
10859 (cpu_supports_btrace): New function.
10860 (intel_supports_btrace): New function.
10862 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10864 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10865 * remote.c: Include btrace.h.
10866 (struct btrace_target_info): New struct.
10867 (remote_supports_btrace): New function.
10868 (send_Qbtrace): New function.
10869 (remote_enable_btrace): New function.
10870 (remote_disable_btrace): New function.
10871 (remote_teardown_btrace): New function.
10872 (remote_read_btrace): New function.
10873 (init_remote_ops): Add btrace ops.
10874 (enum <unnamed>): Add btrace packets.
10875 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10876 (_initialize_remote): Add packet configuration for branch tracing.
10878 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10880 * features/btrace.dtd: New file.
10881 * Makefile.in (XMLFILES): Add btrace.dtd.
10882 * btrace.h (parse_xml_btrace): New declaration.
10883 * btrace.c: Include xml-support.h.
10884 (parse_xml_btrace): New function.
10885 (parse_xml_btrace_block): New function.
10886 (block_attributes): New struct.
10887 (btrace_attributes): New struct.
10888 (btrace_children): New struct.
10889 (btrace_elements): New struct.
10891 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10893 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10894 (amd64_linux_enable_btrace): New.
10895 (amd64_linux_disable_btrace): New.
10896 (amd64_linux_teardown_btrace): New.
10897 (_initialize_amd64_linux_nat): Initialize btrace ops.
10898 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10899 (i386_linux_enable_btrace): New.
10900 (i386_linux_disable_btrace): New.
10901 (i386_linux_teardown_btrace): New.
10902 (_initialize_i386_linux_nat): Initialize btrace ops.
10903 * config/i386/linux.mh: Add linux-btrace.o.
10904 * config/i386/linux64.mh: Add linux-btrace.o.
10906 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10908 * common/linux_btrace.h: New file.
10909 * common/linux_btrace.c: New file.
10910 * Makefile.in (SFILES): Add btrace.c.
10911 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10912 (COMMON_OBS): Add btrace.o.
10913 (linux-btrace.o): New rule.
10915 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10917 * target.h: Include btrace.h.
10918 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10919 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10920 * target.c (target_supports_btrace): New function.
10921 (target_enable_btrace): New function.
10922 (target_disable_btrace): New function.
10923 (target_teardown_btrace): New function.
10924 (target_read_btrace): New function.
10925 * btrace.h: New file.
10926 * btrace.c: New file.
10927 * Makefile.in: Add btrace.c.
10928 * gdbthread.h: Include btrace.h.
10929 (struct thread_info): Add btrace field.
10930 * thread.c: Include btrace.h.
10931 (clear_thread_inferior_resources): Call target_teardown_btrace.
10932 * common/btrace-common.h: New file.
10934 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10936 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10937 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10938 kill_status to outer block.
10940 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10942 Fix entry-values if the callee called a noreturn function.
10943 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10944 get_frame_address_in_block. Add new comment.
10946 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10948 Fix entry-values in C++ across CUs.
10949 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10950 lookup_minimal_symbol. Add a comment.
10952 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10953 DW_AT_linkage_name.
10955 2013-03-08 Yao Qi <yao@codesourcery.com>
10957 * tracepoint.c (_initialize_tracepoint): Indent the code.
10959 2013-03-08 Pedro Alves <palves@redhat.com>
10961 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10962 (parse_find_args, find_command): Change type of pattern buffer
10963 locals to 'gdb_byte *'.
10965 2013-03-08 Stan Shebs <stan@codesourcery.com>
10966 Hafiz Abid Qadeer <abidh@codesourcery.com>
10968 * NEWS: Mention set and show trace-buffer-size commands.
10969 Mention new packet.
10970 * target.h (struct target_ops): New method
10971 to_set_trace_buffer_size.
10972 (target_set_trace_buffer_size): New macro.
10973 * target.c (update_current_target): Set up new method.
10974 * tracepoint.c (trace_buffer_size): New global.
10975 (start_tracing): Send it to the target.
10976 (set_trace_buffer_size): New function.
10977 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10978 * remote.c (remote_set_trace_buffer_size): New function.
10979 (_initialize_remote): Use it.
10980 (QTBuffer:size) New remote command.
10981 (PACKET_QTBuffer_size): New enum.
10982 (remote_protocol_features): Add an entry for
10983 PACKET_QTBuffer_size.
10985 2013-03-08 Tom Tromey <tromey@redhat.com>
10987 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10990 2013-03-07 Pedro Alves <palves@redhat.com>
10992 * target.c (target_read_stralloc, target_fileio_read_alloc):
10993 *Cast pointer to 'gdb_byte *' in target call.
10995 2013-03-07 Pedro Alves <palves@redhat.com>
10997 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11000 2013-03-07 Keith Seitz <keiths@redhat.com>
11002 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11003 (trace_pass_command): Likewise.
11004 * cli/cli-cmds.c: Include cli/cli-utils.h.
11005 (source_command): Use skip-spaces.
11006 (disassemble_command): Likewise.
11007 * findcmd.c: Include cli/cli-utils.h.
11008 (parse_find_args): Use skip_spaces.
11009 * go32-nat.c: Include cli/cli-utils.h.
11010 (go32_sldt): Use skip_spaces.
11011 (go32_sgdt): Likewise.
11012 (go32_sidt): Likewise.
11013 (go32_pde): Likewise.
11014 (go32_pte): Likewise.
11015 (go32_pte_for_address): Likewise.
11016 * infcmd.c: Include cli/cli-utils.h.
11017 (registers_info): Use skip_spaces.
11018 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11019 (linux_info_proc): Likewise.
11020 * linux-thread-db.c: Include cli/cli-utils.h.
11021 (info_auto_load_libthread_db): Use skip_spaces_const.
11022 * m32r-rom.c: Include cli/cli-utils.h.
11023 (m32r_upload_command): Use skip_spaces.
11024 * maint.c: Include cli/cli-utils.h.
11025 (maintenance_translate_address): Use skip_spaces.
11026 * mi/mi-parse.c: Include cli/cli-utils.h.
11027 (mi_parse_argv): Use skip_spaces.
11028 (mi_parse): Likewise.
11029 * minsyms.c: Include cli/cli-utils.h.
11030 (msymbol_hash_iw): Use skip_spaces_const.
11031 * objc-lang.c: Include cli/cli-utils.h.
11032 (parse_selector): Use skip_spaces.
11033 (parse_method): Likewise.
11034 * python/python.c: Include cli/cli-utils.h.
11035 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11036 (python_command)[HAVE_PYTHON]: Likewise.
11037 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11038 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11039 (m32r_load): Use skip_spaces.
11040 * serial.c: Include cli/cli-utils.h.
11041 (serial_open): Use skip_spaces_const.
11042 * stack.c: Include cli/cli-utils.h.
11043 (parse_frame_specification_1): Use skip_spaces_const.
11044 * symfile.c: Include cli/cli-utils.h.
11045 (set_ext_lang_command): Use skip_spaces.
11046 * symtab.c: Include cli/cli-utils.h.
11047 (rbreak_command): Use skip_spaces.
11048 * thread.c (thread_name_command): Use skip_spaces.
11049 * tracepoint.c (validate_actionline): Use skip_spaces.
11050 (encode_actions_1): Likewise.
11051 (trace_find_range_command): Likewise.
11052 (trace_find_outside_command): Likewise.
11053 (trace_dump_actions): Likewise.
11055 2013-03-07 Pedro Alves <palves@redhat.com>
11057 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11058 * expprint.c (print_subexp_standard): Likewise.
11059 * utils.c (host_char_to_target): Likewise.
11060 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11061 * varobj.c (value_get_print_value): Change type of local to char*.
11062 Cast it gdb_byte * in call to language printer.
11064 2013-03-07 Pedro Alves <palves@redhat.com>
11066 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11068 (make_wchar_iterator): Remove cast to char*.
11069 (wchar_iterate): Change type of local.
11071 2013-03-07 Pedro Alves <palves@redhat.com>
11073 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11074 for 'regcache->register_status'.
11076 2013-03-07 Pedro Alves <palves@redhat.com>
11078 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11081 2013-03-07 Pedro Alves <palves@redhat.com>
11083 * stap-probe.c (handle_stap_probe): Add cast to char*.
11085 2013-03-07 Pedro Alves <palves@redhat.com>
11087 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11088 RECORD_MSGRCV>: Pass a signed variable to
11089 regcache_raw_read_signed, instead of an unsigned one.
11091 2013-03-07 Pedro Alves <palves@redhat.com>
11093 * remote-notif.c (notif_debug): Change type to int.
11094 * remote-notif.h (notif_debug): Likewise.
11096 2013-03-07 Pedro Alves <palves@redhat.com>
11098 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11100 2013-03-07 Pedro Alves <palves@redhat.com>
11102 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11103 * remote.h (hex2bin, bin2hex): ... here.
11104 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11106 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11108 * utils.c (initialize_utils): Improve doc strings of "set/show
11109 width", "set/show height", and "set/show pagination".
11111 2013-03-06 Keith Seitz <keiths@redhat.com>
11113 * ax-gdb.c (gen_printf): Make FORMAT const.
11114 * ax-gdb.h (gen_printf): Likewise.
11115 * ax-general.c (ax_string): Make STR const.
11116 * ax.h (ax_string): Likewise.
11118 2013-03-06 Doug Evans <dje@google.com>
11120 * elfread.c (elf_symfile_read): Move debugging printf to more
11123 2013-03-06 Pedro Alves <palves@redhat.com>
11125 * python/py-utils.c (target_string_to_unicode): Delete function.
11126 * python/python-internal.h (target_string_to_unicode): Delete
11129 2013-03-06 Pierre Muller <muller@sourceware.org>
11131 * linespec.c (get_current_search_block): ARI fix, use (void)
11132 for empty parameter list.
11134 2013-03-05 Doug Evans <dje@google.com>
11136 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11137 of old ada_lookup_symbol_list. In !full_search case, don't
11138 search superblocks.
11139 (ada_lookup_symbol_list): Delete arg full_search, all callers
11140 updated. Call ada_lookup_symbol_list_worker.
11141 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11142 * ada-lang.h (ada_lookup_symbol_list): Update.
11143 * language.h (language_defn): Update comment for
11144 la_iterate_over_symbols.
11145 * linespec.c (iterate_over_file_blocks): New function.
11146 (iterate_over_all_matching_symtabs): Call it.
11147 (lookup_prefix_sym): Ditto.
11148 (get_current_search_block): New function.
11149 (get_search_block): Delete.
11150 (find_label_symbols): Call get_current_search_block.
11151 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11152 * symtab.c (iterate_over_symbols): Don't search superblocks.
11154 2013-03-05 Yao Qi <yao@codesourcery.com>
11156 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11157 parameter VAR's type from "unsigned int" to "int".
11158 * command.h (var_zuinteger_unlimited): Update its comments.
11159 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11161 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11163 * NEWS: Mention new target x86_64-*-cygwin*.
11165 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11167 * configure.host: Add x86_64-*-cygwin* as host.
11168 * configure.tgt: Add x86_64-*-cygwin* as target.
11169 * config/i386/cygwin64.mh: New file.
11171 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11173 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11175 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11177 * linespec.c (struct linespec_canonical_name): New.
11178 (struct linespec_state): Change canonical_names type to it.
11179 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11180 xrealloc element size. Initialize the different CANONICAL fields.
11181 (canonical_to_fullform): New.
11182 (filter_results): Use it. Add variables canonical, fullform and
11184 (struct decode_line_2_item, decode_line_2_compare_items): New.
11185 (decode_line_2): Remove variables iter and item_names, add variables
11186 items and items_count. Modify the code for these new variables.
11188 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11190 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11191 calling do_cleanup.
11193 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11195 * tracepoint.c (build_traceframe_info): Add code for byte order.
11197 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11199 * v850-tdep.c: (v850e2_register_name): Revise system register
11200 names to match current V850E2M architecture specifications.
11201 Update register number enum comments too.
11203 2013-03-01 Jiong Wang <jiwang@tilera.com>
11204 Pedro Alves <palves@redhat.com>
11206 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11208 (tilegx_skip_prologue): Limit prologue analysis to section end.
11210 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11212 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11215 2013-03-01 Pedro Alves <palves@redhat.com>
11217 Use gdb_byte for bytes from the program being debugged.
11219 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11220 Change type of local 'buf' to gdb_byte.
11221 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11222 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11223 * cris-tdep.c (cris_sigcontext_addr)
11224 (cris_sigtramp_frame_unwind_cache): Likewise.
11225 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11226 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11228 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11229 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11230 (hppa32_hpux_search_dummy_call_sequence)
11231 (hppa_hpux_supply_save_state): Likewise.
11232 * hppa-linux-tdep.c (insns_match_pattern)
11233 (hppa_linux_find_global_pointer): Likewise.
11234 * hppa-tdep.c (hppa_in_function_epilogue_p)
11235 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11236 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11237 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11238 (i386fbsd_collect_uthread): Likewise.
11239 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11240 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11241 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11242 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11243 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11244 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11245 (ia64_libunwind_frame_prev_register)
11246 (ia64_libunwind_sigtramp_frame_this_id)
11247 (ia64_find_global_pointer_from_dynamic_section)
11248 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11249 (ia64_unwind_pc): Likewise.
11250 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11251 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11252 (m68hc11_extract_return_value): Likewise.
11253 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11254 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11255 (mep_get_insn, mep_push_dummy_call): Likewise.
11256 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11257 (mips_linux_in_dynsym_stub): Likewise.
11258 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11259 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11260 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11262 * remote-mips.c (mips_set_register): Likewise.
11263 * remote-sim.c (gdbsim_fetch_register): Likewise.
11264 * score-tdep.c (score7_fetch_inst): Change type of parameter
11265 'memblock' and local 'buf' to gdb_byte.
11266 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11267 Change type of local 'buf' to gdb_byte. Adjust.
11268 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11270 (score7_analyze_prologue): Change type of 'memblock' and
11271 'memblock_ptr' locals to gdb_byte*.
11272 * sh64-tdep.c (sh64_extract_return_value)
11273 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11274 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11275 * solib-pa64.c (pa64_solib_create_inferior_hook)
11276 (pa64_open_symbol_file_object): Remove local 'buf'.
11277 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11278 (som_open_symbol_file_object): Likewise.
11279 * solib-spu.c (spu_current_sos): Likewise.
11280 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11281 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11282 (spu_store_registers): Likewise.
11283 * target.c (debug_print_register): Likewise.
11284 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11285 * xstormy16-tdep.c (xstormy16_store_return_value)
11286 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11287 (xstormy16_find_jmp_table_entry): Likewise.
11289 2013-03-01 Jiong Wang <jiwang@tilera.com>
11291 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11292 (tilegx_gdbarch_init): Install it.
11294 2013-02-28 Tom Tromey <tromey@redhat.com>
11296 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11299 2013-02-28 Doug Evans <dje@google.com>
11301 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11302 * python/python.c (gdbpy_find_pc_line): Ditto.
11304 2013-02-28 Tom Tromey <tromey@redhat.com>
11306 * contrib/excheck.py: New file.
11307 * contrib/exsummary.py: New file.
11308 * contrib/gcc-with-excheck: New file.
11310 2013-02-28 Tom Tromey <tromey@redhat.com>
11312 * python/python.c (gdbpy_print_stack): Call begin_line and
11313 fprintf_filtered inside TRY_CATCH.
11315 2013-02-28 Tom Tromey <tromey@redhat.com>
11317 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11320 2013-02-28 Tom Tromey <tromey@redhat.com>
11322 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11323 frame_object_to_frame_info inside TRY_CATCH.
11325 2013-02-28 Tom Tromey <tromey@redhat.com>
11327 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11330 2013-02-28 Tom Tromey <tromey@redhat.com>
11332 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11334 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11336 * windows-nat.c: Throughout, fix format strings and casts of
11337 printf-like functions to avoid type related warnings on all
11339 (handle_output_debug_string): Fetch context information address
11340 from debug string using string_to_core_addr.
11342 2013-02-27 Jiong Wang <jiwang@tilera.com>
11344 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11345 * regformats/reg-tilegx32.dat: New.
11347 2013-02-27 Jiong Wang <jiwang@tilera.com>
11349 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11351 2013-02-27 Jiong Wang <jiwang@tilera.com>
11353 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11355 2013-02-27 Yao Qi <yao@codesourcery.com>
11356 Pedro Alves <palves@redhat.com>
11358 * tracepoint.c (tfile_trace_find): For tfind
11359 pc/tp/range/outside, look for the next trace frame instead of
11360 always starting from frame 0.
11362 2013-02-26 Anthony Green <green@moxielogic.com>
11364 * configure.tgt: Add support for moxie-*-rtems* target.
11366 2013-02-25 Pedro Alves <palves@redhat.com>
11368 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11371 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11373 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11374 if $fp is used as the virtual frame pointer.
11376 2013-02-23 Alan Modra <amodra@gmail.com>
11378 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11380 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11381 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11382 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11383 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11385 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11388 * elfread.c (build_id_bfd_get): Make the return type const.
11389 (build_id_verify): Make the check parameter const.
11390 (build_id_to_debug_filename): Make the build_id parameter and variable
11392 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11394 2013-02-21 Alan Modra <amodra@gmail.com>
11396 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11398 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11400 Add a new method 'disassemble' to gdb.Architecture class.
11401 * python/py-arch.c (archpy_disassmble): Implementation of the
11402 new method gdb.Architecture.disassemble.
11403 (arch_object_methods): Add entry for the new method.
11405 2013-02-20 Jiong Wang <jiwang@tilera.com>
11407 * MAINTAINERS (Write After Approval): Add myself to the list.
11409 2013-02-19 Pedro Alves <palves@redhat.com>
11411 Garbage collect 'struct monitor_ops'::load_routine.
11413 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11414 * monitor.c (monitor_load): No longer call
11415 current_monitor->load_routine.
11416 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11417 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11418 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11420 2013-02-19 Pedro Alves <palves@redhat.com>
11424 Harmonize with generic_load.
11426 * monitor.c: Include "readline/readline.h".
11427 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11428 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11429 long/strtol for the 'load_offset' local. Error out if no argument
11430 is given or if too many arguments are given. Tilde expand the
11431 passed in file name.
11433 2013-02-19 Kai Tietz <ktietz@redhat.com>
11436 * symfile.c (load_section_data): Change type of load_offset
11438 (generic_load): User strtoulst instead of strtoul for conversion
11441 2013-02-19 Jiong Wang <jiwang@tilera.com>
11443 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11444 for return address, "lr" register, saved on stack.
11445 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11446 after we invoke tilegx_analyze_prologue.
11448 2013-02-19 Jiong Wang <jiwang@tilera.com>
11450 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11452 2013-02-19 Jiong Wang <jiwang@tilera.com>
11454 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11456 2013-02-19 Jiong Wang <jiwang@tilera.com>
11458 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11459 (tilegx_write_pc): New function.
11460 (tilegx_cannot_reference_register): Return zero if REGNO
11461 is TILEGX_FAULTNUM_REGNUM.
11462 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11463 (tilegx_register_name): Add handling of "faultnum" register.
11464 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11465 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11466 handling of TILEGX_FAULTNUM_REGNUM.
11467 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11469 2013-02-19 Jiong Wang <jiwang@tilera.com>
11471 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11472 should be aligned to 64bit.
11474 2013-02-19 Kai Tietz <ktietz@redhat.com>
11476 * windows-nat.c (windows_xfer_memory): Fix debug-output
11479 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11481 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11482 Don't check DSP register number if HAVE_DSP is not set.
11484 2013-02-19 Alan Modra <amodra@gmail.com>
11486 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11487 throughout file instead.
11488 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11489 Don't xmalloc return value.
11490 (build_id_verify): Similarly. Don't xfree.
11491 (build_id_to_debug_filename): Update.
11492 (find_separate_debug_file_by_buildid): Update, don't xfree.
11494 2013-02-18 Tom Tromey <tromey@redhat.com>
11497 * dwarf2read.c (read_subrange_type): Use result of
11500 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11502 * frame.c: Remove one extra white space after #include
11505 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11507 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11509 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11511 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11512 and dir commands into an if block.
11514 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11516 * python/py-breakpoint (struct pybp_code): Use int instead of
11519 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11520 Hafiz Abid Qadeer <abidh@codesourcery.com>
11522 * NEWS: Mention new field "trace-file".
11523 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11524 (tfile_open): Record the trace file's filename in the trace
11526 (tfile_files_info): Mention the name of the trace file.
11527 Check the "filename" field explicitely.
11528 (trace_status_command): Explicitely check "filename" field.
11529 (trace_find_command): Ditto.
11530 (trace_find_pc_command): Ditto.
11531 (trace_find_tracepoint_command): Ditto.
11532 (trace_find_line_command): Ditto.
11533 (trace_find_range_command): Ditto.
11534 (trace_find_outside_command): Ditto.
11535 * tracepoint.h (struct trace_status) <from_file>: Rename it
11536 to "filename" and make it hold the trace file's filename
11537 instead of a boolean.
11538 * remote.c (remote_get_trace_status): Initialize "filename"
11539 field with NULL instead of 0.
11541 2013-02-15 Yao Qi <yao@codesourcery.com>
11543 * remote.c: Fix a typo.
11545 2013-02-14 Pierre Muller <muller@sourceware.org>
11547 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11549 2013-02-14 Pedro Alves <palves@redhat.com>
11551 * utils.c (savestring): Don't #undef it. Move function to
11552 common/common-utils.c.
11553 * common/common-utils.c: Include gdb_string.h.
11554 (savestring): Move here from utils.c.
11555 * common/common-utils.h (savestring): Declare.
11557 2013-02-14 Pedro Alves <palves@redhat.com>
11559 * utils.c (savestring): Rename parameter 'size' to 'len'.
11561 2013-02-14 Pedro Alves <palves@redhat.com>
11562 Yufeng Zhang <yufeng.zhang@arm.com>
11564 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11565 (aarch64_inferior_data, struct aarch64_inferior_data):
11567 (struct aarch64_process_info): New.
11568 (aarch64_process_list): New global.
11569 (aarch64_find_process_pid, aarch64_add_process)
11570 (aarch64_process_info_get): New functions.
11571 (aarch64_inferior_data_get): Delete.
11572 (aarch64_process_info_get): New function.
11573 (aarch64_forget_process): New function.
11574 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11575 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11576 aarch64_get_debug_reg_state.
11577 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11578 instead of linux_nat_iterate_watchpoint_lwps.
11579 (aarch64_linux_new_fork): New function.
11580 (aarch64_linux_child_post_startup_inferior): Use
11581 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11582 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11583 (aarch64_linux_remove_hw_breakpoint)
11584 (aarch64_handle_aligned_watchpoint)
11585 (aarch64_handle_unaligned_watchpoint)
11586 (aarch64_linux_insert_watchpoint)
11587 (aarch64_linux_remove_watchpoint)
11588 (aarch64_linux_stopped_data_address): Adjust to pass the current
11589 process id to aarch64_debug_reg_state.
11590 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11591 linux_nat_new_fork hook, and aarch64_forget_process as
11592 linux_nat_forget_process hook; remove the call to
11593 register_inferior_data_with_cleanup.
11595 2013-02-14 Pedro Alves <palves@redhat.com>
11597 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11598 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11601 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11602 Hafiz Abid Qadeer <abidh@codesourcery.com>
11604 * tracepoint.h (validate_trace_state_variable_name): Declare.
11605 * tracepoint.c (validate_trace_state_variable_name): New.
11606 (trace_variable_command): Parse the trace state variable's name
11607 without using parse_expression. Do several validations.
11608 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11609 trace state variable's name with parse_expression. Validate it.
11611 2013-02-14 Yao Qi <yao@codesourcery.com>
11613 * infcmd.c (breakpoint_proceeded): Remove it.
11615 2013-02-14 Yao Qi <yao@codesourcery.com>
11617 * tracepoint.c (end_actions_pseudocommand): Make it static.
11618 (while_stepping_pseudocommand): Likewise.
11619 * tracepoint.h (end_actions_pseudocommand): Remove the
11621 (while_stepping_pseudocommand): Likewise.
11623 2013-02-14 Yao Qi <yao@codesourcery.com>
11625 * cli/cli-decode.c (help_cmd): Remove the declaration of
11627 (help_all): Likewise.
11629 2013-02-13 Pedro Alves <palves@redhat.com>
11631 * amd64-linux-nat.c (update_debug_registers_callback):
11633 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11635 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11636 i386_debug_reg_state.
11637 (amd64_linux_new_fork): New function.
11638 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11639 linux_nat_new_fork hook, and i386_forget_process as
11640 linux_nat_forget_process hook.
11641 * i386-linux-nat.c (update_debug_registers_callback):
11643 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11645 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11646 i386_debug_reg_state.
11647 (i386_linux_new_fork): New function.
11648 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11649 linux_nat_new_fork hook, and i386_forget_process as
11650 linux_nat_forget_process hook.
11651 * i386-nat.c (i386_init_dregs): Delete.
11652 (i386_inferior_data, struct i386_inferior_data):
11654 (struct i386_process_info): New.
11655 (i386_process_list): New global.
11656 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11658 (i386_inferior_data_get): Delete.
11659 (i386_process_info_get): New function.
11660 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11661 (i386_forget_process): New function.
11662 (i386_cleanup_dregs): Rewrite.
11663 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11664 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11665 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11666 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11667 to i386_debug_reg_state.
11668 (i386_use_watchpoints): Don't register inferior data.
11669 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11671 (i386_forget_process): Declare.
11672 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11673 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11674 New static globals.
11675 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11676 (add_initial_lwp): New, factored out from ...
11677 (add_lwp): ... this. Don't check the number of lwps before
11678 calling linux_nat_new_thread.
11679 (linux_nat_iterate_watchpoint_lwps): Delete.
11680 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11681 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11683 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11685 (linux_nat_kill, linux_nat_mourn_inferior): Call
11686 linux_nat_forget_process.
11687 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11688 (linux_nat_forget_process): New functions.
11689 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11691 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11692 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11694 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11695 (linux_nat_forget_process): New declarations.
11697 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11698 (amd64fbsd_mourn_inferior): New function.
11699 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11700 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11702 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11704 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11707 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11709 * aarch64-linux-nat.c (debug_reg_change_callback)
11710 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11713 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11715 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11718 2013-02-13 Pedro Alves <palves@redhat.com>
11719 Hafiz Abid Qadeer <abidh@codesourcery.com>
11721 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11723 2013-02-12 Tom Tromey <tromey@redhat.com>
11726 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11728 (classify_inner_name): Remove 'first_name' argument, add
11729 'context'. Remove unused variable.
11730 (yylex): Explicitly maintain the context type. Exit loop earlier
11731 if NAME result is seen.
11733 2013-02-12 Pedro Alves <palves@redhat.com>
11735 * amd64-darwin-tdep.c: Add (C) after Copyright.
11736 * cli/cli-cmds.h: Ditto.
11737 * cli/cli-decode.c: Ditto.
11738 * cli/cli-decode.h: Ditto.
11739 * cli/cli-dump.c: Ditto.
11740 * cli/cli-dump.h: Ditto.
11741 * cli/cli-interp.c: Ditto.
11742 * cli/cli-logging.c: Ditto.
11743 * cli/cli-script.c: Ditto.
11744 * cli/cli-script.h: Ditto.
11745 * cli/cli-setshow.c: Ditto.
11746 * cli/cli-setshow.h: Ditto.
11747 * cli/cli-utils.c: Ditto.
11748 * cli/cli-utils.h: Ditto.
11749 * config/alpha/nm-osf3.h: Ditto.
11750 * config/djgpp/djconfig.sh: Ditto.
11751 * config/i386/nm-fbsd.h: Ditto.
11752 * config/i386/nm-i386gnu.h: Ditto.
11753 * config/nm-linux.h: Ditto.
11754 * config/nm-nto.h: Ditto.
11755 * config/rs6000/nm-rs6000.h: Ditto.
11756 * config/sparc/nm-sol2.h: Ditto.
11757 * darwin-nat-info.c: Ditto.
11760 * gdb-demangle.h: Ditto.
11761 * i386-darwin-nat.c: Ditto.
11762 * i386-darwin-tdep.c: Ditto.
11763 * linux-fork.h: Ditto.
11764 * m32c-tdep.c: Ditto.
11765 * microblaze-linux-tdep.c: Ditto.
11766 * microblaze-rom.c: Ditto.
11767 * microblaze-tdep.c: Ditto.
11768 * microblaze-tdep.h: Ditto.
11769 * mips-linux-tdep.h: Ditto.
11770 * ppc-ravenscar-thread.c: Ditto.
11771 * ppc-ravenscar-thread.h: Ditto.
11772 * prologue-value.c: Ditto.
11773 * prologue-value.h: Ditto.
11774 * ravenscar-thread.c: Ditto.
11775 * ravenscar-thread.h: Ditto.
11776 * sparc-ravenscar-thread.c: Ditto.
11777 * sparc-ravenscar-thread.h: Ditto.
11778 * tilegx-linux-tdep.c: Ditto.
11779 * unwind_stop_reasons.def: Ditto.
11780 * windows-nat.h: Ditto.
11781 * xtensa-linux-tdep.c: Ditto.
11782 * xtensa-xtregs.c: Ditto.
11783 * regformats/regdat.sh: Ditto.
11784 * regformats/regdef.h: Ditto.
11786 2013-02-12 Pedro Alves <palves@redhat.com>
11788 * break-catch-sig.c: Update copyright years.
11790 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11792 Add support for a destructor for ui_out data and use it to
11793 provide a ui_out destructor.
11794 * ui-out.h: Declare the new ui_out destructor.
11795 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11796 * ui-out.c (default_data_destroy): Add a default data destructor
11797 which does nothing.
11798 (default_ui_out_impl): Set the new data_destroy field to
11799 default_data_destroy
11800 (uo_data_destroy): Local function which invokes the data
11801 destructor if present.
11802 (clear_table): Local function which clears the table data of a
11804 (ui_out_destroy): Public function which frees a ui_out object.
11805 (ui_out_table_end): Use the new clear_table function.
11806 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11808 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11811 2013-02-11 Doug Evans <dje@google.com>
11813 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11814 (printf_decfloat): New function. Broken out from ui_printf.
11815 Remove unnecessary code to shift the entire format string down.
11816 (printf_pointer): New function.
11817 (ui_printf): Code to print C strings, wide C strings, decfloats,
11818 and pointers moved to separate functions.
11820 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11822 * valops.c (value_assign): Handling bitfield offset in
11823 `lval_internalvar_component' case.
11825 2013-02-08 Doug Evans <dje@google.com>
11827 * common/format.c (parse_format_string): Fix whitespace.
11829 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11831 * stack.c (return_command): Work around uninitialized variable
11834 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11836 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11837 number of the registers from 36 to 34.
11839 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11841 * NEWS: Mention new AArch64 native and target support.
11843 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11845 * MAINTAINERS (Write After Approval): Add myself.
11847 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11848 Marcus Shawcroft <marcus.shawcroft@arm.com>
11849 Nigel Stephens <nigel.stephens@arm.com>
11850 Yufeng Zhang <yufeng.zhang@arm.com>
11852 * aarch64-linux-nat.c: New file.
11853 * config/aarch64/linux.mh: New file.
11854 * configure.host: Add AArch64.
11855 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11857 2013-02-07 Doug Evans <dje@google.com>
11859 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11860 disassemble command.
11862 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11864 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11865 set_gdbarch_fetch_tls_load_module_address.
11867 2013-02-06 David S. Miller <davem@davemloft.net>
11869 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11870 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11871 * value.c (struct_return_convention): New function.
11872 (using_struct_return): Implement in terms of struct_return_convention.
11873 * value.h (struct_return_convention): Declare.
11874 * stack.c (return_command): Allow successful overriding of the return
11875 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11877 2013-02-06 Tom Tromey <tromey@redhat.com>
11879 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11880 outside of TRY_CATCH.
11882 2013-02-06 Yao Qi <yao@codesourcery.com>
11884 * mi/mi-interp.c: Include "tracepoint.h".
11885 (mi_tsv_modified): Declare.
11886 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11887 (mi_interpreter_init): Call observer_attach_tsv_modified.
11888 (mi_tsv_modified): New.
11889 (mi_tsv_created, mi_tsv_deleted): Update.
11890 * tracepoint.c (trace_variable_command): Call
11891 observer_notify_tsv_modified if the initial value of tsv is
11893 (delete_trace_state_variable): Call
11894 observer_notify_tsv_deleted earlier.
11895 (trace_variable_command): Caller update.
11896 (create_tsv_from_upload): Likewise.
11897 * observer.sh: Declare "struct trace_state_variable".
11899 * NEWS: Mention the new MI notification "=tsv-modified".
11901 2013-02-05 Doug Evans <dje@google.com>
11903 * completer.c (location_completer): Fix typo in comment.
11905 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11907 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11910 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11912 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11913 Refactor if statement to avoid trailing || operator.
11915 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11917 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11919 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11921 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11922 * configure.host: Add powerpc*-*-freebsd* target.
11923 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11924 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11925 * config/powerpc/fbsd.mh: New file.
11927 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11928 Denys Vlasenko <dvlasenk@redhat.com>
11929 Pedro Alves <palves@redhat.com>
11931 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11932 (struct elf_internal_linux_prpsinfo): Forward declare.
11933 * gdbarch.h, gdbarch.c: Regenerate.
11934 * linux-tdep.c: Include `cli/cli-utils.h'.
11935 (linux_fill_prpsinfo): New function.
11936 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11937 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11938 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11939 depending on gdbarch pointer bitness.
11940 * ppc-linux-tdep.c: Include elf-bfd.h.
11941 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11944 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11945 Marcus Shawcroft <marcus.shawcroft@arm.com>
11946 Nigel Stephens <nigel.stephens@arm.com>
11947 Yufeng Zhang <yufeng.zhang@arm.com>
11949 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11951 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11952 Marcus Shawcroft <marcus.shawcroft@arm.com>
11953 Nigel Stephens <nigel.stephens@arm.com>
11954 Yufeng Zhang <yufeng.zhang@arm.com>
11956 * aarch64-newlib-tdep.c: New file.
11957 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11959 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11960 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11961 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11962 * osabi.c (gdb_osabi_names): Add "Newlib".
11964 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11965 Marcus Shawcroft <marcus.shawcroft@arm.com>
11966 Nigel Stephens <nigel.stephens@arm.com>
11967 Yufeng Zhang <yufeng.zhang@arm.com>
11969 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11970 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11971 * aarch64-linux-tdep.c: New file.
11972 * aarch64-linux-tdep.h: New file.
11973 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11974 * configure.tgt: Add aarch64-none-linux-gnu.
11976 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11977 Marcus Shawcroft <marcus.shawcroft@arm.com>
11978 Nigel Stephens <nigel.stephens@arm.com>
11979 Yufeng Zhang <yufeng.zhang@arm.com>
11981 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11982 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11983 (ALLDEPFILES): Add aarch64-tdep.c.
11984 * aarch64-tdep.c: New file.
11985 * aarch64-tdep.h: New file.
11986 * configure.tgt: Add AArch64.
11987 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11988 (aarch64-expedite): New definition.
11989 * features/aarch64-core.xml: New file.
11990 * features/aarch64-fpu.xml: New file.
11991 * features/aarch64-without-fpu.c: New file (generated).
11992 * features/aarch64-without-fpu.xml: New file.
11993 * features/aarch64.c: New file (generated).
11994 * features/aarch64.xml: New file.
11995 * regformats/aarch64-without-fpu.dat: New file (generated).
11996 * regformats/aarch64.dat: New file (generated).
11998 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12000 * contrib/expect-read1.c: New file.
12001 * contrib/expect-read1.sh: New file.
12003 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12005 * dwarf2read.c (file_file_name): New function with code from
12007 (file_full_name): Move most of the code to file_file_name.
12008 (macro_start_file): Rename variable full_name to file_name and use
12009 file_file_name for it. Add comp_dir parameter to new_macro_table.
12010 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12011 macro_source_file->filename access by macro_source_fullname call.
12012 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12014 * macrotab.c (struct macro_table): New field comp_dir.
12015 (macro_include): New variables link_fullname and source_fullname.
12016 Replace any macro_source_file->filename access by macro_source_fullname
12018 (macro_lookup_inclusion): Remove the partial filenames checking code.
12019 (check_for_redefinition): New variables source_fullname and
12020 found_key_fullname. Replace any macro_source_file->filename access by
12021 macro_source_fullname call.
12022 (macro_undef): New variables source_fullname and key_fullname. Replace
12023 any macro_source_file->filename access by macro_source_fullname call.
12024 (macro_lookup_definition): New variables retval and source_fullname.
12025 Replace any macro_source_file->filename access by macro_source_fullname
12027 (foreach_macro): New variable key_fullname. Replace any
12028 macro_source_file->filename access by macro_source_fullname call.
12029 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12030 macro_source_file->filename access by macro_source_fullname call.
12031 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12032 (macro_source_fullname): New function.
12033 * macrotab.h (struct macro_source_file): Extent the filename field
12035 (new_macro_table): New parameter comp_dir, add a comment for it.
12036 (macro_source_fullname): new declaration.
12038 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12040 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12041 this_real_name to outer block. Use it also for
12042 compare_filenames_for_search.
12043 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12044 with dw2_get_real_path for file_matcher, considering also
12045 BASENAMES_MAY_DIFFER.
12046 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12048 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12050 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12051 to the file_matcher parameter. Pass 0 to it.
12052 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12053 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12054 NULL psymtab_to_fullname result.
12055 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12056 an expected filename instead.
12057 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12058 file_matcher parameter. Call also psymtab_to_fullname, after newly
12059 considering BASENAMES_MAY_DIFFER.
12060 * source.c (rewrite_source_path): Remove static.
12061 * source.h (rewrite_source_path): New declaration.
12062 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12063 the expand_symtabs_matching field. Comment it.
12064 * symtab.c (file_matches): New function comment. Add parameter
12065 basenames, implement it.
12066 (search_symbols_file_matches): Add basenames parameter. Update the
12067 file_matches caller.
12068 (search_symbols): Match FILES also against symtab_to_fullname.
12069 Optimize it for BASENAMES_MAY_DIFFER.
12071 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12073 * source.c (print_source_lines_base): Print for TUI also "fullname".
12074 * tui/tui-data.c (init_content_element): Change tui_locator_element
12075 field to full_name.
12076 * tui/tui-data.h (struct tui_locator_element): Likewise.
12077 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12078 tui_update_locator_filename calls to tui_update_locator_fullname.
12079 Replace symtab->filename refererence by symtab_to_fullname call.
12080 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12081 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12082 field to full_name. Replace symtab->filename refererence by
12083 symtab_to_fullname call.
12084 (tui_show_symtab_source): Rename parameter to fullname. Change
12085 tui_locator_element field to full_name.
12086 * tui/tui-stack.c: Include source.h.
12087 (tui_set_locator_filename): Rename the declaration to ...
12088 (tui_set_locator_fullname): ... here. Rename its parameter to
12089 fullname, updates its comment.
12090 (tui_set_locator_info): Rename its parameter to fullname.
12091 (tui_set_locator_filename): Rename the definition to ...
12092 (tui_set_locator_fullname): ... here. Rename its parameter to
12093 fullname, updates its comment. Change tui_locator_element field to
12095 (tui_set_locator_info): Rename its parameter to fullname.
12096 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12097 (tui_update_locator_filename): Rename to ...
12098 (tui_update_locator_fullname): ... here. Rename callee to
12099 tui_set_locator_fullname.
12100 (tui_show_frame_info): Replace symtab->filename refererence by
12101 symtab_to_fullname call.
12102 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12103 (tui_update_locator_fullname): ... here.
12104 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12105 tui_update_locator_fullname. Replace symtab->filename refererence by
12106 symtab_to_fullname call.
12107 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12108 Rename the callee to tui_update_locator_fullname.
12109 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12111 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12113 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12114 by symtab_to_filename_for_display calls.
12115 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12116 (clear_command): New variable sal_fullname, initialize it. Replace
12117 compare_filenames_for_search by filename_cmp with sal_fullname.
12118 (say_where, update_static_tracepoint): Replace symtab->filename
12119 refererences by symtab_to_filename_for_display calls.
12120 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12122 * dwarf2read.c: Include source.h.
12123 (fixup_go_packaging): Replace symtab->filename refererences by
12124 symtab_to_filename_for_display calls.
12125 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12126 Replace symtab->filename refererences by symtab_to_filename_for_display
12128 (create_sals_line_offset, convert_linespec_to_sals): New variable
12129 fullname, initialize it, replace symtab->filename reference by the
12131 * linux-fork.c: Include source.h.
12132 (info_checkpoints_command): Replace symtab->filename refererences by
12133 symtab_to_filename_for_display calls.
12134 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12135 by symtab_to_filename_for_display calls.
12136 * mdebugread.c: Include source.h.
12137 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12138 symtab_to_filename_for_display calls.
12139 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12140 (mi_cmd_file_list_exec_source_files): Likewise.
12141 * printcmd.c: Include source.h.
12142 (build_address_symbolic): Replace symtab->filename refererences by
12143 symtab_to_filename_for_display calls.
12144 * psymtab.c (partial_map_symtabs_matching_filename)
12145 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12146 with psymtab_to_fullname.
12147 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12148 by symtab_to_filename_for_display calls.
12149 (stpy_get_filename): New variable filename, initialize it, use instead
12150 of symtab->filename refererences.
12151 (salpy_str): Make variable filename const char *. Replace
12152 symtab->filename refererences by symtab_to_filename_for_display calls.
12153 * skip.c: Include source.h and filenames.h.
12154 (skip_file_command): Remove const from the symtab variable. Replace
12155 symtab->filename refererences by symtab_to_fullname call.
12156 (function_name_is_marked_for_skip): New variables searched_for_fullname
12157 and fullname. Use them to search also with symtab's fullname.
12158 * source.c (find_source_lines): Replace symtab->filename refererences
12159 by symtab_to_filename_for_display calls.
12160 (print_source_lines_base): New variable filename, use it instead of
12161 symtab->filename. Replace symtab->filename refererences by
12162 symtab_to_filename_for_display calls.
12163 (line_info, forward_search_command): Replace symtab->filename
12164 refererences by symtab_to_filename_for_display calls.
12165 (reverse_search_command): Replace symtab->filename refererences by
12166 symtab_to_filename_for_display calls. New variable filename for it.
12167 * stack.c (frame_info): Likewise.
12168 * symmisc.c: Include source.h.
12169 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12170 (maintenance_info_symtabs): Replace symtab->filename refererences by
12171 symtab_to_filename_for_display calls.
12172 * symtab.c (iterate_over_some_symtabs): Call
12173 compare_filenames_for_search also with symtab_to_fullname.
12174 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12175 symtab->filename refererences by symtab_to_filename_for_display calls.
12176 (find_line_symtab): Replace symtab->filename refererences by
12177 symtab_to_filename_for_display calls.
12178 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12179 (print_symbol_info): Make the last parameter const char *. New
12180 variable s_filename. Use it in the function.
12181 (symtab_symbol_info): Make the last_filename variable const char *.
12182 Replace symtab->filename refererences by symtab_to_filename_for_display
12184 (rbreak_command): New variable fullname. Use it. Replace
12185 symtab->filename refererence by symtab_to_filename_for_display call.
12186 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12187 (print_one_static_tracepoint_marker): Replace symtab->filename
12188 refererences by symtab_to_filename_for_display calls.
12189 * tui/tui-source.c (tui_set_source_content): New variables filename and
12190 s_filename. Replace symtab->filename refererences by this variable.
12191 Replace other symtab->filename refererences by
12192 symtab_to_filename_for_display calls.
12194 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12195 Jan Kratochvil <jan.kratochvil@redhat.com>
12197 Add a new variable that controls a way in which filenames are
12199 * NEWS (set filename-display): New entry.
12200 * source.c (filename_display_basename, filename_display_relative)
12201 (filename_display_absolute, filename_display_kind_names)
12202 (filename_display_string, show_filename_display_string)
12203 (symtab_to_filename_for_display): New.
12204 (_initialize_source): Added initialization of 'filename-display'
12206 * source.h (symtab_to_filename_for_display): Added declaration.
12207 * stack.c (print_frame): Added new variable and calling of a new
12208 function and condition with this variable. Changed third argument of
12209 calling of a function.
12211 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12213 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12214 Rename field reference filename to fullname.
12215 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12216 fullname. New comment for it.
12217 * tui/tui-source.c (tui_set_source_content): Rename field reference
12218 filename to fullname. Initialize field by symtab_to_fullname now.
12219 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12220 reference filename to fullname. Use symtab_to_fullname during
12223 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12226 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12227 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12228 filename to fullname. Rename variable this_name to this_fullname.
12229 Lowercase FILENAME_CMP call.
12230 (dw2_find_symbol_file): New comment for the returned string.
12231 (dwarf2_gdb_index_functions): Rename the function to
12232 dw2_expand_symtabs_with_fullname.
12233 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12234 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12236 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12237 * symfile.h (struct quick_symbol_functions): Rename field
12238 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12239 parameter filename to fullname. Document returned string meaning for
12241 * symtab.c (find_line_symtab): Rename the called function to
12242 expand_symtabs_with_fullname.
12244 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12247 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12248 call of filename_cmp with compare_filenames_for_search.
12249 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12250 is_abs, unify the call of FILENAME_CMP with
12251 compare_filenames_for_search. New gdb_asserts for real_path and name.
12252 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12253 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12254 * symfile.h (struct quick_symbol_functions): Extend the comment for
12255 map_symtabs_matching_filename.
12256 * symtab.c (compare_filenames_for_search): Remove the function comment
12257 relative path requirement. Handle absolute filenames, with a comment.
12258 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12259 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12260 real_path and name. Unify the call of compare_filenames_for_search
12262 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12264 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12267 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12268 source_file references by symtab field references. Remove variables
12270 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12271 (clear_command, say_where): Replace bp_location field source_file
12272 references by symtab field references.
12273 (bp_location_dtor): Remove the source_file reference.
12274 (update_static_tracepoint): Replace bp_location field source_file
12275 references by symtab field references.
12276 (breakpoint_free_objfile): New function.
12277 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12278 Replace the field source_file by field symtab, extend its comment.
12279 (breakpoint_free_objfile): New declaration.
12280 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12281 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12282 field source_file references by symtab field references.
12284 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12286 Replace xfullpath calls by gdb_realpath calls.
12287 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12289 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12290 Remove it from the iterate_over_some_symtabs call.
12291 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12292 Remove it from the dw2_map_expand_apply calls, remove a block handling
12294 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12295 Remove it from the iterate_over_some_symtabs call.
12296 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12297 Remove it from the partial_map_expand_apply calls, remove a block
12298 handling it. Drop gdb_realpath call and cleanups from the real_path
12300 * source.c (openp): Drop the comment part about xfullpath. Replace
12301 xfullpath calls by gdb_realpath calls.
12302 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12303 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12304 from method map_symtabs_matching_filename and its comment.
12305 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12307 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12308 remove it also from the function comment, remove a block handling it.
12309 Drop gdb_realpath call and cleanups from the real_path handling.
12310 (iterate_over_symtabs): Drop variable full_path and its use.
12311 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12312 * utils.c (xfullpath): Remove.
12313 * utils.h (xfullpath): Remove.
12315 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12317 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12318 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12319 (ALLDEPFILES): Add ppc64-tdep.c.
12320 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12321 ppc64-tdep.o to gdb_target_obs.
12322 * ppc64-tdep.h: New file.
12323 * ppc64-tdep.c: New file.
12324 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12325 ppc-linux-tdep.c to here.
12326 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12327 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12328 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12329 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12330 from ppc-linux-tdep.c to here.
12331 (ppc64_convert_from_func_ptr_addr): Rename from
12332 ppc64_linux_convert_from_func_ptr_addr to
12333 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12336 (read_insn): Move from ppc-linux-tdep.c to here.
12337 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12338 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12339 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12340 Removed above functions.
12341 (ppc_linux_init_abi): Adjust.
12343 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12345 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12347 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12349 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12351 2013-02-01 Pedro Alves <palves@redhat.com>
12353 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12354 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12356 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12358 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12359 files with no separate debug info.
12360 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12361 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12362 only for files with no separate debug info.
12364 2013-01-31 Tom Tromey <tromey@redhat.com>
12366 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12368 (struct jit_program_space_data): Rename from jit_inferior_data.
12370 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12371 Change return type. Attach data to program space.
12372 (jit_program_space_data_cleanup): Rename from
12373 jit_inferior_data_cleanup; change argument type.
12374 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12376 (jit_register_code): Update.
12377 (jit_update_inferior_cache): Remove.
12378 (jit_breakpoint_deleted): Get jit data from the location's program
12380 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12381 'ps_data', change type.
12382 (jit_inferior_init, jit_breakpoint_re_set_internal)
12383 (jit_event_handler): Update.
12384 (free_objfile_data): Get data from objfile's program space.
12385 (_initialize_jit): Update.
12387 2013-01-31 Tom Tromey <tromey@redhat.com>
12390 * jit.c (struct jit_inferior_data) <cached_code_address,
12391 jit_breakpoint>: New fields.
12392 (jit_breakpoint_re_set_internal): Fix logging. Only create
12393 breakpoint if cached address has changed.
12394 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12396 (_initialize_jit): Register breakpoint deleted observer.
12398 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12400 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12401 (save_infcall_suspend_state): Ifdef out unused inf.
12402 (restore_infcall_suspend_state): Ifdef out unused inf.
12403 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12404 (jit_frame_sniffer): Remove unused inf_data.
12406 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12408 * c-exp.y (classify_inner_name): Remove unused type.
12409 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12410 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12412 (c_get_string): Remove unused kind.
12413 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12415 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12417 * charset.c (intermediate_encoding): Remove unused i.
12418 * completer.c (signal_completer): Remove unused i.
12419 * continuations.c (discard_my_continuations_1): Remove unused
12421 * corelow.c (core_close): Remove unuseD name.
12422 (get_core_siginfo): Remove unused pid.
12423 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12425 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12426 (loclist_describe_location): Remove unused first.
12427 * event-top.c (command_line_handler): Remove unused got_eof.
12428 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12429 (resize_section_table): Remove unused old_value.
12430 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12431 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12432 * i386-tdep.c (i386_process_record): Remove unused rex.
12433 * infcmd.c (get_return_value): Remove unused uiout.
12434 * jv-lang.c (type_from_class): Remove unused is_array.
12435 * jv-valprint.c (java_val_print): Remove unused i.
12436 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12437 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12438 * m2-typeprint.c (m2_print_type): Remove unused code.
12439 * macroexp.c (get_character_constant): Remove unused body_start.
12440 (macro_stringify): Remove unused result.
12441 * objc-lang.c (find_methods): Remove unused gdbarch.
12442 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12443 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12444 * stack.c (print_frame_args): Remove unused summary.
12445 * thread.c (thread_apply_command): Remove unused p.
12446 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12447 * valops.c (search_struct_method): Remove unused skip.
12448 * valprint.c (generic_val_print): Remove unused byte_order.
12449 * varobj.c (varobj_update): Remove unused changed.
12450 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12451 (alias_command): Remove unused c.
12452 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12453 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12455 (mi_cmd_data_write_memory): Remove unused word_format.
12456 (mi_cmd_data_write_memory_bytes): Remove unused r.
12457 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12459 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12460 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12463 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12465 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12466 * symtab.c (iterate_over_symtabs): Remove unused s.
12467 (find_pc_sect_symtab): Remove unused pspAce.
12468 (find_pc_sect_line): Remove unused alt_symtab.
12469 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12470 (completion_list_add_name): Remove unused newsize.
12472 2013-01-31 Tom Tromey <tromey@redhat.com>
12475 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12478 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12480 * target.c (target_read_string): Remove unused origlen.
12482 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12484 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12485 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12486 * ax-general.c (ax_print): Remove unused is_float.
12487 * blockframe.c (block_innermost_frame): Remove unused start, end.
12488 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12490 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12492 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12493 (svr4_read_so_list): Remove unused lmo.
12494 * solib-target.c (solib_target_relocate_section_addresses): Remove
12497 2013-01-30 Tom Tromey <tromey@redhat.com>
12499 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12501 2013-01-30 Tom Tromey <tromey@redhat.com>
12503 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12504 * utils.c (gnu_debuglink_crc32): Remove.
12505 * utils.h (gnu_debuglink_crc32): Don't declare.
12507 2013-01-30 Tom Tromey <tromey@redhat.com>
12509 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12510 (read_structure_type, read_enumeration_type): Remove cast.
12512 2013-01-30 Tom Tromey <tromey@redhat.com>
12514 * dwarf2read.c (read_namespace_type): Remove cast.
12515 (read_typedef): Likewise.
12517 2013-01-29 Tom Tromey <tromey@redhat.com>
12519 * dwarf2read.c (free_dwo_file): Remove assert.
12521 2013-01-29 Tom Tromey <tromey@redhat.com>
12523 * value.c (deprecated_set_value_modifiable): Remove.
12524 * value.h (deprecated_set_value_modifiable): Remove.
12526 2013-01-28 Doug Evans <dje@google.com>
12528 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12529 to addresses from dwo files.
12531 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12533 * valops.c (find_overload_match): Remove unused argument 'lax'.
12534 * value.h: Remove unused argument 'lax' from the declaration of
12535 find_overload_match.
12536 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12537 to find_overload_match.
12538 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12539 argument to find_overload_match.
12541 2013-01-25 Tom Tromey <tromey@redhat.com>
12543 * dwarf2read.c (processing_has_namespace_info): Remove.
12544 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12545 (process_die, read_func_scope, dwarf2_start_symtab)
12546 (new_symbol_full): Update.
12548 2013-01-25 Tom Tromey <tromey@redhat.com>
12550 * cp-namespace.c (cp_set_block_scope): Remove.
12551 * cp-support.h (cp_set_block_scope): Remove.
12552 * dbxread.c: Include block.h.
12553 (cp_set_block_scope): New function.
12554 (process_one_symbol): Update.
12555 * dwarf2read.c (read_func_scope): Use block_set_scope.
12557 2013-01-25 Pedro Alves <palves@redhat.com>
12559 * remote.c (add_current_inferior_and_thread): Tweak comment.
12561 2013-01-25 Tom Tromey <tromey@redhat.com>
12563 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12564 (cp_add_using_directive): Add 'copy_names' argument.
12565 * cp-support.h (cp_add_using_directive): Update.
12566 (struct using_direct) <import_src, import_dest, alias,
12567 declaration>: Now const.
12568 * dwarf2read.c (read_import_statement): Use obconcat.
12569 Don't copy names passed to cp_add_using_directive.
12571 2013-01-25 Tom Tromey <tromey@redhat.com>
12573 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12575 2013-01-25 Pedro Alves <palves@redhat.com>
12577 * remote.c (stop_reply_extract_thread): New.
12578 (add_current_inferior_and_thread): New parameter 'wait_status'.
12580 (remote_start_remote): Pass wait status to
12581 add_current_inferior_and_thread.
12582 (extended_remote_run): Update comment.
12583 (extended_remote_create_inferior_1): Pass wait status to
12584 add_current_inferior_and_thread.
12586 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12587 Ulrich Weigand <uweigand@de.ibm.com>
12589 * valarith.c (value_vector_widen): New function for replicating a
12590 scalar into a vector.
12591 (value_binop): Use value_vector_widen to widen scalar to vector
12592 rather than casting, this better matches gcc C behaviour.
12593 * valops.c (value_casst): Update logic for casting between vector
12594 types, and for casting from scalar to vector, try to match gcc C
12596 * value.h (value_vector_widen): Declare.
12597 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12598 function, handle special case for casting scalar to vector.
12599 (opencl_relop): Use opencl_value_cast.
12600 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12601 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12602 in order to use opencl_value_cast.
12604 2013-01-25 Yao Qi <yao@codesourcery.com>
12606 * event-loop.c: Include "queue.h".
12607 (gdb_event_p): New typedef.
12608 (DECLARE_QUEUE_P): Use.
12609 (DEFINE_QUEUE_P): Use.
12610 (async_queue_event): Remove.
12611 (gdb_event_xfree): New.
12612 (initialize_event_loop): New.
12613 (process_event): Use QUEUE macros.
12614 (event_queue): Remove.
12615 (gdb_wait_for_event): Caller update.
12616 (check_async_event_handlers): Likewise.
12617 (poll_timers): Likewise.
12618 * event-loop.h (initialize_event_loop): Declare.
12619 * event-loop.c (gdb_event_xfree): New.
12620 * top.c (gdb_init): Call initialize_event_loop.
12622 2013-01-25 Yao Qi <yao@codesourcery.com>
12624 * event-loop.c (async_queue_event): Remove one parameter
12625 'position'. Remove code handling 'position' == TAIL.
12626 (gdb_wait_for_event): Caller update.
12627 (check_async_event_handlers): Caller update.
12628 (poll_timers): Caller update.
12629 * event-loop.h (enum queue_position): Remove.
12631 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12633 * MAINTAINERS: Update my email.
12635 2013-01-25 Yao Qi <yao@codesourcery.com>
12637 * main.c (print_gdb_help): Remove "--epoch" from the help
12640 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12642 * symtab.c (skip_prologue_using_sal): Consider a file
12643 change the same as an increased line number
12645 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12647 * MAINTAINERS (Write After Approval): Add myself to the list.
12649 2013-01-24 Tom Tromey <tromey@redhat.com>
12651 * ada-lang.h (ada_decode_symbol): Make return type const.
12652 * ada-lang.c (ada_decode_symbol): Likewise.
12654 2013-01-23 Doug Evans <dje@google.com>
12656 * linespec.c (find_linespec_symbols): Make static.
12658 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12660 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12661 type on float conversion for complex type.
12663 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12665 Add a new class gdb.Architecture which exposes GDB's
12666 internal representation of architecture via GDB Python API.
12667 * Makefile.in: Add entries corresponding to the new file
12669 * NEWS (Python Scripting): Add entries for the new class
12670 gdb.Architecture and the new method gdb.Frame.architecture.
12671 * python/py-arch.c: Implement gdb.Architecture class.
12672 * python/py-frame.c (frapy_arch): Implement the method
12673 gdb.Frame.architecture().
12674 (frame_object_methods): Add 'architecture' to the method table.
12675 * python/python-internal.h: Add declarations of new utility
12677 * python/python.c (_initialize_python): Initialize
12678 gdb.Architecture class.
12680 2013-01-23 Doug Evans <dje@google.com>
12682 Work around binutils/15021.
12683 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12684 type_unit_group out of union s. All uses updated.
12685 (read_index_from_section): Watch for index version 8.
12686 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12687 an imported symtab.
12688 (write_psymtabs_to_index): Increment version number to 8.
12690 2013-01-22 Pedro Alves <palves@redhat.com>
12692 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12695 2013-01-22 Pedro Alves <palves@redhat.com>
12697 * annotate.c (annotate_breakpoints_changed): Rename to ...
12698 (annotate_breakpoints_invalid): ... this. Make static.
12699 (breakpoint_changed): Adjust.
12700 (_initialize_annotate): Always install the observers. Install a
12701 "breakpoint_created" observer.
12702 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12703 * breakpoint.c (set_breakpoint_condition)
12704 (breakpoint_set_commands, do_map_commands_command)
12705 (init_raw_breakpoint, clear_command, set_ignore_count)
12706 (enable_breakpoint_disp): No longer call
12707 annotate_breakpoints_changed.
12709 2013-01-22 Pedro Alves <palves@redhat.com>
12711 * annotate.c: Include "inferior.h".
12712 (frames_invalid_emitted)
12713 (breakpoints_invalid_emitted): New globals.
12714 (async_background_execution_p): New function.
12715 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12716 emitting the annotation if it has already been emitted.
12717 (annotate_display_prompt): New function.
12718 * annotate.h (annotate_display_prompt): New declaration.
12719 * event-top.c: Include annotate.h.
12720 (display_gdb_prompt): Call annotate_display_prompt.
12722 2013-01-22 Pedro Alves <palves@redhat.com>
12724 * annotate.c (ignore_count_changed): Delete.
12725 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12726 (annotate_ignore_count_change): Delete.
12727 (annotate_stopped): Don't emit a delayed breakpoints-changed
12729 * annotate.h (annotate_ignore_count_change): Delete.
12730 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12731 annotate_ignore_count_change.
12733 2013-01-22 Tom Tromey <tromey@redhat.com>
12735 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12736 require_rvalue for a register location.
12738 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12740 * breakpoint.c (print_one_breakpoint_location): Add MI
12741 field 'thread-groups' when printing a breakpoint.
12742 (output_thread_groups): New function.
12744 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12746 * python/lib/gdb/commands/explore.py
12747 (CompoundExplorer.explore_expr): Correct the name of a method
12749 (ExploreTypeCommand.invoke): Add a missing 'return'.
12751 2013-01-21 Tom Tromey <tromey@redhat.com>
12753 * gdb_obstack.h (obconcat): Move declaration here, from...
12754 * symfile.h (obconcat): ... here.
12755 * gdb_obstack.c: New file.
12756 (obconcat): Move from...
12757 * symfile.c (obconcat): ... here.
12758 * Makefile.in (SFILES): Add gdb_obstack.c.
12759 (COMMON_OBS): Add gdb_obstack.o.
12761 2013-01-21 Tom Tromey <tromey@redhat.com>
12763 * symfile.h (obsavestring): Don't declare.
12764 * symfile.c (obsavestring): Remove.
12765 * ada-exp.y: Use obstack_copy0, not obsavestring.
12766 * ada-lang.c: Use obstack_copy0, not obsavestring.
12767 * coffread.c: Use obstack_copy0, not obsavestring.
12768 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12769 * dbxread.c: Use obstack_copy0, not obsavestring.
12770 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12771 * jit.c: Use obstack_copy0, not obsavestring.
12772 * mdebugread.c: Use obstack_copy0, not obsavestring.
12773 * psymtab.c: Use obstack_copy0, not obsavestring.
12774 * stabsread.c: Use obstack_copy0, not obsavestring.
12775 * xcoffread.c: Use obstack_copy0, not obsavestring.
12777 2013-01-21 Tom Tromey <tromey@redhat.com>
12779 * dwarf2read.c (fixup_go_packaging): Save package name
12780 on objfile obstack.
12781 * gdbtypes.c (init_type): Don't copy name.
12783 2013-01-21 Tom Tromey <tromey@redhat.com>
12785 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12787 (struct attribute) <u.str>: Now const.
12788 (struct fnfieldlist) <name>: Now const.
12789 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12790 (partial_die_parent_scope): Make return type const.
12791 (partial_die_full_name, add_partial_symbol): Update.
12792 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12794 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12795 (read_file_scope, read_func_scope, dwarf2_add_field)
12796 (dwarf2_add_member_fn, read_structure_type)
12797 (process_enumeration_scope, read_array_type, read_module_type)
12798 (read_base_type, read_subrange_type): Update.
12799 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12800 (new_symbol_full, guess_full_die_structure_name): Update.
12801 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12802 (dwarf2_name): Return const type.
12803 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12806 2013-01-21 Tom Tromey <tromey@redhat.com>
12808 * gdbtypes.c (init_type): Make 'name' const.
12809 * gdbtypes.h (init_type): Update.
12811 2013-01-21 Tom Tromey <tromey@redhat.com>
12813 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12814 (start_symtab): Make 'name' and 'dirname' const. Use
12815 set_last_source_file.
12816 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12817 (last_source_file): Define. Now static.
12818 (set_last_source_file, get_last_source_file): New functions.
12819 * buildsym.h (last_source_file): Don't declare.
12820 (start_symtab): Update.
12821 (set_last_source_file, get_last_source_file): Declare.
12822 * coffread.c (complete_symtab): Use set_last_source_file.
12823 (coff_end_symtab): Likewise.
12824 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12825 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12826 set_last_source_file.
12827 (process_one_symbol): Use get_last_source_file.
12828 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12829 (psymtab_to_symtab_1): Use get_last_source_file.
12830 * xcoffread.c (process_linenos): Use get_last_source_file.
12831 (complete_symtab): Use set_last_source_file.
12832 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12833 (scan_xcoff_symtab): Use set_last_source_file.
12835 2013-01-21 Tom Tromey <tromey@redhat.com>
12837 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12838 (symbol_set_names): Remove casts. Handle field const-ness.
12840 2013-01-21 Tom Tromey <tromey@redhat.com>
12842 * dwarf2read.c (new_symbol_full): Remove cast.
12843 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12844 * symtab.h (symbol_set_demangled_name): Update.
12846 2013-01-21 Tom Tromey <tromey@redhat.com>
12848 * main.c (captured_main): Call bfd_init.
12850 2013-01-21 Tom Tromey <tromey@redhat.com>
12852 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12853 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12854 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12857 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12859 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12861 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12863 Fix gdb.fortran/common-block.exp crash in PIE mode.
12864 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12866 * f-valprint.c (info_common_command_for_block): Expect
12867 LOC_COMMON_BLOCK in gdb_assert.
12868 * symtab.h (struct general_symbol_info): Update comment for the
12869 common_block member.
12870 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12871 (enum address_class): New member LOC_COMMON_BLOCK.
12873 2013-01-18 David Blaikie <dblaikie@gmail.com>
12875 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12877 2013-01-18 Tom Tromey <tromey@redhat.com>
12880 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12881 Call require_rvalue.
12883 2013-01-18 Yao Qi <yao@codesourcery.com>
12885 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12886 (dbx_read_symtab): New declaration.
12887 (dbx_psymtab_to_symtab): Delete.
12888 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12889 Rename parameter PST to SELF. Exchanged two parameters.
12890 (start_psymtab): Caller update.
12891 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12892 (dwarf2_read_symtab): New declaration.
12893 (dwarf2_psymtab_to_symtab): Delete.
12894 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12895 Rename parameter PST to SELF. Exchanged two parameters.
12896 (create_partial_symtab): Caller update.
12897 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12898 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12899 Rename parameter PST to SELF. Exchanged two parameters.
12900 (parse_partial_symbols, new_psymtab): Caller update.
12901 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12903 * psymtab.c (psymtab_to_symtab): Caller update.
12904 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12905 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12906 Rename parameter PST to SELF. Exchanged two parameters.
12907 (xcoff_start_psymtab): Caller update.
12909 2013-01-18 Yao Qi <yao@codesourcery.com>
12911 * infrun.c (proceed): Rename local variable 'oneproc' to
12914 2013-01-17 Doug Evans <dje@google.com>
12916 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12917 (dw2_build_type_unit_groups): Delete. All uses updated.
12919 * symtab.h (struct symbol_search): Add comment.
12921 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12923 * symtab.c (compare_filenames_for_search): New comment for
12926 2013-01-17 Tom Tromey <tromey@redhat.com>
12928 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12930 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12932 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12933 initialize it by existing make_cleanup. Call new do_cleanups.
12935 2013-01-17 Tom Tromey <tromey@redhat.com>
12937 * cp-abi.c (cp_abi_completer): New function.
12938 (_initialize_cp_abi): Set completer for "set cp-abi".
12940 2013-01-17 Tom Tromey <tromey@redhat.com>
12942 * mem-break.c: Remove obsolete comment.
12943 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12945 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12947 * jit.c (jit_reader_load_command): Interpret the jit reader name
12948 as an absolute path if it begins with a forward slash.
12950 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12954 * jit.c (finalize_symtab): Ensure that only the global block has a
12957 2013-01-17 Pedro Alves <palves@redhat.com>
12959 * acinclude.m4: Include ../config/plugins.m4,
12960 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12961 * Makefile.in (aclocal_m4_deps): Update.
12962 * aclocal.m4: Renegerate.
12964 2013-01-16 Doug Evans <dje@google.com>
12966 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12968 2013-01-16 Pedro Alves <palves@redhat.com>
12969 Tom Tromey <tromey@redhat.com>
12972 * NEWS: Add "catch signal".
12973 * breakpoint.c (base_breakpoint_ops): No longer static.
12974 (bpstat_explains_signal): New function.
12975 (init_catchpoint): No longer static.
12976 (base_breakpoint_explains_signal): New function.
12977 (base_breakpoint_ops): Initialize new field.
12978 * breakpoint.h (enum bpstat_signal_value): New.
12979 (struct breakpoint_ops) <explains_signal>: New field.
12980 (bpstat_explains_signal): Remove macro, declare as function.
12981 (base_breakpoint_ops, init_catchpoint): Declare.
12982 * break-catch-sig.c: New file.
12983 * inferior.h (signal_catch_update): Declare.
12984 * infrun.c (signal_catch): New global.
12985 (handle_syscall_event): Update for change to
12986 bpstat_explains_signal.
12987 (handle_inferior_event): Likewise. Always handle random signals
12989 (signal_cache_update): Check signal_catch.
12990 (signal_catch_update): New function.
12991 (_initialize_infrun): Initialize signal_catch.
12992 * Makefile.in (SFILES): Add break-catch-sig.c.
12993 (COMMON_OBS): Add break-catch-sig.o.
12995 2013-01-16 Tom Tromey <tromey@redhat.com>
12997 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12998 (print_one_catch_solib, print_one_catch_syscall)
12999 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13002 2013-01-16 Yao Qi <yao@codesourcery.com>
13004 * printcmd.c (current_display_number): Make it static.
13006 2013-01-16 Yao Qi <yao@codesourcery.com>
13008 * infcmd.c (step_once): Don't check '!single_inst' as it was
13011 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13013 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13015 2013-01-14 Tom Tromey <tromey@redhat.com>
13017 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13019 * command.h (add_setshow_string_noescape_cmd): Update.
13020 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13021 (complete_set_gnutarget): New function.
13022 (_initialize_core): Set the "set gnutarget" completer.
13024 2013-01-14 Tom Tromey <tromey@redhat.com>
13027 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13028 (c_type_print_modifier): Likewise.
13029 * dwarf2read.c (read_tag_restrict_type): New function.
13030 (read_type_die_1): Handle DW_TAG_restrict_type.
13031 * gdbtypes.c (make_restrict_type): New function.
13032 (recursive_dump_type): Handle TYPE_RESTRICT.
13033 * gdbtypes.h (enum type_flag_values): Renumber.
13034 (enum type_instance_flag_value): Add
13035 TYPE_INSTANCE_FLAG_RESTRICT.
13036 (TYPE_RESTRICT): New macro.
13037 (make_restrict_type): Declare.
13039 2013-01-14 Tom Tromey <tromey@redhat.com>
13042 * psymtab.c (struct psymtab_state): New.
13043 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13045 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13046 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13048 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13049 Pedro Alves <palves@redhat.com>
13053 * remote.c (remote_threads_info): Make a copy of the reply from
13054 qfThreadInfo and use that instead of rs->buf.
13056 2013-01-14 Yao Qi <yao@codesourcery.com>
13058 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13059 (dbx_psymtab_to_symtab): Likewise.
13060 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13061 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13062 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13064 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13066 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13067 make_cleanup_restore_current_language. Call set_language. Move
13068 OLD_CHAIN and INNER_CHAIN cleanups.
13069 * utils.c (do_restore_current_language)
13070 (make_cleanup_restore_current_language): New functions.
13071 * utils.h (make_cleanup_restore_current_language): New declaration.
13073 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13075 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13076 non-existing files.
13078 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13079 non-existing files if FILENAME is already absolute.
13081 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13083 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13084 fputs_filtered. Append trailing newline.
13086 2013-01-11 Yao Qi <yao@codesourcery.com>
13087 Stan Shebs <stan@codesourcery.com>
13089 * psymtab.c (init_psymbol_list): Clarify the comment.
13091 2013-01-11 Yao Qi <yao@codesourcery.com>
13093 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13094 (update_dprintf_command_list): Assert that 'printf_line' is
13095 non-null. Remove condition check.
13097 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13100 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13102 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13104 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13106 2013-01-09 Anthony Green <green@moxielogic.com>
13108 * cp-abi.c (cplus_print_vtable): Don't return value from void
13110 * ada-lang.c (re_set_catch_assert): Ditto.
13112 2013-01-09 Doug Evans <dje@google.com>
13114 * symfile.h (quick_symbol_functions): Delete member
13115 pre_expand_symtabs_matching. All uses removed.
13116 * dwarf2read.c (dw2_lookup_symbol): Implement.
13117 (dw2_do_expand_symtabs_matching): Delete.
13118 (dw2_pre_expand_symtabs_matching): Delete.
13119 (struct dw2_symtab_iterator): New type.
13120 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13121 (dw2_expand_symtabs_for_function): Rewrite.
13122 (dwarf2_gdb_index_functions): Update.
13123 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13124 (psym_functions): Update.
13126 2013-01-09 Tom Tromey <tromey@redhat.com>
13128 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13129 * configure: Rebuild.
13130 * configure.ac: Add somread.o to the build if BFD has SOM
13132 * somread.c: Include som/aout.h, not syms.h.
13133 (som_symtab_read): Use som_external_symbol_dictionary_record.
13134 Unpack records manually.
13135 (_initialize_somread): Declare.
13137 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13139 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13140 Cast return_address to 64bits.
13142 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13144 * printcmd.c: Remove define of function output_command.
13145 * tracepoint.c: Remove extern of function output_command.
13146 * valprint.h: (output_command): New extern.
13148 2013-01-07 Tom Tromey <tromey@redhat.com>
13150 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13152 (objc_language_defn): Use c_printchar, c_printstr,
13155 2013-01-07 Tom Tromey <tromey@redhat.com>
13159 * ada-valprint.c (printstr, print_field_values): Remove
13161 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13163 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13165 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13166 * main.c (captured_main): Remove "epoch" argument.
13167 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13168 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13169 * p-valprint.c (pascal_object_print_value_fields): Remove
13171 * printcmd.c (print_command_1): Remove 'inspect' argument.
13172 (print_command, call_command): Update.
13173 (inspect_command): Remove.
13174 (_initialize_printcmd): Make "inspect" an alias for "print".
13175 * top.c (epoch_interface): Remove.
13176 * top.h (epoch_interface): Remove.
13177 * valprint.c (user_print_options): Update.
13178 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13179 * valprint.h (struct value_print_options) <inspect_it>: Remove
13182 2013-01-04 Tom Tromey <tromey@redhat.com>
13184 * valprint.h (read_string): Add 'extern'.
13186 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13188 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13189 used to decide whether to define darwin_read_dyld_info or not.
13191 2013-01-03 Pierre Muller <muller@sourceware.org>
13193 * main.c (relocate_gdb_directory): Avoid calling stat function
13196 2013-01-03 Yao Qi <yao@codesourcery.com>
13198 * psymtab.c (fixup_psymbol_section): Update declaration.
13199 (fixup_psymbol_section): Remove code returning value.
13201 2013-01-03 Yao Qi <yao@codesourcery.com>
13203 * symtab.h: Remove some out of date comments.
13204 (enum exception_event_kind): Move it ...
13205 * breakpoint.c: ... here.
13207 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13210 * darwin-nat.c (darwin_read_dyld_info): Only build if
13211 TASK_DYLD_INFO_COUNT is defined.
13212 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13213 TASK_DYLD_INFO_COUNT is defined.
13215 2013-01-02 Tom Tromey <tromey@redhat.com>
13217 * symfile.h (struct ecoff_debug_hack): Remove.
13218 * objfiles.c: Don't include mdebugread.h.
13220 2013-01-02 Tom Tromey <tromey@redhat.com>
13222 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13223 * configure.ac: Check for Mach-O support in BFD. Update
13225 * configure: Rebuild.
13227 2013-01-02 Tom Tromey <tromey@redhat.com>
13229 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13230 * configure.ac: Use GDB_AC_CHECK_BFD.
13231 * configure: Rebuild.
13233 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13235 * MAINTAINERS: Update my email.
13237 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13239 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13241 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13243 * rs6000-nat.c (bss_data_overlap): New function.
13244 (vmap_symtab): Use it to adjust the .bss section's offset.
13246 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13248 Update year range in copyright notice of all files.
13250 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13252 * top.c (print_gdb_version): Update copyright year.
13254 For older changes see ChangeLog-2012.
13260 version-control: never