1 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix separate debuginfo warning with "remote:" access.
4 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
5 * symfile.c (get_file_crc): New function with the code moved from ...
6 (separate_debug_file_exists): ... this function, specifically variables
7 buffer and count. New variable verified_as_different, set it. Remove
8 file_crc initialization. Verify also if both files are not the same
11 2011-10-11 Yao Qi <yao@codesourcery.com>
13 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
16 2011-10-10 Doug Evans <dje@google.com>
18 * linux-thread-db.c (thread_db_new_objfile): Only try to load
19 libthread_db when we load libpthread or the main symbol file.
20 (thread_db_inferior_created): New function.
21 (_initialize_thread_db): Attach inferior_created observer.
22 * linux-nat.c (linux_child_post_attach): Remove call to
24 (linux_child_post_startup_inferior): Ditto.
25 * objfiles.h (OBJF_MAINLINE): Define.
26 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
27 allocate_objfile when appropriate.
29 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
32 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
33 Remove unused variables.
34 (get_linux_version): Remove function.
35 (_initialize_arm_linux_nat): Do not call it.
37 2011-10-10 Pedro Alves <pedro@codesourcery.com>
39 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
40 new clone lwp if the core asked it to stop. Don't pass on
41 unexpected signals to the new clone; leave them pending instead.
43 2011-10-10 Pedro Alves <pedro@codesourcery.com>
45 * linux-nat.c (resume_lwp): Remove redundant debug output.
47 2011-10-10 Pedro Alves <pedro@codesourcery.com>
49 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
50 last_resume_kind before clearing it, and use the copy instead to
51 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
52 resume_clear_callback in the non-stop path too.
54 2011-10-09 Yao Qi <yao@codesourcery.com>
56 * valprint.c (value_check_printable): Add one parameter OPTIONS.
57 Honor OPTIONS and VAL's type.
58 (common_val_print, value_print): Update to pass one more parameter.
60 2011-10-09 Doug Evans <dje@google.com>
62 Add new "alias" command.
63 * NEWS: Mention new command.
64 * command.h (valid_user_defined_cmd_name_p): Declare.
65 * defs.h (make_cleanup_dyn_string_delete): Declare.
66 * utils.c: #include "dyn-string.h".
67 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
68 * cli/cli-cmds.c: #include "dyn-string.h".
69 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
70 (init_cli_cmds): Add new command.
71 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
73 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
75 Fix compatibility with older GCCs.
76 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
77 * stack.c (read_frame_arg): Initialize val_deref.
79 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
81 Entry values NEWS entries, DWARF disassembly support.
82 * NEWS: New entry values entry.
83 (set print entry-values, show print entry-values)
84 (set debug entry-values, show debug entry-values): New entries.
85 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
86 indent. Remove variable start. Move header printing out. Respect
87 INDENT. Support DW_OP_GNU_entry_value.
88 (locexpr_describe_location_1): Move the header printing here, extend
89 the disassemble_dwarf_expression passed parameters.
91 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
93 Display @entry parameter values even for references.
94 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
95 coerce_ref_if_computed.
96 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
97 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
98 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
99 existing push_dwarf_reg_entry_value call. Add new detection calling
100 dwarf_block_to_dwarf_reg_deref. Update the error message.
101 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
103 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
104 parameter deref_size, describe it in the comment.
105 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
106 (dwarf_block_to_dwarf_reg_deref): New declaration.
107 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
108 deref_size, describe it in the function comment. New variables
109 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
110 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
111 describe it in the function comment. Fetch the alternative block
112 accoring to DEREF_SIZE.
113 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
114 (entry_data_value_free_closure, entry_data_value_funcs): New.
115 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
116 outer_val, target_val, val and addr. Try to fetch and create also
117 referenced value content.
118 (pieced_value_funcs): NULL value for coerce_ref.
119 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
120 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
121 coerce_ref_if_computed.
122 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
123 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
124 * stack.c (read_frame_arg): Compare also dereferenced values.
125 * value.c (value_computed_funcs): Make the parameter v const, use
126 value_lval_const for it.
127 (value_lval_const, coerce_ref_if_computed): New function.
128 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
129 * value.h (struct lval_funcs): New field coerce_ref.
130 (value_computed_funcs): Make the parameter v const.
131 (value_lval_const, coerce_ref_if_computed): New declarations.
133 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
135 Support @entry in input expressions.
136 * c-exp.y (ENTRY, unknown_cpp_name): New.
137 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
138 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
139 (variable: name_not_typename '@' ENTRY, name: ENTRY)
140 (name_not_typename: ENTRY): New.
141 (yylex): Recognize ENTRY.
142 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
143 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
145 * parse.c (operator_length_standard): Likewise.
146 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
148 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
150 Display referenced values in backtraces.
151 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
152 * stack.c (print_frame_arg): Likewise.
154 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
156 Make some lval_funcs methods to default on NULL.
157 * valops.c (value_fetch_lazy): Check if lval_computed read method is
159 (value_assign): Check if lval_computed write method is NULL.
160 * value.h (struct lval_funcs): Comment NULL values for read and write
163 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
165 Display @entry parameter values (without references).
166 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
168 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
170 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
172 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
173 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
175 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
176 (loclist_read_variable_at_entry): New function.
177 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
178 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
179 DW_AT_location, call dwarf_block_to_sp_offset for it.
180 * frame.h (print_entry_values_no, print_entry_values_only)
181 (print_entry_values_preferred, print_entry_values_if_needed)
182 (print_entry_values_both, print_entry_values_compact)
183 (print_entry_values_default, print_entry_values): New declarations.
184 (struct frame_arg): New field entry_kind.
185 (read_frame_arg): New parameter entryargp.
186 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
187 arg->entry_kind. Optionally print the `@entry' suffix.
188 (list_args_or_locals): New variable entryarg, initialize it.
189 Initialize also entry_kind of arg and entryarg. Conditionalize
190 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
191 xfree for entryarg.error.
192 * stack.c (print_entry_values_no, print_entry_values_only)
193 (print_entry_values_preferred, print_entry_values_if_needed)
194 (print_entry_values_both, print_entry_values_compact)
195 (print_entry_values_default, print_entry_values_choices)
196 (print_entry_values): New variables.
197 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
198 print the `@entry' suffix, possibly in combination for
199 print_entry_values_compact.
200 (read_frame_arg): New parameter entryargp, new variables entryval,
201 entryval_error and val_equal. Read in also entryargp, respect
202 print_entry_values, compare the values using val_equal, fill in also
203 argp->entry_kind (together with entryargp->entry_kind).
204 (print_frame_args): New variable entryarg, initialize it.
205 Conditionalize print_frame_arg for arg, add print_frame_arg for
206 entryarg. Call xfree for entryarg.error.
207 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
208 * symtab.h (struct symbol_computed_ops): New field
209 read_variable_at_entry.
211 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
214 * frame.h (struct frame_arg): New definition.
215 (read_frame_arg): New declaration.
216 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
217 (list_args_or_locals): ... the code here. New variable arg, call
218 read_frame_arg and list_arg_or_local with it. Unify the
219 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
221 * stack.c (print_frame_arg): New functiom from the code of
223 (read_frame_arg): New function.
224 (print_frame_args): Remove variable val. New variable arg, call
225 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
227 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
229 Protect entry values against self tail calls.
230 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
231 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
233 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
235 Recognize virtual tail call frames.
236 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
237 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
238 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
239 * dwarf2-frame-tailcall.c: New file.
240 * dwarf2-frame-tailcall.h: New file.
241 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
242 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
243 REGS.PREV only after CIE execution.
244 (struct dwarf2_frame_cache): New field tailcall_cache.
245 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
246 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
247 parts, try to find entry_cfa_sp_offset. Call
248 dwarf2_tailcall_sniffer_first.
249 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
251 (dwarf2_frame_dealloc_cache): New function.
252 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
253 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
254 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
255 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
256 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
257 * dwarf2loc.c (func_addr_to_tail_call_list)
258 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
259 (call_site_find_chain_1, call_site_find_chain): New.
260 * dwarf2loc.h (struct call_site_chain): New.
261 (call_site_find_chain): New declaration.
262 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
263 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
264 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
265 * stack.c (frame_info): Support also TAILCALL_FRAME.
267 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
269 Tail call sites reader implementation.
270 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
271 fill in TYPE_TAIL_CALL_LIST.
272 * gdbtypes.h (struct func_type): New field tail_call_list.
273 (struct call_site): New field tail_call_next.
274 (TYPE_TAIL_CALL_LIST): New definition.
276 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
278 Implement basic support for DW_TAG_GNU_call_site.
279 * block.c: Include gdbtypes.h and exceptions.h.
280 (call_site_for_pc): New function.
281 * block.h (call_site_for_pc): New declaration.
282 * defs.h: Include hashtab.h.
283 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
285 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
286 ctx_no_push_dwarf_reg_entry_value.
287 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
288 (dwarf_block_to_dwarf_reg): New function.
289 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
290 (ctx_no_push_dwarf_reg_entry_value): New function.
291 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
292 push_dwarf_reg_entry_value.
293 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
295 * dwarf2loc.c: Include gdbcmd.h.
296 (dwarf_expr_ctx_funcs): New forward declaration.
297 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
298 (dwarf_expr_reg_to_entry_parameter)
299 (dwarf_expr_push_dwarf_reg_entry_value): New.
300 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
301 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
302 (needs_dwarf_reg_entry_value): New function.
303 (needs_frame_ctx_funcs): Install it.
304 (_initialize_dwarf2loc): New function.
305 * dwarf2loc.h (entry_values_debug): New declaration.
306 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
307 (read_call_site_scope): New forward declaration.
308 (process_full_comp_unit): Copy call_site_htab.
309 (process_die): Support DW_TAG_GNU_call_site.
310 (read_call_site_scope): New function.
311 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
312 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
313 (cleanup_htab): Delete.
314 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
315 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
316 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
317 FIELD_LOC_KIND_DWARF_BLOCK.
318 * gdbtypes.h (enum field_loc_kind): New entry
319 FIELD_LOC_KIND_DWARF_BLOCK.
320 (struct main_type): New loc entry dwarf_block.
321 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
322 (TYPE_FIELD_DWARF_BLOCK): New.
323 * python/py-type.c: Include dwarf2loc.h.
324 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
325 internal_error call on unknown FIELD_LOC_KIND.
326 * symtab.h (struct symtab): New field call_site_htab.
327 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
328 (core_addr_hash, core_addr_eq): New functions.
330 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
333 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
334 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
335 calling_convention under func_stuff there.
336 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
337 (init_type) <TYPE_CODE_FUNC>: Likewise.
338 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
339 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
340 * gdbtypes.h (enum type_specific_kind): Change
341 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
342 (struct main_type) <type_specific>: Change calling_convention to
343 func_stuff. Move calling_convention to ...
344 (struct func_type): ... this new struct.
345 (INIT_FUNC_SPECIFIC): New #define.
346 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
348 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
350 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
351 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
352 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
353 ctx->ref_addr_size. Handle its invalid value.
354 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
355 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
356 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
357 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
358 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
359 (dwarf2_per_cu_ref_addr_size): New function.
361 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
364 * dwarf2read.c (per_cu_header_read_in): New function.
365 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
366 variables cu_header_local and cu_headerp.
368 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
370 Fix initial language detection with -readnow.
371 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
372 * symfile.h (struct quick_symbol_functions): State find_symbol_file
373 searches only for global symbols.
375 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
377 Fix printed anonymous struct name.
378 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
379 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
380 (anonymous_struct_prefix): New function.
381 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
382 (dwarf2_name): Strip for anonymous structs any prefixes.
384 2011-10-07 Doug Evans <dje@google.com>
386 * python/lib/gdb/printing.py (register_pretty_printer): New argument
389 * python/lib/gdb/printing.py: Whitespace cleanup.
391 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
394 2011-10-07 Pedro Alves <pedro@codesourcery.com>
396 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
397 * amd64-linux-nat.c (amd64_linux_dr_set_control)
398 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
399 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
400 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
401 (arm_linux_remove_watchpoint): Adjust.
402 * i386-linux-nat.c (i386_linux_dr_set_control)
403 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
404 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
405 (ia64_linux_remove_watchpoint): Adjust.
406 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
407 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
408 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
409 (ppc_linux_insert_mask_watchpoint)
410 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
411 (ppc_linux_remove_watchpoint): Adjust.
412 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
415 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
417 * windows-nat.c: Include wchar.h to avoid compiler warnings.
418 (clear_win32_environment): New function for Cygwin to clear out
420 (windows_create_inferior): Prepare new environment from in_env
423 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
426 * python/py-value.c (valpy_call): Check that arguments are
428 (is_intlike): Remove call to CHECK_TYPEDEF.
429 (valpy_nonzero): Catch GDB exceptions.
430 (valpy_absolute): Ditto.
431 (valpy_lazy_string): Ditto.
433 (valpy_get_is_optimized_out): Ditto.
435 (valpy_float): Ditto.
436 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
437 (valpy_richcompare): Ditto.
439 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
441 * inferior.h (disable_randomization): Declare.
442 * infrun.c (disable_randomization): New global variable.
443 (show_disable_randomization): New function.
444 (set_disable_randomization): Likewise.
445 (_initialize_infrun): Install set/show disable-randomization
447 * linux-nat.c (disable_randomization): Remove.
448 (show_disable_randomization): Likewise.
449 (set_disable_randomization): Likewise.
450 (_initialize_linux_nat): No longer install set/show
451 disable-randomization commands here.
452 (linux_nat_supports_disable_randomization): New function.
453 (linux_nat_add_target): Install it.
454 * remote.c (PACKET_QDisableRandomization): New enum value.
455 (remote_protocol_packets): Support QDisableRandomization.
456 (_initialize_remote): Likewise.
457 (remote_supports_disable_randomization): New function.
458 (init_remote_ops): Install it.
459 (extended_remote_supports_disable_randomization): New function.
460 (init_extended_remote_ops): Install it.
461 (extended_remote_disable_randomization): New function.
462 (extended_remote_create_inferior_1): Call it.
463 * target.h (struct target_ops): Add to_supports_disable_randomization.
464 (target_supports_disable_randomization): Add prototype.
465 * target.c (target_supports_disable_randomization): New function.
466 (find_default_supports_disable_randomization): Likewise.
467 (init_dummy_target): Install it.
469 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
471 Allow Python notification of new object-file loadings.
472 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
473 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
474 Add build rule for this file.
475 * python/py-event.h (emit_new_objfile_event): New prototype.
476 (newobjfile): New Python event emitter.
477 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
478 Python event registry.
479 * python/py-inferior.c: Include objfiles.h
480 (python_new_objfile): New function.
481 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
483 * python/py-newobjfileevent.c: New file.
484 * python-internal.h (gdbpy_initialize_new_objfile_event): New
486 * python/python.c (_initialize_python): Add
487 gdbpy_initialize_new_objfile_event call.
488 * NEWS: Add item for new Python event "gdb.newobjfile"
490 2011-10-05 Tristan Gingold <gingold@adacore.com>
492 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
493 Extract the ravenscar task name from the symbol for the atcb.
495 2011-10-04 Paul Koning <paul_koning@dell.com>
497 * python/py-type.c (typy_make_iter): Add forward declaration.
498 (typy_fields_items): Use the gdb.Type iterator.
500 2011-10-04 Paul Koning <paul_koning@dell.com>
502 * NEWS: Add entry for Python gdb.Type mapping methods.
504 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
506 PR python/12691: Add the inferior to Python exited event
507 * python/py-exitedevent.c (create_exited_event_object): Add inferior
509 * python/py-event.h (emit_exited_event): Likewise
510 * python/-inferior.c (python_inferior_exit): Likewise
512 2011-10-03 Joel Brobecker <brobecker@adacore.com>
514 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
515 in output of -ada-task-info GDB/MI command.
517 2011-10-03 Joel Brobecker <brobecker@adacore.com>
519 * ada-lang.h (struct inferior): Declare.
520 (print_ada_task_info): Add declaration.
521 * ada-tasks.c (print_ada_task_info): Make non-static.
522 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
523 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
524 * mi/mi-main.c: #include "ada-lang.h".
525 (mi_cmd_list_features): Add "ada-task-info" to the list
526 of supported features.
527 (mi_cmd_ada_task_info): New function.
529 2011-10-03 Joel Brobecker <brobecker@adacore.com>
531 * python/python.c (python_run_simple_file): New function.
532 (source_python_script, source_python_script_for_objfile):
533 Replace call to PyRun_SimpleFile by call to
534 python_run_simple_file.
536 2011-10-03 Paul Koning <paul_koning@dell.com>
538 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
539 (value_to_value_object): Fetch value if it was lazy.
541 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
544 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
545 Rearrange the code for it.
547 2011-10-02 Joel Brobecker <brobecker@adacore.com>
549 * breakpoint.c (bkpt_print_recreate): Add call to
550 print_recreate_thread.
552 2011-09-29 Mike Frysinger <vapier@gentoo.org>
554 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
555 PTRACE_GETFDPIC_INTERP): Define.
557 2011-09-28 Yao Qi <yao@codesourcery.com>
559 * symfile.c (add_symbol_file_command): Update message on usage.
561 2011-09-28 Paul Koning <paul_koning@dell.com>
563 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
564 (typy_length, typy_get, typy_has_key, typy_make_iter)
565 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
566 (typy_iterator_iter, typy_iterator_iternext)
567 (typy_iterator_dealloc): New functions to implement standard
568 Python mapping methods on gdb.Type object.
569 (gdb.TypeIterator): New Python type.
570 * python/python-internal.h (gdbpy_iter_kind): New enum.
572 2011-09-28 David S. Miller <davem@davemloft.net>
574 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
575 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
576 * sparc-tdep.c (sparc_complex_floating_p): New function.
577 (sparc32_store_arguments): Handle complex floats.
578 (sparc32_extract_return_value): Likewise.
579 (sparc32_store_return_value): Likewise.
580 (sparc32_stabs_argument_has_addr): Likewise.
581 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
582 (sparc64_store_floating_fields): Handle complex floats.
583 (sparc64_store_arguments): Likewise.
584 (sparc64_store_return_value): Likewise.
586 2011-09-28 Eli Zaretskii <eliz@gnu.org>
588 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
589 before the change on 2006-12-09.
590 (windows_create_inferior) [!__CYGWIN__]: Restore code that
591 generates the environment block for CreateProcessA, modulo the
592 Cygwin-specific parts that are not needed here.
594 2011-09-27 Tristan Gingold <gingold@adacore.com>
596 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
597 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
598 (darwin_solib_get_all_image_info_addr_at_init): New function.
599 (darwin_solib_read_all_image_info_addr): Likewise.
600 (darwin_solib_create_inferior_hook): Use the above two functions.
601 * darwin-nat.c (darwin_execvp): Renames retval to res.
602 (darwin_read_write_inferior): Update comment.
603 (darwin_read_dyld_info): New function.
604 (darwin_xfer_partial): Handle DYLD_INFO.
606 2011-09-27 Stan Shebs <stan@codesourcery.com>
608 Add return address collection for tracepoints.
609 * tracepoint.c (encode_actions_1): Add case for $_ret.
610 (validate_actionline): Check for $_ret.
611 (trace_dump_actions): Ditto.
612 * ax-gdb.h (gen_trace_for_return_address): Declare.
613 * ax-gdb.c: Include arch-utils.h.
614 (gen_trace_for_return_address): New function.
615 (agent_command): Add return address special case.
616 * amd64-tdep.c: Include ax.h and ax-gdb.h.
617 (amd64_gen_return_address): New function.
618 (amd64_init_abi): Call it.
619 * i386-tdep.c: Include ax.h and ax-gdb.h.
620 (i386_gen_return_address): New function.
621 (i386_init_abi): Call it.
622 * arch-utils.h (default_gen_return_address): Declare.
623 * arch-utils.c (default_gen_return_address): New function.
624 * gdbarch.sh (gen_return_address): New method.
625 * gdbarch.h, gdbarch.c: Regenerate.
627 2011-09-23 Joseph Myers <joseph@codesourcery.com>
630 * i386-tdep.c (i386_frame_align): New.
631 (i386_gdbarch_init): Use i386_frame_align.
633 2011-09-23 Yao Qi <yao@codesourcery.com>
635 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
638 2011-09-22 Tristan Gingold <gingold@adacore.com>
640 * fork-child.c (fork_inferior): Add exec_fun parameter.
641 Call exec_fun or execvp.
642 * inferior.h: Adjust prototype.
643 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
644 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
645 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
646 * procfs.c (procfs_create_inferior): Ditto.
647 * darwin-nat.c (darwin_execvp): New function.
648 (darwin_create_inferior): Use it.
650 2011-09-22 Yao Qi <yao@codesourcery.com>
652 * infrun.c (context_switch): Print debug message when switching to
655 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
657 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
658 complex and vector types.
659 (s390_return_value_convention): Likewise.
661 (s390_value_from_register): Call check_typedef.
662 (extend_simple_arg): Likewise.
663 (alignment_of): Likewise.
664 (s390_push_dummy_call): Likewise.
665 (s390_return_value): Likewise.
667 2011-09-21 Joseph Myers <joseph@codesourcery.com>
669 * event-top.c (async_disconnect): If an exception is thrown from
670 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
672 * top.c (quit_cover): Return void and take no arguments.
673 * top.h (quit_cover): Update prototype.
675 2011-09-20 Joseph Myers <joseph@codesourcery.com>
677 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
678 current_uiout, not uiout.
680 2011-09-19 Doug Evans <dje@google.com>
682 * python/py-auto-load.c (source_section_scripts): Fix file
684 * python/python.c (source_python_script_for_objfile): Tweak comments.
686 2011-09-18 Yao Qi <yao@codesourcery.com>
687 Ulrich Weigand <ulrich.weigand@linaro.org>
689 Support displaced stepping for Thumb 16-bit insns.
690 * arm-tdep.c (THUMB_NOP) Define.
691 (thumb_copy_unmodified_16bit): New.
692 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
693 (thumb_copy_alu_reg): New.
694 (arm_copy_svc): Move some common code to ...
695 (install_svc): ... here. New.
696 (thumb_copy_svc): New.
697 (install_pc_relative): New.
698 (thumb_copy_pc_relative_16bit): New.
699 (thumb_decode_pc_relative_16bit): New.
700 (thumb_copy_16bit_ldr_literal): New.
701 (thumb_copy_cbnz_cbz): New.
702 (cleanup_pop_pc_16bit_all): New.
703 (thumb_copy_pop_pc_16bit): New.
704 (thumb_process_displaced_16bit_insn): New.
705 (thumb_process_displaced_32bit_insn): New.
706 (thumb_process_displaced_insn): process thumb instruction.
708 Support displaced stepping for Thumb 32-bit insns.
709 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
710 (thumb2_copy_preload): New.
711 (thumb2_copy_copro_load_store): New.
712 (thumb2_copy_b_bl_blx): New.
713 (thumb2_copy_alu_imm): New.
714 (thumb2_copy_load_reg_imm): New.
715 (thumb2_copy_load_literal): New
716 (thumb2_copy_block_xfer): New.
717 (thumb_32bit_copy_undef): New.
718 (thumb_32bit_copy_unpred): New.
719 (thumb2_decode_ext_reg_ld_st): New.
720 (thumb2_decode_svc_copro): New.
721 (decode_thumb_32bit_store_single_data_item): New.
722 (thumb_copy_pc_relative_32bit): New.
723 (thumb_decode_pc_relative_32bit): New.
724 (decode_thumb_32bit_ld_mem_hints): New.
725 (thumb2_copy_table_branch): New
726 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
729 2011-09-18 Yao Qi <yao@codesourcery.com>
731 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
732 (install_b_bl_blx): Likewise.
734 2011-09-17 Yao Qi <yao@codesourcery.com>
736 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
737 (install_load_store): ... this. New.
738 Change parameter BYTE to SIZE.
739 (arm_copy_ldr_str_ldrb_strb): Update caller.
740 (arm_decode_ld_st_word_ubyte): Update caller.
742 2011-09-17 Yao Qi <yao@codesourcery.com>
744 * infrun.c (displaced_step_fixup): Move some code ...
745 (displaced_step_restore): ... here. New function.
746 (handle_inferior_event): Cleanup displaced stepping state for both
747 child and parent when get forked or vforked event.
748 * regcache.c (get_thread_arch_aspace_regcache): New function.
749 get_thread_arch_regcache (): Call it.
751 2011-09-16 Joel Brobecker <brobecker@adacore.com>
753 * ada-tasks.c (print_ada_task_info): New function, merging
754 short_task_info and info_tasks together. Reimplement using
755 ui-out instead of printing to stdout directly. Move the code
756 building and checking the task list here, instead of leaving it
757 in info_tasks_command.
758 (info_task): Move the code building and checking the task
759 list here, instead of leaving it in info_tasks_command.
760 (info_tasks_command): Delete code building and checking
761 the task list - moved elsewhere. Update calls to info_tasks
764 2011-09-16 Joel Brobecker <brobecker@adacore.com>
766 * ada-tasks.c (info_task): Delete parameter `from_tty'.
768 2011-09-16 Joel Brobecker <brobecker@adacore.com>
770 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
772 2011-09-16 Joel Brobecker <brobecker@adacore.com>
774 * ada-lang.h (ada_build_task_list): Remove parameter
776 * ada-tasks.c (ada_build_task_list): Remove parameter
777 `warn_if_null'. Adjust implementation and documentation.
778 (valid_task_id, ada_get_environment_task)
779 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
780 (info_tasks_command): Adjust implementation.
781 (task_command): Likewise.
782 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
783 to ada_build_task_list.
785 2011-09-16 Joel Brobecker <brobecker@adacore.com>
787 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
788 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
789 (ada_tasks_inferior_data_handle): New static global.
790 (get_ada_tasks_inferior_data): New function.
791 (ada_get_task_number, get_task_number_from_id, valid_task_id)
792 (ada_get_environment_task, iterate_over_live_ada_tasks)
793 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
795 (ada_set_current_inferior_known_tasks_addr): New function.
796 (read_known_tasks, ada_build_task_list, short_task_info)
797 (info_tasks, info_task, info_tasks_command, task_command_1)
798 (task_command, ada_task_list_changed): Adjust.
799 (ada_tasks_invalidate_inferior_data): New function.
800 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
801 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
802 * ada-lang.h (struct inferior): Add declaration.
803 (ada_task_list_changed): Update profile.
804 * remote-wtx-pd.c: #include "inferior.h".
805 (switch_to_pd_internal): Update call to ada_task_list_changed.
807 2011-09-16 Joel Brobecker <brobecker@adacore.com>
809 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
810 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
811 (atcb_fieldno): Delete these static globals.
812 (struct ada_tasks_pspace_data): New struct.
813 (ada_tasks_pspace_data_handle): New static global.
814 (get_ada_tasks_pspace_data): New function.
815 (ada_tasks_invalidate_pspace_data): New function.
816 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
817 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
818 (_initialize_tasks): Create this module's per-progspace
821 2011-09-16 Joel Brobecker <brobecker@adacore.com>
823 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
825 2011-09-16 Tristan Gingold <gingold@adacore.com>
827 * fork-child.c (fork_inferior): Update comment. Use alloca
828 instead of xmalloc for argv. Move len and shell_command
829 declarations in the block where they are used.
830 Only call execvp. Factorize failure code.
832 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
835 * parse.c (write_exp_elt): Change argument to pass a pointer of union
836 `exp_element' instead of an element of the same and make the function
838 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
839 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
840 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
841 Change argument of `write_exp_elt' function call.
842 Remove extra spaces from comments.
843 * parser-defs.h (write_exp_elt): Remove prototype.
845 2011-09-15 Paul Koning <paul_koning@dell.com>
847 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
848 count of item appended to list.
849 * python/py-type.c (typy_fields): Likewise.
851 2011-09-15 Paul Koning <paul_koning@dell.com>
853 * MAINTAINERS (Write After Approval): Add myself to the list.
855 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
858 * linux-fork.c (checkpoint_command): Disallow checkpointing of
859 processes with multiple threads.
860 (inf_has_multiple_thread_cb): New function.
861 (inf_has_multiple_threads): New function.
863 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
865 PR Python/12692 Add gdb.selected_inferior() to Python interface.
866 * python/py-inferior.c (GdbMethods): New Python method definition.
868 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
870 Handle multiple breakpoint hits in Python interface:
871 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
872 variable to breakpoints.
873 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
874 bps instead of single breakpoint. Fix some space typos.
875 * python/py-stopevent.c (create_breakpoint_event_object): Rename
876 variable to breakpoints.
878 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
880 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
881 note if the breakpoint is internal.
883 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
885 * MAINTAINERS (Write After Approval): Add myself to the list
887 2011-09-14 Pedro Alves <pedro@codesourcery.com>
889 * infrun.c (prepare_for_detach, wait_for_inferior)
890 (fetch_inferior_event): Don't flush the register cache.
891 * remote.c (struct stop_reply) <regcache>: Add comment.
893 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
895 Remove excessive DWARF expressions memory duplication.
896 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
898 (indirect_pieced_value): Remove variable result. Remove variable
899 back_to and its use for baton.data.
900 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
902 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
903 Update the function comment.
905 2011-09-13 Pedro Alves <pedro@codesourcery.com>
907 * inferior.h (ALL_INFERIORS): New.
908 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
909 for a stopped thread.
910 (thread_db_find_new_threads): Look for threads in all inferiors.
912 2011-09-13 Pedro Alves <pedro@codesourcery.com>
914 * breakpoint.c (update_watchpoint): Handle the case of the
915 watchpoint to update not being in the breakpoint list yet.
916 (hw_watchpoint_use_count): New, factored out from
917 hw_watchpoint_used_count.
918 (hw_watchpoint_used_count): Rename to ...
919 (hw_watchpoint_used_count_others): ... this. Add `except'
920 parameter. Don't count resources of `except'. Use
921 hw_watchpoint_use_count.
923 2011-09-13 Pedro Alves <pedro@codesourcery.com>
925 * gdbthread.h (enum thread_state): Moved here.
926 (struct thread_info): Rename `executing_' field to `executing' and
928 * thread.c (enum thread_state): Moved to gdbthread.h.
929 (new_thread, add_thread_silent, delete_thread_1)
930 (any_live_thread_of_process, thread_alive, set_running)
931 (set_running, is_thread_state, any_running, is_executing)
932 (set_executing, finish_thread_state, print_thread_info)
933 (do_captured_thread_select): Adjust.
935 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
937 Fix compatibility with gcc < 4.3 and non-gcc compilers.
938 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
940 2011-09-12 Pedro Alves <pedro@codesourcery.com>
941 Matt Rice <ratmice@gmail.com>
945 * interps.c (struct interp) <interpreter_out>: Delete field.
946 (interp_new): Remove the data and uiout parameters and adjust.
947 (interp_set): Only set the current_uiout from the interpreter's
948 uiout after initializing the interpreter. Adjust call to
950 (interp_ui_out): Adjust to call procs->ui_out_proc.
951 (interp_data, interp_name): New.
952 * interps.h (interp_init_ftype): Add `self' parameter.
953 (interp_ui_out_ftype): New typedef.
954 (struct interp_procs) <ui_out_proc>: New method pointer.
955 (interp_new): Remove the data and uiout parameters.
956 (interp_data, interp_name): Declare.
957 * tui/tui-interp.c (tui_init): Adjust prototype.
959 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
960 tui_out here. Adjust call to interp_new.
961 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
962 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
964 (_initialize_cli_interp): Install it. Adjust call to interp_new.
965 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
966 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
967 Initialize mi->uiout depending on the mi_version as extracted from
968 the interpreter's name.
970 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
971 interp_new. Don't allocate the ui_out's of the interpreters here.
973 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
975 * solib.c (solib_used): New function.
976 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
977 by another so_list object before freeing it.
979 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
982 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
985 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
988 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
989 (amd64_skip_xmm_prologue): ... this new function. Describe its
990 parameters. No longer use amd64_prologue_line_bug.
991 * defs.h (producer_is_gcc_ge_4): New declaration.
992 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
993 (process_full_comp_unit): Update its caller. Remove
994 amd64_prologue_line_bug initialization.
995 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
996 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
998 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1000 * linux-nat.h (enum resume_kind): New.
1001 (struct lwp_info) <last_resume_kind>: New field.
1002 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1003 resume_stop on the new lwp.
1004 (add_lwp): Set last_resume_kind as resume_continue by default.
1005 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1006 (resume_lwp): New, factored out from resume_callback. Also check
1007 for pending status in lp->waitstatus.
1008 (resume_callback): Reimplement.
1009 (resume_clear_callback): Set last_resume_kind as resume_stop.
1010 (resume_set_callback): Set last_resume_kind as resume_continue.
1011 (linux_nat_resume, linux_handle_extended_wait): Set
1013 (running_callback): Also check lp->waitstatus for pending events.
1014 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1016 (stop_and_resume_callback): Don't re-resume if the core wanted the
1017 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1018 using an invalidated pointer.
1019 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1020 SIGSTOPs if the core wanted the LWP to stop.
1021 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1022 wanted the lwp to stop. If the core wanted the lwp to stop, and
1023 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1024 of TARGET_SIGNAL_STOP.
1025 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1026 here. Instead, signal the lwp, and set the last_resume_kind to
1029 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1031 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1032 -1 (error), if the lwp exits right after attaching.
1034 2011-09-08 Doug Evans <dje@google.com>
1036 * py-cmd.c: Some minor formatting fixes.
1037 (gdbpy_parse_command_name): Rename text arg to name, make const.
1038 All callers updated.
1039 * python-internal.h (gdbpy_parse_command_name): Update.
1041 * cli/cli-decode.c (add_cmd): Add comment.
1043 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1045 PR breakpoints/12435
1046 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1047 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1048 * dwarf2read.c (process_full_comp_unit): Initialize
1049 amd64_prologue_line_bug.
1050 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1052 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1054 Fix TUI screen corruption.
1055 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1058 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1060 * findvar.c (read_var_value): Never return NULL, throw an error
1061 instead. Update the function comment. State symbol name in the error
1063 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1065 * stack.c (print_frame_args): Likewise.
1066 * valops.c (value_of_variable): Likewise.
1068 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1070 * stack.c (print_frame_args): New variable except. Wrap
1071 read_var_value and common_val_print into TRY_CATCH.
1073 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1076 caller to value_of_this.
1077 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1079 * valops.c (value_of_this): Remove parameter complain and variable ret.
1080 Update function comment. Never return NULL by this code.
1081 (value_of_this_silent): New function.
1082 * value.h (value_of_this): Remove parameter complain.
1083 (value_of_this_silent): New declaration.
1085 2011-09-07 Yao Qi <yao@codesourcery.com>
1087 * gdbthread.h (struct thread_info): Remove fields
1088 `stepping_through_solib_after_catch' and
1089 `stepping_through_solib_catchpoints'.
1090 * infrun.c (init_thread_stepping_state): Update.
1091 (process_event_stop_test, currently_stepping): Update.
1092 (currently_stepping_or_nexting_callback): Update.
1094 2011-09-07 Yao Qi <yao@codesourcery.com>
1096 * gdbthread.h (struct thread_info): Comment on field
1097 `step_after_step_resume_breakpoint'.
1099 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1101 * remote.c (remote_console_output): Reindent.
1103 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1105 * frame.c (has_stack_frames): Check for currently selected
1108 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1110 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1111 (set_async_annotation_level, set_async_prompt, pop_prompt)
1112 (push_prompt, new_async_prompt): Delete declarations.
1113 * top.h (get_prompt, set_prompt): Change prototype.
1114 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1116 * top.c (command_loop):
1117 (top_prompt): New global.
1118 (get_prefix, set_prefix, get_suffix, ): Delete.
1119 (get_prompt, set_prompt): Rewrite.
1120 (show_new_async_prompt): Rename to ...
1121 (show_prompt): ... this.
1122 (init_main): Adjust. Don't handle --annotate=2 here.
1123 * event-top.c (new_async_prompt): Delete.
1124 (the_prompts): Delete.
1125 (more_to_come): Make static.
1126 (display_gdb_prompt): Use top_level_prompt() to compute the top
1127 level prompt, and don't notify the before_prompt observers
1128 directly here. Always trick readline into not trying to display
1129 the prompt if sync_execution and displaying the primary prompt.
1130 If displaying a local/secondary prompt, always show it, even if
1131 sync_execution is set.
1132 (change_annotation_level): Delete.
1133 (top_level_prompt): New, based on change_annotation_level.
1134 (push_prompt, pop_prompt): Delete.
1135 (async_disable_stdin): No longer pushes prompt.
1136 (command_line_handler): No longer pushes or pops prompt. If more
1137 input is expected, call display_gdb_prompt with an explicit empty
1139 (async_stop_sig): Adjust.
1140 (set_async_annotation_level, set_async_prompt): Delete.
1141 * python/python.c (before_prompt_hook): Adjust.
1143 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1147 * infrun.c (fetch_inferior_event): Check if there's a selected
1148 thread before checking if the selected thread is executing.
1150 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1152 * inf-loop.c (execute_command): Don't check if the current thread
1153 if running before synchronously waiting for command completion.
1154 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1156 (normal_stop): Call async_enable_stdin here.
1157 * inf-loop.c (inferior_event_handler): Don't call
1158 async_enable_stdin, nor handle "set exec-done-display" here.
1160 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1164 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1166 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1168 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1170 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1172 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1174 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1176 2011-09-02 Matt Rice <ratmice@gmail.com>
1179 * event-top.c (cli_command_loop): Replace readline setup with
1180 direct call to display_gdb_prompt.
1181 (display_gdb_prompt): Do not call observer mechanism during
1182 synchronous execution.
1184 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1186 * linux-nat.c (in_pid_list_p): New.
1187 (linux_record_stopped_pid): Delete.
1188 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1189 already attached to the LWP. Return an indication if so.
1190 (linux_nat_filter_event): Adjust.
1191 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1192 returning an indication to ignore this thread.
1194 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1196 * top.c: Include interps.h.
1197 (execute_command): If the target can async, but the interpreter is
1198 in sync mode, synchronously wait for the command to finish before
1200 (execute_command_to_string): Force the interpreter to sync mode.
1201 * infrun.c: Include interps.h.
1202 (fetch_inferior_event): Don't restore the prompt yet if the
1203 interpreter is in sync mode.
1204 * interps.c (interpreter_async): New global.
1205 * interps.h (interpreter_async): Declare.
1206 * inf-loop.c: Include interps.h.
1207 (inferior_event_handler): Don't print the language change or run
1208 breakpoint commands yet if the interpreter in is sync mode.
1209 * main.c (captured_command_loop): Flip the interpreter to async
1211 * cli/cli-script.c: Include interps.h.
1212 (execute_user_command, while_command, if_command): Force the
1213 interpreter to sync mode.
1214 * python/python.c: Include interps.h.
1215 (python_command, execute_gdb_command): Force the interpreter to
1218 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1220 * value.c (show_convenience): Catch errors thrown while printing
1221 each internal variable.
1222 * infrun.c (validate_siginfo_access): New function.
1223 (siginfo_value_read, siginfo_value_write): Call it.
1225 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1228 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1229 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1232 2011-08-29 Yao Qi <yao@codesourcery.com>
1234 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1236 (enable_break2): Update caller.
1237 * solib-frv.c (bfd_lookup_symbol): Removed.
1239 (enable_break2): Update caller.
1240 * solib-pa64.c (bfd_lookup_symbol): Removed.
1242 * solib-svr4.c (bfd_lookup_symbol): Removed.
1243 (cmp_name_and_sec_flags): New.
1244 (enable_break): Update caller.
1245 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1246 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1247 (gdb_bfd_lookup_symbol): New.
1248 * solib.h: Functions declarations.
1250 2011-08-29 Yao Qi <yao@codesourcery.com>
1252 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1255 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1257 Fix TUI stepi on code without symbols.
1258 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1261 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1264 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1265 and the static keyword.
1266 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1267 Make prefix an array.
1268 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1269 * mi/mi-main.c (get_register): Remove stb initialization and the static
1272 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1274 Code cleanup - make mi_opt const.
1275 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1277 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1278 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1279 (mi_cmd_env_dir): Likewise.
1280 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1281 (mi_cmd_target_file_put): Likewise.
1282 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1283 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1284 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1285 (mi_valid_noargs): Make opts const.
1286 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1287 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1288 (mi_cmd_data_read_memory): Likewise.
1289 (mi_cmd_data_read_memory_bytes): Likewise.
1290 (mi_cmd_data_write_memory): Likewise.
1292 2011-08-26 Matt Rice <ratmice@gmail.com>
1294 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1295 bcache_xmalloc, replace bcache_xmalloc with call to
1296 psymbol_bcache_init for psymbol_cache.
1297 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1299 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1301 * inf-loop.c (inferior_event_handler): Add exception_print in
1304 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1306 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1307 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1308 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1309 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1310 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1311 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1312 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1313 * infrun.c (fetch_inferior_event): Call
1314 make_bpstat_clear_actions_cleanup.
1315 * top.c (execute_command): New variable cleanup_if_error, call
1316 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1317 * utils.c (do_bpstat_clear_actions_cleanup)
1318 (make_bpstat_clear_actions_cleanup): New functions.
1320 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1322 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1323 either the parent or the child forks. Rename a couple locals.
1325 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1327 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1328 library call. Avoid reading the `status' local if all waitpid
1331 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1333 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1334 opening /proc/PID/task always succeeds.
1336 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1338 * linespec.c (symtab_from_filename): Check for the end of string.
1340 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1343 * varobj.c (cplus_describe_child): Add the keyword
1344 'class' to the output of the method when dealing
1345 with a cast to a base class.
1347 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 No functionality change.
1350 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1351 function comment a reference, new variables tp and bs, move here code
1352 from throw_exception.
1353 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1354 describe it in the comment.
1355 * exceptions.c (throw_exception): Remove variable tp, move the code for
1356 bpstat_clear_actions to bpstat_clear_actions.
1358 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
1360 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1361 * linux-nat.c: Include linux-procfs.h.
1362 (linux_proc_get_tgid): Move to ...
1363 * common/linux-procfs.c: ... here. New file.
1364 * common/linux-procfs.h: New file.
1365 * linux-thread-db.c: Include linux-procfs.h.
1366 * Makefile.in: Update dependencies.
1367 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1368 * config/arm/linux.mh: Likewise.
1369 * config/i386/linux.mh: Likewise.
1370 * config/i386/linux64.mh: Likewise.
1371 * config/ia64/linux.mh: Likewise.
1372 * config/m32r/linux.mh: Likewise.
1373 * config/m68k/linux.mh: Likewise.
1374 * config/mips/linux.mh: Likewise.
1375 * config/pa/linux.mh: Likewise.
1376 * config/pa/linux.mh: Likewise.
1377 * config/powerpc/linux.mh: Likewise.
1378 * config/powerpc/ppc64-linux.mh: Likewise.
1379 * config/powerpc/spu-linux.mh: Likewise.
1380 * config/sparc/linux.mh: Likewise.
1381 * config/sparc/linux64.mh: Likewise.
1382 * config/xtensa/linux.mh: Likewise.
1384 2011-08-24 Hui Zhu <teawater@gmail.com>
1386 * tracepoint.c (cond_string_is_same): New function.
1387 (find_matching_tracepoint): Add condition check
1388 by cond_string_is_same.
1390 2011-08-23 Josh Matthews <josh@joshmatthews.net>
1392 Fix build error in Darwin port.
1393 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
1395 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1398 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
1399 (command_line_is_silent): New function.
1400 (bpstat_do_actions_1): No longer use commands_left, use
1401 command_line_is_silent for commands.
1402 (bpstat_alloc): Remove clearing of commands_left.
1403 (bpstat_stop_status): Remove initialization of commands_left, use
1404 command_line_is_silent.
1405 * breakpoint.h (struct bpstats): Remove commands_left.
1407 2011-08-18 Keith Seitz <keiths@redhat.com>
1410 * cp-name-parser.y (struct demangle_info): Remove unused
1413 (allocate_info): Change return type to struct demangle_info *.
1414 Always allocate a new demangle_info.
1415 Remove unused PREV pointer.
1416 (cp_new_demangle_parse_info): New function.
1417 (cp_demangled_name_parse_free): New function.
1418 (do_demangled_name_parse_free_cleanup): New function.
1419 (make_cleanup_cp_demangled_name_parse_free): New function.
1420 (cp_demangled_name_to_comp): Change return type to
1421 struct demangle_parse_info *.
1422 Allocate a new storage for each call.
1423 (main): Update usage for cp_demangled_name_to_comp
1425 * cp-support.h (struct demangle_parse_info): New structure.
1426 (cp_demangled_name_to_comp): Update API change for
1428 (cp_new_demangle_parse_info): Declare.
1429 (make_cleanup_cp_demangled_name_parse_free): New declaration.
1430 (cp_demangled_name_parse_free): Declare.
1431 * cp-support.c (cp_canonicalize_string): Update API
1432 change for cp_demangled_name_to_comp.
1433 (mangled_name_to_comp): Likewise.
1434 Return struct demangle_parse_info, too.
1435 (cp_class_name_from_physname): Update mangled_name_to_comp
1437 (method_name_from_physname): Likewise.
1438 (cp_func_name): Update API change for cp_demangled_name_to_comp.
1439 (cp_remove_params): Likewise.
1440 * python/py-type.c (typy_legacy_template_argument): Likewise.
1442 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
1443 (cp_merge_demangle_parse_infos): Declare.
1444 * cp-support.c (ignore_typedefs): New file global.
1445 (copy_string_to_obstack): New function.
1446 (inspect_type): New function.
1447 (replace_typedefs): New function.
1448 (replace_typedefs_qualified_name): New function.
1449 (cp_canonicalize_string_no_typedefs): New function.
1450 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
1451 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
1452 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
1453 instead of cp_canonicalize_string.
1454 (find_method): Likewise.
1455 (decode_compound): Before looking up the name, call
1456 cp_canonicalize_string_no_typedefs.
1457 (decode_variable): Likewise.
1459 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
1460 Tom Tromey <tromey@redhat.com>
1461 Matt Rice <ratmice@gmail.com>
1463 * python/lib/gdb/prompt.py: New file.
1464 * python/lib/gdb/command/prompt.py: New file.
1465 * NEWS: Document set extended-prompt and gdb.prompt library
1467 2011-08-16 Yao Qi <yao@codesourcery.com>
1469 * tic6x-linux-tdep.c: Move const arrays definition from here...
1470 * tic6x-tdep.c: to here ...
1472 2011-08-14 Yao Qi <yao@codesourcery.com>
1474 * NEWS: New port to Texas Instruments TMS320C6x.
1476 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
1477 Bernd Schmidt <bernds@codesourcery.com>
1478 Yao Qi <yao@codesourcery.com>
1480 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
1481 * solib-dsbt.c: New file. Support DSBT shared object.
1482 * tic6x-linux-tdep.c: New file.
1483 * tic6x-tdep.c: New file.
1484 * tic6x-tdep.h: New file.
1486 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
1487 Yao Qi <yao@codesourcery.com>
1489 * remote.c (PACKET_qXfer_fdpic): New enum value.
1490 (remote_protocol_features): Add qXfer:fdpic:read packet.
1491 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
1492 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
1493 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
1495 2011-08-14 Yao Qi <yao@codesourcery.com>
1497 Target description for tic6x.
1498 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
1499 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
1500 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
1501 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
1502 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
1503 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
1504 * features/tic6x-c64xp-linux.xml: New.
1505 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
1506 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
1507 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
1508 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
1509 * regformats/tic6x-c64xp.dat,
1510 regformats/tic6x-c62x-linux.dat: Generated.
1511 * regformats/tic6x-c64x-linux.dat,
1512 regformats/tic6x-c64xp-linux.dat: Generated.
1513 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
1514 features/tic6x-*.c files.
1515 Add regformats/tic6x-*.dat files.
1517 2011-08-12 Doug Evans <dje@google.com>
1519 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
1520 * python/py-symbol.c (sympy_get_type): New function.
1521 (symbol_object_getset): Add "type".
1523 2011-08-12 Pedro Alves <pedro@codesourcery.com>
1527 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
1529 (tui_show_register_group): Don't store a byte buffer in the data
1531 (tui_register_format): Skip registers with an empty name.
1532 (tui_get_register): Store a struct value in the data element's
1533 value field instead of a byte buffer holding the raw register
1534 contents. Account for optimized-out and unavailable registers
1535 when comparing register contents.
1537 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1539 * printcmd.c (current_display_number): Update comment.
1540 (disable_current_display_cleanup): Delete.
1541 (do_one_display): Use make_cleanup_restore_integer. Gracefully
1542 catch errors thrown while evaluating and printing the display.
1544 2011-08-09 Tom Tromey <tromey@redhat.com>
1546 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
1548 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1550 * elfread.c (elf_symtab_read): Rework comments.
1551 * maint.c (maintenance_command): Ditto.
1552 * somread.c (som_symtab_read): Ditto.
1553 * solib.c (solib_find, solib_map_sections, update_solib_list)
1554 (solib_add, info_sharedlibrary_command, solib_name_from_address)
1555 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1556 (sharedlibrary_command, no_shared_libraries): Ditto.
1557 * solib-irix.c (locate_base, disable_break, enable_break)
1558 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1559 (irix_current_sos, irix_open_symbol_file_object)
1560 (irix_special_symbol_handling): Ditto.
1561 * solib-sunos.c (locate_base, first_link_map_member)
1562 (sunos_current_sos, disable_break, enable_break)
1563 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1565 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1566 (open_symbol_file_object, svr4_current_sos, enable_break)
1567 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1569 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1570 (frv_current_sos, enable_break, frv_special_symbol_handling)
1571 (frv_solib_create_inferior_hook): Ditto.
1572 * solist.h (struct target_so_ops): Extend the comments of the
1573 special_symbol_handling, current_sos and open_symbol_file_object
1576 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
1578 * python/lib/gdb/__init__.py: Auto-load files in command and
1579 function directories.
1580 * python/python.c (finish_python_initialization): Use
1582 * python/lib/gdb/command/pretty_printers.py: Self register
1584 * NEWS: Document auto-loading.
1586 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1589 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1590 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
1592 2011-08-08 Tom Tromey <tromey@redhat.com>
1594 * breakpoint.c (clean_up_filters): Remove.
1595 (catch_syscall_split_args): Use VEC_cleanup.
1597 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1599 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1600 (main): Uncomment "Demangling error\n".
1602 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1604 * solib-target.c (segment_attributes): Make them static.
1605 (section_attributes, library_children, library_attributes): Likewise.
1606 (library_list_children, library_list_attributes): Likesise.
1607 (library_list_elements): Likewise.
1609 2011-08-05 Pedro Alves <pedro@codesourcery.com>
1611 * exceptions.c (throw_exception): Don't disable the current
1613 * printcmd.c (disable_current_display_cleanup): New function.
1614 (do_one_display): Install a cleanup to disable the current display
1615 if doing the display throws.
1617 2011-08-05 Eli Zaretskii <eliz@gnu.org>
1619 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1620 initialization of the tp_new member to the corresponding
1621 gdbpy_initialize_* function.
1622 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1623 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1624 * python/py-function.c (gdbpy_initialize_functions): Likewise.
1625 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1626 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1628 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1630 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1631 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1632 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1633 references to current_uiout.
1635 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1637 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1638 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1639 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1640 * top.c (gdb_readline_wrapper): Adjust.
1641 * tui/tui-interp.c (tui_command_loop):
1642 (_initialize_tui_interp): Don't install it.
1644 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1646 * ui-out.h (uiout): Rename to ...
1647 (current_uiout): ... this.
1648 * ui-out.c (uiout): Rename to ...
1649 (current_uiout): ... this.
1650 * ada-lang.c (print_it_exception, print_one_exception)
1651 (print_mention_exception): Adjust.
1652 * breakpoint.c (watchpoint_check): Adjust.
1653 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1654 (default_collect_info, watchpoints_info, print_one_catch_fork)
1655 (print_one_catch_vfork, print_one_catch_syscall)
1656 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1657 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1658 (print_it_watchpoint, print_mention_watchpoint)
1659 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1660 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1661 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1662 (bkpt_print_mention, momentary_bkpt_print_it)
1663 (tracepoint_print_mention, update_static_tracepoint)
1664 (tracepoints_info, save_breakpoints): Adjust.
1665 * cli-out.c (field_separator): Adjust.
1666 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1667 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1668 * frame.c (get_current_frame): Adjust.
1669 * infcmd.c (run_command_1, print_return_value): Adjust.
1670 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1671 * infrun.c (print_end_stepping_range_reason): Adjust.
1672 (print_signal_exited_reason, print_exited_reason): Adjust.
1673 (print_signal_received_reason, print_no_history_reason): Adjust.
1674 * interps.c (interp_set): Adjust.
1675 * osdata.c (info_osdata_command): Adjust.
1676 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1677 * remote-fileio.c (remote_fileio_request): Adjust.
1678 * remote.c (show_remote_cmd): Adjust.
1679 * solib.c (info_sharedlibrary_command): Adjust.
1680 * source.c (print_source_lines_base): Adjust.
1681 * stack.c (print_stack_frame): Adjust.
1682 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1683 * symfile-mem.c (add_vsyscall_page): Adjust.
1684 * symfile.c (load_progress, generic_load)
1685 (print_transfer_performance): Adjust.
1686 * thread.c (info_threads_command, restore_selected_frame)
1687 (thread_command): Adjust.
1688 * top.c (make_cleanup_restore_ui_file): Adjust.
1689 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1690 (print_one_static_tracepoint_marker): Adjust.
1691 * cli/cli-cmds.c (print_disassembly): Adjust.
1692 * cli/cli-decode.c (print_doc_line): Adjust.
1693 * cli/cli-interp.c (safe_execute_command): Adjust.
1694 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1695 (handle_redirections): Adjust.
1696 * cli/cli-script.c (show_user_1): Adjust.
1697 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1698 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1699 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1700 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1701 (mi_cmd_env_dir): Adjust.
1702 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1703 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1704 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1705 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1706 (list_args_or_locals): Adjust.
1707 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1708 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1709 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1710 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1711 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1712 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1713 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1714 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1715 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1716 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1717 (list_available_thread_groups, mi_cmd_list_thread_groups)
1718 (mi_cmd_data_list_register_names)
1719 (mi_cmd_data_list_changed_registers)
1720 (mi_cmd_data_list_register_values, get_register)
1721 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1722 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1723 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1724 (mi_execute_command, mi_load_progress): Adjust.
1725 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1726 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1728 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1729 * tui/tui-interp.c (tui_command_loop): Adjust.
1730 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1732 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1734 * exceptions.c (struct catcher): Remove saved_uiout field.
1735 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1736 no longer save/resvore the global ui_out builder.
1737 (catch_exceptions_with_msg): Save/override/restore the global
1738 ui_out builder manually instead of relying on TRY_CATCH to do it.
1739 (catch_errors): Save/restore the global ui_out builder manually
1740 instead of relying on TRY_CATCH to do it.
1741 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1743 (TRY_CATCH): Adjust.
1744 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1745 the global ui_out builder manually instead of relying on TRY_CATCH
1748 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1750 * breakpoint.c (update_global_location_list): Ensure
1751 invariant 'first loc marked not duplicated and inserted,
1752 following locs marked duplicated/not inserted' is respected
1753 for multiple locations at the same address.
1754 (unduplicated_should_be_inserted) New function.
1755 (swap_insertion) New function.
1757 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1759 * stack.c (print_frame_arguments_choices): Comment typo fix.
1761 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1764 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1765 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1766 argument. Update callers.
1768 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1771 * doublest.c (convert_doublest_to_floatformat): Pass correct
1772 mantissa length to put_field.
1774 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1777 exception_print code path.
1778 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1779 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1780 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1782 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1785 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1786 Remove, merge them into ...
1787 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1788 variable args and its initialization.
1789 (struct print_args_args, print_args_stub): Remove, merge them into
1791 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1793 (do_gdb_disassembly): ... here. Remove variable args and its
1795 (print_frame): Remove variable args and its initialization, new
1796 variable gdbarch and numargs (from print_args_stub), inline here
1797 print_args_stub with a TRY_CATCH.
1798 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1800 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1801 New variable e, remove variable btargs and its initialization.
1803 2011-08-01 Tristan Gingold <gingold@adacore.com>
1805 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1807 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1809 * breakpoint.c (insert_bp_location): Document return value.
1810 (insert_breakpoint_locations): Fix documentation.
1811 (remove_breakpoints): Add documentation.
1813 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1815 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1816 argument. Update callers.
1818 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1820 * stack.c (print_frame_info): Comment typo fix.
1822 2011-07-29 Sterling Augustine <saugustine@google.com>
1824 * MAINTAINERS (Write After Approval): Add myself to the list.
1826 2011-07-29 Tom Tromey <tromey@redhat.com>
1828 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1829 (library_list_start_segment): Update.
1830 (library_list_start_section): Update.
1832 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1834 * varobj.c (value_get_print_value): Move hint check later into the
1835 function. Comment function. Free thevalue before reusing it.
1837 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1838 Pedro Alves <pedro@codesourcery.com>
1840 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1842 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1843 Assert the result kind.
1844 * value.h (value_one): Remove parameter lv.
1846 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1848 Fix crash on lval_computed values.
1849 * valops.c (value_zero): Use not_lval for lval_computed.
1851 2011-07-27 Tom Tromey <tromey@redhat.com>
1853 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1854 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1856 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1858 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1859 "ptype" by their typedefs difference.
1861 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * dwarf2expr.c (ctx_no_read_reg): New function.
1864 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1865 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1866 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1867 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1869 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1871 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1872 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1874 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1875 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1876 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1877 (ctx_no_get_base_type): Move the functions here.
1878 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1879 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1880 (ctx_no_get_base_type): New declarations.
1882 2011-07-27 Tom Tromey <tromey@redhat.com>
1884 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1886 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1887 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1889 2011-07-26 Sterling Augustine <saugustine@google.com>
1891 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1893 (dump_bfd_file): Likewise.
1895 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1897 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1898 (remote_hw_watchpoint_length_limit): New variable.
1899 (_initialize_remote) add set,show cmds for this new variable.
1900 * gdb.texinfo: document these new commands.
1901 * NEWS: Mention these new commands.
1903 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1905 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1906 true for software watchpoints.
1908 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1912 2011-07-26 Tom Tromey <tromey@redhat.com>
1914 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1915 * dwarf2read.c (read_indirect_string_at_offset): New function.
1916 (read_indirect_string): Use it.
1917 (dwarf_decode_macro_bytes): New function, taken from
1918 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1919 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1920 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1922 (struct dwarf2_per_objfile) <macro>: New field.
1923 (dwarf2_elf_names): Add .debug_macro.
1924 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1925 (dwarf2_locate_sections): Handle new section.
1926 (read_file_scope): Handle DW_AT_GNU_macros.
1927 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1929 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1931 * NEWS: Mention dcache configuration.
1932 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1933 (dcache_size, dcache_line_size): New variables.
1934 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1935 (struct dcache_block): Make it expandable.
1936 (struct dcache_struct): New field.
1937 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1938 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1939 (dcache_poke_byte, dcache_print_line): Adjust.
1940 (set_dcache_size, set_dcache_line_size): New functions.
1941 (set_dcache_command, show_dcache_command): New functions.
1942 (_initialize_dcache): Add new commands.
1944 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1946 * progspace.h (struct program_space): Add solib_add_generation.
1947 * infcmd.c (post_create_inferior): Only call solib_add if not
1949 * solib.c (solib_add): Increment solib_add_generation.
1951 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 Fix implicit pointer offsets.
1954 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1957 2011-07-25 Tom Tromey <tromey@redhat.com>
1959 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1961 (ada_exception_sal): Make 'ops' const.
1962 (ada_decode_exception_location): Likewise.
1963 (ada_decode_assert_location): Likewise.
1964 (catch_assert_command): Update.
1965 (catch_ada_exception_command): Update.
1966 (create_ada_exception_catchpoint): Make 'ops' const.
1967 * breakpoint.c (set_raw_breakpoint_without_location)
1968 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1970 (create_internal_breakpoint): Update.
1971 (init_raw_breakpoint_without_location): Make 'ops' const.
1972 (init_raw_breakpoint, init_catchpoint)
1973 (create_fork_vfork_event_catchpoint)
1974 (create_syscall_event_catchpoint, init_breakpoint_sal)
1975 (create_breakpoint_sal, create_breakpoints_sal)
1976 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1977 * breakpoint.h (struct breakpoint) <ops>: Now const.
1978 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1981 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1983 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1985 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1987 * breakpoint.h (print_recreate_thread): Declare.
1988 (struct breakpoint): Move step_count, pass_count,
1989 number_on_target, static_trace_marker_id,
1990 static_trace_marker_id_idx ...
1991 (struct tracepoint): ... to this new struct.
1992 (get_tracepoint, get_tracepoint_by_number_on_target)
1993 (get_tracepoint_by_number): Change return type to struct
1995 * breakpoint.c (is_tracepoint_type): New, factored out from
1997 (is_tracepoint): Adjust.
1998 (print_one_breakpoint_location): Cast to struct tracepoint as
1999 necessary, and adjust.
2000 (print_recreate_catch_fork, print_recreate_catch_vfork)
2001 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2002 print_recreate_thread.
2003 (init_breakpoint_sal): New, factored out from
2004 create_breakpoint_sal.
2005 (create_breakpoint_sal): Reimplement.
2006 (create_breakpoint): Allocate a struct tracecepoint if the caller
2007 wanted a tracepoint. Use init_breakpoint_sal and
2009 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2010 (print_recreate_masked_watchpoint)
2011 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2012 (tracepoint_print_one_detail): Adjust.
2013 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2014 Dump the pass count here.
2015 (update_static_tracepoint): Adjust.
2016 (addr_string_to_sals): Adjust.
2017 (create_tracepoint_from_upload): Adjust. Change return type to
2018 struct tracepoint pointer.
2019 (trace_pass_set_count): Change parameter type to struct tracepoint
2020 pointer, and adjust.
2021 (trace_pass_command): Adjust.
2022 (get_tracepoint, get_tracepoint_by_number_on_target)
2023 (get_tracepoint_by_number): Change return type to struct
2024 tracepoint pointer, and adjust.
2025 (print_recreate_thread): New, factored out from save_breakpoints.
2026 (save_breakpoints): Don't print thread and task and passcount
2028 * remote.c (remote_download_tracepoint): Adjust.
2029 * tracepoint.c (trace_actions_command, validate_actionline)
2030 (start_tracing, tfind_1, trace_find_tracepoint_command)
2031 (trace_dump_command): Adjust.
2032 (find_matching_tracepoint): Change return type to struct
2033 tracepoint pointer, and adjust.
2034 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2035 (tfile_trace_find, tfile_fetch_registers): Adjust.
2036 * tracepoint.h (create_tracepoint_from_upload): Change return type
2037 to struct tracepoint pointer.
2038 * ada-lang.c (print_recreate_exception): Call
2039 print_recreate_thread.
2040 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2042 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2044 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2045 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2046 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2047 watchpoint_thread, watchpoint_triggered ...
2048 (struct watchpoint): ... to this new struct.
2049 (is_watchpoint): Declare.
2050 (install_breakpoint): Add new `internal' parameter.
2051 * breakpoint.c (is_watchpoint): Delete declaration.
2052 (set_breakpoint_condition): Handle watchpoints.
2053 (is_watchpoint): Make public.
2054 (watchpoint_in_thread_scope): Change parameter type to struct
2056 (watchpoint_del_at_next_stop): Change parameter type to struct
2057 watchpoint. Remove assertion. Adjust.
2058 (update_watchpoint): Ditto.
2059 (insert_breakpoints, breakpoint_init_inferior)
2060 (watchpoints_triggered, watchpoint_check)
2061 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2062 (bpstat_stop_status, print_one_breakpoint_location)
2063 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2064 to struct watchpoint as necessary, and adjust.
2065 (install_breakpoint): Add `internal' argument. If true, don't
2066 mention the new breakpoint. Use set_breakpoint_number.
2067 (create_fork_vfork_event_catchpoint)
2068 (create_syscall_event_catchpoint): Adjust.
2069 (dtor_watchpoint): New.
2070 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2071 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2072 (print_it_watchpoint, print_mention_watchpoint)
2073 (print_recreate_watchpoint, insert_masked_watchpoint)
2074 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2075 (print_one_detail_masked_watchpoint)
2076 (print_mention_masked_watchpoint)
2077 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2078 necessary, and adjust.
2079 (watch_command_1): Allocate and initialize a struct watchpoint
2080 instead of a struct breakpoint. Use install_breakpoint.
2081 (catch_exec_command_1): Adjust.
2082 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2084 (delete_breakpoint, enable_breakpoint_disp)
2085 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2086 as necessary, and adjust.
2087 (initialize_breakpoint_ops): Install dtor_watchpoint as
2088 watchpoints' dtor method.
2089 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2090 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2091 to struct watchpoint as necessary, and adjust.
2093 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2095 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2096 the the base class ops table.
2097 (catch_exception_breakpoint_ops)
2098 (catch_exception_unhandled_breakpoint_ops)
2099 (catch_assert_breakpoint_ops): Don't statically initialize.
2100 (initialize_ada_catchpoint_ops): New.
2101 (_initialize_ada_language): Call it.
2102 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2103 (bkpt_breakpoint_ops): Forward declare.
2104 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2105 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2106 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2107 (masked_watchpoint_breakpoint_ops)
2108 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2109 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2110 base class ops table.
2111 (null_re_set, null_check_status, null_works_in_software_mode)
2112 (null_resources_needed, null_print_one_detail): Delete.
2113 (bkpt_dtor): Rename to ...
2114 (base_breakpoint_dtor): ... this. Make static.
2115 (bkpt_allocate_location): Rename to ...
2116 (base_breakpoint_allocate_location): ... this. Make static.
2117 (base_breakpoint_re_set): New.
2118 (internal_error_pure_virtual_called): New.
2119 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2120 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2121 (base_breakpoint_works_in_software_mode)
2122 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2123 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2124 (base_breakpoint_print_recreate): New functions.
2125 (base_breakpoint_ops): New global.
2126 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2127 (bkpt_breakpoint_hit): Make static.
2128 (bkpt_check_status): Delete.
2129 (bkpt_resources_needed): Make static.
2130 (bkpt_works_in_software_mode): Delete.
2131 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2133 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2134 (momentary_breakpoint_ops): Don't statically initialize.
2135 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2137 (tracepoint_insert_location, tracepoint_remove_location)
2138 (tracepoint_check_status, tracepoint_works_in_software_mode)
2139 (tracepoint_print_it): Delete.
2140 (tracepoint_breakpoint_ops): Don't statically initialize.
2141 (initialize_breakpoint_ops): New.
2142 (_initialize_breakpoint): Call it.
2143 * breakpoint.h (null_re_set, null_works_in_software_mode)
2144 (null_resources_needed, null_check_status, null_print_one_detail):
2145 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2146 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2147 (bkpt_check_status, bkpt_resources_needed)
2148 (bkpt_works_in_software_mode, bkpt_print_it)
2149 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2150 Delete declarations.
2151 (initialize_breakpoint_ops): Declare.
2153 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2155 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2156 (momentary_bkpt_print_it): Simplify.
2158 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2160 Split internal, momentary and user breakpoints breakpoint_ops
2163 * breakpoint.c (internal_breakpoint_ops)
2164 (momentary_breakpoint_ops): Forward declare.
2165 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2166 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2167 (create_overlay_event_breakpoint)
2168 (create_std_terminate_master_breakpoint)
2169 (create_exception_master_breakpoint): Create breakpoints with
2170 internal_breakpoint_ops vtable.
2171 (set_longjmp_breakpoint): Create momentary breakpoints with
2172 momentary_breakpoint_ops vtable, using
2173 momentary_breakpoint_from_master.
2174 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2175 (create_solib_event_breakpoint): Create breakpoints with
2176 internal_breakpoint_ops vtable.
2177 (set_momentary_breakpoint): Create breakpoints with
2178 momentary_breakpoint_ops vtable.
2179 (momentary_breakpoint_from_master): New, factored out from
2180 clone_momentary_breakpoint.
2181 (clone_momentary_breakpoint): Adjust.
2182 (watch_command_1): Create scope breakpoints with
2183 momentary_breakpoint_ops vtable.
2184 (bkpt_re_set): Remove handling of internal and momentary
2186 (bkpt_print_mention, bkpt_print_recreate): New.
2187 (bkpt_breakpoint_ops): Adjust.
2188 (internal_bkpt_re_set, internal_bkpt_check_status)
2189 (internal_bkpt_print_it, internal_bkpt_print_mention)
2190 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2191 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2192 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2193 (momentary_bkpt_print_recreate): New.
2194 (momentary_breakpoint_ops): New.
2196 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2198 Implement most breakpoint_ops methods for all breakpoint types,
2199 and move the default handlings to the proper callbacks.
2201 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2202 works_in_software_mode method.
2203 (insert_bp_location): Go through breakpoint_ops->insert_location
2204 for software and hardware watchpoints.
2205 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2207 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2208 for software and hardware watchpoints.
2209 (print_it_typical): Delete.
2210 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2212 (watchpoint_check): Adjust comment.
2213 (bpstat_check_location): Simply always call the breakpoint's
2214 breakpoint_hit method.
2215 (bpstat_stop_status): Always call the breakpoint's check_status
2216 method. Remove special cases for watchpoints and internal event
2217 breakpoints from here (moved to the check_status implementations).
2218 (print_one_breakpoint_location): Assume b->ops is never NULL.
2219 Remove static tracepoint marker id printing from here (moved to
2220 the print_one_detail callback implementation of tracepoints).
2221 (init_bp_location): Assert OPS is never NULL.
2222 (allocate_bp_location): Always call the breakpoint's
2223 allocate_location method, and remove the default code from here.
2224 (free_bp_location): Always call the location's dtor method, and
2225 remove the default code from here.
2226 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2227 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2228 parameter. Pass it down.
2229 (set_raw_breakpoint): Ditto.
2230 (print_it_catch_fork): Adjust to take a bpstat as argument.
2231 (catch_fork_breakpoint_ops): Install methods.
2232 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2233 (catch_vfork_breakpoint_ops): Install methods.
2234 (dtor_catch_syscall): Call the base dtor.
2235 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2236 (catch_syscall_breakpoint_ops): Install methods.
2237 (dtor_catch_exec): Call the base dtor.
2238 (print_it_catch_exec): Adjust to take a bpstat as argument.
2239 (catch_exec_breakpoint_ops): Install methods.
2240 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2241 the breakpoint's resources_needed method, and remove the default
2243 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2245 (clone_momentary_breakpoint): Clone the original's ops.
2246 (mention): Always call the breakpoint's print_mention method, and
2247 remove the default code from here.
2248 (create_breakpoint_sal): Adjust to pass the ops to
2249 set_raw_breakpoint rather than setting it manually.
2250 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2251 ops to set_raw_breakpoint_without_location rather than setting it
2253 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2254 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2255 (ranged_breakpoint_ops): Install methods.
2256 (break_range_command): Adjust to pass the ops to
2257 set_raw_breakpoint rather than setting it manually.
2258 (re_set_watchpoint, breakpoint_hit_watchpoint)
2259 (check_status_watchpoint, resources_needed_watchpoint)
2260 (works_in_software_mode_watchpoint, print_it_watchpoint)
2261 (print_mention_watchpoint, print_recreate_watchpoint): New
2263 (watchpoint_breakpoint_ops): Install new methods.
2264 (print_it_masked_watchpoint): New function.
2265 (masked_watchpoint_breakpoint_ops): Install new methods.
2266 (watch_command_1): Adjust to pass the right breakpoint_ops to
2267 set_raw_breakpoint_without_location rather than setting it
2268 manually later. Record the current pspace.
2269 (print_it_exception_catchpoint): Adjust to take a bpstat as
2271 (gnu_v3_exception_catchpoint_ops): Install new methods.
2272 (say_where): New function.
2273 (null_re_set, null_check_status, null_works_in_software_mode)
2274 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2276 (bp_location_ops): New global.
2277 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2278 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2279 (bkpt_check_status, bkpt_resources_needed)
2280 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2281 (bkpt_print_recreate): New functions.
2282 (bkpt_breakpoint_ops): New global.
2283 (tracepoint_re_set, tracepoint_insert_location)
2284 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2285 (tracepoint_check_status, tracepoint_works_in_software_mode)
2286 (tracepoint_print_it, tracepoint_print_one_detail)
2287 (tracepoint_print_mention, tracepoint_print_recreate): New
2289 (tracepoint_breakpoint_ops): New global.
2290 (delete_breakpoint): Always call the breakpoint's dtor method, and
2291 remove the default handling from here.
2292 (breakpoint_re_set_default): Make static.
2293 (breakpoint_re_set_one): Always call the breakpoints re_set
2294 method, and remove the default handling from here.
2295 (trace_command, ftrace_command, strace_command)
2296 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2297 to create_breakpoint.
2298 (save_breakpoints): Always call the breakpoint's print_recreate
2299 method, and remove the default handling from here.
2301 * ada-lang.c (dtor_exception): Call the base dtor.
2302 (re_set_exception): Call the base method.
2303 (print_it_exception, print_it_catch_exception): Adjust to take a
2305 (catch_exception_breakpoint_ops): Install methods.
2306 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2308 (catch_exception_unhandled_breakpoint_ops): Install methods.
2309 (print_it_catch_assert): Adjust to take a bpstat as argument.
2310 (catch_assert_breakpoint_ops): Install methods.
2312 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2313 to take a bpstat as argument.
2314 (enum print_stop_action): Add describing comments to each enum
2316 (breakpoint_re_set_default): Delete declaration.
2317 (null_re_set, null_works_in_software_mode, null_resources_needed)
2318 (null_check_status, null_print_one_detail): Declare.
2319 (bkpt_breakpoint_ops): Declare.
2320 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2321 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2322 (bkpt_check_status, bkpt_resources_needed)
2323 (bkpt_works_in_software_mode, bkpt_print_it)
2324 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2327 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2328 bkpt_breakpoint_ops.
2329 * python/py-breakpoint.c (bppy_init): Ditto.
2331 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2333 * MAINTAINERS (Write After Approval): Add myself to the list.
2335 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2337 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2339 2011-07-22 Pedro Alves <pedro@codesourcery.com>
2341 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2342 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2343 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2345 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2346 (struct i386_debug_reg_state): New.
2347 (i386_init_dregs): New.
2349 (i386_cleanup_dregs): Use i386_init_dregs.
2350 (i386_show_dr): Add state parameter and adjust.
2351 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2353 (i386_remove_aligned_watchpoint): Likewise.
2354 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2355 (i386_update_inferior_debug_regs): New.
2356 (i386_insert_watchpoint): Work on a local mirror of the debug
2357 registers, and only update the inferior on success.
2358 (i386_remove_watchpoint): Ditto.
2359 (i386_region_ok_for_watchpoint): Adjust.
2360 (i386_stopped_data_address): Adjust.
2361 (i386_insert_hw_breakpoint): Adjust.
2362 (i386_remove_hw_breakpoint): Adjust.
2364 2011-07-22 Tom Tromey <tromey@redhat.com>
2366 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2367 from amd64_pseudo_register_read. Change arguments. Call
2368 mark_value_bytes_unavailable when needed.
2369 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2370 set_gdbarch_pseudo_register_read.
2371 * sentinel-frame.c (sentinel_frame_prev_register): Use
2372 regcache_cooked_read_value.
2373 * regcache.h (regcache_cooked_read_value): Declare.
2374 * regcache.c (regcache_cooked_read_value): New function.
2375 (regcache_cooked_read): Call
2376 gdbarch_pseudo_register_read_value if available.
2377 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2378 (i386_pseudo_register_read): Remove.
2379 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
2380 i386_pseudo_register_read. Change arguments. Call
2381 mark_value_bytes_unavailable when needed.
2382 (i386_pseudo_register_read_value): New function.
2383 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
2384 not set_gdbarch_pseudo_register_read.
2385 * gdbarch.sh (pseudo_register_read_value): New method.
2386 * gdbarch.c, gdbarch.h: Rebuild.
2387 * findvar.c (value_from_register): Call get_frame_register_value.
2389 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
2391 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
2393 (display_gdb_prompt): Likewise.
2394 (change_annotation_level): Likewise.
2395 (push_prompt): Likewise.
2396 (pop_prompt): Likewise.
2397 (handle_stop_sig): Use get_prompt with a level.
2398 * top.c (command_loop): Use get_prompt with a level.
2399 (set_async_annotation_level): Use set_prompt with a level.
2400 (get_prefix): New function.
2401 (set_prefix): Ditto.
2402 (set_suffix): Ditto.
2403 (get_suffix): Ditto.
2404 (get_prompt): Accept a level argument.
2405 (set_prompt): Accept a level argument. Free old prompts. Set
2406 new_async_prompt if level is 0.
2407 (init_main): Use set_prompt with a level. Do not set
2409 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
2410 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
2411 Modify set_prompt, get_prompt to account for levels.
2412 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
2414 * python/python.c (before_prompt_hook): Use set_prompt.
2416 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
2418 * defs.h: Add guard against inclusion in gdbserver.
2419 (struct ptid, ptid_t): Move to common/ptid.h.
2420 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
2421 xsnprintf, internal_error): Move to common/common-utils.h.
2423 * gdb_assert.h: Move into common/ sub-directory.
2424 * gdb_locale.h: Ditto.
2425 * gdb_dirent.h: Ditto.
2426 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
2427 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
2428 Move into common/ptid.h.
2429 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
2430 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
2431 Change nomem to malloc_failure.
2432 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
2433 * utils.c (nomem): Rename to malloc_failure.
2434 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
2435 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
2436 (gdb_buildargv): Change nomem to malloc_failure.
2437 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
2438 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2439 ptid_is_pid): Move into common/ptid.c.
2440 (initialize_infrun): Delete initialization of null_ptid and
2442 * linux-nat.c (linux_nat_xfer_osdata): Defer to
2443 linux_common_xfer_osdata.
2444 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
2445 common/ptid.c and common/buffer.c.
2446 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
2447 common/ptid.h, common/buffer.h and common/linux-osdata.h.
2448 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
2449 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
2451 * common/gdb_assert.h: New.
2452 * common/gdb_dirent.h: New.
2453 * common/gdb_locale.h: New.
2454 * common/buffer.c: New.
2455 * common/buffer.h: New.
2456 * common/ptid.c: New.
2457 * common/ptid.h: New.
2458 * common/xml-utils.c: New.
2459 * common/xml-utils.h: New.
2460 * common/common-utils.c: New.
2461 * common/common-utils.h: New.
2462 * common/linux-osdata.c: New.
2463 * common/linux-osdata.h: New.
2464 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
2465 * config/arm/linux.mh (NATDEPFILES): Ditto.
2466 * config/i386/linux.mh (NATDEPFILES): Ditto.
2467 * config/i386/linux64.mh (NATDEPFILES): Ditto.
2468 * config/ia64/linux.mh (NATDEPFILES): Ditto.
2469 * config/m32r/linux.mh (NATDEPFILES): Ditto.
2470 * config/m68k/linux.mh (NATDEPFILES): Ditto.
2471 * config/mips/linux.mh (NATDEPFILES): Ditto.
2472 * config/pa/linux.mh (NATDEPFILES): Ditto.
2473 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
2474 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
2475 * config/s390/s390.mh (NATDEPFILES): Ditto.
2476 * config/sparc/linux.mh (NATDEPFILES): Ditto.
2477 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
2478 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
2480 2011-07-21 Matt Rice <ratmice@gmail.com>
2482 * NEWS: Add info macros and info definitions commands.
2484 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2486 * NEWS: Document Python prompt substitution hook.
2488 2011-07-18 Matt Rice <ratmice@gmail.com>
2491 * macrotab.h (macro_callback_fn): Add new arguments to callback.
2492 * macrotab.c (foreach_macro): Ditto.
2493 (foreach_macro_in_scope): Ditto.
2494 * macrocmd.c (print_macro_callback): New function.
2495 (info_macro_command): Move some code to print_macro_definition.
2496 (print_macro_definition): New function.
2497 (print_one_macro): Add new arguments to callback.
2498 (info_definitions_command): New function.
2499 (info_macros_command): Ditto.
2500 (_initialize_macrocmd): Add info macros and info definitions commands.
2501 * symtab.c (add_macro_name): Add new arguments to callback.
2503 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2504 Tom Tromey <tromey@redhat.com>
2506 * top.c (set_prompt): Rewrite to free previous prompt, free
2507 asynch_new_prompt and set both on new prompts.
2508 * event-top.c (display_gdb_prompt): Add prompt substitution
2510 * python/python.c (before_prompt_hook): New function.
2512 2011-07-20 Matt Rice <ratmice@gmail.com>
2514 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
2515 arguments to store_unsigned_integer.
2517 2011-07-20 Tom Tromey <tromey@redhat.com>
2519 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
2520 in some declaration-only cases.
2522 2011-07-18 Tom Tromey <tromey@redhat.com>
2525 * dwarf2read.c (dwarf2_section_info_def): New typedef.
2526 (struct dwarf2_per_objfile) <types>: Change to a VEC.
2527 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
2528 <debug_type_section>: New field.
2529 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
2530 (load_cu): Use appropriate section.
2531 (create_signatured_type_table_from_index): Add 'section'
2533 (dwarf2_read_index): Only allow a single .debug_types section.
2534 (dw2_get_file_names): Use appropriate section.
2535 (read_type_comp_unit_head): Add 'section' argument.
2536 (create_debug_types_hash_table): Loop over all .debug_types
2538 (init_cu_die_reader): Use appropriate section.
2539 (process_psymtab_comp_unit, load_partial_comp_unit)
2540 (load_full_comp_unit, read_die_and_children, find_partial_die)
2541 (lookup_die_type, determine_prefix, follow_die_offset): Update.
2542 (lookup_signatured_type_at_offset): Add 'section' argument.
2543 (read_signatured_type_at_offset): Add 'sect' argument.
2544 (read_signatured_type): Use appropriate section.
2545 (set_die_type, get_die_type_at_offset): Update.
2546 (dwarf2_per_objfile_free): Free all .debug_types sections, and
2548 (write_psymtabs_to_index): Don't allow index with more than one
2549 .debug_types section.
2551 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2553 Fix crash if referenced CU is aged out.
2554 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2555 xfree of block.data.
2556 (indirect_pieced_value): New variable back_to, use to for xfree of
2558 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2560 * dwarf2read.c (dwarf2_find_base_address): New prototype.
2561 (load_cu): New function from ...
2562 (dw2_do_instantiate_symtab): ... the code here ...
2563 (process_full_comp_unit): ... and here.
2564 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
2567 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2569 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2572 2011-07-19 Gary Benson <gbenson@redhat.com>
2574 * infrun.c (struct execution_control_state): New member
2575 stop_func_filled_in.
2576 (clear_stop_func, fill_in_stop_func): New functions.
2577 (handle_inferior_event): Call clear_stop_func rather than
2578 manipulating the execution control state directly.
2579 Call fill_in_stop_func lazily as required rather than
2580 directly calling find_pc_partial_function in all cases.
2582 2011-07-18 Tom Tromey <tromey@redhat.com>
2584 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2585 checking for variable-sized array.
2587 2011-07-18 Jean-Charles Delay <delay@adacore.com>
2589 * varobj.h (varobj_languages): Add vlang_ada definition to the list
2590 of supported languages.
2591 * varobj.c: Add top definitions and basic implementation of the
2592 following callbacks: ada_number_of_children, ada_name_of_variable,
2593 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2594 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2595 (languages): Register Ada-specific callbacks.
2596 (variable_language): Add the Ada case in the language setter switch.
2598 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2600 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2602 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2605 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2606 (execute_stack_op): Use dwarf2_frame_ctx_funcs
2607 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2608 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2609 get_frame_cfa, get_tls_address and dwarf_call via funcs.
2610 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2611 (struct dwarf_expr_context_funcs): New, move here methods from ...
2612 (struct dwarf_expr_context): ... here. New fields funcs.
2613 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2614 (dwarf_expr_ctx_funcs): New.
2615 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2616 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2617 (needs_frame_ctx_funcs): New.
2618 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2620 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2622 * MAINTAINERS (Write After Approval): Add myself to the list.
2624 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2626 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2627 that CIE pointer of an FDE really points to a CIE .
2629 2011-07-15 Hui Zhu <teawater@gmail.com>
2631 * remote.c (remote_get_trace_status): Add comments.
2633 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2635 Code cleanup - constify struct lval_funcs.
2636 * dwarf2loc.c (pieced_value_funcs): Make it const.
2637 * infrun.c (siginfo_value_funcs): Likewise.
2638 * opencl-lang.c (opencl_value_funcs): Likewise.
2639 * valops.c (value_assign, value_ind): Make the funcs variable const.
2640 * value.c (struct value): Make location.computed.funcs target const.
2641 Rearrange the comments.
2642 (allocate_computed_value): Make the funcs parameter target const.
2643 (value_computed_funcs): Return the funcs target const.
2644 (value_free, value_copy, set_value_component_location): Make the funcs
2646 * value.h (allocate_computed_value): Make the funcs parameter target
2648 (value_computed_funcs): Return the funcs target const.
2649 * windows-tdep.c (tlb_value_funcs): Make it const.
2651 2011-07-14 Hui Zhu <teawater@gmail.com>
2653 * remote.c (remote_get_trace_status): Initialize p.
2655 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2658 * remote.c (remote_get_trace_status): New variable ex. Put
2659 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2661 2011-07-13 Tom Tromey <tromey@redhat.com>
2663 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2664 value_from_contents for final conversion.
2666 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2669 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2670 Indent prototypes so they do not get into tags.
2672 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 Code cleanup making also optimized out values lazy.
2675 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2676 allocate_optimized_out_value. Twice.
2677 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2678 * findvar.c (read_var_value): Likewise.
2679 * value.c (allocate_optimized_out_value): New function.
2680 * value.h (allocate_optimized_out_value): New declaration.
2682 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2684 Fix occasional crash of CTRL-C during DWARF read in.
2685 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2687 2011-07-11 Tom Tromey <tromey@redhat.com>
2689 * regcache.c (struct regcache_descr): Fix typo.
2690 * i387-tdep.c (i387_supply_xsave): Fix typo.
2692 2011-07-11 Tom Tromey <tromey@redhat.com>
2694 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2695 (read_file_scope, read_type_unit_scope): Use it.
2697 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2699 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2702 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2705 * python/python.c: Set gdbpy_should_print_stack default to off.
2706 (set_python): Deprecate maint set python print-stack to
2708 (_initialize_python): Deprecate maint set/show python print-stack.
2709 Add new prefix command, python. Add new setting, print-backtrace.
2710 * NEWS: Document set python print-stack. Document default change.
2712 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2714 * python/py-inferior.c (infpy_dealloc): New function.
2715 (inferior_to_inferior_object): Return a new object, or a
2716 new reference to the existing object.
2717 (find_thread_object): Cleanup references to inferior.
2718 (delete_thread_object): Ditto.
2719 * python/py-infthread.c (create_thread_object): Do not increment
2720 inferior reference count.
2722 2011-07-08 Tom Tromey <tromey@redhat.com>
2724 * dwarf2loc.c (locexpr_regname): New function.
2725 (locexpr_describe_location_piece): Use it.
2726 (disassemble_dwarf_expression): Add per_cu argument. Use
2728 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2729 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2731 (locexpr_describe_location_1): Add per_cu argument.
2732 (locexpr_describe_location): Update.
2733 (loclist_describe_location): Update.
2735 2011-07-08 Tom Tromey <tromey@redhat.com>
2737 * dwarf2expr.c (execute_stack_op): Add QUIT.
2739 2011-07-07 Hui Zhu <teawater@gmail.com>
2742 2011-07-06 Hui Zhu <teawater@gmail.com>
2743 * remote.c (remote_start_remote): Add TRY_CATCH for
2744 remote_get_trace_status.
2745 * tracepoint.c (disconnect_tracing): Ditto.
2747 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2749 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2750 variables as signed, not unsigned.
2752 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2754 * jit.c (jit_inferior_init): Reformat forward declaration.
2756 2011-07-06 Matt Rice <ratmice@gmail.com>
2758 * MAINTAINERS (Write After Approval): Add myself to the list.
2760 2011-07-06 Hui Zhu <teawater@gmail.com>
2762 * remote.c (remote_start_remote): Add TRY_CATCH for
2763 remote_get_trace_status.
2764 * tracepoint.c (disconnect_tracing): Ditto.
2766 2011-07-05 Tom Tromey <tromey@redhat.com>
2768 * symtab.c (operator_chars): Now static.
2769 * linespec.c (operator_chars): Don't declare.
2771 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2773 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2775 2011-07-05 Tom Tromey <tromey@redhat.com>
2777 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2778 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2779 (TYPE_CPLUS_REALLY_JAVA): New macro.
2780 * dwarf2read.c (process_structure_scope): Set
2781 TYPE_CPLUS_REALLY_JAVA.
2783 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2785 * ada-lang.c: Fix typos.
2786 * amd64-tdep.c: Likewise.
2787 * breakpoint.c: Likewise.
2788 * cli/cli-decode.c: Likewise.
2789 * findcmd.c: Likewise.
2790 * inline-frame.c: Likewise.
2791 * mi/mi-main.c: Likewise.
2792 * minsyms.c: Likewise.
2793 * monitor.c: Likewise.
2794 * monitor.h: Likewise.
2795 * prologue-value.c: Likewise.
2796 * reverse.c: Likewise.
2797 * s390-tdep.c: Likewise.
2799 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2801 * jit.c (jit_inferior_init): Forward declare.
2802 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2804 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2806 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2808 2011-07-04 Tristan Gingold <gingold@adacore.com>
2810 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2811 (tcb_fieldno): Add activation_link field.
2812 (get_known_tasks_addr): Moved and rewritten.
2813 (get_tcb_types_info): Set activation_link field.
2814 (read_known_tasks_array): Add parameter. Rewritten.
2815 (read_known_tasks_list): New function.
2816 (read_known_tasks): New function.
2817 (ada_build_task_list): Call read_known_tasks instead of
2818 read_known_tasks_array.
2819 * ravenscar-thread.c: Add first_task_name constant.
2820 (has_ravenscar_runtime): Check for task list too.
2822 2011-07-04 Tristan Gingold <gingold@adacore.com>
2824 * ada-tasks.c: Renames fieldno to actb_fieldno.
2825 (ada_get_task_number): Indentation.
2826 (get_tcb_types_info): Remove all parameters. Write directly
2828 (ptid_from_atcb_common): Adjust.
2829 (read_atcb): Adjust.
2831 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2833 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2835 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2837 * ui-out.c (ui_out_field_core_addr): Mention that the function
2838 description is in the header file.
2839 * ui-out.h (ui_out_field_core_addr): Document function.
2841 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2843 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2844 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2846 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2848 * symtab.c (expand_line_sal): Remove empty line.
2850 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2852 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2853 same way as ELFOSABI_NONE.
2854 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2856 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2858 * breakpoint.c: Fix typos in comments.
2859 * linespec.c: Likewise.
2860 * symtab.c: Likewise.
2862 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2864 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2865 section in separate object files.
2867 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2869 Fix false GCC warning.
2870 * linespec.c (decode_line_1): Initialize values.
2872 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2874 * linespec.c (find_method): Accept the function type automatically only
2875 if it was specified with parameter types.
2877 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2879 Stop on first linespec terminator instead of eating what we can.
2880 * linespec.c (is_linespec_boundary): New function.
2881 (name_end): Remove function.
2882 (keep_name_info): New parameter on_boundary, replace the body.
2883 (decode_line_1): Provide the parameter to keep_name_info.
2884 (decode_compound): Likewise. Drop the trailing java return type
2887 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 Fall back linespec to minimal symbols.
2890 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2891 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2892 (find_method, symbol_found): Change error to cplusplus_error.
2894 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2896 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2898 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2899 Tom Tromey <tromey@redhat.com>
2901 * dwarf2read.c (check_physname): New variable.
2902 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2903 (show_check_physname): New function.
2904 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2906 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2908 * machoread.c (macho_symfile_read): Delete OBE comment.
2910 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2912 * machoread.c (struct macho_oso_data): Delete.
2913 (current_oso): Delete.
2914 (macho_relocate_common_syms): New function, mostly extracted
2916 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2917 Remove code that sets and unset current_oso.
2918 (macho_symfile_relocate): Delete handling of common symbols,
2919 now moved to macho_relocate_common_syms.
2921 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2923 * darwin-nat.c (darwin_ptrace): Add documentation.
2924 Set errno to zero before calling ptrace. If ptrace returns
2925 -1 and errno is zero, then change then return zero.
2926 (darwin_kill_inferior): Issue a warning instead of triggering
2927 a failed assertion when the PT_KILL ptrace operations returned
2930 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2932 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2933 only when inf->private->no_ptrace.
2935 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2937 * ada-lang.c (print_it_exception): Print temporary catchpoints
2938 as "Temporary catchpoint".
2939 (print_mention_exception): Likewise.
2941 2011-07-01 Tom Tromey <tromey@redhat.com>
2943 * jv-lang.c (java_language_defn): Use java_printchar,
2945 (java_get_encoding): New function.
2946 (java_emit_char): Use generic_emit_char.
2947 (java_printchar): New function.
2948 (java_printstr): Likewise.
2950 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2952 * ada-typeprint.c (print_record_type): If unable to decode
2953 the name of the parent type, use the encoded name.
2955 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2957 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2958 pointer to constrained packed array type output.
2959 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2960 packed array output.
2962 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2964 * ada-typeprint.c (print_array_type): removed if condition on show
2965 being negative for bounds printing.
2967 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2969 * ada-lang.c (ada_identical_enum_types_p): New function.
2970 (symbols_are_identical_enums): New function.
2971 (remove_extra_symbols): Do nothing if NSYMS < 2.
2972 Use symbols_are_identical_enums.
2974 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2976 * ada-valprint.c (ada_value_print): Handle typedefs.
2978 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2980 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2982 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2984 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2985 (decode_constrained_packed_array): Likewise.
2986 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2988 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2990 * ada-exp.y (convert_char_literal): Handle typedef types.
2992 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2994 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2996 2011-06-30 Tom Tromey <tromey@redhat.com>
2998 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2999 * valops.c (find_overload_match): Call do_cleanups on early exit
3001 * solib.c (solib_find): Call do_cleanups on early exit path.
3003 2011-06-30 Tom Tromey <tromey@redhat.com>
3005 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3006 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3007 return paths. Defer final do_cleanups until last return.
3008 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3011 2011-06-30 Tom Tromey <tromey@redhat.com>
3013 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3015 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3017 * MAINTAINERS (Write After Approval): Add myself to the list.
3019 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3021 Disable epilogue unwinders on recent GCCs.
3022 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3023 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3024 * dwarf2read.c (process_full_comp_unit): Initialize
3025 EPILOGUE_UNWIND_VALID.
3026 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3027 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3028 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3030 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 Code cleanup - reformatting.
3033 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3034 (producer_is_gcc_ge_4): ... here, change the return value.
3035 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3038 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 Fix non-only rename list for Fortran modules import.
3041 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3042 cp_add_using_directive caller.
3043 (cp_add_using_directive): New parameter excludes, describe it. New
3044 variables ix and param. Compare if also excludes match. Allocate NEW
3045 with variable size, initialize EXCLUDES there.
3046 (cp_lookup_symbol_imports): New variable excludep, test
3047 current->EXCLUDES with it.
3048 * cp-support.h: Include vec.h.
3049 (struct using_direct): New field excludes, describe it.
3050 (DEF_VEC_P (const_char_ptr)): New.
3051 (cp_add_using_directive): New parameter excludes.
3052 * defs.h (const_char_ptr): New typedef.
3053 * dwarf2read.c (read_import_statement): New variables child_die,
3054 excludes and cleanups, read in excludes.
3055 (read_namespace): Adjust the cp_add_using_directive caller.
3057 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3060 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3061 negative comparisons.
3063 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3065 * mi/mi-main.c (mi_cmd_list_features): Emit
3066 breakpoint-notifications.
3068 2011-06-29 Tom Tromey <tromey@redhat.com>
3071 * valprint.h (generic_emit_char, generic_printstr): Declare.
3072 * valprint.c (wchar_printable, append_string_as_wide)
3073 (print_wchar): Move from c-lang.c.
3074 (generic_emit_char): New function; mostly taken from c_emit_char.
3075 (generic_printstr): New function; mostly taken from c_printstr.
3076 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3077 represented as arrays.
3078 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3080 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3081 identically to TYPE_CODE_INT.
3082 * f-lang.c (f_get_encoding): New function.
3083 (f_emit_char): Use generic_emit_char.
3084 (f_printchar): Replace comment.
3085 (f_printstr): Use generic_printstr.
3086 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3087 "character" types specially.
3088 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3090 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3092 (c_emit_char): Call generic_emit_char.
3093 (c_printstr): Call generic_printstr.
3095 2011-06-29 Gary Benson <gbenson@redhat.com>
3097 * breakpoint.c (bpstat_what): Removed duplicated case.
3099 2011-06-28 Tom Tromey <tromey@redhat.com>
3101 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3103 2011-06-27 Tom Tromey <tromey@redhat.com>
3105 * valops.c (find_overload_match): Call do_cleanups before early
3107 * top.c (execute_command): Call do_cleanups before early return.
3108 (command_loop): Likewise.
3109 * stack.c (backtrace_command): Make a null cleanup early. Don't
3110 conditionally call do_cleanups.
3111 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3113 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3114 so cleanups are always run.
3115 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3116 * findcmd.c (parse_find_args): Call do_cleanups on early return
3118 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3119 Don't conditionally call do_cleanups.
3120 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3123 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3125 * MAINTAINERS (Write After Approval): Use default email address.
3127 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3129 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3131 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3133 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3134 saved_regs_mask and copied_regs_mask fields.
3135 (sparc_record_save_insn): New prototype.
3136 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3137 (sparc_record_save_insn): New function.
3138 (sparc_analyze_prologue): Add head comment. Recognize store insns
3139 of call-saved registers. Use OFFSET consistently. Recognize flat
3140 frames and cache their settings.
3141 (sparc32_skip_prologue): Handle flat frames.
3142 (sparc_frame_cache): Add frame_offset to the base address.
3143 (sparc32_frame_cache): Adjust to new frame description.
3144 (sparc32_frame_prev_register): Likewise.
3145 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3146 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3147 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3148 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3149 frame by calling sparc_record_save_insn.
3150 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3151 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3152 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3154 2011-06-27 Tristan Gingold <gingold@adacore.com>
3156 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3157 field by map_addr and map_len.
3158 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3159 (munmap_section_buffer): Likewise.
3161 2011-06-24 Tom Tromey <tromey@redhat.com>
3163 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3164 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3165 * python/python.c (gdbpy_parameter): Make 'arg' const.
3166 (execute_gdb_command): Likewise.
3167 (gdbpy_decode_line): Likewise. Copy it.
3168 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3169 (gdbpy_write): Make 'arg' const.
3170 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3172 (gdbpy_lookup_type): Likewise.
3173 * python/py-prettyprint.c (print_children): Make 'name' const.
3174 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3175 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3177 * python/py-function.c (fnpy_init): Make 'name' const.
3178 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3179 (gdbpy_string_to_argv): Make 'input' const.
3180 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3182 * gdbtypes.h (lookup_typename): Update.
3183 * gdbtypes.c (lookup_typename): Make 'name' const.
3184 (lookup_struct): Likewise.
3185 (lookup_union): Likewise.
3186 (lookup_enum): Likewise.
3188 2011-06-24 Tom Tromey <tromey@redhat.com>
3190 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3191 gdb_thread_db.h. Move all common/ entries to be together.
3192 (TAGS): Don't depend on DEPFILES.
3194 2011-06-23 Yao Qi <yao@codesourcery.com>
3196 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3197 * remote.c (remote_start_remote): ... here.
3198 * monitor.c (monitor_open): ... here.
3200 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
3202 * gdbtypes.c (append_composite_type_field_aligned): Fix
3203 calculation of bit position based on alignment.
3205 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3207 * breakpoint.c (bpstat_stop_status): Call the check_status
3208 breakpoint_ops method.
3209 (print_one_breakpoint_location): Also print the condition for Ada
3210 exception catchpoints.
3211 (allocate_bp_location): New, factored out from
3212 allocate_bp_location.
3213 (allocate_bp_location): Adjust. Call the owner breakpoint's
3214 allocate_location method, if there is one.
3215 (free_bp_location): Call the locations's dtor method, if there is
3217 (init_raw_breakpoint_without_location): New breakpoint_ops
3219 (set_raw_breakpoint_without_location): Adjust.
3220 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3221 (set_raw_breakpoint): Adjust.
3222 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3223 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3224 re_set and check_status methods.
3225 (init_catchpoint): Don't memset, initialize thread, addr_string
3226 and enable_state. Pass the ops down to init_raw_breakpoint.
3227 (install_catchpoint): Rename to ...
3228 (install_breakpoint): ... this, and make extern.
3229 (create_fork_vfork_event_catchpoint): Adjust.
3230 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3231 re_set and check_status methods.
3232 (create_syscall_event_catchpoint): Adjust.
3233 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3234 (masked_watchpoint_breakpoint_ops): Install NULL
3235 allocate_location, re_set and check_status methods.
3236 (catch_exec_command_1): Adjust.
3237 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3238 re_set and check_status methods.
3239 (create_ada_exception_breakpoint): Rename to ...
3240 (init_ada_exception_breakpoint): ... this. Add a struct
3241 breakpoint parameter, and delete the exp_string, cond_string and
3242 cond parameters. Use init_raw_breakpoint, and don't install or
3243 mention the breakpoint yet. Don't clear breakpoint fields that
3244 init_raw_breakpoint already clears.
3245 (re_set_breakpoint): Delete, split into ...
3246 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3248 (breakpoint_re_set_one): Call the breakpoint's
3249 breakpoint_ops->re_set implementation, if there's one. Adjust.
3250 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3251 (struct bp_location_ops): New type.
3252 (struct bp_location): New field `ops'.
3253 (struct breakpoint_ops): New `allocate_location', `re_set' and
3254 `check_status' fields. Make `breakpoint_hit''s description match
3256 (init_bp_location): Declare.
3257 (breakpoint_re_set_default): Declare.
3258 (create_ada_exception_breakpoint): Rename to ...
3259 (init_ada_exception_breakpoint): ... this. Add a struct
3260 breakpoint parameter, and delete the exp_string, cond_string and
3262 (install_breakpoint): Declare.
3263 * ada-lang.c: Include exceptions.h.
3264 <Ada exceptions description>: Update.
3265 (struct ada_catchpoint_location): New type.
3266 (ada_catchpoint_location_dtor): New function.
3267 (ada_catchpoint_location_ops): New global.
3268 (ada_catchpoint): New type.
3269 (create_excep_cond_exprs): New function.
3270 (dtor_exception, allocate_location_exception, re_set_exception)
3271 (should_stop_exception, check_status_exception): New functions.
3272 (print_one_exception, print_mention_exception)
3273 (print_recreate_exception): Adjust.
3274 (dtor_catch_exception, allocate_location_catch_exception)
3275 (re_set_catch_exception, check_status_catch_exception): New
3277 (catch_exception_breakpoint_ops): Install them.
3278 (dtor_catch_exception_unhandled)
3279 (allocate_location_catch_exception_unhandled)
3280 (re_set_catch_exception_unhandled)
3281 (check_status_catch_exception_unhandled): New functions.
3282 (catch_exception_unhandled_breakpoint_ops): Install them.
3283 (dtor_catch_assert, allocate_location_catch_assert)
3284 (re_set_catch_assert, check_status_catch_assert): New functions.
3285 (catch_assert_breakpoint_ops): Install them.
3286 (ada_exception_catchpoint_p): Delete.
3287 (catch_ada_exception_command_split)
3288 (ada_exception_catchpoint_cond_string): Rename exp_string
3289 parameter to excep_string. Adjust.
3290 (ada_parse_catchpoint_condition): Delete.
3291 (ada_exception_sal): Rename the exp_string parameter to
3292 excep_string. Delete the cond_string and cond parameters.
3294 (ada_decode_exception_location): Rename the exp_string parameter
3295 to excep_string. Delete the cond_string and cond parameters.
3297 (create_ada_exception_catchpoint): New function.
3298 (catch_ada_exception_command, ada_decode_assert_location)
3299 (catch_assert_command): Adjust.
3300 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3302 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3304 * ada-lang.c: Include arch-utils.h.
3305 (ada_decode_exception_location): Make static.
3306 (catch_ada_exception_command): Moved here from breakpoint.c.
3307 (ada_decode_assert_location): Make static.
3308 (catch_assert_command): Moved here from breakpoint.c.
3309 (_initialize_ada_lang): Install the exception and assert
3310 catchpoint commands here.
3311 * ada-lang.h (ada_decode_exception_location)
3312 (ada_decode_assert_location): Delete declarations.
3313 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3315 (create_ada_exception_breakpoint): Make extern.
3316 (catch_ada_exception_command, catch_assert_command): Moved to
3318 (add_catch_command): Make extern.
3319 (_initilize_breakpoint): Don't install the exception and assert
3320 catchpoint commands here.
3321 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3323 (add_catch_command, create_ada_exception_breakpoint): Declare.
3325 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3327 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3328 the breakpoint to the breakpoint chain here.
3329 (set_raw_breakpoint_without_location): Add the breakpoint to the
3330 breakpoint chain here.
3331 (init_raw_breakpoint): Adjust comments.
3332 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3334 (init_catchpoint): Don't set the catchpoint's breakpoint number
3336 (install_catchpoint): New function.
3337 (create_fork_vfork_event_catchpoint)
3338 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3339 use install_catchpoint.
3341 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3343 * breakpoint.c (create_catchpoint_without_mention)
3344 (create_catchpoint): Delete.
3346 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3348 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3349 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3350 reference to exec_pathname.
3351 (struct exec_catchpoint): New type.
3352 (dtor_catch_exec): New function.
3353 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3354 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3355 (catch_exec_command_1): Adjust to use init_catchpoint.
3356 (delete_breakpoint): Remove reference to exec_pathname.
3358 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3360 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3361 (struct breakpoint): Delete field `syscalls_to_be_caught'.
3362 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3363 reference to syscalls_to_be_caught.
3364 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3366 (struct syscall_catchpoint): New type.
3367 (dtor_catch_syscall): New function.
3368 (insert_catch_syscall, remove_catch_syscall)
3369 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3370 (print_recreate_catch_syscall): Adjust.
3371 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3372 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3373 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3374 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3375 (masked_watchpoint_breakpoint_ops)
3376 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3377 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3378 there is one. Remove references to syscalls_to_be_caught.
3379 (catching_syscall_number): Adjust.
3380 * ada-lang.c (catch_exception_breakpoint_ops)
3381 (catch_exception_unhandled_breakpoint_ops)
3382 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
3384 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3386 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
3388 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3389 reference to forked_inferior_pid.
3390 (struct fork_catchpoint): New type.
3391 (breakpoint_hit_catch_fork, print_it_catch_fork)
3392 (print_one_catch_fork, breakpoint_hit_catch_vfork)
3393 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
3394 (create_fork_vfork_event_catchpoint): Adjust to use
3397 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3399 * breakpoint.c (add_to_breakpoint_chain)
3400 (init_raw_breakpoint_without_location): New functions, factored
3402 (set_raw_breakpoint_without_location): ... this one.
3403 (init_raw_breakpoint): New function, factored out from
3404 set_raw_breakpoint and adjusted to use
3405 init_raw_breakpoint_without_location.
3406 (set_raw_breakpoint): Adjust.
3407 (init_catchpoint): New function, factored out from
3408 create_catchpoint_without_mention and adjusted to use
3409 init_raw_breakpoint.
3410 (create_catchpoint_without_mention): Adjust.
3412 2011-06-22 Tom Tromey <tromey@redhat.com>
3414 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
3415 argument of 0 specially.
3417 2011-06-22 Yao Qi <yao@codesourcery.com>
3419 * infrun.c (handle_inferior_event): Remove write-only local variable
3420 `sw_single_step_trap_p'.
3422 2011-06-20 Tom Tromey <tromey@redhat.com>
3424 * symtab.c (lookup_language_this): End loop if block is NULL.
3426 2011-06-17 Tom Tromey <tromey@redhat.com>
3428 * valops.c (value_of_this): Use lookup_language_this.
3429 * symtab.h (lookup_language_this): Declare.
3430 * symtab.c (lookup_language_this): New function.
3431 (lookup_symbol_aux): Use lookup_language_this.
3432 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
3434 2011-06-17 Tom Tromey <tromey@redhat.com>
3436 * value.h (value_of_this): Update.
3437 (value_of_local): Remove.
3438 * valops.c (value_of_this): Rename from value_of_local. Change
3440 * p-exp.y (exp): Update.
3441 (variable): Likewise.
3442 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
3444 2011-06-17 Tom Tromey <tromey@redhat.com>
3446 * valops.c (value_of_local): Complain if NAME is NULL.
3447 * std-operator.def (OP_OBJC_SELF): Remove.
3448 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
3449 * objc-exp.y (name_not_typename): Use OP_THIS.
3450 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
3452 <OP_OBJC_SELF>: Remove.
3453 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
3455 2011-06-16 Tristan Gingold <gingold@adacore.com>
3457 * python/py-events.h (gdb_py_events): Make it extern.
3458 * python/py-evtregistry.c (gdb_py_events): Declare.
3460 2011-06-16 Hui Zhu <teawater@gmail.com>
3462 * remote.c (remote_trace_set_readonly_regions): Add check for
3463 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
3466 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3468 * arm-linux-tdep.c: Include "auxv.h".
3470 (ARM_LINUX_SIZEOF_VFP): Define.
3471 (arm_linux_supply_vfp): New function.
3472 (arm_linux_collect_vfp): Likewise.
3473 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
3474 (arm_linux_fpa_regset_sections): New variable.
3475 (arm_linux_vfp_regset_sections): Likewise.
3476 (arm_linux_core_read_description): New function.
3477 (arm_linux_init_abi): Install arm_linux_core_read_description and
3478 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
3479 appropriate for the architecture.
3480 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
3481 (tdesc_arm_with_m): Declare.
3482 (tdesc_arm_with_iwmmxt): Likewise.
3483 (tdesc_arm_with_vfpv2): Likewise.
3484 (tdesc_arm_with_vfpv3): Likewise.
3485 (tdesc_arm_with_neon): Likewise.
3486 * arm-linux-nat.c: Move features/*.c includes ...
3487 * arm-tdep.c: ... here.
3488 * arm-linux-nat.c (arm_linux_read_description): Move initializing
3489 target description data structures ...
3490 * arm-tdep.c (_initialize_arm_tdep): ... here.
3491 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
3492 HWCAP_VFPv3D16): Move definitions ...
3493 * arm-linux-tdep.h: ... here.
3495 2011-06-15 Hui Zhu <teawater@gmail.com>
3497 * remote.c (remote_trace_set_readonly_regions): Add a check for
3500 2011-06-14 Tom Tromey <tromey@redhat.com>
3502 * coffread.c (coffread_objfile): Rename from current_objfile.
3503 * dbxread.c (dbxread_objfile): Rename from current_objfile.
3504 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
3506 2011-06-14 Tom Tromey <tromey@redhat.com>
3508 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
3509 (class_symtab): Remove.
3510 (jv_dynamics_progspace_key): New global.
3511 (jv_per_objfile_free): Reset program space data. Update assert.
3512 Don't clear globals.
3513 (get_dynamics_objfile): Use and set program space data.
3514 (get_java_class_symtab): Use get_dynamics_objfile.
3515 (add_class_symbol): Likewise.
3516 (java_link_class_type): Likewise.
3517 (java_object_type, jv_clear_object_type, set_java_object_type):
3519 (get_java_object_type): Update. Don't cache result.
3520 (is_object_type): Don't call set_java_object_type.
3521 (_initialize_java_language): Don't set jv_type_objfile_data_key;
3522 initialize jv_dynamics_progspace_key.
3524 2011-06-14 Tom Tromey <tromey@redhat.com>
3526 * symtab.h (current_objfile): Don't declare.
3527 * objfiles.h (current_objfile): Don't declare.
3528 * objfiles.c (current_objfile): Remove.
3529 * mdebugread.c (current_objfile): New file-scope global.
3530 * dbxread.c (current_objfile): New file-scope global.
3531 * coffread.c (current_objfile): New file-scope global.
3533 2011-06-13 Pedro Alves <pedro@codesourcery.com>
3535 * top.h (line): Rename to ...
3536 (saved_command_line): ... this.
3537 (linesize): Rename to ...
3538 (saved_command_line_size): ... this.
3539 * top.c (line): Rename to ...
3540 (saved_command_line): ... this.
3541 (linesize): Rename to ...
3542 (saved_command_line_size): ... this.
3543 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
3544 * event-top.c (command_line_handler): Adjust.
3545 * main.c (captured_main): Adjust.
3547 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3549 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
3550 get_frame_func instead of get_frame_pc to determine the code
3551 address used to construct the frame ID.
3552 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
3553 (i386_epilogue_frame_this_id): Likewise.
3554 (i386_epilogue_frame_prev_register): New function.
3555 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3556 (i386_stack_tramp_frame_sniffer): Fix coding style.
3557 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3558 (i386_gdbarch_init): Fix comments.
3560 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3562 * i386-tdep.c (i386_match_insn_block): Use length of the proper
3563 instruction when walking back through the instruction stream.
3565 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3567 * symtab.c (output_partial_symbol_filename): Exchange the filename and
3568 fullname parameters order.
3570 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3573 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3575 * psymtab.c (map_symbol_filenames_psymtab)
3576 (map_partial_symbol_filenames): Likewise.
3577 * psymtab.h: Include symfile.h.
3578 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3579 * symfile.h (symbol_filename_ftype): New.
3580 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3581 map_symbol_filenames, clarify more the naming in comment.
3583 2011-06-07 Doug Evans <dje@google.com>
3585 * cc-with-index.sh: Fix typos in comment.
3586 Look for ../../gdb, for fullname.exp.
3588 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3589 Pedro Alves <pedro@codesourcery.com>
3591 * cli/cli-cmds.c (shell_escape): Use waitpid.
3592 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3594 2011-06-07 Tristan Gingold <gingold@adacore.com>
3596 * xcoffread.c (dwarf2_xcoff_names): New variable.
3597 (aix_process_linenos): Add a guard.
3598 (xcoff_symfile_finish): Free dwarf2.
3599 (xcoff_initial_scan): Add dwarf2 support.
3601 2011-06-06 Pedro Alves <pedro@codesourcery.com>
3603 * infcall.c (run_inferior_call): Don't mask async. Instead force
3604 a synchronous wait, if the target can async.
3606 * target.h (struct target_ops): Delete to_async_mask.
3607 (target_async_mask): Delete.
3608 * target.c (update_current_target): Delete references to to_async_mask.
3609 * linux-nat.c (linux_nat_async_mask_value): Delete.
3610 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3611 to linux_nat_async_mask_value.
3612 (linux_nat_async_mask): Delete.
3613 (linux_nat_async, linux_nat_close): Remove references to
3614 linux_nat_async_mask_value.
3615 * record.c (record_async_mask_value): Delete.
3616 (record_async): Remove references to record_async_mask_value.
3617 (record_async_mask): Delete.
3618 (record_can_async_p, record_is_async_p): Remove references to
3619 record_async_mask_value.
3620 (init_record_ops, init_record_core_ops): Remove references to
3622 * remote.c (remote_async_mask_value): Delete.
3623 (init_remote_ops): Remove reference to remote_async_mask.
3624 (remote_can_async_p, remote_is_async_p): Remove references to
3625 remote_async_mask_value.
3626 (remote_async): Remove references to remote_async_mask_value.
3627 (remote_async_mask): Delete.
3629 * infrun.c (fetch_inferior_event): Don't claim registers changed
3630 if the current thread is already not executing.
3632 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3634 From Stephen Kitt <steve@sk2.org>
3635 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3636 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3638 2011-06-03 Joel Brobecker <brobecker@adacore.com>
3640 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3641 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3643 2011-06-03 Tom Tromey <tromey@redhat.com>
3645 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3647 * python/py-exitedevent.c (create_exited_event_object): Change
3648 type of 'exit_code'. Optionally add exit_code attribute.
3649 (emit_exited_event): Change type of 'exit_code'.
3650 * python/py-event.h (emit_exited_event): Update.
3651 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3652 * infrun.c (handle_inferior_event): Set exit code fields on
3654 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3656 * inferior.c (exit_inferior_1): Initialize new fields.
3658 2011-06-03 Tom Tromey <tromey@redhat.com>
3660 * dwarf2expr.c (get_signed_type): New function.
3661 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3663 2011-06-02 Keith Seitz <keiths@redhat.com>
3665 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3667 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3669 * top.h (simplified_command_loop): Delete declaration.
3671 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3673 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3674 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3676 2011-06-01 Yao Qi <yao@codesourcery.com>
3678 * objfiles.h (obj_section_addr): Update reference to objfile from
3680 (obj_section_endaddr): Likewise.
3682 2011-06-01 Daniel Jacobowitz <drow@false.org>
3684 * MAINTAINERS: Update my email address and affiliation. Also
3685 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3687 2010-05-31 Keith Seitz <keiths@redhat.com>
3690 * linespec.c (get_search_block): New function.
3691 (find_methods): Add FILE_SYMTATB parameter and use it and
3692 get_search_block to pass an appropriate block to
3693 lookup_symbol_in_namespace.
3694 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3695 Check if *ARGPTR starts with a filename first.
3696 If it does, call locate_first_half again to locate the next
3697 "first half" of the linespec.
3698 Pass FILE_SYMTATB to decode_objc and decode_compound.
3699 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3700 (locate_first_half): Stop on the first colon seen.
3701 (decode_compound): Add FILE_SYMTAB parameter.
3702 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3703 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3704 get_search_block with lookup_symbol.
3705 (find_method): Add FILE_SYMTAB parameter and pass it to
3707 (decode_objc): Use get_search_block.
3709 2010-05-31 Keith Seitz <keiths@redhat.com>
3712 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3713 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3714 and CP_ANONYMOUS_NAMESPACE_LEN.
3715 (cp_is_anonymous): Likewise.
3716 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3717 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3718 * dwarf2read.c (namespace_name): Likewise.
3719 (fixup_partial_die): Likewise.
3720 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3721 seen in the input, keep it.
3723 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3725 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3726 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3727 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3728 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3729 * remote.c (_initialize_remote): Register
3730 async_remote_interrupt_twice directly as
3731 sigint_remote_twice_token event.
3733 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3735 * target.h (enum inferior_event_type): Delete INF_ERROR.
3736 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3738 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3740 * interps.c (interp_set): Don't cancel continuations.
3742 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3746 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3748 * continuations.h (continuation_ftype): Add `err' parameter.
3749 Document parameters.
3750 (do_all_continuations, do_all_continuations_thread)
3751 (do_all_intermediate_continuations)
3752 (do_all_intermediate_continuations_thread)
3753 (do_all_inferior_continuations): Add `err' parameter.
3754 * continuations.c (do_my_continuations_1, do_my_continuations)
3755 (do_all_inferior_continuations, do_all_continuations_ptid)
3756 (do_all_continuations_thread_callback)
3757 (do_all_continuations_thread, do_all_continuations)
3758 (do_all_intermediate_continuations_thread_callback)
3759 (do_all_intermediate_continuations_thread)
3760 (do_all_intermediate_continuations): Add `err' parameter, and pass
3761 it down all the way to the continuations proper.
3762 * inf-loop.c (inferior_event_handler): If fetching an inferior
3763 event throws an error, don't pop the target, and still call the
3764 continuations, but with `err' set. Adjust all other continuation
3766 * breakpoint.c (until_break_command_continuation): Add `err'
3768 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3769 issue another step if `err' is set.
3770 (struct until_next_continuation_args): New.
3771 (until_next_continuation): Add `err' parameter. Adjust.
3772 (until_next_command): Adjust.
3773 (struct finish_command_continuation_args): Add `thread' field.
3774 (finish_command_continuation): Add `err' parameter. Handle it.
3775 (finish_forward): Adjust.
3776 (attach_command_continuation): Add `err' parameter. Handle it.
3777 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3778 cancel the continuations.
3779 * interps.c (interp_set): Adjust to cancel the continuations.
3780 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3781 continuations rather than discarding.
3782 (free_thread): Don't clear thread inferior resources here.
3783 (delete_thread_1): Do it here instead. And do it before removing
3784 the thread from the threads list. Tag the thread as exited before
3785 clearing thread inferior resources.
3787 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3789 * infcall.c (call_function_by_hand): Rephrase error message.
3791 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3793 * defs.h (struct thread_info, struct inferior): Delete forward
3795 * breakpoint.h (struct thread_info): New forward declaration.
3796 * observer.sh (struct inferior): New forward declaration.
3797 * python/python-internal.h (struct inferior): New forward
3800 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3802 * defs.h (struct continuation, continuation_ftype)
3803 (continuation_free_arg_ftype, add_continuation)
3804 (do_all_continuations, do_all_continuations_thread)
3805 (discard_all_continuations, discard_all_continuations_thread)
3806 (add_intermediate_continuation, do_all_intermediate_continuations)
3807 (do_all_intermediate_continuations_thread)
3808 (discard_all_intermediate_continuations)
3809 (discard_all_intermediate_continuations_thread)
3810 (add_inferior_continuation, do_all_inferior_continuations)
3811 (discard_all_inferior_continuations): Move to ...
3812 * continuations.h: ... this new file.
3813 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3814 infcmd.c, inferior.c, infrun.c, interps.c: Include
3817 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3818 Doug Evans <dje@google.com>
3820 Fix PR 10970, PR 12702.
3821 * linux-nat.c (linux_lwp_is_zombie): New function.
3822 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3823 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3825 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3827 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3829 (add_continuation, add_intermediate_continuation)
3830 (add_inferior_continuation): Use them.
3831 * continuations.c (struct continuation): Use them.
3832 (make_continuation_ftype): Delete.
3833 (make_continuation, add_inferior_continuation, add_continuation)
3834 (add_intermediate_continuation): Use continuation_ftype and
3835 continuation_free_arg_ftype. Rename parameters to shorter names.
3837 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3839 * continuations.c (make_continuation): Make it return void.
3840 (do_my_continuations): Rename to ...
3841 (do_my_continuations_1): ... this. Remove old_chain parameter and
3843 (do_my_continuations): New.
3844 (discard_my_continuations): Rename to ...
3845 (discard_my_continuations_1): ... this. Remove old_chain
3846 parameter and adjust.
3847 (discard_my_continuations): New.
3848 (add_inferior_continuation): Simplify.
3849 (do_all_inferior_continuations): Reimplement on top
3850 do_my_continuations.
3851 (discard_all_inferior_continuations): Simplify.
3852 (add_continuation): Simplify.
3853 (do_all_continuations_ptid): Simplify.
3854 (discard_all_continuations_thread_callback): Simplify.
3855 (add_intermediate_continuation): Simplify.
3856 (discard_all_intermediate_continuations_thread_callback):
3859 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3861 * utils.c (struct continuation, add_continuation)
3862 (add_inferior_continuation)
3863 (do_all_inferior_continuations, discard_all_inferior_continuations)
3864 (restore_thread_cleanup, do_all_continuations_ptid)
3865 (do_all_continuations_thread_callback)
3866 (do_all_continuations_thread, do_all_continuations)
3867 (discard_all_continuations_thread_callback)
3868 (discard_all_continuations_thread, discard_all_continuations)
3869 (add_intermediate_continuation)
3870 (do_all_intermediate_continuations_thread_callback)
3871 (do_all_intermediate_continuations_thread)
3872 (do_all_intermediate_continuations)
3873 (discard_all_intermediate_continuations_thread_callback)
3874 (discard_all_intermediate_continuations_thread)
3875 (discard_all_intermediate_continuations): Move to ...
3876 * continuations.c: ... this new file, and adjust to no longer
3877 implement continuations on top of cleanups.
3878 * Makefile.in (SFILES): Add continuations.c.
3879 (COMMON_OBS): Add continuations.o.
3881 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3883 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3884 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3885 Internal error on invalid values.
3886 * reverse.c: Don't handle EXEC_ERROR.
3887 * mi/mi-main.c: Don't handle EXEC_ERROR.
3889 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3891 * record.c: Include event-loop.h, inf-loop.h.
3892 (record_beneath_to_async): New global.
3893 (tmp_to_async): New global.
3894 (record_async_inferior_event_token): New global.
3895 (record_open_1): Don't error out if async is enabled.
3896 (record_open): Handle to_async. Create an async event source in
3898 (record_close): Delete the async event source.
3899 (record_resumed): New global.
3900 (record_execution_dir): New global.
3901 (record_resume, record_core_resume): Set them. Register the
3902 target on the event loop.
3903 (record_wait): Rename to ...
3904 (record_wait_1): ... this. Add more debug output. Handle
3905 TARGET_WNOHANG, and the target beneath returning
3906 TARGET_WAITKIND_IGNORE.
3907 (record_wait): Reimplement on top of record_wait_1.
3908 (record_async_mask_value): New global.
3909 (record_async, record_async_mask, record_can_async_p)
3910 (record_is_async_p, record_execution_direction): New functions.
3911 (init_record_ops, init_record_core_ops): Install new methods.
3912 * infrun.c (fetch_inferior_event): Temporarily switch the global
3913 execution direction to the direction the target was going.
3914 (execution_direction): Change type to int.
3915 * target.c (default_execution_direction): New function.
3916 (update_current_target): Inherit and de_fault
3917 to_execution_direction.
3918 * target.h (struct target_ops) <to_execution_direction>: New
3920 (target_execution_direction): New macro.
3921 * inferior.h (execution_direction): Change type to int.
3923 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3925 * infcall.c (call_function_by_hand): Don't allow calling functions
3926 in reverse execution mode.
3928 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3930 * infcmd.c (finish_command): Allow async finish in reverse.
3932 2011-05-26 Yao Qi <yao@codesourcery.com>
3934 * gdb_thread_db.h: Delete. Move to ...
3935 * common/gdb_thread_db.h: ... here.
3937 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3939 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3940 function's entry point instead of a manually managed momentary
3941 breakpoint, and only ever issue one proceed call.
3942 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3943 doing a reverse-finish, switch to stepi mode, to do another step.
3944 (insert_step_resume_breakpoint_at_sal): Make public.
3945 (normal_stop): No need to save function value return registers if
3947 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3949 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3951 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3952 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3953 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3955 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3956 step-resume breakpoints.
3957 (print_it_typical): Handle bp_hp_step_resume.
3958 (bpstat_what): Ditto.
3959 (bptype_string): Ditto.
3960 (print_one_breakpoint_location): Ditto.
3961 (allocate_bp_location): Ditto.
3963 (breakpoint_re_set_one): Ditto.
3964 * infrun.c (handle_inferior_event): Adjust. Split
3965 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3966 BPSTAT_WHAT_HP_STEP_RESUME.
3967 (insert_step_resume_breakpoint_at_sal): Rename to ...
3968 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3969 parameter. Handle it.
3970 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3971 insert_step_resume_breakpoint_at_sal_1.
3972 (insert_step_resume_breakpoint_at_frame): Rename to ...
3973 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3974 set a high-priority step-resume breakpoint.
3975 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3976 (insert_step_resume_breakpoint_at_caller): Ditto.
3978 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3980 * breakpoint.c (iterate_over_related_breakpoints): New.
3981 (do_map_delete_breakpoint): New.
3982 (delete_command): Pass do_map_delete_breakpoint to
3983 map_breakpoint_numbers.
3984 (do_disable_breakpoint): New.
3985 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3987 (do_enable_breakpoint): Rename to ...
3988 (enable_breakpoint_disp): ... this.
3989 (enable_breakpoint): Adjust.
3990 (do_enable_breakpoint): New.
3991 (enable_once_breakpoint): Delete.
3992 (do_map_enable_breakpoint): New.
3993 (do_map_enable_once_breakpoint): New.
3994 (enable_once_command, enable_delete_command)
3995 (delete_trace_command): Iterate over the breakpoint's related
3998 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4000 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4001 for ALPHA_ZERO_REGNUM.
4002 (alpha_supply_int_regs): Explicitly supply zero as the value for
4003 ALPHA_ZERO_REGNUM in the register cache.
4004 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4006 2011-05-26 Yao Qi <yao@codesourcery.com>
4008 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4010 2011-05-26 Tristan Gingold <gingold@adacore.com>
4012 * symfile.h (struct dwarf2_section_names): New type.
4013 (struct dwarf2_debug_sections): New type.
4014 (dwarf2_has_info): Add parameter.
4015 * dwarf2read.c (dwarf2_elf_names): New variable.
4016 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4017 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4018 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4019 (dwarf2_has_info): Add names parameter. Pass names
4020 to dwarf2_locate_sections.
4021 (section_is_p): Rewrite using the names parameter.
4022 (dwarf2_locate_sections): Use section names from the names parameter.
4023 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4024 * elfread.c (read_psyms): Ditto.
4025 * machoread.c (macho_symfile_read): Ditto.
4027 2011-05-25 Andreas Schwab <schwab@redhat.com>
4030 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4032 2011-05-24 Keith Seitz <keiths@redhat.com>
4035 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4036 (decode_compound): Unconditionally call keep_name_info.
4038 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4040 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4041 scope, clear its command list.
4042 (map_breakpoint_numbers): Don't walk the related breakpoints list
4045 2011-05-24 Tom Tromey <tromey@redhat.com>
4047 * MAINTAINERS: Move Jim Blandy to past maintainers.
4049 2011-05-24 Tristan Gingold <gingold@adacore.com>
4051 * symfile.h (enum dwarf2_section_enum): New type.
4052 (dwarf2_get_section_info): New prototype.
4053 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4054 section_name by sect. Use a switch to select the info.
4055 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4056 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4058 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4060 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4061 shared library event breakpoint if there's no execution.
4063 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4065 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4066 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4068 2011-05-23 Tom Tromey <tromey@redhat.com>
4070 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4073 2011-05-23 Doug Evans <dje@google.com>
4075 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4076 entry for RuntimeError to doc string.
4078 2011-05-23 Jerome Guitton <guitton@adacore.com>
4080 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4081 sequence for probing loops.
4083 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4085 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4088 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4090 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4091 zero as the value for %g0 in the register cache.
4092 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4093 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4095 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4097 * infrun.c (proceed): Set previous_inferior_ptid here.
4098 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4099 inferior_ptid, not null_ptid.
4100 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4101 (fetch_inferior_event): Nor here.
4103 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4105 * inf-loop.c (inferior_event_handler): Only output a message if
4108 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4110 * MAINTAINERS: Update my e-mail address.
4112 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4114 * infrun.c (proceed): Switch the inferior event loop to
4115 INF_EXEC_COMPLETE if the target refused to resume from a
4118 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4120 * infcmd.c: Include "inf-loop.h".
4121 (step_once): When stepping into an inline subroutine, pretend the
4122 target has run. If the target can async, switch the inferior
4123 event loop to INF_EXEC_COMPLETE.
4124 * inferior.h (user_visible_resume_ptid): Declare.
4125 * infrun.c (user_visible_resume_ptid): New function, factored out
4128 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4129 that the current thread is running. Merge async and sync
4132 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4134 * infcmd.c (step_1): Simplify synchronous case.
4136 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4138 * tracepoint.c: Include exceptions.h.
4139 (TFILE_PID): Move higher in file.
4140 (tfile_open): Delay pushing the tfile target until we're assured
4141 the tfile header is present in the file. Wrap reading the initial
4142 newline-terminated lines in TRY_CATCH. Pop the target if the
4143 initial setup failed. Add the tfile's thread immediately
4144 aftwards, before any non-essential setup. Don't skip
4145 post_create_inferior if there are no traceframes present in the
4147 (tfile_close): Remove redundant check for null before xfree call.
4148 (tfile_thread_alive): New function.
4149 (init_tfile_ops): Register it as to_thread_alive callback.
4151 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4153 * tracepoint.c (tfile_open): Delete #if 0'd code.
4155 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 Fix -readnow for -gdwarf-4 unused type units.
4158 * dwarf2read.c (struct signatured_type): Remove the field offset.
4159 (create_signatured_type_table_from_index): Remove its initialization.
4160 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4161 instead. Add a complaint call.
4162 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4163 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4164 (lookup_signatured_type_at_offset, read_signatured_type)
4165 (write_one_signatured_type): Update the field for per_cu.
4167 2011-05-19 Tom Tromey <tromey@redhat.com>
4169 * python/py-inferior.c (python_inferior_exit): Use
4171 (python_on_resume): Likewise.
4173 2011-05-19 Matt Rice <ratmice@gmail.com>
4175 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4177 2011-05-19 Hui Zhu <teawater@gmail.com>
4179 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4181 2011-05-19 Hui Zhu <teawater@gmail.com>
4183 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4185 2011-05-18 Tom Tromey <tromey@redhat.com>
4187 * dwarf2read.c (dwarf2_add_field): Constify.
4188 * value.c (value_static_field): Constify.
4189 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4191 * ax-gdb.c (gen_static_field): Constify
4193 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4195 * linux-nat.c (kill_callback): Use SIGKILL first.
4197 2011-05-18 Joel Brobecker <brobecker@adacore.com>
4199 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4201 2011-05-18 Tom Tromey <tromey@redhat.com>
4203 * value.c (value_fn_field): Constify.
4204 * symtab.c (gdb_mangle_name): Constify.
4205 * stabsread.c (update_method_name_from_physname): Make 'physname'
4207 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4208 const. Use explicit fputc_filtered loop.
4209 (pascal_type_print_base): Constify.
4210 * p-lang.h (pascal_type_print_method_args): Update.
4211 * linespec.c (add_matching_methods): Constify.
4212 (add_constructors): Likewise.
4213 * jv-typeprint.c (java_type_print_base): Constify.
4214 * gdbtypes.h (struct cplus_struct_type)
4215 <fn_fieldlist.fn_field.physname>: Now const.
4216 * dwarf2read.c (compute_delayed_physnames): Constify.
4217 (dwarf2_add_member_fn): Likewise.
4218 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4220 2011-05-18 Pedro Alves <pedro@codesourcery.com>
4222 * infrun.c (resume): Mention which is the current thread, and its
4223 current PC in debug output.
4224 (prepare_to_proceed): Mention the thread switching in debug
4227 2011-05-18 Tom Tromey <tromey@redhat.com>
4229 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4230 path check. Use xmalloc and cleanups.
4231 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4233 2011-05-17 Tom Tromey <tromey@redhat.com>
4235 * cp-valprint.c (cp_print_value_fields): Catch errors from
4238 2011-05-17 Tom Tromey <tromey@redhat.com>
4240 * dwarf2read.c (dwarf2_get_die_type): Call
4241 get_die_type_at_offset.
4242 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4243 get_base_type function.
4245 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
4247 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4250 2011-05-16 Doug Evans <dje@google.com>
4252 * python/py-auto-load.c (source_section_scripts): Mention objfile
4255 2011-05-15 Doug Evans <dje@google.com>
4257 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4258 (try_thread_db_load_from_pdir): Call it. If unable to find
4259 libthread_db in directory of libpthread, see if we're looking at
4260 the separate-debug-info copy.
4262 * python/py-autoload.c (print_script): Print "Missing" instead of
4263 "No" for missing scripts.
4264 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4266 2011-05-13 Doug Evans <dje@google.com>
4268 * ui-file.c (stdio_file_write_async_safe): Add comment.
4270 2011-05-14 Hui Zhu <teawater@gmail.com>
4272 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4274 2011-05-13 Doug Evans <dje@google.com>
4276 Support $pdir and $sdir in libthread-db-search-path.
4277 * NEWS: Mention $sdir,$pdir.
4278 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4279 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4280 (try_thread_db_load_from_sdir): New function.
4281 (try_thread_db_load_from_dir): New function.
4282 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4283 system directories if search of libthread-db-search-path fails,
4284 that is now done via $sdir.
4285 (has_libpthread): New function.
4286 (thread_db_load): Remove search for libthread_db in directory of
4287 libpthread, that is now done via $pdir.
4289 * NEWS: Mention "info auto-load-scripts".
4290 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4291 script_not_found_warning_printed.
4292 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4293 all callers updated. Initialize script_not_found_warning_printed.
4294 (get_auto_load_pspace_data_for_loading): New function.
4295 (maybe_add_script): New function.
4296 (source_section_scripts): Simplify. Only print one warning regardless
4297 of the number of auto-load scripts not found.
4298 (clear_section_scripts): Clear script_not_found_warning_printed.
4299 (auto_load_objfile_script): Record script in hash table.
4300 (count_matching_scripts): New function.
4301 (maybe_print_script): Renamed from maybe_print_section_script, all
4302 callers updated. Rewrite to use ui_out_*.
4303 (info_auto_load_scripts): Renamed from
4304 maintenance_print_section_scripts, all callers updated.
4305 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4306 renamed as "info auto-load-scripts".
4308 2011-05-13 Tom Tromey <tromey@redhat.com>
4310 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4311 (read_sleb128): Likewise.
4313 2011-05-13 Tom Tromey <tromey@redhat.com>
4315 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4318 2011-05-13 Doug Evans <dje@google.com>
4320 * linux-nat.c (debug_linux_nat_async): Delete.
4321 Replace all references to use debug_linux_nat instead.
4322 (show_debug_linux_nat_async): Delete.
4323 (sigchld_handler): Call ui_file_write_async_safe instead of
4325 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4326 * ui-file.c (struct ui_file): New member to_write_async_safe.
4327 (null_file_write_async_safe): New function.
4328 (ui_file_write_async_safe): New function.
4329 (set_ui_file_write_async_safe): New function.
4330 (ui_file_new): Initialize to_write_async_safe.
4331 (stdio_file_write_async_safe): New function.
4332 (struct stdio_file): New member fd.
4333 (stdio_file_new): Initialize to_write_async_safe, fd.
4334 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4336 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4337 (set_ui_file_write_async_safe): Declare.
4338 (ui_file_write_async_safe): Declare.
4340 2011-05-13 Tom Tromey <tromey@redhat.com>
4342 * utils.c (do_value_free): New function.
4343 (make_cleanup_value_free): Likewise.
4344 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4346 (dwarf2_loc_desc_needs_frame): Call
4347 make_cleanup_value_free_to_mark.
4348 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4349 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4351 (new_dwarf_expr_context): Don't call value_mark.
4352 * dwarf2-frame.c (execute_stack_op): Call
4353 make_cleanup_value_free_to_mark.
4354 * defs.h (make_cleanup_value_free): Declare.
4356 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4358 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4359 prepare_execute_command.
4360 * top.c (prepare_execute_command): Return cleanup.
4361 (execute_command): Use cleanup from prepare_execute_command.
4362 * top.h (prepare_execute_command): Change prototype to return
4364 * defs.h (struct value): Add opaque declaration.
4365 (make_cleanup_value_free_to_mark): Add prototype.
4366 * utils.c (do_value_free_to_mark): New function.
4367 (make_cleanup_value_free_to_mark): Likewise.
4369 2011-05-12 Tom Tromey <tromey@redhat.com>
4371 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4372 cast left-hand-side to unsigned.
4374 2011-05-12 Tom Tromey <tromey@redhat.com>
4377 * value.h (value_from_contents): Declare.
4378 * value.c (value_from_contents): New function.
4379 * dwarf2read.c (dwarf_stack_op_name): Add new values.
4380 (dwarf2_get_die_type): New function.
4381 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
4382 (allocate_piece_closure): Acquire reference to values.
4383 (read_pieced_value): Update for value-based expressions.
4384 (write_pieced_value): Likewise.
4385 (free_pieced_value_closure): Call value_free as needed.
4386 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
4387 Update for value-based expressions.
4388 * dwarf2loc.h (dwarf2_get_die_type): Declare.
4389 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
4390 <get_base_type>: New field.
4391 (struct dwarf_expr_piece) <v.value>: Change type.
4392 <v.regno>: New field.
4393 (struct dwarf_expr_context) <mark>: New field.
4394 (dwarf_expr_piece, dwarf_expr_fetch): Update.
4395 (dwarf_expr_pop, dwarf_expr_push): Remove.
4396 (dwarf_expr_push_address): Declare.
4397 * dwarf2expr.c (dwarf_arch_cookie): New global.
4398 (struct dwarf_gdbarch_types): New.
4399 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
4401 (dwarf_expr_push): Change type of 'value' argument. Update. Now
4403 (dwarf_expr_push_address): New function.
4404 (dwarf_expr_pop): Now static.
4405 (dwarf_expr_fetch): Change return type.
4406 (dwarf_require_integral): New function.
4407 (dwarf_expr_fetch): Simplify.
4408 (add_piece): Update.
4409 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
4411 (execute_stack_op) <sign_ext>: Remove.
4412 Use values for DWARF stack.
4413 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
4414 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4416 (_initialize_dwarf2expr): New function.
4417 (add_piece): Update.
4418 (new_dwarf_expr_context): Set new field.
4419 (free_dwarf_expr_context): Call value_free_to_mark.
4420 * dwarf2-frame.c (no_base_type): New function.
4421 (execute_stack_op): Set get_base_type field. Update.
4423 2011-05-12 Tom Tromey <tromey@redhat.com>
4425 * dwarf2read.c (read_common_block): Fix formatting.
4427 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
4429 * breakpoint.c (disable_breakpoint): Disable all locations
4430 associated with a tracepoint on target if a trace experiment is
4432 (disable_command): Disable a specific tracepoint location on target if
4433 a trace experiment is running.
4434 (do_enable_breakpoint): Enable all locations associated with a
4435 tracepoint on target if a trace experiment is running.
4436 (enable_command) Enable a specific tracepoint location on target if a
4437 trace experiment is running.
4438 * target.c (update_current_target): Add INHERIT and de_fault clauses for
4439 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4440 to_disable_tracepoint.
4441 * target.h: Add declaration of struct bp_location.
4442 (struct target_ops): Add new functions
4443 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4444 to_disable_tracepoint to target operations.
4445 (target_supports_enable_disable_tracepoint): New macro.
4446 (target_enable_tracepoint): New macro.
4447 (target_disable_tracepoint): New macro.
4448 * remote.c (struct remote_state): Add new field.
4449 (remote_enable_disable_tracepoint_feature): New.
4450 (remote_protocol_features): Add new entry.
4451 (remote_supports_enable_disable_tracepoint): New.
4452 (remote_enable_tracepoint): New.
4453 (remote_disable_tracepoint): New.
4454 (init_remote_ops): Add remote_enable_tracepoint,
4455 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
4456 to remote operations.
4457 * tracepoint.c (start_tracing): Allow tracing to start without any
4458 tracepoints enabled with just a warning if they can be re-enabled
4460 * NEWS: Add news item for the new behaviour of the enable and disable
4461 GDB commands when applied to tracepoints.
4462 Add news items for the new remote packets QTEnable and QTDisable.
4464 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4466 * config.in: Regenerate.
4467 * configure: Regenerate.
4468 * configure.ac <--with-system-readline> (for readline_echoing_p):
4470 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
4471 (tui_old_rl_echoing_p): ... here.
4472 (tui_setup_io): Rename extern declaration readline_echoing_p to
4473 _rl_echoing_p. Adjust assignments for the both renames.
4475 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4477 * symtab.c (lookup_symtab): Run cleanup before returning.
4479 2011-05-11 Tom Tromey <tromey@redhat.com>
4481 * dwarf2read.c (handle_data_member_location): New function.
4482 (dwarf2_add_field): Use it.
4483 (read_common_block): Likewise.
4485 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4487 Make addrs->SECTINDEX always defined.
4488 * symfile.c (relative_addr_info_to_section_offsets): Check for
4489 SECTINDEX -1, not for zero ADDR.
4490 (addrs_section_compar): Remove checking for invalid SECTINDEX.
4491 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
4492 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
4495 2011-05-10 Doug Evans <dje@google.com>
4497 * linux-thread-db.c: Whitespace cleanup.
4498 (try_thread_db_load_1): Fix comment.
4500 * linux-thread-db.c (set_libthread_db_search_path): New function.
4501 (_initialize_thread_db): Add setter for libthread-db-search-path.
4503 2011-05-09 Doug Evans <dje@google.com>
4505 * NEWS: Mention --with-iconv-bin.
4506 * configure.ac: New option --with-iconv-bin.
4507 * configure: Regenerate.
4508 * config.in: Regenerate.
4509 * defs.h (relocate_gdb_directory): Declare.
4510 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
4511 removed progname parameter, and exported. All callers updated.
4512 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
4514 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
4515 adding missing call to restore_child_signals_mask.
4517 2011-05-09 Pedro Alves <pedro@codesourcery.com>
4519 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
4521 * infrun.c (proceed, start_remote): Adjust.
4522 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
4523 and adjust to not handle it.
4524 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
4525 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
4526 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
4527 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
4528 * windows-nat.c (do_initial_windows_stuff): Adjust.
4529 * infcmd.c (attach_command): Adjust.
4530 (notice_new_inferior): Adjust.
4532 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4534 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
4535 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
4536 * spu-tdep.c (op_selb): Use correct value.
4538 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4540 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
4541 "parent" parameter to symbol_file_add_from_bfd call.
4543 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4544 Thiago Jung Bauermann <bauerman@br.ibm.com>
4546 Implement support for PowerPC BookE masked watchpoints.
4547 * NEWS: Mention masked watchpoint support. Create "Changed commands"
4549 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
4550 method. Initialize to NULL in all existing breakpoint_ops instances.
4551 (struct breakpoint) <hw_wp_mask>: New field.
4552 * breakpoint.c (is_masked_watchpoint): Add prototype.
4553 (update_watchpoint): Don't set b->val for masked watchpoints. Call
4554 breakpoint's breakpoint_ops.works_in_software_mode if available.
4555 (watchpoints_triggered): Handle the case of a hardware masked
4557 (watchpoint_check): Likewise.
4558 (works_in_software_mode_watchpoint): New function.
4559 (insert_masked_watchpoint, remove_masked_watchpoint)
4560 (resources_needed_masked_watchpoint)
4561 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4562 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4563 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4565 (masked_watchpoint_breakpoint_ops): New structure.
4566 (watch_command_1): Check for the existence of the `mask' parameter.
4567 Set b->ops according to the type of hardware watchpoint being created.
4568 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4569 (ppc_linux_remove_mask_watchpoint)
4570 (ppc_linux_masked_watch_num_registers): New functions.
4571 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4572 to_remove_mask_watchpoint and to_masked_watch_num_registers.
4573 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4574 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4575 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4576 (target_masked_watch_num_registers): New functions.
4577 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4578 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4580 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4581 (target_masked_watch_num_registers): Add prototypes.
4583 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4586 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4587 (producer_is_gcc_ge_4_0): New function.
4588 (process_full_comp_unit): Set also symtab->locations_valid. Move the
4589 symtab->language code.
4590 (var_decode_location): Set cu->has_loclist.
4591 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4592 skip. Intialize force_skip from locations_valid. Move the prologue
4593 skipping code into two passes.
4594 * symtab.h (struct symtab): Make the primary field a bitfield. New
4595 field locations_valid.
4597 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4599 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4600 (classify_inner_name): Call cp_lookup_nested_type with
4602 * cp-namespace.c (cp_lookup_nested_type): New variable
4603 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
4604 type_name_no_tag_or_error with saved_parent_type.
4605 * dwarf2read.c (load_partial_dies): Read in any children of
4606 DW_TAG_typedef with complaint in such case.
4607 * gdbtypes.c (type_name_no_tag_or_error): New function.
4608 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4609 * valops.c (destructor_name_p): New comment for parameter type. Remove
4610 type const. Make dname and cp const. Call type_name_no_tag_or_error.
4611 * value.h (destructor_name_p): Remove type const.
4613 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4615 * symtab.c (compare_symbol_name): New function.
4616 (completion_list_add_name, expand_partial_symbol_name): Call it,
4617 remove the variable ncmp.
4618 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4621 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4623 Demote to sw watchpoint only in update_watchpoint.
4624 * breakpoint.c (update_watchpoint): Change between software and
4625 hardware watchpoint for all kinds of watchpoints, not just
4626 read/write ones. Determine b->exact value here instead of
4627 in watch_command_1. Error out if there are not enough resources
4628 for a read or access hardware watchpoint.
4629 (watch_command_1): Remove logic of checking whether there are
4630 enough resources available, since update_watchpoint will do that
4631 work now. Don't set b->exact here. Catch exceptions thrown by
4632 update_watchpoint and delete the watchpoint.
4633 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4634 Use target_exact_watchpoints instead.
4635 (delete_breakpoint): Notify observers only if deleted watchpoint
4636 has a breakpoint number assigned to it.
4638 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
4640 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4642 2011-05-05 Jerome Guitton <guitton@adacore.com>
4644 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4646 (i386_stack_tramp_frame_unwind): New static global.
4647 (i386_match_pattern): New function, extracted from i386_match_insn.
4648 (i386_match_insn): Use i386_match_pattern.
4649 (i386_match_insn_block): New function.
4650 (i386_tramp_chain_in_reg_insns)
4651 (i386_tramp_chain_on_stack_insns): New static variables.
4652 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4655 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4657 * configure.host (xscale*): Don't handle target.
4658 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4661 2011-05-04 Yao Qi <yao@codesourcery.com>
4663 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4665 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4668 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4669 | * elfread.c (elf_symtab_read): Stop memory leak.
4671 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4673 * nto-tdep.c (nto_target): Replace deprecated call to
4674 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4676 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4678 Fix false GCC warning.
4679 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4681 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4683 * breakpoint.c (update_watchpoint): Move code to change
4684 the enable state of breakpoint from here ...
4685 (do_enable_breakpoint): ... to here.
4687 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4689 * valprint.c (val_print_array_elements): Fixed poor performance
4690 of printing very large arrays with repeat_count_threshold set
4691 to unlimited. New comment.
4693 2011-04-29 Tom Tromey <tromey@redhat.com>
4695 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4696 (mi_parse): Likewise.
4697 * breakpoint.c (break_range_command): Use sizeof char*, not
4699 (create_breakpoint): Likewise.
4700 (parse_breakpoint_sals): Likewise.
4702 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4704 * linux-nat.c (linux_child_remove_fork_catchpoint)
4705 (linux_child_remove_vfork_catchpoint)
4706 (linux_child_remove_exec_catchpoint): New functions.
4707 (linux_target_install_ops): Install them.
4709 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4713 * varobj.c (install_default_visualizer): Do not install a
4714 visualizer if the varobj is CPLUS_FAKE_CHILD.
4715 (construct_visualizer): Likewise.
4717 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4719 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4720 case insensitive comparison.
4722 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4724 * infrun.c (proceed): Revert previous change.
4725 (resume): Instead, handle the case of signal delivery while stepping
4726 off a breakpoint location here, and only if software single-stepping
4727 is used. Handle nested signals.
4729 2011-04-28 Yao Qi <yao@codesourcery.com>
4731 * arm-tdep.c (copy_unmodified): Rename to ...
4732 (arm_copy_unmodified): .. this. New.
4733 (copy_preload): Move common part to ...
4734 (install_preload): .. this. New.
4735 (arm_copy_preload): New.
4736 (copy_preload_reg): Move common part to ...
4737 (install_preload_reg): ... this. New.
4738 (arm_copy_preload_reg): New.
4739 (copy_b_bl_blx): Move common part to ...
4740 (install_b_bl_blx): .. this. New.
4741 (arm_copy_b_bl_blx): New.
4742 (copy_bx_blx_reg): Move common part to ...
4743 (install_bx_blx_reg): ... this. New.
4744 (arm_copy_bx_blx_reg): New.
4745 (copy_alu_reg): Move common part to ...
4746 (install_alu_reg): ... this. New.
4747 (arm_copy_alu_reg): New.
4748 (copy_alu_shifted_reg): Move common part to ...
4749 (install_alu_shifted_reg): ... this. New.
4750 (copy_ldr_str_ldrb_strb): Move common part to ...
4751 (install_ldr_str_ldrb_strb): ... this. New.
4752 (arm_copy_ldr_str_ldrb_strb): New.
4753 (copy_copro_load_store): Move some common part to ...
4754 (install_copy_copro_load_store): ... this. New.
4755 (arm_copy_copro_load_store): New.
4757 (arm_copy_svc): Renamed from copy_svc.
4758 (copy_undef): Delete.
4759 (arm_copy_undef): Renamed from copy_undef.
4760 (decode_ext_reg_ld_st): Delete.
4761 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4762 (decode_svc_copro): Delete.
4763 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4764 (copy_copro_load_store, copy_alu_imm): update callers.
4765 (copy_extra_ld_st, copy_block_xfer): Likewise.
4766 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4767 (decode_miscellaneous, decode_dp_misc): Likewise.
4768 (decode_ld_st_word_ubyte, decode_media): Likewise.
4769 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4770 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4771 (decode_unconditional, decode_miscellaneous): Likewise.
4772 (decode_media, decode_b_bl_ldmstm): Likewise.
4773 (arm_process_displaced_insn): Likewise..
4774 (decode_misc_memhint_neon): Delete.
4775 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4776 (decode_miscellaneous): Delete.
4777 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4778 (decode_dp_misc): Delete.
4779 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4780 (decode_ld_st_word_ubyte): Delete.
4781 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4782 (decode_media): Delete.
4783 (arm_decode_media): Renamed from decode_media.
4784 (decode_b_bl_ldmstm): Delete.
4785 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4786 (decode_ext_reg_ld_st): Delete.
4787 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4788 (decode_unconditional): Delete.
4789 (arm_decode_unconditional): Renamed from decode_unconditional.
4791 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4793 Case insensitive lookups implementation.
4794 * dwarf2read.c: Include ctype.h.
4795 (struct mapped_index): New field version.
4796 (mapped_index_string_hash): New parameter index_version. New comment
4797 for it. Call tolower appropriately.
4798 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4799 Choose the right index version for mapped_index_string_hash.
4800 (dwarf2_read_index): Support also the index version 5. Initialize the
4801 new struct mapped_index field version.
4802 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4803 (find_slot): Explain the version needs. Pass INT_MAX for the new
4805 (write_psymtabs_to_index): Produce version 5.
4806 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4807 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4808 * psymtab.c (lookup_partial_symbol): Find the
4809 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4811 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4813 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4814 (completion_list_add_name): New variable ncmp, initialize it, use it.
4815 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4816 * utils.c (strcmp_iw): Support case_sensitive_off.
4817 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4818 New function comment part. New variables saved_string1,
4819 saved_string2 and case_pass. Add a proper second pass.
4821 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4823 Replace re_comp/re_exec by regcomp/regexec.
4824 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4825 (search_symbols_name_matches): Use them, use regexec.
4826 (search_symbols): New variable retval_chain, adjust the use of
4827 old_chain against it. Replace re_comp by regcomp. Use the new struct
4828 search_symbols_data fields, use regexec instead of re_exec.
4830 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4832 Format the code for the next patch.
4833 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4834 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4835 New variables c1 and c2.
4837 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4839 * infrun.c (proceed): Do not single-step into signal delivery
4840 when stepping off a breakpoint location.
4841 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4842 (insert_step_resume_breakpoint_at_caller): Likewise.
4843 (insert_step_resume_breakpoint_at_sal): Likewise.
4844 (insert_longjmp_resume_breakpoint): Likewise.
4846 2011-04-27 Yao Qi <yao@codesourcery.com>
4848 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4850 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4852 * procfs.c (procfs_pass_signals): Fix advance declaration.
4854 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4856 * target.h (struct target_ops): Remove to_notice_signals;
4857 add to_pass_signals.
4858 (target_notice_signals): Remove.
4859 (target_pass_signals): Add prototype.
4860 * target.c (update_current_target): Remove to_notice_signals;
4861 mention to_pass_signals.
4862 (target_pass_signals): New function.
4863 (debug_to_notice_signals): Remove.
4864 (setup_target_debug): Do not install debug_to_notice_signals.
4866 * infrun.c (signal_pass): New global.
4867 (resume): Call target_pass_signals.
4868 (handle_inferior_event): Report all signals while stepping over
4869 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4870 are re-inserted when stepping over a signal handler.
4871 (signal_cache_update): New function.
4872 (signal_stop_update): Call it.
4873 (signal_print_update): Likewise.
4874 (signal_pass_update): Likewise.
4875 (handle_command): Call signal_cache_update and target_pass_signals
4876 instead of target_notice_signals.
4877 (_initialize_infrun): Initialize signal_pass.
4879 * linux-nat.c (pass_mask): New global.
4880 (linux_nat_pass_signals): New function.
4881 (linux_nat_create_inferior): Report all signals initially.
4882 (linux_nat_attach): Likewise.
4883 (linux_nat_resume): Use pass_mask to decide whether to directly
4884 handle an inferior signal.
4885 (linux_nat_wait_1): Likewise.
4886 (linux_nat_add_target): Install to_pass_signals callback.
4888 * nto-procfs.c (notice_signals): Remove.
4889 (procfs_resume): Do not call notice_signals.
4890 (procfs_notice_signals): Remove.
4891 (procfs_pass_signals): New function.
4892 (init_procfs_ops): Install to_pass_signals callback instead of
4893 to_notice_signals callback.
4894 (_initialize_procfs): Report all signals initially.
4896 * procfs.c (procfs_notice_signals): Remove.
4897 (procfs_pass_signals): New function.
4898 (procfs_target): Install to_pass_signals callback instead of
4899 to_notice_signals callback.
4900 (register_gdb_signals): Remove.
4901 (procfs_debug_inferior): Report all signals initially.
4902 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4904 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4905 parameters; use them instead of calling signal_..._state routines.
4906 (remote_notice_signals): Remove.
4907 (remote_start_remote): Report all signals initially.
4908 (remote_resume): Do not call remote_pass_signals.
4909 (_initialize_remote): Install to_pass_signals callback instead of
4910 to_notice_signals callback.
4912 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4914 * breakpoint.c (user_settable_breakpoint): Delete.
4915 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4916 (delete_command): Check user_breakpoint_p instead of looking at
4917 the breakpoint's type.
4918 (disable_command): Ditto.
4919 (enable_command): Ditto.
4920 (delete_trace_command): Use user_breakpoint_p instead of looking
4921 at the breakpoint number directly. When checking if there are
4922 user visible tracepoints, in order to know whether to ask the user
4923 for confirmation, check whether the breakpoint is actually a
4926 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4928 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4931 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4933 MI breakpoint notifications.
4935 * annotate.c (breakpoint_changed): Adjust parameter type.
4936 * breakpoint.c (set_breakpoint_condition): Adjust to change
4937 in breakpoint_modified type.
4938 (breakpoint_set_commands): Likewise.
4939 (do_map_commands_command): Likewise.
4940 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4941 changed after bumping hit count.
4942 (bpstat_stop_status): Likewise.
4943 (print_one_breakpoint_location): Don't wrap in tuple here.
4944 (print_one_breakpoint): Always print individual locations.
4945 For locations, use unnamed tuple.
4946 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4948 (create_catchpoint, create_syscall_event_catchpoint): Call
4949 breakpoint_created obsever.
4950 (mention): Don't call breakpoint_created observer.
4951 (create_breakpoint_sal): Call breakpoint_created observer.
4952 (create_breakpoint, watch_command_1): Likewise.
4953 (create_ada_exception_breakpoint): Likewise.
4954 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4955 (locations_are_equal): New.
4956 (update_breakpoint_locations): If locations were changed, notify.
4957 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4958 Call breakpoint_modified observer.
4960 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4961 (mi_cmd_break_insert): Don't set observers for modify and delete.
4962 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4963 (mi_breakpoint_created, mi_breakpoint_deleted)
4964 (mi_breakpoint_modified): New.
4965 (mi_interpreter_init): Hook the above.
4966 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4967 while -break-* commands are executing.
4968 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4969 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4971 (mi_ui_out_impl): Hook in mi_redirect.
4972 (mi_field_skip): True to the name, skip the field, don't output
4973 a field with an empty value.
4975 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4976 (gdbpy_breakpoint_deleted): Adjust.
4977 * tui/tui-hooks.c (tui_event_create_breakpoint)
4978 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4980 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4982 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4983 (procfs_remove_hw_watchpoint): Likewise.
4985 2011-04-26 Michael Walle <michael@walle.cc>
4987 * remote.c (remote_start_remote): Ack packet after sending the
4990 2011-04-26 Yao Qi <yao@codesourcery.com>
4992 * linux-nat.c: Move common macros to ...
4993 Include linux-ptrace.h.
4994 * common/linux-ptrace.h: ... here. New.
4996 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4998 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4999 !objfile_has_partial_symbols. New comment.
5000 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5001 SYM_READ_PSYMBOLS is not present. Extend the comment.
5002 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5004 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5006 * defs.h (ENUM_BITFIELD): Remove.
5008 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5009 Eli Zaretskii <eliz@gnu.org>
5011 * NEWS: Document the new gdbserver --once option.
5013 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5015 * MAINTAINERS: Update my email address.
5017 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5019 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5020 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5021 function call if __STDC_ISO_10646__ macro is defined.
5022 (intermediate_encoding): New prototype.
5023 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5024 to generate compile time error for unsupported gdb_wchar_t size.
5025 (ENDIAN_SUFFIX): New macro.
5026 (intermediate_encoding): New function.
5028 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5030 * ada-lang.c (struct add_partial_datum): Update the comment for
5031 expand_partial_symbol_name.
5032 (ada_add_partial_symbol_completions): Rename to ...
5033 (ada_expand_partial_symbol_name): ... here, change return type, update
5034 function comment, call symbol_completion_match instead of
5035 symbol_completion_add.
5036 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5037 and ada_expand_partial_symbol_name.
5038 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5040 (dw2_map_symbol_names): Remove.
5041 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5042 * psymtab.c (map_symbol_names_psymtab): Remove.
5043 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5044 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5046 (psym_functions): Unlist map_symbol_names_psymtab.
5047 (map_partial_symbol_names): Rename to ...
5048 (expand_partial_symbol_names): ... here, change the FUN type, call
5049 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5050 * psymtab.h (map_partial_symbol_names): Rename to ...
5051 (expand_partial_symbol_names): ... here, change the FUN type.
5052 * symfile.h (struct quick_symbol_functions): Update the description of
5053 expand_symtabs_matching. Remove map_symbol_names.
5054 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5055 (struct add_name_data): Update the comment for
5056 expand_partial_symbol_name.
5057 (add_partial_symbol_name): Rename to ...
5058 (expand_partial_symbol_name): ... here. Replace
5059 completion_list_add_name call by strncmp.
5060 (default_make_symbol_completion_list_break_on): Use now
5061 expand_partial_symbol_names and expand_partial_symbol_name.
5062 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5064 2011-04-20 Tom Tromey <tromey@redhat.com>
5066 * dwarf2read.c (save_gdb_index_command): Replace format
5067 documentation with a pointer to the manual.
5069 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5071 * regcache.c: Include remote.h.
5072 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5073 (regcache_dump): Handle regcache_dump_remote.
5074 (maintenance_print_remote_registers): New function.
5075 (_initialize_regcache): Install "maint print remote-registers"
5077 * remote.c (map_regcache_remote_table): New function, factored out
5079 (init_remote_state): ... here.
5080 (remote_register_number_and_offset): New.
5081 * remote.h (remote_register_number_and_offset): Declare.
5083 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5085 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5086 null_ptid, assume and allow a NULL address space, instead of
5087 asking the target for the ptid's address space.
5088 * infrun.c (ptid_is_pid): Remove assertion.
5090 2011-04-19 Tom Tromey <tromey@redhat.com>
5092 * windows-tdep.c (windows_xfer_shared_library):
5093 * windows-nat.c (get_module_name, windows_make_so):
5094 * v850-tdep.c (v850_handle_pushm):
5095 * utils.c (null_cleanup, gdb_realpath):
5096 * ui-out.c (get_next_header):
5097 * tracepoint.c (clear_traceframe_info):
5098 * symtab.c (lookup_symtab):
5099 * serial.h (struct serial_ops):
5100 * mipsread.c (read_alphacoff_dynamic_symtab):
5101 * infcmd.c (print_return_value):
5102 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5103 * f-exp.y (parse_number):
5104 * exceptions.c (catch_exceptions):
5105 * dummy-frame.c (dummy_frame_this_id):
5106 * defs.h (struct cleanup):
5107 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5108 * arm-tdep.c (arm_push_dummy_call):
5109 * amd64-tdep.h (amd64_collect_xsave):
5110 * amd64-tdep.c (amd64_collect_xsave):
5111 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5112 * README (typing): Remove duplicate words.
5113 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5114 * infrun.c (siginfo_value_read): Fix typo.
5115 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5116 * top.c (source_line_number): Add comma.
5118 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5120 * thread.c (any_live_thread_of_process): Prioritize threads
5121 that are not executing.
5122 * gdbthread.h (any_live_thread_of_process): Update comment
5123 as per above change.
5125 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5127 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5128 (scan_xcoff_symtab): Likewise.
5130 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5132 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5135 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5136 Pedro Alves <pedro@codesourcery.com>
5138 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5139 variables to simplify code and avoid == operator at end of
5140 line as this is against GNU coding standards.
5142 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5144 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5145 lm_name to name_lm to avoid conflict with lm_name function.
5147 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5149 ARI fixes: Use only lowercase function name for static functions.
5150 * nto-tdep.c (LM_ADDR): Rename to...
5151 (lm_addr): New function name.
5152 (nto_relocate_section_addresses): Adapt to change above.
5153 * solib-sunos.c (LM_ADDR): Rename to...
5154 (lm_addr): New function name.
5155 (LM_NEXT): Rename to...
5156 (lm_next): New function name.
5157 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5158 function name changes above.
5159 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5160 (lm_addr_from_link_map): New function name.
5161 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5162 (has_lm_dynamic_from_link_map): New function name.
5163 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5164 (lm_dynamic_from_link_map): New function name.
5165 (LM_ADDR_CHECK): Rename to...
5166 (lm_addr_check): New function name.
5167 (LM_NEXT): Rename to...
5168 (lm_next): New function name.
5169 (LM_PREV): Rename to...
5170 (lm_prev): New function name.
5171 (LM_NAME): Rename to...
5172 (lm_name): New function name.
5173 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5174 (ignore_first_link_map_entry): New function name.
5175 (svr4_keep_data_in_core): Adapt to function name changes above.
5176 (svr4_current_sos): Likewise.
5177 (enable_break): Likewise.
5178 (svr4_relocate_section_addresses): Likewise.
5180 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5183 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5184 sprintf. Simplify code and avoid loosing memory.
5185 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5186 (call0_frame_cache): Remove && operator from end of line.
5188 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5190 Fix libraries displacement if they change whether they were prelinked.
5191 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5192 does not match. Comment why.
5194 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5196 * corelow.c: Include wrapper.h.
5197 (core_open): Call now gdb_target_find_new_threads.
5198 * wrapper.c: Include target.h.
5199 (gdb_target_find_new_threads): New.
5200 * wrapper.h (gdb_target_find_new_threads): New declaration.
5202 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5205 even if !TARGET_HAS_EXECUTION.
5207 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5209 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5210 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5211 bfd_get_synthetic_symtab.
5212 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5213 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5214 parameter parent, remove the call to add_separate_debug_objfile.
5215 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5216 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5217 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5218 parent, new comment for it, call add_separate_debug_objfile for it.
5219 (symbol_file_add_separate): Pass objfile as the parameter parent,
5220 remove the call to add_separate_debug_objfile.
5221 (symbol_file_add_from_bfd): New parameter parent, pass it.
5222 (symbol_file_add): Pass NULL to the new parameter parent.
5223 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5225 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5227 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5230 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5232 Fix Python access to inlined frames.
5233 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5234 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5236 2011-04-15 Tom Tromey <tromey@redhat.com>
5238 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5240 2011-04-15 Gary Benson <gbenson@redhat.com>
5242 * MAINTAINERS: Add myself to write-after-approval section.
5244 2011-04-14 Mike Frysinger <vapier@gentoo.org>
5246 * remote-sim.c (sim_command_completer): New function.
5247 (_initialize_remote_sim): Set completer to sim_command_completer.
5249 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5251 * breakpoint.c (print_exception_catchpoint): Rename to ...
5252 (print_it_exception_catchpoint): ... this.
5253 (gnu_v3_exception_catchpoint_ops): Update with new name
5254 for print_it_exception_catchpoint.
5256 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5258 * MAINTAINERS: Add myself for write after approval privileges.
5260 2011-04-13 Marek Polacek <mpolacek@redhat.com>
5262 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5264 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5266 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5268 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5270 * breakpoint.c (save_breakpoints): Verify whether
5271 breakpoint_ops.print_recreate is defined before calling it.
5273 2011-04-11 Gary Benson <gbenson@redhat.com>
5275 Fix failure with --enable-maintainer-mode.
5276 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5278 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5281 * symtab.c (search_symbols): Reorder the KIND description in the
5282 function comment. Remove the unused 4th element of types, types2,
5283 types3 and types4. New gdb_assert on KIND.
5284 (symtab_symbol_info): Remove the unused 4th element of classnames.
5285 New gdb_assert on KIND.
5286 * symtab.h (enum search_domain): New warning in the enum comment.
5287 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5290 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5292 Fix crash of gdb save-index on a STABS file.
5293 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5296 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5298 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5299 * dwarf2read.c: Include ctype.h.
5300 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5302 (dwarf2_add_field): Fix new_field->accessibility by calling
5303 dwarf2_default_access_attribute. Restructure setting accessibility
5305 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5306 is_private and is_protected by calling
5307 dwarf2_default_access_attribute.
5309 2011-04-08 Kevin Buettner <kevinb@redhat.com>
5311 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5312 to the initialization.
5314 2011-04-08 Steve Ellcey <sje@cup.hp.com>
5316 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5319 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5321 Remove support for old Cygwin 1.5 versions.
5322 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5323 function on old Cygwin version.
5324 * windows-nat.c: Remove cygwin version check and always define
5325 __USEWIDE for Cygwin compilation.
5327 2011-04-07 Yao Qi <yao@codesourcery.com>
5329 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5331 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5332 (arm_copy_svc): Remove parameters INSN and TO.
5333 (decode_svc_copro): Update caller.
5334 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5335 from function pointer `copy_svc_os'.
5337 2011-04-07 Yao Qi <yao@codesourcery.com>
5339 * arm-tdep.c (cleanup_branch): Set a correct return address in
5340 LR for ARM and Thumb.
5342 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5345 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5346 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5347 in the function comment, a new note on values compatibility.
5348 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5349 * symtab.h (SYMBOL_HASH_NEXT): New.
5351 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5353 * ppc-linux-nat.c (check_condition): Add len output parameter.
5354 Set it based on the memory region referenced in the condition
5355 expression. Update all callers.
5357 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5359 Fix crash regression on systems featuring .gdb_index.
5360 * objfiles.c (free_objfile): Move the
5361 forget_cached_source_info_for_objfile call earlier. Comment it.
5362 Extend the comment for objfile_free_data.
5364 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5366 Fix regression of displaying the debug format.
5367 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5370 2011-04-04 Tom Tromey <tromey@redhat.com>
5372 * cli/cli-interp.c (struct captured_execute_command_args):
5374 (do_captured_execute_command): Remove.
5375 (safe_execute_command): Use TRY_CATCH.
5376 * cli/cli-script.c (struct wrapped_read_command_file_args):
5378 (wrapped_read_command_file): Remove.
5379 (script_from_file): Use TRY_CATCH.
5380 * exceptions.c (catch_exception): Remove.
5381 * exceptions.h (catch_exception): Remove.
5382 (deprecated_throw_reason): Update comment.
5383 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
5384 argument to 'context'.
5385 (mi_execute_command): Use TRY_CATCH.
5386 * remote.c (struct start_remote_args): Remove.
5387 (remote_start_remote): Update; change arguments.
5388 (remote_open_1): Use TRY_CATCH.
5390 2011-04-04 Tom Tromey <tromey@redhat.com>
5392 * tracepoint.c (scope_info): Update.
5393 * symtab.c (decode_line_spec): Update.
5394 * python/python.c (gdbpy_decode_line): Update.
5395 * linespec.h (decode_line_1): Update.
5396 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
5397 (decode_compound, find_method, symtab_from_filename)
5398 (decode_variable): Likewise.
5399 * cli/cli-cmds.c (edit_command): Update.
5400 (list_command): Update.
5401 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
5403 (create_breakpoint): Update.
5404 (until_break_command): Update.
5405 (addr_string_to_sals): Update.
5406 (decode_line_spec_1): Update.
5408 2011-04-04 Tom Tromey <tromey@redhat.com>
5410 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
5411 (do_captured_parse_breakpoint): Remove.
5412 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
5413 Use TRY_CATCH directly.
5415 2011-04-04 Tom Tromey <tromey@redhat.com>
5417 * symtab.h (free_symtab): Remove.
5418 (forget_cached_source_info_for_objfile): Declare.
5419 * symmisc.c (free_symtab): Remove.
5420 * source.c (forget_cached_source_info_for_objfile): New function.
5421 (forget_cached_source_info): Use it.
5422 * objfiles.c (free_objfile): Simplify check before calling
5423 clear_current_source_symtab_and_line. Call
5424 forget_cached_source_info_for_objfile.
5426 2011-04-04 Tom Tromey <tromey@redhat.com>
5428 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
5429 (new_symtab): Don't set `free_code' on symtab.
5430 (new_linetable): Properly handle size==0.
5431 * symtab.h (struct symtab) <free_code, free_func>: Remove.
5432 * symmisc.c (free_symtab): Don't free the linetable. Don't call
5434 * jv-lang.c (struct jv_per_objfile_data): New.
5435 (jv_per_objfile_free): Free the data.
5436 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
5437 (get_java_class_symtab): Set the `dict' field on the
5438 jv_per_objfile_data.
5439 (free_class_block): Remove.
5440 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
5443 2011-04-04 Tom Tromey <tromey@redhat.com>
5445 * symfile.c (reread_symbols): Update.
5446 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
5448 * objfiles.c (allocate_objfile): Update.
5449 * cp-support.h (cp_check_possible_namespace_symbols): Don't
5451 * cp-namespace.c (lookup_symbol_file): Don't call
5452 lookup_possible_namespace_symbol.
5453 (initialize_namespace_symtab, get_possible_namespace_block)
5454 (free_namespace_block, cp_check_possible_namespace_symbols)
5455 (check_possible_namespace_symbols_loop)
5456 (check_one_possible_namespace_symbol)
5457 (lookup_possible_namespace_symbol): Remove.
5458 (maintenance_cplus_namespace): Replace with notice.
5459 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
5461 2011-04-04 Tom Tromey <tromey@redhat.com>
5463 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
5464 * symtab.h (struct symtab) <producer, debugformat>: Now const.
5465 * symmisc.c (free_symtab): Don't free debugformat.
5466 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
5467 (record_debugformat, record_producer): Document.
5468 * buildsym.c (end_symtab): Don't save debugformat and producer
5470 (end_symtab): Don't free debugformat and producer fields.
5471 (record_debugformat): Don't call xstrdup.
5472 (record_producer): Likewise.
5474 2011-04-04 Tom Tromey <tromey@redhat.com>
5476 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
5477 (source_line_charpos, source_charpos_line): Remove.
5479 2011-04-04 Tom Tromey <tromey@redhat.com>
5481 * symtab.h (domain_enum): Split in two...
5482 (enum search_domain): New.
5483 (search_symbols): Update.
5484 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
5485 redundant declarations.
5486 (search_symbols): Change 'kind' argument to search_domain.
5488 (print_symbol_info): Likewise.
5489 (symtab_symbol_info): Likewise.
5490 * symfile.h (struct quick_symbol_functions)
5491 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
5492 <expand_symtabs_matching>: Likewise.
5493 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
5494 (expand_symtabs_matching_via_partial): Update.
5495 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
5496 (dw2_expand_symtabs_for_function): Update.
5497 * block.h: Moved anonymous enum...
5498 * defs.h (enum block_enum): ... here. Now named.
5500 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5502 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
5503 * version.in: Bump version to 7.3.50.20110403-cvs.
5505 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5507 * NEWS: Create a new section for the next release branch.
5508 Rename the section of the current branch, now that it has
5511 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5513 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
5514 for "fpscr" in target description.
5516 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5518 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
5519 initialize it. Delay HASH initialization. Strip the part after open
5520 parenthesis for languages with qualifiers. Call do_cleanups.
5522 2011-04-01 Tom Tromey <tromey@redhat.com>
5524 * utils.c (report_command_stats): Don't print `-' for negative
5527 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
5529 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
5530 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
5533 2011-04-01 Joel Brobecker <brobecker@adacore.com>
5535 * breakpoint.h (bpdisp_text): Add declaration.
5536 * breakpoint.c (bpdisp_text): Make non-static.
5537 * ada-lang.c: #include "mi/mi-common.h".
5538 (print_it_exception): Rewrite to improve GDB/MI output.
5540 2011-04-01 Pedro Alves <pedro@codesourcery.com>
5542 * arm-tdep.h (struct address_space): Add forward declaration.
5544 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5546 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
5547 * arm-tdep.c (arm_override_mode): New global.
5548 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
5549 execution mode heuristics.
5550 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
5551 second single-step breakpoint if needed, using
5552 arm_insert_single_step_breakpoint.
5553 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
5554 ARM execution mode, do not call thumb_get_next_pc_raw.
5555 (arm_get_next_pc): Encode execution mode in return value. Call
5556 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5557 (arm_insert_single_step_breakpoint): New function.
5558 (arm_software_single_step): Call it.
5559 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5560 argument to return execution mode of sigreturn target.
5561 (arm_linux_syscall_next_pc): Use it.
5562 (arm_linux_copy_svc): Update call.
5563 (arm_linux_software_single_step): Call
5564 arm_insert_single_step_breakpoint.
5566 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5568 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5571 2011-03-31 Tom Tromey <tromey@redhat.com>
5573 * varobj.c (update_dynamic_varobj_children): Properly handle
5574 errors from iterator.
5576 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
5579 struct linkage name twice.
5581 2011-03-31 Tom Tromey <tromey@redhat.com>
5583 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5584 missing ">" to message.
5586 2011-03-31 Tom Tromey <tromey@redhat.com>
5588 * varobj.c (instantiate_pretty_printer): Remove duplicate
5591 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
5593 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5594 if neither saved value nor register available (e.g. signal frame).
5596 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5598 * macroexp.c (expand): Avoid uninitialized variable
5601 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5603 * breakpoint.c (break_range_command): Fix typo in comment.
5605 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5606 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5608 Implement support for PowerPC BookE ranged breakpoints.
5609 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5610 * breakpoint.h (struct bp_target_info) <length>: New member
5612 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5613 instead of struct breakpoint as argument, and also add ASPACE
5614 and BP_ADDR arguments. Update all callers.
5615 (struct breakpoint_ops) <print_one_detail>: New method.
5616 (struct breakpoint) <addr_string_range_end>: New member variable.
5617 * breakpoint.c (breakpoint_location_address_match): Add function
5619 (insert_bp_location): Set bl->target_info.length.
5620 (breakpoint_here_p): Call breakpoint_location_address_match.
5621 (moribund_breakpoint_here_p): Likewise.
5622 (regular_breakpoint_inserted_here_p): Likewise.
5623 (breakpoint_thread_match): Likewise.
5624 (bpstat_stop_status): Likewise.
5625 (bpstat_check_location): Move call to
5626 breakpoint_ops.breakpoint_hit to the top.
5627 (print_one_breakpoint_location): Call
5628 breakpoint_ops.print_one_detail if available.
5629 (breakpoint_address_match_range): New function.
5630 (breakpoint_location_address_match): Likewise.
5631 (breakpoint_locations_match): Compare the length field of the
5633 (hw_breakpoint_used_count): Count resources used by all locations
5634 in a breakpoint, and use breakpoint_ops.resources_needed if
5636 (breakpoint_hit_ranged_breakpoint): New function.
5637 (resources_needed_ranged_breakpoint): Likewise.
5638 (print_it_ranged_breakpoint): Likewise.
5639 (print_one_ranged_breakpoint): Likewise.
5640 (print_one_detail_ranged_breakpoint): Likewise.
5641 (print_mention_ranged_breakpoint): Likewise.
5642 (print_recreate_ranged_breakpoint): Likewise.
5643 (ranged_breakpoint_ops): New structure.
5644 (find_breakpoint_range_end): New function.
5645 (break_range_command): Likewise.
5646 (delete_breakpoint): Free addr_string_range_end.
5647 (update_breakpoint_locations): Add SALS_END argument. Update
5648 all callers. Calculate breakpoint length if a non-zero SALS_END
5649 is given. Call breakpoint_locations_match instead of
5650 breakpoint_address_match.
5651 (reset_breakpoint): Find SaL of the end of the range if B is a
5653 (_initialize_breakpoint): Register break-range command.
5654 * defs.h (print_core_address): Add function prototype.
5655 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5657 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5658 (ppc_linux_remove_hw_breakpoint): Likewise.
5659 (_initialize_ppc_linux_nat): Initialize
5660 to_ranged_break_num_registers.
5661 * target.c (update_current_target): Add comment about
5662 to_ranged_break_num_registers.
5663 (target_ranged_break_num_registers): New function.
5664 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5666 (target_ranged_break_num_registers): Add function prototype.
5667 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5668 * utils.c (print_core_address): ... here.
5670 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5672 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5673 variable compiler warning.
5675 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5677 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5679 (re_set_breakpoint): ... to here ...
5680 (addr_string_to_sals): ... and here.
5682 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5684 * Makefile.in (SFILES): Add missing C sources.
5685 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5686 Add missing headers.
5688 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5690 * .gitignore: New file.
5692 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5694 * NEWS: Mention new cfi device simulation.
5696 2011-03-29 Tom Tromey <tromey@redhat.com>
5698 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5699 otherwise anonymous types.
5700 (dwarf2_name): Likewise.
5701 * valops.c (value_struct_elt_for_reference): Refine artificial
5702 type logic. Call error if j==-1.
5704 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5706 Fix false GCC warning.
5707 * infcall.c (find_function_addr): Initialize funaddr.
5709 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5711 Fix mingw compilation with --enable-targets=all.
5712 * remote-mips.c (gdb_usleep.h): Include header.
5713 (mips_enter_debug): Use gdb_usleep instead of sleep.
5715 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5717 Support resolution of STT_GNU_IFUNC via breakpoints.
5718 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5719 bp_gnu_ifunc_resolver_return.
5720 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5721 the loop. Support bp_gnu_ifunc_resolver and
5722 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5723 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5725 (bptype_string, print_one_breakpoint_location): Support
5726 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5727 (user_settable_breakpoint): Return true also for
5728 bp_gnu_ifunc_resolver.
5729 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5730 bp_gnu_ifunc_resolver_return.
5731 (set_breakpoint_location_function): New parameter explicit_loc,
5732 describe it. Call find_pc_partial_function_gnu_ifunc with new
5733 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5734 EXPLICIT_LOC is not set.
5735 (set_raw_breakpoint): Set EXPLICIT_LOC for
5736 set_breakpoint_location_function.
5737 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5738 set_breakpoint_location_function.
5739 (mention): Support bp_gnu_ifunc_resolver and
5740 bp_gnu_ifunc_resolver_return.
5741 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5742 set_breakpoint_location_function.
5743 (update_breakpoint_locations): Remove static.
5744 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5745 bp_gnu_ifunc_resolver_return.
5746 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5747 bp_gnu_ifunc_resolver_return.
5748 (update_breakpoint_locations): New declaration.
5749 * elfread.c: Include gdbthread.h and regcache.h.
5750 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5752 (elf_gnu_ifunc_fns): Install them.
5753 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5754 (stub_gnu_ifunc_resolver_return_stop): New functions.
5755 (stub_gnu_ifunc_fns): Install them.
5756 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5757 and gnu_ifunc_resolver_return_stop.
5758 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5760 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5762 STT_GNU_IFUNC reader implementation.
5763 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5764 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5765 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5766 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5767 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5768 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5769 (elf_gnu_ifunc_resolve_addr): New.
5770 (elf_symfile_read): Call elf_rel_plt_read.
5771 (elf_gnu_ifunc_fns): New.
5772 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5773 Install elf_gnu_ifunc_fns.
5774 * infcall.c (find_function_return_type): New function.
5775 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5776 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5777 (stub_gnu_ifunc_resolve_name): New functions.
5778 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5779 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5780 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5782 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5784 Code cleanup for later STT_GNU_IFUNC support.
5785 * infcall.c (find_function_addr): Remove variable code, use explicit
5786 dereferences for it. Move VALUE_TYPE initialization later.
5788 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5790 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5791 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5792 (clear_pc_function_cache): Clear it.
5793 (find_pc_partial_function): Rename to ...
5794 (find_pc_partial_function_gnu_ifunc): ... this function. New
5795 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5796 (find_pc_partial_function): New wrapper for this function.
5797 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5799 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5801 GDB internal type support for STT_GNU_IFUNC.
5802 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5803 (elf_symtab_read): Set mst_text_gnu_ifunc for
5804 BSF_GNU_INDIRECT_FUNCTION.
5805 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5806 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5807 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5808 nodebug_got_plt_symbol.
5809 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5810 (TYPE_GNU_IFUNC): New.
5811 (struct main_type): New field flag_gnu_ifunc.
5812 (struct builtin_type): New field builtin_func_func.
5813 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5814 nodebug_got_plt_symbol.
5815 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5816 (in_gnu_ifunc_stub): New.
5817 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5819 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5820 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5821 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5823 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5824 * symtab.c (search_symbols): Likewise.
5825 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5826 and mst_slot_got_plt.
5827 (in_gnu_ifunc_stub): New declaration.
5829 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5831 Support a ring of related breakpoints.
5832 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5833 other functions, add gdb_assert.
5834 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5835 watchpoint_del_at_next_stop.
5836 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5837 (bpstat_stop_status): Handle ring in related_breakpoint.
5838 (set_raw_breakpoint_without_location): Initialize ring in
5840 (delete_breakpoint): Handle ring in related_breakpoint, use
5841 watchpoint_del_at_next_stop.
5842 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5844 2011-03-28 Tom Tromey <tromey@redhat.com>
5847 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5848 with `language_minimal'.
5850 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5852 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5853 instead of checking for STT_ARM_TFUNC symbol type.
5855 2011-03-25 Tom Tromey <tromey@redhat.com>
5857 * linespec.c (symbol_found): Restore line-based result for
5858 non-LOC_LABEL symbols.
5860 2011-03-25 Kai Tietz <ktietz@redhat.com>
5862 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5863 instead of strcmp for comparison.
5864 (tui_source_is_displayed): Likewise.
5865 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5867 2011-03-24 Mark Wielaard <mjw@redhat.com>
5869 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5871 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5872 (find_partial_die_in_comp_unit): Likewise in comment.
5873 (read_attribute_value): Likewise.
5874 (lookup_die_type): Likewise.
5875 (dwarf_form_name): Likewise.
5876 (dump_die_shallow): Likewise.
5877 (follow_die_ref_or_sig): Likewise.
5879 2011-03-24 Tom Tromey <tromey@redhat.com>
5881 PR breakpoints/11816:
5882 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5883 (decode_compound): Update.
5884 (find_function_symbol): New function.
5885 (decode_dollar): Update.
5886 (decode_label): Add 'function_symbol' parameter. Handle
5887 function-relative labels.
5888 (decode_variable): Update.
5889 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5890 not its line. Set `special_display' and canonical name for
5893 2011-03-24 Tom Tromey <tromey@redhat.com>
5895 * linespec.h (struct linespec_result) <special_display>: New
5897 * breakpoint.h (struct breakpoint) <display_canonical>: New
5899 * breakpoint.c (print_breakpoint_location): Respect
5901 (create_breakpoint_sal): Add 'display_canonical' parameter.
5902 (create_breakpoints_sal): Update.
5903 (create_breakpoint): Update.
5905 2011-03-24 Tom Tromey <tromey@redhat.com>
5907 * symtab.c (decode_line_spec): Update.
5908 * linespec.c (build_canonical_line_spec): Change type of
5910 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5911 (find_method, decode_all_digits, decode_dollar, decode_label)
5912 (symbol_found): Likewise.
5913 (init_linespec_result): New function.
5914 * breakpoint.c (struct captured_parse_breakpoint_args)
5915 <canonical_p>: New field, replaces addr_string_p.
5916 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5918 (parse_breakpoint_sals): Likewise.
5919 (do_captured_parse_breakpoint): Update.
5920 (create_breakpoint): Use struct linespec_result.
5921 (until_break_command): Update.
5922 (breakpoint_re_set_one): Update.
5923 (decode_line_spec_1): Update.
5924 * linespec.h (struct linespec_result): New.
5925 (init_linespec_result): Declare.
5927 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5929 * regcache.c (regcache_raw_read): If the target didn't supply a
5930 given raw register, mark it as unavailable.
5932 2011-03-23 Kai Tietz <ktietz@redhat.com>
5934 * breakpoint.c (clear_command): Use filename_cmp
5935 instead of strcmp for comparison.
5936 * buildsym.c (watch_main_source_file_lossage): Likewise.
5937 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5938 checking just for slash.
5939 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5940 strrchr and filename_cmp instead of strcmp for filenames.
5941 (add_old_header_file): Use filename_cmp
5942 instead of strcmp for comparison.
5943 * exec.c (exec_set_section_address): Likewise.
5944 * macrotab.c (macro_lookup_inclusion): Likewise.
5945 (macro_lookup_inclusion): Likewise.
5946 * elfread.c (_initialize_elfread): Likewise.
5947 (elfstab_offset_sections): Likewise.
5948 (elfstab_offset_sections): Use lbasename instead of
5950 * mdebugread.c (parse_partial_symbols): Likewise.
5951 (arse_partial_symbols): Use filename_(n)cmp instead of
5952 str(n)cmp for comparison.
5953 * minsyms.c (lookup_minimal_symbol): Likewise.
5954 * psymtab.c (read_psymtabs_with_filename): Likewise.
5955 * solib.c (solib_read_symbols): Likewise.
5956 (reload_shared_libraries_1): Likewise.
5957 * symmisc.c (maintenance_print_symbols): Likewise.
5958 * symfile.c (separate_debug_file_exists): Likewise.
5959 (reread_symbols): Likewise.
5960 (find_separate_debug_file_by_debuglink): Likewise.
5961 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5962 * source.c (add_path): Likewise.
5963 * symtab.c (filename_seen): Likewise.
5964 (file_matches): Likewise.
5965 (print_symbol_info): Likewise.
5966 (maybe_add_partial_symtab_filename): Likewise.
5967 (make_source_files_completion_list): Likewise.
5968 * xml-syscall.c (init_sysinfo): Likewise.
5969 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5970 IS_DIR_SEPARATOR for checking for trailing path separator.
5972 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5974 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5975 label abort_expression.
5976 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5977 DWARF_VALUE_OPTIMIZED_OUT.
5979 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5983 to linkage_name. Invert its value. Update the function comment.
5984 (c_type_print_varspec_suffix): Invert it at the caller.
5985 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5987 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5989 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5990 errors when reading the `stop_pc'.
5991 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5994 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5996 * NEWS: Document gdb.Write stream keyword.
5998 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6001 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6002 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6003 (dwarf2_add_field): Fix new_field->accessibility for
6004 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6006 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6010 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6011 other error classes. Do not print stack trace.
6013 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6015 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6016 (dwarf2_add_field): Fix new_field->accessibility for
6017 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6019 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6021 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6022 encountering a load via a non-SP register.
6024 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6026 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6027 field in returned unwinder.
6029 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6031 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6033 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6035 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6038 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6040 * frame.c (frame_unwind_register): Throw an error if unwinding the
6042 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6043 an unwind stop reason.
6044 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6045 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6046 UNWIND_UNAVAILABLE>: New.
6047 * inline-frame.c (inline_frame_unwind): Install
6048 default_frame_unwind_stop_reason.
6049 * frame-unwind.c: Include "exceptions.h".
6050 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6051 (default_frame_unwind_stop_reason): New.
6052 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6053 (default_frame_unwind_stop_reason): Declare.
6054 (struct frame_unwind) <stop_reason>: New function pointer.
6056 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6057 * dwarf2-frame.c: Include exceptions.h.
6058 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6059 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6060 computing the CFA. If such an error was thrown, set
6061 unavailable_retaddr.
6062 (dwarf2_frame_unwind_stop_reason): New.
6063 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6065 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6066 (dwarf2_signal_frame_unwind): Ditto.
6068 * amd64-tdep.c: Include "exceptions.h".
6069 (struct amd64_frame_cache): New field "base_p".
6070 (amd64_init_frame_cache): Clear it.
6071 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6072 Avoid reading registers with functions that throw if the register
6073 is not necessary to compute the frame base.
6074 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6075 swallowing NOT_AVAILABLE_ERROR.
6076 (amd64_frame_unwind_stop_reason): New.
6077 (amd64_frame_this_id): Don't build a frame id if the frame base
6079 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6080 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6081 base_p if the frame base was computable.
6082 (amd64_sigtramp_frame_unwind_stop_reason): New.
6083 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6084 frame base was unavailable.
6085 (amd64_sigtramp_frame_unwind): Install
6086 amd64_sigtramp_frame_unwind_stop_reason.
6087 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6088 base_p if the frame base was computable.
6089 (amd64_epilogue_frame_unwind_stop_reason): New.
6090 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6091 frame base was unavailable.
6092 (amd64_epilogue_frame_unwind): Install
6093 amd64_epilogue_frame_unwind_stop_reason.
6094 * i386-tdep.c: Include "exceptions.h".
6095 (struct i386_frame_cache): New field "base_p".
6096 (i386_init_frame_cache): Clear it.
6097 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6098 Avoid reading registers with functions that throw if the register
6099 is not necessary to compute the frame base.
6100 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6101 swallowing NOT_AVAILABLE_ERROR.
6102 (i386_frame_unwind_stop_reason): New.
6103 (i386_frame_this_id): Don't build a frame id if the frame base was
6105 (i386_frame_prev_register): Handle unavailable SP.
6106 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6107 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6108 base_p if the frame base was computable.
6109 (i386_epilogue_frame_unwind_stop_reason): New.
6110 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6111 base was unavailable.
6112 (i386_epilogue_frame_unwind): Install
6113 i386_epilogue_frame_unwind_stop_reason.
6114 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6115 base_p if the frame base was computable.
6116 (i386_sigtramp_frame_unwind_stop_reason): New.
6117 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6118 base was unavailable.
6119 (i386_sigtramp_frame_unwind): Install
6120 i386_sigtramp_frame_unwind_stop_reason.
6121 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6122 type's size, not the register's.
6123 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6125 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6126 default_frame_unwind_stop_reason.
6127 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6128 (alpha_heuristic_frame_unwind): Ditto.
6129 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6130 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6131 * avr-tdep.c (avr_frame_unwind): Ditto.
6132 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6134 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6135 * frv-tdep.c (frv_frame_unwind): Ditto.
6136 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6137 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6138 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6139 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6140 (hppa_stub_frame_unwind): Ditto.
6141 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6142 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6143 (ia64_libunwind_frame_unwind)
6144 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6145 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6146 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6147 * m32c-tdep.c (m32c_unwind): Ditto.
6148 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6149 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6150 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6151 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6152 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6153 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6154 * mep-tdep.c (mep_frame_unwind): Ditto.
6155 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6156 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6157 (mips_stub_frame_unwind): Ditto.
6158 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6159 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6160 * mt-tdep.c (mt_frame_unwind): Ditto.
6161 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6162 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6163 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6164 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6165 (s390_sigtramp_frame_unwind): Ditto.
6166 * score-tdep.c (score_prologue_unwind): Ditto.
6167 * sh-tdep.c (sh_frame_unwind): Ditto.
6168 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6169 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6170 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6171 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6172 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6173 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6174 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6175 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6176 (sparc64obsd_trapframe_unwind): Ditto.
6177 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6178 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6179 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6180 * v850-tdep.c (v850_frame_unwind): Ditto.
6181 * vax-tdep.c (vax_frame_unwind): Ditto.
6182 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6183 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6184 * xtensa-tdep.c (xtensa_unwind): Ditto.
6186 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6188 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6189 there's always a frame. Use get_frame_pc_if_available instead of
6190 get_frame_pc, and if there's no PC available, don't look up a
6193 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6195 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6198 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6200 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6203 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6205 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6206 * frame.c (frame_unwind_caller_pc_if_available): New.
6207 * stack.c (frame_info): Handle unavailable PC.
6209 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6211 * frame.c (frame_unwind_pc): Rename to ...
6212 (frame_unwind_pc_if_available): ... this. New `pc' output
6213 parameter. Change return type to int. Gracefully handle
6214 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6215 happened, or 1 otherwise.
6216 (frame_unwind_pc): Reimplement on top of
6217 frame_unwind_pc_if_available.
6218 (get_frame_func): Rename to ...
6219 (get_frame_func_if_available): New `pc' output parameter. Change
6220 return type to int. Gracefully handle the PC not being available.
6221 (get_frame_func): Reimplement on top of
6222 get_frame_func_if_available.
6223 (select_frame): Handle the PC being unavailable.
6224 (get_prev_frame): Handle the PC being unavailable.
6225 (get_frame_pc_if_available): New.
6226 (get_frame_address_in_block_if_available): New.
6227 (find_frame_sal): Handle the frame PC not being available.
6228 * frame.h (get_frame_pc_if_available): Declare.
6229 (get_frame_address_in_block_if_available): Declare.
6230 (get_frame_func_if_available): Declare.
6231 * stack.c (print_frame_info): Handle the PC being unavailable.
6232 (find_frame_funname): Ditto.
6233 (print_frame): Handle the PC being unavailable.
6234 (get_frame_language): Ditto.
6235 * blockframe.c (get_frame_block): Ditto.
6236 * macroscope.c (default_macro_scope): Ditto.
6237 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6239 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6241 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6242 NOT_AVAILABLE_ERROR when evaluating the location expression.
6244 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6246 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6247 returning that the register piece is unavailable/optimized out.
6248 (write_pieced_value): Handle get_frame_register_bytes returning
6249 that the register piece is unavailable/optimized out when doing a
6250 read-modify write of a bitfield.
6251 * findvar.c (value_from_register): Handle get_frame_register_bytes
6252 returning that the register piece is unavailable/optimized out.
6253 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6254 and `unavailablep'. Throw error on bad debug info. Use
6255 frame_register instead of frame_register_read, to fill in the new
6257 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6259 * valops.c: (value_assign): Adjust, and handle
6260 get_frame_register_bytes failing.
6261 * spu-tdep.c: Include exceptions.h.
6262 (spu_software_single_step): Adjust, and handle
6263 get_frame_register_bytes failing.
6264 (spu_get_longjmp_target): Ditto.
6265 * gdbarch.sh (register_to_value): Change to return int. New
6266 parameters `optimizedp' and `unavailablep'.
6267 * gdbarch.h, gdbarch.c: Regenerate.
6268 * i386-tdep.c (i386_register_to_value): Adjust to new
6269 gdbarch_register_to_value interface.
6270 * i387-tdep.c (i387_register_to_value): Ditto.
6271 * i387-tdep.h (i387_register_to_value): Ditto.
6272 * alpha-tdep.c (alpha_register_to_value): Ditto.
6273 * ia64-tdep.c (ia64_register_to_value): Ditto.
6274 * m68k-tdep.c (m68k_register_to_value): Ditto.
6275 * mips-tdep.c (mips_register_to_value): Ditto.
6276 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6278 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6280 * findvar.c (value_of_register): Mark the value as unavailable, if
6281 the register is unavailable.
6282 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6283 (frame_register): New `unavailablep' parameter.
6284 (frame_register_read): Update comment.
6285 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6286 Set it if the register is unavailable. If the register is
6287 unavailable, clear the output buffer.
6288 (frame_register): New `unavailablep' parameter. Pass it down.
6289 (frame_unwind_register): Adjust.
6290 (put_frame_register): Adjust.
6291 (frame_register_read): Adjust. Also return false if the register
6293 (frame_register_unwind_location): Adjust.
6294 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6295 is unavailable, mark the value accordingly.
6296 * stack.c (frame_info): Handle unavailable registers.
6298 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6300 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6301 simplify, using regcache_cooked_read.
6303 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6305 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6306 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6307 (regcache_raw_read_unsigned, regcache_raw_read_part)
6308 (regcache_cooked_read, regcache_cooked_read_signed)
6309 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6310 (regcache_cooked_read_ftype): Change return to enum
6312 * regcache.c: Include exceptions.h
6313 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6314 (do_cooked_read): Change return to enum register_status. Always
6315 forward to regcache_cooked_read.
6316 (regcache_raw_read): Change return to enum register_status. If
6317 the register is not REG_VALID, memset the buffer. Return the
6319 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6320 return the register's status.
6321 (regcache_raw_read_unsigned): Ditto.
6322 (regcache_cooked_read): Change return to enum register_status.
6323 Assert that with read-only regcaches, the register's status must
6324 be known. If the regcache is read-only, and the register is not
6325 REG_VALID, memset the buffer. Return the register's status.
6326 (regcache_cooked_read_signed): Change return to enum
6327 register_status. Handle non-REG_VALID registers and return the
6329 (regcache_cooked_read_unsigned): Change return to enum
6330 register_status. Handle non-REG_VALID registers and return the
6332 (regcache_xfer_part, regcache_raw_read_part)
6333 (regcache_cooked_read_part): Change return to enum
6334 register_status. Return the register's status.
6335 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6337 (regcache_dump): Handle unavailable cooked registers.
6338 * frame.c (do_frame_register_read): Adjust interface to match
6339 regcache_cooked_read_ftype.
6340 * gdbarch.sh (pseudo_register_read): Change return to enum
6342 * gdbarch.h, gdbarch.c: Regenerate.
6344 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6346 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6347 register_status. If reading a raw register indicates the raw
6348 register is not valid, return the raw register's status,
6349 otherwise, return REG_VALID.
6350 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6351 register_status. Handle non-REG_VALID raw registers and return
6352 the register's status.
6353 * arm-tdep.c (arm_neon_quad_read)
6354 (arm_pseudo_read): Change return to enum register_status. Handle
6355 non-REG_VALID raw registers and return the register's status.
6356 * avr-tdep.c (avr_pseudo_register_read): Ditto.
6357 * frv-tdep.c (frv_pseudo_register_read): Ditto.
6358 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6359 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6360 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6362 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6363 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6364 (m32c_part_write, m32c_cat_read, m32c_cat_write)
6365 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6366 (m32c_pseudo_register_read): Change return to enum
6367 register_status. Adjust.
6368 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6369 enum register_status. Return the register's status.
6370 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6371 register_status. Return the register's status.
6372 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6373 * mips-tdep.c (mips_pseudo_register_read): Ditto.
6374 * mt-tdep.c (mt_pseudo_register_read): Ditto.
6375 * rs6000-tdep.c (move_ev_register_func): New typedef.
6376 (e500_move_ev_register): Use it. Change return to enum
6377 register_status. Return the register's status.
6378 (do_regcache_raw_read): New function.
6379 (do_regcache_raw_write): New function.
6380 (e500_pseudo_register_read): Change return to enum
6381 register_status. Return the register's status. Use
6382 do_regcache_raw_read.
6383 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
6384 (dfp_pseudo_register_read): Change return to enum register_status.
6385 Return the register's status.
6386 (vsx_pseudo_register_read): Ditto.
6387 (efpr_pseudo_register_read): Ditto.
6388 (rs6000_pseudo_register_read): Ditto.
6389 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
6390 register_status. Return the register's status.
6391 * sh64-tdep.c (pseudo_register_read_portions): New function.
6392 (sh64_pseudo_register_read): Change return to enum
6393 register_status. Use pseudo_register_read_portions. Return the
6395 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
6396 register_status. Return the register's status.
6397 * sh-tdep.c (pseudo_register_read_portions): New function.
6398 (sh_pseudo_register_read): Change return to enum register_status.
6399 Use pseudo_register_read_portions. Return the register's status.
6400 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
6401 enum register_status. Return the register's status.
6402 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
6403 * spu-tdep.c (spu_pseudo_register_read_spu)
6404 (spu_pseudo_register_read): Ditto.
6405 * xtensa-tdep.c (xtensa_register_read_masked)
6406 (xtensa_pseudo_register_read): Ditto.
6407 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
6409 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6411 * python/py-value.c (valpy_getitem): Fix formatting of error function
6414 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6416 ARI fixes: Add missing internationalization markups throughout
6418 * darwin-nat-info.c: Ditto.
6421 * mi/mi-main.c: Ditto.
6423 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6425 ARI fixes: Add missing internationalization markups throughout
6428 * cp-name-parser.y: Ditto.
6431 * objc-exp.y: Ditto.
6434 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6436 ARI fixes: Messages should have no trailing new lines.
6437 * darwin-nat.c (mach_check_error): Remove trailing new line from
6438 warning function call message.
6439 * record.c (bfdcore_read): Idem for error call.
6441 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6443 * common/signals.c (target_signal_from_host): Add _ markup to error
6444 function call message.
6445 (target_signal_to_host): Add _ markup and remove trailing new line
6446 from warning call message.
6447 (target_signal_from_command): Add _ markup to error function call
6450 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
6454 * python/python.c (gdbpy_write): Accept a stream argument and
6455 operate to the appropriate stream.
6456 (gdbpy_flush): Likewise.
6457 (_initialize_python): Add stream constants.
6458 (finish_python_initialization): Add GdbOutputErrorFile class.
6460 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6462 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6464 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6466 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
6467 to store_signed_integer. Add debug message when relocating CALL
6468 instructions. Fix formatting of debug message.
6469 * i386-tdep.c (i386_relocate_instruction): Ditto.
6471 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6473 * target.h (struct target_ops): Remove to_lookup_symbol field.
6474 (target_lookup_symbol): Delete macro.
6475 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
6476 (update_current_target, setup_target_debug): Remove handling
6477 of to_lookup_symbol target_ops field.
6478 * ada-tasks.c (get_known_tasks_addr): Remove use of
6479 target_lookup_symbol.
6480 * coffread.c (coff_symtab_read): Likewise.
6481 * dbxread.c (read_dbx_symtab): Ditto.
6483 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6486 * configure.ac: Add getthrds declaration check.
6487 * configure, config.in: Regenerate.
6488 * aix-thread.c (getthrds): Declare only if not already declared
6489 in procinfo.h. More declaration out of get_signaled_thread to
6492 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
6494 * python/py-symtab.c: Populate symtab_object_methods,
6496 (stpy_is_valid): New function.
6497 (salpy_is_valid): Ditto.
6498 * python/py-symbol.c: Declare symbol_object_methods. Populate.
6499 (sympy_is_valid): New function.
6500 * python/py-objfile.c: Declare objfile_object_methods. Populate.
6501 (objfpy_is_valid): New function.
6502 * python/py-inferior.c: Populate inferior_object_methods.
6503 (infpy_is_valid): New function.
6504 * python/py-infthread.c: Populate thread_object_methods.
6505 (thpy_is_valid): New function.
6506 * python/py-block.c: Declare block_object_methods. Populate. Declare
6507 block_iterator_object_methods. Populate.
6508 (blpy_is_valid): New function.
6509 (blpy_iter_is_valid): Ditto.
6511 2011-03-16 Keith Seitz <keiths@redhat.com>
6513 * linespec.c (find_methods): Canonicalize NAME before looking
6515 (name_end): New function.
6516 (keep_name_info): New function.
6517 (decode_line_1): Use keep_name_info.
6518 (decode_compound): Likewise.
6519 * cli/cli-utils.h (remove_trailing_whitespace): New function.
6520 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
6523 * linespec.c (locate_first_half): Keep overload information, too.
6524 (decode_compound): Use a string to represent break characters
6526 If P points to a break character, do not increment it.
6527 For C++ and Java, keep overload information and relevant keywords.
6528 If we cannot find a symbol, search the minimal symbols.
6531 * linespec.c (decode_compound): Rename SAVED_ARG to
6533 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
6535 Pass a valid block to lookup_symbol.
6536 (lookup_prefix_sym): Likewise.
6537 (find_method): Construct search name based on SYM_CLASS instead
6539 * psymtab.c (lookup_partial_symbol): Add language parameter.
6540 (lookup_symbol_aux_psymtabs): Likewise.
6541 Don't assume that the psymtab we found was the right one. Search
6542 for the desired symbol in the symtab to be certain.
6543 (psymtab_search_name): New function.
6544 (lookup_partial_symbol): Use psymtab_search_name.
6545 Add language parameter.
6546 (read_symtabs_for_function): Add language parameter and pass to
6547 lookup_partial_symbol.
6548 (find_symbol_file_from_partial): Likewise.
6550 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
6553 * dwarf2read.c (noop_record_line): New function.
6554 (dwarf_decode_lines): Ignore line tables for GCd functions.
6556 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6558 Fix ARI warnings about new lines at the end of messages, which
6559 are unneeded as there is a new line added at the end of the message
6561 * darwin-nat.c (darwin_stop_inferior): Ditto.
6562 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6563 * dfp.c (decimal_to_number): Ditto.
6564 * exec.c (print_section_info): Ditto.
6565 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6566 * osdata.c (get_osdata): Ditto.
6567 * record.c (bfdcore_write): Ditto.
6568 * remote-mips.c (mips_readchar): Ditto.
6569 * remote.c (read_ptid): Ditto.
6570 * ser-mingw.c (ser_windows_raw): Ditto.
6571 * tracepoint.c (add_local_symbols): Ditto.
6572 * windows-nat.c (fake_create_process): Ditto.
6574 2011-03-16 Tom Tromey <tromey@redhat.com>
6576 * tracepoint.c (stop_tracing): Don't declare.
6577 * event-top.c (after_char_processing_hook): Add `(void)'.
6579 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
6581 * NEWS: Add Parameter sub-classing description.
6583 2011-03-16 Kai Tietz <ktietz@redhat.com>
6585 * MAINTAINERS: Update my e-mail address.
6587 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
6589 * MAINTAINERS: Add myself for write after approval privileges.
6591 2011-03-15 Michael Snyder <msnyder@vmware.com>
6593 * frame.c (find_frame_sal): Assert sym is not null.
6595 * dbxread.c (process_one_symbol): Assert 'name' is not null.
6597 * objc-lang.c (selectors_info): Check strchr for null result.
6599 * stabsread.c (define_symbol): Guard against bad stabstring input.
6601 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6603 Remove trailing spaces and tabulations from pascal language
6608 p-valprint.c: Ditto.
6610 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6612 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6613 than LOW. Comment it.
6614 (read_partial_die): Call complaint for inappropriate zero LOWPC or
6615 HIGHPC not strictly higher than LOWPC.
6617 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6619 Fix formatting of function declarations returning a pointer in
6621 * varobj.c (varobj_add_child): Ditto.
6622 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6623 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6625 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6627 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6628 for the "generic" vector ABI used with GCC 4.3 and later.
6629 (ppc64_sysv_abi_return_value): Likewise.
6631 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6633 * infcall.c (call_function_by_hand): Function return value is
6634 always a non_lval, even when using struct_return.
6636 2011-03-15 Pedro Alves <pedro@codesourcery.com>
6638 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6639 (map_display_numbers): New.
6640 (do_delete_display): New.
6641 (undisplay_command): Use map_display_numbers.
6642 (do_enable_disable_display): New.
6643 (enable_disable_display_command): New function.
6644 (enable_display): Delete.
6645 (enable_display_command): New.
6646 (disable_display_command): Reimplement.
6647 (_initialize_printcmd): Adjust "enable display" command to use
6648 `enable_display_command' as callback.
6650 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6652 * NEWS: Add Python breakpoint 'stop' operation.
6654 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6656 * NEWS: Delete duplicate entry. Fix typo.
6658 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6660 Fix ARI warning about function names in first column.
6661 Put prototype declaration on same line as return type.
6662 * objc-exp.y: Ditto.
6664 * python/py-stopevent.h: Ditto.
6665 For long function names, split parameters to
6666 allow function name on same line as return type.
6667 * solib-pa64.c: Ditto.
6670 For long function declaration, use single line.
6671 * hppa-tdep.h: Ditto.
6672 * inferior.h: Ditto.
6674 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6676 * python/python.h: Declare gdbpy_should_stop and
6677 gdbpy_breakpoint_has_py_cond.
6678 * python/python.c: Add python.h to includes. Remove python.h from
6679 HAVE_PYTHON definition
6680 (gdbpy_should_stop): New dummy function.
6681 (gdbpy_breakpoint_has_py_cond): New dummy function.
6682 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6683 sub-classing capabilities.
6684 (gdbpy_should_stop): New function.
6685 (gdbpy_breakpoint_has_py_cond): New function.
6686 (local_setattro): New function.
6687 * breakpoint.c (condition_command): Add check for Python 'stop'
6689 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6690 operation function as part of stop/continue tests.
6692 2011-03-14 Tom Tromey <tromey@redhat.com>
6695 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6696 (needs_frame_dwarf_call): Likewise.
6698 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6700 Fix ARI warning about functions without parameters that do not
6702 * breakpoint.c (all_tracepoints): Replace () by (void).
6703 * f-exp.y (match_string_literal): Ditto.
6705 * m2-exp.y (yylex): Ditto.
6706 * mep-tdep.c (current_me_module): Ditto.
6707 (current_options): Ditto.
6708 (current_cop_data_bus_width): Ditto.
6709 (current_cr_names): Ditto.
6710 (current_cr_is_float): Ditto.
6711 (current_ccr_names): Ditto.
6712 * objc-exp.y (yylex): Ditto.
6713 * p-exp.y (yylex): Ditto.
6714 * remote.c (send_interrupt_sequence): Ditto.
6715 * tracepoint.c (current_trace_status): Ditto.
6716 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6717 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6719 2011-03-11 Michael Snyder <msnyder@vmware.com>
6721 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6722 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6723 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6724 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6725 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6727 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6728 (delete_async_event_handler): Ditto.
6730 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6732 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6734 * top.c (set_verbose): Assert showcmd was found.
6736 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6738 * xtensa-tdep.c (warning_once): Correct style issues.
6740 2011-03-11 Yao Qi <yao@codesourcery.com>
6742 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6744 2011-03-11 Andreas Schwab <schwab@redhat.com>
6746 * common/aclocal.m4: Remove.
6748 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6750 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6751 (xtensa_write_register, xtensa_read_register): Likewise.
6752 (xtensa_hextochar): Removed.
6753 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6755 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6757 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6758 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6759 (xtensa_alloc_frame_cache): Add initialization for new fields.
6760 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6761 (warning_once): New function.
6762 (xtensa_insn_kind): New item c0opc_and.
6763 (call0_classify_opcode): Add the case for AND instruction.
6764 (call0_track_op): Change arguments. New local variable litbase.
6765 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6766 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6768 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6769 (call0_analyze_prologue): Update the comments. Change arguments.
6770 Add the variety of updates to handle extended prologues, which now can
6771 conduct dynamic stack adjustments.
6772 (call0_frame_cache): Likewise.
6773 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6774 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6776 2011-03-10 Michael Snyder <msnyder@vmware.com>
6778 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6779 (cmd_qtframe): Ditto.
6780 (cmd_qtbuffer): Ditto.
6781 (cmd_bigqtbuffer): Ditto.
6783 2011-03-10 Tom Tromey <tromey@redhat.com>
6785 * tracepoint.c (trace_actions_command): Update.
6786 * thread.c (thread_apply_command): Update.
6787 * reverse.c (delete_bookmark_command): Update.
6788 (bookmarks_info): Update.
6789 * printcmd.c (undisplay_command): Update.
6790 * memattr.c (mem_enable_command): Update.
6791 (mem_disable_command): Update.
6792 (mem_delete_command): Update.
6793 * inferior.c (detach_inferior_command): Update.
6794 (kill_inferior_command): Update.
6795 (remove_inferior_command): Update.
6796 * cli/cli-utils.h (struct get_number_or_range_state): New.
6797 (init_number_or_range): Declare.
6798 (get_number_or_range): Update.
6799 * cli/cli-utils.c (init_number_or_range): New function.
6800 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6802 (number_is_in_list): Update.
6803 * breakpoint.h (get_tracepoint_by_number): Update.
6804 * breakpoint.c (map_breakpoint_numbers): Update for change to
6805 get_number_or_range.
6806 (find_location_by_number): Use get_number, not
6807 get_number_or_range.
6808 (trace_pass_set_count): New function.
6809 (trace_pass_command): Update for change to get_number_or_range.
6811 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6814 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6816 * python/py-param.c (add_setshow_generic): Add set/show callback
6817 parameters. Register Python object context.
6818 (get_show_value): New function.
6819 (get_set_value): New function.
6820 (call_doc_function): New function.
6821 (get_doc_string): Move behind get_show_value/get_set_value.
6823 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6825 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6827 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6829 * xtensa-tdep.c (xtensa_read_register): Add comment.
6830 (xtensa_write_register): Likewise.
6831 (xtensa_hextochar): Add comment and update to match coding conventions.
6832 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6833 (execute_l32e, execute_s32e, execute_code): Update comments.
6834 (xtensa_exception_handler_t): Update to match coding conventions.
6835 (xtensa_insn_kind): Likewise.
6837 2011-03-09 Michael Snyder <msnyder@vmware.com>
6839 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6841 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6843 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6845 2011-03-09 Tom Tromey <tromey@redhat.com>
6847 * thread.c (restore_selected_frame): Handle frame_level == -1.
6848 (make_cleanup_restore_current_thread): Use
6849 get_selected_frame_if_set.
6850 * frame.h (get_selected_frame_if_set): Declare.
6851 * frame.c (get_selected_frame_if_set): New function.
6853 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6855 * cli/cli-cmds.c (shell_escape): Use lbasename.
6856 * coffread.c (coff_start_symtab): Constify parameter.
6857 (complete_symtab): Constify `name' parameter.
6858 (coff_symtab_read): Constify `filestring' local.
6859 (coff_getfilename): Constify return and `result' local.
6861 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6862 * linux-fork.c (info_checkpoints_command): Use lbasename.
6863 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6864 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6865 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6866 * procfs.c (procfs_make_note_section): Use lbasename.
6867 * tui/tui-io.c (printable_part): Constity return and parameter.
6869 (print_filename): Constify parameters, and local `s'.
6870 (tui_rl_display_match_list): Constify local `temp'.
6872 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6875 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6876 Fix DWARF-3+ DW_AT_accessibility default assumption.
6877 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6878 cu->header.version >= 3.
6880 2011-03-09 Yao Qi <yao@codesourcery.com>
6882 * common/Makefile.in: Remove.
6883 * common/configure: Remove.
6884 * common/configure.ac: Remove.
6886 2011-03-09 Yao Qi <yao@codesourcery.com>
6889 2011-02-11 Yao Qi <yao@codesourcery.com>
6891 * common/Makefile.in: Add copyright header.
6893 2011-02-11 Yao Qi <yao@codesourcery.com>
6895 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6897 * configure.ac: Add common to sub dir.
6898 * configure: Regenerate.
6900 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6902 * xtensa-tdep.c (call0_ret): New function.
6903 (xtensa_skip_prologue): Speed up analysis.
6905 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6907 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6908 while executing MI command -data-list-changed-registers.
6910 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6912 * xtensa-tdep.c (xtensa_read_register): New function.
6913 (xtensa_write_register): New function.
6914 (xtensa_find_register_by_name): New function.
6915 (xtensa_windowed_frame_cache): Update comments in type description.
6916 (xtensa_frame_cache): Likewise.
6917 (xtensa_window_interrupt_insn): New function.
6918 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6919 (xtensa_insn_kind): Add new instructions.
6920 (rwx_special_register): New function.
6921 (call0_classify_opcode): Add new instructions to the analysis.
6922 (a0_saved, a7_saved, a11_saved): New variables.
6923 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6924 (execute_l32e): New function.
6925 (execute_s32e): New function.
6926 (xtensa_exception_handler_t): New type.
6927 (execute_code): New function.
6928 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6929 analysis for Xtensa Window Exception handlers.
6931 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6933 * xtensa-tdep.c (TX_PS): New.
6934 (windowing_enabled): Update to count for Call0 ABI.
6935 (xtensa_hextochar): New.
6936 (xtensa_init_reggroups): Make algorithm generic.
6937 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6939 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6941 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6943 2011-03-08 Michael Snyder <msnyder@vmware.com>
6945 * i386-tdep.c (i386_follow_jump): Check return value of
6947 (i386_analyze_struct_return): Ditto.
6948 (i386_skip_probe): Ditto.
6949 (i386_match_insn): Ditto.
6950 (i386_skip_noop): Ditto.
6951 (i386_analyze_frame_setup): Ditto.
6952 (i386_analyze_register_saves): Ditto.
6953 (i386_skip_prologue): Ditto.
6954 (i386_skip_main_prologue): Ditto.
6956 * target.c (read_whatever_is_readable): Fix memory leak.
6958 * i386-tdep.c (i386_process_record): Document fall through.
6960 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6962 Fix DWARF-3+ DW_AT_accessibility default assumption.
6963 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6964 cu->header.version >= 3.
6966 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6968 * remote.c (remote_check_symbols): Skip if the target has no
6971 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6973 * target.c (read_whatever_is_readable): Reformat comment,
6974 with a minor typo fix. Minor reformatting of the code.
6976 2011-03-08 Yao Qi <yao@codesourcery.com>
6978 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6979 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6980 Use cached result instead of calling displaced_in_arm_mode again.
6981 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6982 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6983 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6984 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6985 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6986 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6987 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6988 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6989 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6990 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6991 (arm_catch_kernel_helper_return): Likewise.
6992 * gdb/arm-tdep.h : Update function declarations.
6994 2011-03-07 Michael Snyder <msnyder@vmware.com>
6996 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6998 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7000 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7002 * elfread.c (elf_symtab_read): Stop memory leak.
7004 * main.c (captured_main): Fix memory leak.
7006 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7008 * ada-lang.c (compare_names): Call is_name_suffix with string1
7011 2011-03-07 Tom Tromey <tromey@redhat.com>
7013 * xcoffread.c (xcoff_sym_fns): Update.
7014 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7015 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7016 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7017 (symbol_file_add_with_addrs_or_offsets): Likewise.
7018 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7019 * somread.c (som_sym_fns): Update.
7020 * psymtab.h (require_partial_symbols): Declare.
7021 * psymtab.c (require_partial_symbols): New function.
7022 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7023 (ALL_OBJFILE_PSYMTABS): Undef.
7024 (ALL_PSYMTABS): Move from psympriv.h.
7025 (lookup_partial_symtab, find_pc_sect_psymtab)
7026 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7027 (find_last_source_symtab_from_partial)
7028 (forget_cached_source_info_partial)
7029 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7030 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7031 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7032 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7033 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7034 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7035 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7036 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7037 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7039 * mipsread.c (ecoff_sym_fns): Update.
7040 * machoread.c (macho_sym_fns): Update.
7041 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7042 (read_psyms): New function.
7043 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7044 (elf_sym_fns_lazy_psyms): New global.
7045 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7046 dwarf2_build_psymtabs.
7047 * dbxread.c (aout_sym_fns): Update.
7048 * coffread.c (coff_sym_fns): Update.
7050 2011-03-07 Tom Tromey <tromey@redhat.com>
7052 * infrun.c (print_exited_reason): Include inferior id and pid in
7055 2011-03-07 Tom Tromey <tromey@redhat.com>
7057 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7059 (target_has_execution_1): Update.
7060 (target_has_execution_current): Declare.
7061 (target_has_execution): Call target_has_execution_current.
7062 (default_child_has_execution): Update.
7063 * target.c (default_child_has_execution): Add 'the_ptid'
7065 (target_has_execution_1): Likewise.
7066 (target_has_execution_current): New function.
7067 (add_target): Update.
7068 (init_dummy_target): Update.
7069 * remote-m32r-sdi.c (m32r_has_execution): New function.
7070 (init_m32r_ops): Use it.
7071 * record.c (record_core_has_execution): Now static. Add
7072 'the_ptid' parameter.
7073 * inferior.c (have_live_inferiors): Don't save current thread.
7074 Use target_has_execution_1.
7076 2011-03-07 Yao Qi <yao@codesourcery.com>
7078 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7080 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7082 * elfread.c (elf_symtab_read): Minor reformatting.
7084 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7086 * objc-lang.c (selectors_info): Minor reformatting.
7088 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7090 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7092 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7093 Michael Snyder <msnyder@vmware.com>
7095 * ada-valprint.c (ada_val_print_array): Move the declaration of
7096 "byte_order" and "elttype" inside the block where these variables
7097 are actually used. Remove some special handling for the case
7098 where "elttype" and "eltlen" are null. Replace by a comment
7099 and a couple of assertion checks.
7101 2011-03-05 Michael Snyder <msnyder@vmware.com>
7103 * source.c (add_path): Replace semicolon at end of block.
7104 * dwarf2expr.c (execute_stack_op): Ditto.
7106 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7108 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7109 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7110 (bfin-*-*): Likewise.
7112 2011-03-05 Michael Snyder <msnyder@vmware.com>
7114 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7115 * mdebugread.c (parse_symbol): Ditto.
7116 * parse.c (parse_exp_in_context): Ditto.
7117 * source.c (add_path): Ditto.
7118 * utils.c (gnu_debuglink_crc32): Ditto.
7119 * varobj.c (variable_language): Ditto.
7121 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7123 2011-03-04 Michael Snyder <msnyder@vmware.com>
7125 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7127 * symfile.c (simple_overlay_update): Check for null return value
7128 from lookup_minimal_symbol.
7130 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7132 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7134 * eval.c (parse_and_eval_address_1): Remove function.
7135 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7136 instead of parse_and_eval_address_1.
7137 * value.h (parse_and_eval_address_1): Remove prototype.
7139 2011-03-04 Michael Snyder <msnyder@vmware.com>
7141 * remote.c (putpkt_binary): Document that case stmt falls through.
7143 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7145 * breakpointc (print_it_typical): Move NULL check from here...
7146 (print_bp_stop_message): ... to here.
7148 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7150 * breakpoint.c (enable_command): Use break instead of continue,
7151 and fill in a missing break.
7152 (disable_command): Ditto.
7154 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7156 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7157 (terminal_save_ours): Remove misleading comment.
7158 (inflow_inferior_data_cleanup): Free ttystate.
7159 (inflow_inferior_exit): Likewise.
7160 (copy_terminal_info): Copy ttystate.
7162 * serial.c (serial_copy_tty_state): New function.
7163 * serial.h (serial_copy_tty_state): Add prototype.
7164 (struct serial_ops): Add copy_tty_state callback.
7165 * ser-base.c (ser_base_copy_tty_state): New function.
7166 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7167 * ser-go32.c (dos_copy_tty_state): New function.
7168 (dos_ops): Install copy_tty_state callback.
7169 * ser-mingw.c (_initialize_ser_windows): Likewise.
7170 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7171 * ser-unix.c (hardwire_copy_tty_state): New function.
7172 (_initialize_ser_hardwire): Install it.
7174 2011-03-04 Michael Snyder <msnyder@vmware.com>
7176 * breakpoint.c (create_breakpoint): Add missing break statement.
7178 Reverting this patch:
7179 * infcall.c (call_function_by_hand): Add break statements for lint.
7181 Reverting this patch:
7182 * cli/cli-script.c (script_from_file): Add break for lint.
7184 2011-03-04 Michael Snyder <msnyder@vmware.com>
7186 * solib.c (reload_shared_libraries_1): Close memory leak.
7188 2011-03-03 Tom Tromey <tromey@redhat.com>
7191 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7194 2011-03-03 Michael Snyder <msnyder@vmware.com>
7196 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7197 fields of struct 'st' to zero.
7199 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7200 sal.pspace before calling set_current_source_symtab_and_line.
7202 2011-03-03 Yao Qi <yao@codesourcery.com>
7204 * Makefile.in (configure-common): Remove. Let Makefile
7205 in dir common to rebuild itself.
7206 (common/Makefile): Likewise.
7208 2011-03-03 Joel Brobecker <brobecker@adacore.com>
7210 * utils.c (parse_escape): Add i18n markup in error message.
7212 2011-03-03 Yao Qi <yao@codesourcery.com>
7214 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7216 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7217 (displaced_write_reg, displaced_read_reg): Likewise.
7218 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7219 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7220 (cleanup_branch): Replace magic number 14 and 15 with
7221 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7223 2011-03-02 Michael Snyder <msnyder@vmware.com>
7225 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7227 * cli/cli-script.c (script_from_file): Add break for lint.
7229 * mdebugread.c (parse_partial_symbols): Fix indent.
7231 * target-descriptions.c (tdesc_gdb_type): No need to call
7232 xstrdup, callee saves a copy.
7234 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7236 * infcall.c (call_function_by_hand): Add break statements for lint.
7238 * utils.c (parse_escape): Escape the escape char.
7240 * python/py-inferior.c (build_inferior_list): Error out if
7241 PyList_Append fails.
7242 (gdbpy_inferiors): Error out if build_inferior_list fails.
7244 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7247 * record.c (record_restore): Move printf to before error return.
7249 2011-03-02 Yao Qi <yao@codesourcery.com>
7251 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7252 is_thumb and insn_size.
7253 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7254 on both ARM and Thumb mode.
7255 (arm_process_displaced_insn): Set is_thumb and insn_size.
7256 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7257 (arm_displaced_step_fixup): Likewise.
7259 2011-03-01 Michael Snyder <msnyder@vmware.com>
7261 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7263 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7265 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7267 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7269 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7272 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7273 which shadows function parameter.
7275 * tracepoint.c (create_tsv_from_upload): Superfluous call
7276 to xstrdup. Callee already calls xstrdup.
7278 * linespec.c (decode_line_1): Remove unnecessary null check.
7280 * tracepoint.c (scope_info): Fix mem leak, remove underused
7283 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7284 superfluous null check.
7286 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
7287 (value_of_builtin_frame_fp_reg): Ditto.
7289 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7291 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7294 * linespec.c (decode_line_1): Check for null before dereference.
7296 * reverse.c (record_restore): Move null-check to before pointer
7299 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7301 * objc-lang.c (selectors_info): Add explanitory comment.
7302 (classes_info): Ditto.
7304 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7306 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7307 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7308 versions of the trampoline. Handle Thumb vs. ARM addresses.
7309 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7310 (arm_linux_init_abi): Install it.
7311 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7312 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7314 2011-02-28 Michael Snyder <msnyder@vmware.com>
7316 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7317 a little bigger, to avoid possibility of an overflow.
7319 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7320 buffers a little bigger, to avoid possibility of an overflow.
7322 * coffread.c (coff_getfilename): Add check to avoid overflow.
7324 * objc-lang.c (selectors_info): Add a small safety margin to
7326 (classes_info): Error out on too long REGEXP.
7328 * infrun.c (handle_inferior_event): Remove unused function call.
7330 * fork-child.c (fork_inferior): Remove ifdef'd code and
7333 * linux-thread-db.c (attach_thread): Discard unused value.
7335 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7337 * remote.c (remote_get_noisy_reply): Discard unused value.
7338 (remote_vcont_resume): Ditto.
7339 (remote_stop_ns): Ditto.
7341 * linespec.c (decode_objc): Delete unused variable.
7343 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7345 * dwarf2read.c (add_partial_symbol): Discard unused values.
7346 (read_base_type): Delete unused variable.
7348 * dbxread.c (read_dbx_symtab): Discard unused value.
7350 * eval.c (evaluate_subexp_standard): Delete unused variable,
7351 and discard unused values.
7353 * infcmd.c (_initialize_infcmd): Discard unused values.
7355 * stabsread.c (rs6000_builtin_type): Missing break statement.
7357 * dbxread.c (process_one_symbol): Discard unused value.
7359 * coffread.c (coff_end_symtab): Delete unused variable.
7361 * dwarf2read.c (dw2_get_file_names): Discard unused value.
7362 (dwarf2_add_typedef): Delete unused variable.
7363 (read_namespace): Ditto.
7364 (dwarf_decode_macros): Ditto.
7366 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7368 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7370 * p-valprint.c (pascal_val_print): Discard unused value.
7372 * utils.c (nquery): Call va_end before return;
7376 * proc-service.c (ps_plog): Call va_end before return.
7378 2011-02-28 Tom Tromey <tromey@redhat.com>
7380 * python/python.c (gdbpy_value_cst): New global.
7381 (_initialize_python): Initialize it.
7382 * python/python-internal.h (gdbpy_value_cst): Declare.
7383 * python/py-value.c (convert_value_from_python): Use
7386 2011-02-28 Michael Snyder <msnyder@vmware.com>
7388 * python/py-cmd.c (cmdpy_init): Fix memory leak.
7390 * breakpoint.c (catch_syscall_completer): Free malloced list.
7392 * jv-lang.c (java_primitive_type_from_name): Add missing break.
7394 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
7395 (lval_func_check_synthetic_pointer): Ditto.
7396 (lval_func_free_closure): Fix use-after-free.
7398 2011-02-28 Tom Tromey <tromey@redhat.com>
7400 * psymtab.c (expand_partial_symbol_tables): Use
7401 ALL_OBJFILE_PSYMTABS.
7403 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7405 * objc-lang.c (selectors_info): Error on too long REGEXP.
7407 2011-02-28 Michael Snyder <msnyder@vmware.com>
7409 * python/py-param.c (set_parameter_value): Add missing
7412 * linux-record.c (record_linux_system_call): Add missing
7415 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7417 * breakpoint.c (print_one_breakpoint_location): Remove unused
7418 argument PRINT_ADDRESS_BITS. Update callers.
7419 (print_one_breakpoint): Likewise.
7421 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7423 * breakpoint.c (wrap_indent_at_field): New function.
7424 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
7425 Allocate ui_stream locally instead of using STB argument.
7426 (print_one_breakpoint_location): Update call.
7427 * ui-out.c (ui_out_query_field): New function.
7428 * ui-out.h (ui_out_query_field): Add prototype.
7430 2011-02-28 Joel Brobecker <brobecker@adacore.com>
7432 From Michael Snyder <msnyder@vmware.com>
7433 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
7435 2011-02-27 Michael Snyder <msnyder@vmware.com>
7437 * objc-lang.c (selectors_info): Prevent string overrun.
7439 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
7442 * symtab.c (rbreak_command): Move variable 'file_name' to
7445 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
7446 param with a local variable of the same name.
7448 2011-02-27 Michael Snyder <msnyder@vmware.com>
7450 * value.c (value_from_history_ref): New function.
7451 * value.h (value_from_history_ref): Export.
7452 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
7453 to parse value history references.
7454 * cli/cli-utils.h (get_number_trailer): Update comment.
7456 2011-02-27 Michael Snyder <msnyder@vmware.com>
7458 * inferior.c (detach_inferior_command): Use get_number_or_range.
7459 (kill_inferior_command): Ditto.
7460 (remove_inferior_command): Ditto.
7461 (initialize_inferiors): Make command names plural.
7462 Update help strings.
7464 2011-02-27 Michael Snyder <msnyder@vmware.com>
7466 * darwin-nat-info.c: Fix comment typo.
7467 * dwarf2expr.h: Ditto.
7468 * fbsd-nat.c: Ditto.
7469 * fbsd-nat.h: Ditto.
7470 * frame-unwind.h: Ditto.
7472 * hppa-hpux-tdep.c: Ditto.
7473 * i386-linux-nat.c: Ditto.
7474 * linux-nat.c: Ditto.
7475 * nbsd-nat.c: Ditto.
7476 * nbsd-nat.h: Ditto.
7477 * ppc-linux-tdep.c: Ditto.
7480 * tui/tui-winsource.c: Ditto.
7482 2011-02-26 Michael Snyder <msnyder@vmware.com>
7484 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
7486 * maint.c (maintenance_do_deprecate): Plug a memory leak.
7488 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
7489 with a local variable of the same name.
7491 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
7492 param with a local variable of the same name.
7493 (i387_supply_xsave): Ditto.
7495 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
7496 that it does not shadow a function parameter.
7498 * i386-nat.c (i386_length_and_rw_bits): Document that case
7499 statement is meant to fall through.
7501 * expprint.c (dump_subexp_body_standard): Document that case
7502 statement is meant to fall through.
7504 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
7505 dead if statement. Condition can't be false.
7507 2011-02-25 Michael Snyder <msnyder@vmware.com>
7509 * arm-tdep.c: Fix typos in comments.
7510 * bsd-uthread.c: Ditto.
7511 * completer.c: Ditto.
7513 * cp-namespace.c: Ditto.
7514 * cp-support.c: Ditto.
7515 * cris-tdep.c: Ditto.
7517 * dwarf2read.c: Ditto.
7519 * gdbtypes.h: Ditto.
7520 * inferior.h: Ditto.
7521 * mdebugread.c: Ditto.
7522 * mips-tdep.c: Ditto.
7523 * ppc-linux-nat.c: Ditto.
7524 * ppc-linux-tdep.c: Ditto.
7525 * printcmd.c: Ditto.
7526 * sol-thread.c: Ditto.
7527 * solib-frv.c: Ditto.
7529 * sparc64-tdep.c: Ditto.
7530 * spu-tdep.c: Ditto.
7531 * stabsread.c: Ditto.
7536 * python/py-block.c: Ditto.
7537 * python/py-symbol.c: Ditto.
7538 * python/py-symtab.c: Ditto.
7539 * python/py-value.c: Ditto.
7540 * tui/tui-win.c: Ditto.
7542 2011-02-25 Michael Snyder <msnyder@vmware.com>
7544 * inferior.c (print_inferior): Accept a string instead of an int
7545 for requested_inferiors, and use get_number_or_range to parse it.
7546 (info_inferiors_command): Pass args string to print_inferior.
7547 (initialize_inferiors): Change help string for info inferiors.
7548 * inferior.h (print_inferior): Export prototype change.
7550 2011-02-25 Tom Tromey <tromey@redhat.com>
7552 * common/ax.def (invalid2): Set to 0x31.
7554 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7556 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7558 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7560 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7562 2011-02-24 Michael Snyder <msnyder@vmware.com>
7564 * Makefile.in (clean): Make clean should remove generated files
7565 observer.h and observer.inc.
7567 2011-02-24 Joel Brobecker <brobecker@adacore.com>
7569 Revert the following patch (not approved yet):
7570 2011-02-21 Hui Zhu <teawater@gmail.com>
7571 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7572 * ax-gdb.c (gen_printf_expr_callback): New function.
7573 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7574 * ax-general.c (ax_memcpy): New function.
7575 (ax_print): Handle "printf".
7577 * ax.h (ax_memcpy): Forward declare.
7578 * common/ax.def (invalid2): Removed.
7579 (printf): New entry.
7580 * printcmd.c (printcmd.h): New include.
7581 (string_printf): New function.
7582 (ui_printf): Removed.
7583 (printf_command): Remove static. Call string_printf.
7584 (eval_command): Call string_printf.
7585 * printcmd.h: New file.
7586 * tracepoint.c (validate_actionline,
7587 encode_actions_1): handle printf_command.
7589 2011-02-23 Tom Tromey <tromey@redhat.com>
7591 * ax-general.c (ax_pick): Add missing newline.
7593 2011-02-23 Michael Snyder <msnyder@vmware.com>
7595 * breakpoint.c (breakpoint_1): Change first argument from an int
7596 to a char pointer, so that the function now accepts a list of
7597 breakpoints rather than just one. Use new function
7598 'number_is_in_list' to implement.
7599 (breakpoints_info): Pass char * instead of int to breakpoint_1.
7600 (watchpoints_info): Ditto.
7601 (tracepoints_info): Ditto.
7602 (maintenance_info_breakpoints): Ditto.
7603 (_initialize_breakpoint): Update help strings to reflect the fact
7604 that these functions can now take more than one argument.
7605 * cli/cli-utils.c (number_is_in_list): New function.
7606 * cli/cli-utils.h (number_is_in_list): Export.
7608 2011-02-23 Michael Snyder <msnyder@vmware.com>
7610 * memattr.c (mem_enable_command): Use get_number_or_range.
7611 (mem_disable_command): Ditto.
7612 (mem_delete_command): Ditto.
7613 (_initialize_mem): Tweak usage message to reflect multiple
7616 2011-02-22 Doug Evans <dje@google.com>
7618 Add gdb.lookup_global_symbol python function.
7620 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7621 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7622 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7624 2011-02-22 Tom Tromey <tromey@redhat.com>
7626 * language.c (language_class_name_from_physname): Rename
7627 'curr_language' argument to 'lang'; use in body.
7629 2011-02-22 Michael Snyder <msnyder@vmware.com>
7631 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7633 2011-02-22 Pedro Alves <pedro@codesourcery.com>
7635 * frame-unwind.h: Fix comment to mention the this frame, not the
7638 2011-02-22 Tom Tromey <tromey@redhat.com>
7640 * symfile.c (auto_solib_limit): Remove.
7641 * symfile.h (auto_solib_limit): Remove.
7643 2011-02-22 Joel Brobecker <brobecker@adacore.com>
7645 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7647 2011-02-21 Michael Snyder <msnyder@vmware.com>
7649 * gdbthread.h (print_thread_info): Change prototype.
7650 * thread.c (print_thread_info): Accept char* instead of int for
7651 requested_threads argument. Use new function number_is_in_list
7652 to determine which threads to list.
7653 (info_threads_command): Pass char* to print_thread_info.
7654 * cli/cli-utils.c (number_is_in_list): New function.
7655 * cli/cli-utils.h (number_is_in_list): Export.
7656 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7658 (print_one_inferior): Ditto.
7659 (mi_cmd_list_thread_groups): Ditto.
7661 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7663 * common/Makefile.in (CFLAGS): New.
7664 (COMPILE): Add $(CFLAGS).
7666 2011-02-21 Tom Tromey <tromey@redhat.com>
7668 * breakpoint.c (catch_syscall_command_1): Fix typo.
7670 2011-02-21 Tom Tromey <tromey@redhat.com>
7672 * reverse.c: Include cli-utils.h.
7673 * printcmd.c: Include cli-utils.h.
7674 (string_printf): Use skip_spaces.
7675 * cli/cli-utils.h: New file.
7676 * cli/cli-utils.c: New file.
7677 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7678 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7679 * breakpoint.h (get_number, get_number_or_range): Move to
7681 * breakpoint.c: Include cli-utils.h.
7682 (get_number_trailer, get_number, get_number_or_range)
7683 (ep_skip_leading_whitespace): Move to cli-utils.c.
7684 (create_breakpoint_sal, find_condition_and_thread)
7685 (decode_static_tracepoint_spec, watch_command_1)
7686 (watch_maybe_just_location, ep_parse_optional_if_clause)
7687 (catch_fork_command_1, catch_exec_command_1)
7688 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7689 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7690 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7691 (HFILES_NO_SRCDIR): Add cli-utils.h.
7692 (cli-utils.o): New target.
7694 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7696 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7697 before calling discard_all_inferiors.
7699 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7701 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7702 (struct builtin_opencl_type): Remove.
7703 (builtin_opencl_type): Change return type to "struct type **".
7704 (lookup_opencl_vector_type): Update caller.
7705 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7706 (build_opencl_types): Install plain array of "struct type *"
7707 instead of "struct builtin_opencl_type".
7709 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7710 Ulrich Weigand <uweigand@de.ibm.com>
7712 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7713 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7714 (struct arm_linux_hwbp_cap): New type.
7715 (arm_linux_get_hwbp_cap): New function.
7716 (arm_linux_get_hw_breakpoint_count): Likewise.
7717 (arm_linux_get_hw_watchpoint_count): Likewise.
7718 (arm_linux_can_use_hw_breakpoint): Likewise.
7719 (arm_hwbp_type): New type.
7720 (arm_hwbp_control_t): Likewise.
7721 (struct arm_linux_hw_breakpoint): Likewise.
7722 (struct arm_linux_thread_points): Likewise.
7723 (arm_threads): New global variable.
7724 (arm_linux_find_breakpoints_by_tid): New function.
7725 (arm_hwbp_control_initialize): Likewise.
7726 (arm_hwbp_control_is_enabled): Likewise.
7727 (arm_hwbp_control_disable): Likewise.
7728 (arm_linux_hw_breakpoint_initialize): Likewise.
7729 (arm_linux_get_hwbp_type): Likewise.
7730 (arm_linux_hw_watchpoint_initialize): Likewise.
7731 (arm_linux_hw_breakpoint_equal): Likewise.
7732 (arm_linux_insert_hw_breakpoint1): Likewise.
7733 (arm_linux_remove_hw_breakpoint1): Likewise.
7734 (arm_linux_insert_hw_breakpoint): Likewise.
7735 (arm_linux_remove_hw_breakpoint): Likewise.
7736 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7737 (arm_linux_insert_watchpoint): Likewise.
7738 (arm_linux_remove_watchpoint): Likewise.
7739 (arm_linux_stopped_data_address): Likewise.
7740 (arm_linux_stopped_by_watchpoint): Likewise.
7741 (arm_linux_watchpoint_addr_within_range): Likewise.
7742 (arm_linux_new_thread): Likewise.
7743 (arm_linux_thread_exit): Likewise.
7744 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7745 related target callbacks. Register arm_linux_new_thread and
7746 arm_linux_thread_exit.
7747 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7748 * arm-tdep.c (arm_pc_is_thumb): Make global.
7749 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7751 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7753 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7754 per-frame locations while within a function epilogue.
7756 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7758 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7759 to GNU coding standards.
7761 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7763 Allow use of mingw native on Windows 95 OS.
7764 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7765 (ser_windows_close): Only call CancelIo if function exists.
7766 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7767 to check for existence of CancelIo function in kernel32 DLL.
7769 2011-02-21 Hui Zhu <teawater@gmail.com>
7771 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7772 * ax-gdb.c (gen_printf_expr_callback): New function.
7773 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7774 * ax-general.c (ax_memcpy): New function.
7775 (ax_print): Handle "printf".
7777 * ax.h (ax_memcpy): Forward declare.
7778 * common/ax.def (invalid2): Removed.
7779 (printf): New entry.
7780 * printcmd.c (printcmd.h): New include.
7781 (string_printf): New function.
7782 (ui_printf): Removed.
7783 (printf_command): Remove static. Call string_printf.
7784 (eval_command): Call string_printf.
7785 * printcmd.h: New file.
7786 * tracepoint.c (validate_actionline,
7787 encode_actions_1): handle printf_command.
7789 2011-02-19 Michael Snyder <msnyder@vmware.com>
7791 * reverse.c (delete_one_bookmark): Argument is now bookmark
7792 id rather than pointer to bookmark struct.
7793 (delete_bookmark_command): Use get_number_or_range.
7794 (goto_bookmark_command): Parse with get_number instead of strtoul.
7795 (bookmark_1): New function. Print info for one bookmark.
7796 (bookmarks_info): Use get_number_or_range and bookmark_1.
7798 2011-02-18 Michael Snyder <msnyder@vmware.com>
7800 * thread.c (info_threads_command): Re-implement using
7801 get_number_or_range.
7802 (thread_apply_command): Ditto.
7804 2011-02-18 Tom Tromey <tromey@redhat.com>
7806 * common/ax.def: New file.
7807 * ax.h (enum agent_op): Use ax.def.
7808 * ax-general.c (aop_map): Use ax.def.
7810 2011-02-18 Tom Tromey <tromey@redhat.com>
7812 * ax-general.c (aop_map): Add pick and rot.
7813 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7814 <DW_OP_rot>: Implement.
7815 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7817 * ax-general.c (ax_pick): New function.
7819 2011-02-18 Tom Tromey <tromey@redhat.com>
7821 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7823 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7824 Tom Tromey <tromey@redhat.com>
7826 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7827 make_symbol_overload_list_block with NULL BLOCK.
7828 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7830 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7832 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7833 * breakpoint.h (get_number_or_range): Declare.
7834 * printcmd.c (ALL_DISPLAYS): Declare.
7835 (delete_display): Reimplement taking a display pointer.
7836 (undisplay_command): Accept a range of displays to delete, using
7837 get_number_or_range.
7839 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7841 * c-valprint.c (c_val_print): Add embedded_offset to address
7842 for arrays of unspecified length.
7843 * p-valprint.c (pascal_val_print): Likewise.
7845 2011-02-18 Yao Qi <yao@codesourcery.com>
7847 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7848 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7849 (thumb_process_displaced_insn): New.
7850 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7851 call to arm_process_displaced_insn.
7852 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7854 2011-02-17 Tom Tromey <tromey@redhat.com>
7856 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7857 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7858 compile_dwarf_to_ax. No longer static. Call
7859 dwarf2_compile_cfa_to_ax.
7860 (locexpr_tracepoint_var_ref): Update.
7861 (loclist_tracepoint_var_ref): Update.
7862 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7863 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7864 argument; add 'gdbarch' and 'pc'.
7865 (dwarf2_compile_cfa_to_ax): New function.
7866 (dwarf2_frame_cache): Update.
7868 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7870 * ada-lang.c (ada_type_of_array): Fix the size of the array
7871 in the case of an unconstrained packed array.
7873 2011-02-17 Yao Qi <yao@codesourcery.com>
7875 * common/Makefile.in: Add more targets for make.
7877 2011-02-16 Tom Tromey <tromey@redhat.com>
7879 * dwarf2loc.c (unimplemented): Fix typo.
7881 2011-02-16 Tom Tromey <tromey@redhat.com>
7883 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7884 (compile_dwarf_to_ax) <default>: Use unimplemented.
7885 <DW_OP_deref>: Update.
7886 (disassemble_dwarf_expression): Update.
7887 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7888 (decode_locdesc): Update.
7889 * dwarf2expr.h (dwarf_stack_op_name): Update.
7891 2011-02-16 Tom Tromey <tromey@redhat.com>
7893 * ax.h (struct aop_map) <name>: Now const.
7895 2011-02-16 Tom Tromey <tromey@redhat.com>
7897 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7900 2011-02-16 Yao Qi <yao@codesourcery.com>
7902 * infrun.c (get_displaced_step_closure_by_addr): New.
7903 * inferior.h: Declare it.
7904 * arm-tdep.c: (arm_pc_is_thumb): Call
7905 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7908 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7909 Jan Kratochvil <jan.kratochvil@redhat.com>
7912 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7914 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7915 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 * value.c (value_contents_copy_raw): Extend describing comment.
7918 Assert that the destination contents we're overwriting are wholly
7920 (value_contents_copy): Extend describing comment.
7922 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7923 Jan Kratochvil <jan.kratochvil@redhat.com>
7925 * value.c (value_available_contents_eq): Remove redundant local
7926 variables. Fix available contents comparision.
7927 * value.h (value_available_contents_eq): Extend describing
7930 2011-02-16 Yao Qi <yao@codesourcery.com>
7932 * thread.c (info_threads_command): Add missing i18n markup and remove
7935 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7937 * breakpoint.c (longjmp_names): New variable.
7938 (struct breakpoint_objfile_data): New type.
7939 (breakpoint_objfile_key): New variable.
7940 (msym_not_found): New variable.
7941 (msym_not_found_p): New predicate.
7942 (get_breakpoint_objfile_data): New function.
7943 (create_overlay_event_breakpoint): Check per-objfile cache for
7945 (create_longjmp_master_breakpoint): Likewise.
7946 (create_std_terminate_master_breakpoint): Likewise.
7947 (create_exception_master_breakpoint): Likewise.
7948 (_initialize_breakpoint): Register per-objfile data key.
7950 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7952 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7954 (create_longjmp_master_breakpoint): Loop over longjmp names.
7955 (create_std_terminate_master_breakpoint): Const-propagate parameter
7957 (update_breakpoints_after_exec): Adjust.
7958 (breakpoint_re_set): Adjust.
7960 2011-02-15 Michael Snyder <msnyder@vmware.com>
7962 * thread.c (info_threads_command): Process arg as thread id,
7963 or list of thread ids.
7964 (thread_find_command): New command.
7965 (_initialize_thread): Document argument for info threads.
7966 Document 'thread find' command.
7967 * NEWS: Document new command "thread find".
7969 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7971 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7972 * aclocal.m4: Regenerated with aclocal-1.11.1.
7973 * common/configure: Regenerate with autoconf-2.64.
7975 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7977 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7978 bool data type to a size of one byte.
7980 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7981 Jan Kratochvil <jan.kratochvil@redhat.com>
7983 * target.c (memory_xfer_live_readonly_partial): Document where to
7984 look for interface description.
7986 2011-02-15 Yao Qi <yao@codesourcery.com>
7989 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7990 order to store PC value on stack instead of text section.
7992 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7994 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7995 the EFP register set size.
7996 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7997 data from the VMX register.
7998 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7999 and write data from/to the VMX register.
8001 2011-02-14 Michael Snyder <msnyder@vmware.com>
8003 * command.h (enum command_class): New class 'no_set_class', for
8004 "show" commands without a corresponding "set" command.
8005 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8006 * copying.c (_initialize_copying): Ditto for "show copying" and
8008 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8010 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8011 which there is no corresponding "set" command (eg. "show copying").
8013 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8014 Jan Kratochvil <jan.kratochvil@redhat.com>
8016 * exec.c (section_table_available_memory): Change `len' parameter
8018 * exec.h (section_table_available_memory): Ditto.
8019 * value.h (read_value_memory): Rename the `offset' parameter to
8022 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8023 Jan Kratochvil <jan.kratochvil@redhat.com>
8025 * memrange.c (compare_mem_ranges): Mention sort order in
8027 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8028 * tracepoint.c (traceframe_available_memory): Extend comment to
8029 mention what happens to RESULT when the target does not support
8032 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8033 Jan Kratochvil <jan.kratochvil@redhat.com>
8035 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8038 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8040 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8041 No longer handle NULL values.
8043 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8045 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8046 * value.c: Include "exceptions.h".
8047 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8049 * cp-abi.c: Include gdb_assert.h.
8050 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8051 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8053 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8054 parameters. No longer returns -1 on error.
8055 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8057 * cp-valprint.c: Include exceptions.h.
8058 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8059 the baseclass_offset. Handle unavailable base classes. Use
8060 val_print_invalid_address.
8061 * p-valprint.c: Include exceptions.h.
8062 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8063 when fetching the baseclass_offset. No longer expect
8064 baseclass_offset returning -1. Handle unavailable base classes.
8065 Use val_print_invalid_address.
8066 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8067 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8068 `embedded_offset' and `val' parameters. Adjust.
8069 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8070 parameter, and change its type to gdb_byte pointer. Add
8071 `embedded_offset' and `val' parameters. Adjust. No longer expect
8072 baseclass_offset returning -1.
8073 (value_dynamic_cast): Use value_contents_for_printing rather than
8074 value_contents. Adjust.
8075 (search_struct_field): No longer expect baseclass_offset returning
8077 (search_struct_method): If reading memory from the target is
8078 necessary, wrap it in a new value to pass to baseclass_offset. No
8079 longer expect baseclass_offset returning -1.
8080 (find_method_list): No longer expect baseclass_offset returning
8081 -1. Use value_contents_for_printing rather than value_contents.
8082 * valprint.c (val_print_invalid_address): New function.
8083 * valprint.h (val_print_invalid_address): Declare.
8084 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8085 and `val' parameters. No longer expect baseclass_offset returning
8087 * gnu-v2-abi.c: Include "exceptions.h".
8088 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8089 parameters. Handle unavailable memory. Recurse through
8090 gnuv2_baseclass_offset directly, rather than through
8091 baseclass_offset. No longer returns -1 on not found, instead
8093 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8094 `val' parameters. Adjust.
8096 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8098 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8099 almost but not quite adjacent.
8101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8103 * value.h (value_entirely_available): Declare.
8104 * value.c (value_entirely_available): New function.
8105 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8106 real type if the pointer is unavailable.
8108 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8110 * valops.c (value_repeat): Use read_value_memory instead of
8113 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8115 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8116 * value.c (value_contents_copy_raw, value_contents_copy): New
8118 (value_primitive_field): Use value_contents_copy_raw instead of
8120 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8122 (value_array, value_slice): Ditto.
8123 * valarith.c (value_subscripted_rvalue): Use
8124 value_contents_copy_raw instead of memcpy.
8126 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8128 <unavailable> references.
8130 * valops.c (get_value_at): Use value_from_contents_and_address,
8131 avoiding read_memory.
8133 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8135 * c-valprint.c (c_val_print): Print a string with unavailable
8136 contents as an array.
8138 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8140 * value.h (unpack_bits_as_long): Delete declaration.
8141 (unpack_value_bits_as_long): Declare.
8142 (unpack_value_field_as_long): Declare.
8143 (value_field_bitfield): Declare.
8144 * value.c (unpack_bits_as_long): Rename to...
8145 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8146 value parameters. Return the extracted result in a new output
8147 parameter. If the value contents are unavailable, return false,
8148 otherwise return true.
8149 (unpack_value_bits_as_long): New.
8150 (unpack_field_as_long): Rename to...
8151 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8152 Add embedded_offset and value parameters. Return the extracted
8153 result in a new output parameter. If the value contents are
8154 unavailable, return false, otherwise return true.
8155 (unpack_value_field_as_long): New.
8156 (unpack_field_as_long_1): New.
8157 (unpack_field_as_long): Reimplement as wrapper around
8158 unpack_value_field_as_long_1.
8159 (value_field_bitfield): New function.
8160 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8161 unpack_value_bits_as_long. Mark the value as unavailable, if it
8163 * jv-valprint.c (java_print_value_fields): Use
8164 value_field_bitfield.
8165 * p-valprint.c (pascal_object_print_value_fields): Use
8166 value_field_bitfield.
8167 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8169 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8171 * value.c (get_internalvar_integer): Also return the int value of
8172 TYPE_CODE_INT INTERNALVAR_VALUE values.
8173 (set_internalvar): Don't special case TYPE_CODE_INT.
8175 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8177 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8178 INTERNALVAR_POINTER.
8180 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8181 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8182 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8184 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8186 * value.h (value_available_contents_eq): Declare.
8187 * value.c (find_first_range_overlap): New function.
8188 (value_available_contents_eq): New function.
8189 * valprint.c (val_print_array_elements): Use
8190 value_available_contents_eq.
8191 * ada-valprint.c (val_print_packed_array_elements): Use
8192 value_available_contents_eq.
8193 * jv-valprint.c (java_value_print): Use
8194 value_available_contents_eq.
8196 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8198 * target.c (target_read_live_memory): New function.
8199 (memory_xfer_live_readonly_partial): New.
8200 (memory_xfer_partial): If reading from a traceframe, fallback to
8201 reading unavailable read-only memory from read-only regions of
8203 * tracepoint.c (disconnect_tracing): Adjust.
8204 (set_current_traceframe): New, factored out from
8205 set_traceframe_number.
8206 (set_traceframe_number): Reimplement to only change the traceframe
8207 number on the GDB side.
8208 (do_restore_current_traceframe_cleanup): Adjust.
8209 (make_cleanup_restore_traceframe_number): New.
8210 (cur_traceframe_number): New global.
8211 (tfile_open): Set cur_traceframe_number to no traceframe.
8212 (set_tfile_traceframe): New function.
8213 (tfile_trace_find): If looking up a traceframe using any method
8214 other than by number, make sure the current tfile traceframe
8215 matches gdb's current traceframe. Update the current tfile
8216 traceframe if the lookup succeeded.
8217 (tfile_fetch_registers, tfile_xfer_partial)
8218 (tfile_get_trace_state_variable_value): Make sure the remote
8219 traceframe matches gdb's current traceframe.
8220 * remote.c (remote_traceframe_number): New global.
8221 (remote_open_1): Set it to -1.
8222 (set_remote_traceframe): New function.
8223 (remote_fetch_registers, remote_store_registers)
8224 (remote_xfer_memory, remote_xfer_partial)
8225 (remote_get_trace_state_variable_value): Make sure the remote
8226 traceframe matches gdb's current traceframe.
8227 (remote_trace_find): If looking up a traceframe using any method
8228 other than by number, make sure the current remote traceframe
8229 matches gdb's current traceframe. Update the current remote
8230 traceframe if the lookup succeeded.
8231 * infrun.c (fetch_inferior_event): Adjust.
8232 * tracepoint.h (set_current_traceframe): Declare.
8233 (get_traceframe_number, set_traceframe_number): Add describing
8236 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8238 Mark pieces of values as unavailable if the corresponding memory
8241 * valops.c: Include tracepoint.h.
8242 (value_fetch_lazy): Use read_value_memory.
8243 (read_value_memory): New.
8244 * value.h (read_value_memory): Declare.
8245 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8246 * exec.c (section_table_available_memory): New function.
8247 * exec.h (section_table_available_memory): Declare.
8249 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8251 * Makefile.in (SFILES): Add memrange.c.
8252 (HFILES_NO_SRCDIR): Add memrange.h.
8253 (COMMON_OBS): Add memrange.o.
8254 * memrange.c: New file.
8255 * memrange.h: New file.
8256 * tracepoint.c: Include memrange.h.
8257 (struct mem_range): Delete.
8258 (mem_range_s): Delete.
8259 (traceframe_available_memory): New function.
8260 * tracepoint.h (traceframe_available_memory): Declare.
8262 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8264 * target.h (struct traceframe_info): Forward declare.
8265 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8266 (struct target_ops) <to_traceframe_info>: New field.
8267 (target_traceframe_info): New.
8268 * target.c (update_current_target): Inherit and default
8270 * remote.c (PACKET_qXfer_traceframe_info): New.
8271 (remote_protocol_features): Register qXfer:traceframe-info:read.
8272 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8273 (remote_traceframe_info): New.
8274 (init_remote_ops): Install it.
8275 (_initialize_remote): Install "set/show remote traceframe-info"
8277 * tracepoint.h (parse_traceframe_info): Declare.
8278 * tracepoint.c (struct mem_range): New.
8279 (mem_range_s): New typedef.
8280 (struct traceframe_info): New.
8281 (traceframe_info): New global.
8282 (free_traceframe_info): New function.
8283 (clear_traceframe_info): New function.
8284 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8286 (build_traceframe_info): New function.
8287 (tfile_traceframe_info): New function.
8288 (init_tfile_ops): Install tfile_traceframe_info.
8289 (traceframe_info_start_memory, free_result): New functions.
8290 (memory_attributes, traceframe_info_elements): New globals.
8291 (parse_traceframe_info, get_traceframe_info): New functions.
8292 * features/traceframe-info.dtd: New file.
8293 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8295 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8297 Base support for <unavailable> value contents.
8299 * value.h (value_bytes_available): Declare.
8300 (mark_value_bytes_unavailable): Declare.
8301 * value.c (struct range): New struct.
8302 (range_s): New typedef.
8303 (ranges_overlap): New function.
8304 (range_lessthan): New function.
8305 (ranges_contain_p): New function.
8306 (struct value) <unavailable>: New field.
8307 (value_bytes_available): New function.
8308 (mark_value_bytes_unavailable): New function.
8309 (require_not_optimized_out): Constify parameter.
8310 (require_available): New function.
8311 (value_contents_all, value_contents): Require all bytes be
8313 (value_free): Free `unavailable'.
8314 (value_copy): Copy `unavailable'.
8315 * valprint.h (val_print_unavailable): Declare.
8316 * valprint.c (valprint_check_validity): Rename `offset' parameter
8317 to `embedded_offset'. If printing a scalar, check whether the
8318 value chunk is available.
8319 (val_print_unavailable): New.
8320 (val_print_scalar_formatted): Check whether the value is
8322 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8323 pretty-printing unavailable values.
8325 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8327 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8328 * c-typeprint.c (c_type_print_args): Update the function comment. New
8329 variable param_type, initialize it. Remove const/volatile qualifiers
8330 for language_cplus and !show_artificial. Use param_type.
8332 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8334 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8335 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8336 * symtab.h (struct symtab) <next>: Comment extension.
8338 2011-02-12 Yao Qi <yao@codesourcery.com>
8340 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8342 2011-02-11 Yao Qi <yao@codesourcery.com>
8344 * common/Makefile.in: Add copyright header.
8346 2011-02-11 Pedro Alves <pedro@codesourcery.com>
8348 * infrun.c (proceed): Move switching out and in of tfind mode from
8350 (fetch_inferior_event): ... to here.
8352 2011-02-11 Yao Qi <yao@codesourcery.com>
8354 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8356 * configure.ac: Add common to sub dir.
8357 * configure: Regenerate.
8359 2011-02-11 Yao Qi <yao@codesourcery.com>
8363 * common/Makefile.in: New.
8364 * common/configure.ac: New.
8365 * common/aclocal.m4: New.
8366 * common/configure: Generate.
8368 2011-02-10 Pedro Alves <pedro@codesourcery.com>
8370 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8371 side of the parenthesis.
8374 2010-07-13 Jakub Jelinek <jakub@redhat.com>
8375 * vec.h (VEC_block_remove): Fix comment.
8377 2011-02-08 Michael Snyder <msnyder@vmware.com>
8379 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
8381 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8383 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
8384 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
8387 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8390 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
8392 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
8393 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
8395 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8397 * dwarf2read.c (read_subroutine_type): Set special calling
8398 convention flag for functions compiled by IBM XL C for OpenCL.
8399 * ppc-sysv-tdep.c: Include "dwarf2.h"
8400 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
8402 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
8403 IBM OpenCL vector types calling convention.
8404 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
8405 (ppc_sysv_abi_broken_return_value): Likewise.
8406 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
8407 types calling convention.
8408 (ppc64_sysv_abi_return_value): Likewise.
8409 * spu-tdep.c: Include "dwarf2.h"
8410 (spu_return_value): Implement IBM OpenCL vector types calling
8413 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8415 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
8416 correct ABI for AltiVec vector arguments.
8418 2011-02-07 Pedro Alves <pedro@codesourcery.com>
8420 * valprint.c (val_print): Extend comment.
8421 * ada-valprint.c (ada_valprint): Rewrite comment deferring
8422 interface explanation to val_print.
8423 (ada_val_print_array): Adjust comment to current interface.
8424 (print_field_values): Adjust comment to current interface.
8425 * c-valprint.c (c_val_print): Rewrite comment deferring interface
8426 explanation to val_print.
8427 * f-valprint.c (f_val_print): Ditto.
8428 * jv-valprint.c (java_val_print): Ditto.
8429 * m2-valprint.c (m2_val_print): Ditto.
8430 * p-valprint.c (pascal_val_print): Ditto.
8432 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8434 * breakpoint.c (parse_breakpoint_sals): Fix description.
8436 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
8437 Oguz Kayral <oguzkayral@gmail.com>
8439 * python/py-inferior.c (python_on_normal_stop): New function.
8440 (python_on_resume): New function.
8441 (python_inferior_exit): New function.
8442 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
8443 inferior_exit observers.
8444 * python/py-evtregistry.c: New file.
8445 * python/py-threadevent.c : New file.
8446 * python/py-event.c: New file.
8447 * python/py-evts.c: New file.
8448 * python/py-continueevent.c: New file.
8449 * python/py-bpevent.c: New file.
8450 * python/py-signalevent.c: New file.
8451 * python/py-exetiedevent.c: New file.
8452 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
8453 Move struct breakpoint_object from here...
8454 * python/python-internal.h: ... to here.
8455 * python/py-event.h: New file.
8456 * python/py-events.h: New file.
8457 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
8458 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
8459 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
8460 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
8461 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
8462 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
8463 Add build rules for all the above.
8465 2011-02-04 Tom Tromey <tromey@redhat.com>
8467 * dwarf2read.c (dwarf2_section_empty_p): New function.
8468 (dwarf2_read_section): Use dwarf2_section_empty_p.
8469 (dwarf2_section_size): New function.
8470 (dwarf2_get_section_info): Unconditionally read section.
8471 (dwarf2_read_index): Use dwarf2_section_empty_p.
8472 (partial_read_comp_unit_head): Use dwarf2_section_size.
8473 (dwarf2_symbol_mark_computed): Likewise.
8475 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8477 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
8479 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8481 * mips-linux-tdep.c: Include xml-syscall.h.
8482 (mips_linux_get_syscall_number): New function.
8483 (mips_linux_init_abi): Add calls to
8484 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
8485 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8486 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
8487 * syscalls/mips-n32-linux.xml: New file.
8488 * syscalls/mips-n64-linux.xml: New file.
8489 * syscalls/mips-o32-linux.xml: New file.
8491 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8493 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
8494 Complain about inverted range entries.
8495 (dwarf2_record_block_ranges): Likewise.
8497 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8500 * breakpoint.c (update_watchpoint): Fix name of the
8501 update_global_location_list function.
8502 (print_one_breakpoint): Fix typo.
8503 (_initialize_breakpoint): Remove extra space in hbreak help
8505 * breakpoint.h (struct bp_location) <length>: Fix field
8508 2011-02-04 Pedro Alves <pedro@codesourcery.com>
8510 * regcache.c (registers_changed_ptid): Don't explictly always
8511 clear `current_regcache'. Only clear current_thread_ptid and
8512 current_thread_arch when PTID matches. Only reinit the frame
8513 cache if PTID matches the current inferior_ptid. Move alloca(0)
8515 (registers_changed): ... here.
8517 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
8519 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
8520 starts with __stack_chk_guard as stack guard symbol.
8522 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
8524 * disasm.c (compare_lines): Handle the end of sequence markers
8525 within the line table to better support disassembling over
8526 compilation unit boundaries.
8528 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8530 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
8531 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
8532 implementation even if no symbols are available.
8533 (thumb_analyze_prologue): Update call to skip_prologue_function.
8534 (arm_analyze_prologue): Likewise.
8536 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8538 * arm-tdep.c: Include "observer.h".
8539 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
8540 (arm_exidx_data_key): New static variable.
8541 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
8542 (struct arm_exidx_data): Likewise.
8543 (arm_exidx_data_free): New function.
8544 (arm_compare_exidx_entries): Likewise.
8545 (arm_obj_section_from_vma): Likewise.
8546 (arm_exidx_new_objfile): Likewise.
8547 (arm_find_exidx_entry): Likewise.
8548 (arm_exidx_fill_cache): Likewise.
8549 (arm_exidx_unwind_sniffer): Likewise.
8550 (arm_exidx_unwind): New global variable.
8551 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
8552 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
8553 observer. Register arm_exidx_data_key as objfile data.
8555 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8557 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8558 due to accessing uninitialized variable. Fix indentation.
8560 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8562 * c-valprint.c (c_value_print): When doing virtual base pointer
8563 adjustment, create a new value with adjusted contents rather than
8564 changing the contents of the value being printed (and getting it
8567 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8569 * xml-support.c (xml_find_attribute): New.
8570 (xinclude_start_include): Use it.
8571 * xml-support.h (xml_find_attribute): Declare.
8572 * memory-map.c (memory_map_start_memory)
8573 (memory_map_start_property): Use xml_find_attribute.
8574 * osdata.c (osdata_start_osdata, osdata_start_column): Use
8576 * remote.c (start_thread): Use xml_find_attribute.
8577 * solib-target.c (library_list_start_segment)
8578 (library_list_start_section, library_list_start_library)
8579 (library_list_start_list): Use xml_find_attribute.
8580 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8581 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8582 (tdesc_start_field): Use xml_find_attribute.
8584 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
8586 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8587 (BUILD_OCL_VTYPES): Update.
8589 2011-02-02 Joel Brobecker <brobecker@adacore.com>
8591 * configure.ac: Work around non-GNU sed limitation when computing
8592 python version number.
8593 * configure: Regenerate.
8595 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8597 Fix debug printing of TYPE_INSTANCE.
8598 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8599 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8601 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8603 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8604 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8605 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8606 * ada-operator.inc: Rename the file to ...
8607 * ada-operator.def: ... here, wrap all the entries by macro OP.
8608 * expprint.c (op_name_standard): Remove all the entries. Include
8609 "std-operator.def" instead.
8610 * expression.h (enum exp_opcode): Include "std-operator.def" and
8611 "ada-operator.def". Move all the entries ...
8612 * std-operator.def: ... here, wrap all the entries by macro OP.
8614 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8616 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8617 * breakpoint.c (remove_jit_event_breakpoints): New function.
8618 * jit.c (jit_descriptor_addr): Delete.
8619 (registering_code): Delete.
8620 (clear_int): Delete.
8621 (jit_inferior_data): New variable.
8622 (struct jit_inferior_data): New type.
8623 (get_jit_inferior_data): New function.
8624 (jit_inferior_data_cleanup): New function.
8625 (jit_read_descriptor): Adjust.
8626 (jit_register_code): Adjust.
8627 (jit_breakpoint_re_set_internal): New function; move code here ...
8628 (jit_inferior_init): ... from here.
8629 (jit_breakpoint_re_set): Adjust.
8630 (jit_reset_inferior_data_and_breakpoints): New function.
8631 (jit_inferior_created_observer): Adjust.
8632 (jit_inferior_exit_hook): Adjust.
8633 (jit_executable_changed_observer): New function.
8634 (jit_event_handler): Adjust.
8635 (_initialize_jit): Adjust.
8637 2011-01-31 Michael Snyder <msnyder@vmware.com>
8639 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8642 2011-01-31 Tom Tromey <tromey@redhat.com>
8645 * python/python.c (execute_gdb_command): Call
8646 prevent_dont_repeat.
8647 * top.c (suppress_dont_repeat): New global.
8648 (dont_repeat): Use it.
8649 (prevent_dont_repeat): New function.
8650 * command.h (prevent_dont_repeat): Declare.
8652 2011-01-31 Tom Tromey <tromey@redhat.com>
8654 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8655 * python/py-breakpoint.c (bppy_set_silent): Use
8656 breakpoint_set_silent.
8657 (bppy_set_thread): Use breakpoint_set_thread.
8658 (bppy_set_task): Use breakpoint_set_task.
8659 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8660 (breakpoint_set_task): Declare.
8661 (make_breakpoint_silent): Remove.
8662 * breakpoint.c (breakpoint_set_silent): New function.
8663 (breakpoint_set_thread): Likewise.
8664 (breakpoint_set_task): Likewise.
8665 (make_breakpoint_silent): Remove.
8667 2011-01-31 Tom Tromey <tromey@redhat.com>
8669 * breakpoint.h (user_breakpoint_p): Declare.
8670 * breakpoint.c (user_breakpoint_p): New function.
8671 (breakpoint_1): Use it.
8672 (save_breakpoints): Likewise.
8674 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8676 * configure.ac: Add handling of Python distribution on Windows.
8677 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8678 sysconfig variables are not defined, then do not use them.
8679 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8680 instead. On Windows, return all paths using forward-slashes
8681 rather than backslashes.
8683 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8685 * configure.ac: Remove fallback behavior for building
8686 against Python. Remove tweaking of Python include path.
8687 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8688 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8689 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8690 Always restore CPPFLAGS and LIBS after linking test.
8691 * configure: Regenerated.
8692 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8693 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8694 * python/python-internal.h: Adjust includes of Python .h files.
8696 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8698 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8701 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8703 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8706 2011-01-31 Yao Qi <yao@codesourcery.com>
8708 * arm-linux-nat.c: Update calls to regcache_register_status
8709 instead of regcache_valid_p.
8710 * aix-thread.c: Likewise.
8711 * i386gnu-nat.c: Likewise.
8713 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8716 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8717 touching TYPE_FIELD_ARTIFICIAL.
8719 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8721 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8724 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8726 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8727 selected, don't try iterating over the traceframe's blocks.
8728 (tfile_has_stack): If there's no traceframe selected, then there's
8730 (tfile_has_registers): If there's no traceframe selected, then
8731 there's no registers.
8733 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8735 * target.c (memory_xfer_partial): No need to restore shadows if we
8736 haven't read anything.
8738 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8740 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8741 and val_print_scalar_formatted.
8743 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8745 * tracepoint.c (tfile_read): New.
8746 (tfile_open): Use it.
8747 (tfile_get_traceframe_address): Use it.
8748 (tfile_trace_find): Use it.
8749 (walk_blocks_callback_func): New typedef.
8750 (match_blocktype): New function.
8751 (traceframe_walk_blocks): New function.
8752 (traceframe_find_block_type): New function.
8753 (tfile_fetch_registers, tfile_xfer_partial)
8754 (tfile_get_trace_state_variable_value): Use
8755 traceframe_find_block_type and tfile_read.
8757 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8759 * remote-mips.c: Add internationalization mark ups. Remove
8760 trailing \n from already marked up strings.
8762 2011-01-26 Tom Tromey <tromey@redhat.com>
8764 * python/py-prettyprint.c (print_string_repr): Clear
8765 'addressprint' option when calling val_print_string.
8766 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8767 option when calling val_print_string.
8769 2011-01-26 Tom Tromey <tromey@redhat.com>
8771 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8773 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8775 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8776 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8777 (gdb_py_long_as_ulongest): New defines.
8778 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8779 (gdb_py_int_as_long): Declare.
8780 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8781 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8782 (valpy_long): Add comment.
8783 * python/py-utils.c (get_addr_from_python): Use
8784 gdb_py_long_as_ulongest. Handle overflow properly.
8785 (gdb_py_object_from_longest): New function.
8786 (gdb_py_object_from_ulongest): Likewise.
8787 (gdb_py_int_as_long): Likewise.
8788 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8789 * python/py-symtab.c (salpy_get_pc): Use
8790 gdb_py_long_from_ulongest.
8791 (salpy_get_line): Use PyInt_FromLong.
8792 * python/py-param.c (set_parameter_value): Use
8794 * python/py-lazy-string.c (stpy_get_address): Use
8795 gdb_py_long_from_ulongest.
8796 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8797 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8798 * python/py-breakpoint.c (bppy_set_thread): Use
8800 (bppy_set_task): Likewise.
8801 (bppy_set_ignore_count): Likewise.
8802 (bppy_set_hit_count): Likewise.
8803 * python/py-block.c (blpy_get_start): Use
8804 gdb_py_object_from_ulongest.
8805 (blpy_get_end): Likewise.
8806 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8808 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8811 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8812 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8813 equality test for objfile, initialize addr_low if needed.
8815 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8817 * tui/tui-regs.c (tui_register_format): Remove dead code.
8819 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8821 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8822 instead of print_scalar_formatted.
8823 (print_scalar_formatted): Don't handle 's' format strings here,
8824 and add an assertion that we never see such format here.
8825 * valprint.h (val_print_scalar_formatted): Declare.
8826 * valprint.c (val_print_scalar_formatted): New.
8827 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8828 instead of print_scalar_formatted.
8829 * jv-valprint.c (java_val_print): Ditto.
8830 * p-valprint.c (pascal_val_print): Ditto.
8831 * ada-valprint.c (ada_val_print_1): Ditto.
8832 * f-valprint.c (f_val_print): Ditto.
8833 * infcmd.c (registers_info): Ditto.
8834 * m2-valprint.c (m2_val_print): Ditto.
8836 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8838 * m2-valprint.c (print_unbounded_array): Pass
8839 value_contents_for_printing rather than value_contents, to
8840 m2_print_array_contents. Also pass in the value.
8842 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8844 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8845 (save_gdb_index_command): Switch to .gdb_index version 4.
8847 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8849 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8850 than frame_register, and always pass a valid value to val_print.
8852 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8854 Centralize printing "<optimized out>".
8856 * valprint.h (val_print_optimized_out): Declare.
8857 * cp-valprint.c (cp_print_value_fields): Use
8858 val_print_optimized_out.
8859 * jv-valprint.c (java_print_value_fields): Ditto.
8860 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8861 * printcmd.c (print_formatted): Ditto.
8862 * valprint.c (valprint_check_validity): Ditto.
8863 (value_check_printable): Ditto.
8864 (val_print_optimized_out): New.
8866 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8868 * infcmd.c (default_print_registers_info): Allocate values so to
8869 never pass a NULL value to val_print.
8871 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8873 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8874 boolean. Make sure to always pass a value that matches the
8875 contents buffer to callees. Preserve `address' for following
8877 * value.c (value_contents_for_printing_const): New.
8878 (value_address): Constify value argument.
8879 * value.h (value_contents_for_printing_const): Declare.
8880 (value_address): Constify value argument.
8882 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8884 * regcache.c (struct regcache_descr): Rename
8885 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8886 and sizeof_cooked_register_valid_p to
8887 sizeof_cooked_register_status.
8888 (init_regcache_descr): Adjust.
8889 (struct regcache): Rename register_valid_p field to
8891 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8892 (do_cooked_read): Adjust.
8893 (regcache_valid_p): Rename to ...
8894 (regcache_register_status): ... this. Adjust.
8895 (regcache_invalidate): Adjust.
8896 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8898 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8899 as unavailable, not valid.
8900 (regcache_dump): Adjust.
8901 * regcache.h (enum register_status): New.
8902 (regcache_register_status): Declare.
8903 (regcache_invalidate): Delete declaration.
8904 * corelow.c (get_core_registers): Adjust.
8905 * tracepoint.c (tfile_fetch_registers): Adjust.
8906 * trad-frame.c (REG_VALUE): Rename to ...
8907 (TF_REG_VALUE): ... this.
8908 (REG_UNKNOWN): Rename to ...
8909 (TF_REG_UNKNOWN): ... this.
8910 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8911 * mi/mi-main.c (register_changed_p): Adjust.
8913 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8915 * regcache.c (struct regcache_descr): Remove outdated comment.
8916 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8918 (regcache_xmalloc): Rename to ...
8919 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8920 Allocate the regcache type accordingly.
8921 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8922 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8923 cooked registers, not raw.
8924 (regcache_dup_no_passthrough): Delete.
8925 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8926 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8927 mention obsolete write_register_bytes.
8928 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8930 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8932 Stop remote_read_bytes from handling partial reads itself.
8934 * remote-fileio.c: Include target.h.
8935 (remote_fileio_write_bytes): Delete.
8936 (remote_fileio_func_open, remote_fileio_func_write)
8937 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8939 (remote_fileio_func_stat): Use target_read_memory and
8940 target_write_memory.
8941 (remote_fileio_func_gettimeofday): Use target_write_memory.
8942 (remote_fileio_func_system): Use target_read_memory.
8943 * remote.c (remote_write_bytes): Make it static.
8944 (remote_read_bytes): Don't handle partial reads here.
8945 * remote.h (remote_read_bytes): Delete declaration.
8947 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8949 Simplify XML parsing a bit.
8951 * xml-support.h (gdb_xml_parse_quick): Declare.
8952 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8953 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8955 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8956 gdb_xml_create_parser_and_cleanup_1.
8957 (gdb_xml_parse_quick): New.
8958 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8959 * osdata.c (osdata_parse): Ditto.
8960 * remote.c (remote_threads_info): Ditto.
8961 * solib-target.c (solib_target_parse_libraries): Ditto.
8962 * xml-syscall.c (syscall_parse_xml): Ditto.
8963 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8965 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8967 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8968 with remote-mips.o added to gdb_target_obs.
8969 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8971 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8973 * ada-valprint.c (val_print_packed_array_elements): Pass the
8974 correct struct value to val_print.
8975 (ada_val_print_1): Ditto.
8977 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8979 Don't lose embedded_offset in printing routines throughout.
8981 * valprint.h (val_print_array_elements): Change prototype.
8982 * valprint.c (val_print_array_elements): Add `embedded_offset'
8983 parameter, and adjust to pass it down to val_print, while passing
8984 `valaddr' or `address' unmodified. Take embedded_offset into
8985 account when checking repetitions.
8986 * c-valprint.c (c_val_print): Pass embedded_offset to
8987 val_print_array_elements instead of adjusting `valaddr' and
8989 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8990 embedded_offset to val_print_array_elements instead of adjusting
8992 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8993 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8994 val_print_array_elements and pascal_object_print_value_fields
8995 instead of adjusting `valaddr'.
8996 (pascal_object_print_value_fields): Add `offset' parameter, and
8998 (pascal_object_print_value): Add `offset' parameter, and adjust to
9000 (pascal_object_print_static_field): Use
9001 value_contents_for_printing/value_embedded_offset, rather than
9003 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9004 parameter, and adjust to use it. Use
9005 value_contents_for_printing/value_embedded_offset, rather than
9007 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9008 (ada_val_print_array): Add `offset' parameter, and adjust to use
9010 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9011 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9012 Instead work with offsets. Use
9013 value_contents_for_printing/value_embedded_offset, rather than
9014 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9015 and use value_from_pointer to extract a target pointer, rather
9016 than value_from_longest.
9017 (print_variant_part): Add `offset' parameter. Replace
9018 `outer_valaddr' parameter by a new `outer_offset' parameter.
9019 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9020 (ada_value_print): Use
9021 value_contents_for_printing/value_embedded_offset, rather than
9023 (print_record): Add `offset' parameter, and adjust to pass it
9025 (print_field_values): Add `offset' parameter. Replace
9026 `outer_valaddr' parameter by a new `outer_offset' parameter.
9027 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9028 Use value_contents_for_printing/value_embedded_offset, rather than
9030 * d-valprint.c (dynamic_array_type): Use
9031 value_contents_for_printing/value_embedded_offset, rather than
9033 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9034 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9035 (java_print_value_fields): Take `offset' into account. Don't
9036 re-adjust `valaddr'. Instead pass down adjusted offsets.
9037 (java_val_print): Take `embedded_offset' into account. Pass it to
9038 java_print_value_fields.
9039 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9040 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9041 down adjusted offsets.
9042 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9043 (f_val_print): Take `embedded_offset' into account.
9045 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9047 * inflow.c: Include "gdbcmd.h".
9048 (interactive_mode): New static global, moved here from top.c.
9049 (show_interactive_mode): New function, moved here from top.c.
9050 use gdb_has_a_terminal instead of input_from_terminal_p to
9051 determine the current mode.
9052 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9054 (_initialize_inflow): Add the "set/show interactive-mode"
9055 commands. Moved here from top.c, after having adjusted slightly
9057 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9059 (input_from_terminal_p): Remove handling of "interactive-mode"
9060 setting, moved to infow.c.
9061 (init_main): Remove creation of the "set/show interactive-mode"
9062 commands, moved to inflow.c.
9064 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9066 * NEWS: Add entry for native ia64-hpux support.
9068 2011-01-19 Tom Tromey <tromey@redhat.com>
9071 * thread.c (free_thread): Free 'name'.
9072 (print_thread_info): Emit thread name. Change CLI output.
9073 (thread_name_command): New function.
9074 (do_captured_thread_select): Emit newline.
9075 (_initialize_thread): Register 'thread name' command.
9076 * target.h (struct target_ops) <to_thread_name>: New field.
9077 (target_thread_name): New macro.
9078 * target.c (update_current_target): Handle to_thread_name.
9079 * python/py-infthread.c (thpy_get_name): New function.
9080 (thpy_set_name): Likewise.
9081 (thread_object_getset): Add "name".
9082 * linux-nat.c (linux_nat_thread_name): New function.
9083 (linux_nat_add_target): Set to_thread_name.
9084 * gdbthread.h (struct thread_info) <name>: New field.
9086 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9088 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9089 (ada_val_print_1): Likewise.
9091 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9093 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9094 upper limit address is not greater than the function end address
9095 when the upper limit could not be computed using the debugging
9098 2011-01-17 Tom Tromey <tromey@redhat.com>
9100 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9102 * utils.c: Include gdb_regex.h.
9103 (do_regfree_cleanup): New function.
9104 (make_regfree_cleanup): Likewise.
9105 (get_regcomp_error): Likewise.
9106 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9108 2011-01-17 Tom Tromey <tromey@redhat.com>
9110 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9113 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9115 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9116 for internal variables.
9117 (last_was_structop): New static variable.
9118 (COMPLETE): New token.
9119 (field_exp): New rule to group all '.' suffix handling.
9120 Add mark_struct_expression calls when approriate to be able
9121 to correctly find fields for completion.
9122 (yylex): Adapt to handle field completion and set INTVAR when
9125 2011-01-14 Yao Qi <yao@codesourcery.com>
9127 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9128 save_reggroup, restore_reggroup and all_reggroup.
9130 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9132 * ada-valprint. (ada_printchar): Use the correct type length
9133 in call to ada_emit_char.
9134 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9136 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9138 * solib-som.h (hpux_major_release): Declare variable here.
9139 * solib-som.c: Remove <sys/utsname.h> header.
9140 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9141 (hpux_major_release): Make global, change default value to
9142 DEFAULT_HPUX_MAJOR_RELEASE.
9143 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9144 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9145 Add "solib-som.h" header.
9146 (set_hpux_major_release): New function.
9147 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9149 2011-01-14 Mike Frysinger <vapier@gentoo.org>
9151 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9153 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9155 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9156 new-line at end of warning message.
9157 (ia64_hpux_store_register): Remove trailing new-line at end of
9159 * ia64-hpux-tdep.c: Rephrase comment.
9160 * solib-ia64-hpux.c (struct dld_info): Change type of field
9161 dld_flags from "long long" to ULONGEST.
9163 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9165 * target.h (deprecated_child_ops): Delete declaration.
9166 * target.c (deprecated_child_ops): Delete definition.
9168 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9170 * Makefile.in (hpux-thread.o): Delete rule.
9171 * configure.ac: Don't check for HPUX DCE threads support.
9172 * configure, config.in: Regenerate.
9173 * hppa-hpux-nat.c (child_suppress_run): Delete.
9174 (hppa_hpux_child_can_run): Delete.
9175 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9176 * hpux-thread.c: Delete.
9178 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9180 * hpux-thread.c (hpux_pid_to_str): Delete.
9182 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9184 * ada-valprint.c (ada_emit_char): Remove strange code.
9185 Check that c is <= UCHAR_MAX before passing it to isascii.
9186 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9188 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9190 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9191 to the case where instream is stdin.
9193 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9195 * ia64-tdep.h (struct regcache): Forward declare.
9196 (struct ia64_infcall_ops): New struct type.
9197 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9199 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9200 Renames ia64_find_global_pointer.
9201 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9202 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9203 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9205 (ia64_infcall_ops): New static global constant.
9206 (ia64_gdbarch_init): Set tdep->infcall_ops.
9207 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9208 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9209 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9210 (ia64_hpux_dummy_code): New static global constant.
9211 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9212 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9213 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9215 (ia64_hpux_infcall_ops): New static global constant.
9216 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9217 for inferior function calls to work properly on ia64-hpux.
9219 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9221 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9222 * ia64-tdep.h (struct frame_info): forward declaration.
9223 (struct gdbarch_tdep): Add field size_of_register_frame.
9224 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9225 to determine the size of the register frame.
9226 (ia64_size_of_register_frame): New function.
9227 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9228 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9229 (IA64_HPUX_UREG_REASON): New macro.
9230 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9232 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9233 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9234 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9237 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9239 Add support for ia64-hpux.
9240 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9241 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9243 * configure.host: Add handling for ia64-hpux hosts. Add associated
9245 * configure.tgt: Add handling for ia64-hpux targets.
9246 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9247 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9248 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9250 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9252 [ttrace] Compute thread list immediately after attach.
9253 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9255 (inf_ttrace_attach): Use it.
9257 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9259 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9260 if we could not determine the frame's function address. Instead,
9261 use the frame's PC, and then continue.
9263 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9265 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9266 not already defined.
9268 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9270 * ia64-tdep.c (ia64_struct_type_p): New function.
9271 (ia64_extract_return_value): Handle integral values that are
9272 less than 8 bytes long.
9273 (ia64_push_dummy_call): Likewise.
9275 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9277 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9278 floatformat_ia64_ext.
9279 (floatformat_ia64_ext_big): New static const.
9280 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9282 2011-01-12 Tom Tromey <tromey@redhat.com>
9284 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9286 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9287 (mi_cmd_thread_list_ids): Likewise.
9288 (mi_cmd_data_list_changed_registers): Likewise.
9289 (mi_cmd_data_list_register_values): Likewise.
9290 (mi_cmd_data_write_register_values): Likewise.
9291 (mi_cmd_data_evaluate_expression): Likewise.
9292 (mi_cmd_data_read_memory): Likewise.
9293 (mi_cmd_data_read_memory_bytes): Likewise.
9294 (mi_cmd_data_write_memory): Likewise.
9295 (mi_cmd_enable_timings): Likewise.
9296 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9297 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9298 (mi_cmd_var_delete): Likewise.
9299 (mi_cmd_var_set_format): Likewise.
9300 (mi_cmd_var_show_format): Likewise.
9301 (mi_cmd_var_info_num_children): Likewise.
9302 (mi_cmd_var_list_children): Likewise.
9303 (mi_cmd_var_info_type): Likewise.
9304 (mi_cmd_var_info_expression): Likewise.
9305 (mi_cmd_var_show_attributes): Likewise.
9306 (mi_cmd_var_assign): Likewise.
9307 (mi_cmd_var_update): Likewise.
9308 (mi_cmd_enable_pretty_printing): Likewise.
9309 (mi_cmd_var_set_update_range): Likewise.
9310 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9312 (mi_cmd_target_file_put): Likewise.
9313 (mi_cmd_target_file_delete): Likewise.
9314 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9316 (mi_cmd_stack_info_depth): Likewise.
9317 (mi_cmd_stack_list_locals): Likewise.
9318 (mi_cmd_stack_list_args): Likewise.
9319 (mi_cmd_stack_select_frame): Likewise.
9320 (mi_cmd_stack_select_frame): Likewise.
9321 (mi_cmd_stack_info_frame): Likewise.
9322 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9324 (mi_cmd_file_list_exec_source_files): Likewise.
9325 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9326 (mi_cmd_env_cd): Likewise.
9327 (mi_cmd_env_path): Likewise.
9328 (mi_cmd_env_dir): Likewise.
9329 (mi_cmd_inferior_tty_show): Likewise.
9330 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9331 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9332 (mi_cmd_break_watch): Likewise.
9334 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9336 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9337 (ppc_linux_insert_hw_breakpoint): Likewise.
9338 (ppc_linux_remove_hw_breakpoint): Likewise.
9339 (ppc_linux_insert_watchpoint): Likewise.
9341 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9342 Jan Kratochvil <jan.kratochvil@redhat.com>
9344 PR fortran/11104 and DWARF unbound arrays detection.
9345 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9346 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9347 unspecified upper bound.
9348 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9349 variables array_size_array, tmp_type and offset_item. New variable
9350 array. Remove call to f77_get_upperbound. New variables array_type
9351 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9352 the final call to deprecated_set_value_type.
9354 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9356 Make value allocations more lazy.
9357 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9358 instead of allocate_value and set_value_lazy when possible.
9359 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
9360 instead of allocate_value and set_value_lazy.
9361 * findvar.c (value_of_register_lazy): Likewise.
9362 (read_var_value): Remove V preallocation, call just check_typedef in
9363 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
9364 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9365 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
9366 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
9367 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
9368 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
9369 the end, remove set_value_lazy there.
9370 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9371 instead of allocate_value and set_value_lazy when possible.
9372 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9373 * value.c (allocate_computed_value): Use allocate_value_lazy instead
9374 of allocate_value and set_value_lazy.
9375 (value_from_contents_and_address): Use allocate_value_lazy instead of
9376 allocate_value and set_value_lazy when possible.
9378 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9380 * disasm.c (dump_insns): Support dumping opcodes for MI.
9381 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
9382 dumping of instruction opcodes.
9384 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
9386 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
9389 2011-01-11 Tom Tromey <tromey@redhat.com>
9391 * thread.c (do_captured_thread_select): Emit newline before
9394 2011-01-11 Michael Snyder <msnyder@vmware.com>
9396 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
9397 * score-tdep.c: Ditto.
9398 * score-tdep.h: Ditto.
9399 * ser-base.c: Ditto.
9400 * ser-go32.c: Ditto.
9403 * ser-mingw.c: Ditto.
9404 * ser-pipe.c: Ditto.
9406 * ser-unix.c: Ditto.
9407 * sh64-tdep.c: Ditto.
9408 * shnbsd-nat.c: Ditto.
9412 * solib-darwin.c: Ditto.
9413 * solib-frv.c: Ditto.
9415 * solib-irix.c: Ditto.
9416 * solib-osf.c: Ditto.
9417 * solib-pa64.c: Ditto.
9418 * solib-som.c: Ditto.
9419 * solib-spu.c: Ditto.
9420 * solib-sunos.c: Ditto.
9421 * solib-svr4.c: Ditto.
9423 * sol-thread.c: Ditto.
9427 * sparc64-linux-tdep.c: Ditto.
9428 * sparc64-tdep.c: Ditto.
9429 * sparc-linux-nat.c: Ditto.
9430 * sparc-linux-tdep.c: Ditto.
9431 * sparc-sol2-nat.c: Ditto.
9432 * sparc-sol2-tdep.c: Ditto.
9433 * sparc-tdep.c: Ditto.
9434 * sparc-tdep.h: Ditto.
9435 * spu-tdep.c: Ditto.
9436 * stabsread.c: Ditto.
9437 * stabsread.h: Ditto.
9445 * target-descriptions.c: Ditto.
9446 * target-descriptions.h: Ditto.
9448 * target-memory.c: Ditto.
9449 * terminal.h: Ditto.
9452 * tracepoint.c: Ditto.
9453 * tracepoint.h: Ditto.
9454 * trad-frame.h: Ditto.
9455 * typeprint.c: Ditto.
9457 2011-01-11 Michael Snyder <msnyder@vmware.com>
9459 * ui-file.c: Comment cleanup, mostly periods and spaces.
9464 * v850-tdep.c: Ditto.
9465 * valarith.c: Ditto.
9467 * valprint.c: Ditto.
9468 * valprint.h: Ditto.
9473 * vax-tdep.c: Ditto.
9477 * windows-nat.c: Ditto.
9478 * windows-tdep.c: Ditto.
9479 * xcoffread.c: Ditto.
9480 * xcoffsolib.c: Ditto.
9481 * xml-support.c: Ditto.
9482 * xstormy16-tdep.c: Ditto.
9483 * xtensa-tdep.c: Ditto.
9484 * xtensa-tdep.h: Ditto.
9486 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9488 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
9489 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
9491 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9492 Thiago Jung Bauermann <bauerman@br.ibm.com>
9494 Implement support for PowerPC BookE ranged watchpoints.
9496 (struct breakpoint_ops) <resources_needed>: New method.
9497 Initialize to NULL in all existing breakpoint_ops instances.
9498 (struct breakpoint) <exact>: New field.
9499 (target_exact_watchpoints): Declare external global.
9500 * breakpoint.c (target_exact_watchpoints): New global flag.
9501 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
9502 b->enable_state to bp_enabled before calling
9503 hw_watchpoint_used_count.
9504 (hw_watchpoint_used_count): Iterate over all bp_locations in a
9505 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
9507 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
9508 if the watchpoint is exact.
9509 (resources_needed_watchpoint): New function.
9510 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
9511 (watch_command_1): Set b->exact if the user asked for an exact
9512 watchpoint and one can be set.
9513 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
9514 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
9515 the user asks for an exact watchpoint and one can be set. Return
9516 number of needed debug registers to watch the expression.
9517 * gdbtypes.c (is_scalar_type): New function, based on
9518 valprint.c:scalar_type_p.
9519 (is_scalar_type_recursive): New function.
9520 * gdbtypes.h (is_scalar_type_recursive): Declare.
9521 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
9522 handle regions when ranged watchpoints are available.
9523 (create_watchpoint_request): New function.
9524 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
9525 create_watchpoint_request.
9526 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
9527 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
9528 `set powerpc' and `show powerpc' commands.
9529 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9530 Mention documentation comment in the target macro.
9531 (target_region_ok_for_hw_watchpoint): Document return value.
9533 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9535 * breakpoint.c (update_watchpoint): Decide on using a software or
9536 hardware watchpoint after the bp_locations are created.
9538 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9540 Convert hardware watchpoints to use breakpoint_ops.
9541 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
9542 <insert_location>: ... this. Return int instead of void.
9543 Accept pointer to struct bp_location instead of pointer to
9544 struct breakpoint. Adapt all implementations.
9545 (breakpoint_ops) <remove>: Rename to...
9546 <remove_location>: ... this. Accept pointer to struct bp_location
9547 instead of pointer to struct breakpoint. Adapt all implementations.
9548 * breakpoint.c (insert_catchpoint): Delete function.
9549 (insert_bp_location): Call the watchpoint or catchpoint's
9550 breakpoint_ops.insert method.
9551 (remove_breakpoint_1): Call the watchpoint or catchpoint's
9552 breakpoint_ops.remove method.
9553 (insert_watchpoint, remove_watchpoint): New functions.
9554 (watchpoint_breakpoint_ops): New structure.
9555 (watch_command_1): Initialize the OPS field.
9556 * inf-child.c (inf_child_insert_fork_catchpoint)
9557 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9558 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9559 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9561 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9562 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9563 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9564 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9565 * target.c (update_current_target): Change default implementation of
9566 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9567 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9568 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9569 to_set_syscall_catchpoint to return_one.
9570 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9571 (debug_to_insert_exec_catchpoint): Report return value.
9572 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9573 (to_insert_exec_catchpoint): Change declaration to return int instead
9576 2011-01-11 Michael Snyder <msnyder@vmware.com>
9578 * arm-tdep.c: Internationalization.
9581 * fork-child.c: Ditto.
9582 * nto-procfs.c: Ditto.
9583 * ppc-sysv-tdep.c: Ditto.
9585 * remote-mips.c: Ditto.
9587 * rs6000-nat.c: Ditto.
9588 * rs6000-tdep.c: Ditto.
9592 * xml-support.c: Ditto.
9593 * mi/mi-cmd-break.c: Ditto.
9594 * mi/mi-cmd-var.c: Ditto.
9595 * mi/mi-interp.c: Ditto.
9596 * mi/mi-main.c: Ditto.
9598 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
9600 * remote-sim.c (gdbsim_store_register): Update API to
9601 sim_store_register to check more error conditions.
9603 2011-01-10 Michael Snyder <msnyder@vmware.com>
9605 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9606 * nto-tdep.c: Ditto.
9607 * nto-tdep.h: Ditto.
9608 * objc-exp.y: Ditto.
9609 * objc-lang.c: Ditto.
9610 * objfiles.c: Ditto.
9611 * objfiles.h: Ditto.
9612 * observer.c: Ditto.
9613 * opencl-lang.c: Ditto.
9616 * parser-defs.h: Ditto.
9619 * posix-hdep.c: Ditto.
9620 * ppcbug-rom.c: Ditto.
9621 * ppc-linux-nat.c: Ditto.
9622 * ppc-linux-tdep.c: Ditto.
9623 * ppc-linux-tdep.h: Ditto.
9624 * ppcnbsd-tdep.c: Ditto.
9625 * ppcobsd-tdep.c: Ditto.
9626 * ppcobsd-tdep.h: Ditto.
9627 * ppc-sysv-tdep.c: Ditto.
9628 * ppc-tdep.h: Ditto.
9629 * printcmd.c: Ditto.
9630 * proc-abi.c: Ditto.
9631 * proc-flags.c: Ditto.
9633 * proc-utils.h: Ditto.
9634 * progspace.h: Ditto.
9635 * prologue-value.c: Ditto.
9636 * prologue-value.h: Ditto.
9637 * psympriv.h: Ditto.
9639 * p-typeprint.c: Ditto.
9640 * p-valprint.c: Ditto.
9641 * ravenscar-sparc-thread.c: Ditto.
9642 * ravenscar-thread.c: Ditto.
9643 * ravenscar-thread.h: Ditto.
9645 * regcache.c: Ditto.
9646 * regcache.h: Ditto.
9648 * remote-fileio.c: Ditto.
9649 * remote-fileio.h: Ditto.
9651 * remote-m32r-sdi.c: Ditto.
9652 * remote-mips.c: Ditto.
9653 * remote-sim.c: Ditto.
9654 * rs6000-aix-tdep.c: Ditto.
9655 * rs6000-nat.c: Ditto.
9656 * rs6000-tdep.c: Ditto.
9658 2011-01-10 Michael Snyder <msnyder@vmware.com>
9660 * charset.c (validate): Internationalization.
9661 * coffread.c (read_one_sym): Ditto.
9662 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9663 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9664 * inflow.c (new_tty): Ditto.
9665 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9666 * m32c-tdep.c (m32c_return_value): Ditto.
9667 * mep-tdep.c (mep_store_return_value): Ditto.
9668 * score-tdep.c (score7_fetch_insn): Ditto.
9669 * ser-mingw.c (pipe_windows_open): Ditto.
9670 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9671 * spu-tdep.c (spu_register_type): Ditto.
9672 * tracepoint.c (trace_find_command): Ditto.
9673 * valarith.c (value_pos): Ditto.
9675 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9677 * ada-valprint.c (printstr): Minor comment reformatting.
9679 2011-01-08 Michael Snyder <msnyder@vmware.com>
9681 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9684 2011-01-08 Michael Snyder <msnyder@vmware.com>
9686 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9687 * hppa-hpux-tdep.c: Ditto.
9688 * hppa-linux-nat.c: Ditto.
9689 * hppa-linux-tdep.c: Ditto.
9690 * hppanbsd-tdep.c: Ditto.
9691 * hppa-tdep.c: Ditto.
9692 * hppa-tdep.h: Ditto.
9693 * hpux-thread.c: Ditto.
9694 * i386-cygwin-tdep.c: Ditto.
9695 * i386-darwin-nat.c: Ditto.
9696 * i386gnu-nat.c: Ditto.
9697 * i386-linux-nat.c: Ditto.
9698 * i386-linux-tdep.c: Ditto.
9699 * i386-nat.c: Ditto.
9700 * i386-nat.h: Ditto.
9701 * i386nbsd-tdep.c: Ditto.
9702 * i386-sol2-nat.c: Ditto.
9703 * i386-stub.c: Ditto.
9704 * i386-tdep.c: Ditto.
9705 * i386-tdep.h: Ditto.
9706 * i387-tdep.c: Ditto.
9707 * ia64-linux-nat.c: Ditto.
9708 * ia64-linux-tdep.c: Ditto.
9709 * ia64-tdep.c: Ditto.
9713 * inferior.c: Ditto.
9714 * inferior.h: Ditto.
9720 * iq2000-tdep.c: Ditto.
9721 * irix5-nat.c: Ditto.
9727 * jv-typeprint.c: Ditto.
9728 * jv-valprint.c: Ditto.
9729 * language.c: Ditto.
9730 * language.h: Ditto.
9731 * linespec.c: Ditto.
9732 * linux-fork.c: Ditto.
9733 * linux-nat.c: Ditto.
9734 * linux-thread-db.c: Ditto.
9735 * lm32-tdep.c: Ditto.
9737 2011-01-08 Michael Snyder <msnyder@vmware.com>
9739 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9741 * m2-typeprint.c: Ditto.
9742 * m2-valprint.c: Ditto.
9743 * m32c-tdep.c: Ditto.
9744 * m32r-linux-nat.c: Ditto.
9745 * m32r-rom.c: Ditto.
9746 * m32r-tdep.c: Ditto.
9747 * m32r-tdep.h: Ditto.
9748 * m68hc11-tdep.c: Ditto.
9749 * m58klinux-nat.c: Ditto.
9750 * m68k-tdep.c: Ditto.
9751 * m88k-tdep.c: Ditto.
9752 * m88k-tdep.h: Ditto.
9753 * machoread.c: Ditto.
9754 * macrocmd.c: Ditto.
9755 * macroexp.c: Ditto.
9756 * macrotab.c: Ditto.
9759 * mdebugread.c: Ditto.
9760 * mdebugread.h: Ditto.
9763 * memory-map.h: Ditto.
9764 * mep-tdep.c: Ditto.
9765 * microblaze-rom.c: Ditto.
9766 * microblaze-tdep.c: Ditto.
9768 * mips-irix-tdep.c: Ditto.
9769 * mips-linux-nat.c: Ditto.
9770 * mips-linux-tdep.c: Ditto.
9771 * mips-linux-tdep.h: Ditto.
9772 * mipsnbsd-nat.c: Ditto.
9773 * mipsnbsd-tdep.c: Ditto.
9774 * mipsread.c: Ditto.
9775 * mips-tdep.c: Ditto.
9776 * mips-tdep.h: Ditto.
9777 * mn10300-linux-tdep.c: Ditto.
9778 * mn10300-tdep.c: Ditto.
9779 * mn10300-tdep.h: Ditto.
9782 * moxie-tdep.c: Ditto.
9783 * moxie-tdep.h: Ditto.
9786 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9788 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9790 2011-01-08 Robert Millan <rmh@gnu.org>
9792 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9794 2011-01-07 Michael Snyder <msnyder@vmware.com>
9796 * charset.c (_initialize_charset): Fix typo in string.
9798 2011-01-07 Michael Snyder <msnyder@vmware.com>
9800 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9802 * tui/tui-layout.c (tui_set_layout_for_display_command):
9803 Split line so that operator goes to beginning of line.
9804 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9805 assignment out of if statement.
9807 2011-01-07 Michael Snyder <msnyder@vmware.com>
9809 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9810 * ada-lang.h: Ditto.
9811 * ada-tasks.c: Ditto.
9812 * ada-valprint.c: Ditto.
9813 * aix-threads.c: Ditto.
9814 * alpha-linux-nat.c: Ditto.
9815 * alpha-linux-tdep.c: Ditto.
9816 * alpha-mdebug-tdep.c: Ditto.
9817 * alpha-nat.c: Ditto.
9818 * alpha-osf1-tdep.c: Ditto.
9819 * alpha-tdep.c: Ditto.
9820 * alphabsd-nat.c: Ditto.
9821 * alphabsd-tdep.c: Ditto.
9822 * amd64-darwin-tdep.c: Ditto.
9823 * amd64-linux-nat.c: Ditto.
9824 * amd64-linux-tdep.c: Ditto.
9825 * amd64-sol2-tdep.c: Ditto.
9826 * amd64-tdep.c: Ditto.
9827 * amd64-fbsd-tdep.c: Ditto.
9828 * amd64-nbsd-tdep.c: Ditto.
9829 * amd64-obsd-tdep.c: Ditto.
9830 * amd64-linux-nat.c: Ditto.
9831 * amd64-linux-tdep.c: Ditto.
9832 * arm-tdep.c: Ditto.
9833 * arm-tdep.h: Ditto.
9834 * armnbsd-nat.c: Ditto.
9835 * avr-tdep.c: Ditto.
9836 * bfin-tdep.c: Ditto.
9838 * c-typeprintc: Ditto.
9839 * c-valprint.c: Ditto.
9840 * coff-pe-read.h: Ditto.
9841 * coffreead.c: Ditto.
9842 * cris-tdep.c: Ditto.
9844 * darwin-nat-info.c: Ditto.
9845 * darwin-nat.c: Ditto.
9846 * dbug-rom.c: Ditto.
9850 * dec-thread.c: Ditto.
9852 * demangle.c: Ditto.
9853 * dicos-tdep.c: Ditto.
9854 * dictionary.c: Ditto.
9855 * dictionary.h: Ditto.
9856 * dink32-rom.c: Ditto.
9858 * doublest.c: Ditto.
9860 * dummy-frame.c: Ditto.
9861 * dwarf2-frame.c: Ditto.
9862 * dwarf2expr.c: Ditto.
9863 * dwarf2loc.c: Ditto.
9864 * dwarf2read.c: Ditto.
9868 * event-top.h: Ditto.
9869 * exceptions.c: Ditto.
9870 * exceptions.h: Ditto.
9872 * expprint.c: Ditto.
9873 * expression.h: Ditto.
9877 * f-typeprint.c: Ditto.
9878 * f-valprint.c: Ditto.
9879 * fbsd-nat.c: Ditto.
9881 * fork-child.c: Ditto.
9884 * frv-linux-tdep.c: Ditto.
9885 * frv-tdep.c: Ditto.
9887 * gdb-stabs.h: Ditto.
9888 * gdb_assert.h: Ditto.
9889 * gdb_string.h: Ditto.
9890 * gdb_thread_db.h: Ditto.
9891 * gdb_wait.h: Ditto.
9892 * gdbarch.sh: Ditto.
9894 * gdbthread.h: Ditto.
9895 * gdbtypes.c: Ditto.
9896 * gdbtypes.h: Ditto.
9899 * gnu-v2-abi.c: Ditto.
9900 * gnu-v3-abi.c: Ditto.
9901 * go32-nat.c: Ditto.
9902 * gdbarch.c: Regenerate.
9903 * gdbarch.h: Regenerate.
9905 2011-01-07 Michael Snyder <msnyder@vmware.com>
9907 * ax-gdb.c: Adjust some long output strings.
9908 * breakpoint.c: Ditto.
9913 * linux-nat.c: Ditto.
9914 * solib-pa64.c: Ditto.
9915 * solib-som.c: Ditto.
9917 2011-01-06 Tom Tromey <tromey@redhat.com>
9921 * python/python.c (GdbMethods): Add "newest_frame" method.
9922 * python/python-internal.h (gdbpy_newest_frame): Declare.
9923 * python/py-frame.c (gdbpy_newest_frame): New function.
9925 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9927 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9928 * jit.c (jit_debug): New variable.
9929 (show_jit_debug): New function.
9930 (struct target_buffer): Use ULONGEST.
9931 (bfd_open_from_target_memory): Likewise.
9932 (jit_register_code, jit_inferior_init): Add debug output.
9933 (_initialize_jit): Register "debug jit" command.
9935 2011-01-06 Tom Tromey <tromey@redhat.com>
9937 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9938 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9941 2011-01-06 Tom Tromey <tromey@redhat.com>
9943 * python/py-frame.c (frapy_block): Use get_frame_block.
9945 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9947 Do not stop on SIGPRIO signals by default
9948 * infrun.c (_initialize_infrun): Unset signal_stop and
9949 signal_print for TARGET_SIGNAL_PRIO.
9951 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9953 * ada-tasks.c: Fix style violation in comment.
9955 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9957 * linespec.c (decode_compound, find_method): Remove trailing \n
9958 at end of error string.
9959 * solib-irix.c (irix_current_sos): Likewise.
9960 * varobj.c (uninstall_variable): Likewise.
9962 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9964 * copyright.py: New script.
9965 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9966 Launch emacs without exec'ing. Call copyright.py afterwards.
9968 2011-01-05 Michael Snyder <msnyder@vmware.com>
9970 * addrmap.c: Shorten lines of >= 80 columns.
9971 * arch-utils.c: Ditto.
9972 * arch-utils.h: Ditto.
9974 * ax-general.c: Ditto.
9976 * blockframe.c: Ditto.
9977 * breakpoint.c: Ditto.
9978 * buildsym.c: Ditto.
9980 * c-typeprint.c: Ditto.
9982 * coffread.c: Ditto.
9986 * cp-namespace.c: Ditto.
9987 * cp-support.c: Ditto.
9988 * dbug-rom.c: Ditto.
9993 * dictionary.c: Ditto.
9995 * doublest.c: Ditto.
9996 * dwarf2-frame.c: Ditto.
9997 * dwarf2expr.c: Ditto.
9998 * dwarf2loc.c: Ditto.
9999 * dwarf2read.c: Ditto.
10000 * elfread.c: Ditto.
10002 * event-loop.c: Ditto.
10003 * event-loop.h: Ditto.
10004 * exceptions.h: Ditto.
10006 * expprint.c: Ditto.
10007 * expression.h: Ditto.
10009 * f-valprint.c: Ditto.
10010 * findcmd.c: Ditto.
10011 * frame-base.c: Ditto.
10012 * frame-unwind.c: Ditto.
10013 * frame-unwind.h: Ditto.
10017 * gdb-stabs.h: Ditto.
10018 * gdb_assert.h: Ditto.
10019 * gdb_dirent.h: Ditto.
10020 * gdb_obstack.h: Ditto.
10021 * gdbcore.h: Ditto.
10022 * gdbtypes.c: Ditto.
10023 * gdbtypes.h: Ditto.
10024 * inf-ttrace.c: Ditto.
10025 * infcall.c: Ditto.
10029 * inline-frame.h: Ditto.
10030 * language.c: Ditto.
10031 * language.h: Ditto.
10032 * libunwind-frame.c: Ditto.
10033 * libunwind-frame.h: Ditto.
10034 * linespec.c: Ditto.
10035 * linux-nat.c: Ditto.
10036 * linux-nat.h: Ditto.
10037 * linux-thread-db.c: Ditto.
10038 * machoread.c: Ditto.
10039 * macroexp.c: Ditto.
10040 * macrotab.c: Ditto.
10043 * mdebugread.c: Ditto.
10044 * memattr.c: Ditto.
10045 * minsyms.c: Ditto.
10046 * monitor.c: Ditto.
10047 * monitor.h: Ditto.
10048 * objfiles.c: Ditto.
10049 * objfiles.h: Ditto.
10051 * p-typeprint.c: Ditto.
10052 * p-valprint.c: Ditto.
10054 * printcmd.c: Ditto.
10055 * proc-events.c: Ditto.
10057 * progspace.c: Ditto.
10058 * progspace.h: Ditto.
10059 * psympriv.h: Ditto.
10060 * psymtab.c: Ditto.
10062 * regcache.c: Ditto.
10063 * regcache.h: Ditto.
10064 * remote-fileio.c: Ditto.
10066 * ser-mingw.c: Ditto.
10067 * ser-tcp.c: Ditto.
10068 * ser-unix.c: Ditto.
10071 * solib-frv.c: Ditto.
10072 * solib-irix.c: Ditto.
10073 * solib-osf.c: Ditto.
10074 * solib-pa64.c: Ditto.
10075 * solib-som.c: Ditto.
10076 * solib-sunos.c: Ditto.
10077 * solib-svr4.c: Ditto.
10078 * solib-target.c: Ditto.
10080 * somread.c: Ditto.
10082 * stabsread.c: Ditto.
10083 * stabsread.c: Ditto.
10086 * symfile-mem.c: Ditto.
10087 * symfile.c: Ditto.
10088 * symfile.h: Ditto.
10089 * symmisc.c: Ditto.
10092 * target-descriptions.c: Ditto.
10093 * target-memory.c: Ditto.
10096 * terminal.h: Ditto.
10099 * tracepoint.c: Ditto.
10100 * tracepoint.h: Ditto.
10101 * ui-file.c: Ditto.
10102 * ui-file.h: Ditto.
10104 * user-regs.c: Ditto.
10105 * user-regs.h: Ditto.
10107 * valarith.c: Ditto.
10109 * valprint.c: Ditto.
10110 * valprint.h: Ditto.
10115 * xcoffread.c: Ditto.
10116 * xcoffsolib.c: Ditto.
10117 * xcoffsolib.h: Ditto.
10118 * xml-syscall.c: Ditto.
10119 * xml-tdesc.c: Ditto.
10121 2011-01-05 Michael Snyder <msnyder@vmware.com>
10123 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10124 * cli/cli-decode.c: Ditto.
10125 * cli/cli-dump.c: Ditto.
10126 * cli/cli-logging.c: Ditto.
10127 * cli/cli-script.c: Ditto.
10128 * cli/cli-setshow.c: Ditto.
10129 * common/signals.c: Ditto.
10130 * mi/mi-cmd-break.c: Ditto.
10131 * mi/mi-cmd-disas.c: Ditto.
10132 * mi/mi-cmd-stack.c: Ditto.
10133 * mi/mi-cmd-var.c: Ditto.
10134 * mi/mi-cmds.c: Ditto.
10135 * mi/mi-common.h: Ditto.
10136 * mi/mi-console.c: Ditto.
10137 * mi/mi-interp.c: Ditto.
10138 * mi/mi-main.c: Ditto.
10139 * osf-share/cma_attr.c: Ditto.
10140 * osf-share/cma_deb_core.h: Ditto.
10141 * osf-share/cma_debug_client.h: Ditto.
10142 * osf-share/cma_handle.h: Ditto.
10143 * osf-share/cma_mutex.h: Ditto.
10144 * osf-share/cma_stack_int.h: Ditto.
10145 * osf-share/cma_tcb_defs.h: Ditto.
10146 * python/py-auto-load.c: Ditto.
10147 * python/py-breakpoint.c: Ditto.
10148 * python/py-cmd.c: Ditto.
10149 * python/py-frame.c: Ditto.
10150 * python/py-objfile.c: Ditto.
10151 * python/py-param.c: Ditto.
10152 * python/py-progspace.c: Ditto.
10153 * python/py-symbol.c: Ditto.
10154 * python/py-value.c: Ditto.
10155 * python/python-internal.h: Ditto.
10156 * python/python.c: Ditto.
10157 * tui/tui-data.c: Ditto.
10158 * tui/tui-disasm.c: Ditto.
10159 * tui/tui-hooks.c: Ditto.
10160 * tui/tui-io.c: Ditto.
10161 * tui/tui-layout.c: Ditto.
10162 * tui/tui-regs.c: Ditto.
10163 * tui/tui-source.c: Ditto.
10164 * tui/tui-stack.c: Ditto.
10165 * tui/tui-win.c: Ditto.
10166 * tui/tui-windata.c: Ditto.
10167 * tui/tui-winsource.c: Ditto.
10169 2011-01-05 Joel Brobecker <brobecker@adacore.com>
10171 * configure.ac, gdb.1: Copyright year update.
10173 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10175 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10176 this_pc_in_block, morestack_msym and morestack_name. Check for
10177 "__morestack" minimal symbol there.
10179 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10181 * symfile.c (find_sym_fns): Add call to dont_repeat.
10183 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10185 Copyright year update in most files (performed by copyright.sh).
10187 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10189 * top.c (print_gdb_version): Update copyright year in version output.
10191 For older changes see ChangeLog-2010.
10197 version-control: never