1 2011-11-04 Doug Evans <dje@google.com>
3 * utils.c: #include "timeval-utils.h".
4 (cmd_stats): Rename start_time to start_cpu_time.
5 New member start_wall_time.
6 (report_command_stats): Report wall time.
7 (make_command_stats_cleanup): Record start wall time.
9 2011-11-04 Tom Tromey <tromey@redhat.com>
11 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
13 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15 * coff-pe-read.c: Include defs.h before bfd.h.
17 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
21 * python/python.c (python_run_simple_file): Expand tilde in path.
23 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
27 * python/py-type.c (typy_lookup_type): Do not return a type in
30 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
31 Eli Zaretskii <eliz@gnu.org>
33 * linux-nat.c (_initialize_linux_nat): Improve help
34 for `info proc stat', `info proc status', `info proc cwd',
35 `info proc cmdline' and `info proc exe'.
37 2011-11-02 Stan Shebs <stan@codesourcery.com>
39 String collection for tracepoints.
40 * NEWS: Mention string collection.
41 * common/ax.def (tracenz): New bytecode.
42 * ax-gdb.h (trace_string_kludge): Declare.
43 * ax-gdb.c: Include valprint.h and c-lang.h.
44 (trace_string_kludge): New global.
45 (gen_traced_pop): Add string case.
46 (agent_command): Add string case.
47 * tracepoint.h (decode_agent_options): Declare.
48 * tracepoint.c: Include cli-utils.h.
49 (decode_agent_options): New function.
50 (validate_actionline): Call it.
51 (encode_actions_1): Ditto.
52 * target.h (struct target_ops): New method to_supports_string_tracing.
53 (target_supports_string_tracing): New macro.
54 * target.c (update_current_target): Add to_supports_string_tracing.
55 * remote.c (struct remote_state): New field string_tracing.
56 (remote_string_tracing_feature): New function.
57 (remote_protocol_features): New feature tracenz.
58 (remote_supports_string_tracing): New function.
59 (init_remote_ops): Set to_supports_string_tracing.
61 2011-11-02 Pedro Alves <pedro@codesourcery.com>
62 Jan Kratochvil <jan.kratochvil@redhat.com>
64 * linux-nat.c: Include cli/cli-utils.h.
65 (enum info_proc_what): New.
66 (linux_nat_info_proc_cmd): Rename to ...
67 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
68 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
69 status_f and stat_f from WHAT. Throw error on extra parameters.
70 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
71 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
72 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
73 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
74 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
75 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
76 `info proc cmdline', `info proc exe' and `info proc all' as real
77 subcommands of `info proc'.
79 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
81 * Makefile.in: (SFILES): Add skip.c.
82 (HFILES_NO_SRCDIR): Add skip.h.
83 (COMMON_OBS): Add skip.o.
84 * skip.h, skip.c: New.
85 * breakpoint.h (set_default_breakpoint): Remove.
86 (get_sal_arch): Declare.
87 * breakpoint.c: Remove default_breakpoint_valid,
88 default_breakpoint_address, default_breakpoint_symtab,
89 default_breakpoint_line, default_breakpoint_pspace variables.
90 (get_sal_arch): Make public.
91 (set_default_breakpoint): Remove.
92 (parse_breakpoint_sals, create_breakpoint, clear_command,
93 decode_line_spec_1): Remove uses of default_breakpoint variables;
94 replaced with function calls into stack.c.
95 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
96 * cli/cli-cmds.c: Add skiplist.
97 (init_cmd_lists): Initialize skiplist.
98 (init_cli_cmds): Fix comment (classes of commands appear in
100 * infrun.c (handle_inferior_event): Add check that we don't step into
101 a function whose pc is marked for skip.
102 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
103 last_displayed_addr, last_displayed_symtab, last_displayed_line
105 (set_last_displayed_sal): New static function.
106 (print_frame_info): Switch call to set_default_breakpoint to call to
107 set_last_displayed_sal.
108 (clear_last_displayed_sal, last_displayed_sal_is_valid,
109 get_last_displayed_pspace, get_last_displayed_addr,
110 get_last_displayed_symtab, get_last_displayed_line,
111 get_last_displayed_sal): New public functions.
112 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
113 get_last_displayed_pspace, get_last_displayed_addr,
114 get_last_displayed_symtab, get_last_displayed_line,
115 get_last_displayed_sal): Declare.
117 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
119 * MAINTAINERS (Write After Approval): Add myself to the list.
121 2011-10-29 Yao Qi <yao@codesourcery.com>
123 * infcmd.c (disconnect_command): Call disconnect_tracing.
125 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
128 * symtab.c (skip_prologue_sal): Code reformatting.
130 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
133 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
134 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
137 2011-10-28 Pedro Alves <pedro@codesourcery.com>
139 * linux-nat.c (linux_nat_filter_event): Remove `options'
140 parameter, and dead code that used it. If we're handling a
141 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
142 in our lwp list, re-add it.
143 (check_zombie_leaders): New.
144 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
145 wait for children with WNOHANG, and always wait for all children.
146 Don't check for no resumed children upfront. Simplify wait loop.
147 Check for zombie thread group leaders after handling all wait
148 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
149 unwaited-for children left.
150 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
151 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
152 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
153 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
155 2011-10-28 Sterling Augustine <saugustine@google.com>
157 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
158 * symtab.c (free_completion_list): New function.
159 (do_free_completion_list): Likewise.
160 (default_make_symbol_completion_list_break_on): New variable
161 back_to. Call make_cleanup and discard_cleanups.
162 (make_source_files_completion_list): Likewise.
164 2011-10-28 Paul Koning <paul_koning@dell.com>
166 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
167 * NEWS: Mention deep_items.
169 2011-10-28 Alen Skondro <askondro@gmail.com>
171 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
174 2011-10-27 Meador Inge <meadori@codesourcery.com>
176 * MAINTAINERS (Write After Approval): Add myself to the list.
178 2011-10-27 Joel Brobecker <brobecker@adacore.com>
180 * value.h (read_frame_register_value): Add declaration.
181 * findvar.c (read_frame_register_value): New function.
182 (value_from_register): Use read_frame_register_value
183 instead of get_frame_register_value + value_contents_copy
184 to get value contents.
186 2011-10-27 Doug Evans <dje@google.com>
188 * cli/cli-cmds.c (source_script_with_search): Pass full path to
189 source_script_from_stream if it may have been found on the search path.
190 * python/py-auto-load.c (source_section_scripts): Pass full path to
191 source_python_script_for_objfile.
192 * python/python.c (source_python_script): Delete stream parameter.
194 (source_python_script_for_objfile): Ditto.
195 * python/python-internal.h (source_python_script_for_objfile): Update.
196 * python/python.h (source_python_script): Update.
198 2011-10-27 Tom Tromey <tromey@redhat.com>
200 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
201 (ada_sals_for_line): Remove declarations.
203 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
205 Move unwind reasons to an external .def file
206 * frame.c (frame_stop_reason_string): Rewrite using
207 unwind_stop_reasons.def.
208 * frame.h (enum unwind_stop_reason): Likewise.
209 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
210 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
211 constants for bound-checking.
212 * unwind_stop_reasons.def: New file.
213 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
214 instead of a distinct value.
216 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
220 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
221 (convert_values_to_python): Return on Python tuple allocation
222 failure. Return NULL on value conversion error.
224 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
226 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
227 (bppy_set_task): Ditto.
228 (bppy_delete_breakpoint): Ditto.
229 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
230 (gdbpy_lookup_global_symbol): Ditto.
231 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
232 * python/py-frame.c (frapy_is_valid): Ditto.
233 (frame_info_to_frame_object): Ditto.
234 * python/py-type.c (typy_lookup_type): Ditto.
235 (typy_getitem): Ditto.
236 (typy_has_key): Ditto.
237 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
239 2011-10-26 Joel Brobecker <brobecker@adacore.com>
241 * gdbarch.h: Regenerate.
243 2011-10-26 Meador Inge <meadori@codesourcery.com>
245 * gdbarch.sh (function_list): Use 'pstring' when printing
247 * gdbarch.c: Regenerate.
249 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
251 * regcache.c (registers_changed_ptid): Invalidate thread architecture
252 and frame caches if PTID refers to all threads of a process.
254 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
256 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
257 to create_breakpoint.
259 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
261 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
262 (ppc_sysv_abi_push_dummy_call): Use it.
263 (do_ppc_sysv_return_value): Likewise.
264 (ppc64_sysv_abi_push_dummy_call): Likewise.
265 (ppc64_sysv_abi_return_value): Likewise.
267 2011-10-26 Paul Koning <paul_koning@dell.com>
269 * python/lib/gdb/types.py (deepitems): New function.
271 2011-10-25 Paul Koning <paul_koning@dell.com>
275 * python/py-value.c (value_to_value_object): Remove fetching of
276 the value if it was lazy.
277 (valpy_get_is_lazy): New function.
278 (valpy_fetch_lazy): New function.
280 2011-10-24 Joel Brobecker <brobecker@adacore.com>
282 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
283 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
285 2011-10-24 Pedro Alves <pedro@codesourcery.com>
287 * linux-nat.c (linux_handle_extended_wait): When handling a clone
288 event, in non-stop, if not stopping, make sure the new lwp has
289 last_resume_kind set to resume_continue. Assert that when we're
290 resuming the new lwp, its last_resume_kind is resume_continue.
292 2011-10-24 Pedro Alves <pedro@codesourcery.com>
294 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
295 already set when marking the event thread as not executing in
298 2011-10-24 Pedro Alves <pedro@codesourcery.com>
300 * infrun.c (handle_inferior_event): Add debug output for
301 TARGET_WAITKIND_NO_HISTORY.
303 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
305 * NEWS: Move set/show extended-prompt to "New Options". Expand
306 description. Fix typos.
308 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
312 * python/py-param.c (call_doc_function): Correctly deference on
315 2011-10-21 Joel Brobecker <brobecker@adacore.com>
317 * ada-tasks.c (print_ada_task_info): Fix computation of
318 number of tasks displayed in command output.
320 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
321 Ulrich Weigand <uweigand@de.ibm.com>
323 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
324 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
325 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
326 gdbarch_pc_regnum and frame_unwind_register_unsigned by
329 2011-10-20 Cary Coutant <ccoutant@google.com>
331 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
333 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
334 flag. Adjust all callers.
335 (process_psymtab_comp_unit): Remove adjustment for type section.
337 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
339 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
340 arguments by adding OBJFILE. Instead of getting objfile from
341 symbol's symtab, use new argument OBJFILE.
342 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
343 arguments by adding OBJFILE.
344 * gdb/dwarf2read.c (new_symbol_full): Change call to
345 cp_scan_for_anonymous_namespaces to match new signature.
346 * gdb/stabsread.c (define_symbol): Change call to
347 cp_scan_for_anonymous_namespaces to match new signature.
349 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
354 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
356 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
357 leak. Delete unused variables.
359 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
363 * python/py-frame.c (frapy_read_var): Use const struct *block.
364 * python/py-type.c (typy_lookup_typename): Likewise.
365 (typy_lookup_type): Likewise.
366 (typy_legacy_template_argument): Likewise.
367 (typy_template_argument): Likewise.
368 (gdbpy_lookup_type): Likewise.
369 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
370 * python/py-block.c (blpy_block_object): Likewise.
371 (blpy_iter): Likewise.
372 (blpy_get_start): Likewise.
373 (blpy_get_end): Likewise.
374 (blpy_get_function): Likewise.
375 (blpy_get_superblock): Likewise.
376 (set_block): Likewise.
377 (block_to_block_object): Likewise.
378 (block_object_to_block): Likewise.
379 (blpy_is_valid): Likewise.
380 (blpy_get_global_block): New function.
381 (blpy_get_static_block): New function.
382 (blpy_is_global): New function.
383 (blpy_is_static): New function.
384 * blockframe.c (block_innermost_frame): Likewise.
385 * valops.c (value_of_variable): Likewise.
386 * frame.h: Update prototypes.
387 * python/python-internal.h: Likewise.
390 2011-10-19 Cary Coutant <ccoutant@google.com>
392 * dwarf2read.c (create_debug_types_hash_table): Fix size of
395 2011-10-19 Cary Coutant <ccoutant@google.com>
397 * dwarf2read.c (peek_abbrev_code): New function.
398 (dw2_get_file_names): Check for dummy compilation units.
399 (create_debug_types_hash_table): Likewise.
400 (process_psymtab_comp_unit): Likewise.
401 (load_partial_comp_unit): Likewise.
402 (load_full_comp_unit): Likewise.
404 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
406 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
407 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
408 pt_phdr if PT_PHDR was found.
410 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
412 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
413 type or "<unnamed type"> when there is no name assigned.
414 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
415 avoid a sigint when no name is assigned.
417 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
420 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
421 * dwarf2expr.c (ctx_no_read_reg): New function.
422 * dwarf2expr.h (ctx_no_read_reg): New declaration.
423 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
424 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
425 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
427 2011-10-16 Doug Evans <dje@google.com>
429 * NEWS: Document python gdb.printing.register_pretty_printer's new
432 2011-10-14 Keith Seitz <keiths@redhat.com>
435 * eval.c (evaluate_subexp_standard): Do not construct
436 an array of types; pass the value array directly to
438 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
439 (rank_function): Take an array of values instead of types.
440 (rank_one_type): Add struct value * parameter.
441 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
442 (rank_function): For each argument, pass the argument's
443 value to rank_one_type.
444 (rank_one_type): Add VALUE parameter.
445 If the parameter type is a pointer and the argument type
446 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
448 Update all calls to rank_one_type, passing NULL for new
450 * valarith.c (value_user_defined_cpp_op): Do not construct
451 an array of types; pass the value array directly to
453 * valops.c (find_overload_method_list): Take an array of
454 values instead of types.
455 Save the type of OBJP for later use.
456 Update calls to find_oload_champ, and find_oload_champ_namespace.
457 (find_oload_champ_namespace): Take an array of values instead
459 (find_oload_champ_namespace_loop): Likewise.
460 (find_oload_champ): Likewise.
461 (classify_oload_match): Inspect all arguments
462 until INCOMPATIBLE is found. Return the worst badness found
464 (compare_parameters): Update call to rank_one_type.
465 * value.h (find_overload_match): Take an array of values instead
468 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
470 Drop lazy lm_info reading.
471 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
472 l_addr_inferior, l_ld, l_next, l_prev and l_name.
473 (lm_info_read): New function.
474 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
475 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
476 lm_dynamic_from_link_map.
477 (lm_next, lm_prev, lm_name): Remove.
478 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
479 initialization incl. read_memory. No longer use lm_name.
480 (svr4_free_so): Drop lm_info->lm freeing.
481 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
482 explicit lm_addr and lm initialization.
483 (svr4_read_so_list): Use lm_info_read, drop the initailization of
484 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
487 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
488 Paul Pluzhnikov <ppluzhnikov@google.com>
490 * defs.h (struct so_list): New forward declaration.
491 (make_cleanup_free_so): New declaration.
492 * solib-svr4.c (ignore_first_link_map_entry): Remove.
493 (svr4_free_so): Move the function here from downwards. Handle NULL
495 (svr4_free_library_list): New.
496 (svr4_read_so_list): New, moved here code from svr4_current_sos.
497 Use more cleanups. Use new parameter ignore_first instead of
498 ignore_first_link_map_entry.
499 (svr4_current_sos): New variable ignore_first, initialize it. New
500 variable back_to, use it for svr4_free_library_list protection.
501 (svr4_free_so): Remove - move upwards.
502 * utils.c: Include solist.h.
503 (do_free_so, make_cleanup_free_so): New functions.
505 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
507 Fix internal error regression.
508 * value.c (value_primitive_field): Handle value_optimized_out. Move
509 packed bitfields comment.
511 2011-10-13 Tom Tromey <tromey@redhat.com>
513 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
516 2011-10-13 Tom Tromey <tromey@redhat.com>
518 * python/py-type.c (typy_has_key): Make 'field' const.
520 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
522 * remote.c (remote_save_trace_data): Invert comparison.
524 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
526 * tracepoint.c (trace_save_command): Use filename instead of
529 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
531 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
534 2011-10-13 Yao Qi <yao@codesourcery.com>
537 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
538 whether insn is a 32-bit Thumb-2 instruction.
539 (thumb_in_function_epilogue_p): Likewise.
540 (thumb_get_next_pc_raw): Likewise.
541 (arm_breakpoint_from_pc): Likewise.
543 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
545 Fix empty DWARF expressions DATA vs. SIZE conditionals.
546 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
547 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
548 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
549 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
551 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
553 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
554 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
555 clear DATA on zero SIZE.
557 2011-10-12 Doug Evans <dje@google.com>
559 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
560 header->first_die_offset here. All callers updated.
562 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
564 Fix compatibility with texinfo versions older than 4.12.
565 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
566 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
567 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
568 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
569 * configure: Regenerate.
570 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
571 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
572 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
574 2011-10-12 Gary Benson <gbenson@redhat.com>
576 * breakpoint.h (pc_at_non_inline_function): Declare.
577 * breakpoint.c (is_non_inline_function,
578 pc_at_non_inline_function): New functions.
579 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
580 if the stop is at a location where functions cannot be inlined.
582 2011-10-12 Pedro Alves <pedro@codesourcery.com>
584 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
585 the core wanted them stopped, or if they now have a pending event
587 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
588 down to stop_and_resume_callback.
589 (linux_nat_wait_1): Always clear `options' when retrying. Handle
590 having new pending events after calling linux_nat_filter_event.
592 2011-10-11 Sterling Augustine <saugustine@google.com>
594 * dwarf2read.c: Undo inadvertent changes in previous commit.
596 2011-10-11 Sterling Augustine <saugustine@google.com>
598 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
601 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
603 * symfile.c (separate_debug_file_exists): Fix condition.
605 2011-10-11 David S. Miller <davem@davemloft.net>
607 * regcache.c (regcache_restore): Do not write unavailable regs, mark
609 * regcache.h (regcache_restore): Remove declaration.
611 * gdbarch.sh: New field 'long_long_align_bit'.
612 * gdbarch.c, gdbarch.h: Regenerate.
613 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
614 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
616 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
619 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
620 Support @entry in input expressions.
621 * c-exp.y (ENTRY, unknown_cpp_name): New.
622 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
623 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
624 (variable: name_not_typename '@' ENTRY, name: ENTRY)
625 (name_not_typename: ENTRY): New.
626 (yylex): Recognize ENTRY.
628 Reimplement @entry in input expressions.
629 * c-exp.y (ENTRY): New.
630 (variable: name_not_typename ENTRY): New.
631 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
633 2011-10-11 Pedro Alves <pedro@codesourcery.com>
635 * linux-nat.c (linux_handle_extended_wait): Always dump both the
636 parent and child's pids as soon as we detect a clone event.
637 Adjust another debug message.
639 2011-10-11 Pedro Alves <pedro@codesourcery.com>
641 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
642 not zombie instead of reading the whole file.
644 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
646 Fix separate debuginfo warning with "remote:" access.
647 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
648 * symfile.c (get_file_crc): New function with the code moved from ...
649 (separate_debug_file_exists): ... this function, specifically variables
650 buffer and count. New variable verified_as_different, set it. Remove
651 file_crc initialization. Verify also if both files are not the same
654 2011-10-11 Yao Qi <yao@codesourcery.com>
656 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
659 2011-10-10 Doug Evans <dje@google.com>
661 * linux-thread-db.c (thread_db_new_objfile): Only try to load
662 libthread_db when we load libpthread or the main symbol file.
663 (thread_db_inferior_created): New function.
664 (_initialize_thread_db): Attach inferior_created observer.
665 * linux-nat.c (linux_child_post_attach): Remove call to
667 (linux_child_post_startup_inferior): Ditto.
668 * objfiles.h (OBJF_MAINLINE): Define.
669 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
670 allocate_objfile when appropriate.
672 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
675 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
676 Remove unused variables.
677 (get_linux_version): Remove function.
678 (_initialize_arm_linux_nat): Do not call it.
680 2011-10-10 Pedro Alves <pedro@codesourcery.com>
682 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
683 new clone lwp if the core asked it to stop. Don't pass on
684 unexpected signals to the new clone; leave them pending instead.
686 2011-10-10 Pedro Alves <pedro@codesourcery.com>
688 * linux-nat.c (resume_lwp): Remove redundant debug output.
690 2011-10-10 Pedro Alves <pedro@codesourcery.com>
692 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
693 last_resume_kind before clearing it, and use the copy instead to
694 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
695 resume_clear_callback in the non-stop path too.
697 2011-10-09 Yao Qi <yao@codesourcery.com>
699 * valprint.c (value_check_printable): Add one parameter OPTIONS.
700 Honor OPTIONS and VAL's type.
701 (common_val_print, value_print): Update to pass one more parameter.
703 2011-10-09 Doug Evans <dje@google.com>
705 Add new "alias" command.
706 * NEWS: Mention new command.
707 * command.h (valid_user_defined_cmd_name_p): Declare.
708 * defs.h (make_cleanup_dyn_string_delete): Declare.
709 * utils.c: #include "dyn-string.h".
710 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
711 * cli/cli-cmds.c: #include "dyn-string.h".
712 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
713 (init_cli_cmds): Add new command.
714 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
716 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
718 Fix compatibility with older GCCs.
719 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
720 * stack.c (read_frame_arg): Initialize val_deref.
722 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
724 Entry values NEWS entries, DWARF disassembly support.
725 * NEWS: New entry values entry.
726 (set print entry-values, show print entry-values)
727 (set debug entry-values, show debug entry-values): New entries.
728 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
729 indent. Remove variable start. Move header printing out. Respect
730 INDENT. Support DW_OP_GNU_entry_value.
731 (locexpr_describe_location_1): Move the header printing here, extend
732 the disassemble_dwarf_expression passed parameters.
734 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
736 Display @entry parameter values even for references.
737 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
738 coerce_ref_if_computed.
739 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
740 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
741 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
742 existing push_dwarf_reg_entry_value call. Add new detection calling
743 dwarf_block_to_dwarf_reg_deref. Update the error message.
744 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
746 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
747 parameter deref_size, describe it in the comment.
748 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
749 (dwarf_block_to_dwarf_reg_deref): New declaration.
750 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
751 deref_size, describe it in the function comment. New variables
752 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
753 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
754 describe it in the function comment. Fetch the alternative block
755 accoring to DEREF_SIZE.
756 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
757 (entry_data_value_free_closure, entry_data_value_funcs): New.
758 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
759 outer_val, target_val, val and addr. Try to fetch and create also
760 referenced value content.
761 (pieced_value_funcs): NULL value for coerce_ref.
762 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
763 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
764 coerce_ref_if_computed.
765 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
766 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
767 * stack.c (read_frame_arg): Compare also dereferenced values.
768 * value.c (value_computed_funcs): Make the parameter v const, use
769 value_lval_const for it.
770 (value_lval_const, coerce_ref_if_computed): New function.
771 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
772 * value.h (struct lval_funcs): New field coerce_ref.
773 (value_computed_funcs): Make the parameter v const.
774 (value_lval_const, coerce_ref_if_computed): New declarations.
776 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
778 Support @entry in input expressions.
779 * c-exp.y (ENTRY, unknown_cpp_name): New.
780 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
781 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
782 (variable: name_not_typename '@' ENTRY, name: ENTRY)
783 (name_not_typename: ENTRY): New.
784 (yylex): Recognize ENTRY.
785 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
786 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
788 * parse.c (operator_length_standard): Likewise.
789 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
791 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
793 Display referenced values in backtraces.
794 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
795 * stack.c (print_frame_arg): Likewise.
797 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
799 Make some lval_funcs methods to default on NULL.
800 * valops.c (value_fetch_lazy): Check if lval_computed read method is
802 (value_assign): Check if lval_computed write method is NULL.
803 * value.h (struct lval_funcs): Comment NULL values for read and write
806 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
808 Display @entry parameter values (without references).
809 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
811 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
813 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
815 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
816 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
818 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
819 (loclist_read_variable_at_entry): New function.
820 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
821 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
822 DW_AT_location, call dwarf_block_to_sp_offset for it.
823 * frame.h (print_entry_values_no, print_entry_values_only)
824 (print_entry_values_preferred, print_entry_values_if_needed)
825 (print_entry_values_both, print_entry_values_compact)
826 (print_entry_values_default, print_entry_values): New declarations.
827 (struct frame_arg): New field entry_kind.
828 (read_frame_arg): New parameter entryargp.
829 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
830 arg->entry_kind. Optionally print the `@entry' suffix.
831 (list_args_or_locals): New variable entryarg, initialize it.
832 Initialize also entry_kind of arg and entryarg. Conditionalize
833 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
834 xfree for entryarg.error.
835 * stack.c (print_entry_values_no, print_entry_values_only)
836 (print_entry_values_preferred, print_entry_values_if_needed)
837 (print_entry_values_both, print_entry_values_compact)
838 (print_entry_values_default, print_entry_values_choices)
839 (print_entry_values): New variables.
840 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
841 print the `@entry' suffix, possibly in combination for
842 print_entry_values_compact.
843 (read_frame_arg): New parameter entryargp, new variables entryval,
844 entryval_error and val_equal. Read in also entryargp, respect
845 print_entry_values, compare the values using val_equal, fill in also
846 argp->entry_kind (together with entryargp->entry_kind).
847 (print_frame_args): New variable entryarg, initialize it.
848 Conditionalize print_frame_arg for arg, add print_frame_arg for
849 entryarg. Call xfree for entryarg.error.
850 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
851 * symtab.h (struct symbol_computed_ops): New field
852 read_variable_at_entry.
854 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
857 * frame.h (struct frame_arg): New definition.
858 (read_frame_arg): New declaration.
859 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
860 (list_args_or_locals): ... the code here. New variable arg, call
861 read_frame_arg and list_arg_or_local with it. Unify the
862 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
864 * stack.c (print_frame_arg): New functiom from the code of
866 (read_frame_arg): New function.
867 (print_frame_args): Remove variable val. New variable arg, call
868 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
870 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
872 Protect entry values against self tail calls.
873 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
874 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
876 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
878 Recognize virtual tail call frames.
879 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
880 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
881 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
882 * dwarf2-frame-tailcall.c: New file.
883 * dwarf2-frame-tailcall.h: New file.
884 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
885 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
886 REGS.PREV only after CIE execution.
887 (struct dwarf2_frame_cache): New field tailcall_cache.
888 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
889 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
890 parts, try to find entry_cfa_sp_offset. Call
891 dwarf2_tailcall_sniffer_first.
892 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
894 (dwarf2_frame_dealloc_cache): New function.
895 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
896 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
897 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
898 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
899 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
900 * dwarf2loc.c (func_addr_to_tail_call_list)
901 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
902 (call_site_find_chain_1, call_site_find_chain): New.
903 * dwarf2loc.h (struct call_site_chain): New.
904 (call_site_find_chain): New declaration.
905 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
906 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
907 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
908 * stack.c (frame_info): Support also TAILCALL_FRAME.
910 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
912 Tail call sites reader implementation.
913 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
914 fill in TYPE_TAIL_CALL_LIST.
915 * gdbtypes.h (struct func_type): New field tail_call_list.
916 (struct call_site): New field tail_call_next.
917 (TYPE_TAIL_CALL_LIST): New definition.
919 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
921 Implement basic support for DW_TAG_GNU_call_site.
922 * block.c: Include gdbtypes.h and exceptions.h.
923 (call_site_for_pc): New function.
924 * block.h (call_site_for_pc): New declaration.
925 * defs.h: Include hashtab.h.
926 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
928 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
929 ctx_no_push_dwarf_reg_entry_value.
930 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
931 (dwarf_block_to_dwarf_reg): New function.
932 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
933 (ctx_no_push_dwarf_reg_entry_value): New function.
934 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
935 push_dwarf_reg_entry_value.
936 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
938 * dwarf2loc.c: Include gdbcmd.h.
939 (dwarf_expr_ctx_funcs): New forward declaration.
940 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
941 (dwarf_expr_reg_to_entry_parameter)
942 (dwarf_expr_push_dwarf_reg_entry_value): New.
943 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
944 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
945 (needs_dwarf_reg_entry_value): New function.
946 (needs_frame_ctx_funcs): Install it.
947 (_initialize_dwarf2loc): New function.
948 * dwarf2loc.h (entry_values_debug): New declaration.
949 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
950 (read_call_site_scope): New forward declaration.
951 (process_full_comp_unit): Copy call_site_htab.
952 (process_die): Support DW_TAG_GNU_call_site.
953 (read_call_site_scope): New function.
954 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
955 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
956 (cleanup_htab): Delete.
957 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
958 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
959 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
960 FIELD_LOC_KIND_DWARF_BLOCK.
961 * gdbtypes.h (enum field_loc_kind): New entry
962 FIELD_LOC_KIND_DWARF_BLOCK.
963 (struct main_type): New loc entry dwarf_block.
964 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
965 (TYPE_FIELD_DWARF_BLOCK): New.
966 * python/py-type.c: Include dwarf2loc.h.
967 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
968 internal_error call on unknown FIELD_LOC_KIND.
969 * symtab.h (struct symtab): New field call_site_htab.
970 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
971 (core_addr_hash, core_addr_eq): New functions.
973 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
976 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
977 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
978 calling_convention under func_stuff there.
979 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
980 (init_type) <TYPE_CODE_FUNC>: Likewise.
981 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
982 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
983 * gdbtypes.h (enum type_specific_kind): Change
984 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
985 (struct main_type) <type_specific>: Change calling_convention to
986 func_stuff. Move calling_convention to ...
987 (struct func_type): ... this new struct.
988 (INIT_FUNC_SPECIFIC): New #define.
989 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
991 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
993 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
994 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
995 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
996 ctx->ref_addr_size. Handle its invalid value.
997 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
998 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
999 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1000 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1001 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1002 (dwarf2_per_cu_ref_addr_size): New function.
1004 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1007 * dwarf2read.c (per_cu_header_read_in): New function.
1008 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1009 variables cu_header_local and cu_headerp.
1011 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1013 Fix initial language detection with -readnow.
1014 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1015 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1016 searches only for global symbols.
1018 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1020 Fix printed anonymous struct name.
1021 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1022 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1023 (anonymous_struct_prefix): New function.
1024 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1025 (dwarf2_name): Strip for anonymous structs any prefixes.
1027 2011-10-07 Doug Evans <dje@google.com>
1029 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1032 * python/lib/gdb/printing.py: Whitespace cleanup.
1034 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1037 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1039 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1040 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1041 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1042 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1043 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1044 (arm_linux_remove_watchpoint): Adjust.
1045 * i386-linux-nat.c (i386_linux_dr_set_control)
1046 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1047 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1048 (ia64_linux_remove_watchpoint): Adjust.
1049 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1050 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1051 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1052 (ppc_linux_insert_mask_watchpoint)
1053 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1054 (ppc_linux_remove_watchpoint): Adjust.
1055 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1058 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1060 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1061 (clear_win32_environment): New function for Cygwin to clear out
1063 (windows_create_inferior): Prepare new environment from in_env
1066 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1069 * python/py-value.c (valpy_call): Check that arguments are
1071 (is_intlike): Remove call to CHECK_TYPEDEF.
1072 (valpy_nonzero): Catch GDB exceptions.
1073 (valpy_absolute): Ditto.
1074 (valpy_lazy_string): Ditto.
1075 (valpy_call): Ditto.
1076 (valpy_get_is_optimized_out): Ditto.
1077 (valpy_long): Ditto.
1078 (valpy_float): Ditto.
1079 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1080 (valpy_richcompare): Ditto.
1082 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1084 * inferior.h (disable_randomization): Declare.
1085 * infrun.c (disable_randomization): New global variable.
1086 (show_disable_randomization): New function.
1087 (set_disable_randomization): Likewise.
1088 (_initialize_infrun): Install set/show disable-randomization
1090 * linux-nat.c (disable_randomization): Remove.
1091 (show_disable_randomization): Likewise.
1092 (set_disable_randomization): Likewise.
1093 (_initialize_linux_nat): No longer install set/show
1094 disable-randomization commands here.
1095 (linux_nat_supports_disable_randomization): New function.
1096 (linux_nat_add_target): Install it.
1097 * remote.c (PACKET_QDisableRandomization): New enum value.
1098 (remote_protocol_packets): Support QDisableRandomization.
1099 (_initialize_remote): Likewise.
1100 (remote_supports_disable_randomization): New function.
1101 (init_remote_ops): Install it.
1102 (extended_remote_supports_disable_randomization): New function.
1103 (init_extended_remote_ops): Install it.
1104 (extended_remote_disable_randomization): New function.
1105 (extended_remote_create_inferior_1): Call it.
1106 * target.h (struct target_ops): Add to_supports_disable_randomization.
1107 (target_supports_disable_randomization): Add prototype.
1108 * target.c (target_supports_disable_randomization): New function.
1109 (find_default_supports_disable_randomization): Likewise.
1110 (init_dummy_target): Install it.
1112 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1114 Allow Python notification of new object-file loadings.
1115 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1116 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1117 Add build rule for this file.
1118 * python/py-event.h (emit_new_objfile_event): New prototype.
1119 (newobjfile): New Python event emitter.
1120 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1121 Python event registry.
1122 * python/py-inferior.c: Include objfiles.h
1123 (python_new_objfile): New function.
1124 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1126 * python/py-newobjfileevent.c: New file.
1127 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1129 * python/python.c (_initialize_python): Add
1130 gdbpy_initialize_new_objfile_event call.
1131 * NEWS: Add item for new Python event "gdb.newobjfile"
1133 2011-10-05 Tristan Gingold <gingold@adacore.com>
1135 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1136 Extract the ravenscar task name from the symbol for the atcb.
1138 2011-10-04 Paul Koning <paul_koning@dell.com>
1140 * python/py-type.c (typy_make_iter): Add forward declaration.
1141 (typy_fields_items): Use the gdb.Type iterator.
1143 2011-10-04 Paul Koning <paul_koning@dell.com>
1145 * NEWS: Add entry for Python gdb.Type mapping methods.
1147 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1149 PR python/12691: Add the inferior to Python exited event
1150 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1152 * python/py-event.h (emit_exited_event): Likewise
1153 * python/-inferior.c (python_inferior_exit): Likewise
1155 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1157 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1158 in output of -ada-task-info GDB/MI command.
1160 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1162 * ada-lang.h (struct inferior): Declare.
1163 (print_ada_task_info): Add declaration.
1164 * ada-tasks.c (print_ada_task_info): Make non-static.
1165 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1166 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1167 * mi/mi-main.c: #include "ada-lang.h".
1168 (mi_cmd_list_features): Add "ada-task-info" to the list
1169 of supported features.
1170 (mi_cmd_ada_task_info): New function.
1172 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1174 * python/python.c (python_run_simple_file): New function.
1175 (source_python_script, source_python_script_for_objfile):
1176 Replace call to PyRun_SimpleFile by call to
1177 python_run_simple_file.
1179 2011-10-03 Paul Koning <paul_koning@dell.com>
1181 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1182 (value_to_value_object): Fetch value if it was lazy.
1184 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1187 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1188 Rearrange the code for it.
1190 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1192 * breakpoint.c (bkpt_print_recreate): Add call to
1193 print_recreate_thread.
1195 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1197 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1198 PTRACE_GETFDPIC_INTERP): Define.
1200 2011-09-28 Yao Qi <yao@codesourcery.com>
1202 * symfile.c (add_symbol_file_command): Update message on usage.
1204 2011-09-28 Paul Koning <paul_koning@dell.com>
1206 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1207 (typy_length, typy_get, typy_has_key, typy_make_iter)
1208 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1209 (typy_iterator_iter, typy_iterator_iternext)
1210 (typy_iterator_dealloc): New functions to implement standard
1211 Python mapping methods on gdb.Type object.
1212 (gdb.TypeIterator): New Python type.
1213 * python/python-internal.h (gdbpy_iter_kind): New enum.
1215 2011-09-28 David S. Miller <davem@davemloft.net>
1217 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1218 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1219 * sparc-tdep.c (sparc_complex_floating_p): New function.
1220 (sparc32_store_arguments): Handle complex floats.
1221 (sparc32_extract_return_value): Likewise.
1222 (sparc32_store_return_value): Likewise.
1223 (sparc32_stabs_argument_has_addr): Likewise.
1224 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1225 (sparc64_store_floating_fields): Handle complex floats.
1226 (sparc64_store_arguments): Likewise.
1227 (sparc64_store_return_value): Likewise.
1229 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1231 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1232 before the change on 2006-12-09.
1233 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1234 generates the environment block for CreateProcessA, modulo the
1235 Cygwin-specific parts that are not needed here.
1237 2011-09-27 Tristan Gingold <gingold@adacore.com>
1239 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1240 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1241 (darwin_solib_get_all_image_info_addr_at_init): New function.
1242 (darwin_solib_read_all_image_info_addr): Likewise.
1243 (darwin_solib_create_inferior_hook): Use the above two functions.
1244 * darwin-nat.c (darwin_execvp): Renames retval to res.
1245 (darwin_read_write_inferior): Update comment.
1246 (darwin_read_dyld_info): New function.
1247 (darwin_xfer_partial): Handle DYLD_INFO.
1249 2011-09-27 Stan Shebs <stan@codesourcery.com>
1251 Add return address collection for tracepoints.
1252 * tracepoint.c (encode_actions_1): Add case for $_ret.
1253 (validate_actionline): Check for $_ret.
1254 (trace_dump_actions): Ditto.
1255 * ax-gdb.h (gen_trace_for_return_address): Declare.
1256 * ax-gdb.c: Include arch-utils.h.
1257 (gen_trace_for_return_address): New function.
1258 (agent_command): Add return address special case.
1259 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1260 (amd64_gen_return_address): New function.
1261 (amd64_init_abi): Call it.
1262 * i386-tdep.c: Include ax.h and ax-gdb.h.
1263 (i386_gen_return_address): New function.
1264 (i386_init_abi): Call it.
1265 * arch-utils.h (default_gen_return_address): Declare.
1266 * arch-utils.c (default_gen_return_address): New function.
1267 * gdbarch.sh (gen_return_address): New method.
1268 * gdbarch.h, gdbarch.c: Regenerate.
1270 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1273 * i386-tdep.c (i386_frame_align): New.
1274 (i386_gdbarch_init): Use i386_frame_align.
1276 2011-09-23 Yao Qi <yao@codesourcery.com>
1278 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1281 2011-09-22 Tristan Gingold <gingold@adacore.com>
1283 * fork-child.c (fork_inferior): Add exec_fun parameter.
1284 Call exec_fun or execvp.
1285 * inferior.h: Adjust prototype.
1286 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1287 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1288 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1289 * procfs.c (procfs_create_inferior): Ditto.
1290 * darwin-nat.c (darwin_execvp): New function.
1291 (darwin_create_inferior): Use it.
1293 2011-09-22 Yao Qi <yao@codesourcery.com>
1295 * infrun.c (context_switch): Print debug message when switching to
1298 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1300 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1301 complex and vector types.
1302 (s390_return_value_convention): Likewise.
1304 (s390_value_from_register): Call check_typedef.
1305 (extend_simple_arg): Likewise.
1306 (alignment_of): Likewise.
1307 (s390_push_dummy_call): Likewise.
1308 (s390_return_value): Likewise.
1310 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1312 * event-top.c (async_disconnect): If an exception is thrown from
1313 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1315 * top.c (quit_cover): Return void and take no arguments.
1316 * top.h (quit_cover): Update prototype.
1318 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1320 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1321 current_uiout, not uiout.
1323 2011-09-19 Doug Evans <dje@google.com>
1325 * python/py-auto-load.c (source_section_scripts): Fix file
1327 * python/python.c (source_python_script_for_objfile): Tweak comments.
1329 2011-09-18 Yao Qi <yao@codesourcery.com>
1330 Ulrich Weigand <ulrich.weigand@linaro.org>
1332 Support displaced stepping for Thumb 16-bit insns.
1333 * arm-tdep.c (THUMB_NOP) Define.
1334 (thumb_copy_unmodified_16bit): New.
1335 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1336 (thumb_copy_alu_reg): New.
1337 (arm_copy_svc): Move some common code to ...
1338 (install_svc): ... here. New.
1339 (thumb_copy_svc): New.
1340 (install_pc_relative): New.
1341 (thumb_copy_pc_relative_16bit): New.
1342 (thumb_decode_pc_relative_16bit): New.
1343 (thumb_copy_16bit_ldr_literal): New.
1344 (thumb_copy_cbnz_cbz): New.
1345 (cleanup_pop_pc_16bit_all): New.
1346 (thumb_copy_pop_pc_16bit): New.
1347 (thumb_process_displaced_16bit_insn): New.
1348 (thumb_process_displaced_32bit_insn): New.
1349 (thumb_process_displaced_insn): process thumb instruction.
1351 Support displaced stepping for Thumb 32-bit insns.
1352 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1353 (thumb2_copy_preload): New.
1354 (thumb2_copy_copro_load_store): New.
1355 (thumb2_copy_b_bl_blx): New.
1356 (thumb2_copy_alu_imm): New.
1357 (thumb2_copy_load_reg_imm): New.
1358 (thumb2_copy_load_literal): New
1359 (thumb2_copy_block_xfer): New.
1360 (thumb_32bit_copy_undef): New.
1361 (thumb_32bit_copy_unpred): New.
1362 (thumb2_decode_ext_reg_ld_st): New.
1363 (thumb2_decode_svc_copro): New.
1364 (decode_thumb_32bit_store_single_data_item): New.
1365 (thumb_copy_pc_relative_32bit): New.
1366 (thumb_decode_pc_relative_32bit): New.
1367 (decode_thumb_32bit_ld_mem_hints): New.
1368 (thumb2_copy_table_branch): New
1369 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1372 2011-09-18 Yao Qi <yao@codesourcery.com>
1374 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1375 (install_b_bl_blx): Likewise.
1377 2011-09-17 Yao Qi <yao@codesourcery.com>
1379 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1380 (install_load_store): ... this. New.
1381 Change parameter BYTE to SIZE.
1382 (arm_copy_ldr_str_ldrb_strb): Update caller.
1383 (arm_decode_ld_st_word_ubyte): Update caller.
1385 2011-09-17 Yao Qi <yao@codesourcery.com>
1387 * infrun.c (displaced_step_fixup): Move some code ...
1388 (displaced_step_restore): ... here. New function.
1389 (handle_inferior_event): Cleanup displaced stepping state for both
1390 child and parent when get forked or vforked event.
1391 * regcache.c (get_thread_arch_aspace_regcache): New function.
1392 get_thread_arch_regcache (): Call it.
1394 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1396 * ada-tasks.c (print_ada_task_info): New function, merging
1397 short_task_info and info_tasks together. Reimplement using
1398 ui-out instead of printing to stdout directly. Move the code
1399 building and checking the task list here, instead of leaving it
1400 in info_tasks_command.
1401 (info_task): Move the code building and checking the task
1402 list here, instead of leaving it in info_tasks_command.
1403 (info_tasks_command): Delete code building and checking
1404 the task list - moved elsewhere. Update calls to info_tasks
1407 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1409 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1411 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1413 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1415 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1417 * ada-lang.h (ada_build_task_list): Remove parameter
1419 * ada-tasks.c (ada_build_task_list): Remove parameter
1420 `warn_if_null'. Adjust implementation and documentation.
1421 (valid_task_id, ada_get_environment_task)
1422 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1423 (info_tasks_command): Adjust implementation.
1424 (task_command): Likewise.
1425 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1426 to ada_build_task_list.
1428 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1430 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1431 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1432 (ada_tasks_inferior_data_handle): New static global.
1433 (get_ada_tasks_inferior_data): New function.
1434 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1435 (ada_get_environment_task, iterate_over_live_ada_tasks)
1436 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1438 (ada_set_current_inferior_known_tasks_addr): New function.
1439 (read_known_tasks, ada_build_task_list, short_task_info)
1440 (info_tasks, info_task, info_tasks_command, task_command_1)
1441 (task_command, ada_task_list_changed): Adjust.
1442 (ada_tasks_invalidate_inferior_data): New function.
1443 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1444 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1445 * ada-lang.h (struct inferior): Add declaration.
1446 (ada_task_list_changed): Update profile.
1447 * remote-wtx-pd.c: #include "inferior.h".
1448 (switch_to_pd_internal): Update call to ada_task_list_changed.
1450 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1452 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1453 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1454 (atcb_fieldno): Delete these static globals.
1455 (struct ada_tasks_pspace_data): New struct.
1456 (ada_tasks_pspace_data_handle): New static global.
1457 (get_ada_tasks_pspace_data): New function.
1458 (ada_tasks_invalidate_pspace_data): New function.
1459 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1460 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1461 (_initialize_tasks): Create this module's per-progspace
1464 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1466 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1468 2011-09-16 Tristan Gingold <gingold@adacore.com>
1470 * fork-child.c (fork_inferior): Update comment. Use alloca
1471 instead of xmalloc for argv. Move len and shell_command
1472 declarations in the block where they are used.
1473 Only call execvp. Factorize failure code.
1475 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1478 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1479 `exp_element' instead of an element of the same and make the function
1481 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1482 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1483 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1484 Change argument of `write_exp_elt' function call.
1485 Remove extra spaces from comments.
1486 * parser-defs.h (write_exp_elt): Remove prototype.
1488 2011-09-15 Paul Koning <paul_koning@dell.com>
1490 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1491 count of item appended to list.
1492 * python/py-type.c (typy_fields): Likewise.
1494 2011-09-15 Paul Koning <paul_koning@dell.com>
1496 * MAINTAINERS (Write After Approval): Add myself to the list.
1498 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1501 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1502 processes with multiple threads.
1503 (inf_has_multiple_thread_cb): New function.
1504 (inf_has_multiple_threads): New function.
1506 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1508 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1509 * python/py-inferior.c (GdbMethods): New Python method definition.
1511 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1513 Handle multiple breakpoint hits in Python interface:
1514 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1515 variable to breakpoints.
1516 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1517 bps instead of single breakpoint. Fix some space typos.
1518 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1519 variable to breakpoints.
1521 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1523 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1524 note if the breakpoint is internal.
1526 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1528 * MAINTAINERS (Write After Approval): Add myself to the list
1530 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1532 * infrun.c (prepare_for_detach, wait_for_inferior)
1533 (fetch_inferior_event): Don't flush the register cache.
1534 * remote.c (struct stop_reply) <regcache>: Add comment.
1536 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1538 Remove excessive DWARF expressions memory duplication.
1539 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1541 (indirect_pieced_value): Remove variable result. Remove variable
1542 back_to and its use for baton.data.
1543 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1545 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1546 Update the function comment.
1548 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1550 * inferior.h (ALL_INFERIORS): New.
1551 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1552 for a stopped thread.
1553 (thread_db_find_new_threads): Look for threads in all inferiors.
1555 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1557 * breakpoint.c (update_watchpoint): Handle the case of the
1558 watchpoint to update not being in the breakpoint list yet.
1559 (hw_watchpoint_use_count): New, factored out from
1560 hw_watchpoint_used_count.
1561 (hw_watchpoint_used_count): Rename to ...
1562 (hw_watchpoint_used_count_others): ... this. Add `except'
1563 parameter. Don't count resources of `except'. Use
1564 hw_watchpoint_use_count.
1566 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1568 * gdbthread.h (enum thread_state): Moved here.
1569 (struct thread_info): Rename `executing_' field to `executing' and
1570 `state_' to `state'.
1571 * thread.c (enum thread_state): Moved to gdbthread.h.
1572 (new_thread, add_thread_silent, delete_thread_1)
1573 (any_live_thread_of_process, thread_alive, set_running)
1574 (set_running, is_thread_state, any_running, is_executing)
1575 (set_executing, finish_thread_state, print_thread_info)
1576 (do_captured_thread_select): Adjust.
1578 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1581 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1583 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1584 Matt Rice <ratmice@gmail.com>
1588 * interps.c (struct interp) <interpreter_out>: Delete field.
1589 (interp_new): Remove the data and uiout parameters and adjust.
1590 (interp_set): Only set the current_uiout from the interpreter's
1591 uiout after initializing the interpreter. Adjust call to
1593 (interp_ui_out): Adjust to call procs->ui_out_proc.
1594 (interp_data, interp_name): New.
1595 * interps.h (interp_init_ftype): Add `self' parameter.
1596 (interp_ui_out_ftype): New typedef.
1597 (struct interp_procs) <ui_out_proc>: New method pointer.
1598 (interp_new): Remove the data and uiout parameters.
1599 (interp_data, interp_name): Declare.
1600 * tui/tui-interp.c (tui_init): Adjust prototype.
1602 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1603 tui_out here. Adjust call to interp_new.
1604 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1605 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1607 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1608 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1609 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1610 Initialize mi->uiout depending on the mi_version as extracted from
1611 the interpreter's name.
1613 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1614 interp_new. Don't allocate the ui_out's of the interpreters here.
1616 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1618 * solib.c (solib_used): New function.
1619 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1620 by another so_list object before freeing it.
1622 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1625 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1628 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1631 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1632 (amd64_skip_xmm_prologue): ... this new function. Describe its
1633 parameters. No longer use amd64_prologue_line_bug.
1634 * defs.h (producer_is_gcc_ge_4): New declaration.
1635 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1636 (process_full_comp_unit): Update its caller. Remove
1637 amd64_prologue_line_bug initialization.
1638 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1639 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1641 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1643 * linux-nat.h (enum resume_kind): New.
1644 (struct lwp_info) <last_resume_kind>: New field.
1645 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1646 resume_stop on the new lwp.
1647 (add_lwp): Set last_resume_kind as resume_continue by default.
1648 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1649 (resume_lwp): New, factored out from resume_callback. Also check
1650 for pending status in lp->waitstatus.
1651 (resume_callback): Reimplement.
1652 (resume_clear_callback): Set last_resume_kind as resume_stop.
1653 (resume_set_callback): Set last_resume_kind as resume_continue.
1654 (linux_nat_resume, linux_handle_extended_wait): Set
1656 (running_callback): Also check lp->waitstatus for pending events.
1657 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1659 (stop_and_resume_callback): Don't re-resume if the core wanted the
1660 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1661 using an invalidated pointer.
1662 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1663 SIGSTOPs if the core wanted the LWP to stop.
1664 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1665 wanted the lwp to stop. If the core wanted the lwp to stop, and
1666 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1667 of TARGET_SIGNAL_STOP.
1668 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1669 here. Instead, signal the lwp, and set the last_resume_kind to
1672 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1674 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1675 -1 (error), if the lwp exits right after attaching.
1677 2011-09-08 Doug Evans <dje@google.com>
1679 * py-cmd.c: Some minor formatting fixes.
1680 (gdbpy_parse_command_name): Rename text arg to name, make const.
1681 All callers updated.
1682 * python-internal.h (gdbpy_parse_command_name): Update.
1684 * cli/cli-decode.c (add_cmd): Add comment.
1686 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 PR breakpoints/12435
1689 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1690 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1691 * dwarf2read.c (process_full_comp_unit): Initialize
1692 amd64_prologue_line_bug.
1693 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1695 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1697 Fix TUI screen corruption.
1698 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1701 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1703 * findvar.c (read_var_value): Never return NULL, throw an error
1704 instead. Update the function comment. State symbol name in the error
1706 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1708 * stack.c (print_frame_args): Likewise.
1709 * valops.c (value_of_variable): Likewise.
1711 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1713 * stack.c (print_frame_args): New variable except. Wrap
1714 read_var_value and common_val_print into TRY_CATCH.
1716 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1719 caller to value_of_this.
1720 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1722 * valops.c (value_of_this): Remove parameter complain and variable ret.
1723 Update function comment. Never return NULL by this code.
1724 (value_of_this_silent): New function.
1725 * value.h (value_of_this): Remove parameter complain.
1726 (value_of_this_silent): New declaration.
1728 2011-09-07 Yao Qi <yao@codesourcery.com>
1730 * gdbthread.h (struct thread_info): Remove fields
1731 `stepping_through_solib_after_catch' and
1732 `stepping_through_solib_catchpoints'.
1733 * infrun.c (init_thread_stepping_state): Update.
1734 (process_event_stop_test, currently_stepping): Update.
1735 (currently_stepping_or_nexting_callback): Update.
1737 2011-09-07 Yao Qi <yao@codesourcery.com>
1739 * gdbthread.h (struct thread_info): Comment on field
1740 `step_after_step_resume_breakpoint'.
1742 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1744 * remote.c (remote_console_output): Reindent.
1746 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1748 * frame.c (has_stack_frames): Check for currently selected
1751 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1753 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1754 (set_async_annotation_level, set_async_prompt, pop_prompt)
1755 (push_prompt, new_async_prompt): Delete declarations.
1756 * top.h (get_prompt, set_prompt): Change prototype.
1757 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1759 * top.c (command_loop):
1760 (top_prompt): New global.
1761 (get_prefix, set_prefix, get_suffix, ): Delete.
1762 (get_prompt, set_prompt): Rewrite.
1763 (show_new_async_prompt): Rename to ...
1764 (show_prompt): ... this.
1765 (init_main): Adjust. Don't handle --annotate=2 here.
1766 * event-top.c (new_async_prompt): Delete.
1767 (the_prompts): Delete.
1768 (more_to_come): Make static.
1769 (display_gdb_prompt): Use top_level_prompt() to compute the top
1770 level prompt, and don't notify the before_prompt observers
1771 directly here. Always trick readline into not trying to display
1772 the prompt if sync_execution and displaying the primary prompt.
1773 If displaying a local/secondary prompt, always show it, even if
1774 sync_execution is set.
1775 (change_annotation_level): Delete.
1776 (top_level_prompt): New, based on change_annotation_level.
1777 (push_prompt, pop_prompt): Delete.
1778 (async_disable_stdin): No longer pushes prompt.
1779 (command_line_handler): No longer pushes or pops prompt. If more
1780 input is expected, call display_gdb_prompt with an explicit empty
1782 (async_stop_sig): Adjust.
1783 (set_async_annotation_level, set_async_prompt): Delete.
1784 * python/python.c (before_prompt_hook): Adjust.
1786 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1790 * infrun.c (fetch_inferior_event): Check if there's a selected
1791 thread before checking if the selected thread is executing.
1793 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1795 * inf-loop.c (execute_command): Don't check if the current thread
1796 if running before synchronously waiting for command completion.
1797 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1799 (normal_stop): Call async_enable_stdin here.
1800 * inf-loop.c (inferior_event_handler): Don't call
1801 async_enable_stdin, nor handle "set exec-done-display" here.
1803 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1807 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1809 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1811 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1813 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1815 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1817 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1819 2011-09-02 Matt Rice <ratmice@gmail.com>
1822 * event-top.c (cli_command_loop): Replace readline setup with
1823 direct call to display_gdb_prompt.
1824 (display_gdb_prompt): Do not call observer mechanism during
1825 synchronous execution.
1827 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1829 * linux-nat.c (in_pid_list_p): New.
1830 (linux_record_stopped_pid): Delete.
1831 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1832 already attached to the LWP. Return an indication if so.
1833 (linux_nat_filter_event): Adjust.
1834 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1835 returning an indication to ignore this thread.
1837 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1839 * top.c: Include interps.h.
1840 (execute_command): If the target can async, but the interpreter is
1841 in sync mode, synchronously wait for the command to finish before
1843 (execute_command_to_string): Force the interpreter to sync mode.
1844 * infrun.c: Include interps.h.
1845 (fetch_inferior_event): Don't restore the prompt yet if the
1846 interpreter is in sync mode.
1847 * interps.c (interpreter_async): New global.
1848 * interps.h (interpreter_async): Declare.
1849 * inf-loop.c: Include interps.h.
1850 (inferior_event_handler): Don't print the language change or run
1851 breakpoint commands yet if the interpreter in is sync mode.
1852 * main.c (captured_command_loop): Flip the interpreter to async
1854 * cli/cli-script.c: Include interps.h.
1855 (execute_user_command, while_command, if_command): Force the
1856 interpreter to sync mode.
1857 * python/python.c: Include interps.h.
1858 (python_command, execute_gdb_command): Force the interpreter to
1861 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1863 * value.c (show_convenience): Catch errors thrown while printing
1864 each internal variable.
1865 * infrun.c (validate_siginfo_access): New function.
1866 (siginfo_value_read, siginfo_value_write): Call it.
1868 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1871 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1872 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1875 2011-08-29 Yao Qi <yao@codesourcery.com>
1877 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1879 (enable_break2): Update caller.
1880 * solib-frv.c (bfd_lookup_symbol): Removed.
1882 (enable_break2): Update caller.
1883 * solib-pa64.c (bfd_lookup_symbol): Removed.
1885 * solib-svr4.c (bfd_lookup_symbol): Removed.
1886 (cmp_name_and_sec_flags): New.
1887 (enable_break): Update caller.
1888 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1889 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1890 (gdb_bfd_lookup_symbol): New.
1891 * solib.h: Functions declarations.
1893 2011-08-29 Yao Qi <yao@codesourcery.com>
1895 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1898 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 Fix TUI stepi on code without symbols.
1901 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1904 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1907 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1908 and the static keyword.
1909 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1910 Make prefix an array.
1911 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1912 * mi/mi-main.c (get_register): Remove stb initialization and the static
1915 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 Code cleanup - make mi_opt const.
1918 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1920 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1921 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1922 (mi_cmd_env_dir): Likewise.
1923 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1924 (mi_cmd_target_file_put): Likewise.
1925 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1926 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1927 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1928 (mi_valid_noargs): Make opts const.
1929 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1930 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1931 (mi_cmd_data_read_memory): Likewise.
1932 (mi_cmd_data_read_memory_bytes): Likewise.
1933 (mi_cmd_data_write_memory): Likewise.
1935 2011-08-26 Matt Rice <ratmice@gmail.com>
1937 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1938 bcache_xmalloc, replace bcache_xmalloc with call to
1939 psymbol_bcache_init for psymbol_cache.
1940 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1942 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1944 * inf-loop.c (inferior_event_handler): Add exception_print in
1947 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1950 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1951 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1952 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1953 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1954 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1955 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1956 * infrun.c (fetch_inferior_event): Call
1957 make_bpstat_clear_actions_cleanup.
1958 * top.c (execute_command): New variable cleanup_if_error, call
1959 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1960 * utils.c (do_bpstat_clear_actions_cleanup)
1961 (make_bpstat_clear_actions_cleanup): New functions.
1963 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1965 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1966 either the parent or the child forks. Rename a couple locals.
1968 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1970 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1971 library call. Avoid reading the `status' local if all waitpid
1974 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1976 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1977 opening /proc/PID/task always succeeds.
1979 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1981 * linespec.c (symtab_from_filename): Check for the end of string.
1983 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1986 * varobj.c (cplus_describe_child): Add the keyword
1987 'class' to the output of the method when dealing
1988 with a cast to a base class.
1990 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 No functionality change.
1993 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1994 function comment a reference, new variables tp and bs, move here code
1995 from throw_exception.
1996 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1997 describe it in the comment.
1998 * exceptions.c (throw_exception): Remove variable tp, move the code for
1999 bpstat_clear_actions to bpstat_clear_actions.
2001 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2003 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2004 * linux-nat.c: Include linux-procfs.h.
2005 (linux_proc_get_tgid): Move to ...
2006 * common/linux-procfs.c: ... here. New file.
2007 * common/linux-procfs.h: New file.
2008 * linux-thread-db.c: Include linux-procfs.h.
2009 * Makefile.in: Update dependencies.
2010 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2011 * config/arm/linux.mh: Likewise.
2012 * config/i386/linux.mh: Likewise.
2013 * config/i386/linux64.mh: Likewise.
2014 * config/ia64/linux.mh: Likewise.
2015 * config/m32r/linux.mh: Likewise.
2016 * config/m68k/linux.mh: Likewise.
2017 * config/mips/linux.mh: Likewise.
2018 * config/pa/linux.mh: Likewise.
2019 * config/pa/linux.mh: Likewise.
2020 * config/powerpc/linux.mh: Likewise.
2021 * config/powerpc/ppc64-linux.mh: Likewise.
2022 * config/powerpc/spu-linux.mh: Likewise.
2023 * config/sparc/linux.mh: Likewise.
2024 * config/sparc/linux64.mh: Likewise.
2025 * config/xtensa/linux.mh: Likewise.
2027 2011-08-24 Hui Zhu <teawater@gmail.com>
2029 * tracepoint.c (cond_string_is_same): New function.
2030 (find_matching_tracepoint): Add condition check
2031 by cond_string_is_same.
2033 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2035 Fix build error in Darwin port.
2036 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2038 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2041 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2042 (command_line_is_silent): New function.
2043 (bpstat_do_actions_1): No longer use commands_left, use
2044 command_line_is_silent for commands.
2045 (bpstat_alloc): Remove clearing of commands_left.
2046 (bpstat_stop_status): Remove initialization of commands_left, use
2047 command_line_is_silent.
2048 * breakpoint.h (struct bpstats): Remove commands_left.
2050 2011-08-18 Keith Seitz <keiths@redhat.com>
2053 * cp-name-parser.y (struct demangle_info): Remove unused
2056 (allocate_info): Change return type to struct demangle_info *.
2057 Always allocate a new demangle_info.
2058 Remove unused PREV pointer.
2059 (cp_new_demangle_parse_info): New function.
2060 (cp_demangled_name_parse_free): New function.
2061 (do_demangled_name_parse_free_cleanup): New function.
2062 (make_cleanup_cp_demangled_name_parse_free): New function.
2063 (cp_demangled_name_to_comp): Change return type to
2064 struct demangle_parse_info *.
2065 Allocate a new storage for each call.
2066 (main): Update usage for cp_demangled_name_to_comp
2068 * cp-support.h (struct demangle_parse_info): New structure.
2069 (cp_demangled_name_to_comp): Update API change for
2071 (cp_new_demangle_parse_info): Declare.
2072 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2073 (cp_demangled_name_parse_free): Declare.
2074 * cp-support.c (cp_canonicalize_string): Update API
2075 change for cp_demangled_name_to_comp.
2076 (mangled_name_to_comp): Likewise.
2077 Return struct demangle_parse_info, too.
2078 (cp_class_name_from_physname): Update mangled_name_to_comp
2080 (method_name_from_physname): Likewise.
2081 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2082 (cp_remove_params): Likewise.
2083 * python/py-type.c (typy_legacy_template_argument): Likewise.
2085 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2086 (cp_merge_demangle_parse_infos): Declare.
2087 * cp-support.c (ignore_typedefs): New file global.
2088 (copy_string_to_obstack): New function.
2089 (inspect_type): New function.
2090 (replace_typedefs): New function.
2091 (replace_typedefs_qualified_name): New function.
2092 (cp_canonicalize_string_no_typedefs): New function.
2093 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2094 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2095 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2096 instead of cp_canonicalize_string.
2097 (find_method): Likewise.
2098 (decode_compound): Before looking up the name, call
2099 cp_canonicalize_string_no_typedefs.
2100 (decode_variable): Likewise.
2102 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2103 Tom Tromey <tromey@redhat.com>
2104 Matt Rice <ratmice@gmail.com>
2106 * python/lib/gdb/prompt.py: New file.
2107 * python/lib/gdb/command/prompt.py: New file.
2108 * NEWS: Document set extended-prompt and gdb.prompt library
2110 2011-08-16 Yao Qi <yao@codesourcery.com>
2112 * tic6x-linux-tdep.c: Move const arrays definition from here...
2113 * tic6x-tdep.c: to here ...
2115 2011-08-14 Yao Qi <yao@codesourcery.com>
2117 * NEWS: New port to Texas Instruments TMS320C6x.
2119 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2120 Bernd Schmidt <bernds@codesourcery.com>
2121 Yao Qi <yao@codesourcery.com>
2123 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2124 * solib-dsbt.c: New file. Support DSBT shared object.
2125 * tic6x-linux-tdep.c: New file.
2126 * tic6x-tdep.c: New file.
2127 * tic6x-tdep.h: New file.
2129 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2130 Yao Qi <yao@codesourcery.com>
2132 * remote.c (PACKET_qXfer_fdpic): New enum value.
2133 (remote_protocol_features): Add qXfer:fdpic:read packet.
2134 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2135 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2136 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2138 2011-08-14 Yao Qi <yao@codesourcery.com>
2140 Target description for tic6x.
2141 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2142 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2143 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2144 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2145 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2146 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2147 * features/tic6x-c64xp-linux.xml: New.
2148 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2149 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2150 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2151 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2152 * regformats/tic6x-c64xp.dat,
2153 regformats/tic6x-c62x-linux.dat: Generated.
2154 * regformats/tic6x-c64x-linux.dat,
2155 regformats/tic6x-c64xp-linux.dat: Generated.
2156 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2157 features/tic6x-*.c files.
2158 Add regformats/tic6x-*.dat files.
2160 2011-08-12 Doug Evans <dje@google.com>
2162 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2163 * python/py-symbol.c (sympy_get_type): New function.
2164 (symbol_object_getset): Add "type".
2166 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2170 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2172 (tui_show_register_group): Don't store a byte buffer in the data
2174 (tui_register_format): Skip registers with an empty name.
2175 (tui_get_register): Store a struct value in the data element's
2176 value field instead of a byte buffer holding the raw register
2177 contents. Account for optimized-out and unavailable registers
2178 when comparing register contents.
2180 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2182 * printcmd.c (current_display_number): Update comment.
2183 (disable_current_display_cleanup): Delete.
2184 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2185 catch errors thrown while evaluating and printing the display.
2187 2011-08-09 Tom Tromey <tromey@redhat.com>
2189 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2191 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2193 * elfread.c (elf_symtab_read): Rework comments.
2194 * maint.c (maintenance_command): Ditto.
2195 * somread.c (som_symtab_read): Ditto.
2196 * solib.c (solib_find, solib_map_sections, update_solib_list)
2197 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2198 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2199 (sharedlibrary_command, no_shared_libraries): Ditto.
2200 * solib-irix.c (locate_base, disable_break, enable_break)
2201 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2202 (irix_current_sos, irix_open_symbol_file_object)
2203 (irix_special_symbol_handling): Ditto.
2204 * solib-sunos.c (locate_base, first_link_map_member)
2205 (sunos_current_sos, disable_break, enable_break)
2206 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2208 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2209 (open_symbol_file_object, svr4_current_sos, enable_break)
2210 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2212 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2213 (frv_current_sos, enable_break, frv_special_symbol_handling)
2214 (frv_solib_create_inferior_hook): Ditto.
2215 * solist.h (struct target_so_ops): Extend the comments of the
2216 special_symbol_handling, current_sos and open_symbol_file_object
2219 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2221 * python/lib/gdb/__init__.py: Auto-load files in command and
2222 function directories.
2223 * python/python.c (finish_python_initialization): Use
2225 * python/lib/gdb/command/pretty_printers.py: Self register
2227 * NEWS: Document auto-loading.
2229 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2231 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2232 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2233 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2235 2011-08-08 Tom Tromey <tromey@redhat.com>
2237 * breakpoint.c (clean_up_filters): Remove.
2238 (catch_syscall_split_args): Use VEC_cleanup.
2240 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2242 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2243 (main): Uncomment "Demangling error\n".
2245 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2247 * solib-target.c (segment_attributes): Make them static.
2248 (section_attributes, library_children, library_attributes): Likewise.
2249 (library_list_children, library_list_attributes): Likesise.
2250 (library_list_elements): Likewise.
2252 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2254 * exceptions.c (throw_exception): Don't disable the current
2256 * printcmd.c (disable_current_display_cleanup): New function.
2257 (do_one_display): Install a cleanup to disable the current display
2258 if doing the display throws.
2260 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2262 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2263 initialization of the tp_new member to the corresponding
2264 gdbpy_initialize_* function.
2265 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2266 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2267 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2268 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2269 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2271 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2273 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2274 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2275 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2276 references to current_uiout.
2278 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2280 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2281 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2282 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2283 * top.c (gdb_readline_wrapper): Adjust.
2284 * tui/tui-interp.c (tui_command_loop):
2285 (_initialize_tui_interp): Don't install it.
2287 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2289 * ui-out.h (uiout): Rename to ...
2290 (current_uiout): ... this.
2291 * ui-out.c (uiout): Rename to ...
2292 (current_uiout): ... this.
2293 * ada-lang.c (print_it_exception, print_one_exception)
2294 (print_mention_exception): Adjust.
2295 * breakpoint.c (watchpoint_check): Adjust.
2296 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2297 (default_collect_info, watchpoints_info, print_one_catch_fork)
2298 (print_one_catch_vfork, print_one_catch_syscall)
2299 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2300 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2301 (print_it_watchpoint, print_mention_watchpoint)
2302 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2303 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2304 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2305 (bkpt_print_mention, momentary_bkpt_print_it)
2306 (tracepoint_print_mention, update_static_tracepoint)
2307 (tracepoints_info, save_breakpoints): Adjust.
2308 * cli-out.c (field_separator): Adjust.
2309 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2310 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2311 * frame.c (get_current_frame): Adjust.
2312 * infcmd.c (run_command_1, print_return_value): Adjust.
2313 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2314 * infrun.c (print_end_stepping_range_reason): Adjust.
2315 (print_signal_exited_reason, print_exited_reason): Adjust.
2316 (print_signal_received_reason, print_no_history_reason): Adjust.
2317 * interps.c (interp_set): Adjust.
2318 * osdata.c (info_osdata_command): Adjust.
2319 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2320 * remote-fileio.c (remote_fileio_request): Adjust.
2321 * remote.c (show_remote_cmd): Adjust.
2322 * solib.c (info_sharedlibrary_command): Adjust.
2323 * source.c (print_source_lines_base): Adjust.
2324 * stack.c (print_stack_frame): Adjust.
2325 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2326 * symfile-mem.c (add_vsyscall_page): Adjust.
2327 * symfile.c (load_progress, generic_load)
2328 (print_transfer_performance): Adjust.
2329 * thread.c (info_threads_command, restore_selected_frame)
2330 (thread_command): Adjust.
2331 * top.c (make_cleanup_restore_ui_file): Adjust.
2332 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2333 (print_one_static_tracepoint_marker): Adjust.
2334 * cli/cli-cmds.c (print_disassembly): Adjust.
2335 * cli/cli-decode.c (print_doc_line): Adjust.
2336 * cli/cli-interp.c (safe_execute_command): Adjust.
2337 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2338 (handle_redirections): Adjust.
2339 * cli/cli-script.c (show_user_1): Adjust.
2340 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2341 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2342 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2343 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2344 (mi_cmd_env_dir): Adjust.
2345 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2346 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2347 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2348 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2349 (list_args_or_locals): Adjust.
2350 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2351 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2352 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2353 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2354 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2355 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2356 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2357 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2358 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2359 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2360 (list_available_thread_groups, mi_cmd_list_thread_groups)
2361 (mi_cmd_data_list_register_names)
2362 (mi_cmd_data_list_changed_registers)
2363 (mi_cmd_data_list_register_values, get_register)
2364 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2365 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2366 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2367 (mi_execute_command, mi_load_progress): Adjust.
2368 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2369 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2371 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2372 * tui/tui-interp.c (tui_command_loop): Adjust.
2373 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2375 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2377 * exceptions.c (struct catcher): Remove saved_uiout field.
2378 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2379 no longer save/resvore the global ui_out builder.
2380 (catch_exceptions_with_msg): Save/override/restore the global
2381 ui_out builder manually instead of relying on TRY_CATCH to do it.
2382 (catch_errors): Save/restore the global ui_out builder manually
2383 instead of relying on TRY_CATCH to do it.
2384 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2386 (TRY_CATCH): Adjust.
2387 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2388 the global ui_out builder manually instead of relying on TRY_CATCH
2391 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2393 * breakpoint.c (update_global_location_list): Ensure
2394 invariant 'first loc marked not duplicated and inserted,
2395 following locs marked duplicated/not inserted' is respected
2396 for multiple locations at the same address.
2397 (unduplicated_should_be_inserted) New function.
2398 (swap_insertion) New function.
2400 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 * stack.c (print_frame_arguments_choices): Comment typo fix.
2404 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2407 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2408 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2409 argument. Update callers.
2411 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2414 * doublest.c (convert_doublest_to_floatformat): Pass correct
2415 mantissa length to put_field.
2417 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2419 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2420 exception_print code path.
2421 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2422 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2423 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2425 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2428 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2429 Remove, merge them into ...
2430 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2431 variable args and its initialization.
2432 (struct print_args_args, print_args_stub): Remove, merge them into
2434 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2436 (do_gdb_disassembly): ... here. Remove variable args and its
2438 (print_frame): Remove variable args and its initialization, new
2439 variable gdbarch and numargs (from print_args_stub), inline here
2440 print_args_stub with a TRY_CATCH.
2441 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2443 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2444 New variable e, remove variable btargs and its initialization.
2446 2011-08-01 Tristan Gingold <gingold@adacore.com>
2448 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2450 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2452 * breakpoint.c (insert_bp_location): Document return value.
2453 (insert_breakpoint_locations): Fix documentation.
2454 (remove_breakpoints): Add documentation.
2456 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2458 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2459 argument. Update callers.
2461 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2463 * stack.c (print_frame_info): Comment typo fix.
2465 2011-07-29 Sterling Augustine <saugustine@google.com>
2467 * MAINTAINERS (Write After Approval): Add myself to the list.
2469 2011-07-29 Tom Tromey <tromey@redhat.com>
2471 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2472 (library_list_start_segment): Update.
2473 (library_list_start_section): Update.
2475 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2477 * varobj.c (value_get_print_value): Move hint check later into the
2478 function. Comment function. Free thevalue before reusing it.
2480 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2481 Pedro Alves <pedro@codesourcery.com>
2483 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2485 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2486 Assert the result kind.
2487 * value.h (value_one): Remove parameter lv.
2489 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 Fix crash on lval_computed values.
2492 * valops.c (value_zero): Use not_lval for lval_computed.
2494 2011-07-27 Tom Tromey <tromey@redhat.com>
2496 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2497 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2499 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2501 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2502 "ptype" by their typedefs difference.
2504 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 * dwarf2expr.c (ctx_no_read_reg): New function.
2507 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2508 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2509 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2510 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2512 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2515 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2517 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2518 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2519 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2520 (ctx_no_get_base_type): Move the functions here.
2521 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2522 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2523 (ctx_no_get_base_type): New declarations.
2525 2011-07-27 Tom Tromey <tromey@redhat.com>
2527 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2529 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2530 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2532 2011-07-26 Sterling Augustine <saugustine@google.com>
2534 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2536 (dump_bfd_file): Likewise.
2538 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2540 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2541 (remote_hw_watchpoint_length_limit): New variable.
2542 (_initialize_remote) add set,show cmds for this new variable.
2543 * gdb.texinfo: document these new commands.
2544 * NEWS: Mention these new commands.
2546 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2548 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2549 true for software watchpoints.
2551 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2555 2011-07-26 Tom Tromey <tromey@redhat.com>
2557 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2558 * dwarf2read.c (read_indirect_string_at_offset): New function.
2559 (read_indirect_string): Use it.
2560 (dwarf_decode_macro_bytes): New function, taken from
2561 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2562 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2563 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2565 (struct dwarf2_per_objfile) <macro>: New field.
2566 (dwarf2_elf_names): Add .debug_macro.
2567 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2568 (dwarf2_locate_sections): Handle new section.
2569 (read_file_scope): Handle DW_AT_GNU_macros.
2570 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2572 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2574 * NEWS: Mention dcache configuration.
2575 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2576 (dcache_size, dcache_line_size): New variables.
2577 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2578 (struct dcache_block): Make it expandable.
2579 (struct dcache_struct): New field.
2580 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2581 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2582 (dcache_poke_byte, dcache_print_line): Adjust.
2583 (set_dcache_size, set_dcache_line_size): New functions.
2584 (set_dcache_command, show_dcache_command): New functions.
2585 (_initialize_dcache): Add new commands.
2587 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2589 * progspace.h (struct program_space): Add solib_add_generation.
2590 * infcmd.c (post_create_inferior): Only call solib_add if not
2592 * solib.c (solib_add): Increment solib_add_generation.
2594 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 Fix implicit pointer offsets.
2597 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2600 2011-07-25 Tom Tromey <tromey@redhat.com>
2602 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2604 (ada_exception_sal): Make 'ops' const.
2605 (ada_decode_exception_location): Likewise.
2606 (ada_decode_assert_location): Likewise.
2607 (catch_assert_command): Update.
2608 (catch_ada_exception_command): Update.
2609 (create_ada_exception_catchpoint): Make 'ops' const.
2610 * breakpoint.c (set_raw_breakpoint_without_location)
2611 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2613 (create_internal_breakpoint): Update.
2614 (init_raw_breakpoint_without_location): Make 'ops' const.
2615 (init_raw_breakpoint, init_catchpoint)
2616 (create_fork_vfork_event_catchpoint)
2617 (create_syscall_event_catchpoint, init_breakpoint_sal)
2618 (create_breakpoint_sal, create_breakpoints_sal)
2619 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2620 * breakpoint.h (struct breakpoint) <ops>: Now const.
2621 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2624 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2626 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2628 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2630 * breakpoint.h (print_recreate_thread): Declare.
2631 (struct breakpoint): Move step_count, pass_count,
2632 number_on_target, static_trace_marker_id,
2633 static_trace_marker_id_idx ...
2634 (struct tracepoint): ... to this new struct.
2635 (get_tracepoint, get_tracepoint_by_number_on_target)
2636 (get_tracepoint_by_number): Change return type to struct
2638 * breakpoint.c (is_tracepoint_type): New, factored out from
2640 (is_tracepoint): Adjust.
2641 (print_one_breakpoint_location): Cast to struct tracepoint as
2642 necessary, and adjust.
2643 (print_recreate_catch_fork, print_recreate_catch_vfork)
2644 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2645 print_recreate_thread.
2646 (init_breakpoint_sal): New, factored out from
2647 create_breakpoint_sal.
2648 (create_breakpoint_sal): Reimplement.
2649 (create_breakpoint): Allocate a struct tracecepoint if the caller
2650 wanted a tracepoint. Use init_breakpoint_sal and
2652 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2653 (print_recreate_masked_watchpoint)
2654 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2655 (tracepoint_print_one_detail): Adjust.
2656 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2657 Dump the pass count here.
2658 (update_static_tracepoint): Adjust.
2659 (addr_string_to_sals): Adjust.
2660 (create_tracepoint_from_upload): Adjust. Change return type to
2661 struct tracepoint pointer.
2662 (trace_pass_set_count): Change parameter type to struct tracepoint
2663 pointer, and adjust.
2664 (trace_pass_command): Adjust.
2665 (get_tracepoint, get_tracepoint_by_number_on_target)
2666 (get_tracepoint_by_number): Change return type to struct
2667 tracepoint pointer, and adjust.
2668 (print_recreate_thread): New, factored out from save_breakpoints.
2669 (save_breakpoints): Don't print thread and task and passcount
2671 * remote.c (remote_download_tracepoint): Adjust.
2672 * tracepoint.c (trace_actions_command, validate_actionline)
2673 (start_tracing, tfind_1, trace_find_tracepoint_command)
2674 (trace_dump_command): Adjust.
2675 (find_matching_tracepoint): Change return type to struct
2676 tracepoint pointer, and adjust.
2677 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2678 (tfile_trace_find, tfile_fetch_registers): Adjust.
2679 * tracepoint.h (create_tracepoint_from_upload): Change return type
2680 to struct tracepoint pointer.
2681 * ada-lang.c (print_recreate_exception): Call
2682 print_recreate_thread.
2683 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2685 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2687 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2688 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2689 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2690 watchpoint_thread, watchpoint_triggered ...
2691 (struct watchpoint): ... to this new struct.
2692 (is_watchpoint): Declare.
2693 (install_breakpoint): Add new `internal' parameter.
2694 * breakpoint.c (is_watchpoint): Delete declaration.
2695 (set_breakpoint_condition): Handle watchpoints.
2696 (is_watchpoint): Make public.
2697 (watchpoint_in_thread_scope): Change parameter type to struct
2699 (watchpoint_del_at_next_stop): Change parameter type to struct
2700 watchpoint. Remove assertion. Adjust.
2701 (update_watchpoint): Ditto.
2702 (insert_breakpoints, breakpoint_init_inferior)
2703 (watchpoints_triggered, watchpoint_check)
2704 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2705 (bpstat_stop_status, print_one_breakpoint_location)
2706 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2707 to struct watchpoint as necessary, and adjust.
2708 (install_breakpoint): Add `internal' argument. If true, don't
2709 mention the new breakpoint. Use set_breakpoint_number.
2710 (create_fork_vfork_event_catchpoint)
2711 (create_syscall_event_catchpoint): Adjust.
2712 (dtor_watchpoint): New.
2713 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2714 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2715 (print_it_watchpoint, print_mention_watchpoint)
2716 (print_recreate_watchpoint, insert_masked_watchpoint)
2717 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2718 (print_one_detail_masked_watchpoint)
2719 (print_mention_masked_watchpoint)
2720 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2721 necessary, and adjust.
2722 (watch_command_1): Allocate and initialize a struct watchpoint
2723 instead of a struct breakpoint. Use install_breakpoint.
2724 (catch_exec_command_1): Adjust.
2725 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2727 (delete_breakpoint, enable_breakpoint_disp)
2728 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2729 as necessary, and adjust.
2730 (initialize_breakpoint_ops): Install dtor_watchpoint as
2731 watchpoints' dtor method.
2732 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2733 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2734 to struct watchpoint as necessary, and adjust.
2736 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2738 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2739 the the base class ops table.
2740 (catch_exception_breakpoint_ops)
2741 (catch_exception_unhandled_breakpoint_ops)
2742 (catch_assert_breakpoint_ops): Don't statically initialize.
2743 (initialize_ada_catchpoint_ops): New.
2744 (_initialize_ada_language): Call it.
2745 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2746 (bkpt_breakpoint_ops): Forward declare.
2747 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2748 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2749 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2750 (masked_watchpoint_breakpoint_ops)
2751 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2752 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2753 base class ops table.
2754 (null_re_set, null_check_status, null_works_in_software_mode)
2755 (null_resources_needed, null_print_one_detail): Delete.
2756 (bkpt_dtor): Rename to ...
2757 (base_breakpoint_dtor): ... this. Make static.
2758 (bkpt_allocate_location): Rename to ...
2759 (base_breakpoint_allocate_location): ... this. Make static.
2760 (base_breakpoint_re_set): New.
2761 (internal_error_pure_virtual_called): New.
2762 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2763 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2764 (base_breakpoint_works_in_software_mode)
2765 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2766 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2767 (base_breakpoint_print_recreate): New functions.
2768 (base_breakpoint_ops): New global.
2769 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2770 (bkpt_breakpoint_hit): Make static.
2771 (bkpt_check_status): Delete.
2772 (bkpt_resources_needed): Make static.
2773 (bkpt_works_in_software_mode): Delete.
2774 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2776 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2777 (momentary_breakpoint_ops): Don't statically initialize.
2778 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2780 (tracepoint_insert_location, tracepoint_remove_location)
2781 (tracepoint_check_status, tracepoint_works_in_software_mode)
2782 (tracepoint_print_it): Delete.
2783 (tracepoint_breakpoint_ops): Don't statically initialize.
2784 (initialize_breakpoint_ops): New.
2785 (_initialize_breakpoint): Call it.
2786 * breakpoint.h (null_re_set, null_works_in_software_mode)
2787 (null_resources_needed, null_check_status, null_print_one_detail):
2788 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2789 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2790 (bkpt_check_status, bkpt_resources_needed)
2791 (bkpt_works_in_software_mode, bkpt_print_it)
2792 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2793 Delete declarations.
2794 (initialize_breakpoint_ops): Declare.
2796 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2798 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2799 (momentary_bkpt_print_it): Simplify.
2801 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2803 Split internal, momentary and user breakpoints breakpoint_ops
2806 * breakpoint.c (internal_breakpoint_ops)
2807 (momentary_breakpoint_ops): Forward declare.
2808 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2809 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2810 (create_overlay_event_breakpoint)
2811 (create_std_terminate_master_breakpoint)
2812 (create_exception_master_breakpoint): Create breakpoints with
2813 internal_breakpoint_ops vtable.
2814 (set_longjmp_breakpoint): Create momentary breakpoints with
2815 momentary_breakpoint_ops vtable, using
2816 momentary_breakpoint_from_master.
2817 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2818 (create_solib_event_breakpoint): Create breakpoints with
2819 internal_breakpoint_ops vtable.
2820 (set_momentary_breakpoint): Create breakpoints with
2821 momentary_breakpoint_ops vtable.
2822 (momentary_breakpoint_from_master): New, factored out from
2823 clone_momentary_breakpoint.
2824 (clone_momentary_breakpoint): Adjust.
2825 (watch_command_1): Create scope breakpoints with
2826 momentary_breakpoint_ops vtable.
2827 (bkpt_re_set): Remove handling of internal and momentary
2829 (bkpt_print_mention, bkpt_print_recreate): New.
2830 (bkpt_breakpoint_ops): Adjust.
2831 (internal_bkpt_re_set, internal_bkpt_check_status)
2832 (internal_bkpt_print_it, internal_bkpt_print_mention)
2833 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2834 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2835 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2836 (momentary_bkpt_print_recreate): New.
2837 (momentary_breakpoint_ops): New.
2839 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2841 Implement most breakpoint_ops methods for all breakpoint types,
2842 and move the default handlings to the proper callbacks.
2844 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2845 works_in_software_mode method.
2846 (insert_bp_location): Go through breakpoint_ops->insert_location
2847 for software and hardware watchpoints.
2848 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2850 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2851 for software and hardware watchpoints.
2852 (print_it_typical): Delete.
2853 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2855 (watchpoint_check): Adjust comment.
2856 (bpstat_check_location): Simply always call the breakpoint's
2857 breakpoint_hit method.
2858 (bpstat_stop_status): Always call the breakpoint's check_status
2859 method. Remove special cases for watchpoints and internal event
2860 breakpoints from here (moved to the check_status implementations).
2861 (print_one_breakpoint_location): Assume b->ops is never NULL.
2862 Remove static tracepoint marker id printing from here (moved to
2863 the print_one_detail callback implementation of tracepoints).
2864 (init_bp_location): Assert OPS is never NULL.
2865 (allocate_bp_location): Always call the breakpoint's
2866 allocate_location method, and remove the default code from here.
2867 (free_bp_location): Always call the location's dtor method, and
2868 remove the default code from here.
2869 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2870 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2871 parameter. Pass it down.
2872 (set_raw_breakpoint): Ditto.
2873 (print_it_catch_fork): Adjust to take a bpstat as argument.
2874 (catch_fork_breakpoint_ops): Install methods.
2875 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2876 (catch_vfork_breakpoint_ops): Install methods.
2877 (dtor_catch_syscall): Call the base dtor.
2878 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2879 (catch_syscall_breakpoint_ops): Install methods.
2880 (dtor_catch_exec): Call the base dtor.
2881 (print_it_catch_exec): Adjust to take a bpstat as argument.
2882 (catch_exec_breakpoint_ops): Install methods.
2883 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2884 the breakpoint's resources_needed method, and remove the default
2886 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2888 (clone_momentary_breakpoint): Clone the original's ops.
2889 (mention): Always call the breakpoint's print_mention method, and
2890 remove the default code from here.
2891 (create_breakpoint_sal): Adjust to pass the ops to
2892 set_raw_breakpoint rather than setting it manually.
2893 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2894 ops to set_raw_breakpoint_without_location rather than setting it
2896 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2897 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2898 (ranged_breakpoint_ops): Install methods.
2899 (break_range_command): Adjust to pass the ops to
2900 set_raw_breakpoint rather than setting it manually.
2901 (re_set_watchpoint, breakpoint_hit_watchpoint)
2902 (check_status_watchpoint, resources_needed_watchpoint)
2903 (works_in_software_mode_watchpoint, print_it_watchpoint)
2904 (print_mention_watchpoint, print_recreate_watchpoint): New
2906 (watchpoint_breakpoint_ops): Install new methods.
2907 (print_it_masked_watchpoint): New function.
2908 (masked_watchpoint_breakpoint_ops): Install new methods.
2909 (watch_command_1): Adjust to pass the right breakpoint_ops to
2910 set_raw_breakpoint_without_location rather than setting it
2911 manually later. Record the current pspace.
2912 (print_it_exception_catchpoint): Adjust to take a bpstat as
2914 (gnu_v3_exception_catchpoint_ops): Install new methods.
2915 (say_where): New function.
2916 (null_re_set, null_check_status, null_works_in_software_mode)
2917 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2919 (bp_location_ops): New global.
2920 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2921 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2922 (bkpt_check_status, bkpt_resources_needed)
2923 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2924 (bkpt_print_recreate): New functions.
2925 (bkpt_breakpoint_ops): New global.
2926 (tracepoint_re_set, tracepoint_insert_location)
2927 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2928 (tracepoint_check_status, tracepoint_works_in_software_mode)
2929 (tracepoint_print_it, tracepoint_print_one_detail)
2930 (tracepoint_print_mention, tracepoint_print_recreate): New
2932 (tracepoint_breakpoint_ops): New global.
2933 (delete_breakpoint): Always call the breakpoint's dtor method, and
2934 remove the default handling from here.
2935 (breakpoint_re_set_default): Make static.
2936 (breakpoint_re_set_one): Always call the breakpoints re_set
2937 method, and remove the default handling from here.
2938 (trace_command, ftrace_command, strace_command)
2939 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2940 to create_breakpoint.
2941 (save_breakpoints): Always call the breakpoint's print_recreate
2942 method, and remove the default handling from here.
2944 * ada-lang.c (dtor_exception): Call the base dtor.
2945 (re_set_exception): Call the base method.
2946 (print_it_exception, print_it_catch_exception): Adjust to take a
2948 (catch_exception_breakpoint_ops): Install methods.
2949 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2951 (catch_exception_unhandled_breakpoint_ops): Install methods.
2952 (print_it_catch_assert): Adjust to take a bpstat as argument.
2953 (catch_assert_breakpoint_ops): Install methods.
2955 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2956 to take a bpstat as argument.
2957 (enum print_stop_action): Add describing comments to each enum
2959 (breakpoint_re_set_default): Delete declaration.
2960 (null_re_set, null_works_in_software_mode, null_resources_needed)
2961 (null_check_status, null_print_one_detail): Declare.
2962 (bkpt_breakpoint_ops): Declare.
2963 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2964 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2965 (bkpt_check_status, bkpt_resources_needed)
2966 (bkpt_works_in_software_mode, bkpt_print_it)
2967 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2970 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2971 bkpt_breakpoint_ops.
2972 * python/py-breakpoint.c (bppy_init): Ditto.
2974 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2976 * MAINTAINERS (Write After Approval): Add myself to the list.
2978 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2980 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2982 2011-07-22 Pedro Alves <pedro@codesourcery.com>
2984 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2985 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2986 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2988 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2989 (struct i386_debug_reg_state): New.
2990 (i386_init_dregs): New.
2992 (i386_cleanup_dregs): Use i386_init_dregs.
2993 (i386_show_dr): Add state parameter and adjust.
2994 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2996 (i386_remove_aligned_watchpoint): Likewise.
2997 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2998 (i386_update_inferior_debug_regs): New.
2999 (i386_insert_watchpoint): Work on a local mirror of the debug
3000 registers, and only update the inferior on success.
3001 (i386_remove_watchpoint): Ditto.
3002 (i386_region_ok_for_watchpoint): Adjust.
3003 (i386_stopped_data_address): Adjust.
3004 (i386_insert_hw_breakpoint): Adjust.
3005 (i386_remove_hw_breakpoint): Adjust.
3007 2011-07-22 Tom Tromey <tromey@redhat.com>
3009 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3010 from amd64_pseudo_register_read. Change arguments. Call
3011 mark_value_bytes_unavailable when needed.
3012 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3013 set_gdbarch_pseudo_register_read.
3014 * sentinel-frame.c (sentinel_frame_prev_register): Use
3015 regcache_cooked_read_value.
3016 * regcache.h (regcache_cooked_read_value): Declare.
3017 * regcache.c (regcache_cooked_read_value): New function.
3018 (regcache_cooked_read): Call
3019 gdbarch_pseudo_register_read_value if available.
3020 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3021 (i386_pseudo_register_read): Remove.
3022 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3023 i386_pseudo_register_read. Change arguments. Call
3024 mark_value_bytes_unavailable when needed.
3025 (i386_pseudo_register_read_value): New function.
3026 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3027 not set_gdbarch_pseudo_register_read.
3028 * gdbarch.sh (pseudo_register_read_value): New method.
3029 * gdbarch.c, gdbarch.h: Rebuild.
3030 * findvar.c (value_from_register): Call get_frame_register_value.
3032 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3034 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3036 (display_gdb_prompt): Likewise.
3037 (change_annotation_level): Likewise.
3038 (push_prompt): Likewise.
3039 (pop_prompt): Likewise.
3040 (handle_stop_sig): Use get_prompt with a level.
3041 * top.c (command_loop): Use get_prompt with a level.
3042 (set_async_annotation_level): Use set_prompt with a level.
3043 (get_prefix): New function.
3044 (set_prefix): Ditto.
3045 (set_suffix): Ditto.
3046 (get_suffix): Ditto.
3047 (get_prompt): Accept a level argument.
3048 (set_prompt): Accept a level argument. Free old prompts. Set
3049 new_async_prompt if level is 0.
3050 (init_main): Use set_prompt with a level. Do not set
3052 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3053 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3054 Modify set_prompt, get_prompt to account for levels.
3055 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3057 * python/python.c (before_prompt_hook): Use set_prompt.
3059 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3061 * defs.h: Add guard against inclusion in gdbserver.
3062 (struct ptid, ptid_t): Move to common/ptid.h.
3063 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3064 xsnprintf, internal_error): Move to common/common-utils.h.
3066 * gdb_assert.h: Move into common/ sub-directory.
3067 * gdb_locale.h: Ditto.
3068 * gdb_dirent.h: Ditto.
3069 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3070 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3071 Move into common/ptid.h.
3072 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3073 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3074 Change nomem to malloc_failure.
3075 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3076 * utils.c (nomem): Rename to malloc_failure.
3077 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3078 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3079 (gdb_buildargv): Change nomem to malloc_failure.
3080 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3081 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3082 ptid_is_pid): Move into common/ptid.c.
3083 (initialize_infrun): Delete initialization of null_ptid and
3085 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3086 linux_common_xfer_osdata.
3087 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3088 common/ptid.c and common/buffer.c.
3089 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3090 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3091 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3092 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3094 * common/gdb_assert.h: New.
3095 * common/gdb_dirent.h: New.
3096 * common/gdb_locale.h: New.
3097 * common/buffer.c: New.
3098 * common/buffer.h: New.
3099 * common/ptid.c: New.
3100 * common/ptid.h: New.
3101 * common/xml-utils.c: New.
3102 * common/xml-utils.h: New.
3103 * common/common-utils.c: New.
3104 * common/common-utils.h: New.
3105 * common/linux-osdata.c: New.
3106 * common/linux-osdata.h: New.
3107 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3108 * config/arm/linux.mh (NATDEPFILES): Ditto.
3109 * config/i386/linux.mh (NATDEPFILES): Ditto.
3110 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3111 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3112 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3113 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3114 * config/mips/linux.mh (NATDEPFILES): Ditto.
3115 * config/pa/linux.mh (NATDEPFILES): Ditto.
3116 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3117 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3118 * config/s390/s390.mh (NATDEPFILES): Ditto.
3119 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3120 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3121 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3123 2011-07-21 Matt Rice <ratmice@gmail.com>
3125 * NEWS: Add info macros and info definitions commands.
3127 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3129 * NEWS: Document Python prompt substitution hook.
3131 2011-07-18 Matt Rice <ratmice@gmail.com>
3134 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3135 * macrotab.c (foreach_macro): Ditto.
3136 (foreach_macro_in_scope): Ditto.
3137 * macrocmd.c (print_macro_callback): New function.
3138 (info_macro_command): Move some code to print_macro_definition.
3139 (print_macro_definition): New function.
3140 (print_one_macro): Add new arguments to callback.
3141 (info_definitions_command): New function.
3142 (info_macros_command): Ditto.
3143 (_initialize_macrocmd): Add info macros and info definitions commands.
3144 * symtab.c (add_macro_name): Add new arguments to callback.
3146 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3147 Tom Tromey <tromey@redhat.com>
3149 * top.c (set_prompt): Rewrite to free previous prompt, free
3150 asynch_new_prompt and set both on new prompts.
3151 * event-top.c (display_gdb_prompt): Add prompt substitution
3153 * python/python.c (before_prompt_hook): New function.
3155 2011-07-20 Matt Rice <ratmice@gmail.com>
3157 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3158 arguments to store_unsigned_integer.
3160 2011-07-20 Tom Tromey <tromey@redhat.com>
3162 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3163 in some declaration-only cases.
3165 2011-07-18 Tom Tromey <tromey@redhat.com>
3168 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3169 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3170 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3171 <debug_type_section>: New field.
3172 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3173 (load_cu): Use appropriate section.
3174 (create_signatured_type_table_from_index): Add 'section'
3176 (dwarf2_read_index): Only allow a single .debug_types section.
3177 (dw2_get_file_names): Use appropriate section.
3178 (read_type_comp_unit_head): Add 'section' argument.
3179 (create_debug_types_hash_table): Loop over all .debug_types
3181 (init_cu_die_reader): Use appropriate section.
3182 (process_psymtab_comp_unit, load_partial_comp_unit)
3183 (load_full_comp_unit, read_die_and_children, find_partial_die)
3184 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3185 (lookup_signatured_type_at_offset): Add 'section' argument.
3186 (read_signatured_type_at_offset): Add 'sect' argument.
3187 (read_signatured_type): Use appropriate section.
3188 (set_die_type, get_die_type_at_offset): Update.
3189 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3191 (write_psymtabs_to_index): Don't allow index with more than one
3192 .debug_types section.
3194 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3196 Fix crash if referenced CU is aged out.
3197 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3198 xfree of block.data.
3199 (indirect_pieced_value): New variable back_to, use to for xfree of
3201 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3203 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3204 (load_cu): New function from ...
3205 (dw2_do_instantiate_symtab): ... the code here ...
3206 (process_full_comp_unit): ... and here.
3207 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3210 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3212 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3215 2011-07-19 Gary Benson <gbenson@redhat.com>
3217 * infrun.c (struct execution_control_state): New member
3218 stop_func_filled_in.
3219 (clear_stop_func, fill_in_stop_func): New functions.
3220 (handle_inferior_event): Call clear_stop_func rather than
3221 manipulating the execution control state directly.
3222 Call fill_in_stop_func lazily as required rather than
3223 directly calling find_pc_partial_function in all cases.
3225 2011-07-18 Tom Tromey <tromey@redhat.com>
3227 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3228 checking for variable-sized array.
3230 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3232 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3233 of supported languages.
3234 * varobj.c: Add top definitions and basic implementation of the
3235 following callbacks: ada_number_of_children, ada_name_of_variable,
3236 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3237 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3238 (languages): Register Ada-specific callbacks.
3239 (variable_language): Add the Ada case in the language setter switch.
3241 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3243 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3245 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3249 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3250 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3251 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3252 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3253 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3254 (struct dwarf_expr_context_funcs): New, move here methods from ...
3255 (struct dwarf_expr_context): ... here. New fields funcs.
3256 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3257 (dwarf_expr_ctx_funcs): New.
3258 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3259 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3260 (needs_frame_ctx_funcs): New.
3261 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3263 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3265 * MAINTAINERS (Write After Approval): Add myself to the list.
3267 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3269 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3270 that CIE pointer of an FDE really points to a CIE .
3272 2011-07-15 Hui Zhu <teawater@gmail.com>
3274 * remote.c (remote_get_trace_status): Add comments.
3276 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3278 Code cleanup - constify struct lval_funcs.
3279 * dwarf2loc.c (pieced_value_funcs): Make it const.
3280 * infrun.c (siginfo_value_funcs): Likewise.
3281 * opencl-lang.c (opencl_value_funcs): Likewise.
3282 * valops.c (value_assign, value_ind): Make the funcs variable const.
3283 * value.c (struct value): Make location.computed.funcs target const.
3284 Rearrange the comments.
3285 (allocate_computed_value): Make the funcs parameter target const.
3286 (value_computed_funcs): Return the funcs target const.
3287 (value_free, value_copy, set_value_component_location): Make the funcs
3289 * value.h (allocate_computed_value): Make the funcs parameter target
3291 (value_computed_funcs): Return the funcs target const.
3292 * windows-tdep.c (tlb_value_funcs): Make it const.
3294 2011-07-14 Hui Zhu <teawater@gmail.com>
3296 * remote.c (remote_get_trace_status): Initialize p.
3298 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 * remote.c (remote_get_trace_status): New variable ex. Put
3302 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3304 2011-07-13 Tom Tromey <tromey@redhat.com>
3306 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3307 value_from_contents for final conversion.
3309 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3312 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3313 Indent prototypes so they do not get into tags.
3315 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 Code cleanup making also optimized out values lazy.
3318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3319 allocate_optimized_out_value. Twice.
3320 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3321 * findvar.c (read_var_value): Likewise.
3322 * value.c (allocate_optimized_out_value): New function.
3323 * value.h (allocate_optimized_out_value): New declaration.
3325 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3327 Fix occasional crash of CTRL-C during DWARF read in.
3328 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3330 2011-07-11 Tom Tromey <tromey@redhat.com>
3332 * regcache.c (struct regcache_descr): Fix typo.
3333 * i387-tdep.c (i387_supply_xsave): Fix typo.
3335 2011-07-11 Tom Tromey <tromey@redhat.com>
3337 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3338 (read_file_scope, read_type_unit_scope): Use it.
3340 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3345 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3348 * python/python.c: Set gdbpy_should_print_stack default to off.
3349 (set_python): Deprecate maint set python print-stack to
3351 (_initialize_python): Deprecate maint set/show python print-stack.
3352 Add new prefix command, python. Add new setting, print-backtrace.
3353 * NEWS: Document set python print-stack. Document default change.
3355 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3357 * python/py-inferior.c (infpy_dealloc): New function.
3358 (inferior_to_inferior_object): Return a new object, or a
3359 new reference to the existing object.
3360 (find_thread_object): Cleanup references to inferior.
3361 (delete_thread_object): Ditto.
3362 * python/py-infthread.c (create_thread_object): Do not increment
3363 inferior reference count.
3365 2011-07-08 Tom Tromey <tromey@redhat.com>
3367 * dwarf2loc.c (locexpr_regname): New function.
3368 (locexpr_describe_location_piece): Use it.
3369 (disassemble_dwarf_expression): Add per_cu argument. Use
3371 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3372 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3374 (locexpr_describe_location_1): Add per_cu argument.
3375 (locexpr_describe_location): Update.
3376 (loclist_describe_location): Update.
3378 2011-07-08 Tom Tromey <tromey@redhat.com>
3380 * dwarf2expr.c (execute_stack_op): Add QUIT.
3382 2011-07-07 Hui Zhu <teawater@gmail.com>
3385 2011-07-06 Hui Zhu <teawater@gmail.com>
3386 * remote.c (remote_start_remote): Add TRY_CATCH for
3387 remote_get_trace_status.
3388 * tracepoint.c (disconnect_tracing): Ditto.
3390 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3392 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3393 variables as signed, not unsigned.
3395 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3397 * jit.c (jit_inferior_init): Reformat forward declaration.
3399 2011-07-06 Matt Rice <ratmice@gmail.com>
3401 * MAINTAINERS (Write After Approval): Add myself to the list.
3403 2011-07-06 Hui Zhu <teawater@gmail.com>
3405 * remote.c (remote_start_remote): Add TRY_CATCH for
3406 remote_get_trace_status.
3407 * tracepoint.c (disconnect_tracing): Ditto.
3409 2011-07-05 Tom Tromey <tromey@redhat.com>
3411 * symtab.c (operator_chars): Now static.
3412 * linespec.c (operator_chars): Don't declare.
3414 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3416 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3418 2011-07-05 Tom Tromey <tromey@redhat.com>
3420 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3421 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3422 (TYPE_CPLUS_REALLY_JAVA): New macro.
3423 * dwarf2read.c (process_structure_scope): Set
3424 TYPE_CPLUS_REALLY_JAVA.
3426 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3428 * ada-lang.c: Fix typos.
3429 * amd64-tdep.c: Likewise.
3430 * breakpoint.c: Likewise.
3431 * cli/cli-decode.c: Likewise.
3432 * findcmd.c: Likewise.
3433 * inline-frame.c: Likewise.
3434 * mi/mi-main.c: Likewise.
3435 * minsyms.c: Likewise.
3436 * monitor.c: Likewise.
3437 * monitor.h: Likewise.
3438 * prologue-value.c: Likewise.
3439 * reverse.c: Likewise.
3440 * s390-tdep.c: Likewise.
3442 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3444 * jit.c (jit_inferior_init): Forward declare.
3445 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3447 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3449 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3451 2011-07-04 Tristan Gingold <gingold@adacore.com>
3453 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3454 (tcb_fieldno): Add activation_link field.
3455 (get_known_tasks_addr): Moved and rewritten.
3456 (get_tcb_types_info): Set activation_link field.
3457 (read_known_tasks_array): Add parameter. Rewritten.
3458 (read_known_tasks_list): New function.
3459 (read_known_tasks): New function.
3460 (ada_build_task_list): Call read_known_tasks instead of
3461 read_known_tasks_array.
3462 * ravenscar-thread.c: Add first_task_name constant.
3463 (has_ravenscar_runtime): Check for task list too.
3465 2011-07-04 Tristan Gingold <gingold@adacore.com>
3467 * ada-tasks.c: Renames fieldno to actb_fieldno.
3468 (ada_get_task_number): Indentation.
3469 (get_tcb_types_info): Remove all parameters. Write directly
3471 (ptid_from_atcb_common): Adjust.
3472 (read_atcb): Adjust.
3474 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3476 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3478 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3480 * ui-out.c (ui_out_field_core_addr): Mention that the function
3481 description is in the header file.
3482 * ui-out.h (ui_out_field_core_addr): Document function.
3484 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3486 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3487 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3489 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3491 * symtab.c (expand_line_sal): Remove empty line.
3493 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3495 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3496 same way as ELFOSABI_NONE.
3497 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3499 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3501 * breakpoint.c: Fix typos in comments.
3502 * linespec.c: Likewise.
3503 * symtab.c: Likewise.
3505 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3507 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3508 section in separate object files.
3510 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3512 Fix false GCC warning.
3513 * linespec.c (decode_line_1): Initialize values.
3515 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3517 * linespec.c (find_method): Accept the function type automatically only
3518 if it was specified with parameter types.
3520 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Stop on first linespec terminator instead of eating what we can.
3523 * linespec.c (is_linespec_boundary): New function.
3524 (name_end): Remove function.
3525 (keep_name_info): New parameter on_boundary, replace the body.
3526 (decode_line_1): Provide the parameter to keep_name_info.
3527 (decode_compound): Likewise. Drop the trailing java return type
3530 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3532 Fall back linespec to minimal symbols.
3533 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3534 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3535 (find_method, symbol_found): Change error to cplusplus_error.
3537 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3539 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3541 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3542 Tom Tromey <tromey@redhat.com>
3544 * dwarf2read.c (check_physname): New variable.
3545 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3546 (show_check_physname): New function.
3547 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3549 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3551 * machoread.c (macho_symfile_read): Delete OBE comment.
3553 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3555 * machoread.c (struct macho_oso_data): Delete.
3556 (current_oso): Delete.
3557 (macho_relocate_common_syms): New function, mostly extracted
3559 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3560 Remove code that sets and unset current_oso.
3561 (macho_symfile_relocate): Delete handling of common symbols,
3562 now moved to macho_relocate_common_syms.
3564 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3566 * darwin-nat.c (darwin_ptrace): Add documentation.
3567 Set errno to zero before calling ptrace. If ptrace returns
3568 -1 and errno is zero, then change then return zero.
3569 (darwin_kill_inferior): Issue a warning instead of triggering
3570 a failed assertion when the PT_KILL ptrace operations returned
3573 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3575 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3576 only when inf->private->no_ptrace.
3578 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3580 * ada-lang.c (print_it_exception): Print temporary catchpoints
3581 as "Temporary catchpoint".
3582 (print_mention_exception): Likewise.
3584 2011-07-01 Tom Tromey <tromey@redhat.com>
3586 * jv-lang.c (java_language_defn): Use java_printchar,
3588 (java_get_encoding): New function.
3589 (java_emit_char): Use generic_emit_char.
3590 (java_printchar): New function.
3591 (java_printstr): Likewise.
3593 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3595 * ada-typeprint.c (print_record_type): If unable to decode
3596 the name of the parent type, use the encoded name.
3598 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3600 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3601 pointer to constrained packed array type output.
3602 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3603 packed array output.
3605 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3607 * ada-typeprint.c (print_array_type): removed if condition on show
3608 being negative for bounds printing.
3610 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3612 * ada-lang.c (ada_identical_enum_types_p): New function.
3613 (symbols_are_identical_enums): New function.
3614 (remove_extra_symbols): Do nothing if NSYMS < 2.
3615 Use symbols_are_identical_enums.
3617 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3619 * ada-valprint.c (ada_value_print): Handle typedefs.
3621 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3623 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3625 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3627 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3628 (decode_constrained_packed_array): Likewise.
3629 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3631 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3633 * ada-exp.y (convert_char_literal): Handle typedef types.
3635 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3637 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3639 2011-06-30 Tom Tromey <tromey@redhat.com>
3641 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3642 * valops.c (find_overload_match): Call do_cleanups on early exit
3644 * solib.c (solib_find): Call do_cleanups on early exit path.
3646 2011-06-30 Tom Tromey <tromey@redhat.com>
3648 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3649 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3650 return paths. Defer final do_cleanups until last return.
3651 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3654 2011-06-30 Tom Tromey <tromey@redhat.com>
3656 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3658 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3660 * MAINTAINERS (Write After Approval): Add myself to the list.
3662 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3664 Disable epilogue unwinders on recent GCCs.
3665 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3666 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3667 * dwarf2read.c (process_full_comp_unit): Initialize
3668 EPILOGUE_UNWIND_VALID.
3669 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3670 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3671 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3673 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3675 Code cleanup - reformatting.
3676 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3677 (producer_is_gcc_ge_4): ... here, change the return value.
3678 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3681 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3683 Fix non-only rename list for Fortran modules import.
3684 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3685 cp_add_using_directive caller.
3686 (cp_add_using_directive): New parameter excludes, describe it. New
3687 variables ix and param. Compare if also excludes match. Allocate NEW
3688 with variable size, initialize EXCLUDES there.
3689 (cp_lookup_symbol_imports): New variable excludep, test
3690 current->EXCLUDES with it.
3691 * cp-support.h: Include vec.h.
3692 (struct using_direct): New field excludes, describe it.
3693 (DEF_VEC_P (const_char_ptr)): New.
3694 (cp_add_using_directive): New parameter excludes.
3695 * defs.h (const_char_ptr): New typedef.
3696 * dwarf2read.c (read_import_statement): New variables child_die,
3697 excludes and cleanups, read in excludes.
3698 (read_namespace): Adjust the cp_add_using_directive caller.
3700 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3704 negative comparisons.
3706 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3708 * mi/mi-main.c (mi_cmd_list_features): Emit
3709 breakpoint-notifications.
3711 2011-06-29 Tom Tromey <tromey@redhat.com>
3714 * valprint.h (generic_emit_char, generic_printstr): Declare.
3715 * valprint.c (wchar_printable, append_string_as_wide)
3716 (print_wchar): Move from c-lang.c.
3717 (generic_emit_char): New function; mostly taken from c_emit_char.
3718 (generic_printstr): New function; mostly taken from c_printstr.
3719 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3720 represented as arrays.
3721 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3723 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3724 identically to TYPE_CODE_INT.
3725 * f-lang.c (f_get_encoding): New function.
3726 (f_emit_char): Use generic_emit_char.
3727 (f_printchar): Replace comment.
3728 (f_printstr): Use generic_printstr.
3729 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3730 "character" types specially.
3731 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3733 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3735 (c_emit_char): Call generic_emit_char.
3736 (c_printstr): Call generic_printstr.
3738 2011-06-29 Gary Benson <gbenson@redhat.com>
3740 * breakpoint.c (bpstat_what): Removed duplicated case.
3742 2011-06-28 Tom Tromey <tromey@redhat.com>
3744 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3746 2011-06-27 Tom Tromey <tromey@redhat.com>
3748 * valops.c (find_overload_match): Call do_cleanups before early
3750 * top.c (execute_command): Call do_cleanups before early return.
3751 (command_loop): Likewise.
3752 * stack.c (backtrace_command): Make a null cleanup early. Don't
3753 conditionally call do_cleanups.
3754 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3756 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3757 so cleanups are always run.
3758 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3759 * findcmd.c (parse_find_args): Call do_cleanups on early return
3761 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3762 Don't conditionally call do_cleanups.
3763 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3766 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3768 * MAINTAINERS (Write After Approval): Use default email address.
3770 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3772 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3774 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3776 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3777 saved_regs_mask and copied_regs_mask fields.
3778 (sparc_record_save_insn): New prototype.
3779 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3780 (sparc_record_save_insn): New function.
3781 (sparc_analyze_prologue): Add head comment. Recognize store insns
3782 of call-saved registers. Use OFFSET consistently. Recognize flat
3783 frames and cache their settings.
3784 (sparc32_skip_prologue): Handle flat frames.
3785 (sparc_frame_cache): Add frame_offset to the base address.
3786 (sparc32_frame_cache): Adjust to new frame description.
3787 (sparc32_frame_prev_register): Likewise.
3788 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3789 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3790 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3791 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3792 frame by calling sparc_record_save_insn.
3793 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3794 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3795 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3797 2011-06-27 Tristan Gingold <gingold@adacore.com>
3799 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3800 field by map_addr and map_len.
3801 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3802 (munmap_section_buffer): Likewise.
3804 2011-06-24 Tom Tromey <tromey@redhat.com>
3806 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3807 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3808 * python/python.c (gdbpy_parameter): Make 'arg' const.
3809 (execute_gdb_command): Likewise.
3810 (gdbpy_decode_line): Likewise. Copy it.
3811 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3812 (gdbpy_write): Make 'arg' const.
3813 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3815 (gdbpy_lookup_type): Likewise.
3816 * python/py-prettyprint.c (print_children): Make 'name' const.
3817 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3818 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3820 * python/py-function.c (fnpy_init): Make 'name' const.
3821 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3822 (gdbpy_string_to_argv): Make 'input' const.
3823 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3825 * gdbtypes.h (lookup_typename): Update.
3826 * gdbtypes.c (lookup_typename): Make 'name' const.
3827 (lookup_struct): Likewise.
3828 (lookup_union): Likewise.
3829 (lookup_enum): Likewise.
3831 2011-06-24 Tom Tromey <tromey@redhat.com>
3833 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3834 gdb_thread_db.h. Move all common/ entries to be together.
3835 (TAGS): Don't depend on DEPFILES.
3837 2011-06-23 Yao Qi <yao@codesourcery.com>
3839 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3840 * remote.c (remote_start_remote): ... here.
3841 * monitor.c (monitor_open): ... here.
3843 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
3845 * gdbtypes.c (append_composite_type_field_aligned): Fix
3846 calculation of bit position based on alignment.
3848 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3850 * breakpoint.c (bpstat_stop_status): Call the check_status
3851 breakpoint_ops method.
3852 (print_one_breakpoint_location): Also print the condition for Ada
3853 exception catchpoints.
3854 (allocate_bp_location): New, factored out from
3855 allocate_bp_location.
3856 (allocate_bp_location): Adjust. Call the owner breakpoint's
3857 allocate_location method, if there is one.
3858 (free_bp_location): Call the locations's dtor method, if there is
3860 (init_raw_breakpoint_without_location): New breakpoint_ops
3862 (set_raw_breakpoint_without_location): Adjust.
3863 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3864 (set_raw_breakpoint): Adjust.
3865 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3866 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3867 re_set and check_status methods.
3868 (init_catchpoint): Don't memset, initialize thread, addr_string
3869 and enable_state. Pass the ops down to init_raw_breakpoint.
3870 (install_catchpoint): Rename to ...
3871 (install_breakpoint): ... this, and make extern.
3872 (create_fork_vfork_event_catchpoint): Adjust.
3873 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3874 re_set and check_status methods.
3875 (create_syscall_event_catchpoint): Adjust.
3876 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3877 (masked_watchpoint_breakpoint_ops): Install NULL
3878 allocate_location, re_set and check_status methods.
3879 (catch_exec_command_1): Adjust.
3880 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3881 re_set and check_status methods.
3882 (create_ada_exception_breakpoint): Rename to ...
3883 (init_ada_exception_breakpoint): ... this. Add a struct
3884 breakpoint parameter, and delete the exp_string, cond_string and
3885 cond parameters. Use init_raw_breakpoint, and don't install or
3886 mention the breakpoint yet. Don't clear breakpoint fields that
3887 init_raw_breakpoint already clears.
3888 (re_set_breakpoint): Delete, split into ...
3889 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3891 (breakpoint_re_set_one): Call the breakpoint's
3892 breakpoint_ops->re_set implementation, if there's one. Adjust.
3893 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3894 (struct bp_location_ops): New type.
3895 (struct bp_location): New field `ops'.
3896 (struct breakpoint_ops): New `allocate_location', `re_set' and
3897 `check_status' fields. Make `breakpoint_hit''s description match
3899 (init_bp_location): Declare.
3900 (breakpoint_re_set_default): Declare.
3901 (create_ada_exception_breakpoint): Rename to ...
3902 (init_ada_exception_breakpoint): ... this. Add a struct
3903 breakpoint parameter, and delete the exp_string, cond_string and
3905 (install_breakpoint): Declare.
3906 * ada-lang.c: Include exceptions.h.
3907 <Ada exceptions description>: Update.
3908 (struct ada_catchpoint_location): New type.
3909 (ada_catchpoint_location_dtor): New function.
3910 (ada_catchpoint_location_ops): New global.
3911 (ada_catchpoint): New type.
3912 (create_excep_cond_exprs): New function.
3913 (dtor_exception, allocate_location_exception, re_set_exception)
3914 (should_stop_exception, check_status_exception): New functions.
3915 (print_one_exception, print_mention_exception)
3916 (print_recreate_exception): Adjust.
3917 (dtor_catch_exception, allocate_location_catch_exception)
3918 (re_set_catch_exception, check_status_catch_exception): New
3920 (catch_exception_breakpoint_ops): Install them.
3921 (dtor_catch_exception_unhandled)
3922 (allocate_location_catch_exception_unhandled)
3923 (re_set_catch_exception_unhandled)
3924 (check_status_catch_exception_unhandled): New functions.
3925 (catch_exception_unhandled_breakpoint_ops): Install them.
3926 (dtor_catch_assert, allocate_location_catch_assert)
3927 (re_set_catch_assert, check_status_catch_assert): New functions.
3928 (catch_assert_breakpoint_ops): Install them.
3929 (ada_exception_catchpoint_p): Delete.
3930 (catch_ada_exception_command_split)
3931 (ada_exception_catchpoint_cond_string): Rename exp_string
3932 parameter to excep_string. Adjust.
3933 (ada_parse_catchpoint_condition): Delete.
3934 (ada_exception_sal): Rename the exp_string parameter to
3935 excep_string. Delete the cond_string and cond parameters.
3937 (ada_decode_exception_location): Rename the exp_string parameter
3938 to excep_string. Delete the cond_string and cond parameters.
3940 (create_ada_exception_catchpoint): New function.
3941 (catch_ada_exception_command, ada_decode_assert_location)
3942 (catch_assert_command): Adjust.
3943 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3945 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3947 * ada-lang.c: Include arch-utils.h.
3948 (ada_decode_exception_location): Make static.
3949 (catch_ada_exception_command): Moved here from breakpoint.c.
3950 (ada_decode_assert_location): Make static.
3951 (catch_assert_command): Moved here from breakpoint.c.
3952 (_initialize_ada_lang): Install the exception and assert
3953 catchpoint commands here.
3954 * ada-lang.h (ada_decode_exception_location)
3955 (ada_decode_assert_location): Delete declarations.
3956 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3958 (create_ada_exception_breakpoint): Make extern.
3959 (catch_ada_exception_command, catch_assert_command): Moved to
3961 (add_catch_command): Make extern.
3962 (_initilize_breakpoint): Don't install the exception and assert
3963 catchpoint commands here.
3964 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3966 (add_catch_command, create_ada_exception_breakpoint): Declare.
3968 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3970 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3971 the breakpoint to the breakpoint chain here.
3972 (set_raw_breakpoint_without_location): Add the breakpoint to the
3973 breakpoint chain here.
3974 (init_raw_breakpoint): Adjust comments.
3975 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3977 (init_catchpoint): Don't set the catchpoint's breakpoint number
3979 (install_catchpoint): New function.
3980 (create_fork_vfork_event_catchpoint)
3981 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3982 use install_catchpoint.
3984 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3986 * breakpoint.c (create_catchpoint_without_mention)
3987 (create_catchpoint): Delete.
3989 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3991 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3992 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3993 reference to exec_pathname.
3994 (struct exec_catchpoint): New type.
3995 (dtor_catch_exec): New function.
3996 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3997 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3998 (catch_exec_command_1): Adjust to use init_catchpoint.
3999 (delete_breakpoint): Remove reference to exec_pathname.
4001 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4003 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4004 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4005 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4006 reference to syscalls_to_be_caught.
4007 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4009 (struct syscall_catchpoint): New type.
4010 (dtor_catch_syscall): New function.
4011 (insert_catch_syscall, remove_catch_syscall)
4012 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4013 (print_recreate_catch_syscall): Adjust.
4014 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4015 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4016 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4017 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4018 (masked_watchpoint_breakpoint_ops)
4019 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4020 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4021 there is one. Remove references to syscalls_to_be_caught.
4022 (catching_syscall_number): Adjust.
4023 * ada-lang.c (catch_exception_breakpoint_ops)
4024 (catch_exception_unhandled_breakpoint_ops)
4025 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4027 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4029 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4031 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4032 reference to forked_inferior_pid.
4033 (struct fork_catchpoint): New type.
4034 (breakpoint_hit_catch_fork, print_it_catch_fork)
4035 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4036 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4037 (create_fork_vfork_event_catchpoint): Adjust to use
4040 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4042 * breakpoint.c (add_to_breakpoint_chain)
4043 (init_raw_breakpoint_without_location): New functions, factored
4045 (set_raw_breakpoint_without_location): ... this one.
4046 (init_raw_breakpoint): New function, factored out from
4047 set_raw_breakpoint and adjusted to use
4048 init_raw_breakpoint_without_location.
4049 (set_raw_breakpoint): Adjust.
4050 (init_catchpoint): New function, factored out from
4051 create_catchpoint_without_mention and adjusted to use
4052 init_raw_breakpoint.
4053 (create_catchpoint_without_mention): Adjust.
4055 2011-06-22 Tom Tromey <tromey@redhat.com>
4057 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4058 argument of 0 specially.
4060 2011-06-22 Yao Qi <yao@codesourcery.com>
4062 * infrun.c (handle_inferior_event): Remove write-only local variable
4063 `sw_single_step_trap_p'.
4065 2011-06-20 Tom Tromey <tromey@redhat.com>
4067 * symtab.c (lookup_language_this): End loop if block is NULL.
4069 2011-06-17 Tom Tromey <tromey@redhat.com>
4071 * valops.c (value_of_this): Use lookup_language_this.
4072 * symtab.h (lookup_language_this): Declare.
4073 * symtab.c (lookup_language_this): New function.
4074 (lookup_symbol_aux): Use lookup_language_this.
4075 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4077 2011-06-17 Tom Tromey <tromey@redhat.com>
4079 * value.h (value_of_this): Update.
4080 (value_of_local): Remove.
4081 * valops.c (value_of_this): Rename from value_of_local. Change
4083 * p-exp.y (exp): Update.
4084 (variable): Likewise.
4085 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4087 2011-06-17 Tom Tromey <tromey@redhat.com>
4089 * valops.c (value_of_local): Complain if NAME is NULL.
4090 * std-operator.def (OP_OBJC_SELF): Remove.
4091 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4092 * objc-exp.y (name_not_typename): Use OP_THIS.
4093 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4095 <OP_OBJC_SELF>: Remove.
4096 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4098 2011-06-16 Tristan Gingold <gingold@adacore.com>
4100 * python/py-events.h (gdb_py_events): Make it extern.
4101 * python/py-evtregistry.c (gdb_py_events): Declare.
4103 2011-06-16 Hui Zhu <teawater@gmail.com>
4105 * remote.c (remote_trace_set_readonly_regions): Add check for
4106 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4109 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4111 * arm-linux-tdep.c: Include "auxv.h".
4113 (ARM_LINUX_SIZEOF_VFP): Define.
4114 (arm_linux_supply_vfp): New function.
4115 (arm_linux_collect_vfp): Likewise.
4116 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4117 (arm_linux_fpa_regset_sections): New variable.
4118 (arm_linux_vfp_regset_sections): Likewise.
4119 (arm_linux_core_read_description): New function.
4120 (arm_linux_init_abi): Install arm_linux_core_read_description and
4121 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4122 appropriate for the architecture.
4123 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4124 (tdesc_arm_with_m): Declare.
4125 (tdesc_arm_with_iwmmxt): Likewise.
4126 (tdesc_arm_with_vfpv2): Likewise.
4127 (tdesc_arm_with_vfpv3): Likewise.
4128 (tdesc_arm_with_neon): Likewise.
4129 * arm-linux-nat.c: Move features/*.c includes ...
4130 * arm-tdep.c: ... here.
4131 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4132 target description data structures ...
4133 * arm-tdep.c (_initialize_arm_tdep): ... here.
4134 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4135 HWCAP_VFPv3D16): Move definitions ...
4136 * arm-linux-tdep.h: ... here.
4138 2011-06-15 Hui Zhu <teawater@gmail.com>
4140 * remote.c (remote_trace_set_readonly_regions): Add a check for
4143 2011-06-14 Tom Tromey <tromey@redhat.com>
4145 * coffread.c (coffread_objfile): Rename from current_objfile.
4146 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4147 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4149 2011-06-14 Tom Tromey <tromey@redhat.com>
4151 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4152 (class_symtab): Remove.
4153 (jv_dynamics_progspace_key): New global.
4154 (jv_per_objfile_free): Reset program space data. Update assert.
4155 Don't clear globals.
4156 (get_dynamics_objfile): Use and set program space data.
4157 (get_java_class_symtab): Use get_dynamics_objfile.
4158 (add_class_symbol): Likewise.
4159 (java_link_class_type): Likewise.
4160 (java_object_type, jv_clear_object_type, set_java_object_type):
4162 (get_java_object_type): Update. Don't cache result.
4163 (is_object_type): Don't call set_java_object_type.
4164 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4165 initialize jv_dynamics_progspace_key.
4167 2011-06-14 Tom Tromey <tromey@redhat.com>
4169 * symtab.h (current_objfile): Don't declare.
4170 * objfiles.h (current_objfile): Don't declare.
4171 * objfiles.c (current_objfile): Remove.
4172 * mdebugread.c (current_objfile): New file-scope global.
4173 * dbxread.c (current_objfile): New file-scope global.
4174 * coffread.c (current_objfile): New file-scope global.
4176 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4178 * top.h (line): Rename to ...
4179 (saved_command_line): ... this.
4180 (linesize): Rename to ...
4181 (saved_command_line_size): ... this.
4182 * top.c (line): Rename to ...
4183 (saved_command_line): ... this.
4184 (linesize): Rename to ...
4185 (saved_command_line_size): ... this.
4186 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4187 * event-top.c (command_line_handler): Adjust.
4188 * main.c (captured_main): Adjust.
4190 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4192 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4193 get_frame_func instead of get_frame_pc to determine the code
4194 address used to construct the frame ID.
4195 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4196 (i386_epilogue_frame_this_id): Likewise.
4197 (i386_epilogue_frame_prev_register): New function.
4198 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4199 (i386_stack_tramp_frame_sniffer): Fix coding style.
4200 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4201 (i386_gdbarch_init): Fix comments.
4203 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4205 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4206 instruction when walking back through the instruction stream.
4208 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4211 fullname parameters order.
4213 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4216 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4218 * psymtab.c (map_symbol_filenames_psymtab)
4219 (map_partial_symbol_filenames): Likewise.
4220 * psymtab.h: Include symfile.h.
4221 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4222 * symfile.h (symbol_filename_ftype): New.
4223 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4224 map_symbol_filenames, clarify more the naming in comment.
4226 2011-06-07 Doug Evans <dje@google.com>
4228 * cc-with-index.sh: Fix typos in comment.
4229 Look for ../../gdb, for fullname.exp.
4231 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4232 Pedro Alves <pedro@codesourcery.com>
4234 * cli/cli-cmds.c (shell_escape): Use waitpid.
4235 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4237 2011-06-07 Tristan Gingold <gingold@adacore.com>
4239 * xcoffread.c (dwarf2_xcoff_names): New variable.
4240 (aix_process_linenos): Add a guard.
4241 (xcoff_symfile_finish): Free dwarf2.
4242 (xcoff_initial_scan): Add dwarf2 support.
4244 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4246 * infcall.c (run_inferior_call): Don't mask async. Instead force
4247 a synchronous wait, if the target can async.
4249 * target.h (struct target_ops): Delete to_async_mask.
4250 (target_async_mask): Delete.
4251 * target.c (update_current_target): Delete references to to_async_mask.
4252 * linux-nat.c (linux_nat_async_mask_value): Delete.
4253 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4254 to linux_nat_async_mask_value.
4255 (linux_nat_async_mask): Delete.
4256 (linux_nat_async, linux_nat_close): Remove references to
4257 linux_nat_async_mask_value.
4258 * record.c (record_async_mask_value): Delete.
4259 (record_async): Remove references to record_async_mask_value.
4260 (record_async_mask): Delete.
4261 (record_can_async_p, record_is_async_p): Remove references to
4262 record_async_mask_value.
4263 (init_record_ops, init_record_core_ops): Remove references to
4265 * remote.c (remote_async_mask_value): Delete.
4266 (init_remote_ops): Remove reference to remote_async_mask.
4267 (remote_can_async_p, remote_is_async_p): Remove references to
4268 remote_async_mask_value.
4269 (remote_async): Remove references to remote_async_mask_value.
4270 (remote_async_mask): Delete.
4272 * infrun.c (fetch_inferior_event): Don't claim registers changed
4273 if the current thread is already not executing.
4275 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4277 From Stephen Kitt <steve@sk2.org>
4278 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4279 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4281 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4283 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4284 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4286 2011-06-03 Tom Tromey <tromey@redhat.com>
4288 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4290 * python/py-exitedevent.c (create_exited_event_object): Change
4291 type of 'exit_code'. Optionally add exit_code attribute.
4292 (emit_exited_event): Change type of 'exit_code'.
4293 * python/py-event.h (emit_exited_event): Update.
4294 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4295 * infrun.c (handle_inferior_event): Set exit code fields on
4297 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4299 * inferior.c (exit_inferior_1): Initialize new fields.
4301 2011-06-03 Tom Tromey <tromey@redhat.com>
4303 * dwarf2expr.c (get_signed_type): New function.
4304 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4306 2011-06-02 Keith Seitz <keiths@redhat.com>
4308 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4310 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4312 * top.h (simplified_command_loop): Delete declaration.
4314 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4316 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4317 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4319 2011-06-01 Yao Qi <yao@codesourcery.com>
4321 * objfiles.h (obj_section_addr): Update reference to objfile from
4323 (obj_section_endaddr): Likewise.
4325 2011-06-01 Daniel Jacobowitz <drow@false.org>
4327 * MAINTAINERS: Update my email address and affiliation. Also
4328 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4330 2010-05-31 Keith Seitz <keiths@redhat.com>
4333 * linespec.c (get_search_block): New function.
4334 (find_methods): Add FILE_SYMTATB parameter and use it and
4335 get_search_block to pass an appropriate block to
4336 lookup_symbol_in_namespace.
4337 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4338 Check if *ARGPTR starts with a filename first.
4339 If it does, call locate_first_half again to locate the next
4340 "first half" of the linespec.
4341 Pass FILE_SYMTATB to decode_objc and decode_compound.
4342 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4343 (locate_first_half): Stop on the first colon seen.
4344 (decode_compound): Add FILE_SYMTAB parameter.
4345 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4346 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4347 get_search_block with lookup_symbol.
4348 (find_method): Add FILE_SYMTAB parameter and pass it to
4350 (decode_objc): Use get_search_block.
4352 2010-05-31 Keith Seitz <keiths@redhat.com>
4355 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4356 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4357 and CP_ANONYMOUS_NAMESPACE_LEN.
4358 (cp_is_anonymous): Likewise.
4359 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4360 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4361 * dwarf2read.c (namespace_name): Likewise.
4362 (fixup_partial_die): Likewise.
4363 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4364 seen in the input, keep it.
4366 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4368 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4369 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4370 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4371 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4372 * remote.c (_initialize_remote): Register
4373 async_remote_interrupt_twice directly as
4374 sigint_remote_twice_token event.
4376 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4378 * target.h (enum inferior_event_type): Delete INF_ERROR.
4379 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4381 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4383 * interps.c (interp_set): Don't cancel continuations.
4385 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4389 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4391 * continuations.h (continuation_ftype): Add `err' parameter.
4392 Document parameters.
4393 (do_all_continuations, do_all_continuations_thread)
4394 (do_all_intermediate_continuations)
4395 (do_all_intermediate_continuations_thread)
4396 (do_all_inferior_continuations): Add `err' parameter.
4397 * continuations.c (do_my_continuations_1, do_my_continuations)
4398 (do_all_inferior_continuations, do_all_continuations_ptid)
4399 (do_all_continuations_thread_callback)
4400 (do_all_continuations_thread, do_all_continuations)
4401 (do_all_intermediate_continuations_thread_callback)
4402 (do_all_intermediate_continuations_thread)
4403 (do_all_intermediate_continuations): Add `err' parameter, and pass
4404 it down all the way to the continuations proper.
4405 * inf-loop.c (inferior_event_handler): If fetching an inferior
4406 event throws an error, don't pop the target, and still call the
4407 continuations, but with `err' set. Adjust all other continuation
4409 * breakpoint.c (until_break_command_continuation): Add `err'
4411 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4412 issue another step if `err' is set.
4413 (struct until_next_continuation_args): New.
4414 (until_next_continuation): Add `err' parameter. Adjust.
4415 (until_next_command): Adjust.
4416 (struct finish_command_continuation_args): Add `thread' field.
4417 (finish_command_continuation): Add `err' parameter. Handle it.
4418 (finish_forward): Adjust.
4419 (attach_command_continuation): Add `err' parameter. Handle it.
4420 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4421 cancel the continuations.
4422 * interps.c (interp_set): Adjust to cancel the continuations.
4423 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4424 continuations rather than discarding.
4425 (free_thread): Don't clear thread inferior resources here.
4426 (delete_thread_1): Do it here instead. And do it before removing
4427 the thread from the threads list. Tag the thread as exited before
4428 clearing thread inferior resources.
4430 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4432 * infcall.c (call_function_by_hand): Rephrase error message.
4434 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4436 * defs.h (struct thread_info, struct inferior): Delete forward
4438 * breakpoint.h (struct thread_info): New forward declaration.
4439 * observer.sh (struct inferior): New forward declaration.
4440 * python/python-internal.h (struct inferior): New forward
4443 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4445 * defs.h (struct continuation, continuation_ftype)
4446 (continuation_free_arg_ftype, add_continuation)
4447 (do_all_continuations, do_all_continuations_thread)
4448 (discard_all_continuations, discard_all_continuations_thread)
4449 (add_intermediate_continuation, do_all_intermediate_continuations)
4450 (do_all_intermediate_continuations_thread)
4451 (discard_all_intermediate_continuations)
4452 (discard_all_intermediate_continuations_thread)
4453 (add_inferior_continuation, do_all_inferior_continuations)
4454 (discard_all_inferior_continuations): Move to ...
4455 * continuations.h: ... this new file.
4456 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4457 infcmd.c, inferior.c, infrun.c, interps.c: Include
4460 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4461 Doug Evans <dje@google.com>
4463 Fix PR 10970, PR 12702.
4464 * linux-nat.c (linux_lwp_is_zombie): New function.
4465 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4466 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4468 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4470 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4472 (add_continuation, add_intermediate_continuation)
4473 (add_inferior_continuation): Use them.
4474 * continuations.c (struct continuation): Use them.
4475 (make_continuation_ftype): Delete.
4476 (make_continuation, add_inferior_continuation, add_continuation)
4477 (add_intermediate_continuation): Use continuation_ftype and
4478 continuation_free_arg_ftype. Rename parameters to shorter names.
4480 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4482 * continuations.c (make_continuation): Make it return void.
4483 (do_my_continuations): Rename to ...
4484 (do_my_continuations_1): ... this. Remove old_chain parameter and
4486 (do_my_continuations): New.
4487 (discard_my_continuations): Rename to ...
4488 (discard_my_continuations_1): ... this. Remove old_chain
4489 parameter and adjust.
4490 (discard_my_continuations): New.
4491 (add_inferior_continuation): Simplify.
4492 (do_all_inferior_continuations): Reimplement on top
4493 do_my_continuations.
4494 (discard_all_inferior_continuations): Simplify.
4495 (add_continuation): Simplify.
4496 (do_all_continuations_ptid): Simplify.
4497 (discard_all_continuations_thread_callback): Simplify.
4498 (add_intermediate_continuation): Simplify.
4499 (discard_all_intermediate_continuations_thread_callback):
4502 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4504 * utils.c (struct continuation, add_continuation)
4505 (add_inferior_continuation)
4506 (do_all_inferior_continuations, discard_all_inferior_continuations)
4507 (restore_thread_cleanup, do_all_continuations_ptid)
4508 (do_all_continuations_thread_callback)
4509 (do_all_continuations_thread, do_all_continuations)
4510 (discard_all_continuations_thread_callback)
4511 (discard_all_continuations_thread, discard_all_continuations)
4512 (add_intermediate_continuation)
4513 (do_all_intermediate_continuations_thread_callback)
4514 (do_all_intermediate_continuations_thread)
4515 (do_all_intermediate_continuations)
4516 (discard_all_intermediate_continuations_thread_callback)
4517 (discard_all_intermediate_continuations_thread)
4518 (discard_all_intermediate_continuations): Move to ...
4519 * continuations.c: ... this new file, and adjust to no longer
4520 implement continuations on top of cleanups.
4521 * Makefile.in (SFILES): Add continuations.c.
4522 (COMMON_OBS): Add continuations.o.
4524 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4526 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4527 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4528 Internal error on invalid values.
4529 * reverse.c: Don't handle EXEC_ERROR.
4530 * mi/mi-main.c: Don't handle EXEC_ERROR.
4532 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4534 * record.c: Include event-loop.h, inf-loop.h.
4535 (record_beneath_to_async): New global.
4536 (tmp_to_async): New global.
4537 (record_async_inferior_event_token): New global.
4538 (record_open_1): Don't error out if async is enabled.
4539 (record_open): Handle to_async. Create an async event source in
4541 (record_close): Delete the async event source.
4542 (record_resumed): New global.
4543 (record_execution_dir): New global.
4544 (record_resume, record_core_resume): Set them. Register the
4545 target on the event loop.
4546 (record_wait): Rename to ...
4547 (record_wait_1): ... this. Add more debug output. Handle
4548 TARGET_WNOHANG, and the target beneath returning
4549 TARGET_WAITKIND_IGNORE.
4550 (record_wait): Reimplement on top of record_wait_1.
4551 (record_async_mask_value): New global.
4552 (record_async, record_async_mask, record_can_async_p)
4553 (record_is_async_p, record_execution_direction): New functions.
4554 (init_record_ops, init_record_core_ops): Install new methods.
4555 * infrun.c (fetch_inferior_event): Temporarily switch the global
4556 execution direction to the direction the target was going.
4557 (execution_direction): Change type to int.
4558 * target.c (default_execution_direction): New function.
4559 (update_current_target): Inherit and de_fault
4560 to_execution_direction.
4561 * target.h (struct target_ops) <to_execution_direction>: New
4563 (target_execution_direction): New macro.
4564 * inferior.h (execution_direction): Change type to int.
4566 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4568 * infcall.c (call_function_by_hand): Don't allow calling functions
4569 in reverse execution mode.
4571 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4573 * infcmd.c (finish_command): Allow async finish in reverse.
4575 2011-05-26 Yao Qi <yao@codesourcery.com>
4577 * gdb_thread_db.h: Delete. Move to ...
4578 * common/gdb_thread_db.h: ... here.
4580 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4582 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4583 function's entry point instead of a manually managed momentary
4584 breakpoint, and only ever issue one proceed call.
4585 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4586 doing a reverse-finish, switch to stepi mode, to do another step.
4587 (insert_step_resume_breakpoint_at_sal): Make public.
4588 (normal_stop): No need to save function value return registers if
4590 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4592 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4594 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4595 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4596 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4598 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4599 step-resume breakpoints.
4600 (print_it_typical): Handle bp_hp_step_resume.
4601 (bpstat_what): Ditto.
4602 (bptype_string): Ditto.
4603 (print_one_breakpoint_location): Ditto.
4604 (allocate_bp_location): Ditto.
4606 (breakpoint_re_set_one): Ditto.
4607 * infrun.c (handle_inferior_event): Adjust. Split
4608 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4609 BPSTAT_WHAT_HP_STEP_RESUME.
4610 (insert_step_resume_breakpoint_at_sal): Rename to ...
4611 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4612 parameter. Handle it.
4613 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4614 insert_step_resume_breakpoint_at_sal_1.
4615 (insert_step_resume_breakpoint_at_frame): Rename to ...
4616 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4617 set a high-priority step-resume breakpoint.
4618 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4619 (insert_step_resume_breakpoint_at_caller): Ditto.
4621 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4623 * breakpoint.c (iterate_over_related_breakpoints): New.
4624 (do_map_delete_breakpoint): New.
4625 (delete_command): Pass do_map_delete_breakpoint to
4626 map_breakpoint_numbers.
4627 (do_disable_breakpoint): New.
4628 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4630 (do_enable_breakpoint): Rename to ...
4631 (enable_breakpoint_disp): ... this.
4632 (enable_breakpoint): Adjust.
4633 (do_enable_breakpoint): New.
4634 (enable_once_breakpoint): Delete.
4635 (do_map_enable_breakpoint): New.
4636 (do_map_enable_once_breakpoint): New.
4637 (enable_once_command, enable_delete_command)
4638 (delete_trace_command): Iterate over the breakpoint's related
4641 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4643 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4644 for ALPHA_ZERO_REGNUM.
4645 (alpha_supply_int_regs): Explicitly supply zero as the value for
4646 ALPHA_ZERO_REGNUM in the register cache.
4647 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4649 2011-05-26 Yao Qi <yao@codesourcery.com>
4651 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4653 2011-05-26 Tristan Gingold <gingold@adacore.com>
4655 * symfile.h (struct dwarf2_section_names): New type.
4656 (struct dwarf2_debug_sections): New type.
4657 (dwarf2_has_info): Add parameter.
4658 * dwarf2read.c (dwarf2_elf_names): New variable.
4659 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4660 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4661 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4662 (dwarf2_has_info): Add names parameter. Pass names
4663 to dwarf2_locate_sections.
4664 (section_is_p): Rewrite using the names parameter.
4665 (dwarf2_locate_sections): Use section names from the names parameter.
4666 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4667 * elfread.c (read_psyms): Ditto.
4668 * machoread.c (macho_symfile_read): Ditto.
4670 2011-05-25 Andreas Schwab <schwab@redhat.com>
4673 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4675 2011-05-24 Keith Seitz <keiths@redhat.com>
4678 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4679 (decode_compound): Unconditionally call keep_name_info.
4681 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4683 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4684 scope, clear its command list.
4685 (map_breakpoint_numbers): Don't walk the related breakpoints list
4688 2011-05-24 Tom Tromey <tromey@redhat.com>
4690 * MAINTAINERS: Move Jim Blandy to past maintainers.
4692 2011-05-24 Tristan Gingold <gingold@adacore.com>
4694 * symfile.h (enum dwarf2_section_enum): New type.
4695 (dwarf2_get_section_info): New prototype.
4696 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4697 section_name by sect. Use a switch to select the info.
4698 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4699 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4701 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4703 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4704 shared library event breakpoint if there's no execution.
4706 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4708 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4709 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4711 2011-05-23 Tom Tromey <tromey@redhat.com>
4713 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4716 2011-05-23 Doug Evans <dje@google.com>
4718 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4719 entry for RuntimeError to doc string.
4721 2011-05-23 Jerome Guitton <guitton@adacore.com>
4723 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4724 sequence for probing loops.
4726 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4728 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4731 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4733 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4734 zero as the value for %g0 in the register cache.
4735 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4736 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4738 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4740 * infrun.c (proceed): Set previous_inferior_ptid here.
4741 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4742 inferior_ptid, not null_ptid.
4743 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4744 (fetch_inferior_event): Nor here.
4746 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4748 * inf-loop.c (inferior_event_handler): Only output a message if
4751 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4753 * MAINTAINERS: Update my e-mail address.
4755 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4757 * infrun.c (proceed): Switch the inferior event loop to
4758 INF_EXEC_COMPLETE if the target refused to resume from a
4761 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4763 * infcmd.c: Include "inf-loop.h".
4764 (step_once): When stepping into an inline subroutine, pretend the
4765 target has run. If the target can async, switch the inferior
4766 event loop to INF_EXEC_COMPLETE.
4767 * inferior.h (user_visible_resume_ptid): Declare.
4768 * infrun.c (user_visible_resume_ptid): New function, factored out
4771 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4772 that the current thread is running. Merge async and sync
4775 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4777 * infcmd.c (step_1): Simplify synchronous case.
4779 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4781 * tracepoint.c: Include exceptions.h.
4782 (TFILE_PID): Move higher in file.
4783 (tfile_open): Delay pushing the tfile target until we're assured
4784 the tfile header is present in the file. Wrap reading the initial
4785 newline-terminated lines in TRY_CATCH. Pop the target if the
4786 initial setup failed. Add the tfile's thread immediately
4787 aftwards, before any non-essential setup. Don't skip
4788 post_create_inferior if there are no traceframes present in the
4790 (tfile_close): Remove redundant check for null before xfree call.
4791 (tfile_thread_alive): New function.
4792 (init_tfile_ops): Register it as to_thread_alive callback.
4794 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4796 * tracepoint.c (tfile_open): Delete #if 0'd code.
4798 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4800 Fix -readnow for -gdwarf-4 unused type units.
4801 * dwarf2read.c (struct signatured_type): Remove the field offset.
4802 (create_signatured_type_table_from_index): Remove its initialization.
4803 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4804 instead. Add a complaint call.
4805 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4806 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4807 (lookup_signatured_type_at_offset, read_signatured_type)
4808 (write_one_signatured_type): Update the field for per_cu.
4810 2011-05-19 Tom Tromey <tromey@redhat.com>
4812 * python/py-inferior.c (python_inferior_exit): Use
4814 (python_on_resume): Likewise.
4816 2011-05-19 Matt Rice <ratmice@gmail.com>
4818 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4820 2011-05-19 Hui Zhu <teawater@gmail.com>
4822 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4824 2011-05-19 Hui Zhu <teawater@gmail.com>
4826 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4828 2011-05-18 Tom Tromey <tromey@redhat.com>
4830 * dwarf2read.c (dwarf2_add_field): Constify.
4831 * value.c (value_static_field): Constify.
4832 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4834 * ax-gdb.c (gen_static_field): Constify
4836 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 * linux-nat.c (kill_callback): Use SIGKILL first.
4840 2011-05-18 Joel Brobecker <brobecker@adacore.com>
4842 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4844 2011-05-18 Tom Tromey <tromey@redhat.com>
4846 * value.c (value_fn_field): Constify.
4847 * symtab.c (gdb_mangle_name): Constify.
4848 * stabsread.c (update_method_name_from_physname): Make 'physname'
4850 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4851 const. Use explicit fputc_filtered loop.
4852 (pascal_type_print_base): Constify.
4853 * p-lang.h (pascal_type_print_method_args): Update.
4854 * linespec.c (add_matching_methods): Constify.
4855 (add_constructors): Likewise.
4856 * jv-typeprint.c (java_type_print_base): Constify.
4857 * gdbtypes.h (struct cplus_struct_type)
4858 <fn_fieldlist.fn_field.physname>: Now const.
4859 * dwarf2read.c (compute_delayed_physnames): Constify.
4860 (dwarf2_add_member_fn): Likewise.
4861 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4863 2011-05-18 Pedro Alves <pedro@codesourcery.com>
4865 * infrun.c (resume): Mention which is the current thread, and its
4866 current PC in debug output.
4867 (prepare_to_proceed): Mention the thread switching in debug
4870 2011-05-18 Tom Tromey <tromey@redhat.com>
4872 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4873 path check. Use xmalloc and cleanups.
4874 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4876 2011-05-17 Tom Tromey <tromey@redhat.com>
4878 * cp-valprint.c (cp_print_value_fields): Catch errors from
4881 2011-05-17 Tom Tromey <tromey@redhat.com>
4883 * dwarf2read.c (dwarf2_get_die_type): Call
4884 get_die_type_at_offset.
4885 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4886 get_base_type function.
4888 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
4890 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4893 2011-05-16 Doug Evans <dje@google.com>
4895 * python/py-auto-load.c (source_section_scripts): Mention objfile
4898 2011-05-15 Doug Evans <dje@google.com>
4900 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4901 (try_thread_db_load_from_pdir): Call it. If unable to find
4902 libthread_db in directory of libpthread, see if we're looking at
4903 the separate-debug-info copy.
4905 * python/py-autoload.c (print_script): Print "Missing" instead of
4906 "No" for missing scripts.
4907 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4909 2011-05-13 Doug Evans <dje@google.com>
4911 * ui-file.c (stdio_file_write_async_safe): Add comment.
4913 2011-05-14 Hui Zhu <teawater@gmail.com>
4915 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4917 2011-05-13 Doug Evans <dje@google.com>
4919 Support $pdir and $sdir in libthread-db-search-path.
4920 * NEWS: Mention $sdir,$pdir.
4921 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4922 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4923 (try_thread_db_load_from_sdir): New function.
4924 (try_thread_db_load_from_dir): New function.
4925 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4926 system directories if search of libthread-db-search-path fails,
4927 that is now done via $sdir.
4928 (has_libpthread): New function.
4929 (thread_db_load): Remove search for libthread_db in directory of
4930 libpthread, that is now done via $pdir.
4932 * NEWS: Mention "info auto-load-scripts".
4933 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4934 script_not_found_warning_printed.
4935 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4936 all callers updated. Initialize script_not_found_warning_printed.
4937 (get_auto_load_pspace_data_for_loading): New function.
4938 (maybe_add_script): New function.
4939 (source_section_scripts): Simplify. Only print one warning regardless
4940 of the number of auto-load scripts not found.
4941 (clear_section_scripts): Clear script_not_found_warning_printed.
4942 (auto_load_objfile_script): Record script in hash table.
4943 (count_matching_scripts): New function.
4944 (maybe_print_script): Renamed from maybe_print_section_script, all
4945 callers updated. Rewrite to use ui_out_*.
4946 (info_auto_load_scripts): Renamed from
4947 maintenance_print_section_scripts, all callers updated.
4948 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4949 renamed as "info auto-load-scripts".
4951 2011-05-13 Tom Tromey <tromey@redhat.com>
4953 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4954 (read_sleb128): Likewise.
4956 2011-05-13 Tom Tromey <tromey@redhat.com>
4958 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4961 2011-05-13 Doug Evans <dje@google.com>
4963 * linux-nat.c (debug_linux_nat_async): Delete.
4964 Replace all references to use debug_linux_nat instead.
4965 (show_debug_linux_nat_async): Delete.
4966 (sigchld_handler): Call ui_file_write_async_safe instead of
4968 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4969 * ui-file.c (struct ui_file): New member to_write_async_safe.
4970 (null_file_write_async_safe): New function.
4971 (ui_file_write_async_safe): New function.
4972 (set_ui_file_write_async_safe): New function.
4973 (ui_file_new): Initialize to_write_async_safe.
4974 (stdio_file_write_async_safe): New function.
4975 (struct stdio_file): New member fd.
4976 (stdio_file_new): Initialize to_write_async_safe, fd.
4977 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4979 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4980 (set_ui_file_write_async_safe): Declare.
4981 (ui_file_write_async_safe): Declare.
4983 2011-05-13 Tom Tromey <tromey@redhat.com>
4985 * utils.c (do_value_free): New function.
4986 (make_cleanup_value_free): Likewise.
4987 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4989 (dwarf2_loc_desc_needs_frame): Call
4990 make_cleanup_value_free_to_mark.
4991 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4992 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4994 (new_dwarf_expr_context): Don't call value_mark.
4995 * dwarf2-frame.c (execute_stack_op): Call
4996 make_cleanup_value_free_to_mark.
4997 * defs.h (make_cleanup_value_free): Declare.
4999 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5001 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5002 prepare_execute_command.
5003 * top.c (prepare_execute_command): Return cleanup.
5004 (execute_command): Use cleanup from prepare_execute_command.
5005 * top.h (prepare_execute_command): Change prototype to return
5007 * defs.h (struct value): Add opaque declaration.
5008 (make_cleanup_value_free_to_mark): Add prototype.
5009 * utils.c (do_value_free_to_mark): New function.
5010 (make_cleanup_value_free_to_mark): Likewise.
5012 2011-05-12 Tom Tromey <tromey@redhat.com>
5014 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5015 cast left-hand-side to unsigned.
5017 2011-05-12 Tom Tromey <tromey@redhat.com>
5020 * value.h (value_from_contents): Declare.
5021 * value.c (value_from_contents): New function.
5022 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5023 (dwarf2_get_die_type): New function.
5024 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5025 (allocate_piece_closure): Acquire reference to values.
5026 (read_pieced_value): Update for value-based expressions.
5027 (write_pieced_value): Likewise.
5028 (free_pieced_value_closure): Call value_free as needed.
5029 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5030 Update for value-based expressions.
5031 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5032 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5033 <get_base_type>: New field.
5034 (struct dwarf_expr_piece) <v.value>: Change type.
5035 <v.regno>: New field.
5036 (struct dwarf_expr_context) <mark>: New field.
5037 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5038 (dwarf_expr_pop, dwarf_expr_push): Remove.
5039 (dwarf_expr_push_address): Declare.
5040 * dwarf2expr.c (dwarf_arch_cookie): New global.
5041 (struct dwarf_gdbarch_types): New.
5042 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5044 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5046 (dwarf_expr_push_address): New function.
5047 (dwarf_expr_pop): Now static.
5048 (dwarf_expr_fetch): Change return type.
5049 (dwarf_require_integral): New function.
5050 (dwarf_expr_fetch): Simplify.
5051 (add_piece): Update.
5052 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5054 (execute_stack_op) <sign_ext>: Remove.
5055 Use values for DWARF stack.
5056 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5057 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5059 (_initialize_dwarf2expr): New function.
5060 (add_piece): Update.
5061 (new_dwarf_expr_context): Set new field.
5062 (free_dwarf_expr_context): Call value_free_to_mark.
5063 * dwarf2-frame.c (no_base_type): New function.
5064 (execute_stack_op): Set get_base_type field. Update.
5066 2011-05-12 Tom Tromey <tromey@redhat.com>
5068 * dwarf2read.c (read_common_block): Fix formatting.
5070 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5072 * breakpoint.c (disable_breakpoint): Disable all locations
5073 associated with a tracepoint on target if a trace experiment is
5075 (disable_command): Disable a specific tracepoint location on target if
5076 a trace experiment is running.
5077 (do_enable_breakpoint): Enable all locations associated with a
5078 tracepoint on target if a trace experiment is running.
5079 (enable_command) Enable a specific tracepoint location on target if a
5080 trace experiment is running.
5081 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5082 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5083 to_disable_tracepoint.
5084 * target.h: Add declaration of struct bp_location.
5085 (struct target_ops): Add new functions
5086 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5087 to_disable_tracepoint to target operations.
5088 (target_supports_enable_disable_tracepoint): New macro.
5089 (target_enable_tracepoint): New macro.
5090 (target_disable_tracepoint): New macro.
5091 * remote.c (struct remote_state): Add new field.
5092 (remote_enable_disable_tracepoint_feature): New.
5093 (remote_protocol_features): Add new entry.
5094 (remote_supports_enable_disable_tracepoint): New.
5095 (remote_enable_tracepoint): New.
5096 (remote_disable_tracepoint): New.
5097 (init_remote_ops): Add remote_enable_tracepoint,
5098 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5099 to remote operations.
5100 * tracepoint.c (start_tracing): Allow tracing to start without any
5101 tracepoints enabled with just a warning if they can be re-enabled
5103 * NEWS: Add news item for the new behaviour of the enable and disable
5104 GDB commands when applied to tracepoints.
5105 Add news items for the new remote packets QTEnable and QTDisable.
5107 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5109 * config.in: Regenerate.
5110 * configure: Regenerate.
5111 * configure.ac <--with-system-readline> (for readline_echoing_p):
5113 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5114 (tui_old_rl_echoing_p): ... here.
5115 (tui_setup_io): Rename extern declaration readline_echoing_p to
5116 _rl_echoing_p. Adjust assignments for the both renames.
5118 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5120 * symtab.c (lookup_symtab): Run cleanup before returning.
5122 2011-05-11 Tom Tromey <tromey@redhat.com>
5124 * dwarf2read.c (handle_data_member_location): New function.
5125 (dwarf2_add_field): Use it.
5126 (read_common_block): Likewise.
5128 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5130 Make addrs->SECTINDEX always defined.
5131 * symfile.c (relative_addr_info_to_section_offsets): Check for
5132 SECTINDEX -1, not for zero ADDR.
5133 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5134 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5135 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5138 2011-05-10 Doug Evans <dje@google.com>
5140 * linux-thread-db.c: Whitespace cleanup.
5141 (try_thread_db_load_1): Fix comment.
5143 * linux-thread-db.c (set_libthread_db_search_path): New function.
5144 (_initialize_thread_db): Add setter for libthread-db-search-path.
5146 2011-05-09 Doug Evans <dje@google.com>
5148 * NEWS: Mention --with-iconv-bin.
5149 * configure.ac: New option --with-iconv-bin.
5150 * configure: Regenerate.
5151 * config.in: Regenerate.
5152 * defs.h (relocate_gdb_directory): Declare.
5153 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5154 removed progname parameter, and exported. All callers updated.
5155 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5157 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5158 adding missing call to restore_child_signals_mask.
5160 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5162 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5164 * infrun.c (proceed, start_remote): Adjust.
5165 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5166 and adjust to not handle it.
5167 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5168 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5169 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5170 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5171 * windows-nat.c (do_initial_windows_stuff): Adjust.
5172 * infcmd.c (attach_command): Adjust.
5173 (notice_new_inferior): Adjust.
5175 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5177 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5178 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5179 * spu-tdep.c (op_selb): Use correct value.
5181 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5183 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5184 "parent" parameter to symbol_file_add_from_bfd call.
5186 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5187 Thiago Jung Bauermann <bauerman@br.ibm.com>
5189 Implement support for PowerPC BookE masked watchpoints.
5190 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5192 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5193 method. Initialize to NULL in all existing breakpoint_ops instances.
5194 (struct breakpoint) <hw_wp_mask>: New field.
5195 * breakpoint.c (is_masked_watchpoint): Add prototype.
5196 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5197 breakpoint's breakpoint_ops.works_in_software_mode if available.
5198 (watchpoints_triggered): Handle the case of a hardware masked
5200 (watchpoint_check): Likewise.
5201 (works_in_software_mode_watchpoint): New function.
5202 (insert_masked_watchpoint, remove_masked_watchpoint)
5203 (resources_needed_masked_watchpoint)
5204 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5205 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5206 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5208 (masked_watchpoint_breakpoint_ops): New structure.
5209 (watch_command_1): Check for the existence of the `mask' parameter.
5210 Set b->ops according to the type of hardware watchpoint being created.
5211 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5212 (ppc_linux_remove_mask_watchpoint)
5213 (ppc_linux_masked_watch_num_registers): New functions.
5214 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5215 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5216 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5217 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5218 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5219 (target_masked_watch_num_registers): New functions.
5220 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5221 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5223 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5224 (target_masked_watch_num_registers): Add prototypes.
5226 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5230 (producer_is_gcc_ge_4_0): New function.
5231 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5232 symtab->language code.
5233 (var_decode_location): Set cu->has_loclist.
5234 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5235 skip. Intialize force_skip from locations_valid. Move the prologue
5236 skipping code into two passes.
5237 * symtab.h (struct symtab): Make the primary field a bitfield. New
5238 field locations_valid.
5240 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5242 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5243 (classify_inner_name): Call cp_lookup_nested_type with
5245 * cp-namespace.c (cp_lookup_nested_type): New variable
5246 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5247 type_name_no_tag_or_error with saved_parent_type.
5248 * dwarf2read.c (load_partial_dies): Read in any children of
5249 DW_TAG_typedef with complaint in such case.
5250 * gdbtypes.c (type_name_no_tag_or_error): New function.
5251 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5252 * valops.c (destructor_name_p): New comment for parameter type. Remove
5253 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5254 * value.h (destructor_name_p): Remove type const.
5256 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 * symtab.c (compare_symbol_name): New function.
5259 (completion_list_add_name, expand_partial_symbol_name): Call it,
5260 remove the variable ncmp.
5261 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5264 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5266 Demote to sw watchpoint only in update_watchpoint.
5267 * breakpoint.c (update_watchpoint): Change between software and
5268 hardware watchpoint for all kinds of watchpoints, not just
5269 read/write ones. Determine b->exact value here instead of
5270 in watch_command_1. Error out if there are not enough resources
5271 for a read or access hardware watchpoint.
5272 (watch_command_1): Remove logic of checking whether there are
5273 enough resources available, since update_watchpoint will do that
5274 work now. Don't set b->exact here. Catch exceptions thrown by
5275 update_watchpoint and delete the watchpoint.
5276 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5277 Use target_exact_watchpoints instead.
5278 (delete_breakpoint): Notify observers only if deleted watchpoint
5279 has a breakpoint number assigned to it.
5281 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5283 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5285 2011-05-05 Jerome Guitton <guitton@adacore.com>
5287 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5289 (i386_stack_tramp_frame_unwind): New static global.
5290 (i386_match_pattern): New function, extracted from i386_match_insn.
5291 (i386_match_insn): Use i386_match_pattern.
5292 (i386_match_insn_block): New function.
5293 (i386_tramp_chain_in_reg_insns)
5294 (i386_tramp_chain_on_stack_insns): New static variables.
5295 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5298 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5300 * configure.host (xscale*): Don't handle target.
5301 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5304 2011-05-04 Yao Qi <yao@codesourcery.com>
5306 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5308 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5311 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5312 | * elfread.c (elf_symtab_read): Stop memory leak.
5314 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5316 * nto-tdep.c (nto_target): Replace deprecated call to
5317 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5319 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5321 Fix false GCC warning.
5322 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5324 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5326 * breakpoint.c (update_watchpoint): Move code to change
5327 the enable state of breakpoint from here ...
5328 (do_enable_breakpoint): ... to here.
5330 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5332 * valprint.c (val_print_array_elements): Fixed poor performance
5333 of printing very large arrays with repeat_count_threshold set
5334 to unlimited. New comment.
5336 2011-04-29 Tom Tromey <tromey@redhat.com>
5338 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5339 (mi_parse): Likewise.
5340 * breakpoint.c (break_range_command): Use sizeof char*, not
5342 (create_breakpoint): Likewise.
5343 (parse_breakpoint_sals): Likewise.
5345 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5347 * linux-nat.c (linux_child_remove_fork_catchpoint)
5348 (linux_child_remove_vfork_catchpoint)
5349 (linux_child_remove_exec_catchpoint): New functions.
5350 (linux_target_install_ops): Install them.
5352 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5356 * varobj.c (install_default_visualizer): Do not install a
5357 visualizer if the varobj is CPLUS_FAKE_CHILD.
5358 (construct_visualizer): Likewise.
5360 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5362 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5363 case insensitive comparison.
5365 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5367 * infrun.c (proceed): Revert previous change.
5368 (resume): Instead, handle the case of signal delivery while stepping
5369 off a breakpoint location here, and only if software single-stepping
5370 is used. Handle nested signals.
5372 2011-04-28 Yao Qi <yao@codesourcery.com>
5374 * arm-tdep.c (copy_unmodified): Rename to ...
5375 (arm_copy_unmodified): .. this. New.
5376 (copy_preload): Move common part to ...
5377 (install_preload): .. this. New.
5378 (arm_copy_preload): New.
5379 (copy_preload_reg): Move common part to ...
5380 (install_preload_reg): ... this. New.
5381 (arm_copy_preload_reg): New.
5382 (copy_b_bl_blx): Move common part to ...
5383 (install_b_bl_blx): .. this. New.
5384 (arm_copy_b_bl_blx): New.
5385 (copy_bx_blx_reg): Move common part to ...
5386 (install_bx_blx_reg): ... this. New.
5387 (arm_copy_bx_blx_reg): New.
5388 (copy_alu_reg): Move common part to ...
5389 (install_alu_reg): ... this. New.
5390 (arm_copy_alu_reg): New.
5391 (copy_alu_shifted_reg): Move common part to ...
5392 (install_alu_shifted_reg): ... this. New.
5393 (copy_ldr_str_ldrb_strb): Move common part to ...
5394 (install_ldr_str_ldrb_strb): ... this. New.
5395 (arm_copy_ldr_str_ldrb_strb): New.
5396 (copy_copro_load_store): Move some common part to ...
5397 (install_copy_copro_load_store): ... this. New.
5398 (arm_copy_copro_load_store): New.
5400 (arm_copy_svc): Renamed from copy_svc.
5401 (copy_undef): Delete.
5402 (arm_copy_undef): Renamed from copy_undef.
5403 (decode_ext_reg_ld_st): Delete.
5404 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5405 (decode_svc_copro): Delete.
5406 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5407 (copy_copro_load_store, copy_alu_imm): update callers.
5408 (copy_extra_ld_st, copy_block_xfer): Likewise.
5409 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5410 (decode_miscellaneous, decode_dp_misc): Likewise.
5411 (decode_ld_st_word_ubyte, decode_media): Likewise.
5412 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5413 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5414 (decode_unconditional, decode_miscellaneous): Likewise.
5415 (decode_media, decode_b_bl_ldmstm): Likewise.
5416 (arm_process_displaced_insn): Likewise..
5417 (decode_misc_memhint_neon): Delete.
5418 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5419 (decode_miscellaneous): Delete.
5420 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5421 (decode_dp_misc): Delete.
5422 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5423 (decode_ld_st_word_ubyte): Delete.
5424 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5425 (decode_media): Delete.
5426 (arm_decode_media): Renamed from decode_media.
5427 (decode_b_bl_ldmstm): Delete.
5428 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5429 (decode_ext_reg_ld_st): Delete.
5430 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5431 (decode_unconditional): Delete.
5432 (arm_decode_unconditional): Renamed from decode_unconditional.
5434 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5436 Case insensitive lookups implementation.
5437 * dwarf2read.c: Include ctype.h.
5438 (struct mapped_index): New field version.
5439 (mapped_index_string_hash): New parameter index_version. New comment
5440 for it. Call tolower appropriately.
5441 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5442 Choose the right index version for mapped_index_string_hash.
5443 (dwarf2_read_index): Support also the index version 5. Initialize the
5444 new struct mapped_index field version.
5445 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5446 (find_slot): Explain the version needs. Pass INT_MAX for the new
5448 (write_psymtabs_to_index): Produce version 5.
5449 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5450 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5451 * psymtab.c (lookup_partial_symbol): Find the
5452 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5454 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5456 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5457 (completion_list_add_name): New variable ncmp, initialize it, use it.
5458 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5459 * utils.c (strcmp_iw): Support case_sensitive_off.
5460 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5461 New function comment part. New variables saved_string1,
5462 saved_string2 and case_pass. Add a proper second pass.
5464 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5466 Replace re_comp/re_exec by regcomp/regexec.
5467 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5468 (search_symbols_name_matches): Use them, use regexec.
5469 (search_symbols): New variable retval_chain, adjust the use of
5470 old_chain against it. Replace re_comp by regcomp. Use the new struct
5471 search_symbols_data fields, use regexec instead of re_exec.
5473 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 Format the code for the next patch.
5476 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5477 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5478 New variables c1 and c2.
5480 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5482 * infrun.c (proceed): Do not single-step into signal delivery
5483 when stepping off a breakpoint location.
5484 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5485 (insert_step_resume_breakpoint_at_caller): Likewise.
5486 (insert_step_resume_breakpoint_at_sal): Likewise.
5487 (insert_longjmp_resume_breakpoint): Likewise.
5489 2011-04-27 Yao Qi <yao@codesourcery.com>
5491 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5493 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5495 * procfs.c (procfs_pass_signals): Fix advance declaration.
5497 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5499 * target.h (struct target_ops): Remove to_notice_signals;
5500 add to_pass_signals.
5501 (target_notice_signals): Remove.
5502 (target_pass_signals): Add prototype.
5503 * target.c (update_current_target): Remove to_notice_signals;
5504 mention to_pass_signals.
5505 (target_pass_signals): New function.
5506 (debug_to_notice_signals): Remove.
5507 (setup_target_debug): Do not install debug_to_notice_signals.
5509 * infrun.c (signal_pass): New global.
5510 (resume): Call target_pass_signals.
5511 (handle_inferior_event): Report all signals while stepping over
5512 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5513 are re-inserted when stepping over a signal handler.
5514 (signal_cache_update): New function.
5515 (signal_stop_update): Call it.
5516 (signal_print_update): Likewise.
5517 (signal_pass_update): Likewise.
5518 (handle_command): Call signal_cache_update and target_pass_signals
5519 instead of target_notice_signals.
5520 (_initialize_infrun): Initialize signal_pass.
5522 * linux-nat.c (pass_mask): New global.
5523 (linux_nat_pass_signals): New function.
5524 (linux_nat_create_inferior): Report all signals initially.
5525 (linux_nat_attach): Likewise.
5526 (linux_nat_resume): Use pass_mask to decide whether to directly
5527 handle an inferior signal.
5528 (linux_nat_wait_1): Likewise.
5529 (linux_nat_add_target): Install to_pass_signals callback.
5531 * nto-procfs.c (notice_signals): Remove.
5532 (procfs_resume): Do not call notice_signals.
5533 (procfs_notice_signals): Remove.
5534 (procfs_pass_signals): New function.
5535 (init_procfs_ops): Install to_pass_signals callback instead of
5536 to_notice_signals callback.
5537 (_initialize_procfs): Report all signals initially.
5539 * procfs.c (procfs_notice_signals): Remove.
5540 (procfs_pass_signals): New function.
5541 (procfs_target): Install to_pass_signals callback instead of
5542 to_notice_signals callback.
5543 (register_gdb_signals): Remove.
5544 (procfs_debug_inferior): Report all signals initially.
5545 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5547 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5548 parameters; use them instead of calling signal_..._state routines.
5549 (remote_notice_signals): Remove.
5550 (remote_start_remote): Report all signals initially.
5551 (remote_resume): Do not call remote_pass_signals.
5552 (_initialize_remote): Install to_pass_signals callback instead of
5553 to_notice_signals callback.
5555 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5557 * breakpoint.c (user_settable_breakpoint): Delete.
5558 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5559 (delete_command): Check user_breakpoint_p instead of looking at
5560 the breakpoint's type.
5561 (disable_command): Ditto.
5562 (enable_command): Ditto.
5563 (delete_trace_command): Use user_breakpoint_p instead of looking
5564 at the breakpoint number directly. When checking if there are
5565 user visible tracepoints, in order to know whether to ask the user
5566 for confirmation, check whether the breakpoint is actually a
5569 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5571 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5574 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5576 MI breakpoint notifications.
5578 * annotate.c (breakpoint_changed): Adjust parameter type.
5579 * breakpoint.c (set_breakpoint_condition): Adjust to change
5580 in breakpoint_modified type.
5581 (breakpoint_set_commands): Likewise.
5582 (do_map_commands_command): Likewise.
5583 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5584 changed after bumping hit count.
5585 (bpstat_stop_status): Likewise.
5586 (print_one_breakpoint_location): Don't wrap in tuple here.
5587 (print_one_breakpoint): Always print individual locations.
5588 For locations, use unnamed tuple.
5589 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5591 (create_catchpoint, create_syscall_event_catchpoint): Call
5592 breakpoint_created obsever.
5593 (mention): Don't call breakpoint_created observer.
5594 (create_breakpoint_sal): Call breakpoint_created observer.
5595 (create_breakpoint, watch_command_1): Likewise.
5596 (create_ada_exception_breakpoint): Likewise.
5597 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5598 (locations_are_equal): New.
5599 (update_breakpoint_locations): If locations were changed, notify.
5600 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5601 Call breakpoint_modified observer.
5603 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5604 (mi_cmd_break_insert): Don't set observers for modify and delete.
5605 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5606 (mi_breakpoint_created, mi_breakpoint_deleted)
5607 (mi_breakpoint_modified): New.
5608 (mi_interpreter_init): Hook the above.
5609 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5610 while -break-* commands are executing.
5611 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5612 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5614 (mi_ui_out_impl): Hook in mi_redirect.
5615 (mi_field_skip): True to the name, skip the field, don't output
5616 a field with an empty value.
5618 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5619 (gdbpy_breakpoint_deleted): Adjust.
5620 * tui/tui-hooks.c (tui_event_create_breakpoint)
5621 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5623 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5625 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5626 (procfs_remove_hw_watchpoint): Likewise.
5628 2011-04-26 Michael Walle <michael@walle.cc>
5630 * remote.c (remote_start_remote): Ack packet after sending the
5633 2011-04-26 Yao Qi <yao@codesourcery.com>
5635 * linux-nat.c: Move common macros to ...
5636 Include linux-ptrace.h.
5637 * common/linux-ptrace.h: ... here. New.
5639 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5641 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5642 !objfile_has_partial_symbols. New comment.
5643 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5644 SYM_READ_PSYMBOLS is not present. Extend the comment.
5645 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5647 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5649 * defs.h (ENUM_BITFIELD): Remove.
5651 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 Eli Zaretskii <eliz@gnu.org>
5654 * NEWS: Document the new gdbserver --once option.
5656 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5658 * MAINTAINERS: Update my email address.
5660 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5662 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5663 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5664 function call if __STDC_ISO_10646__ macro is defined.
5665 (intermediate_encoding): New prototype.
5666 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5667 to generate compile time error for unsupported gdb_wchar_t size.
5668 (ENDIAN_SUFFIX): New macro.
5669 (intermediate_encoding): New function.
5671 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5673 * ada-lang.c (struct add_partial_datum): Update the comment for
5674 expand_partial_symbol_name.
5675 (ada_add_partial_symbol_completions): Rename to ...
5676 (ada_expand_partial_symbol_name): ... here, change return type, update
5677 function comment, call symbol_completion_match instead of
5678 symbol_completion_add.
5679 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5680 and ada_expand_partial_symbol_name.
5681 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5683 (dw2_map_symbol_names): Remove.
5684 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5685 * psymtab.c (map_symbol_names_psymtab): Remove.
5686 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5687 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5689 (psym_functions): Unlist map_symbol_names_psymtab.
5690 (map_partial_symbol_names): Rename to ...
5691 (expand_partial_symbol_names): ... here, change the FUN type, call
5692 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5693 * psymtab.h (map_partial_symbol_names): Rename to ...
5694 (expand_partial_symbol_names): ... here, change the FUN type.
5695 * symfile.h (struct quick_symbol_functions): Update the description of
5696 expand_symtabs_matching. Remove map_symbol_names.
5697 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5698 (struct add_name_data): Update the comment for
5699 expand_partial_symbol_name.
5700 (add_partial_symbol_name): Rename to ...
5701 (expand_partial_symbol_name): ... here. Replace
5702 completion_list_add_name call by strncmp.
5703 (default_make_symbol_completion_list_break_on): Use now
5704 expand_partial_symbol_names and expand_partial_symbol_name.
5705 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5707 2011-04-20 Tom Tromey <tromey@redhat.com>
5709 * dwarf2read.c (save_gdb_index_command): Replace format
5710 documentation with a pointer to the manual.
5712 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5714 * regcache.c: Include remote.h.
5715 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5716 (regcache_dump): Handle regcache_dump_remote.
5717 (maintenance_print_remote_registers): New function.
5718 (_initialize_regcache): Install "maint print remote-registers"
5720 * remote.c (map_regcache_remote_table): New function, factored out
5722 (init_remote_state): ... here.
5723 (remote_register_number_and_offset): New.
5724 * remote.h (remote_register_number_and_offset): Declare.
5726 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5728 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5729 null_ptid, assume and allow a NULL address space, instead of
5730 asking the target for the ptid's address space.
5731 * infrun.c (ptid_is_pid): Remove assertion.
5733 2011-04-19 Tom Tromey <tromey@redhat.com>
5735 * windows-tdep.c (windows_xfer_shared_library):
5736 * windows-nat.c (get_module_name, windows_make_so):
5737 * v850-tdep.c (v850_handle_pushm):
5738 * utils.c (null_cleanup, gdb_realpath):
5739 * ui-out.c (get_next_header):
5740 * tracepoint.c (clear_traceframe_info):
5741 * symtab.c (lookup_symtab):
5742 * serial.h (struct serial_ops):
5743 * mipsread.c (read_alphacoff_dynamic_symtab):
5744 * infcmd.c (print_return_value):
5745 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5746 * f-exp.y (parse_number):
5747 * exceptions.c (catch_exceptions):
5748 * dummy-frame.c (dummy_frame_this_id):
5749 * defs.h (struct cleanup):
5750 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5751 * arm-tdep.c (arm_push_dummy_call):
5752 * amd64-tdep.h (amd64_collect_xsave):
5753 * amd64-tdep.c (amd64_collect_xsave):
5754 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5755 * README (typing): Remove duplicate words.
5756 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5757 * infrun.c (siginfo_value_read): Fix typo.
5758 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5759 * top.c (source_line_number): Add comma.
5761 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5763 * thread.c (any_live_thread_of_process): Prioritize threads
5764 that are not executing.
5765 * gdbthread.h (any_live_thread_of_process): Update comment
5766 as per above change.
5768 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5770 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5771 (scan_xcoff_symtab): Likewise.
5773 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5775 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5778 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5779 Pedro Alves <pedro@codesourcery.com>
5781 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5782 variables to simplify code and avoid == operator at end of
5783 line as this is against GNU coding standards.
5785 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5787 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5788 lm_name to name_lm to avoid conflict with lm_name function.
5790 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5792 ARI fixes: Use only lowercase function name for static functions.
5793 * nto-tdep.c (LM_ADDR): Rename to...
5794 (lm_addr): New function name.
5795 (nto_relocate_section_addresses): Adapt to change above.
5796 * solib-sunos.c (LM_ADDR): Rename to...
5797 (lm_addr): New function name.
5798 (LM_NEXT): Rename to...
5799 (lm_next): New function name.
5800 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5801 function name changes above.
5802 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5803 (lm_addr_from_link_map): New function name.
5804 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5805 (has_lm_dynamic_from_link_map): New function name.
5806 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5807 (lm_dynamic_from_link_map): New function name.
5808 (LM_ADDR_CHECK): Rename to...
5809 (lm_addr_check): New function name.
5810 (LM_NEXT): Rename to...
5811 (lm_next): New function name.
5812 (LM_PREV): Rename to...
5813 (lm_prev): New function name.
5814 (LM_NAME): Rename to...
5815 (lm_name): New function name.
5816 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5817 (ignore_first_link_map_entry): New function name.
5818 (svr4_keep_data_in_core): Adapt to function name changes above.
5819 (svr4_current_sos): Likewise.
5820 (enable_break): Likewise.
5821 (svr4_relocate_section_addresses): Likewise.
5823 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5826 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5827 sprintf. Simplify code and avoid loosing memory.
5828 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5829 (call0_frame_cache): Remove && operator from end of line.
5831 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5833 Fix libraries displacement if they change whether they were prelinked.
5834 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5835 does not match. Comment why.
5837 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5839 * corelow.c: Include wrapper.h.
5840 (core_open): Call now gdb_target_find_new_threads.
5841 * wrapper.c: Include target.h.
5842 (gdb_target_find_new_threads): New.
5843 * wrapper.h (gdb_target_find_new_threads): New declaration.
5845 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5847 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5848 even if !TARGET_HAS_EXECUTION.
5850 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5852 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5853 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5854 bfd_get_synthetic_symtab.
5855 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5856 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5857 parameter parent, remove the call to add_separate_debug_objfile.
5858 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5859 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5860 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5861 parent, new comment for it, call add_separate_debug_objfile for it.
5862 (symbol_file_add_separate): Pass objfile as the parameter parent,
5863 remove the call to add_separate_debug_objfile.
5864 (symbol_file_add_from_bfd): New parameter parent, pass it.
5865 (symbol_file_add): Pass NULL to the new parameter parent.
5866 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5868 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5870 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5873 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5875 Fix Python access to inlined frames.
5876 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5877 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5879 2011-04-15 Tom Tromey <tromey@redhat.com>
5881 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5883 2011-04-15 Gary Benson <gbenson@redhat.com>
5885 * MAINTAINERS: Add myself to write-after-approval section.
5887 2011-04-14 Mike Frysinger <vapier@gentoo.org>
5889 * remote-sim.c (sim_command_completer): New function.
5890 (_initialize_remote_sim): Set completer to sim_command_completer.
5892 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5894 * breakpoint.c (print_exception_catchpoint): Rename to ...
5895 (print_it_exception_catchpoint): ... this.
5896 (gnu_v3_exception_catchpoint_ops): Update with new name
5897 for print_it_exception_catchpoint.
5899 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5901 * MAINTAINERS: Add myself for write after approval privileges.
5903 2011-04-13 Marek Polacek <mpolacek@redhat.com>
5905 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5907 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5909 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5911 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5913 * breakpoint.c (save_breakpoints): Verify whether
5914 breakpoint_ops.print_recreate is defined before calling it.
5916 2011-04-11 Gary Benson <gbenson@redhat.com>
5918 Fix failure with --enable-maintainer-mode.
5919 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5921 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5924 * symtab.c (search_symbols): Reorder the KIND description in the
5925 function comment. Remove the unused 4th element of types, types2,
5926 types3 and types4. New gdb_assert on KIND.
5927 (symtab_symbol_info): Remove the unused 4th element of classnames.
5928 New gdb_assert on KIND.
5929 * symtab.h (enum search_domain): New warning in the enum comment.
5930 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5933 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5935 Fix crash of gdb save-index on a STABS file.
5936 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5939 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5941 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5942 * dwarf2read.c: Include ctype.h.
5943 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5945 (dwarf2_add_field): Fix new_field->accessibility by calling
5946 dwarf2_default_access_attribute. Restructure setting accessibility
5948 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5949 is_private and is_protected by calling
5950 dwarf2_default_access_attribute.
5952 2011-04-08 Kevin Buettner <kevinb@redhat.com>
5954 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5955 to the initialization.
5957 2011-04-08 Steve Ellcey <sje@cup.hp.com>
5959 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5962 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5964 Remove support for old Cygwin 1.5 versions.
5965 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5966 function on old Cygwin version.
5967 * windows-nat.c: Remove cygwin version check and always define
5968 __USEWIDE for Cygwin compilation.
5970 2011-04-07 Yao Qi <yao@codesourcery.com>
5972 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5974 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5975 (arm_copy_svc): Remove parameters INSN and TO.
5976 (decode_svc_copro): Update caller.
5977 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5978 from function pointer `copy_svc_os'.
5980 2011-04-07 Yao Qi <yao@codesourcery.com>
5982 * arm-tdep.c (cleanup_branch): Set a correct return address in
5983 LR for ARM and Thumb.
5985 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5988 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5989 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5990 in the function comment, a new note on values compatibility.
5991 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5992 * symtab.h (SYMBOL_HASH_NEXT): New.
5994 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5996 * ppc-linux-nat.c (check_condition): Add len output parameter.
5997 Set it based on the memory region referenced in the condition
5998 expression. Update all callers.
6000 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6002 Fix crash regression on systems featuring .gdb_index.
6003 * objfiles.c (free_objfile): Move the
6004 forget_cached_source_info_for_objfile call earlier. Comment it.
6005 Extend the comment for objfile_free_data.
6007 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6009 Fix regression of displaying the debug format.
6010 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6013 2011-04-04 Tom Tromey <tromey@redhat.com>
6015 * cli/cli-interp.c (struct captured_execute_command_args):
6017 (do_captured_execute_command): Remove.
6018 (safe_execute_command): Use TRY_CATCH.
6019 * cli/cli-script.c (struct wrapped_read_command_file_args):
6021 (wrapped_read_command_file): Remove.
6022 (script_from_file): Use TRY_CATCH.
6023 * exceptions.c (catch_exception): Remove.
6024 * exceptions.h (catch_exception): Remove.
6025 (deprecated_throw_reason): Update comment.
6026 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6027 argument to 'context'.
6028 (mi_execute_command): Use TRY_CATCH.
6029 * remote.c (struct start_remote_args): Remove.
6030 (remote_start_remote): Update; change arguments.
6031 (remote_open_1): Use TRY_CATCH.
6033 2011-04-04 Tom Tromey <tromey@redhat.com>
6035 * tracepoint.c (scope_info): Update.
6036 * symtab.c (decode_line_spec): Update.
6037 * python/python.c (gdbpy_decode_line): Update.
6038 * linespec.h (decode_line_1): Update.
6039 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6040 (decode_compound, find_method, symtab_from_filename)
6041 (decode_variable): Likewise.
6042 * cli/cli-cmds.c (edit_command): Update.
6043 (list_command): Update.
6044 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6046 (create_breakpoint): Update.
6047 (until_break_command): Update.
6048 (addr_string_to_sals): Update.
6049 (decode_line_spec_1): Update.
6051 2011-04-04 Tom Tromey <tromey@redhat.com>
6053 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6054 (do_captured_parse_breakpoint): Remove.
6055 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6056 Use TRY_CATCH directly.
6058 2011-04-04 Tom Tromey <tromey@redhat.com>
6060 * symtab.h (free_symtab): Remove.
6061 (forget_cached_source_info_for_objfile): Declare.
6062 * symmisc.c (free_symtab): Remove.
6063 * source.c (forget_cached_source_info_for_objfile): New function.
6064 (forget_cached_source_info): Use it.
6065 * objfiles.c (free_objfile): Simplify check before calling
6066 clear_current_source_symtab_and_line. Call
6067 forget_cached_source_info_for_objfile.
6069 2011-04-04 Tom Tromey <tromey@redhat.com>
6071 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6072 (new_symtab): Don't set `free_code' on symtab.
6073 (new_linetable): Properly handle size==0.
6074 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6075 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6077 * jv-lang.c (struct jv_per_objfile_data): New.
6078 (jv_per_objfile_free): Free the data.
6079 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6080 (get_java_class_symtab): Set the `dict' field on the
6081 jv_per_objfile_data.
6082 (free_class_block): Remove.
6083 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6086 2011-04-04 Tom Tromey <tromey@redhat.com>
6088 * symfile.c (reread_symbols): Update.
6089 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6091 * objfiles.c (allocate_objfile): Update.
6092 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6094 * cp-namespace.c (lookup_symbol_file): Don't call
6095 lookup_possible_namespace_symbol.
6096 (initialize_namespace_symtab, get_possible_namespace_block)
6097 (free_namespace_block, cp_check_possible_namespace_symbols)
6098 (check_possible_namespace_symbols_loop)
6099 (check_one_possible_namespace_symbol)
6100 (lookup_possible_namespace_symbol): Remove.
6101 (maintenance_cplus_namespace): Replace with notice.
6102 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6104 2011-04-04 Tom Tromey <tromey@redhat.com>
6106 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6107 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6108 * symmisc.c (free_symtab): Don't free debugformat.
6109 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6110 (record_debugformat, record_producer): Document.
6111 * buildsym.c (end_symtab): Don't save debugformat and producer
6113 (end_symtab): Don't free debugformat and producer fields.
6114 (record_debugformat): Don't call xstrdup.
6115 (record_producer): Likewise.
6117 2011-04-04 Tom Tromey <tromey@redhat.com>
6119 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6120 (source_line_charpos, source_charpos_line): Remove.
6122 2011-04-04 Tom Tromey <tromey@redhat.com>
6124 * symtab.h (domain_enum): Split in two...
6125 (enum search_domain): New.
6126 (search_symbols): Update.
6127 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6128 redundant declarations.
6129 (search_symbols): Change 'kind' argument to search_domain.
6131 (print_symbol_info): Likewise.
6132 (symtab_symbol_info): Likewise.
6133 * symfile.h (struct quick_symbol_functions)
6134 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6135 <expand_symtabs_matching>: Likewise.
6136 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6137 (expand_symtabs_matching_via_partial): Update.
6138 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6139 (dw2_expand_symtabs_for_function): Update.
6140 * block.h: Moved anonymous enum...
6141 * defs.h (enum block_enum): ... here. Now named.
6143 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6145 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6146 * version.in: Bump version to 7.3.50.20110403-cvs.
6148 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6150 * NEWS: Create a new section for the next release branch.
6151 Rename the section of the current branch, now that it has
6154 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6156 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6157 for "fpscr" in target description.
6159 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6161 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6162 initialize it. Delay HASH initialization. Strip the part after open
6163 parenthesis for languages with qualifiers. Call do_cleanups.
6165 2011-04-01 Tom Tromey <tromey@redhat.com>
6167 * utils.c (report_command_stats): Don't print `-' for negative
6170 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6172 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6173 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6176 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6178 * breakpoint.h (bpdisp_text): Add declaration.
6179 * breakpoint.c (bpdisp_text): Make non-static.
6180 * ada-lang.c: #include "mi/mi-common.h".
6181 (print_it_exception): Rewrite to improve GDB/MI output.
6183 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6185 * arm-tdep.h (struct address_space): Add forward declaration.
6187 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6189 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6190 * arm-tdep.c (arm_override_mode): New global.
6191 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6192 execution mode heuristics.
6193 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6194 second single-step breakpoint if needed, using
6195 arm_insert_single_step_breakpoint.
6196 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6197 ARM execution mode, do not call thumb_get_next_pc_raw.
6198 (arm_get_next_pc): Encode execution mode in return value. Call
6199 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6200 (arm_insert_single_step_breakpoint): New function.
6201 (arm_software_single_step): Call it.
6202 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6203 argument to return execution mode of sigreturn target.
6204 (arm_linux_syscall_next_pc): Use it.
6205 (arm_linux_copy_svc): Update call.
6206 (arm_linux_software_single_step): Call
6207 arm_insert_single_step_breakpoint.
6209 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6211 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6214 2011-03-31 Tom Tromey <tromey@redhat.com>
6216 * varobj.c (update_dynamic_varobj_children): Properly handle
6217 errors from iterator.
6219 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6221 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6222 struct linkage name twice.
6224 2011-03-31 Tom Tromey <tromey@redhat.com>
6226 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6227 missing ">" to message.
6229 2011-03-31 Tom Tromey <tromey@redhat.com>
6231 * varobj.c (instantiate_pretty_printer): Remove duplicate
6234 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6236 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6237 if neither saved value nor register available (e.g. signal frame).
6239 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6241 * macroexp.c (expand): Avoid uninitialized variable
6244 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6246 * breakpoint.c (break_range_command): Fix typo in comment.
6248 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6249 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6251 Implement support for PowerPC BookE ranged breakpoints.
6252 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6253 * breakpoint.h (struct bp_target_info) <length>: New member
6255 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6256 instead of struct breakpoint as argument, and also add ASPACE
6257 and BP_ADDR arguments. Update all callers.
6258 (struct breakpoint_ops) <print_one_detail>: New method.
6259 (struct breakpoint) <addr_string_range_end>: New member variable.
6260 * breakpoint.c (breakpoint_location_address_match): Add function
6262 (insert_bp_location): Set bl->target_info.length.
6263 (breakpoint_here_p): Call breakpoint_location_address_match.
6264 (moribund_breakpoint_here_p): Likewise.
6265 (regular_breakpoint_inserted_here_p): Likewise.
6266 (breakpoint_thread_match): Likewise.
6267 (bpstat_stop_status): Likewise.
6268 (bpstat_check_location): Move call to
6269 breakpoint_ops.breakpoint_hit to the top.
6270 (print_one_breakpoint_location): Call
6271 breakpoint_ops.print_one_detail if available.
6272 (breakpoint_address_match_range): New function.
6273 (breakpoint_location_address_match): Likewise.
6274 (breakpoint_locations_match): Compare the length field of the
6276 (hw_breakpoint_used_count): Count resources used by all locations
6277 in a breakpoint, and use breakpoint_ops.resources_needed if
6279 (breakpoint_hit_ranged_breakpoint): New function.
6280 (resources_needed_ranged_breakpoint): Likewise.
6281 (print_it_ranged_breakpoint): Likewise.
6282 (print_one_ranged_breakpoint): Likewise.
6283 (print_one_detail_ranged_breakpoint): Likewise.
6284 (print_mention_ranged_breakpoint): Likewise.
6285 (print_recreate_ranged_breakpoint): Likewise.
6286 (ranged_breakpoint_ops): New structure.
6287 (find_breakpoint_range_end): New function.
6288 (break_range_command): Likewise.
6289 (delete_breakpoint): Free addr_string_range_end.
6290 (update_breakpoint_locations): Add SALS_END argument. Update
6291 all callers. Calculate breakpoint length if a non-zero SALS_END
6292 is given. Call breakpoint_locations_match instead of
6293 breakpoint_address_match.
6294 (reset_breakpoint): Find SaL of the end of the range if B is a
6296 (_initialize_breakpoint): Register break-range command.
6297 * defs.h (print_core_address): Add function prototype.
6298 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6300 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6301 (ppc_linux_remove_hw_breakpoint): Likewise.
6302 (_initialize_ppc_linux_nat): Initialize
6303 to_ranged_break_num_registers.
6304 * target.c (update_current_target): Add comment about
6305 to_ranged_break_num_registers.
6306 (target_ranged_break_num_registers): New function.
6307 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6309 (target_ranged_break_num_registers): Add function prototype.
6310 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6311 * utils.c (print_core_address): ... here.
6313 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6315 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6316 variable compiler warning.
6318 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6320 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6322 (re_set_breakpoint): ... to here ...
6323 (addr_string_to_sals): ... and here.
6325 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6327 * Makefile.in (SFILES): Add missing C sources.
6328 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6329 Add missing headers.
6331 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6333 * .gitignore: New file.
6335 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6337 * NEWS: Mention new cfi device simulation.
6339 2011-03-29 Tom Tromey <tromey@redhat.com>
6341 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6342 otherwise anonymous types.
6343 (dwarf2_name): Likewise.
6344 * valops.c (value_struct_elt_for_reference): Refine artificial
6345 type logic. Call error if j==-1.
6347 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6349 Fix false GCC warning.
6350 * infcall.c (find_function_addr): Initialize funaddr.
6352 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6354 Fix mingw compilation with --enable-targets=all.
6355 * remote-mips.c (gdb_usleep.h): Include header.
6356 (mips_enter_debug): Use gdb_usleep instead of sleep.
6358 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6360 Support resolution of STT_GNU_IFUNC via breakpoints.
6361 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6362 bp_gnu_ifunc_resolver_return.
6363 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6364 the loop. Support bp_gnu_ifunc_resolver and
6365 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6366 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6368 (bptype_string, print_one_breakpoint_location): Support
6369 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6370 (user_settable_breakpoint): Return true also for
6371 bp_gnu_ifunc_resolver.
6372 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6373 bp_gnu_ifunc_resolver_return.
6374 (set_breakpoint_location_function): New parameter explicit_loc,
6375 describe it. Call find_pc_partial_function_gnu_ifunc with new
6376 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6377 EXPLICIT_LOC is not set.
6378 (set_raw_breakpoint): Set EXPLICIT_LOC for
6379 set_breakpoint_location_function.
6380 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6381 set_breakpoint_location_function.
6382 (mention): Support bp_gnu_ifunc_resolver and
6383 bp_gnu_ifunc_resolver_return.
6384 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6385 set_breakpoint_location_function.
6386 (update_breakpoint_locations): Remove static.
6387 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6388 bp_gnu_ifunc_resolver_return.
6389 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6390 bp_gnu_ifunc_resolver_return.
6391 (update_breakpoint_locations): New declaration.
6392 * elfread.c: Include gdbthread.h and regcache.h.
6393 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6395 (elf_gnu_ifunc_fns): Install them.
6396 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6397 (stub_gnu_ifunc_resolver_return_stop): New functions.
6398 (stub_gnu_ifunc_fns): Install them.
6399 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6400 and gnu_ifunc_resolver_return_stop.
6401 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6403 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6405 STT_GNU_IFUNC reader implementation.
6406 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6407 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6408 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6409 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6410 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6411 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6412 (elf_gnu_ifunc_resolve_addr): New.
6413 (elf_symfile_read): Call elf_rel_plt_read.
6414 (elf_gnu_ifunc_fns): New.
6415 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6416 Install elf_gnu_ifunc_fns.
6417 * infcall.c (find_function_return_type): New function.
6418 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6419 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6420 (stub_gnu_ifunc_resolve_name): New functions.
6421 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6422 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6423 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6425 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6427 Code cleanup for later STT_GNU_IFUNC support.
6428 * infcall.c (find_function_addr): Remove variable code, use explicit
6429 dereferences for it. Move VALUE_TYPE initialization later.
6431 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6433 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6434 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6435 (clear_pc_function_cache): Clear it.
6436 (find_pc_partial_function): Rename to ...
6437 (find_pc_partial_function_gnu_ifunc): ... this function. New
6438 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6439 (find_pc_partial_function): New wrapper for this function.
6440 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6442 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6444 GDB internal type support for STT_GNU_IFUNC.
6445 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6446 (elf_symtab_read): Set mst_text_gnu_ifunc for
6447 BSF_GNU_INDIRECT_FUNCTION.
6448 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6449 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6450 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6451 nodebug_got_plt_symbol.
6452 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6453 (TYPE_GNU_IFUNC): New.
6454 (struct main_type): New field flag_gnu_ifunc.
6455 (struct builtin_type): New field builtin_func_func.
6456 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6457 nodebug_got_plt_symbol.
6458 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6459 (in_gnu_ifunc_stub): New.
6460 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6462 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6463 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6464 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6466 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6467 * symtab.c (search_symbols): Likewise.
6468 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6469 and mst_slot_got_plt.
6470 (in_gnu_ifunc_stub): New declaration.
6472 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6474 Support a ring of related breakpoints.
6475 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6476 other functions, add gdb_assert.
6477 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6478 watchpoint_del_at_next_stop.
6479 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6480 (bpstat_stop_status): Handle ring in related_breakpoint.
6481 (set_raw_breakpoint_without_location): Initialize ring in
6483 (delete_breakpoint): Handle ring in related_breakpoint, use
6484 watchpoint_del_at_next_stop.
6485 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6487 2011-03-28 Tom Tromey <tromey@redhat.com>
6490 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6491 with `language_minimal'.
6493 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6495 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6496 instead of checking for STT_ARM_TFUNC symbol type.
6498 2011-03-25 Tom Tromey <tromey@redhat.com>
6500 * linespec.c (symbol_found): Restore line-based result for
6501 non-LOC_LABEL symbols.
6503 2011-03-25 Kai Tietz <ktietz@redhat.com>
6505 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6506 instead of strcmp for comparison.
6507 (tui_source_is_displayed): Likewise.
6508 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6510 2011-03-24 Mark Wielaard <mjw@redhat.com>
6512 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6514 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6515 (find_partial_die_in_comp_unit): Likewise in comment.
6516 (read_attribute_value): Likewise.
6517 (lookup_die_type): Likewise.
6518 (dwarf_form_name): Likewise.
6519 (dump_die_shallow): Likewise.
6520 (follow_die_ref_or_sig): Likewise.
6522 2011-03-24 Tom Tromey <tromey@redhat.com>
6524 PR breakpoints/11816:
6525 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6526 (decode_compound): Update.
6527 (find_function_symbol): New function.
6528 (decode_dollar): Update.
6529 (decode_label): Add 'function_symbol' parameter. Handle
6530 function-relative labels.
6531 (decode_variable): Update.
6532 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6533 not its line. Set `special_display' and canonical name for
6536 2011-03-24 Tom Tromey <tromey@redhat.com>
6538 * linespec.h (struct linespec_result) <special_display>: New
6540 * breakpoint.h (struct breakpoint) <display_canonical>: New
6542 * breakpoint.c (print_breakpoint_location): Respect
6544 (create_breakpoint_sal): Add 'display_canonical' parameter.
6545 (create_breakpoints_sal): Update.
6546 (create_breakpoint): Update.
6548 2011-03-24 Tom Tromey <tromey@redhat.com>
6550 * symtab.c (decode_line_spec): Update.
6551 * linespec.c (build_canonical_line_spec): Change type of
6553 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6554 (find_method, decode_all_digits, decode_dollar, decode_label)
6555 (symbol_found): Likewise.
6556 (init_linespec_result): New function.
6557 * breakpoint.c (struct captured_parse_breakpoint_args)
6558 <canonical_p>: New field, replaces addr_string_p.
6559 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6561 (parse_breakpoint_sals): Likewise.
6562 (do_captured_parse_breakpoint): Update.
6563 (create_breakpoint): Use struct linespec_result.
6564 (until_break_command): Update.
6565 (breakpoint_re_set_one): Update.
6566 (decode_line_spec_1): Update.
6567 * linespec.h (struct linespec_result): New.
6568 (init_linespec_result): Declare.
6570 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6572 * regcache.c (regcache_raw_read): If the target didn't supply a
6573 given raw register, mark it as unavailable.
6575 2011-03-23 Kai Tietz <ktietz@redhat.com>
6577 * breakpoint.c (clear_command): Use filename_cmp
6578 instead of strcmp for comparison.
6579 * buildsym.c (watch_main_source_file_lossage): Likewise.
6580 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6581 checking just for slash.
6582 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6583 strrchr and filename_cmp instead of strcmp for filenames.
6584 (add_old_header_file): Use filename_cmp
6585 instead of strcmp for comparison.
6586 * exec.c (exec_set_section_address): Likewise.
6587 * macrotab.c (macro_lookup_inclusion): Likewise.
6588 (macro_lookup_inclusion): Likewise.
6589 * elfread.c (_initialize_elfread): Likewise.
6590 (elfstab_offset_sections): Likewise.
6591 (elfstab_offset_sections): Use lbasename instead of
6593 * mdebugread.c (parse_partial_symbols): Likewise.
6594 (arse_partial_symbols): Use filename_(n)cmp instead of
6595 str(n)cmp for comparison.
6596 * minsyms.c (lookup_minimal_symbol): Likewise.
6597 * psymtab.c (read_psymtabs_with_filename): Likewise.
6598 * solib.c (solib_read_symbols): Likewise.
6599 (reload_shared_libraries_1): Likewise.
6600 * symmisc.c (maintenance_print_symbols): Likewise.
6601 * symfile.c (separate_debug_file_exists): Likewise.
6602 (reread_symbols): Likewise.
6603 (find_separate_debug_file_by_debuglink): Likewise.
6604 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6605 * source.c (add_path): Likewise.
6606 * symtab.c (filename_seen): Likewise.
6607 (file_matches): Likewise.
6608 (print_symbol_info): Likewise.
6609 (maybe_add_partial_symtab_filename): Likewise.
6610 (make_source_files_completion_list): Likewise.
6611 * xml-syscall.c (init_sysinfo): Likewise.
6612 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6613 IS_DIR_SEPARATOR for checking for trailing path separator.
6615 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6617 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6618 label abort_expression.
6619 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6620 DWARF_VALUE_OPTIMIZED_OUT.
6622 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6625 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6626 to linkage_name. Invert its value. Update the function comment.
6627 (c_type_print_varspec_suffix): Invert it at the caller.
6628 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6630 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6632 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6633 errors when reading the `stop_pc'.
6634 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6637 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6639 * NEWS: Document gdb.Write stream keyword.
6641 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6644 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6645 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6646 (dwarf2_add_field): Fix new_field->accessibility for
6647 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6649 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6653 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6654 other error classes. Do not print stack trace.
6656 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6658 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6659 (dwarf2_add_field): Fix new_field->accessibility for
6660 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6662 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6664 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6665 encountering a load via a non-SP register.
6667 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6669 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6670 field in returned unwinder.
6672 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6674 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6676 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6678 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6681 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6683 * frame.c (frame_unwind_register): Throw an error if unwinding the
6685 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6686 an unwind stop reason.
6687 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6688 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6689 UNWIND_UNAVAILABLE>: New.
6690 * inline-frame.c (inline_frame_unwind): Install
6691 default_frame_unwind_stop_reason.
6692 * frame-unwind.c: Include "exceptions.h".
6693 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6694 (default_frame_unwind_stop_reason): New.
6695 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6696 (default_frame_unwind_stop_reason): Declare.
6697 (struct frame_unwind) <stop_reason>: New function pointer.
6699 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6700 * dwarf2-frame.c: Include exceptions.h.
6701 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6702 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6703 computing the CFA. If such an error was thrown, set
6704 unavailable_retaddr.
6705 (dwarf2_frame_unwind_stop_reason): New.
6706 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6708 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6709 (dwarf2_signal_frame_unwind): Ditto.
6711 * amd64-tdep.c: Include "exceptions.h".
6712 (struct amd64_frame_cache): New field "base_p".
6713 (amd64_init_frame_cache): Clear it.
6714 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6715 Avoid reading registers with functions that throw if the register
6716 is not necessary to compute the frame base.
6717 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6718 swallowing NOT_AVAILABLE_ERROR.
6719 (amd64_frame_unwind_stop_reason): New.
6720 (amd64_frame_this_id): Don't build a frame id if the frame base
6722 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6723 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6724 base_p if the frame base was computable.
6725 (amd64_sigtramp_frame_unwind_stop_reason): New.
6726 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6727 frame base was unavailable.
6728 (amd64_sigtramp_frame_unwind): Install
6729 amd64_sigtramp_frame_unwind_stop_reason.
6730 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6731 base_p if the frame base was computable.
6732 (amd64_epilogue_frame_unwind_stop_reason): New.
6733 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6734 frame base was unavailable.
6735 (amd64_epilogue_frame_unwind): Install
6736 amd64_epilogue_frame_unwind_stop_reason.
6737 * i386-tdep.c: Include "exceptions.h".
6738 (struct i386_frame_cache): New field "base_p".
6739 (i386_init_frame_cache): Clear it.
6740 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6741 Avoid reading registers with functions that throw if the register
6742 is not necessary to compute the frame base.
6743 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6744 swallowing NOT_AVAILABLE_ERROR.
6745 (i386_frame_unwind_stop_reason): New.
6746 (i386_frame_this_id): Don't build a frame id if the frame base was
6748 (i386_frame_prev_register): Handle unavailable SP.
6749 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6750 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6751 base_p if the frame base was computable.
6752 (i386_epilogue_frame_unwind_stop_reason): New.
6753 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6754 base was unavailable.
6755 (i386_epilogue_frame_unwind): Install
6756 i386_epilogue_frame_unwind_stop_reason.
6757 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6758 base_p if the frame base was computable.
6759 (i386_sigtramp_frame_unwind_stop_reason): New.
6760 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6761 base was unavailable.
6762 (i386_sigtramp_frame_unwind): Install
6763 i386_sigtramp_frame_unwind_stop_reason.
6764 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6765 type's size, not the register's.
6766 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6768 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6769 default_frame_unwind_stop_reason.
6770 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6771 (alpha_heuristic_frame_unwind): Ditto.
6772 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6773 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6774 * avr-tdep.c (avr_frame_unwind): Ditto.
6775 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6777 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6778 * frv-tdep.c (frv_frame_unwind): Ditto.
6779 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6780 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6781 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6782 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6783 (hppa_stub_frame_unwind): Ditto.
6784 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6785 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6786 (ia64_libunwind_frame_unwind)
6787 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6788 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6789 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6790 * m32c-tdep.c (m32c_unwind): Ditto.
6791 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6792 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6793 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6794 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6795 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6796 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6797 * mep-tdep.c (mep_frame_unwind): Ditto.
6798 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6799 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6800 (mips_stub_frame_unwind): Ditto.
6801 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6802 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6803 * mt-tdep.c (mt_frame_unwind): Ditto.
6804 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6805 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6806 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6807 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6808 (s390_sigtramp_frame_unwind): Ditto.
6809 * score-tdep.c (score_prologue_unwind): Ditto.
6810 * sh-tdep.c (sh_frame_unwind): Ditto.
6811 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6812 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6813 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6814 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6815 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6816 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6817 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6818 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6819 (sparc64obsd_trapframe_unwind): Ditto.
6820 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6821 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6822 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6823 * v850-tdep.c (v850_frame_unwind): Ditto.
6824 * vax-tdep.c (vax_frame_unwind): Ditto.
6825 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6826 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6827 * xtensa-tdep.c (xtensa_unwind): Ditto.
6829 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6831 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6832 there's always a frame. Use get_frame_pc_if_available instead of
6833 get_frame_pc, and if there's no PC available, don't look up a
6836 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6838 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6841 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6843 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6846 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6848 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6849 * frame.c (frame_unwind_caller_pc_if_available): New.
6850 * stack.c (frame_info): Handle unavailable PC.
6852 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6854 * frame.c (frame_unwind_pc): Rename to ...
6855 (frame_unwind_pc_if_available): ... this. New `pc' output
6856 parameter. Change return type to int. Gracefully handle
6857 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6858 happened, or 1 otherwise.
6859 (frame_unwind_pc): Reimplement on top of
6860 frame_unwind_pc_if_available.
6861 (get_frame_func): Rename to ...
6862 (get_frame_func_if_available): New `pc' output parameter. Change
6863 return type to int. Gracefully handle the PC not being available.
6864 (get_frame_func): Reimplement on top of
6865 get_frame_func_if_available.
6866 (select_frame): Handle the PC being unavailable.
6867 (get_prev_frame): Handle the PC being unavailable.
6868 (get_frame_pc_if_available): New.
6869 (get_frame_address_in_block_if_available): New.
6870 (find_frame_sal): Handle the frame PC not being available.
6871 * frame.h (get_frame_pc_if_available): Declare.
6872 (get_frame_address_in_block_if_available): Declare.
6873 (get_frame_func_if_available): Declare.
6874 * stack.c (print_frame_info): Handle the PC being unavailable.
6875 (find_frame_funname): Ditto.
6876 (print_frame): Handle the PC being unavailable.
6877 (get_frame_language): Ditto.
6878 * blockframe.c (get_frame_block): Ditto.
6879 * macroscope.c (default_macro_scope): Ditto.
6880 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6882 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6884 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6885 NOT_AVAILABLE_ERROR when evaluating the location expression.
6887 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6889 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6890 returning that the register piece is unavailable/optimized out.
6891 (write_pieced_value): Handle get_frame_register_bytes returning
6892 that the register piece is unavailable/optimized out when doing a
6893 read-modify write of a bitfield.
6894 * findvar.c (value_from_register): Handle get_frame_register_bytes
6895 returning that the register piece is unavailable/optimized out.
6896 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6897 and `unavailablep'. Throw error on bad debug info. Use
6898 frame_register instead of frame_register_read, to fill in the new
6900 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6902 * valops.c: (value_assign): Adjust, and handle
6903 get_frame_register_bytes failing.
6904 * spu-tdep.c: Include exceptions.h.
6905 (spu_software_single_step): Adjust, and handle
6906 get_frame_register_bytes failing.
6907 (spu_get_longjmp_target): Ditto.
6908 * gdbarch.sh (register_to_value): Change to return int. New
6909 parameters `optimizedp' and `unavailablep'.
6910 * gdbarch.h, gdbarch.c: Regenerate.
6911 * i386-tdep.c (i386_register_to_value): Adjust to new
6912 gdbarch_register_to_value interface.
6913 * i387-tdep.c (i387_register_to_value): Ditto.
6914 * i387-tdep.h (i387_register_to_value): Ditto.
6915 * alpha-tdep.c (alpha_register_to_value): Ditto.
6916 * ia64-tdep.c (ia64_register_to_value): Ditto.
6917 * m68k-tdep.c (m68k_register_to_value): Ditto.
6918 * mips-tdep.c (mips_register_to_value): Ditto.
6919 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6921 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6923 * findvar.c (value_of_register): Mark the value as unavailable, if
6924 the register is unavailable.
6925 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6926 (frame_register): New `unavailablep' parameter.
6927 (frame_register_read): Update comment.
6928 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6929 Set it if the register is unavailable. If the register is
6930 unavailable, clear the output buffer.
6931 (frame_register): New `unavailablep' parameter. Pass it down.
6932 (frame_unwind_register): Adjust.
6933 (put_frame_register): Adjust.
6934 (frame_register_read): Adjust. Also return false if the register
6936 (frame_register_unwind_location): Adjust.
6937 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6938 is unavailable, mark the value accordingly.
6939 * stack.c (frame_info): Handle unavailable registers.
6941 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6943 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6944 simplify, using regcache_cooked_read.
6946 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6948 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6949 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6950 (regcache_raw_read_unsigned, regcache_raw_read_part)
6951 (regcache_cooked_read, regcache_cooked_read_signed)
6952 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6953 (regcache_cooked_read_ftype): Change return to enum
6955 * regcache.c: Include exceptions.h
6956 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6957 (do_cooked_read): Change return to enum register_status. Always
6958 forward to regcache_cooked_read.
6959 (regcache_raw_read): Change return to enum register_status. If
6960 the register is not REG_VALID, memset the buffer. Return the
6962 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6963 return the register's status.
6964 (regcache_raw_read_unsigned): Ditto.
6965 (regcache_cooked_read): Change return to enum register_status.
6966 Assert that with read-only regcaches, the register's status must
6967 be known. If the regcache is read-only, and the register is not
6968 REG_VALID, memset the buffer. Return the register's status.
6969 (regcache_cooked_read_signed): Change return to enum
6970 register_status. Handle non-REG_VALID registers and return the
6972 (regcache_cooked_read_unsigned): Change return to enum
6973 register_status. Handle non-REG_VALID registers and return the
6975 (regcache_xfer_part, regcache_raw_read_part)
6976 (regcache_cooked_read_part): Change return to enum
6977 register_status. Return the register's status.
6978 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6980 (regcache_dump): Handle unavailable cooked registers.
6981 * frame.c (do_frame_register_read): Adjust interface to match
6982 regcache_cooked_read_ftype.
6983 * gdbarch.sh (pseudo_register_read): Change return to enum
6985 * gdbarch.h, gdbarch.c: Regenerate.
6987 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6989 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6990 register_status. If reading a raw register indicates the raw
6991 register is not valid, return the raw register's status,
6992 otherwise, return REG_VALID.
6993 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6994 register_status. Handle non-REG_VALID raw registers and return
6995 the register's status.
6996 * arm-tdep.c (arm_neon_quad_read)
6997 (arm_pseudo_read): Change return to enum register_status. Handle
6998 non-REG_VALID raw registers and return the register's status.
6999 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7000 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7001 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7002 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7003 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7005 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7006 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7007 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7008 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7009 (m32c_pseudo_register_read): Change return to enum
7010 register_status. Adjust.
7011 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7012 enum register_status. Return the register's status.
7013 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7014 register_status. Return the register's status.
7015 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7016 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7017 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7018 * rs6000-tdep.c (move_ev_register_func): New typedef.
7019 (e500_move_ev_register): Use it. Change return to enum
7020 register_status. Return the register's status.
7021 (do_regcache_raw_read): New function.
7022 (do_regcache_raw_write): New function.
7023 (e500_pseudo_register_read): Change return to enum
7024 register_status. Return the register's status. Use
7025 do_regcache_raw_read.
7026 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7027 (dfp_pseudo_register_read): Change return to enum register_status.
7028 Return the register's status.
7029 (vsx_pseudo_register_read): Ditto.
7030 (efpr_pseudo_register_read): Ditto.
7031 (rs6000_pseudo_register_read): Ditto.
7032 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7033 register_status. Return the register's status.
7034 * sh64-tdep.c (pseudo_register_read_portions): New function.
7035 (sh64_pseudo_register_read): Change return to enum
7036 register_status. Use pseudo_register_read_portions. Return the
7038 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7039 register_status. Return the register's status.
7040 * sh-tdep.c (pseudo_register_read_portions): New function.
7041 (sh_pseudo_register_read): Change return to enum register_status.
7042 Use pseudo_register_read_portions. Return the register's status.
7043 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7044 enum register_status. Return the register's status.
7045 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7046 * spu-tdep.c (spu_pseudo_register_read_spu)
7047 (spu_pseudo_register_read): Ditto.
7048 * xtensa-tdep.c (xtensa_register_read_masked)
7049 (xtensa_pseudo_register_read): Ditto.
7050 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7052 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7054 * python/py-value.c (valpy_getitem): Fix formatting of error function
7057 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7059 ARI fixes: Add missing internationalization markups throughout
7061 * darwin-nat-info.c: Ditto.
7064 * mi/mi-main.c: Ditto.
7066 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7068 ARI fixes: Add missing internationalization markups throughout
7071 * cp-name-parser.y: Ditto.
7074 * objc-exp.y: Ditto.
7077 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7079 ARI fixes: Messages should have no trailing new lines.
7080 * darwin-nat.c (mach_check_error): Remove trailing new line from
7081 warning function call message.
7082 * record.c (bfdcore_read): Idem for error call.
7084 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7086 * common/signals.c (target_signal_from_host): Add _ markup to error
7087 function call message.
7088 (target_signal_to_host): Add _ markup and remove trailing new line
7089 from warning call message.
7090 (target_signal_from_command): Add _ markup to error function call
7093 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7097 * python/python.c (gdbpy_write): Accept a stream argument and
7098 operate to the appropriate stream.
7099 (gdbpy_flush): Likewise.
7100 (_initialize_python): Add stream constants.
7101 (finish_python_initialization): Add GdbOutputErrorFile class.
7103 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7105 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7107 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7109 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7110 to store_signed_integer. Add debug message when relocating CALL
7111 instructions. Fix formatting of debug message.
7112 * i386-tdep.c (i386_relocate_instruction): Ditto.
7114 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7116 * target.h (struct target_ops): Remove to_lookup_symbol field.
7117 (target_lookup_symbol): Delete macro.
7118 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7119 (update_current_target, setup_target_debug): Remove handling
7120 of to_lookup_symbol target_ops field.
7121 * ada-tasks.c (get_known_tasks_addr): Remove use of
7122 target_lookup_symbol.
7123 * coffread.c (coff_symtab_read): Likewise.
7124 * dbxread.c (read_dbx_symtab): Ditto.
7126 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7129 * configure.ac: Add getthrds declaration check.
7130 * configure, config.in: Regenerate.
7131 * aix-thread.c (getthrds): Declare only if not already declared
7132 in procinfo.h. More declaration out of get_signaled_thread to
7135 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7137 * python/py-symtab.c: Populate symtab_object_methods,
7139 (stpy_is_valid): New function.
7140 (salpy_is_valid): Ditto.
7141 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7142 (sympy_is_valid): New function.
7143 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7144 (objfpy_is_valid): New function.
7145 * python/py-inferior.c: Populate inferior_object_methods.
7146 (infpy_is_valid): New function.
7147 * python/py-infthread.c: Populate thread_object_methods.
7148 (thpy_is_valid): New function.
7149 * python/py-block.c: Declare block_object_methods. Populate. Declare
7150 block_iterator_object_methods. Populate.
7151 (blpy_is_valid): New function.
7152 (blpy_iter_is_valid): Ditto.
7154 2011-03-16 Keith Seitz <keiths@redhat.com>
7156 * linespec.c (find_methods): Canonicalize NAME before looking
7158 (name_end): New function.
7159 (keep_name_info): New function.
7160 (decode_line_1): Use keep_name_info.
7161 (decode_compound): Likewise.
7162 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7163 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7166 * linespec.c (locate_first_half): Keep overload information, too.
7167 (decode_compound): Use a string to represent break characters
7169 If P points to a break character, do not increment it.
7170 For C++ and Java, keep overload information and relevant keywords.
7171 If we cannot find a symbol, search the minimal symbols.
7174 * linespec.c (decode_compound): Rename SAVED_ARG to
7176 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7178 Pass a valid block to lookup_symbol.
7179 (lookup_prefix_sym): Likewise.
7180 (find_method): Construct search name based on SYM_CLASS instead
7182 * psymtab.c (lookup_partial_symbol): Add language parameter.
7183 (lookup_symbol_aux_psymtabs): Likewise.
7184 Don't assume that the psymtab we found was the right one. Search
7185 for the desired symbol in the symtab to be certain.
7186 (psymtab_search_name): New function.
7187 (lookup_partial_symbol): Use psymtab_search_name.
7188 Add language parameter.
7189 (read_symtabs_for_function): Add language parameter and pass to
7190 lookup_partial_symbol.
7191 (find_symbol_file_from_partial): Likewise.
7193 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7196 * dwarf2read.c (noop_record_line): New function.
7197 (dwarf_decode_lines): Ignore line tables for GCd functions.
7199 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7201 Fix ARI warnings about new lines at the end of messages, which
7202 are unneeded as there is a new line added at the end of the message
7204 * darwin-nat.c (darwin_stop_inferior): Ditto.
7205 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7206 * dfp.c (decimal_to_number): Ditto.
7207 * exec.c (print_section_info): Ditto.
7208 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7209 * osdata.c (get_osdata): Ditto.
7210 * record.c (bfdcore_write): Ditto.
7211 * remote-mips.c (mips_readchar): Ditto.
7212 * remote.c (read_ptid): Ditto.
7213 * ser-mingw.c (ser_windows_raw): Ditto.
7214 * tracepoint.c (add_local_symbols): Ditto.
7215 * windows-nat.c (fake_create_process): Ditto.
7217 2011-03-16 Tom Tromey <tromey@redhat.com>
7219 * tracepoint.c (stop_tracing): Don't declare.
7220 * event-top.c (after_char_processing_hook): Add `(void)'.
7222 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7224 * NEWS: Add Parameter sub-classing description.
7226 2011-03-16 Kai Tietz <ktietz@redhat.com>
7228 * MAINTAINERS: Update my e-mail address.
7230 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7232 * MAINTAINERS: Add myself for write after approval privileges.
7234 2011-03-15 Michael Snyder <msnyder@vmware.com>
7236 * frame.c (find_frame_sal): Assert sym is not null.
7238 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7240 * objc-lang.c (selectors_info): Check strchr for null result.
7242 * stabsread.c (define_symbol): Guard against bad stabstring input.
7244 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7246 Remove trailing spaces and tabulations from pascal language
7251 p-valprint.c: Ditto.
7253 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7255 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7256 than LOW. Comment it.
7257 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7258 HIGHPC not strictly higher than LOWPC.
7260 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7262 Fix formatting of function declarations returning a pointer in
7264 * varobj.c (varobj_add_child): Ditto.
7265 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7266 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7268 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7271 for the "generic" vector ABI used with GCC 4.3 and later.
7272 (ppc64_sysv_abi_return_value): Likewise.
7274 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7276 * infcall.c (call_function_by_hand): Function return value is
7277 always a non_lval, even when using struct_return.
7279 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7281 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7282 (map_display_numbers): New.
7283 (do_delete_display): New.
7284 (undisplay_command): Use map_display_numbers.
7285 (do_enable_disable_display): New.
7286 (enable_disable_display_command): New function.
7287 (enable_display): Delete.
7288 (enable_display_command): New.
7289 (disable_display_command): Reimplement.
7290 (_initialize_printcmd): Adjust "enable display" command to use
7291 `enable_display_command' as callback.
7293 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7295 * NEWS: Add Python breakpoint 'stop' operation.
7297 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7299 * NEWS: Delete duplicate entry. Fix typo.
7301 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7303 Fix ARI warning about function names in first column.
7304 Put prototype declaration on same line as return type.
7305 * objc-exp.y: Ditto.
7307 * python/py-stopevent.h: Ditto.
7308 For long function names, split parameters to
7309 allow function name on same line as return type.
7310 * solib-pa64.c: Ditto.
7313 For long function declaration, use single line.
7314 * hppa-tdep.h: Ditto.
7315 * inferior.h: Ditto.
7317 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7319 * python/python.h: Declare gdbpy_should_stop and
7320 gdbpy_breakpoint_has_py_cond.
7321 * python/python.c: Add python.h to includes. Remove python.h from
7322 HAVE_PYTHON definition
7323 (gdbpy_should_stop): New dummy function.
7324 (gdbpy_breakpoint_has_py_cond): New dummy function.
7325 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7326 sub-classing capabilities.
7327 (gdbpy_should_stop): New function.
7328 (gdbpy_breakpoint_has_py_cond): New function.
7329 (local_setattro): New function.
7330 * breakpoint.c (condition_command): Add check for Python 'stop'
7332 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7333 operation function as part of stop/continue tests.
7335 2011-03-14 Tom Tromey <tromey@redhat.com>
7338 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7339 (needs_frame_dwarf_call): Likewise.
7341 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7343 Fix ARI warning about functions without parameters that do not
7345 * breakpoint.c (all_tracepoints): Replace () by (void).
7346 * f-exp.y (match_string_literal): Ditto.
7348 * m2-exp.y (yylex): Ditto.
7349 * mep-tdep.c (current_me_module): Ditto.
7350 (current_options): Ditto.
7351 (current_cop_data_bus_width): Ditto.
7352 (current_cr_names): Ditto.
7353 (current_cr_is_float): Ditto.
7354 (current_ccr_names): Ditto.
7355 * objc-exp.y (yylex): Ditto.
7356 * p-exp.y (yylex): Ditto.
7357 * remote.c (send_interrupt_sequence): Ditto.
7358 * tracepoint.c (current_trace_status): Ditto.
7359 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7360 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7362 2011-03-11 Michael Snyder <msnyder@vmware.com>
7364 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7365 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7366 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7367 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7368 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7370 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7371 (delete_async_event_handler): Ditto.
7373 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7375 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7377 * top.c (set_verbose): Assert showcmd was found.
7379 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7381 * xtensa-tdep.c (warning_once): Correct style issues.
7383 2011-03-11 Yao Qi <yao@codesourcery.com>
7385 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7387 2011-03-11 Andreas Schwab <schwab@redhat.com>
7389 * common/aclocal.m4: Remove.
7391 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7393 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7394 (xtensa_write_register, xtensa_read_register): Likewise.
7395 (xtensa_hextochar): Removed.
7396 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7398 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7400 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7401 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7402 (xtensa_alloc_frame_cache): Add initialization for new fields.
7403 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7404 (warning_once): New function.
7405 (xtensa_insn_kind): New item c0opc_and.
7406 (call0_classify_opcode): Add the case for AND instruction.
7407 (call0_track_op): Change arguments. New local variable litbase.
7408 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7409 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7411 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7412 (call0_analyze_prologue): Update the comments. Change arguments.
7413 Add the variety of updates to handle extended prologues, which now can
7414 conduct dynamic stack adjustments.
7415 (call0_frame_cache): Likewise.
7416 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7417 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7419 2011-03-10 Michael Snyder <msnyder@vmware.com>
7421 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7422 (cmd_qtframe): Ditto.
7423 (cmd_qtbuffer): Ditto.
7424 (cmd_bigqtbuffer): Ditto.
7426 2011-03-10 Tom Tromey <tromey@redhat.com>
7428 * tracepoint.c (trace_actions_command): Update.
7429 * thread.c (thread_apply_command): Update.
7430 * reverse.c (delete_bookmark_command): Update.
7431 (bookmarks_info): Update.
7432 * printcmd.c (undisplay_command): Update.
7433 * memattr.c (mem_enable_command): Update.
7434 (mem_disable_command): Update.
7435 (mem_delete_command): Update.
7436 * inferior.c (detach_inferior_command): Update.
7437 (kill_inferior_command): Update.
7438 (remove_inferior_command): Update.
7439 * cli/cli-utils.h (struct get_number_or_range_state): New.
7440 (init_number_or_range): Declare.
7441 (get_number_or_range): Update.
7442 * cli/cli-utils.c (init_number_or_range): New function.
7443 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7445 (number_is_in_list): Update.
7446 * breakpoint.h (get_tracepoint_by_number): Update.
7447 * breakpoint.c (map_breakpoint_numbers): Update for change to
7448 get_number_or_range.
7449 (find_location_by_number): Use get_number, not
7450 get_number_or_range.
7451 (trace_pass_set_count): New function.
7452 (trace_pass_command): Update for change to get_number_or_range.
7454 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7457 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7459 * python/py-param.c (add_setshow_generic): Add set/show callback
7460 parameters. Register Python object context.
7461 (get_show_value): New function.
7462 (get_set_value): New function.
7463 (call_doc_function): New function.
7464 (get_doc_string): Move behind get_show_value/get_set_value.
7466 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7468 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7470 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7472 * xtensa-tdep.c (xtensa_read_register): Add comment.
7473 (xtensa_write_register): Likewise.
7474 (xtensa_hextochar): Add comment and update to match coding conventions.
7475 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7476 (execute_l32e, execute_s32e, execute_code): Update comments.
7477 (xtensa_exception_handler_t): Update to match coding conventions.
7478 (xtensa_insn_kind): Likewise.
7480 2011-03-09 Michael Snyder <msnyder@vmware.com>
7482 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7484 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7486 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7488 2011-03-09 Tom Tromey <tromey@redhat.com>
7490 * thread.c (restore_selected_frame): Handle frame_level == -1.
7491 (make_cleanup_restore_current_thread): Use
7492 get_selected_frame_if_set.
7493 * frame.h (get_selected_frame_if_set): Declare.
7494 * frame.c (get_selected_frame_if_set): New function.
7496 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7498 * cli/cli-cmds.c (shell_escape): Use lbasename.
7499 * coffread.c (coff_start_symtab): Constify parameter.
7500 (complete_symtab): Constify `name' parameter.
7501 (coff_symtab_read): Constify `filestring' local.
7502 (coff_getfilename): Constify return and `result' local.
7504 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7505 * linux-fork.c (info_checkpoints_command): Use lbasename.
7506 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7507 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7508 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7509 * procfs.c (procfs_make_note_section): Use lbasename.
7510 * tui/tui-io.c (printable_part): Constity return and parameter.
7512 (print_filename): Constify parameters, and local `s'.
7513 (tui_rl_display_match_list): Constify local `temp'.
7515 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7518 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7519 Fix DWARF-3+ DW_AT_accessibility default assumption.
7520 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7521 cu->header.version >= 3.
7523 2011-03-09 Yao Qi <yao@codesourcery.com>
7525 * common/Makefile.in: Remove.
7526 * common/configure: Remove.
7527 * common/configure.ac: Remove.
7529 2011-03-09 Yao Qi <yao@codesourcery.com>
7532 2011-02-11 Yao Qi <yao@codesourcery.com>
7534 * common/Makefile.in: Add copyright header.
7536 2011-02-11 Yao Qi <yao@codesourcery.com>
7538 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7540 * configure.ac: Add common to sub dir.
7541 * configure: Regenerate.
7543 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7545 * xtensa-tdep.c (call0_ret): New function.
7546 (xtensa_skip_prologue): Speed up analysis.
7548 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7550 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7551 while executing MI command -data-list-changed-registers.
7553 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7555 * xtensa-tdep.c (xtensa_read_register): New function.
7556 (xtensa_write_register): New function.
7557 (xtensa_find_register_by_name): New function.
7558 (xtensa_windowed_frame_cache): Update comments in type description.
7559 (xtensa_frame_cache): Likewise.
7560 (xtensa_window_interrupt_insn): New function.
7561 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7562 (xtensa_insn_kind): Add new instructions.
7563 (rwx_special_register): New function.
7564 (call0_classify_opcode): Add new instructions to the analysis.
7565 (a0_saved, a7_saved, a11_saved): New variables.
7566 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7567 (execute_l32e): New function.
7568 (execute_s32e): New function.
7569 (xtensa_exception_handler_t): New type.
7570 (execute_code): New function.
7571 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7572 analysis for Xtensa Window Exception handlers.
7574 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7576 * xtensa-tdep.c (TX_PS): New.
7577 (windowing_enabled): Update to count for Call0 ABI.
7578 (xtensa_hextochar): New.
7579 (xtensa_init_reggroups): Make algorithm generic.
7580 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7582 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7584 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7586 2011-03-08 Michael Snyder <msnyder@vmware.com>
7588 * i386-tdep.c (i386_follow_jump): Check return value of
7590 (i386_analyze_struct_return): Ditto.
7591 (i386_skip_probe): Ditto.
7592 (i386_match_insn): Ditto.
7593 (i386_skip_noop): Ditto.
7594 (i386_analyze_frame_setup): Ditto.
7595 (i386_analyze_register_saves): Ditto.
7596 (i386_skip_prologue): Ditto.
7597 (i386_skip_main_prologue): Ditto.
7599 * target.c (read_whatever_is_readable): Fix memory leak.
7601 * i386-tdep.c (i386_process_record): Document fall through.
7603 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7605 Fix DWARF-3+ DW_AT_accessibility default assumption.
7606 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7607 cu->header.version >= 3.
7609 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7611 * remote.c (remote_check_symbols): Skip if the target has no
7614 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7616 * target.c (read_whatever_is_readable): Reformat comment,
7617 with a minor typo fix. Minor reformatting of the code.
7619 2011-03-08 Yao Qi <yao@codesourcery.com>
7621 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7622 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7623 Use cached result instead of calling displaced_in_arm_mode again.
7624 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7625 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7626 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7627 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7628 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7629 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7630 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7631 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7632 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7633 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7634 (arm_catch_kernel_helper_return): Likewise.
7635 * gdb/arm-tdep.h : Update function declarations.
7637 2011-03-07 Michael Snyder <msnyder@vmware.com>
7639 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7641 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7643 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7645 * elfread.c (elf_symtab_read): Stop memory leak.
7647 * main.c (captured_main): Fix memory leak.
7649 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7651 * ada-lang.c (compare_names): Call is_name_suffix with string1
7654 2011-03-07 Tom Tromey <tromey@redhat.com>
7656 * xcoffread.c (xcoff_sym_fns): Update.
7657 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7658 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7659 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7660 (symbol_file_add_with_addrs_or_offsets): Likewise.
7661 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7662 * somread.c (som_sym_fns): Update.
7663 * psymtab.h (require_partial_symbols): Declare.
7664 * psymtab.c (require_partial_symbols): New function.
7665 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7666 (ALL_OBJFILE_PSYMTABS): Undef.
7667 (ALL_PSYMTABS): Move from psympriv.h.
7668 (lookup_partial_symtab, find_pc_sect_psymtab)
7669 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7670 (find_last_source_symtab_from_partial)
7671 (forget_cached_source_info_partial)
7672 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7673 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7674 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7675 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7676 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7677 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7678 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7679 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7680 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7682 * mipsread.c (ecoff_sym_fns): Update.
7683 * machoread.c (macho_sym_fns): Update.
7684 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7685 (read_psyms): New function.
7686 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7687 (elf_sym_fns_lazy_psyms): New global.
7688 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7689 dwarf2_build_psymtabs.
7690 * dbxread.c (aout_sym_fns): Update.
7691 * coffread.c (coff_sym_fns): Update.
7693 2011-03-07 Tom Tromey <tromey@redhat.com>
7695 * infrun.c (print_exited_reason): Include inferior id and pid in
7698 2011-03-07 Tom Tromey <tromey@redhat.com>
7700 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7702 (target_has_execution_1): Update.
7703 (target_has_execution_current): Declare.
7704 (target_has_execution): Call target_has_execution_current.
7705 (default_child_has_execution): Update.
7706 * target.c (default_child_has_execution): Add 'the_ptid'
7708 (target_has_execution_1): Likewise.
7709 (target_has_execution_current): New function.
7710 (add_target): Update.
7711 (init_dummy_target): Update.
7712 * remote-m32r-sdi.c (m32r_has_execution): New function.
7713 (init_m32r_ops): Use it.
7714 * record.c (record_core_has_execution): Now static. Add
7715 'the_ptid' parameter.
7716 * inferior.c (have_live_inferiors): Don't save current thread.
7717 Use target_has_execution_1.
7719 2011-03-07 Yao Qi <yao@codesourcery.com>
7721 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7723 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7725 * elfread.c (elf_symtab_read): Minor reformatting.
7727 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7729 * objc-lang.c (selectors_info): Minor reformatting.
7731 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7733 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7735 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7736 Michael Snyder <msnyder@vmware.com>
7738 * ada-valprint.c (ada_val_print_array): Move the declaration of
7739 "byte_order" and "elttype" inside the block where these variables
7740 are actually used. Remove some special handling for the case
7741 where "elttype" and "eltlen" are null. Replace by a comment
7742 and a couple of assertion checks.
7744 2011-03-05 Michael Snyder <msnyder@vmware.com>
7746 * source.c (add_path): Replace semicolon at end of block.
7747 * dwarf2expr.c (execute_stack_op): Ditto.
7749 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7751 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7752 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7753 (bfin-*-*): Likewise.
7755 2011-03-05 Michael Snyder <msnyder@vmware.com>
7757 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7758 * mdebugread.c (parse_symbol): Ditto.
7759 * parse.c (parse_exp_in_context): Ditto.
7760 * source.c (add_path): Ditto.
7761 * utils.c (gnu_debuglink_crc32): Ditto.
7762 * varobj.c (variable_language): Ditto.
7764 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7766 2011-03-04 Michael Snyder <msnyder@vmware.com>
7768 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7770 * symfile.c (simple_overlay_update): Check for null return value
7771 from lookup_minimal_symbol.
7773 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7775 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7777 * eval.c (parse_and_eval_address_1): Remove function.
7778 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7779 instead of parse_and_eval_address_1.
7780 * value.h (parse_and_eval_address_1): Remove prototype.
7782 2011-03-04 Michael Snyder <msnyder@vmware.com>
7784 * remote.c (putpkt_binary): Document that case stmt falls through.
7786 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7788 * breakpointc (print_it_typical): Move NULL check from here...
7789 (print_bp_stop_message): ... to here.
7791 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7793 * breakpoint.c (enable_command): Use break instead of continue,
7794 and fill in a missing break.
7795 (disable_command): Ditto.
7797 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7799 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7800 (terminal_save_ours): Remove misleading comment.
7801 (inflow_inferior_data_cleanup): Free ttystate.
7802 (inflow_inferior_exit): Likewise.
7803 (copy_terminal_info): Copy ttystate.
7805 * serial.c (serial_copy_tty_state): New function.
7806 * serial.h (serial_copy_tty_state): Add prototype.
7807 (struct serial_ops): Add copy_tty_state callback.
7808 * ser-base.c (ser_base_copy_tty_state): New function.
7809 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7810 * ser-go32.c (dos_copy_tty_state): New function.
7811 (dos_ops): Install copy_tty_state callback.
7812 * ser-mingw.c (_initialize_ser_windows): Likewise.
7813 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7814 * ser-unix.c (hardwire_copy_tty_state): New function.
7815 (_initialize_ser_hardwire): Install it.
7817 2011-03-04 Michael Snyder <msnyder@vmware.com>
7819 * breakpoint.c (create_breakpoint): Add missing break statement.
7821 Reverting this patch:
7822 * infcall.c (call_function_by_hand): Add break statements for lint.
7824 Reverting this patch:
7825 * cli/cli-script.c (script_from_file): Add break for lint.
7827 2011-03-04 Michael Snyder <msnyder@vmware.com>
7829 * solib.c (reload_shared_libraries_1): Close memory leak.
7831 2011-03-03 Tom Tromey <tromey@redhat.com>
7834 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7837 2011-03-03 Michael Snyder <msnyder@vmware.com>
7839 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7840 fields of struct 'st' to zero.
7842 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7843 sal.pspace before calling set_current_source_symtab_and_line.
7845 2011-03-03 Yao Qi <yao@codesourcery.com>
7847 * Makefile.in (configure-common): Remove. Let Makefile
7848 in dir common to rebuild itself.
7849 (common/Makefile): Likewise.
7851 2011-03-03 Joel Brobecker <brobecker@adacore.com>
7853 * utils.c (parse_escape): Add i18n markup in error message.
7855 2011-03-03 Yao Qi <yao@codesourcery.com>
7857 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7859 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7860 (displaced_write_reg, displaced_read_reg): Likewise.
7861 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7862 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7863 (cleanup_branch): Replace magic number 14 and 15 with
7864 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7866 2011-03-02 Michael Snyder <msnyder@vmware.com>
7868 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7870 * cli/cli-script.c (script_from_file): Add break for lint.
7872 * mdebugread.c (parse_partial_symbols): Fix indent.
7874 * target-descriptions.c (tdesc_gdb_type): No need to call
7875 xstrdup, callee saves a copy.
7877 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7879 * infcall.c (call_function_by_hand): Add break statements for lint.
7881 * utils.c (parse_escape): Escape the escape char.
7883 * python/py-inferior.c (build_inferior_list): Error out if
7884 PyList_Append fails.
7885 (gdbpy_inferiors): Error out if build_inferior_list fails.
7887 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7890 * record.c (record_restore): Move printf to before error return.
7892 2011-03-02 Yao Qi <yao@codesourcery.com>
7894 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7895 is_thumb and insn_size.
7896 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7897 on both ARM and Thumb mode.
7898 (arm_process_displaced_insn): Set is_thumb and insn_size.
7899 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7900 (arm_displaced_step_fixup): Likewise.
7902 2011-03-01 Michael Snyder <msnyder@vmware.com>
7904 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7906 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7908 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7910 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7912 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7915 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7916 which shadows function parameter.
7918 * tracepoint.c (create_tsv_from_upload): Superfluous call
7919 to xstrdup. Callee already calls xstrdup.
7921 * linespec.c (decode_line_1): Remove unnecessary null check.
7923 * tracepoint.c (scope_info): Fix mem leak, remove underused
7926 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7927 superfluous null check.
7929 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
7930 (value_of_builtin_frame_fp_reg): Ditto.
7932 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7934 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7937 * linespec.c (decode_line_1): Check for null before dereference.
7939 * reverse.c (record_restore): Move null-check to before pointer
7942 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7944 * objc-lang.c (selectors_info): Add explanitory comment.
7945 (classes_info): Ditto.
7947 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7949 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7950 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7951 versions of the trampoline. Handle Thumb vs. ARM addresses.
7952 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7953 (arm_linux_init_abi): Install it.
7954 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7955 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7957 2011-02-28 Michael Snyder <msnyder@vmware.com>
7959 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7960 a little bigger, to avoid possibility of an overflow.
7962 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7963 buffers a little bigger, to avoid possibility of an overflow.
7965 * coffread.c (coff_getfilename): Add check to avoid overflow.
7967 * objc-lang.c (selectors_info): Add a small safety margin to
7969 (classes_info): Error out on too long REGEXP.
7971 * infrun.c (handle_inferior_event): Remove unused function call.
7973 * fork-child.c (fork_inferior): Remove ifdef'd code and
7976 * linux-thread-db.c (attach_thread): Discard unused value.
7978 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7980 * remote.c (remote_get_noisy_reply): Discard unused value.
7981 (remote_vcont_resume): Ditto.
7982 (remote_stop_ns): Ditto.
7984 * linespec.c (decode_objc): Delete unused variable.
7986 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7988 * dwarf2read.c (add_partial_symbol): Discard unused values.
7989 (read_base_type): Delete unused variable.
7991 * dbxread.c (read_dbx_symtab): Discard unused value.
7993 * eval.c (evaluate_subexp_standard): Delete unused variable,
7994 and discard unused values.
7996 * infcmd.c (_initialize_infcmd): Discard unused values.
7998 * stabsread.c (rs6000_builtin_type): Missing break statement.
8000 * dbxread.c (process_one_symbol): Discard unused value.
8002 * coffread.c (coff_end_symtab): Delete unused variable.
8004 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8005 (dwarf2_add_typedef): Delete unused variable.
8006 (read_namespace): Ditto.
8007 (dwarf_decode_macros): Ditto.
8009 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8011 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8013 * p-valprint.c (pascal_val_print): Discard unused value.
8015 * utils.c (nquery): Call va_end before return;
8019 * proc-service.c (ps_plog): Call va_end before return.
8021 2011-02-28 Tom Tromey <tromey@redhat.com>
8023 * python/python.c (gdbpy_value_cst): New global.
8024 (_initialize_python): Initialize it.
8025 * python/python-internal.h (gdbpy_value_cst): Declare.
8026 * python/py-value.c (convert_value_from_python): Use
8029 2011-02-28 Michael Snyder <msnyder@vmware.com>
8031 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8033 * breakpoint.c (catch_syscall_completer): Free malloced list.
8035 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8037 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8038 (lval_func_check_synthetic_pointer): Ditto.
8039 (lval_func_free_closure): Fix use-after-free.
8041 2011-02-28 Tom Tromey <tromey@redhat.com>
8043 * psymtab.c (expand_partial_symbol_tables): Use
8044 ALL_OBJFILE_PSYMTABS.
8046 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8048 * objc-lang.c (selectors_info): Error on too long REGEXP.
8050 2011-02-28 Michael Snyder <msnyder@vmware.com>
8052 * python/py-param.c (set_parameter_value): Add missing
8055 * linux-record.c (record_linux_system_call): Add missing
8058 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8060 * breakpoint.c (print_one_breakpoint_location): Remove unused
8061 argument PRINT_ADDRESS_BITS. Update callers.
8062 (print_one_breakpoint): Likewise.
8064 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8066 * breakpoint.c (wrap_indent_at_field): New function.
8067 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8068 Allocate ui_stream locally instead of using STB argument.
8069 (print_one_breakpoint_location): Update call.
8070 * ui-out.c (ui_out_query_field): New function.
8071 * ui-out.h (ui_out_query_field): Add prototype.
8073 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8075 From Michael Snyder <msnyder@vmware.com>
8076 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8078 2011-02-27 Michael Snyder <msnyder@vmware.com>
8080 * objc-lang.c (selectors_info): Prevent string overrun.
8082 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8085 * symtab.c (rbreak_command): Move variable 'file_name' to
8088 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8089 param with a local variable of the same name.
8091 2011-02-27 Michael Snyder <msnyder@vmware.com>
8093 * value.c (value_from_history_ref): New function.
8094 * value.h (value_from_history_ref): Export.
8095 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8096 to parse value history references.
8097 * cli/cli-utils.h (get_number_trailer): Update comment.
8099 2011-02-27 Michael Snyder <msnyder@vmware.com>
8101 * inferior.c (detach_inferior_command): Use get_number_or_range.
8102 (kill_inferior_command): Ditto.
8103 (remove_inferior_command): Ditto.
8104 (initialize_inferiors): Make command names plural.
8105 Update help strings.
8107 2011-02-27 Michael Snyder <msnyder@vmware.com>
8109 * darwin-nat-info.c: Fix comment typo.
8110 * dwarf2expr.h: Ditto.
8111 * fbsd-nat.c: Ditto.
8112 * fbsd-nat.h: Ditto.
8113 * frame-unwind.h: Ditto.
8115 * hppa-hpux-tdep.c: Ditto.
8116 * i386-linux-nat.c: Ditto.
8117 * linux-nat.c: Ditto.
8118 * nbsd-nat.c: Ditto.
8119 * nbsd-nat.h: Ditto.
8120 * ppc-linux-tdep.c: Ditto.
8123 * tui/tui-winsource.c: Ditto.
8125 2011-02-26 Michael Snyder <msnyder@vmware.com>
8127 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8129 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8131 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8132 with a local variable of the same name.
8134 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8135 param with a local variable of the same name.
8136 (i387_supply_xsave): Ditto.
8138 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8139 that it does not shadow a function parameter.
8141 * i386-nat.c (i386_length_and_rw_bits): Document that case
8142 statement is meant to fall through.
8144 * expprint.c (dump_subexp_body_standard): Document that case
8145 statement is meant to fall through.
8147 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8148 dead if statement. Condition can't be false.
8150 2011-02-25 Michael Snyder <msnyder@vmware.com>
8152 * arm-tdep.c: Fix typos in comments.
8153 * bsd-uthread.c: Ditto.
8154 * completer.c: Ditto.
8156 * cp-namespace.c: Ditto.
8157 * cp-support.c: Ditto.
8158 * cris-tdep.c: Ditto.
8160 * dwarf2read.c: Ditto.
8162 * gdbtypes.h: Ditto.
8163 * inferior.h: Ditto.
8164 * mdebugread.c: Ditto.
8165 * mips-tdep.c: Ditto.
8166 * ppc-linux-nat.c: Ditto.
8167 * ppc-linux-tdep.c: Ditto.
8168 * printcmd.c: Ditto.
8169 * sol-thread.c: Ditto.
8170 * solib-frv.c: Ditto.
8172 * sparc64-tdep.c: Ditto.
8173 * spu-tdep.c: Ditto.
8174 * stabsread.c: Ditto.
8179 * python/py-block.c: Ditto.
8180 * python/py-symbol.c: Ditto.
8181 * python/py-symtab.c: Ditto.
8182 * python/py-value.c: Ditto.
8183 * tui/tui-win.c: Ditto.
8185 2011-02-25 Michael Snyder <msnyder@vmware.com>
8187 * inferior.c (print_inferior): Accept a string instead of an int
8188 for requested_inferiors, and use get_number_or_range to parse it.
8189 (info_inferiors_command): Pass args string to print_inferior.
8190 (initialize_inferiors): Change help string for info inferiors.
8191 * inferior.h (print_inferior): Export prototype change.
8193 2011-02-25 Tom Tromey <tromey@redhat.com>
8195 * common/ax.def (invalid2): Set to 0x31.
8197 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8199 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8201 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8203 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8205 2011-02-24 Michael Snyder <msnyder@vmware.com>
8207 * Makefile.in (clean): Make clean should remove generated files
8208 observer.h and observer.inc.
8210 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8212 Revert the following patch (not approved yet):
8213 2011-02-21 Hui Zhu <teawater@gmail.com>
8214 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8215 * ax-gdb.c (gen_printf_expr_callback): New function.
8216 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8217 * ax-general.c (ax_memcpy): New function.
8218 (ax_print): Handle "printf".
8220 * ax.h (ax_memcpy): Forward declare.
8221 * common/ax.def (invalid2): Removed.
8222 (printf): New entry.
8223 * printcmd.c (printcmd.h): New include.
8224 (string_printf): New function.
8225 (ui_printf): Removed.
8226 (printf_command): Remove static. Call string_printf.
8227 (eval_command): Call string_printf.
8228 * printcmd.h: New file.
8229 * tracepoint.c (validate_actionline,
8230 encode_actions_1): handle printf_command.
8232 2011-02-23 Tom Tromey <tromey@redhat.com>
8234 * ax-general.c (ax_pick): Add missing newline.
8236 2011-02-23 Michael Snyder <msnyder@vmware.com>
8238 * breakpoint.c (breakpoint_1): Change first argument from an int
8239 to a char pointer, so that the function now accepts a list of
8240 breakpoints rather than just one. Use new function
8241 'number_is_in_list' to implement.
8242 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8243 (watchpoints_info): Ditto.
8244 (tracepoints_info): Ditto.
8245 (maintenance_info_breakpoints): Ditto.
8246 (_initialize_breakpoint): Update help strings to reflect the fact
8247 that these functions can now take more than one argument.
8248 * cli/cli-utils.c (number_is_in_list): New function.
8249 * cli/cli-utils.h (number_is_in_list): Export.
8251 2011-02-23 Michael Snyder <msnyder@vmware.com>
8253 * memattr.c (mem_enable_command): Use get_number_or_range.
8254 (mem_disable_command): Ditto.
8255 (mem_delete_command): Ditto.
8256 (_initialize_mem): Tweak usage message to reflect multiple
8259 2011-02-22 Doug Evans <dje@google.com>
8261 Add gdb.lookup_global_symbol python function.
8263 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8264 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8265 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8267 2011-02-22 Tom Tromey <tromey@redhat.com>
8269 * language.c (language_class_name_from_physname): Rename
8270 'curr_language' argument to 'lang'; use in body.
8272 2011-02-22 Michael Snyder <msnyder@vmware.com>
8274 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8276 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8278 * frame-unwind.h: Fix comment to mention the this frame, not the
8281 2011-02-22 Tom Tromey <tromey@redhat.com>
8283 * symfile.c (auto_solib_limit): Remove.
8284 * symfile.h (auto_solib_limit): Remove.
8286 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8288 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8290 2011-02-21 Michael Snyder <msnyder@vmware.com>
8292 * gdbthread.h (print_thread_info): Change prototype.
8293 * thread.c (print_thread_info): Accept char* instead of int for
8294 requested_threads argument. Use new function number_is_in_list
8295 to determine which threads to list.
8296 (info_threads_command): Pass char* to print_thread_info.
8297 * cli/cli-utils.c (number_is_in_list): New function.
8298 * cli/cli-utils.h (number_is_in_list): Export.
8299 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8301 (print_one_inferior): Ditto.
8302 (mi_cmd_list_thread_groups): Ditto.
8304 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8306 * common/Makefile.in (CFLAGS): New.
8307 (COMPILE): Add $(CFLAGS).
8309 2011-02-21 Tom Tromey <tromey@redhat.com>
8311 * breakpoint.c (catch_syscall_command_1): Fix typo.
8313 2011-02-21 Tom Tromey <tromey@redhat.com>
8315 * reverse.c: Include cli-utils.h.
8316 * printcmd.c: Include cli-utils.h.
8317 (string_printf): Use skip_spaces.
8318 * cli/cli-utils.h: New file.
8319 * cli/cli-utils.c: New file.
8320 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8321 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8322 * breakpoint.h (get_number, get_number_or_range): Move to
8324 * breakpoint.c: Include cli-utils.h.
8325 (get_number_trailer, get_number, get_number_or_range)
8326 (ep_skip_leading_whitespace): Move to cli-utils.c.
8327 (create_breakpoint_sal, find_condition_and_thread)
8328 (decode_static_tracepoint_spec, watch_command_1)
8329 (watch_maybe_just_location, ep_parse_optional_if_clause)
8330 (catch_fork_command_1, catch_exec_command_1)
8331 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8332 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8333 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8334 (HFILES_NO_SRCDIR): Add cli-utils.h.
8335 (cli-utils.o): New target.
8337 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8339 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8340 before calling discard_all_inferiors.
8342 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8344 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8345 (struct builtin_opencl_type): Remove.
8346 (builtin_opencl_type): Change return type to "struct type **".
8347 (lookup_opencl_vector_type): Update caller.
8348 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8349 (build_opencl_types): Install plain array of "struct type *"
8350 instead of "struct builtin_opencl_type".
8352 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8353 Ulrich Weigand <uweigand@de.ibm.com>
8355 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8356 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8357 (struct arm_linux_hwbp_cap): New type.
8358 (arm_linux_get_hwbp_cap): New function.
8359 (arm_linux_get_hw_breakpoint_count): Likewise.
8360 (arm_linux_get_hw_watchpoint_count): Likewise.
8361 (arm_linux_can_use_hw_breakpoint): Likewise.
8362 (arm_hwbp_type): New type.
8363 (arm_hwbp_control_t): Likewise.
8364 (struct arm_linux_hw_breakpoint): Likewise.
8365 (struct arm_linux_thread_points): Likewise.
8366 (arm_threads): New global variable.
8367 (arm_linux_find_breakpoints_by_tid): New function.
8368 (arm_hwbp_control_initialize): Likewise.
8369 (arm_hwbp_control_is_enabled): Likewise.
8370 (arm_hwbp_control_disable): Likewise.
8371 (arm_linux_hw_breakpoint_initialize): Likewise.
8372 (arm_linux_get_hwbp_type): Likewise.
8373 (arm_linux_hw_watchpoint_initialize): Likewise.
8374 (arm_linux_hw_breakpoint_equal): Likewise.
8375 (arm_linux_insert_hw_breakpoint1): Likewise.
8376 (arm_linux_remove_hw_breakpoint1): Likewise.
8377 (arm_linux_insert_hw_breakpoint): Likewise.
8378 (arm_linux_remove_hw_breakpoint): Likewise.
8379 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8380 (arm_linux_insert_watchpoint): Likewise.
8381 (arm_linux_remove_watchpoint): Likewise.
8382 (arm_linux_stopped_data_address): Likewise.
8383 (arm_linux_stopped_by_watchpoint): Likewise.
8384 (arm_linux_watchpoint_addr_within_range): Likewise.
8385 (arm_linux_new_thread): Likewise.
8386 (arm_linux_thread_exit): Likewise.
8387 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8388 related target callbacks. Register arm_linux_new_thread and
8389 arm_linux_thread_exit.
8390 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8391 * arm-tdep.c (arm_pc_is_thumb): Make global.
8392 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8394 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8396 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8397 per-frame locations while within a function epilogue.
8399 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8401 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8402 to GNU coding standards.
8404 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8406 Allow use of mingw native on Windows 95 OS.
8407 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8408 (ser_windows_close): Only call CancelIo if function exists.
8409 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8410 to check for existence of CancelIo function in kernel32 DLL.
8412 2011-02-21 Hui Zhu <teawater@gmail.com>
8414 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8415 * ax-gdb.c (gen_printf_expr_callback): New function.
8416 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8417 * ax-general.c (ax_memcpy): New function.
8418 (ax_print): Handle "printf".
8420 * ax.h (ax_memcpy): Forward declare.
8421 * common/ax.def (invalid2): Removed.
8422 (printf): New entry.
8423 * printcmd.c (printcmd.h): New include.
8424 (string_printf): New function.
8425 (ui_printf): Removed.
8426 (printf_command): Remove static. Call string_printf.
8427 (eval_command): Call string_printf.
8428 * printcmd.h: New file.
8429 * tracepoint.c (validate_actionline,
8430 encode_actions_1): handle printf_command.
8432 2011-02-19 Michael Snyder <msnyder@vmware.com>
8434 * reverse.c (delete_one_bookmark): Argument is now bookmark
8435 id rather than pointer to bookmark struct.
8436 (delete_bookmark_command): Use get_number_or_range.
8437 (goto_bookmark_command): Parse with get_number instead of strtoul.
8438 (bookmark_1): New function. Print info for one bookmark.
8439 (bookmarks_info): Use get_number_or_range and bookmark_1.
8441 2011-02-18 Michael Snyder <msnyder@vmware.com>
8443 * thread.c (info_threads_command): Re-implement using
8444 get_number_or_range.
8445 (thread_apply_command): Ditto.
8447 2011-02-18 Tom Tromey <tromey@redhat.com>
8449 * common/ax.def: New file.
8450 * ax.h (enum agent_op): Use ax.def.
8451 * ax-general.c (aop_map): Use ax.def.
8453 2011-02-18 Tom Tromey <tromey@redhat.com>
8455 * ax-general.c (aop_map): Add pick and rot.
8456 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8457 <DW_OP_rot>: Implement.
8458 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8460 * ax-general.c (ax_pick): New function.
8462 2011-02-18 Tom Tromey <tromey@redhat.com>
8464 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8466 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8467 Tom Tromey <tromey@redhat.com>
8469 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8470 make_symbol_overload_list_block with NULL BLOCK.
8471 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8473 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8475 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8476 * breakpoint.h (get_number_or_range): Declare.
8477 * printcmd.c (ALL_DISPLAYS): Declare.
8478 (delete_display): Reimplement taking a display pointer.
8479 (undisplay_command): Accept a range of displays to delete, using
8480 get_number_or_range.
8482 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8484 * c-valprint.c (c_val_print): Add embedded_offset to address
8485 for arrays of unspecified length.
8486 * p-valprint.c (pascal_val_print): Likewise.
8488 2011-02-18 Yao Qi <yao@codesourcery.com>
8490 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8491 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8492 (thumb_process_displaced_insn): New.
8493 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8494 call to arm_process_displaced_insn.
8495 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8497 2011-02-17 Tom Tromey <tromey@redhat.com>
8499 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8500 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8501 compile_dwarf_to_ax. No longer static. Call
8502 dwarf2_compile_cfa_to_ax.
8503 (locexpr_tracepoint_var_ref): Update.
8504 (loclist_tracepoint_var_ref): Update.
8505 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8506 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8507 argument; add 'gdbarch' and 'pc'.
8508 (dwarf2_compile_cfa_to_ax): New function.
8509 (dwarf2_frame_cache): Update.
8511 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8513 * ada-lang.c (ada_type_of_array): Fix the size of the array
8514 in the case of an unconstrained packed array.
8516 2011-02-17 Yao Qi <yao@codesourcery.com>
8518 * common/Makefile.in: Add more targets for make.
8520 2011-02-16 Tom Tromey <tromey@redhat.com>
8522 * dwarf2loc.c (unimplemented): Fix typo.
8524 2011-02-16 Tom Tromey <tromey@redhat.com>
8526 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8527 (compile_dwarf_to_ax) <default>: Use unimplemented.
8528 <DW_OP_deref>: Update.
8529 (disassemble_dwarf_expression): Update.
8530 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8531 (decode_locdesc): Update.
8532 * dwarf2expr.h (dwarf_stack_op_name): Update.
8534 2011-02-16 Tom Tromey <tromey@redhat.com>
8536 * ax.h (struct aop_map) <name>: Now const.
8538 2011-02-16 Tom Tromey <tromey@redhat.com>
8540 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8543 2011-02-16 Yao Qi <yao@codesourcery.com>
8545 * infrun.c (get_displaced_step_closure_by_addr): New.
8546 * inferior.h: Declare it.
8547 * arm-tdep.c: (arm_pc_is_thumb): Call
8548 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8551 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8552 Jan Kratochvil <jan.kratochvil@redhat.com>
8555 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8557 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8558 Jan Kratochvil <jan.kratochvil@redhat.com>
8560 * value.c (value_contents_copy_raw): Extend describing comment.
8561 Assert that the destination contents we're overwriting are wholly
8563 (value_contents_copy): Extend describing comment.
8565 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8566 Jan Kratochvil <jan.kratochvil@redhat.com>
8568 * value.c (value_available_contents_eq): Remove redundant local
8569 variables. Fix available contents comparision.
8570 * value.h (value_available_contents_eq): Extend describing
8573 2011-02-16 Yao Qi <yao@codesourcery.com>
8575 * thread.c (info_threads_command): Add missing i18n markup and remove
8578 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8580 * breakpoint.c (longjmp_names): New variable.
8581 (struct breakpoint_objfile_data): New type.
8582 (breakpoint_objfile_key): New variable.
8583 (msym_not_found): New variable.
8584 (msym_not_found_p): New predicate.
8585 (get_breakpoint_objfile_data): New function.
8586 (create_overlay_event_breakpoint): Check per-objfile cache for
8588 (create_longjmp_master_breakpoint): Likewise.
8589 (create_std_terminate_master_breakpoint): Likewise.
8590 (create_exception_master_breakpoint): Likewise.
8591 (_initialize_breakpoint): Register per-objfile data key.
8593 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8595 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8597 (create_longjmp_master_breakpoint): Loop over longjmp names.
8598 (create_std_terminate_master_breakpoint): Const-propagate parameter
8600 (update_breakpoints_after_exec): Adjust.
8601 (breakpoint_re_set): Adjust.
8603 2011-02-15 Michael Snyder <msnyder@vmware.com>
8605 * thread.c (info_threads_command): Process arg as thread id,
8606 or list of thread ids.
8607 (thread_find_command): New command.
8608 (_initialize_thread): Document argument for info threads.
8609 Document 'thread find' command.
8610 * NEWS: Document new command "thread find".
8612 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8614 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8615 * aclocal.m4: Regenerated with aclocal-1.11.1.
8616 * common/configure: Regenerate with autoconf-2.64.
8618 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8620 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8621 bool data type to a size of one byte.
8623 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8624 Jan Kratochvil <jan.kratochvil@redhat.com>
8626 * target.c (memory_xfer_live_readonly_partial): Document where to
8627 look for interface description.
8629 2011-02-15 Yao Qi <yao@codesourcery.com>
8632 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8633 order to store PC value on stack instead of text section.
8635 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8637 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8638 the EFP register set size.
8639 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8640 data from the VMX register.
8641 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8642 and write data from/to the VMX register.
8644 2011-02-14 Michael Snyder <msnyder@vmware.com>
8646 * command.h (enum command_class): New class 'no_set_class', for
8647 "show" commands without a corresponding "set" command.
8648 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8649 * copying.c (_initialize_copying): Ditto for "show copying" and
8651 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8653 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8654 which there is no corresponding "set" command (eg. "show copying").
8656 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8657 Jan Kratochvil <jan.kratochvil@redhat.com>
8659 * exec.c (section_table_available_memory): Change `len' parameter
8661 * exec.h (section_table_available_memory): Ditto.
8662 * value.h (read_value_memory): Rename the `offset' parameter to
8665 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8666 Jan Kratochvil <jan.kratochvil@redhat.com>
8668 * memrange.c (compare_mem_ranges): Mention sort order in
8670 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8671 * tracepoint.c (traceframe_available_memory): Extend comment to
8672 mention what happens to RESULT when the target does not support
8675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8676 Jan Kratochvil <jan.kratochvil@redhat.com>
8678 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8681 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8683 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8684 No longer handle NULL values.
8686 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8688 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8689 * value.c: Include "exceptions.h".
8690 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8692 * cp-abi.c: Include gdb_assert.h.
8693 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8694 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8696 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8697 parameters. No longer returns -1 on error.
8698 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8700 * cp-valprint.c: Include exceptions.h.
8701 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8702 the baseclass_offset. Handle unavailable base classes. Use
8703 val_print_invalid_address.
8704 * p-valprint.c: Include exceptions.h.
8705 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8706 when fetching the baseclass_offset. No longer expect
8707 baseclass_offset returning -1. Handle unavailable base classes.
8708 Use val_print_invalid_address.
8709 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8710 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8711 `embedded_offset' and `val' parameters. Adjust.
8712 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8713 parameter, and change its type to gdb_byte pointer. Add
8714 `embedded_offset' and `val' parameters. Adjust. No longer expect
8715 baseclass_offset returning -1.
8716 (value_dynamic_cast): Use value_contents_for_printing rather than
8717 value_contents. Adjust.
8718 (search_struct_field): No longer expect baseclass_offset returning
8720 (search_struct_method): If reading memory from the target is
8721 necessary, wrap it in a new value to pass to baseclass_offset. No
8722 longer expect baseclass_offset returning -1.
8723 (find_method_list): No longer expect baseclass_offset returning
8724 -1. Use value_contents_for_printing rather than value_contents.
8725 * valprint.c (val_print_invalid_address): New function.
8726 * valprint.h (val_print_invalid_address): Declare.
8727 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8728 and `val' parameters. No longer expect baseclass_offset returning
8730 * gnu-v2-abi.c: Include "exceptions.h".
8731 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8732 parameters. Handle unavailable memory. Recurse through
8733 gnuv2_baseclass_offset directly, rather than through
8734 baseclass_offset. No longer returns -1 on not found, instead
8736 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8737 `val' parameters. Adjust.
8739 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8741 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8742 almost but not quite adjacent.
8744 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8746 * value.h (value_entirely_available): Declare.
8747 * value.c (value_entirely_available): New function.
8748 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8749 real type if the pointer is unavailable.
8751 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8753 * valops.c (value_repeat): Use read_value_memory instead of
8756 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8758 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8759 * value.c (value_contents_copy_raw, value_contents_copy): New
8761 (value_primitive_field): Use value_contents_copy_raw instead of
8763 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8765 (value_array, value_slice): Ditto.
8766 * valarith.c (value_subscripted_rvalue): Use
8767 value_contents_copy_raw instead of memcpy.
8769 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8771 <unavailable> references.
8773 * valops.c (get_value_at): Use value_from_contents_and_address,
8774 avoiding read_memory.
8776 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8778 * c-valprint.c (c_val_print): Print a string with unavailable
8779 contents as an array.
8781 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8783 * value.h (unpack_bits_as_long): Delete declaration.
8784 (unpack_value_bits_as_long): Declare.
8785 (unpack_value_field_as_long): Declare.
8786 (value_field_bitfield): Declare.
8787 * value.c (unpack_bits_as_long): Rename to...
8788 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8789 value parameters. Return the extracted result in a new output
8790 parameter. If the value contents are unavailable, return false,
8791 otherwise return true.
8792 (unpack_value_bits_as_long): New.
8793 (unpack_field_as_long): Rename to...
8794 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8795 Add embedded_offset and value parameters. Return the extracted
8796 result in a new output parameter. If the value contents are
8797 unavailable, return false, otherwise return true.
8798 (unpack_value_field_as_long): New.
8799 (unpack_field_as_long_1): New.
8800 (unpack_field_as_long): Reimplement as wrapper around
8801 unpack_value_field_as_long_1.
8802 (value_field_bitfield): New function.
8803 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8804 unpack_value_bits_as_long. Mark the value as unavailable, if it
8806 * jv-valprint.c (java_print_value_fields): Use
8807 value_field_bitfield.
8808 * p-valprint.c (pascal_object_print_value_fields): Use
8809 value_field_bitfield.
8810 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8812 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8814 * value.c (get_internalvar_integer): Also return the int value of
8815 TYPE_CODE_INT INTERNALVAR_VALUE values.
8816 (set_internalvar): Don't special case TYPE_CODE_INT.
8818 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8820 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8821 INTERNALVAR_POINTER.
8823 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8824 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8825 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8827 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8829 * value.h (value_available_contents_eq): Declare.
8830 * value.c (find_first_range_overlap): New function.
8831 (value_available_contents_eq): New function.
8832 * valprint.c (val_print_array_elements): Use
8833 value_available_contents_eq.
8834 * ada-valprint.c (val_print_packed_array_elements): Use
8835 value_available_contents_eq.
8836 * jv-valprint.c (java_value_print): Use
8837 value_available_contents_eq.
8839 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8841 * target.c (target_read_live_memory): New function.
8842 (memory_xfer_live_readonly_partial): New.
8843 (memory_xfer_partial): If reading from a traceframe, fallback to
8844 reading unavailable read-only memory from read-only regions of
8846 * tracepoint.c (disconnect_tracing): Adjust.
8847 (set_current_traceframe): New, factored out from
8848 set_traceframe_number.
8849 (set_traceframe_number): Reimplement to only change the traceframe
8850 number on the GDB side.
8851 (do_restore_current_traceframe_cleanup): Adjust.
8852 (make_cleanup_restore_traceframe_number): New.
8853 (cur_traceframe_number): New global.
8854 (tfile_open): Set cur_traceframe_number to no traceframe.
8855 (set_tfile_traceframe): New function.
8856 (tfile_trace_find): If looking up a traceframe using any method
8857 other than by number, make sure the current tfile traceframe
8858 matches gdb's current traceframe. Update the current tfile
8859 traceframe if the lookup succeeded.
8860 (tfile_fetch_registers, tfile_xfer_partial)
8861 (tfile_get_trace_state_variable_value): Make sure the remote
8862 traceframe matches gdb's current traceframe.
8863 * remote.c (remote_traceframe_number): New global.
8864 (remote_open_1): Set it to -1.
8865 (set_remote_traceframe): New function.
8866 (remote_fetch_registers, remote_store_registers)
8867 (remote_xfer_memory, remote_xfer_partial)
8868 (remote_get_trace_state_variable_value): Make sure the remote
8869 traceframe matches gdb's current traceframe.
8870 (remote_trace_find): If looking up a traceframe using any method
8871 other than by number, make sure the current remote traceframe
8872 matches gdb's current traceframe. Update the current remote
8873 traceframe if the lookup succeeded.
8874 * infrun.c (fetch_inferior_event): Adjust.
8875 * tracepoint.h (set_current_traceframe): Declare.
8876 (get_traceframe_number, set_traceframe_number): Add describing
8879 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8881 Mark pieces of values as unavailable if the corresponding memory
8884 * valops.c: Include tracepoint.h.
8885 (value_fetch_lazy): Use read_value_memory.
8886 (read_value_memory): New.
8887 * value.h (read_value_memory): Declare.
8888 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8889 * exec.c (section_table_available_memory): New function.
8890 * exec.h (section_table_available_memory): Declare.
8892 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8894 * Makefile.in (SFILES): Add memrange.c.
8895 (HFILES_NO_SRCDIR): Add memrange.h.
8896 (COMMON_OBS): Add memrange.o.
8897 * memrange.c: New file.
8898 * memrange.h: New file.
8899 * tracepoint.c: Include memrange.h.
8900 (struct mem_range): Delete.
8901 (mem_range_s): Delete.
8902 (traceframe_available_memory): New function.
8903 * tracepoint.h (traceframe_available_memory): Declare.
8905 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8907 * target.h (struct traceframe_info): Forward declare.
8908 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8909 (struct target_ops) <to_traceframe_info>: New field.
8910 (target_traceframe_info): New.
8911 * target.c (update_current_target): Inherit and default
8913 * remote.c (PACKET_qXfer_traceframe_info): New.
8914 (remote_protocol_features): Register qXfer:traceframe-info:read.
8915 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8916 (remote_traceframe_info): New.
8917 (init_remote_ops): Install it.
8918 (_initialize_remote): Install "set/show remote traceframe-info"
8920 * tracepoint.h (parse_traceframe_info): Declare.
8921 * tracepoint.c (struct mem_range): New.
8922 (mem_range_s): New typedef.
8923 (struct traceframe_info): New.
8924 (traceframe_info): New global.
8925 (free_traceframe_info): New function.
8926 (clear_traceframe_info): New function.
8927 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8929 (build_traceframe_info): New function.
8930 (tfile_traceframe_info): New function.
8931 (init_tfile_ops): Install tfile_traceframe_info.
8932 (traceframe_info_start_memory, free_result): New functions.
8933 (memory_attributes, traceframe_info_elements): New globals.
8934 (parse_traceframe_info, get_traceframe_info): New functions.
8935 * features/traceframe-info.dtd: New file.
8936 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8938 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8940 Base support for <unavailable> value contents.
8942 * value.h (value_bytes_available): Declare.
8943 (mark_value_bytes_unavailable): Declare.
8944 * value.c (struct range): New struct.
8945 (range_s): New typedef.
8946 (ranges_overlap): New function.
8947 (range_lessthan): New function.
8948 (ranges_contain_p): New function.
8949 (struct value) <unavailable>: New field.
8950 (value_bytes_available): New function.
8951 (mark_value_bytes_unavailable): New function.
8952 (require_not_optimized_out): Constify parameter.
8953 (require_available): New function.
8954 (value_contents_all, value_contents): Require all bytes be
8956 (value_free): Free `unavailable'.
8957 (value_copy): Copy `unavailable'.
8958 * valprint.h (val_print_unavailable): Declare.
8959 * valprint.c (valprint_check_validity): Rename `offset' parameter
8960 to `embedded_offset'. If printing a scalar, check whether the
8961 value chunk is available.
8962 (val_print_unavailable): New.
8963 (val_print_scalar_formatted): Check whether the value is
8965 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8966 pretty-printing unavailable values.
8968 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8970 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8971 * c-typeprint.c (c_type_print_args): Update the function comment. New
8972 variable param_type, initialize it. Remove const/volatile qualifiers
8973 for language_cplus and !show_artificial. Use param_type.
8975 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8977 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8978 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8979 * symtab.h (struct symtab) <next>: Comment extension.
8981 2011-02-12 Yao Qi <yao@codesourcery.com>
8983 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8985 2011-02-11 Yao Qi <yao@codesourcery.com>
8987 * common/Makefile.in: Add copyright header.
8989 2011-02-11 Pedro Alves <pedro@codesourcery.com>
8991 * infrun.c (proceed): Move switching out and in of tfind mode from
8993 (fetch_inferior_event): ... to here.
8995 2011-02-11 Yao Qi <yao@codesourcery.com>
8997 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8999 * configure.ac: Add common to sub dir.
9000 * configure: Regenerate.
9002 2011-02-11 Yao Qi <yao@codesourcery.com>
9006 * common/Makefile.in: New.
9007 * common/configure.ac: New.
9008 * common/aclocal.m4: New.
9009 * common/configure: Generate.
9011 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9013 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9014 side of the parenthesis.
9017 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9018 * vec.h (VEC_block_remove): Fix comment.
9020 2011-02-08 Michael Snyder <msnyder@vmware.com>
9022 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9024 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9026 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9027 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9030 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9035 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9036 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9038 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9040 * dwarf2read.c (read_subroutine_type): Set special calling
9041 convention flag for functions compiled by IBM XL C for OpenCL.
9042 * ppc-sysv-tdep.c: Include "dwarf2.h"
9043 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9045 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9046 IBM OpenCL vector types calling convention.
9047 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9048 (ppc_sysv_abi_broken_return_value): Likewise.
9049 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9050 types calling convention.
9051 (ppc64_sysv_abi_return_value): Likewise.
9052 * spu-tdep.c: Include "dwarf2.h"
9053 (spu_return_value): Implement IBM OpenCL vector types calling
9056 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9058 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9059 correct ABI for AltiVec vector arguments.
9061 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9063 * valprint.c (val_print): Extend comment.
9064 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9065 interface explanation to val_print.
9066 (ada_val_print_array): Adjust comment to current interface.
9067 (print_field_values): Adjust comment to current interface.
9068 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9069 explanation to val_print.
9070 * f-valprint.c (f_val_print): Ditto.
9071 * jv-valprint.c (java_val_print): Ditto.
9072 * m2-valprint.c (m2_val_print): Ditto.
9073 * p-valprint.c (pascal_val_print): Ditto.
9075 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9077 * breakpoint.c (parse_breakpoint_sals): Fix description.
9079 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9080 Oguz Kayral <oguzkayral@gmail.com>
9082 * python/py-inferior.c (python_on_normal_stop): New function.
9083 (python_on_resume): New function.
9084 (python_inferior_exit): New function.
9085 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9086 inferior_exit observers.
9087 * python/py-evtregistry.c: New file.
9088 * python/py-threadevent.c : New file.
9089 * python/py-event.c: New file.
9090 * python/py-evts.c: New file.
9091 * python/py-continueevent.c: New file.
9092 * python/py-bpevent.c: New file.
9093 * python/py-signalevent.c: New file.
9094 * python/py-exetiedevent.c: New file.
9095 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9096 Move struct breakpoint_object from here...
9097 * python/python-internal.h: ... to here.
9098 * python/py-event.h: New file.
9099 * python/py-events.h: New file.
9100 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9101 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9102 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9103 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9104 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9105 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9106 Add build rules for all the above.
9108 2011-02-04 Tom Tromey <tromey@redhat.com>
9110 * dwarf2read.c (dwarf2_section_empty_p): New function.
9111 (dwarf2_read_section): Use dwarf2_section_empty_p.
9112 (dwarf2_section_size): New function.
9113 (dwarf2_get_section_info): Unconditionally read section.
9114 (dwarf2_read_index): Use dwarf2_section_empty_p.
9115 (partial_read_comp_unit_head): Use dwarf2_section_size.
9116 (dwarf2_symbol_mark_computed): Likewise.
9118 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9120 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9122 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9124 * mips-linux-tdep.c: Include xml-syscall.h.
9125 (mips_linux_get_syscall_number): New function.
9126 (mips_linux_init_abi): Add calls to
9127 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9128 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9129 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9130 * syscalls/mips-n32-linux.xml: New file.
9131 * syscalls/mips-n64-linux.xml: New file.
9132 * syscalls/mips-o32-linux.xml: New file.
9134 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9136 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9137 Complain about inverted range entries.
9138 (dwarf2_record_block_ranges): Likewise.
9140 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9143 * breakpoint.c (update_watchpoint): Fix name of the
9144 update_global_location_list function.
9145 (print_one_breakpoint): Fix typo.
9146 (_initialize_breakpoint): Remove extra space in hbreak help
9148 * breakpoint.h (struct bp_location) <length>: Fix field
9151 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9153 * regcache.c (registers_changed_ptid): Don't explictly always
9154 clear `current_regcache'. Only clear current_thread_ptid and
9155 current_thread_arch when PTID matches. Only reinit the frame
9156 cache if PTID matches the current inferior_ptid. Move alloca(0)
9158 (registers_changed): ... here.
9160 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9162 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9163 starts with __stack_chk_guard as stack guard symbol.
9165 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9167 * disasm.c (compare_lines): Handle the end of sequence markers
9168 within the line table to better support disassembling over
9169 compilation unit boundaries.
9171 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9173 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9174 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9175 implementation even if no symbols are available.
9176 (thumb_analyze_prologue): Update call to skip_prologue_function.
9177 (arm_analyze_prologue): Likewise.
9179 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9181 * arm-tdep.c: Include "observer.h".
9182 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9183 (arm_exidx_data_key): New static variable.
9184 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9185 (struct arm_exidx_data): Likewise.
9186 (arm_exidx_data_free): New function.
9187 (arm_compare_exidx_entries): Likewise.
9188 (arm_obj_section_from_vma): Likewise.
9189 (arm_exidx_new_objfile): Likewise.
9190 (arm_find_exidx_entry): Likewise.
9191 (arm_exidx_fill_cache): Likewise.
9192 (arm_exidx_unwind_sniffer): Likewise.
9193 (arm_exidx_unwind): New global variable.
9194 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9195 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9196 observer. Register arm_exidx_data_key as objfile data.
9198 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9200 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9201 due to accessing uninitialized variable. Fix indentation.
9203 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9205 * c-valprint.c (c_value_print): When doing virtual base pointer
9206 adjustment, create a new value with adjusted contents rather than
9207 changing the contents of the value being printed (and getting it
9210 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9212 * xml-support.c (xml_find_attribute): New.
9213 (xinclude_start_include): Use it.
9214 * xml-support.h (xml_find_attribute): Declare.
9215 * memory-map.c (memory_map_start_memory)
9216 (memory_map_start_property): Use xml_find_attribute.
9217 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9219 * remote.c (start_thread): Use xml_find_attribute.
9220 * solib-target.c (library_list_start_segment)
9221 (library_list_start_section, library_list_start_library)
9222 (library_list_start_list): Use xml_find_attribute.
9223 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9224 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9225 (tdesc_start_field): Use xml_find_attribute.
9227 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9229 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9230 (BUILD_OCL_VTYPES): Update.
9232 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9234 * configure.ac: Work around non-GNU sed limitation when computing
9235 python version number.
9236 * configure: Regenerate.
9238 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9240 Fix debug printing of TYPE_INSTANCE.
9241 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9242 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9244 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9246 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9247 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9248 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9249 * ada-operator.inc: Rename the file to ...
9250 * ada-operator.def: ... here, wrap all the entries by macro OP.
9251 * expprint.c (op_name_standard): Remove all the entries. Include
9252 "std-operator.def" instead.
9253 * expression.h (enum exp_opcode): Include "std-operator.def" and
9254 "ada-operator.def". Move all the entries ...
9255 * std-operator.def: ... here, wrap all the entries by macro OP.
9257 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9259 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9260 * breakpoint.c (remove_jit_event_breakpoints): New function.
9261 * jit.c (jit_descriptor_addr): Delete.
9262 (registering_code): Delete.
9263 (clear_int): Delete.
9264 (jit_inferior_data): New variable.
9265 (struct jit_inferior_data): New type.
9266 (get_jit_inferior_data): New function.
9267 (jit_inferior_data_cleanup): New function.
9268 (jit_read_descriptor): Adjust.
9269 (jit_register_code): Adjust.
9270 (jit_breakpoint_re_set_internal): New function; move code here ...
9271 (jit_inferior_init): ... from here.
9272 (jit_breakpoint_re_set): Adjust.
9273 (jit_reset_inferior_data_and_breakpoints): New function.
9274 (jit_inferior_created_observer): Adjust.
9275 (jit_inferior_exit_hook): Adjust.
9276 (jit_executable_changed_observer): New function.
9277 (jit_event_handler): Adjust.
9278 (_initialize_jit): Adjust.
9280 2011-01-31 Michael Snyder <msnyder@vmware.com>
9282 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9285 2011-01-31 Tom Tromey <tromey@redhat.com>
9288 * python/python.c (execute_gdb_command): Call
9289 prevent_dont_repeat.
9290 * top.c (suppress_dont_repeat): New global.
9291 (dont_repeat): Use it.
9292 (prevent_dont_repeat): New function.
9293 * command.h (prevent_dont_repeat): Declare.
9295 2011-01-31 Tom Tromey <tromey@redhat.com>
9297 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9298 * python/py-breakpoint.c (bppy_set_silent): Use
9299 breakpoint_set_silent.
9300 (bppy_set_thread): Use breakpoint_set_thread.
9301 (bppy_set_task): Use breakpoint_set_task.
9302 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9303 (breakpoint_set_task): Declare.
9304 (make_breakpoint_silent): Remove.
9305 * breakpoint.c (breakpoint_set_silent): New function.
9306 (breakpoint_set_thread): Likewise.
9307 (breakpoint_set_task): Likewise.
9308 (make_breakpoint_silent): Remove.
9310 2011-01-31 Tom Tromey <tromey@redhat.com>
9312 * breakpoint.h (user_breakpoint_p): Declare.
9313 * breakpoint.c (user_breakpoint_p): New function.
9314 (breakpoint_1): Use it.
9315 (save_breakpoints): Likewise.
9317 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9319 * configure.ac: Add handling of Python distribution on Windows.
9320 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9321 sysconfig variables are not defined, then do not use them.
9322 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9323 instead. On Windows, return all paths using forward-slashes
9324 rather than backslashes.
9326 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9328 * configure.ac: Remove fallback behavior for building
9329 against Python. Remove tweaking of Python include path.
9330 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9331 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9332 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9333 Always restore CPPFLAGS and LIBS after linking test.
9334 * configure: Regenerated.
9335 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9336 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9337 * python/python-internal.h: Adjust includes of Python .h files.
9339 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9341 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9344 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9346 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9349 2011-01-31 Yao Qi <yao@codesourcery.com>
9351 * arm-linux-nat.c: Update calls to regcache_register_status
9352 instead of regcache_valid_p.
9353 * aix-thread.c: Likewise.
9354 * i386gnu-nat.c: Likewise.
9356 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9359 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9360 touching TYPE_FIELD_ARTIFICIAL.
9362 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9364 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9367 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9369 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9370 selected, don't try iterating over the traceframe's blocks.
9371 (tfile_has_stack): If there's no traceframe selected, then there's
9373 (tfile_has_registers): If there's no traceframe selected, then
9374 there's no registers.
9376 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9378 * target.c (memory_xfer_partial): No need to restore shadows if we
9379 haven't read anything.
9381 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9383 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9384 and val_print_scalar_formatted.
9386 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9388 * tracepoint.c (tfile_read): New.
9389 (tfile_open): Use it.
9390 (tfile_get_traceframe_address): Use it.
9391 (tfile_trace_find): Use it.
9392 (walk_blocks_callback_func): New typedef.
9393 (match_blocktype): New function.
9394 (traceframe_walk_blocks): New function.
9395 (traceframe_find_block_type): New function.
9396 (tfile_fetch_registers, tfile_xfer_partial)
9397 (tfile_get_trace_state_variable_value): Use
9398 traceframe_find_block_type and tfile_read.
9400 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9402 * remote-mips.c: Add internationalization mark ups. Remove
9403 trailing \n from already marked up strings.
9405 2011-01-26 Tom Tromey <tromey@redhat.com>
9407 * python/py-prettyprint.c (print_string_repr): Clear
9408 'addressprint' option when calling val_print_string.
9409 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9410 option when calling val_print_string.
9412 2011-01-26 Tom Tromey <tromey@redhat.com>
9414 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9416 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9418 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9419 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9420 (gdb_py_long_as_ulongest): New defines.
9421 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9422 (gdb_py_int_as_long): Declare.
9423 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9424 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9425 (valpy_long): Add comment.
9426 * python/py-utils.c (get_addr_from_python): Use
9427 gdb_py_long_as_ulongest. Handle overflow properly.
9428 (gdb_py_object_from_longest): New function.
9429 (gdb_py_object_from_ulongest): Likewise.
9430 (gdb_py_int_as_long): Likewise.
9431 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9432 * python/py-symtab.c (salpy_get_pc): Use
9433 gdb_py_long_from_ulongest.
9434 (salpy_get_line): Use PyInt_FromLong.
9435 * python/py-param.c (set_parameter_value): Use
9437 * python/py-lazy-string.c (stpy_get_address): Use
9438 gdb_py_long_from_ulongest.
9439 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9440 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9441 * python/py-breakpoint.c (bppy_set_thread): Use
9443 (bppy_set_task): Likewise.
9444 (bppy_set_ignore_count): Likewise.
9445 (bppy_set_hit_count): Likewise.
9446 * python/py-block.c (blpy_get_start): Use
9447 gdb_py_object_from_ulongest.
9448 (blpy_get_end): Likewise.
9449 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9451 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9454 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9455 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9456 equality test for objfile, initialize addr_low if needed.
9458 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9460 * tui/tui-regs.c (tui_register_format): Remove dead code.
9462 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9464 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9465 instead of print_scalar_formatted.
9466 (print_scalar_formatted): Don't handle 's' format strings here,
9467 and add an assertion that we never see such format here.
9468 * valprint.h (val_print_scalar_formatted): Declare.
9469 * valprint.c (val_print_scalar_formatted): New.
9470 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9471 instead of print_scalar_formatted.
9472 * jv-valprint.c (java_val_print): Ditto.
9473 * p-valprint.c (pascal_val_print): Ditto.
9474 * ada-valprint.c (ada_val_print_1): Ditto.
9475 * f-valprint.c (f_val_print): Ditto.
9476 * infcmd.c (registers_info): Ditto.
9477 * m2-valprint.c (m2_val_print): Ditto.
9479 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9481 * m2-valprint.c (print_unbounded_array): Pass
9482 value_contents_for_printing rather than value_contents, to
9483 m2_print_array_contents. Also pass in the value.
9485 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9487 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9488 (save_gdb_index_command): Switch to .gdb_index version 4.
9490 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9492 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9493 than frame_register, and always pass a valid value to val_print.
9495 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9497 Centralize printing "<optimized out>".
9499 * valprint.h (val_print_optimized_out): Declare.
9500 * cp-valprint.c (cp_print_value_fields): Use
9501 val_print_optimized_out.
9502 * jv-valprint.c (java_print_value_fields): Ditto.
9503 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9504 * printcmd.c (print_formatted): Ditto.
9505 * valprint.c (valprint_check_validity): Ditto.
9506 (value_check_printable): Ditto.
9507 (val_print_optimized_out): New.
9509 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9511 * infcmd.c (default_print_registers_info): Allocate values so to
9512 never pass a NULL value to val_print.
9514 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9516 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9517 boolean. Make sure to always pass a value that matches the
9518 contents buffer to callees. Preserve `address' for following
9520 * value.c (value_contents_for_printing_const): New.
9521 (value_address): Constify value argument.
9522 * value.h (value_contents_for_printing_const): Declare.
9523 (value_address): Constify value argument.
9525 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9527 * regcache.c (struct regcache_descr): Rename
9528 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9529 and sizeof_cooked_register_valid_p to
9530 sizeof_cooked_register_status.
9531 (init_regcache_descr): Adjust.
9532 (struct regcache): Rename register_valid_p field to
9534 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9535 (do_cooked_read): Adjust.
9536 (regcache_valid_p): Rename to ...
9537 (regcache_register_status): ... this. Adjust.
9538 (regcache_invalidate): Adjust.
9539 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9541 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9542 as unavailable, not valid.
9543 (regcache_dump): Adjust.
9544 * regcache.h (enum register_status): New.
9545 (regcache_register_status): Declare.
9546 (regcache_invalidate): Delete declaration.
9547 * corelow.c (get_core_registers): Adjust.
9548 * tracepoint.c (tfile_fetch_registers): Adjust.
9549 * trad-frame.c (REG_VALUE): Rename to ...
9550 (TF_REG_VALUE): ... this.
9551 (REG_UNKNOWN): Rename to ...
9552 (TF_REG_UNKNOWN): ... this.
9553 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9554 * mi/mi-main.c (register_changed_p): Adjust.
9556 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9558 * regcache.c (struct regcache_descr): Remove outdated comment.
9559 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9561 (regcache_xmalloc): Rename to ...
9562 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9563 Allocate the regcache type accordingly.
9564 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9565 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9566 cooked registers, not raw.
9567 (regcache_dup_no_passthrough): Delete.
9568 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9569 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9570 mention obsolete write_register_bytes.
9571 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9573 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9575 Stop remote_read_bytes from handling partial reads itself.
9577 * remote-fileio.c: Include target.h.
9578 (remote_fileio_write_bytes): Delete.
9579 (remote_fileio_func_open, remote_fileio_func_write)
9580 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9582 (remote_fileio_func_stat): Use target_read_memory and
9583 target_write_memory.
9584 (remote_fileio_func_gettimeofday): Use target_write_memory.
9585 (remote_fileio_func_system): Use target_read_memory.
9586 * remote.c (remote_write_bytes): Make it static.
9587 (remote_read_bytes): Don't handle partial reads here.
9588 * remote.h (remote_read_bytes): Delete declaration.
9590 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9592 Simplify XML parsing a bit.
9594 * xml-support.h (gdb_xml_parse_quick): Declare.
9595 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9596 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9598 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9599 gdb_xml_create_parser_and_cleanup_1.
9600 (gdb_xml_parse_quick): New.
9601 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9602 * osdata.c (osdata_parse): Ditto.
9603 * remote.c (remote_threads_info): Ditto.
9604 * solib-target.c (solib_target_parse_libraries): Ditto.
9605 * xml-syscall.c (syscall_parse_xml): Ditto.
9606 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9608 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9610 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9611 with remote-mips.o added to gdb_target_obs.
9612 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9614 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9616 * ada-valprint.c (val_print_packed_array_elements): Pass the
9617 correct struct value to val_print.
9618 (ada_val_print_1): Ditto.
9620 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9622 Don't lose embedded_offset in printing routines throughout.
9624 * valprint.h (val_print_array_elements): Change prototype.
9625 * valprint.c (val_print_array_elements): Add `embedded_offset'
9626 parameter, and adjust to pass it down to val_print, while passing
9627 `valaddr' or `address' unmodified. Take embedded_offset into
9628 account when checking repetitions.
9629 * c-valprint.c (c_val_print): Pass embedded_offset to
9630 val_print_array_elements instead of adjusting `valaddr' and
9632 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9633 embedded_offset to val_print_array_elements instead of adjusting
9635 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9636 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9637 val_print_array_elements and pascal_object_print_value_fields
9638 instead of adjusting `valaddr'.
9639 (pascal_object_print_value_fields): Add `offset' parameter, and
9641 (pascal_object_print_value): Add `offset' parameter, and adjust to
9643 (pascal_object_print_static_field): Use
9644 value_contents_for_printing/value_embedded_offset, rather than
9646 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9647 parameter, and adjust to use it. Use
9648 value_contents_for_printing/value_embedded_offset, rather than
9650 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9651 (ada_val_print_array): Add `offset' parameter, and adjust to use
9653 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9654 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9655 Instead work with offsets. Use
9656 value_contents_for_printing/value_embedded_offset, rather than
9657 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9658 and use value_from_pointer to extract a target pointer, rather
9659 than value_from_longest.
9660 (print_variant_part): Add `offset' parameter. Replace
9661 `outer_valaddr' parameter by a new `outer_offset' parameter.
9662 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9663 (ada_value_print): Use
9664 value_contents_for_printing/value_embedded_offset, rather than
9666 (print_record): Add `offset' parameter, and adjust to pass it
9668 (print_field_values): Add `offset' parameter. Replace
9669 `outer_valaddr' parameter by a new `outer_offset' parameter.
9670 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9671 Use value_contents_for_printing/value_embedded_offset, rather than
9673 * d-valprint.c (dynamic_array_type): Use
9674 value_contents_for_printing/value_embedded_offset, rather than
9676 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9677 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9678 (java_print_value_fields): Take `offset' into account. Don't
9679 re-adjust `valaddr'. Instead pass down adjusted offsets.
9680 (java_val_print): Take `embedded_offset' into account. Pass it to
9681 java_print_value_fields.
9682 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9683 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9684 down adjusted offsets.
9685 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9686 (f_val_print): Take `embedded_offset' into account.
9688 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9690 * inflow.c: Include "gdbcmd.h".
9691 (interactive_mode): New static global, moved here from top.c.
9692 (show_interactive_mode): New function, moved here from top.c.
9693 use gdb_has_a_terminal instead of input_from_terminal_p to
9694 determine the current mode.
9695 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9697 (_initialize_inflow): Add the "set/show interactive-mode"
9698 commands. Moved here from top.c, after having adjusted slightly
9700 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9702 (input_from_terminal_p): Remove handling of "interactive-mode"
9703 setting, moved to infow.c.
9704 (init_main): Remove creation of the "set/show interactive-mode"
9705 commands, moved to inflow.c.
9707 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9709 * NEWS: Add entry for native ia64-hpux support.
9711 2011-01-19 Tom Tromey <tromey@redhat.com>
9714 * thread.c (free_thread): Free 'name'.
9715 (print_thread_info): Emit thread name. Change CLI output.
9716 (thread_name_command): New function.
9717 (do_captured_thread_select): Emit newline.
9718 (_initialize_thread): Register 'thread name' command.
9719 * target.h (struct target_ops) <to_thread_name>: New field.
9720 (target_thread_name): New macro.
9721 * target.c (update_current_target): Handle to_thread_name.
9722 * python/py-infthread.c (thpy_get_name): New function.
9723 (thpy_set_name): Likewise.
9724 (thread_object_getset): Add "name".
9725 * linux-nat.c (linux_nat_thread_name): New function.
9726 (linux_nat_add_target): Set to_thread_name.
9727 * gdbthread.h (struct thread_info) <name>: New field.
9729 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9731 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9732 (ada_val_print_1): Likewise.
9734 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9736 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9737 upper limit address is not greater than the function end address
9738 when the upper limit could not be computed using the debugging
9741 2011-01-17 Tom Tromey <tromey@redhat.com>
9743 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9745 * utils.c: Include gdb_regex.h.
9746 (do_regfree_cleanup): New function.
9747 (make_regfree_cleanup): Likewise.
9748 (get_regcomp_error): Likewise.
9749 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9751 2011-01-17 Tom Tromey <tromey@redhat.com>
9753 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9756 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9758 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9759 for internal variables.
9760 (last_was_structop): New static variable.
9761 (COMPLETE): New token.
9762 (field_exp): New rule to group all '.' suffix handling.
9763 Add mark_struct_expression calls when approriate to be able
9764 to correctly find fields for completion.
9765 (yylex): Adapt to handle field completion and set INTVAR when
9768 2011-01-14 Yao Qi <yao@codesourcery.com>
9770 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9771 save_reggroup, restore_reggroup and all_reggroup.
9773 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9775 * ada-valprint. (ada_printchar): Use the correct type length
9776 in call to ada_emit_char.
9777 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9779 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9781 * solib-som.h (hpux_major_release): Declare variable here.
9782 * solib-som.c: Remove <sys/utsname.h> header.
9783 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9784 (hpux_major_release): Make global, change default value to
9785 DEFAULT_HPUX_MAJOR_RELEASE.
9786 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9787 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9788 Add "solib-som.h" header.
9789 (set_hpux_major_release): New function.
9790 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9792 2011-01-14 Mike Frysinger <vapier@gentoo.org>
9794 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9796 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9798 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9799 new-line at end of warning message.
9800 (ia64_hpux_store_register): Remove trailing new-line at end of
9802 * ia64-hpux-tdep.c: Rephrase comment.
9803 * solib-ia64-hpux.c (struct dld_info): Change type of field
9804 dld_flags from "long long" to ULONGEST.
9806 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9808 * target.h (deprecated_child_ops): Delete declaration.
9809 * target.c (deprecated_child_ops): Delete definition.
9811 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9813 * Makefile.in (hpux-thread.o): Delete rule.
9814 * configure.ac: Don't check for HPUX DCE threads support.
9815 * configure, config.in: Regenerate.
9816 * hppa-hpux-nat.c (child_suppress_run): Delete.
9817 (hppa_hpux_child_can_run): Delete.
9818 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9819 * hpux-thread.c: Delete.
9821 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9823 * hpux-thread.c (hpux_pid_to_str): Delete.
9825 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9827 * ada-valprint.c (ada_emit_char): Remove strange code.
9828 Check that c is <= UCHAR_MAX before passing it to isascii.
9829 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9831 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9833 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9834 to the case where instream is stdin.
9836 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9838 * ia64-tdep.h (struct regcache): Forward declare.
9839 (struct ia64_infcall_ops): New struct type.
9840 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9842 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9843 Renames ia64_find_global_pointer.
9844 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9845 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9846 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9848 (ia64_infcall_ops): New static global constant.
9849 (ia64_gdbarch_init): Set tdep->infcall_ops.
9850 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9851 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9852 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9853 (ia64_hpux_dummy_code): New static global constant.
9854 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9855 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9856 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9858 (ia64_hpux_infcall_ops): New static global constant.
9859 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9860 for inferior function calls to work properly on ia64-hpux.
9862 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9864 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9865 * ia64-tdep.h (struct frame_info): forward declaration.
9866 (struct gdbarch_tdep): Add field size_of_register_frame.
9867 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9868 to determine the size of the register frame.
9869 (ia64_size_of_register_frame): New function.
9870 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9871 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9872 (IA64_HPUX_UREG_REASON): New macro.
9873 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9875 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9876 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9877 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9880 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9882 Add support for ia64-hpux.
9883 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9884 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9886 * configure.host: Add handling for ia64-hpux hosts. Add associated
9888 * configure.tgt: Add handling for ia64-hpux targets.
9889 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9890 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9891 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9893 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9895 [ttrace] Compute thread list immediately after attach.
9896 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9898 (inf_ttrace_attach): Use it.
9900 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9902 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9903 if we could not determine the frame's function address. Instead,
9904 use the frame's PC, and then continue.
9906 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9908 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9909 not already defined.
9911 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9913 * ia64-tdep.c (ia64_struct_type_p): New function.
9914 (ia64_extract_return_value): Handle integral values that are
9915 less than 8 bytes long.
9916 (ia64_push_dummy_call): Likewise.
9918 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9920 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9921 floatformat_ia64_ext.
9922 (floatformat_ia64_ext_big): New static const.
9923 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9925 2011-01-12 Tom Tromey <tromey@redhat.com>
9927 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9929 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9930 (mi_cmd_thread_list_ids): Likewise.
9931 (mi_cmd_data_list_changed_registers): Likewise.
9932 (mi_cmd_data_list_register_values): Likewise.
9933 (mi_cmd_data_write_register_values): Likewise.
9934 (mi_cmd_data_evaluate_expression): Likewise.
9935 (mi_cmd_data_read_memory): Likewise.
9936 (mi_cmd_data_read_memory_bytes): Likewise.
9937 (mi_cmd_data_write_memory): Likewise.
9938 (mi_cmd_enable_timings): Likewise.
9939 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9940 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9941 (mi_cmd_var_delete): Likewise.
9942 (mi_cmd_var_set_format): Likewise.
9943 (mi_cmd_var_show_format): Likewise.
9944 (mi_cmd_var_info_num_children): Likewise.
9945 (mi_cmd_var_list_children): Likewise.
9946 (mi_cmd_var_info_type): Likewise.
9947 (mi_cmd_var_info_expression): Likewise.
9948 (mi_cmd_var_show_attributes): Likewise.
9949 (mi_cmd_var_assign): Likewise.
9950 (mi_cmd_var_update): Likewise.
9951 (mi_cmd_enable_pretty_printing): Likewise.
9952 (mi_cmd_var_set_update_range): Likewise.
9953 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9955 (mi_cmd_target_file_put): Likewise.
9956 (mi_cmd_target_file_delete): Likewise.
9957 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9959 (mi_cmd_stack_info_depth): Likewise.
9960 (mi_cmd_stack_list_locals): Likewise.
9961 (mi_cmd_stack_list_args): Likewise.
9962 (mi_cmd_stack_select_frame): Likewise.
9963 (mi_cmd_stack_select_frame): Likewise.
9964 (mi_cmd_stack_info_frame): Likewise.
9965 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9967 (mi_cmd_file_list_exec_source_files): Likewise.
9968 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9969 (mi_cmd_env_cd): Likewise.
9970 (mi_cmd_env_path): Likewise.
9971 (mi_cmd_env_dir): Likewise.
9972 (mi_cmd_inferior_tty_show): Likewise.
9973 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9974 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9975 (mi_cmd_break_watch): Likewise.
9977 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9979 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9980 (ppc_linux_insert_hw_breakpoint): Likewise.
9981 (ppc_linux_remove_hw_breakpoint): Likewise.
9982 (ppc_linux_insert_watchpoint): Likewise.
9984 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9985 Jan Kratochvil <jan.kratochvil@redhat.com>
9987 PR fortran/11104 and DWARF unbound arrays detection.
9988 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9989 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9990 unspecified upper bound.
9991 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9992 variables array_size_array, tmp_type and offset_item. New variable
9993 array. Remove call to f77_get_upperbound. New variables array_type
9994 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9995 the final call to deprecated_set_value_type.
9997 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9999 Make value allocations more lazy.
10000 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10001 instead of allocate_value and set_value_lazy when possible.
10002 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10003 instead of allocate_value and set_value_lazy.
10004 * findvar.c (value_of_register_lazy): Likewise.
10005 (read_var_value): Remove V preallocation, call just check_typedef in
10006 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10007 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10008 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10009 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10010 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10011 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10012 the end, remove set_value_lazy there.
10013 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10014 instead of allocate_value and set_value_lazy when possible.
10015 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10016 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10017 of allocate_value and set_value_lazy.
10018 (value_from_contents_and_address): Use allocate_value_lazy instead of
10019 allocate_value and set_value_lazy when possible.
10021 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10023 * disasm.c (dump_insns): Support dumping opcodes for MI.
10024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10025 dumping of instruction opcodes.
10027 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10029 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10032 2011-01-11 Tom Tromey <tromey@redhat.com>
10034 * thread.c (do_captured_thread_select): Emit newline before
10037 2011-01-11 Michael Snyder <msnyder@vmware.com>
10039 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10040 * score-tdep.c: Ditto.
10041 * score-tdep.h: Ditto.
10042 * ser-base.c: Ditto.
10043 * ser-go32.c: Ditto.
10046 * ser-mingw.c: Ditto.
10047 * ser-pipe.c: Ditto.
10048 * ser-tcp.c: Ditto.
10049 * ser-unix.c: Ditto.
10050 * sh64-tdep.c: Ditto.
10051 * shnbsd-nat.c: Ditto.
10052 * sh-tdep.c: Ditto.
10053 * sh-tdep.h: Ditto.
10055 * solib-darwin.c: Ditto.
10056 * solib-frv.c: Ditto.
10058 * solib-irix.c: Ditto.
10059 * solib-osf.c: Ditto.
10060 * solib-pa64.c: Ditto.
10061 * solib-som.c: Ditto.
10062 * solib-spu.c: Ditto.
10063 * solib-sunos.c: Ditto.
10064 * solib-svr4.c: Ditto.
10066 * sol-thread.c: Ditto.
10067 * somread.c: Ditto.
10070 * sparc64-linux-tdep.c: Ditto.
10071 * sparc64-tdep.c: Ditto.
10072 * sparc-linux-nat.c: Ditto.
10073 * sparc-linux-tdep.c: Ditto.
10074 * sparc-sol2-nat.c: Ditto.
10075 * sparc-sol2-tdep.c: Ditto.
10076 * sparc-tdep.c: Ditto.
10077 * sparc-tdep.h: Ditto.
10078 * spu-tdep.c: Ditto.
10079 * stabsread.c: Ditto.
10080 * stabsread.h: Ditto.
10082 * symfile.c: Ditto.
10083 * symfile.h: Ditto.
10084 * symmisc.c: Ditto.
10088 * target-descriptions.c: Ditto.
10089 * target-descriptions.h: Ditto.
10091 * target-memory.c: Ditto.
10092 * terminal.h: Ditto.
10095 * tracepoint.c: Ditto.
10096 * tracepoint.h: Ditto.
10097 * trad-frame.h: Ditto.
10098 * typeprint.c: Ditto.
10100 2011-01-11 Michael Snyder <msnyder@vmware.com>
10102 * ui-file.c: Comment cleanup, mostly periods and spaces.
10103 * ui-file.h: Ditto.
10107 * v850-tdep.c: Ditto.
10108 * valarith.c: Ditto.
10110 * valprint.c: Ditto.
10111 * valprint.h: Ditto.
10116 * vax-tdep.c: Ditto.
10119 * version.h: Ditto.
10120 * windows-nat.c: Ditto.
10121 * windows-tdep.c: Ditto.
10122 * xcoffread.c: Ditto.
10123 * xcoffsolib.c: Ditto.
10124 * xml-support.c: Ditto.
10125 * xstormy16-tdep.c: Ditto.
10126 * xtensa-tdep.c: Ditto.
10127 * xtensa-tdep.h: Ditto.
10129 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10131 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10132 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10134 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10135 Thiago Jung Bauermann <bauerman@br.ibm.com>
10137 Implement support for PowerPC BookE ranged watchpoints.
10139 (struct breakpoint_ops) <resources_needed>: New method.
10140 Initialize to NULL in all existing breakpoint_ops instances.
10141 (struct breakpoint) <exact>: New field.
10142 (target_exact_watchpoints): Declare external global.
10143 * breakpoint.c (target_exact_watchpoints): New global flag.
10144 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10145 b->enable_state to bp_enabled before calling
10146 hw_watchpoint_used_count.
10147 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10148 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10150 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10151 if the watchpoint is exact.
10152 (resources_needed_watchpoint): New function.
10153 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10154 (watch_command_1): Set b->exact if the user asked for an exact
10155 watchpoint and one can be set.
10156 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10157 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10158 the user asks for an exact watchpoint and one can be set. Return
10159 number of needed debug registers to watch the expression.
10160 * gdbtypes.c (is_scalar_type): New function, based on
10161 valprint.c:scalar_type_p.
10162 (is_scalar_type_recursive): New function.
10163 * gdbtypes.h (is_scalar_type_recursive): Declare.
10164 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10165 handle regions when ranged watchpoints are available.
10166 (create_watchpoint_request): New function.
10167 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10168 create_watchpoint_request.
10169 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10170 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10171 `set powerpc' and `show powerpc' commands.
10172 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10173 Mention documentation comment in the target macro.
10174 (target_region_ok_for_hw_watchpoint): Document return value.
10176 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10178 * breakpoint.c (update_watchpoint): Decide on using a software or
10179 hardware watchpoint after the bp_locations are created.
10181 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10183 Convert hardware watchpoints to use breakpoint_ops.
10184 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10185 <insert_location>: ... this. Return int instead of void.
10186 Accept pointer to struct bp_location instead of pointer to
10187 struct breakpoint. Adapt all implementations.
10188 (breakpoint_ops) <remove>: Rename to...
10189 <remove_location>: ... this. Accept pointer to struct bp_location
10190 instead of pointer to struct breakpoint. Adapt all implementations.
10191 * breakpoint.c (insert_catchpoint): Delete function.
10192 (insert_bp_location): Call the watchpoint or catchpoint's
10193 breakpoint_ops.insert method.
10194 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10195 breakpoint_ops.remove method.
10196 (insert_watchpoint, remove_watchpoint): New functions.
10197 (watchpoint_breakpoint_ops): New structure.
10198 (watch_command_1): Initialize the OPS field.
10199 * inf-child.c (inf_child_insert_fork_catchpoint)
10200 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10201 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10202 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10204 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10205 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10206 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10207 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10208 * target.c (update_current_target): Change default implementation of
10209 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10210 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10211 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10212 to_set_syscall_catchpoint to return_one.
10213 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10214 (debug_to_insert_exec_catchpoint): Report return value.
10215 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10216 (to_insert_exec_catchpoint): Change declaration to return int instead
10219 2011-01-11 Michael Snyder <msnyder@vmware.com>
10221 * arm-tdep.c: Internationalization.
10223 * charset.c: Ditto.
10224 * fork-child.c: Ditto.
10225 * nto-procfs.c: Ditto.
10226 * ppc-sysv-tdep.c: Ditto.
10228 * remote-mips.c: Ditto.
10230 * rs6000-nat.c: Ditto.
10231 * rs6000-tdep.c: Ditto.
10235 * xml-support.c: Ditto.
10236 * mi/mi-cmd-break.c: Ditto.
10237 * mi/mi-cmd-var.c: Ditto.
10238 * mi/mi-interp.c: Ditto.
10239 * mi/mi-main.c: Ditto.
10241 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10243 * remote-sim.c (gdbsim_store_register): Update API to
10244 sim_store_register to check more error conditions.
10246 2011-01-10 Michael Snyder <msnyder@vmware.com>
10248 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10249 * nto-tdep.c: Ditto.
10250 * nto-tdep.h: Ditto.
10251 * objc-exp.y: Ditto.
10252 * objc-lang.c: Ditto.
10253 * objfiles.c: Ditto.
10254 * objfiles.h: Ditto.
10255 * observer.c: Ditto.
10256 * opencl-lang.c: Ditto.
10259 * parser-defs.h: Ditto.
10262 * posix-hdep.c: Ditto.
10263 * ppcbug-rom.c: Ditto.
10264 * ppc-linux-nat.c: Ditto.
10265 * ppc-linux-tdep.c: Ditto.
10266 * ppc-linux-tdep.h: Ditto.
10267 * ppcnbsd-tdep.c: Ditto.
10268 * ppcobsd-tdep.c: Ditto.
10269 * ppcobsd-tdep.h: Ditto.
10270 * ppc-sysv-tdep.c: Ditto.
10271 * ppc-tdep.h: Ditto.
10272 * printcmd.c: Ditto.
10273 * proc-abi.c: Ditto.
10274 * proc-flags.c: Ditto.
10276 * proc-utils.h: Ditto.
10277 * progspace.h: Ditto.
10278 * prologue-value.c: Ditto.
10279 * prologue-value.h: Ditto.
10280 * psympriv.h: Ditto.
10281 * psymtab.c: Ditto.
10282 * p-typeprint.c: Ditto.
10283 * p-valprint.c: Ditto.
10284 * ravenscar-sparc-thread.c: Ditto.
10285 * ravenscar-thread.c: Ditto.
10286 * ravenscar-thread.h: Ditto.
10288 * regcache.c: Ditto.
10289 * regcache.h: Ditto.
10291 * remote-fileio.c: Ditto.
10292 * remote-fileio.h: Ditto.
10294 * remote-m32r-sdi.c: Ditto.
10295 * remote-mips.c: Ditto.
10296 * remote-sim.c: Ditto.
10297 * rs6000-aix-tdep.c: Ditto.
10298 * rs6000-nat.c: Ditto.
10299 * rs6000-tdep.c: Ditto.
10301 2011-01-10 Michael Snyder <msnyder@vmware.com>
10303 * charset.c (validate): Internationalization.
10304 * coffread.c (read_one_sym): Ditto.
10305 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10306 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10307 * inflow.c (new_tty): Ditto.
10308 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10309 * m32c-tdep.c (m32c_return_value): Ditto.
10310 * mep-tdep.c (mep_store_return_value): Ditto.
10311 * score-tdep.c (score7_fetch_insn): Ditto.
10312 * ser-mingw.c (pipe_windows_open): Ditto.
10313 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10314 * spu-tdep.c (spu_register_type): Ditto.
10315 * tracepoint.c (trace_find_command): Ditto.
10316 * valarith.c (value_pos): Ditto.
10318 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10320 * ada-valprint.c (printstr): Minor comment reformatting.
10322 2011-01-08 Michael Snyder <msnyder@vmware.com>
10324 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10327 2011-01-08 Michael Snyder <msnyder@vmware.com>
10329 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10330 * hppa-hpux-tdep.c: Ditto.
10331 * hppa-linux-nat.c: Ditto.
10332 * hppa-linux-tdep.c: Ditto.
10333 * hppanbsd-tdep.c: Ditto.
10334 * hppa-tdep.c: Ditto.
10335 * hppa-tdep.h: Ditto.
10336 * hpux-thread.c: Ditto.
10337 * i386-cygwin-tdep.c: Ditto.
10338 * i386-darwin-nat.c: Ditto.
10339 * i386gnu-nat.c: Ditto.
10340 * i386-linux-nat.c: Ditto.
10341 * i386-linux-tdep.c: Ditto.
10342 * i386-nat.c: Ditto.
10343 * i386-nat.h: Ditto.
10344 * i386nbsd-tdep.c: Ditto.
10345 * i386-sol2-nat.c: Ditto.
10346 * i386-stub.c: Ditto.
10347 * i386-tdep.c: Ditto.
10348 * i386-tdep.h: Ditto.
10349 * i387-tdep.c: Ditto.
10350 * ia64-linux-nat.c: Ditto.
10351 * ia64-linux-tdep.c: Ditto.
10352 * ia64-tdep.c: Ditto.
10353 * infcall.c: Ditto.
10354 * infcall.h: Ditto.
10356 * inferior.c: Ditto.
10357 * inferior.h: Ditto.
10358 * infloop.c: Ditto.
10361 * interps.c: Ditto.
10362 * interps.h: Ditto.
10363 * iq2000-tdep.c: Ditto.
10364 * irix5-nat.c: Ditto.
10368 * jv-lang.c: Ditto.
10369 * jv-lang.h: Ditto.
10370 * jv-typeprint.c: Ditto.
10371 * jv-valprint.c: Ditto.
10372 * language.c: Ditto.
10373 * language.h: Ditto.
10374 * linespec.c: Ditto.
10375 * linux-fork.c: Ditto.
10376 * linux-nat.c: Ditto.
10377 * linux-thread-db.c: Ditto.
10378 * lm32-tdep.c: Ditto.
10380 2011-01-08 Michael Snyder <msnyder@vmware.com>
10382 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10383 * m2-lang.c: Ditto.
10384 * m2-typeprint.c: Ditto.
10385 * m2-valprint.c: Ditto.
10386 * m32c-tdep.c: Ditto.
10387 * m32r-linux-nat.c: Ditto.
10388 * m32r-rom.c: Ditto.
10389 * m32r-tdep.c: Ditto.
10390 * m32r-tdep.h: Ditto.
10391 * m68hc11-tdep.c: Ditto.
10392 * m58klinux-nat.c: Ditto.
10393 * m68k-tdep.c: Ditto.
10394 * m88k-tdep.c: Ditto.
10395 * m88k-tdep.h: Ditto.
10396 * machoread.c: Ditto.
10397 * macrocmd.c: Ditto.
10398 * macroexp.c: Ditto.
10399 * macrotab.c: Ditto.
10402 * mdebugread.c: Ditto.
10403 * mdebugread.h: Ditto.
10404 * memattr.c: Ditto.
10405 * memattr.h: Ditto.
10406 * memory-map.h: Ditto.
10407 * mep-tdep.c: Ditto.
10408 * microblaze-rom.c: Ditto.
10409 * microblaze-tdep.c: Ditto.
10410 * minsyms.c: Ditto.
10411 * mips-irix-tdep.c: Ditto.
10412 * mips-linux-nat.c: Ditto.
10413 * mips-linux-tdep.c: Ditto.
10414 * mips-linux-tdep.h: Ditto.
10415 * mipsnbsd-nat.c: Ditto.
10416 * mipsnbsd-tdep.c: Ditto.
10417 * mipsread.c: Ditto.
10418 * mips-tdep.c: Ditto.
10419 * mips-tdep.h: Ditto.
10420 * mn10300-linux-tdep.c: Ditto.
10421 * mn10300-tdep.c: Ditto.
10422 * mn10300-tdep.h: Ditto.
10423 * monitor.c: Ditto.
10424 * monitor.h: Ditto.
10425 * moxie-tdep.c: Ditto.
10426 * moxie-tdep.h: Ditto.
10427 * mt-tdep.c: Ditto.
10429 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10431 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10433 2011-01-08 Robert Millan <rmh@gnu.org>
10435 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10437 2011-01-07 Michael Snyder <msnyder@vmware.com>
10439 * charset.c (_initialize_charset): Fix typo in string.
10441 2011-01-07 Michael Snyder <msnyder@vmware.com>
10443 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10445 * tui/tui-layout.c (tui_set_layout_for_display_command):
10446 Split line so that operator goes to beginning of line.
10447 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10448 assignment out of if statement.
10450 2011-01-07 Michael Snyder <msnyder@vmware.com>
10452 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10453 * ada-lang.h: Ditto.
10454 * ada-tasks.c: Ditto.
10455 * ada-valprint.c: Ditto.
10456 * aix-threads.c: Ditto.
10457 * alpha-linux-nat.c: Ditto.
10458 * alpha-linux-tdep.c: Ditto.
10459 * alpha-mdebug-tdep.c: Ditto.
10460 * alpha-nat.c: Ditto.
10461 * alpha-osf1-tdep.c: Ditto.
10462 * alpha-tdep.c: Ditto.
10463 * alphabsd-nat.c: Ditto.
10464 * alphabsd-tdep.c: Ditto.
10465 * amd64-darwin-tdep.c: Ditto.
10466 * amd64-linux-nat.c: Ditto.
10467 * amd64-linux-tdep.c: Ditto.
10468 * amd64-sol2-tdep.c: Ditto.
10469 * amd64-tdep.c: Ditto.
10470 * amd64-fbsd-tdep.c: Ditto.
10471 * amd64-nbsd-tdep.c: Ditto.
10472 * amd64-obsd-tdep.c: Ditto.
10473 * amd64-linux-nat.c: Ditto.
10474 * amd64-linux-tdep.c: Ditto.
10475 * arm-tdep.c: Ditto.
10476 * arm-tdep.h: Ditto.
10477 * armnbsd-nat.c: Ditto.
10478 * avr-tdep.c: Ditto.
10479 * bfin-tdep.c: Ditto.
10480 * bsd-kvm.c: Ditto.
10481 * c-typeprintc: Ditto.
10482 * c-valprint.c: Ditto.
10483 * coff-pe-read.h: Ditto.
10484 * coffreead.c: Ditto.
10485 * cris-tdep.c: Ditto.
10487 * darwin-nat-info.c: Ditto.
10488 * darwin-nat.c: Ditto.
10489 * dbug-rom.c: Ditto.
10490 * dbxread.c: Ditto.
10493 * dec-thread.c: Ditto.
10495 * demangle.c: Ditto.
10496 * dicos-tdep.c: Ditto.
10497 * dictionary.c: Ditto.
10498 * dictionary.h: Ditto.
10499 * dink32-rom.c: Ditto.
10501 * doublest.c: Ditto.
10503 * dummy-frame.c: Ditto.
10504 * dwarf2-frame.c: Ditto.
10505 * dwarf2expr.c: Ditto.
10506 * dwarf2loc.c: Ditto.
10507 * dwarf2read.c: Ditto.
10508 * elfread.c: Ditto.
10509 * environ.c: Ditto.
10511 * event-top.h: Ditto.
10512 * exceptions.c: Ditto.
10513 * exceptions.h: Ditto.
10515 * expprint.c: Ditto.
10516 * expression.h: Ditto.
10520 * f-typeprint.c: Ditto.
10521 * f-valprint.c: Ditto.
10522 * fbsd-nat.c: Ditto.
10523 * findvar.c: Ditto.
10524 * fork-child.c: Ditto.
10527 * frv-linux-tdep.c: Ditto.
10528 * frv-tdep.c: Ditto.
10530 * gdb-stabs.h: Ditto.
10531 * gdb_assert.h: Ditto.
10532 * gdb_string.h: Ditto.
10533 * gdb_thread_db.h: Ditto.
10534 * gdb_wait.h: Ditto.
10535 * gdbarch.sh: Ditto.
10536 * gdbcore.h: Ditto.
10537 * gdbthread.h: Ditto.
10538 * gdbtypes.c: Ditto.
10539 * gdbtypes.h: Ditto.
10540 * gnu-nat.c: Ditto.
10541 * gnu-nat.h: Ditto.
10542 * gnu-v2-abi.c: Ditto.
10543 * gnu-v3-abi.c: Ditto.
10544 * go32-nat.c: Ditto.
10545 * gdbarch.c: Regenerate.
10546 * gdbarch.h: Regenerate.
10548 2011-01-07 Michael Snyder <msnyder@vmware.com>
10550 * ax-gdb.c: Adjust some long output strings.
10551 * breakpoint.c: Ditto.
10552 * charset.c: Ditto.
10554 * infcall.c: Ditto.
10556 * linux-nat.c: Ditto.
10557 * solib-pa64.c: Ditto.
10558 * solib-som.c: Ditto.
10560 2011-01-06 Tom Tromey <tromey@redhat.com>
10564 * python/python.c (GdbMethods): Add "newest_frame" method.
10565 * python/python-internal.h (gdbpy_newest_frame): Declare.
10566 * python/py-frame.c (gdbpy_newest_frame): New function.
10568 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10570 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10571 * jit.c (jit_debug): New variable.
10572 (show_jit_debug): New function.
10573 (struct target_buffer): Use ULONGEST.
10574 (bfd_open_from_target_memory): Likewise.
10575 (jit_register_code, jit_inferior_init): Add debug output.
10576 (_initialize_jit): Register "debug jit" command.
10578 2011-01-06 Tom Tromey <tromey@redhat.com>
10580 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10581 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10584 2011-01-06 Tom Tromey <tromey@redhat.com>
10586 * python/py-frame.c (frapy_block): Use get_frame_block.
10588 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10590 Do not stop on SIGPRIO signals by default
10591 * infrun.c (_initialize_infrun): Unset signal_stop and
10592 signal_print for TARGET_SIGNAL_PRIO.
10594 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10596 * ada-tasks.c: Fix style violation in comment.
10598 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10600 * linespec.c (decode_compound, find_method): Remove trailing \n
10601 at end of error string.
10602 * solib-irix.c (irix_current_sos): Likewise.
10603 * varobj.c (uninstall_variable): Likewise.
10605 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10607 * copyright.py: New script.
10608 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10609 Launch emacs without exec'ing. Call copyright.py afterwards.
10611 2011-01-05 Michael Snyder <msnyder@vmware.com>
10613 * addrmap.c: Shorten lines of >= 80 columns.
10614 * arch-utils.c: Ditto.
10615 * arch-utils.h: Ditto.
10617 * ax-general.c: Ditto.
10619 * blockframe.c: Ditto.
10620 * breakpoint.c: Ditto.
10621 * buildsym.c: Ditto.
10623 * c-typeprint.c: Ditto.
10624 * charset.c: Ditto.
10625 * coffread.c: Ditto.
10626 * command.h: Ditto.
10627 * corelow.c: Ditto.
10629 * cp-namespace.c: Ditto.
10630 * cp-support.c: Ditto.
10631 * dbug-rom.c: Ditto.
10632 * dbxread.c: Ditto.
10636 * dictionary.c: Ditto.
10638 * doublest.c: Ditto.
10639 * dwarf2-frame.c: Ditto.
10640 * dwarf2expr.c: Ditto.
10641 * dwarf2loc.c: Ditto.
10642 * dwarf2read.c: Ditto.
10643 * elfread.c: Ditto.
10645 * event-loop.c: Ditto.
10646 * event-loop.h: Ditto.
10647 * exceptions.h: Ditto.
10649 * expprint.c: Ditto.
10650 * expression.h: Ditto.
10652 * f-valprint.c: Ditto.
10653 * findcmd.c: Ditto.
10654 * frame-base.c: Ditto.
10655 * frame-unwind.c: Ditto.
10656 * frame-unwind.h: Ditto.
10660 * gdb-stabs.h: Ditto.
10661 * gdb_assert.h: Ditto.
10662 * gdb_dirent.h: Ditto.
10663 * gdb_obstack.h: Ditto.
10664 * gdbcore.h: Ditto.
10665 * gdbtypes.c: Ditto.
10666 * gdbtypes.h: Ditto.
10667 * inf-ttrace.c: Ditto.
10668 * infcall.c: Ditto.
10672 * inline-frame.h: Ditto.
10673 * language.c: Ditto.
10674 * language.h: Ditto.
10675 * libunwind-frame.c: Ditto.
10676 * libunwind-frame.h: Ditto.
10677 * linespec.c: Ditto.
10678 * linux-nat.c: Ditto.
10679 * linux-nat.h: Ditto.
10680 * linux-thread-db.c: Ditto.
10681 * machoread.c: Ditto.
10682 * macroexp.c: Ditto.
10683 * macrotab.c: Ditto.
10686 * mdebugread.c: Ditto.
10687 * memattr.c: Ditto.
10688 * minsyms.c: Ditto.
10689 * monitor.c: Ditto.
10690 * monitor.h: Ditto.
10691 * objfiles.c: Ditto.
10692 * objfiles.h: Ditto.
10694 * p-typeprint.c: Ditto.
10695 * p-valprint.c: Ditto.
10697 * printcmd.c: Ditto.
10698 * proc-events.c: Ditto.
10700 * progspace.c: Ditto.
10701 * progspace.h: Ditto.
10702 * psympriv.h: Ditto.
10703 * psymtab.c: Ditto.
10705 * regcache.c: Ditto.
10706 * regcache.h: Ditto.
10707 * remote-fileio.c: Ditto.
10709 * ser-mingw.c: Ditto.
10710 * ser-tcp.c: Ditto.
10711 * ser-unix.c: Ditto.
10714 * solib-frv.c: Ditto.
10715 * solib-irix.c: Ditto.
10716 * solib-osf.c: Ditto.
10717 * solib-pa64.c: Ditto.
10718 * solib-som.c: Ditto.
10719 * solib-sunos.c: Ditto.
10720 * solib-svr4.c: Ditto.
10721 * solib-target.c: Ditto.
10723 * somread.c: Ditto.
10725 * stabsread.c: Ditto.
10726 * stabsread.c: Ditto.
10729 * symfile-mem.c: Ditto.
10730 * symfile.c: Ditto.
10731 * symfile.h: Ditto.
10732 * symmisc.c: Ditto.
10735 * target-descriptions.c: Ditto.
10736 * target-memory.c: Ditto.
10739 * terminal.h: Ditto.
10742 * tracepoint.c: Ditto.
10743 * tracepoint.h: Ditto.
10744 * ui-file.c: Ditto.
10745 * ui-file.h: Ditto.
10747 * user-regs.c: Ditto.
10748 * user-regs.h: Ditto.
10750 * valarith.c: Ditto.
10752 * valprint.c: Ditto.
10753 * valprint.h: Ditto.
10758 * xcoffread.c: Ditto.
10759 * xcoffsolib.c: Ditto.
10760 * xcoffsolib.h: Ditto.
10761 * xml-syscall.c: Ditto.
10762 * xml-tdesc.c: Ditto.
10764 2011-01-05 Michael Snyder <msnyder@vmware.com>
10766 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10767 * cli/cli-decode.c: Ditto.
10768 * cli/cli-dump.c: Ditto.
10769 * cli/cli-logging.c: Ditto.
10770 * cli/cli-script.c: Ditto.
10771 * cli/cli-setshow.c: Ditto.
10772 * common/signals.c: Ditto.
10773 * mi/mi-cmd-break.c: Ditto.
10774 * mi/mi-cmd-disas.c: Ditto.
10775 * mi/mi-cmd-stack.c: Ditto.
10776 * mi/mi-cmd-var.c: Ditto.
10777 * mi/mi-cmds.c: Ditto.
10778 * mi/mi-common.h: Ditto.
10779 * mi/mi-console.c: Ditto.
10780 * mi/mi-interp.c: Ditto.
10781 * mi/mi-main.c: Ditto.
10782 * osf-share/cma_attr.c: Ditto.
10783 * osf-share/cma_deb_core.h: Ditto.
10784 * osf-share/cma_debug_client.h: Ditto.
10785 * osf-share/cma_handle.h: Ditto.
10786 * osf-share/cma_mutex.h: Ditto.
10787 * osf-share/cma_stack_int.h: Ditto.
10788 * osf-share/cma_tcb_defs.h: Ditto.
10789 * python/py-auto-load.c: Ditto.
10790 * python/py-breakpoint.c: Ditto.
10791 * python/py-cmd.c: Ditto.
10792 * python/py-frame.c: Ditto.
10793 * python/py-objfile.c: Ditto.
10794 * python/py-param.c: Ditto.
10795 * python/py-progspace.c: Ditto.
10796 * python/py-symbol.c: Ditto.
10797 * python/py-value.c: Ditto.
10798 * python/python-internal.h: Ditto.
10799 * python/python.c: Ditto.
10800 * tui/tui-data.c: Ditto.
10801 * tui/tui-disasm.c: Ditto.
10802 * tui/tui-hooks.c: Ditto.
10803 * tui/tui-io.c: Ditto.
10804 * tui/tui-layout.c: Ditto.
10805 * tui/tui-regs.c: Ditto.
10806 * tui/tui-source.c: Ditto.
10807 * tui/tui-stack.c: Ditto.
10808 * tui/tui-win.c: Ditto.
10809 * tui/tui-windata.c: Ditto.
10810 * tui/tui-winsource.c: Ditto.
10812 2011-01-05 Joel Brobecker <brobecker@adacore.com>
10814 * configure.ac, gdb.1: Copyright year update.
10816 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10818 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10819 this_pc_in_block, morestack_msym and morestack_name. Check for
10820 "__morestack" minimal symbol there.
10822 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10824 * symfile.c (find_sym_fns): Add call to dont_repeat.
10826 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10828 Copyright year update in most files (performed by copyright.sh).
10830 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10832 * top.c (print_gdb_version): Update copyright year in version output.
10834 For older changes see ChangeLog-2010.
10840 version-control: never