1 2011-10-28 Alen Skondro <askondro@gmail.com>
3 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
6 2011-10-27 Meador Inge <meadori@codesourcery.com>
8 * MAINTAINERS (Write After Approval): Add myself to the list.
10 2011-10-27 Joel Brobecker <brobecker@adacore.com>
12 * value.h (read_frame_register_value): Add declaration.
13 * findvar.c (read_frame_register_value): New function.
14 (value_from_register): Use read_frame_register_value
15 instead of get_frame_register_value + value_contents_copy
16 to get value contents.
18 2011-10-27 Doug Evans <dje@google.com>
20 * cli/cli-cmds.c (source_script_with_search): Pass full path to
21 source_script_from_stream if it may have been found on the search path.
22 * python/py-auto-load.c (source_section_scripts): Pass full path to
23 source_python_script_for_objfile.
24 * python/python.c (source_python_script): Delete stream parameter.
26 (source_python_script_for_objfile): Ditto.
27 * python/python-internal.h (source_python_script_for_objfile): Update.
28 * python/python.h (source_python_script): Update.
30 2011-10-27 Tom Tromey <tromey@redhat.com>
32 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
33 (ada_sals_for_line): Remove declarations.
35 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
37 Move unwind reasons to an external .def file
38 * frame.c (frame_stop_reason_string): Rewrite using
39 unwind_stop_reasons.def.
40 * frame.h (enum unwind_stop_reason): Likewise.
41 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
42 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
43 constants for bound-checking.
44 * unwind_stop_reasons.def: New file.
45 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
46 instead of a distinct value.
48 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
52 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
53 (convert_values_to_python): Return on Python tuple allocation
54 failure. Return NULL on value conversion error.
56 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
58 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
59 (bppy_set_task): Ditto.
60 (bppy_delete_breakpoint): Ditto.
61 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
62 (gdbpy_lookup_global_symbol): Ditto.
63 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
64 * python/py-frame.c (frapy_is_valid): Ditto.
65 (frame_info_to_frame_object): Ditto.
66 * python/py-type.c (typy_lookup_type): Ditto.
67 (typy_getitem): Ditto.
68 (typy_has_key): Ditto.
69 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
71 2011-10-26 Joel Brobecker <brobecker@adacore.com>
73 * gdbarch.h: Regenerate.
75 2011-10-26 Meador Inge <meadori@codesourcery.com>
77 * gdbarch.sh (function_list): Use 'pstring' when printing
79 * gdbarch.c: Regenerate.
81 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
83 * regcache.c (registers_changed_ptid): Invalidate thread architecture
84 and frame caches if PTID refers to all threads of a process.
86 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
88 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
91 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
93 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
94 (ppc_sysv_abi_push_dummy_call): Use it.
95 (do_ppc_sysv_return_value): Likewise.
96 (ppc64_sysv_abi_push_dummy_call): Likewise.
97 (ppc64_sysv_abi_return_value): Likewise.
99 2011-10-26 Paul Koning <paul_koning@dell.com>
101 * python/lib/gdb/types.py (deepitems): New function.
103 2011-10-25 Paul Koning <paul_koning@dell.com>
107 * python/py-value.c (value_to_value_object): Remove fetching of
108 the value if it was lazy.
109 (valpy_get_is_lazy): New function.
110 (valpy_fetch_lazy): New function.
112 2011-10-24 Joel Brobecker <brobecker@adacore.com>
114 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
115 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
117 2011-10-24 Pedro Alves <pedro@codesourcery.com>
119 * linux-nat.c (linux_handle_extended_wait): When handling a clone
120 event, in non-stop, if not stopping, make sure the new lwp has
121 last_resume_kind set to resume_continue. Assert that when we're
122 resuming the new lwp, its last_resume_kind is resume_continue.
124 2011-10-24 Pedro Alves <pedro@codesourcery.com>
126 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
127 already set when marking the event thread as not executing in
130 2011-10-24 Pedro Alves <pedro@codesourcery.com>
132 * infrun.c (handle_inferior_event): Add debug output for
133 TARGET_WAITKIND_NO_HISTORY.
135 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
137 * NEWS: Move set/show extended-prompt to "New Options". Expand
138 description. Fix typos.
140 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
144 * python/py-param.c (call_doc_function): Correctly deference on
147 2011-10-21 Joel Brobecker <brobecker@adacore.com>
149 * ada-tasks.c (print_ada_task_info): Fix computation of
150 number of tasks displayed in command output.
152 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
153 Ulrich Weigand <uweigand@de.ibm.com>
155 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
156 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
157 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
158 gdbarch_pc_regnum and frame_unwind_register_unsigned by
161 2011-10-20 Cary Coutant <ccoutant@google.com>
163 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
165 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
166 flag. Adjust all callers.
167 (process_psymtab_comp_unit): Remove adjustment for type section.
169 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
171 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
172 arguments by adding OBJFILE. Instead of getting objfile from
173 symbol's symtab, use new argument OBJFILE.
174 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
175 arguments by adding OBJFILE.
176 * gdb/dwarf2read.c (new_symbol_full): Change call to
177 cp_scan_for_anonymous_namespaces to match new signature.
178 * gdb/stabsread.c (define_symbol): Change call to
179 cp_scan_for_anonymous_namespaces to match new signature.
181 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
186 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
188 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
189 leak. Delete unused variables.
191 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
195 * python/py-frame.c (frapy_read_var): Use const struct *block.
196 * python/py-type.c (typy_lookup_typename): Likewise.
197 (typy_lookup_type): Likewise.
198 (typy_legacy_template_argument): Likewise.
199 (typy_template_argument): Likewise.
200 (gdbpy_lookup_type): Likewise.
201 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
202 * python/py-block.c (blpy_block_object): Likewise.
203 (blpy_iter): Likewise.
204 (blpy_get_start): Likewise.
205 (blpy_get_end): Likewise.
206 (blpy_get_function): Likewise.
207 (blpy_get_superblock): Likewise.
208 (set_block): Likewise.
209 (block_to_block_object): Likewise.
210 (block_object_to_block): Likewise.
211 (blpy_is_valid): Likewise.
212 (blpy_get_global_block): New function.
213 (blpy_get_static_block): New function.
214 (blpy_is_global): New function.
215 (blpy_is_static): New function.
216 * blockframe.c (block_innermost_frame): Likewise.
217 * valops.c (value_of_variable): Likewise.
218 * frame.h: Update prototypes.
219 * python/python-internal.h: Likewise.
222 2011-10-19 Cary Coutant <ccoutant@google.com>
224 * dwarf2read.c (create_debug_types_hash_table): Fix size of
227 2011-10-19 Cary Coutant <ccoutant@google.com>
229 * dwarf2read.c (peek_abbrev_code): New function.
230 (dw2_get_file_names): Check for dummy compilation units.
231 (create_debug_types_hash_table): Likewise.
232 (process_psymtab_comp_unit): Likewise.
233 (load_partial_comp_unit): Likewise.
234 (load_full_comp_unit): Likewise.
236 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
238 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
239 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
240 pt_phdr if PT_PHDR was found.
242 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
244 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
245 type or "<unnamed type"> when there is no name assigned.
246 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
247 avoid a sigint when no name is assigned.
249 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
252 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
253 * dwarf2expr.c (ctx_no_read_reg): New function.
254 * dwarf2expr.h (ctx_no_read_reg): New declaration.
255 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
256 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
257 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
259 2011-10-16 Doug Evans <dje@google.com>
261 * NEWS: Document python gdb.printing.register_pretty_printer's new
264 2011-10-14 Keith Seitz <keiths@redhat.com>
267 * eval.c (evaluate_subexp_standard): Do not construct
268 an array of types; pass the value array directly to
270 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
271 (rank_function): Take an array of values instead of types.
272 (rank_one_type): Add struct value * parameter.
273 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
274 (rank_function): For each argument, pass the argument's
275 value to rank_one_type.
276 (rank_one_type): Add VALUE parameter.
277 If the parameter type is a pointer and the argument type
278 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
280 Update all calls to rank_one_type, passing NULL for new
282 * valarith.c (value_user_defined_cpp_op): Do not construct
283 an array of types; pass the value array directly to
285 * valops.c (find_overload_method_list): Take an array of
286 values instead of types.
287 Save the type of OBJP for later use.
288 Update calls to find_oload_champ, and find_oload_champ_namespace.
289 (find_oload_champ_namespace): Take an array of values instead
291 (find_oload_champ_namespace_loop): Likewise.
292 (find_oload_champ): Likewise.
293 (classify_oload_match): Inspect all arguments
294 until INCOMPATIBLE is found. Return the worst badness found
296 (compare_parameters): Update call to rank_one_type.
297 * value.h (find_overload_match): Take an array of values instead
300 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
302 Drop lazy lm_info reading.
303 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
304 l_addr_inferior, l_ld, l_next, l_prev and l_name.
305 (lm_info_read): New function.
306 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
307 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
308 lm_dynamic_from_link_map.
309 (lm_next, lm_prev, lm_name): Remove.
310 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
311 initialization incl. read_memory. No longer use lm_name.
312 (svr4_free_so): Drop lm_info->lm freeing.
313 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
314 explicit lm_addr and lm initialization.
315 (svr4_read_so_list): Use lm_info_read, drop the initailization of
316 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
319 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
320 Paul Pluzhnikov <ppluzhnikov@google.com>
322 * defs.h (struct so_list): New forward declaration.
323 (make_cleanup_free_so): New declaration.
324 * solib-svr4.c (ignore_first_link_map_entry): Remove.
325 (svr4_free_so): Move the function here from downwards. Handle NULL
327 (svr4_free_library_list): New.
328 (svr4_read_so_list): New, moved here code from svr4_current_sos.
329 Use more cleanups. Use new parameter ignore_first instead of
330 ignore_first_link_map_entry.
331 (svr4_current_sos): New variable ignore_first, initialize it. New
332 variable back_to, use it for svr4_free_library_list protection.
333 (svr4_free_so): Remove - move upwards.
334 * utils.c: Include solist.h.
335 (do_free_so, make_cleanup_free_so): New functions.
337 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
339 Fix internal error regression.
340 * value.c (value_primitive_field): Handle value_optimized_out. Move
341 packed bitfields comment.
343 2011-10-13 Tom Tromey <tromey@redhat.com>
345 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
348 2011-10-13 Tom Tromey <tromey@redhat.com>
350 * python/py-type.c (typy_has_key): Make 'field' const.
352 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
354 * remote.c (remote_save_trace_data): Invert comparison.
356 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
358 * tracepoint.c (trace_save_command): Use filename instead of
361 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
363 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
366 2011-10-13 Yao Qi <yao@codesourcery.com>
369 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
370 whether insn is a 32-bit Thumb-2 instruction.
371 (thumb_in_function_epilogue_p): Likewise.
372 (thumb_get_next_pc_raw): Likewise.
373 (arm_breakpoint_from_pc): Likewise.
375 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
377 Fix empty DWARF expressions DATA vs. SIZE conditionals.
378 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
379 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
380 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
381 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
383 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
385 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
386 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
387 clear DATA on zero SIZE.
389 2011-10-12 Doug Evans <dje@google.com>
391 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
392 header->first_die_offset here. All callers updated.
394 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
396 Fix compatibility with texinfo versions older than 4.12.
397 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
398 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
399 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
400 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
401 * configure: Regenerate.
402 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
403 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
404 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
406 2011-10-12 Gary Benson <gbenson@redhat.com>
408 * breakpoint.h (pc_at_non_inline_function): Declare.
409 * breakpoint.c (is_non_inline_function,
410 pc_at_non_inline_function): New functions.
411 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
412 if the stop is at a location where functions cannot be inlined.
414 2011-10-12 Pedro Alves <pedro@codesourcery.com>
416 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
417 the core wanted them stopped, or if they now have a pending event
419 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
420 down to stop_and_resume_callback.
421 (linux_nat_wait_1): Always clear `options' when retrying. Handle
422 having new pending events after calling linux_nat_filter_event.
424 2011-10-11 Sterling Augustine <saugustine@google.com>
426 * dwarf2read.c: Undo inadvertent changes in previous commit.
428 2011-10-11 Sterling Augustine <saugustine@google.com>
430 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
433 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
435 * symfile.c (separate_debug_file_exists): Fix condition.
437 2011-10-11 David S. Miller <davem@davemloft.net>
439 * regcache.c (regcache_restore): Do not write unavailable regs, mark
441 * regcache.h (regcache_restore): Remove declaration.
443 * gdbarch.sh: New field 'long_long_align_bit'.
444 * gdbarch.c, gdbarch.h: Regenerate.
445 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
446 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
448 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
451 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
452 Support @entry in input expressions.
453 * c-exp.y (ENTRY, unknown_cpp_name): New.
454 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
455 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
456 (variable: name_not_typename '@' ENTRY, name: ENTRY)
457 (name_not_typename: ENTRY): New.
458 (yylex): Recognize ENTRY.
460 Reimplement @entry in input expressions.
461 * c-exp.y (ENTRY): New.
462 (variable: name_not_typename ENTRY): New.
463 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
465 2011-10-11 Pedro Alves <pedro@codesourcery.com>
467 * linux-nat.c (linux_handle_extended_wait): Always dump both the
468 parent and child's pids as soon as we detect a clone event.
469 Adjust another debug message.
471 2011-10-11 Pedro Alves <pedro@codesourcery.com>
473 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
474 not zombie instead of reading the whole file.
476 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
478 Fix separate debuginfo warning with "remote:" access.
479 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
480 * symfile.c (get_file_crc): New function with the code moved from ...
481 (separate_debug_file_exists): ... this function, specifically variables
482 buffer and count. New variable verified_as_different, set it. Remove
483 file_crc initialization. Verify also if both files are not the same
486 2011-10-11 Yao Qi <yao@codesourcery.com>
488 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
491 2011-10-10 Doug Evans <dje@google.com>
493 * linux-thread-db.c (thread_db_new_objfile): Only try to load
494 libthread_db when we load libpthread or the main symbol file.
495 (thread_db_inferior_created): New function.
496 (_initialize_thread_db): Attach inferior_created observer.
497 * linux-nat.c (linux_child_post_attach): Remove call to
499 (linux_child_post_startup_inferior): Ditto.
500 * objfiles.h (OBJF_MAINLINE): Define.
501 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
502 allocate_objfile when appropriate.
504 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
507 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
508 Remove unused variables.
509 (get_linux_version): Remove function.
510 (_initialize_arm_linux_nat): Do not call it.
512 2011-10-10 Pedro Alves <pedro@codesourcery.com>
514 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
515 new clone lwp if the core asked it to stop. Don't pass on
516 unexpected signals to the new clone; leave them pending instead.
518 2011-10-10 Pedro Alves <pedro@codesourcery.com>
520 * linux-nat.c (resume_lwp): Remove redundant debug output.
522 2011-10-10 Pedro Alves <pedro@codesourcery.com>
524 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
525 last_resume_kind before clearing it, and use the copy instead to
526 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
527 resume_clear_callback in the non-stop path too.
529 2011-10-09 Yao Qi <yao@codesourcery.com>
531 * valprint.c (value_check_printable): Add one parameter OPTIONS.
532 Honor OPTIONS and VAL's type.
533 (common_val_print, value_print): Update to pass one more parameter.
535 2011-10-09 Doug Evans <dje@google.com>
537 Add new "alias" command.
538 * NEWS: Mention new command.
539 * command.h (valid_user_defined_cmd_name_p): Declare.
540 * defs.h (make_cleanup_dyn_string_delete): Declare.
541 * utils.c: #include "dyn-string.h".
542 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
543 * cli/cli-cmds.c: #include "dyn-string.h".
544 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
545 (init_cli_cmds): Add new command.
546 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
548 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
550 Fix compatibility with older GCCs.
551 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
552 * stack.c (read_frame_arg): Initialize val_deref.
554 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
556 Entry values NEWS entries, DWARF disassembly support.
557 * NEWS: New entry values entry.
558 (set print entry-values, show print entry-values)
559 (set debug entry-values, show debug entry-values): New entries.
560 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
561 indent. Remove variable start. Move header printing out. Respect
562 INDENT. Support DW_OP_GNU_entry_value.
563 (locexpr_describe_location_1): Move the header printing here, extend
564 the disassemble_dwarf_expression passed parameters.
566 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
568 Display @entry parameter values even for references.
569 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
570 coerce_ref_if_computed.
571 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
572 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
573 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
574 existing push_dwarf_reg_entry_value call. Add new detection calling
575 dwarf_block_to_dwarf_reg_deref. Update the error message.
576 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
578 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
579 parameter deref_size, describe it in the comment.
580 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
581 (dwarf_block_to_dwarf_reg_deref): New declaration.
582 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
583 deref_size, describe it in the function comment. New variables
584 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
585 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
586 describe it in the function comment. Fetch the alternative block
587 accoring to DEREF_SIZE.
588 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
589 (entry_data_value_free_closure, entry_data_value_funcs): New.
590 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
591 outer_val, target_val, val and addr. Try to fetch and create also
592 referenced value content.
593 (pieced_value_funcs): NULL value for coerce_ref.
594 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
595 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
596 coerce_ref_if_computed.
597 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
598 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
599 * stack.c (read_frame_arg): Compare also dereferenced values.
600 * value.c (value_computed_funcs): Make the parameter v const, use
601 value_lval_const for it.
602 (value_lval_const, coerce_ref_if_computed): New function.
603 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
604 * value.h (struct lval_funcs): New field coerce_ref.
605 (value_computed_funcs): Make the parameter v const.
606 (value_lval_const, coerce_ref_if_computed): New declarations.
608 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
610 Support @entry in input expressions.
611 * c-exp.y (ENTRY, unknown_cpp_name): New.
612 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
613 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
614 (variable: name_not_typename '@' ENTRY, name: ENTRY)
615 (name_not_typename: ENTRY): New.
616 (yylex): Recognize ENTRY.
617 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
618 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
620 * parse.c (operator_length_standard): Likewise.
621 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
623 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
625 Display referenced values in backtraces.
626 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
627 * stack.c (print_frame_arg): Likewise.
629 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
631 Make some lval_funcs methods to default on NULL.
632 * valops.c (value_fetch_lazy): Check if lval_computed read method is
634 (value_assign): Check if lval_computed write method is NULL.
635 * value.h (struct lval_funcs): Comment NULL values for read and write
638 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
640 Display @entry parameter values (without references).
641 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
643 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
645 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
647 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
648 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
650 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
651 (loclist_read_variable_at_entry): New function.
652 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
653 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
654 DW_AT_location, call dwarf_block_to_sp_offset for it.
655 * frame.h (print_entry_values_no, print_entry_values_only)
656 (print_entry_values_preferred, print_entry_values_if_needed)
657 (print_entry_values_both, print_entry_values_compact)
658 (print_entry_values_default, print_entry_values): New declarations.
659 (struct frame_arg): New field entry_kind.
660 (read_frame_arg): New parameter entryargp.
661 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
662 arg->entry_kind. Optionally print the `@entry' suffix.
663 (list_args_or_locals): New variable entryarg, initialize it.
664 Initialize also entry_kind of arg and entryarg. Conditionalize
665 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
666 xfree for entryarg.error.
667 * stack.c (print_entry_values_no, print_entry_values_only)
668 (print_entry_values_preferred, print_entry_values_if_needed)
669 (print_entry_values_both, print_entry_values_compact)
670 (print_entry_values_default, print_entry_values_choices)
671 (print_entry_values): New variables.
672 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
673 print the `@entry' suffix, possibly in combination for
674 print_entry_values_compact.
675 (read_frame_arg): New parameter entryargp, new variables entryval,
676 entryval_error and val_equal. Read in also entryargp, respect
677 print_entry_values, compare the values using val_equal, fill in also
678 argp->entry_kind (together with entryargp->entry_kind).
679 (print_frame_args): New variable entryarg, initialize it.
680 Conditionalize print_frame_arg for arg, add print_frame_arg for
681 entryarg. Call xfree for entryarg.error.
682 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
683 * symtab.h (struct symbol_computed_ops): New field
684 read_variable_at_entry.
686 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
689 * frame.h (struct frame_arg): New definition.
690 (read_frame_arg): New declaration.
691 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
692 (list_args_or_locals): ... the code here. New variable arg, call
693 read_frame_arg and list_arg_or_local with it. Unify the
694 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
696 * stack.c (print_frame_arg): New functiom from the code of
698 (read_frame_arg): New function.
699 (print_frame_args): Remove variable val. New variable arg, call
700 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
702 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
704 Protect entry values against self tail calls.
705 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
706 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
708 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
710 Recognize virtual tail call frames.
711 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
712 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
713 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
714 * dwarf2-frame-tailcall.c: New file.
715 * dwarf2-frame-tailcall.h: New file.
716 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
717 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
718 REGS.PREV only after CIE execution.
719 (struct dwarf2_frame_cache): New field tailcall_cache.
720 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
721 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
722 parts, try to find entry_cfa_sp_offset. Call
723 dwarf2_tailcall_sniffer_first.
724 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
726 (dwarf2_frame_dealloc_cache): New function.
727 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
728 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
729 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
730 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
731 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
732 * dwarf2loc.c (func_addr_to_tail_call_list)
733 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
734 (call_site_find_chain_1, call_site_find_chain): New.
735 * dwarf2loc.h (struct call_site_chain): New.
736 (call_site_find_chain): New declaration.
737 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
738 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
739 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
740 * stack.c (frame_info): Support also TAILCALL_FRAME.
742 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
744 Tail call sites reader implementation.
745 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
746 fill in TYPE_TAIL_CALL_LIST.
747 * gdbtypes.h (struct func_type): New field tail_call_list.
748 (struct call_site): New field tail_call_next.
749 (TYPE_TAIL_CALL_LIST): New definition.
751 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
753 Implement basic support for DW_TAG_GNU_call_site.
754 * block.c: Include gdbtypes.h and exceptions.h.
755 (call_site_for_pc): New function.
756 * block.h (call_site_for_pc): New declaration.
757 * defs.h: Include hashtab.h.
758 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
760 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
761 ctx_no_push_dwarf_reg_entry_value.
762 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
763 (dwarf_block_to_dwarf_reg): New function.
764 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
765 (ctx_no_push_dwarf_reg_entry_value): New function.
766 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
767 push_dwarf_reg_entry_value.
768 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
770 * dwarf2loc.c: Include gdbcmd.h.
771 (dwarf_expr_ctx_funcs): New forward declaration.
772 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
773 (dwarf_expr_reg_to_entry_parameter)
774 (dwarf_expr_push_dwarf_reg_entry_value): New.
775 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
776 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
777 (needs_dwarf_reg_entry_value): New function.
778 (needs_frame_ctx_funcs): Install it.
779 (_initialize_dwarf2loc): New function.
780 * dwarf2loc.h (entry_values_debug): New declaration.
781 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
782 (read_call_site_scope): New forward declaration.
783 (process_full_comp_unit): Copy call_site_htab.
784 (process_die): Support DW_TAG_GNU_call_site.
785 (read_call_site_scope): New function.
786 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
787 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
788 (cleanup_htab): Delete.
789 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
790 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
791 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
792 FIELD_LOC_KIND_DWARF_BLOCK.
793 * gdbtypes.h (enum field_loc_kind): New entry
794 FIELD_LOC_KIND_DWARF_BLOCK.
795 (struct main_type): New loc entry dwarf_block.
796 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
797 (TYPE_FIELD_DWARF_BLOCK): New.
798 * python/py-type.c: Include dwarf2loc.h.
799 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
800 internal_error call on unknown FIELD_LOC_KIND.
801 * symtab.h (struct symtab): New field call_site_htab.
802 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
803 (core_addr_hash, core_addr_eq): New functions.
805 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
808 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
809 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
810 calling_convention under func_stuff there.
811 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
812 (init_type) <TYPE_CODE_FUNC>: Likewise.
813 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
814 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
815 * gdbtypes.h (enum type_specific_kind): Change
816 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
817 (struct main_type) <type_specific>: Change calling_convention to
818 func_stuff. Move calling_convention to ...
819 (struct func_type): ... this new struct.
820 (INIT_FUNC_SPECIFIC): New #define.
821 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
823 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
825 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
826 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
827 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
828 ctx->ref_addr_size. Handle its invalid value.
829 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
831 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
832 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
833 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
834 (dwarf2_per_cu_ref_addr_size): New function.
836 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
839 * dwarf2read.c (per_cu_header_read_in): New function.
840 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
841 variables cu_header_local and cu_headerp.
843 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
845 Fix initial language detection with -readnow.
846 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
847 * symfile.h (struct quick_symbol_functions): State find_symbol_file
848 searches only for global symbols.
850 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
852 Fix printed anonymous struct name.
853 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
854 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
855 (anonymous_struct_prefix): New function.
856 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
857 (dwarf2_name): Strip for anonymous structs any prefixes.
859 2011-10-07 Doug Evans <dje@google.com>
861 * python/lib/gdb/printing.py (register_pretty_printer): New argument
864 * python/lib/gdb/printing.py: Whitespace cleanup.
866 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
869 2011-10-07 Pedro Alves <pedro@codesourcery.com>
871 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
872 * amd64-linux-nat.c (amd64_linux_dr_set_control)
873 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
874 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
875 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
876 (arm_linux_remove_watchpoint): Adjust.
877 * i386-linux-nat.c (i386_linux_dr_set_control)
878 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
879 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
880 (ia64_linux_remove_watchpoint): Adjust.
881 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
882 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
883 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
884 (ppc_linux_insert_mask_watchpoint)
885 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
886 (ppc_linux_remove_watchpoint): Adjust.
887 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
890 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
892 * windows-nat.c: Include wchar.h to avoid compiler warnings.
893 (clear_win32_environment): New function for Cygwin to clear out
895 (windows_create_inferior): Prepare new environment from in_env
898 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
901 * python/py-value.c (valpy_call): Check that arguments are
903 (is_intlike): Remove call to CHECK_TYPEDEF.
904 (valpy_nonzero): Catch GDB exceptions.
905 (valpy_absolute): Ditto.
906 (valpy_lazy_string): Ditto.
908 (valpy_get_is_optimized_out): Ditto.
910 (valpy_float): Ditto.
911 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
912 (valpy_richcompare): Ditto.
914 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
916 * inferior.h (disable_randomization): Declare.
917 * infrun.c (disable_randomization): New global variable.
918 (show_disable_randomization): New function.
919 (set_disable_randomization): Likewise.
920 (_initialize_infrun): Install set/show disable-randomization
922 * linux-nat.c (disable_randomization): Remove.
923 (show_disable_randomization): Likewise.
924 (set_disable_randomization): Likewise.
925 (_initialize_linux_nat): No longer install set/show
926 disable-randomization commands here.
927 (linux_nat_supports_disable_randomization): New function.
928 (linux_nat_add_target): Install it.
929 * remote.c (PACKET_QDisableRandomization): New enum value.
930 (remote_protocol_packets): Support QDisableRandomization.
931 (_initialize_remote): Likewise.
932 (remote_supports_disable_randomization): New function.
933 (init_remote_ops): Install it.
934 (extended_remote_supports_disable_randomization): New function.
935 (init_extended_remote_ops): Install it.
936 (extended_remote_disable_randomization): New function.
937 (extended_remote_create_inferior_1): Call it.
938 * target.h (struct target_ops): Add to_supports_disable_randomization.
939 (target_supports_disable_randomization): Add prototype.
940 * target.c (target_supports_disable_randomization): New function.
941 (find_default_supports_disable_randomization): Likewise.
942 (init_dummy_target): Install it.
944 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
946 Allow Python notification of new object-file loadings.
947 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
948 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
949 Add build rule for this file.
950 * python/py-event.h (emit_new_objfile_event): New prototype.
951 (newobjfile): New Python event emitter.
952 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
953 Python event registry.
954 * python/py-inferior.c: Include objfiles.h
955 (python_new_objfile): New function.
956 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
958 * python/py-newobjfileevent.c: New file.
959 * python-internal.h (gdbpy_initialize_new_objfile_event): New
961 * python/python.c (_initialize_python): Add
962 gdbpy_initialize_new_objfile_event call.
963 * NEWS: Add item for new Python event "gdb.newobjfile"
965 2011-10-05 Tristan Gingold <gingold@adacore.com>
967 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
968 Extract the ravenscar task name from the symbol for the atcb.
970 2011-10-04 Paul Koning <paul_koning@dell.com>
972 * python/py-type.c (typy_make_iter): Add forward declaration.
973 (typy_fields_items): Use the gdb.Type iterator.
975 2011-10-04 Paul Koning <paul_koning@dell.com>
977 * NEWS: Add entry for Python gdb.Type mapping methods.
979 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
981 PR python/12691: Add the inferior to Python exited event
982 * python/py-exitedevent.c (create_exited_event_object): Add inferior
984 * python/py-event.h (emit_exited_event): Likewise
985 * python/-inferior.c (python_inferior_exit): Likewise
987 2011-10-03 Joel Brobecker <brobecker@adacore.com>
989 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
990 in output of -ada-task-info GDB/MI command.
992 2011-10-03 Joel Brobecker <brobecker@adacore.com>
994 * ada-lang.h (struct inferior): Declare.
995 (print_ada_task_info): Add declaration.
996 * ada-tasks.c (print_ada_task_info): Make non-static.
997 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
998 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
999 * mi/mi-main.c: #include "ada-lang.h".
1000 (mi_cmd_list_features): Add "ada-task-info" to the list
1001 of supported features.
1002 (mi_cmd_ada_task_info): New function.
1004 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1006 * python/python.c (python_run_simple_file): New function.
1007 (source_python_script, source_python_script_for_objfile):
1008 Replace call to PyRun_SimpleFile by call to
1009 python_run_simple_file.
1011 2011-10-03 Paul Koning <paul_koning@dell.com>
1013 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1014 (value_to_value_object): Fetch value if it was lazy.
1016 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1019 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1020 Rearrange the code for it.
1022 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1024 * breakpoint.c (bkpt_print_recreate): Add call to
1025 print_recreate_thread.
1027 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1029 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1030 PTRACE_GETFDPIC_INTERP): Define.
1032 2011-09-28 Yao Qi <yao@codesourcery.com>
1034 * symfile.c (add_symbol_file_command): Update message on usage.
1036 2011-09-28 Paul Koning <paul_koning@dell.com>
1038 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1039 (typy_length, typy_get, typy_has_key, typy_make_iter)
1040 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1041 (typy_iterator_iter, typy_iterator_iternext)
1042 (typy_iterator_dealloc): New functions to implement standard
1043 Python mapping methods on gdb.Type object.
1044 (gdb.TypeIterator): New Python type.
1045 * python/python-internal.h (gdbpy_iter_kind): New enum.
1047 2011-09-28 David S. Miller <davem@davemloft.net>
1049 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1050 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1051 * sparc-tdep.c (sparc_complex_floating_p): New function.
1052 (sparc32_store_arguments): Handle complex floats.
1053 (sparc32_extract_return_value): Likewise.
1054 (sparc32_store_return_value): Likewise.
1055 (sparc32_stabs_argument_has_addr): Likewise.
1056 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1057 (sparc64_store_floating_fields): Handle complex floats.
1058 (sparc64_store_arguments): Likewise.
1059 (sparc64_store_return_value): Likewise.
1061 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1063 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1064 before the change on 2006-12-09.
1065 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1066 generates the environment block for CreateProcessA, modulo the
1067 Cygwin-specific parts that are not needed here.
1069 2011-09-27 Tristan Gingold <gingold@adacore.com>
1071 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1072 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1073 (darwin_solib_get_all_image_info_addr_at_init): New function.
1074 (darwin_solib_read_all_image_info_addr): Likewise.
1075 (darwin_solib_create_inferior_hook): Use the above two functions.
1076 * darwin-nat.c (darwin_execvp): Renames retval to res.
1077 (darwin_read_write_inferior): Update comment.
1078 (darwin_read_dyld_info): New function.
1079 (darwin_xfer_partial): Handle DYLD_INFO.
1081 2011-09-27 Stan Shebs <stan@codesourcery.com>
1083 Add return address collection for tracepoints.
1084 * tracepoint.c (encode_actions_1): Add case for $_ret.
1085 (validate_actionline): Check for $_ret.
1086 (trace_dump_actions): Ditto.
1087 * ax-gdb.h (gen_trace_for_return_address): Declare.
1088 * ax-gdb.c: Include arch-utils.h.
1089 (gen_trace_for_return_address): New function.
1090 (agent_command): Add return address special case.
1091 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1092 (amd64_gen_return_address): New function.
1093 (amd64_init_abi): Call it.
1094 * i386-tdep.c: Include ax.h and ax-gdb.h.
1095 (i386_gen_return_address): New function.
1096 (i386_init_abi): Call it.
1097 * arch-utils.h (default_gen_return_address): Declare.
1098 * arch-utils.c (default_gen_return_address): New function.
1099 * gdbarch.sh (gen_return_address): New method.
1100 * gdbarch.h, gdbarch.c: Regenerate.
1102 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1105 * i386-tdep.c (i386_frame_align): New.
1106 (i386_gdbarch_init): Use i386_frame_align.
1108 2011-09-23 Yao Qi <yao@codesourcery.com>
1110 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1113 2011-09-22 Tristan Gingold <gingold@adacore.com>
1115 * fork-child.c (fork_inferior): Add exec_fun parameter.
1116 Call exec_fun or execvp.
1117 * inferior.h: Adjust prototype.
1118 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1119 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1120 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1121 * procfs.c (procfs_create_inferior): Ditto.
1122 * darwin-nat.c (darwin_execvp): New function.
1123 (darwin_create_inferior): Use it.
1125 2011-09-22 Yao Qi <yao@codesourcery.com>
1127 * infrun.c (context_switch): Print debug message when switching to
1130 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1132 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1133 complex and vector types.
1134 (s390_return_value_convention): Likewise.
1136 (s390_value_from_register): Call check_typedef.
1137 (extend_simple_arg): Likewise.
1138 (alignment_of): Likewise.
1139 (s390_push_dummy_call): Likewise.
1140 (s390_return_value): Likewise.
1142 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1144 * event-top.c (async_disconnect): If an exception is thrown from
1145 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1147 * top.c (quit_cover): Return void and take no arguments.
1148 * top.h (quit_cover): Update prototype.
1150 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1152 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1153 current_uiout, not uiout.
1155 2011-09-19 Doug Evans <dje@google.com>
1157 * python/py-auto-load.c (source_section_scripts): Fix file
1159 * python/python.c (source_python_script_for_objfile): Tweak comments.
1161 2011-09-18 Yao Qi <yao@codesourcery.com>
1162 Ulrich Weigand <ulrich.weigand@linaro.org>
1164 Support displaced stepping for Thumb 16-bit insns.
1165 * arm-tdep.c (THUMB_NOP) Define.
1166 (thumb_copy_unmodified_16bit): New.
1167 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1168 (thumb_copy_alu_reg): New.
1169 (arm_copy_svc): Move some common code to ...
1170 (install_svc): ... here. New.
1171 (thumb_copy_svc): New.
1172 (install_pc_relative): New.
1173 (thumb_copy_pc_relative_16bit): New.
1174 (thumb_decode_pc_relative_16bit): New.
1175 (thumb_copy_16bit_ldr_literal): New.
1176 (thumb_copy_cbnz_cbz): New.
1177 (cleanup_pop_pc_16bit_all): New.
1178 (thumb_copy_pop_pc_16bit): New.
1179 (thumb_process_displaced_16bit_insn): New.
1180 (thumb_process_displaced_32bit_insn): New.
1181 (thumb_process_displaced_insn): process thumb instruction.
1183 Support displaced stepping for Thumb 32-bit insns.
1184 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1185 (thumb2_copy_preload): New.
1186 (thumb2_copy_copro_load_store): New.
1187 (thumb2_copy_b_bl_blx): New.
1188 (thumb2_copy_alu_imm): New.
1189 (thumb2_copy_load_reg_imm): New.
1190 (thumb2_copy_load_literal): New
1191 (thumb2_copy_block_xfer): New.
1192 (thumb_32bit_copy_undef): New.
1193 (thumb_32bit_copy_unpred): New.
1194 (thumb2_decode_ext_reg_ld_st): New.
1195 (thumb2_decode_svc_copro): New.
1196 (decode_thumb_32bit_store_single_data_item): New.
1197 (thumb_copy_pc_relative_32bit): New.
1198 (thumb_decode_pc_relative_32bit): New.
1199 (decode_thumb_32bit_ld_mem_hints): New.
1200 (thumb2_copy_table_branch): New
1201 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1204 2011-09-18 Yao Qi <yao@codesourcery.com>
1206 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1207 (install_b_bl_blx): Likewise.
1209 2011-09-17 Yao Qi <yao@codesourcery.com>
1211 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1212 (install_load_store): ... this. New.
1213 Change parameter BYTE to SIZE.
1214 (arm_copy_ldr_str_ldrb_strb): Update caller.
1215 (arm_decode_ld_st_word_ubyte): Update caller.
1217 2011-09-17 Yao Qi <yao@codesourcery.com>
1219 * infrun.c (displaced_step_fixup): Move some code ...
1220 (displaced_step_restore): ... here. New function.
1221 (handle_inferior_event): Cleanup displaced stepping state for both
1222 child and parent when get forked or vforked event.
1223 * regcache.c (get_thread_arch_aspace_regcache): New function.
1224 get_thread_arch_regcache (): Call it.
1226 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1228 * ada-tasks.c (print_ada_task_info): New function, merging
1229 short_task_info and info_tasks together. Reimplement using
1230 ui-out instead of printing to stdout directly. Move the code
1231 building and checking the task list here, instead of leaving it
1232 in info_tasks_command.
1233 (info_task): Move the code building and checking the task
1234 list here, instead of leaving it in info_tasks_command.
1235 (info_tasks_command): Delete code building and checking
1236 the task list - moved elsewhere. Update calls to info_tasks
1239 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1241 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1243 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1245 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1247 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1249 * ada-lang.h (ada_build_task_list): Remove parameter
1251 * ada-tasks.c (ada_build_task_list): Remove parameter
1252 `warn_if_null'. Adjust implementation and documentation.
1253 (valid_task_id, ada_get_environment_task)
1254 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1255 (info_tasks_command): Adjust implementation.
1256 (task_command): Likewise.
1257 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1258 to ada_build_task_list.
1260 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1262 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1263 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1264 (ada_tasks_inferior_data_handle): New static global.
1265 (get_ada_tasks_inferior_data): New function.
1266 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1267 (ada_get_environment_task, iterate_over_live_ada_tasks)
1268 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1270 (ada_set_current_inferior_known_tasks_addr): New function.
1271 (read_known_tasks, ada_build_task_list, short_task_info)
1272 (info_tasks, info_task, info_tasks_command, task_command_1)
1273 (task_command, ada_task_list_changed): Adjust.
1274 (ada_tasks_invalidate_inferior_data): New function.
1275 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1276 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1277 * ada-lang.h (struct inferior): Add declaration.
1278 (ada_task_list_changed): Update profile.
1279 * remote-wtx-pd.c: #include "inferior.h".
1280 (switch_to_pd_internal): Update call to ada_task_list_changed.
1282 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1284 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1285 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1286 (atcb_fieldno): Delete these static globals.
1287 (struct ada_tasks_pspace_data): New struct.
1288 (ada_tasks_pspace_data_handle): New static global.
1289 (get_ada_tasks_pspace_data): New function.
1290 (ada_tasks_invalidate_pspace_data): New function.
1291 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1292 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1293 (_initialize_tasks): Create this module's per-progspace
1296 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1298 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1300 2011-09-16 Tristan Gingold <gingold@adacore.com>
1302 * fork-child.c (fork_inferior): Update comment. Use alloca
1303 instead of xmalloc for argv. Move len and shell_command
1304 declarations in the block where they are used.
1305 Only call execvp. Factorize failure code.
1307 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1310 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1311 `exp_element' instead of an element of the same and make the function
1313 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1314 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1315 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1316 Change argument of `write_exp_elt' function call.
1317 Remove extra spaces from comments.
1318 * parser-defs.h (write_exp_elt): Remove prototype.
1320 2011-09-15 Paul Koning <paul_koning@dell.com>
1322 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1323 count of item appended to list.
1324 * python/py-type.c (typy_fields): Likewise.
1326 2011-09-15 Paul Koning <paul_koning@dell.com>
1328 * MAINTAINERS (Write After Approval): Add myself to the list.
1330 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1333 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1334 processes with multiple threads.
1335 (inf_has_multiple_thread_cb): New function.
1336 (inf_has_multiple_threads): New function.
1338 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1340 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1341 * python/py-inferior.c (GdbMethods): New Python method definition.
1343 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1345 Handle multiple breakpoint hits in Python interface:
1346 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1347 variable to breakpoints.
1348 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1349 bps instead of single breakpoint. Fix some space typos.
1350 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1351 variable to breakpoints.
1353 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1355 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1356 note if the breakpoint is internal.
1358 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1360 * MAINTAINERS (Write After Approval): Add myself to the list
1362 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1364 * infrun.c (prepare_for_detach, wait_for_inferior)
1365 (fetch_inferior_event): Don't flush the register cache.
1366 * remote.c (struct stop_reply) <regcache>: Add comment.
1368 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1370 Remove excessive DWARF expressions memory duplication.
1371 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1373 (indirect_pieced_value): Remove variable result. Remove variable
1374 back_to and its use for baton.data.
1375 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1377 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1378 Update the function comment.
1380 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1382 * inferior.h (ALL_INFERIORS): New.
1383 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1384 for a stopped thread.
1385 (thread_db_find_new_threads): Look for threads in all inferiors.
1387 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1389 * breakpoint.c (update_watchpoint): Handle the case of the
1390 watchpoint to update not being in the breakpoint list yet.
1391 (hw_watchpoint_use_count): New, factored out from
1392 hw_watchpoint_used_count.
1393 (hw_watchpoint_used_count): Rename to ...
1394 (hw_watchpoint_used_count_others): ... this. Add `except'
1395 parameter. Don't count resources of `except'. Use
1396 hw_watchpoint_use_count.
1398 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1400 * gdbthread.h (enum thread_state): Moved here.
1401 (struct thread_info): Rename `executing_' field to `executing' and
1402 `state_' to `state'.
1403 * thread.c (enum thread_state): Moved to gdbthread.h.
1404 (new_thread, add_thread_silent, delete_thread_1)
1405 (any_live_thread_of_process, thread_alive, set_running)
1406 (set_running, is_thread_state, any_running, is_executing)
1407 (set_executing, finish_thread_state, print_thread_info)
1408 (do_captured_thread_select): Adjust.
1410 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1412 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1413 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1415 2011-09-12 Pedro Alves <pedro@codesourcery.com>
1416 Matt Rice <ratmice@gmail.com>
1420 * interps.c (struct interp) <interpreter_out>: Delete field.
1421 (interp_new): Remove the data and uiout parameters and adjust.
1422 (interp_set): Only set the current_uiout from the interpreter's
1423 uiout after initializing the interpreter. Adjust call to
1425 (interp_ui_out): Adjust to call procs->ui_out_proc.
1426 (interp_data, interp_name): New.
1427 * interps.h (interp_init_ftype): Add `self' parameter.
1428 (interp_ui_out_ftype): New typedef.
1429 (struct interp_procs) <ui_out_proc>: New method pointer.
1430 (interp_new): Remove the data and uiout parameters.
1431 (interp_data, interp_name): Declare.
1432 * tui/tui-interp.c (tui_init): Adjust prototype.
1434 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1435 tui_out here. Adjust call to interp_new.
1436 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1437 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1439 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1440 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1441 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1442 Initialize mi->uiout depending on the mi_version as extracted from
1443 the interpreter's name.
1445 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1446 interp_new. Don't allocate the ui_out's of the interpreters here.
1448 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
1450 * solib.c (solib_used): New function.
1451 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1452 by another so_list object before freeing it.
1454 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1457 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1460 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1463 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1464 (amd64_skip_xmm_prologue): ... this new function. Describe its
1465 parameters. No longer use amd64_prologue_line_bug.
1466 * defs.h (producer_is_gcc_ge_4): New declaration.
1467 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1468 (process_full_comp_unit): Update its caller. Remove
1469 amd64_prologue_line_bug initialization.
1470 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1471 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1473 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1475 * linux-nat.h (enum resume_kind): New.
1476 (struct lwp_info) <last_resume_kind>: New field.
1477 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1478 resume_stop on the new lwp.
1479 (add_lwp): Set last_resume_kind as resume_continue by default.
1480 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1481 (resume_lwp): New, factored out from resume_callback. Also check
1482 for pending status in lp->waitstatus.
1483 (resume_callback): Reimplement.
1484 (resume_clear_callback): Set last_resume_kind as resume_stop.
1485 (resume_set_callback): Set last_resume_kind as resume_continue.
1486 (linux_nat_resume, linux_handle_extended_wait): Set
1488 (running_callback): Also check lp->waitstatus for pending events.
1489 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1491 (stop_and_resume_callback): Don't re-resume if the core wanted the
1492 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1493 using an invalidated pointer.
1494 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1495 SIGSTOPs if the core wanted the LWP to stop.
1496 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1497 wanted the lwp to stop. If the core wanted the lwp to stop, and
1498 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1499 of TARGET_SIGNAL_STOP.
1500 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1501 here. Instead, signal the lwp, and set the last_resume_kind to
1504 2011-09-09 Pedro Alves <pedro@codesourcery.com>
1506 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1507 -1 (error), if the lwp exits right after attaching.
1509 2011-09-08 Doug Evans <dje@google.com>
1511 * py-cmd.c: Some minor formatting fixes.
1512 (gdbpy_parse_command_name): Rename text arg to name, make const.
1513 All callers updated.
1514 * python-internal.h (gdbpy_parse_command_name): Update.
1516 * cli/cli-decode.c (add_cmd): Add comment.
1518 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1520 PR breakpoints/12435
1521 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1522 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1523 * dwarf2read.c (process_full_comp_unit): Initialize
1524 amd64_prologue_line_bug.
1525 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1527 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1529 Fix TUI screen corruption.
1530 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1533 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 * findvar.c (read_var_value): Never return NULL, throw an error
1536 instead. Update the function comment. State symbol name in the error
1538 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1540 * stack.c (print_frame_args): Likewise.
1541 * valops.c (value_of_variable): Likewise.
1543 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 * stack.c (print_frame_args): New variable except. Wrap
1546 read_var_value and common_val_print into TRY_CATCH.
1548 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1551 caller to value_of_this.
1552 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1554 * valops.c (value_of_this): Remove parameter complain and variable ret.
1555 Update function comment. Never return NULL by this code.
1556 (value_of_this_silent): New function.
1557 * value.h (value_of_this): Remove parameter complain.
1558 (value_of_this_silent): New declaration.
1560 2011-09-07 Yao Qi <yao@codesourcery.com>
1562 * gdbthread.h (struct thread_info): Remove fields
1563 `stepping_through_solib_after_catch' and
1564 `stepping_through_solib_catchpoints'.
1565 * infrun.c (init_thread_stepping_state): Update.
1566 (process_event_stop_test, currently_stepping): Update.
1567 (currently_stepping_or_nexting_callback): Update.
1569 2011-09-07 Yao Qi <yao@codesourcery.com>
1571 * gdbthread.h (struct thread_info): Comment on field
1572 `step_after_step_resume_breakpoint'.
1574 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1576 * remote.c (remote_console_output): Reindent.
1578 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1580 * frame.c (has_stack_frames): Check for currently selected
1583 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1585 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1586 (set_async_annotation_level, set_async_prompt, pop_prompt)
1587 (push_prompt, new_async_prompt): Delete declarations.
1588 * top.h (get_prompt, set_prompt): Change prototype.
1589 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1591 * top.c (command_loop):
1592 (top_prompt): New global.
1593 (get_prefix, set_prefix, get_suffix, ): Delete.
1594 (get_prompt, set_prompt): Rewrite.
1595 (show_new_async_prompt): Rename to ...
1596 (show_prompt): ... this.
1597 (init_main): Adjust. Don't handle --annotate=2 here.
1598 * event-top.c (new_async_prompt): Delete.
1599 (the_prompts): Delete.
1600 (more_to_come): Make static.
1601 (display_gdb_prompt): Use top_level_prompt() to compute the top
1602 level prompt, and don't notify the before_prompt observers
1603 directly here. Always trick readline into not trying to display
1604 the prompt if sync_execution and displaying the primary prompt.
1605 If displaying a local/secondary prompt, always show it, even if
1606 sync_execution is set.
1607 (change_annotation_level): Delete.
1608 (top_level_prompt): New, based on change_annotation_level.
1609 (push_prompt, pop_prompt): Delete.
1610 (async_disable_stdin): No longer pushes prompt.
1611 (command_line_handler): No longer pushes or pops prompt. If more
1612 input is expected, call display_gdb_prompt with an explicit empty
1614 (async_stop_sig): Adjust.
1615 (set_async_annotation_level, set_async_prompt): Delete.
1616 * python/python.c (before_prompt_hook): Adjust.
1618 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1622 * infrun.c (fetch_inferior_event): Check if there's a selected
1623 thread before checking if the selected thread is executing.
1625 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1627 * inf-loop.c (execute_command): Don't check if the current thread
1628 if running before synchronously waiting for command completion.
1629 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1631 (normal_stop): Call async_enable_stdin here.
1632 * inf-loop.c (inferior_event_handler): Don't call
1633 async_enable_stdin, nor handle "set exec-done-display" here.
1635 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1639 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1641 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1643 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1645 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1647 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1649 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1651 2011-09-02 Matt Rice <ratmice@gmail.com>
1654 * event-top.c (cli_command_loop): Replace readline setup with
1655 direct call to display_gdb_prompt.
1656 (display_gdb_prompt): Do not call observer mechanism during
1657 synchronous execution.
1659 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1661 * linux-nat.c (in_pid_list_p): New.
1662 (linux_record_stopped_pid): Delete.
1663 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1664 already attached to the LWP. Return an indication if so.
1665 (linux_nat_filter_event): Adjust.
1666 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1667 returning an indication to ignore this thread.
1669 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1671 * top.c: Include interps.h.
1672 (execute_command): If the target can async, but the interpreter is
1673 in sync mode, synchronously wait for the command to finish before
1675 (execute_command_to_string): Force the interpreter to sync mode.
1676 * infrun.c: Include interps.h.
1677 (fetch_inferior_event): Don't restore the prompt yet if the
1678 interpreter is in sync mode.
1679 * interps.c (interpreter_async): New global.
1680 * interps.h (interpreter_async): Declare.
1681 * inf-loop.c: Include interps.h.
1682 (inferior_event_handler): Don't print the language change or run
1683 breakpoint commands yet if the interpreter in is sync mode.
1684 * main.c (captured_command_loop): Flip the interpreter to async
1686 * cli/cli-script.c: Include interps.h.
1687 (execute_user_command, while_command, if_command): Force the
1688 interpreter to sync mode.
1689 * python/python.c: Include interps.h.
1690 (python_command, execute_gdb_command): Force the interpreter to
1693 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1695 * value.c (show_convenience): Catch errors thrown while printing
1696 each internal variable.
1697 * infrun.c (validate_siginfo_access): New function.
1698 (siginfo_value_read, siginfo_value_write): Call it.
1700 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1703 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1704 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1707 2011-08-29 Yao Qi <yao@codesourcery.com>
1709 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1711 (enable_break2): Update caller.
1712 * solib-frv.c (bfd_lookup_symbol): Removed.
1714 (enable_break2): Update caller.
1715 * solib-pa64.c (bfd_lookup_symbol): Removed.
1717 * solib-svr4.c (bfd_lookup_symbol): Removed.
1718 (cmp_name_and_sec_flags): New.
1719 (enable_break): Update caller.
1720 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1721 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1722 (gdb_bfd_lookup_symbol): New.
1723 * solib.h: Functions declarations.
1725 2011-08-29 Yao Qi <yao@codesourcery.com>
1727 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1730 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1732 Fix TUI stepi on code without symbols.
1733 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1736 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1739 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1740 and the static keyword.
1741 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1742 Make prefix an array.
1743 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1744 * mi/mi-main.c (get_register): Remove stb initialization and the static
1747 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1749 Code cleanup - make mi_opt const.
1750 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1752 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1753 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1754 (mi_cmd_env_dir): Likewise.
1755 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1756 (mi_cmd_target_file_put): Likewise.
1757 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1758 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1759 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1760 (mi_valid_noargs): Make opts const.
1761 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1762 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1763 (mi_cmd_data_read_memory): Likewise.
1764 (mi_cmd_data_read_memory_bytes): Likewise.
1765 (mi_cmd_data_write_memory): Likewise.
1767 2011-08-26 Matt Rice <ratmice@gmail.com>
1769 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1770 bcache_xmalloc, replace bcache_xmalloc with call to
1771 psymbol_bcache_init for psymbol_cache.
1772 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1774 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 * inf-loop.c (inferior_event_handler): Add exception_print in
1779 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1782 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1783 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1784 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1785 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1786 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1787 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1788 * infrun.c (fetch_inferior_event): Call
1789 make_bpstat_clear_actions_cleanup.
1790 * top.c (execute_command): New variable cleanup_if_error, call
1791 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1792 * utils.c (do_bpstat_clear_actions_cleanup)
1793 (make_bpstat_clear_actions_cleanup): New functions.
1795 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1797 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1798 either the parent or the child forks. Rename a couple locals.
1800 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1802 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1803 library call. Avoid reading the `status' local if all waitpid
1806 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1808 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1809 opening /proc/PID/task always succeeds.
1811 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1813 * linespec.c (symtab_from_filename): Check for the end of string.
1815 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1818 * varobj.c (cplus_describe_child): Add the keyword
1819 'class' to the output of the method when dealing
1820 with a cast to a base class.
1822 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1824 No functionality change.
1825 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1826 function comment a reference, new variables tp and bs, move here code
1827 from throw_exception.
1828 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1829 describe it in the comment.
1830 * exceptions.c (throw_exception): Remove variable tp, move the code for
1831 bpstat_clear_actions to bpstat_clear_actions.
1833 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
1835 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1836 * linux-nat.c: Include linux-procfs.h.
1837 (linux_proc_get_tgid): Move to ...
1838 * common/linux-procfs.c: ... here. New file.
1839 * common/linux-procfs.h: New file.
1840 * linux-thread-db.c: Include linux-procfs.h.
1841 * Makefile.in: Update dependencies.
1842 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1843 * config/arm/linux.mh: Likewise.
1844 * config/i386/linux.mh: Likewise.
1845 * config/i386/linux64.mh: Likewise.
1846 * config/ia64/linux.mh: Likewise.
1847 * config/m32r/linux.mh: Likewise.
1848 * config/m68k/linux.mh: Likewise.
1849 * config/mips/linux.mh: Likewise.
1850 * config/pa/linux.mh: Likewise.
1851 * config/pa/linux.mh: Likewise.
1852 * config/powerpc/linux.mh: Likewise.
1853 * config/powerpc/ppc64-linux.mh: Likewise.
1854 * config/powerpc/spu-linux.mh: Likewise.
1855 * config/sparc/linux.mh: Likewise.
1856 * config/sparc/linux64.mh: Likewise.
1857 * config/xtensa/linux.mh: Likewise.
1859 2011-08-24 Hui Zhu <teawater@gmail.com>
1861 * tracepoint.c (cond_string_is_same): New function.
1862 (find_matching_tracepoint): Add condition check
1863 by cond_string_is_same.
1865 2011-08-23 Josh Matthews <josh@joshmatthews.net>
1867 Fix build error in Darwin port.
1868 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
1870 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1873 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
1874 (command_line_is_silent): New function.
1875 (bpstat_do_actions_1): No longer use commands_left, use
1876 command_line_is_silent for commands.
1877 (bpstat_alloc): Remove clearing of commands_left.
1878 (bpstat_stop_status): Remove initialization of commands_left, use
1879 command_line_is_silent.
1880 * breakpoint.h (struct bpstats): Remove commands_left.
1882 2011-08-18 Keith Seitz <keiths@redhat.com>
1885 * cp-name-parser.y (struct demangle_info): Remove unused
1888 (allocate_info): Change return type to struct demangle_info *.
1889 Always allocate a new demangle_info.
1890 Remove unused PREV pointer.
1891 (cp_new_demangle_parse_info): New function.
1892 (cp_demangled_name_parse_free): New function.
1893 (do_demangled_name_parse_free_cleanup): New function.
1894 (make_cleanup_cp_demangled_name_parse_free): New function.
1895 (cp_demangled_name_to_comp): Change return type to
1896 struct demangle_parse_info *.
1897 Allocate a new storage for each call.
1898 (main): Update usage for cp_demangled_name_to_comp
1900 * cp-support.h (struct demangle_parse_info): New structure.
1901 (cp_demangled_name_to_comp): Update API change for
1903 (cp_new_demangle_parse_info): Declare.
1904 (make_cleanup_cp_demangled_name_parse_free): New declaration.
1905 (cp_demangled_name_parse_free): Declare.
1906 * cp-support.c (cp_canonicalize_string): Update API
1907 change for cp_demangled_name_to_comp.
1908 (mangled_name_to_comp): Likewise.
1909 Return struct demangle_parse_info, too.
1910 (cp_class_name_from_physname): Update mangled_name_to_comp
1912 (method_name_from_physname): Likewise.
1913 (cp_func_name): Update API change for cp_demangled_name_to_comp.
1914 (cp_remove_params): Likewise.
1915 * python/py-type.c (typy_legacy_template_argument): Likewise.
1917 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
1918 (cp_merge_demangle_parse_infos): Declare.
1919 * cp-support.c (ignore_typedefs): New file global.
1920 (copy_string_to_obstack): New function.
1921 (inspect_type): New function.
1922 (replace_typedefs): New function.
1923 (replace_typedefs_qualified_name): New function.
1924 (cp_canonicalize_string_no_typedefs): New function.
1925 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
1926 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
1927 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
1928 instead of cp_canonicalize_string.
1929 (find_method): Likewise.
1930 (decode_compound): Before looking up the name, call
1931 cp_canonicalize_string_no_typedefs.
1932 (decode_variable): Likewise.
1934 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
1935 Tom Tromey <tromey@redhat.com>
1936 Matt Rice <ratmice@gmail.com>
1938 * python/lib/gdb/prompt.py: New file.
1939 * python/lib/gdb/command/prompt.py: New file.
1940 * NEWS: Document set extended-prompt and gdb.prompt library
1942 2011-08-16 Yao Qi <yao@codesourcery.com>
1944 * tic6x-linux-tdep.c: Move const arrays definition from here...
1945 * tic6x-tdep.c: to here ...
1947 2011-08-14 Yao Qi <yao@codesourcery.com>
1949 * NEWS: New port to Texas Instruments TMS320C6x.
1951 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
1952 Bernd Schmidt <bernds@codesourcery.com>
1953 Yao Qi <yao@codesourcery.com>
1955 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
1956 * solib-dsbt.c: New file. Support DSBT shared object.
1957 * tic6x-linux-tdep.c: New file.
1958 * tic6x-tdep.c: New file.
1959 * tic6x-tdep.h: New file.
1961 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
1962 Yao Qi <yao@codesourcery.com>
1964 * remote.c (PACKET_qXfer_fdpic): New enum value.
1965 (remote_protocol_features): Add qXfer:fdpic:read packet.
1966 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
1967 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
1968 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
1970 2011-08-14 Yao Qi <yao@codesourcery.com>
1972 Target description for tic6x.
1973 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
1974 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
1975 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
1976 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
1977 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
1978 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
1979 * features/tic6x-c64xp-linux.xml: New.
1980 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
1981 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
1982 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
1983 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
1984 * regformats/tic6x-c64xp.dat,
1985 regformats/tic6x-c62x-linux.dat: Generated.
1986 * regformats/tic6x-c64x-linux.dat,
1987 regformats/tic6x-c64xp-linux.dat: Generated.
1988 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
1989 features/tic6x-*.c files.
1990 Add regformats/tic6x-*.dat files.
1992 2011-08-12 Doug Evans <dje@google.com>
1994 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
1995 * python/py-symbol.c (sympy_get_type): New function.
1996 (symbol_object_getset): Add "type".
1998 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2002 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2004 (tui_show_register_group): Don't store a byte buffer in the data
2006 (tui_register_format): Skip registers with an empty name.
2007 (tui_get_register): Store a struct value in the data element's
2008 value field instead of a byte buffer holding the raw register
2009 contents. Account for optimized-out and unavailable registers
2010 when comparing register contents.
2012 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2014 * printcmd.c (current_display_number): Update comment.
2015 (disable_current_display_cleanup): Delete.
2016 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2017 catch errors thrown while evaluating and printing the display.
2019 2011-08-09 Tom Tromey <tromey@redhat.com>
2021 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2023 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2025 * elfread.c (elf_symtab_read): Rework comments.
2026 * maint.c (maintenance_command): Ditto.
2027 * somread.c (som_symtab_read): Ditto.
2028 * solib.c (solib_find, solib_map_sections, update_solib_list)
2029 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2030 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2031 (sharedlibrary_command, no_shared_libraries): Ditto.
2032 * solib-irix.c (locate_base, disable_break, enable_break)
2033 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2034 (irix_current_sos, irix_open_symbol_file_object)
2035 (irix_special_symbol_handling): Ditto.
2036 * solib-sunos.c (locate_base, first_link_map_member)
2037 (sunos_current_sos, disable_break, enable_break)
2038 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2040 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2041 (open_symbol_file_object, svr4_current_sos, enable_break)
2042 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2044 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2045 (frv_current_sos, enable_break, frv_special_symbol_handling)
2046 (frv_solib_create_inferior_hook): Ditto.
2047 * solist.h (struct target_so_ops): Extend the comments of the
2048 special_symbol_handling, current_sos and open_symbol_file_object
2051 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2053 * python/lib/gdb/__init__.py: Auto-load files in command and
2054 function directories.
2055 * python/python.c (finish_python_initialization): Use
2057 * python/lib/gdb/command/pretty_printers.py: Self register
2059 * NEWS: Document auto-loading.
2061 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2064 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2065 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2067 2011-08-08 Tom Tromey <tromey@redhat.com>
2069 * breakpoint.c (clean_up_filters): Remove.
2070 (catch_syscall_split_args): Use VEC_cleanup.
2072 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2074 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2075 (main): Uncomment "Demangling error\n".
2077 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2079 * solib-target.c (segment_attributes): Make them static.
2080 (section_attributes, library_children, library_attributes): Likewise.
2081 (library_list_children, library_list_attributes): Likesise.
2082 (library_list_elements): Likewise.
2084 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2086 * exceptions.c (throw_exception): Don't disable the current
2088 * printcmd.c (disable_current_display_cleanup): New function.
2089 (do_one_display): Install a cleanup to disable the current display
2090 if doing the display throws.
2092 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2094 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2095 initialization of the tp_new member to the corresponding
2096 gdbpy_initialize_* function.
2097 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2098 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2099 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2100 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2101 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2103 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2106 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2107 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2108 references to current_uiout.
2110 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2112 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2113 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2114 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2115 * top.c (gdb_readline_wrapper): Adjust.
2116 * tui/tui-interp.c (tui_command_loop):
2117 (_initialize_tui_interp): Don't install it.
2119 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2121 * ui-out.h (uiout): Rename to ...
2122 (current_uiout): ... this.
2123 * ui-out.c (uiout): Rename to ...
2124 (current_uiout): ... this.
2125 * ada-lang.c (print_it_exception, print_one_exception)
2126 (print_mention_exception): Adjust.
2127 * breakpoint.c (watchpoint_check): Adjust.
2128 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2129 (default_collect_info, watchpoints_info, print_one_catch_fork)
2130 (print_one_catch_vfork, print_one_catch_syscall)
2131 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2132 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2133 (print_it_watchpoint, print_mention_watchpoint)
2134 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2135 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2136 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2137 (bkpt_print_mention, momentary_bkpt_print_it)
2138 (tracepoint_print_mention, update_static_tracepoint)
2139 (tracepoints_info, save_breakpoints): Adjust.
2140 * cli-out.c (field_separator): Adjust.
2141 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2142 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2143 * frame.c (get_current_frame): Adjust.
2144 * infcmd.c (run_command_1, print_return_value): Adjust.
2145 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2146 * infrun.c (print_end_stepping_range_reason): Adjust.
2147 (print_signal_exited_reason, print_exited_reason): Adjust.
2148 (print_signal_received_reason, print_no_history_reason): Adjust.
2149 * interps.c (interp_set): Adjust.
2150 * osdata.c (info_osdata_command): Adjust.
2151 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2152 * remote-fileio.c (remote_fileio_request): Adjust.
2153 * remote.c (show_remote_cmd): Adjust.
2154 * solib.c (info_sharedlibrary_command): Adjust.
2155 * source.c (print_source_lines_base): Adjust.
2156 * stack.c (print_stack_frame): Adjust.
2157 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2158 * symfile-mem.c (add_vsyscall_page): Adjust.
2159 * symfile.c (load_progress, generic_load)
2160 (print_transfer_performance): Adjust.
2161 * thread.c (info_threads_command, restore_selected_frame)
2162 (thread_command): Adjust.
2163 * top.c (make_cleanup_restore_ui_file): Adjust.
2164 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2165 (print_one_static_tracepoint_marker): Adjust.
2166 * cli/cli-cmds.c (print_disassembly): Adjust.
2167 * cli/cli-decode.c (print_doc_line): Adjust.
2168 * cli/cli-interp.c (safe_execute_command): Adjust.
2169 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2170 (handle_redirections): Adjust.
2171 * cli/cli-script.c (show_user_1): Adjust.
2172 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2173 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2174 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2175 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2176 (mi_cmd_env_dir): Adjust.
2177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2178 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2180 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2181 (list_args_or_locals): Adjust.
2182 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2183 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2184 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2185 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2186 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2187 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2188 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2189 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2190 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2191 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2192 (list_available_thread_groups, mi_cmd_list_thread_groups)
2193 (mi_cmd_data_list_register_names)
2194 (mi_cmd_data_list_changed_registers)
2195 (mi_cmd_data_list_register_values, get_register)
2196 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2197 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2198 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2199 (mi_execute_command, mi_load_progress): Adjust.
2200 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2201 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2203 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2204 * tui/tui-interp.c (tui_command_loop): Adjust.
2205 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2207 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2209 * exceptions.c (struct catcher): Remove saved_uiout field.
2210 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2211 no longer save/resvore the global ui_out builder.
2212 (catch_exceptions_with_msg): Save/override/restore the global
2213 ui_out builder manually instead of relying on TRY_CATCH to do it.
2214 (catch_errors): Save/restore the global ui_out builder manually
2215 instead of relying on TRY_CATCH to do it.
2216 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2218 (TRY_CATCH): Adjust.
2219 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2220 the global ui_out builder manually instead of relying on TRY_CATCH
2223 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2225 * breakpoint.c (update_global_location_list): Ensure
2226 invariant 'first loc marked not duplicated and inserted,
2227 following locs marked duplicated/not inserted' is respected
2228 for multiple locations at the same address.
2229 (unduplicated_should_be_inserted) New function.
2230 (swap_insertion) New function.
2232 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2234 * stack.c (print_frame_arguments_choices): Comment typo fix.
2236 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2239 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2240 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2241 argument. Update callers.
2243 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2246 * doublest.c (convert_doublest_to_floatformat): Pass correct
2247 mantissa length to put_field.
2249 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2251 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2252 exception_print code path.
2253 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2254 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2255 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2257 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2260 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2261 Remove, merge them into ...
2262 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2263 variable args and its initialization.
2264 (struct print_args_args, print_args_stub): Remove, merge them into
2266 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2268 (do_gdb_disassembly): ... here. Remove variable args and its
2270 (print_frame): Remove variable args and its initialization, new
2271 variable gdbarch and numargs (from print_args_stub), inline here
2272 print_args_stub with a TRY_CATCH.
2273 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2275 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2276 New variable e, remove variable btargs and its initialization.
2278 2011-08-01 Tristan Gingold <gingold@adacore.com>
2280 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2282 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2284 * breakpoint.c (insert_bp_location): Document return value.
2285 (insert_breakpoint_locations): Fix documentation.
2286 (remove_breakpoints): Add documentation.
2288 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2290 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2291 argument. Update callers.
2293 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2295 * stack.c (print_frame_info): Comment typo fix.
2297 2011-07-29 Sterling Augustine <saugustine@google.com>
2299 * MAINTAINERS (Write After Approval): Add myself to the list.
2301 2011-07-29 Tom Tromey <tromey@redhat.com>
2303 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2304 (library_list_start_segment): Update.
2305 (library_list_start_section): Update.
2307 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2309 * varobj.c (value_get_print_value): Move hint check later into the
2310 function. Comment function. Free thevalue before reusing it.
2312 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2313 Pedro Alves <pedro@codesourcery.com>
2315 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2317 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2318 Assert the result kind.
2319 * value.h (value_one): Remove parameter lv.
2321 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2323 Fix crash on lval_computed values.
2324 * valops.c (value_zero): Use not_lval for lval_computed.
2326 2011-07-27 Tom Tromey <tromey@redhat.com>
2328 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2329 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2331 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2333 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2334 "ptype" by their typedefs difference.
2336 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2338 * dwarf2expr.c (ctx_no_read_reg): New function.
2339 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2340 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2341 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2342 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2344 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2346 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2347 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2349 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2350 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2351 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2352 (ctx_no_get_base_type): Move the functions here.
2353 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2354 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2355 (ctx_no_get_base_type): New declarations.
2357 2011-07-27 Tom Tromey <tromey@redhat.com>
2359 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2361 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2362 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2364 2011-07-26 Sterling Augustine <saugustine@google.com>
2366 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2368 (dump_bfd_file): Likewise.
2370 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2372 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2373 (remote_hw_watchpoint_length_limit): New variable.
2374 (_initialize_remote) add set,show cmds for this new variable.
2375 * gdb.texinfo: document these new commands.
2376 * NEWS: Mention these new commands.
2378 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2380 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2381 true for software watchpoints.
2383 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2387 2011-07-26 Tom Tromey <tromey@redhat.com>
2389 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2390 * dwarf2read.c (read_indirect_string_at_offset): New function.
2391 (read_indirect_string): Use it.
2392 (dwarf_decode_macro_bytes): New function, taken from
2393 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2394 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2395 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2397 (struct dwarf2_per_objfile) <macro>: New field.
2398 (dwarf2_elf_names): Add .debug_macro.
2399 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2400 (dwarf2_locate_sections): Handle new section.
2401 (read_file_scope): Handle DW_AT_GNU_macros.
2402 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2404 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2406 * NEWS: Mention dcache configuration.
2407 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2408 (dcache_size, dcache_line_size): New variables.
2409 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2410 (struct dcache_block): Make it expandable.
2411 (struct dcache_struct): New field.
2412 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2413 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2414 (dcache_poke_byte, dcache_print_line): Adjust.
2415 (set_dcache_size, set_dcache_line_size): New functions.
2416 (set_dcache_command, show_dcache_command): New functions.
2417 (_initialize_dcache): Add new commands.
2419 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2421 * progspace.h (struct program_space): Add solib_add_generation.
2422 * infcmd.c (post_create_inferior): Only call solib_add if not
2424 * solib.c (solib_add): Increment solib_add_generation.
2426 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2428 Fix implicit pointer offsets.
2429 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2432 2011-07-25 Tom Tromey <tromey@redhat.com>
2434 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2436 (ada_exception_sal): Make 'ops' const.
2437 (ada_decode_exception_location): Likewise.
2438 (ada_decode_assert_location): Likewise.
2439 (catch_assert_command): Update.
2440 (catch_ada_exception_command): Update.
2441 (create_ada_exception_catchpoint): Make 'ops' const.
2442 * breakpoint.c (set_raw_breakpoint_without_location)
2443 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2445 (create_internal_breakpoint): Update.
2446 (init_raw_breakpoint_without_location): Make 'ops' const.
2447 (init_raw_breakpoint, init_catchpoint)
2448 (create_fork_vfork_event_catchpoint)
2449 (create_syscall_event_catchpoint, init_breakpoint_sal)
2450 (create_breakpoint_sal, create_breakpoints_sal)
2451 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2452 * breakpoint.h (struct breakpoint) <ops>: Now const.
2453 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2456 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2458 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2460 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2462 * breakpoint.h (print_recreate_thread): Declare.
2463 (struct breakpoint): Move step_count, pass_count,
2464 number_on_target, static_trace_marker_id,
2465 static_trace_marker_id_idx ...
2466 (struct tracepoint): ... to this new struct.
2467 (get_tracepoint, get_tracepoint_by_number_on_target)
2468 (get_tracepoint_by_number): Change return type to struct
2470 * breakpoint.c (is_tracepoint_type): New, factored out from
2472 (is_tracepoint): Adjust.
2473 (print_one_breakpoint_location): Cast to struct tracepoint as
2474 necessary, and adjust.
2475 (print_recreate_catch_fork, print_recreate_catch_vfork)
2476 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2477 print_recreate_thread.
2478 (init_breakpoint_sal): New, factored out from
2479 create_breakpoint_sal.
2480 (create_breakpoint_sal): Reimplement.
2481 (create_breakpoint): Allocate a struct tracecepoint if the caller
2482 wanted a tracepoint. Use init_breakpoint_sal and
2484 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2485 (print_recreate_masked_watchpoint)
2486 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2487 (tracepoint_print_one_detail): Adjust.
2488 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2489 Dump the pass count here.
2490 (update_static_tracepoint): Adjust.
2491 (addr_string_to_sals): Adjust.
2492 (create_tracepoint_from_upload): Adjust. Change return type to
2493 struct tracepoint pointer.
2494 (trace_pass_set_count): Change parameter type to struct tracepoint
2495 pointer, and adjust.
2496 (trace_pass_command): Adjust.
2497 (get_tracepoint, get_tracepoint_by_number_on_target)
2498 (get_tracepoint_by_number): Change return type to struct
2499 tracepoint pointer, and adjust.
2500 (print_recreate_thread): New, factored out from save_breakpoints.
2501 (save_breakpoints): Don't print thread and task and passcount
2503 * remote.c (remote_download_tracepoint): Adjust.
2504 * tracepoint.c (trace_actions_command, validate_actionline)
2505 (start_tracing, tfind_1, trace_find_tracepoint_command)
2506 (trace_dump_command): Adjust.
2507 (find_matching_tracepoint): Change return type to struct
2508 tracepoint pointer, and adjust.
2509 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2510 (tfile_trace_find, tfile_fetch_registers): Adjust.
2511 * tracepoint.h (create_tracepoint_from_upload): Change return type
2512 to struct tracepoint pointer.
2513 * ada-lang.c (print_recreate_exception): Call
2514 print_recreate_thread.
2515 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2517 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2519 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2520 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2521 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2522 watchpoint_thread, watchpoint_triggered ...
2523 (struct watchpoint): ... to this new struct.
2524 (is_watchpoint): Declare.
2525 (install_breakpoint): Add new `internal' parameter.
2526 * breakpoint.c (is_watchpoint): Delete declaration.
2527 (set_breakpoint_condition): Handle watchpoints.
2528 (is_watchpoint): Make public.
2529 (watchpoint_in_thread_scope): Change parameter type to struct
2531 (watchpoint_del_at_next_stop): Change parameter type to struct
2532 watchpoint. Remove assertion. Adjust.
2533 (update_watchpoint): Ditto.
2534 (insert_breakpoints, breakpoint_init_inferior)
2535 (watchpoints_triggered, watchpoint_check)
2536 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2537 (bpstat_stop_status, print_one_breakpoint_location)
2538 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2539 to struct watchpoint as necessary, and adjust.
2540 (install_breakpoint): Add `internal' argument. If true, don't
2541 mention the new breakpoint. Use set_breakpoint_number.
2542 (create_fork_vfork_event_catchpoint)
2543 (create_syscall_event_catchpoint): Adjust.
2544 (dtor_watchpoint): New.
2545 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2546 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2547 (print_it_watchpoint, print_mention_watchpoint)
2548 (print_recreate_watchpoint, insert_masked_watchpoint)
2549 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2550 (print_one_detail_masked_watchpoint)
2551 (print_mention_masked_watchpoint)
2552 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2553 necessary, and adjust.
2554 (watch_command_1): Allocate and initialize a struct watchpoint
2555 instead of a struct breakpoint. Use install_breakpoint.
2556 (catch_exec_command_1): Adjust.
2557 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2559 (delete_breakpoint, enable_breakpoint_disp)
2560 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2561 as necessary, and adjust.
2562 (initialize_breakpoint_ops): Install dtor_watchpoint as
2563 watchpoints' dtor method.
2564 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2565 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2566 to struct watchpoint as necessary, and adjust.
2568 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2570 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2571 the the base class ops table.
2572 (catch_exception_breakpoint_ops)
2573 (catch_exception_unhandled_breakpoint_ops)
2574 (catch_assert_breakpoint_ops): Don't statically initialize.
2575 (initialize_ada_catchpoint_ops): New.
2576 (_initialize_ada_language): Call it.
2577 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2578 (bkpt_breakpoint_ops): Forward declare.
2579 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2580 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2581 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2582 (masked_watchpoint_breakpoint_ops)
2583 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2584 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2585 base class ops table.
2586 (null_re_set, null_check_status, null_works_in_software_mode)
2587 (null_resources_needed, null_print_one_detail): Delete.
2588 (bkpt_dtor): Rename to ...
2589 (base_breakpoint_dtor): ... this. Make static.
2590 (bkpt_allocate_location): Rename to ...
2591 (base_breakpoint_allocate_location): ... this. Make static.
2592 (base_breakpoint_re_set): New.
2593 (internal_error_pure_virtual_called): New.
2594 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2595 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2596 (base_breakpoint_works_in_software_mode)
2597 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2598 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2599 (base_breakpoint_print_recreate): New functions.
2600 (base_breakpoint_ops): New global.
2601 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2602 (bkpt_breakpoint_hit): Make static.
2603 (bkpt_check_status): Delete.
2604 (bkpt_resources_needed): Make static.
2605 (bkpt_works_in_software_mode): Delete.
2606 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2608 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2609 (momentary_breakpoint_ops): Don't statically initialize.
2610 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2612 (tracepoint_insert_location, tracepoint_remove_location)
2613 (tracepoint_check_status, tracepoint_works_in_software_mode)
2614 (tracepoint_print_it): Delete.
2615 (tracepoint_breakpoint_ops): Don't statically initialize.
2616 (initialize_breakpoint_ops): New.
2617 (_initialize_breakpoint): Call it.
2618 * breakpoint.h (null_re_set, null_works_in_software_mode)
2619 (null_resources_needed, null_check_status, null_print_one_detail):
2620 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2621 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2622 (bkpt_check_status, bkpt_resources_needed)
2623 (bkpt_works_in_software_mode, bkpt_print_it)
2624 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2625 Delete declarations.
2626 (initialize_breakpoint_ops): Declare.
2628 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2630 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2631 (momentary_bkpt_print_it): Simplify.
2633 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2635 Split internal, momentary and user breakpoints breakpoint_ops
2638 * breakpoint.c (internal_breakpoint_ops)
2639 (momentary_breakpoint_ops): Forward declare.
2640 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2641 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2642 (create_overlay_event_breakpoint)
2643 (create_std_terminate_master_breakpoint)
2644 (create_exception_master_breakpoint): Create breakpoints with
2645 internal_breakpoint_ops vtable.
2646 (set_longjmp_breakpoint): Create momentary breakpoints with
2647 momentary_breakpoint_ops vtable, using
2648 momentary_breakpoint_from_master.
2649 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2650 (create_solib_event_breakpoint): Create breakpoints with
2651 internal_breakpoint_ops vtable.
2652 (set_momentary_breakpoint): Create breakpoints with
2653 momentary_breakpoint_ops vtable.
2654 (momentary_breakpoint_from_master): New, factored out from
2655 clone_momentary_breakpoint.
2656 (clone_momentary_breakpoint): Adjust.
2657 (watch_command_1): Create scope breakpoints with
2658 momentary_breakpoint_ops vtable.
2659 (bkpt_re_set): Remove handling of internal and momentary
2661 (bkpt_print_mention, bkpt_print_recreate): New.
2662 (bkpt_breakpoint_ops): Adjust.
2663 (internal_bkpt_re_set, internal_bkpt_check_status)
2664 (internal_bkpt_print_it, internal_bkpt_print_mention)
2665 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2666 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2667 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2668 (momentary_bkpt_print_recreate): New.
2669 (momentary_breakpoint_ops): New.
2671 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2673 Implement most breakpoint_ops methods for all breakpoint types,
2674 and move the default handlings to the proper callbacks.
2676 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2677 works_in_software_mode method.
2678 (insert_bp_location): Go through breakpoint_ops->insert_location
2679 for software and hardware watchpoints.
2680 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2682 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2683 for software and hardware watchpoints.
2684 (print_it_typical): Delete.
2685 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2687 (watchpoint_check): Adjust comment.
2688 (bpstat_check_location): Simply always call the breakpoint's
2689 breakpoint_hit method.
2690 (bpstat_stop_status): Always call the breakpoint's check_status
2691 method. Remove special cases for watchpoints and internal event
2692 breakpoints from here (moved to the check_status implementations).
2693 (print_one_breakpoint_location): Assume b->ops is never NULL.
2694 Remove static tracepoint marker id printing from here (moved to
2695 the print_one_detail callback implementation of tracepoints).
2696 (init_bp_location): Assert OPS is never NULL.
2697 (allocate_bp_location): Always call the breakpoint's
2698 allocate_location method, and remove the default code from here.
2699 (free_bp_location): Always call the location's dtor method, and
2700 remove the default code from here.
2701 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2702 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2703 parameter. Pass it down.
2704 (set_raw_breakpoint): Ditto.
2705 (print_it_catch_fork): Adjust to take a bpstat as argument.
2706 (catch_fork_breakpoint_ops): Install methods.
2707 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2708 (catch_vfork_breakpoint_ops): Install methods.
2709 (dtor_catch_syscall): Call the base dtor.
2710 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2711 (catch_syscall_breakpoint_ops): Install methods.
2712 (dtor_catch_exec): Call the base dtor.
2713 (print_it_catch_exec): Adjust to take a bpstat as argument.
2714 (catch_exec_breakpoint_ops): Install methods.
2715 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2716 the breakpoint's resources_needed method, and remove the default
2718 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2720 (clone_momentary_breakpoint): Clone the original's ops.
2721 (mention): Always call the breakpoint's print_mention method, and
2722 remove the default code from here.
2723 (create_breakpoint_sal): Adjust to pass the ops to
2724 set_raw_breakpoint rather than setting it manually.
2725 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2726 ops to set_raw_breakpoint_without_location rather than setting it
2728 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2729 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2730 (ranged_breakpoint_ops): Install methods.
2731 (break_range_command): Adjust to pass the ops to
2732 set_raw_breakpoint rather than setting it manually.
2733 (re_set_watchpoint, breakpoint_hit_watchpoint)
2734 (check_status_watchpoint, resources_needed_watchpoint)
2735 (works_in_software_mode_watchpoint, print_it_watchpoint)
2736 (print_mention_watchpoint, print_recreate_watchpoint): New
2738 (watchpoint_breakpoint_ops): Install new methods.
2739 (print_it_masked_watchpoint): New function.
2740 (masked_watchpoint_breakpoint_ops): Install new methods.
2741 (watch_command_1): Adjust to pass the right breakpoint_ops to
2742 set_raw_breakpoint_without_location rather than setting it
2743 manually later. Record the current pspace.
2744 (print_it_exception_catchpoint): Adjust to take a bpstat as
2746 (gnu_v3_exception_catchpoint_ops): Install new methods.
2747 (say_where): New function.
2748 (null_re_set, null_check_status, null_works_in_software_mode)
2749 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2751 (bp_location_ops): New global.
2752 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2753 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2754 (bkpt_check_status, bkpt_resources_needed)
2755 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2756 (bkpt_print_recreate): New functions.
2757 (bkpt_breakpoint_ops): New global.
2758 (tracepoint_re_set, tracepoint_insert_location)
2759 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2760 (tracepoint_check_status, tracepoint_works_in_software_mode)
2761 (tracepoint_print_it, tracepoint_print_one_detail)
2762 (tracepoint_print_mention, tracepoint_print_recreate): New
2764 (tracepoint_breakpoint_ops): New global.
2765 (delete_breakpoint): Always call the breakpoint's dtor method, and
2766 remove the default handling from here.
2767 (breakpoint_re_set_default): Make static.
2768 (breakpoint_re_set_one): Always call the breakpoints re_set
2769 method, and remove the default handling from here.
2770 (trace_command, ftrace_command, strace_command)
2771 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2772 to create_breakpoint.
2773 (save_breakpoints): Always call the breakpoint's print_recreate
2774 method, and remove the default handling from here.
2776 * ada-lang.c (dtor_exception): Call the base dtor.
2777 (re_set_exception): Call the base method.
2778 (print_it_exception, print_it_catch_exception): Adjust to take a
2780 (catch_exception_breakpoint_ops): Install methods.
2781 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2783 (catch_exception_unhandled_breakpoint_ops): Install methods.
2784 (print_it_catch_assert): Adjust to take a bpstat as argument.
2785 (catch_assert_breakpoint_ops): Install methods.
2787 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2788 to take a bpstat as argument.
2789 (enum print_stop_action): Add describing comments to each enum
2791 (breakpoint_re_set_default): Delete declaration.
2792 (null_re_set, null_works_in_software_mode, null_resources_needed)
2793 (null_check_status, null_print_one_detail): Declare.
2794 (bkpt_breakpoint_ops): Declare.
2795 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2796 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2797 (bkpt_check_status, bkpt_resources_needed)
2798 (bkpt_works_in_software_mode, bkpt_print_it)
2799 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2802 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2803 bkpt_breakpoint_ops.
2804 * python/py-breakpoint.c (bppy_init): Ditto.
2806 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2808 * MAINTAINERS (Write After Approval): Add myself to the list.
2810 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2812 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2814 2011-07-22 Pedro Alves <pedro@codesourcery.com>
2816 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2817 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2818 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2820 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2821 (struct i386_debug_reg_state): New.
2822 (i386_init_dregs): New.
2824 (i386_cleanup_dregs): Use i386_init_dregs.
2825 (i386_show_dr): Add state parameter and adjust.
2826 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2828 (i386_remove_aligned_watchpoint): Likewise.
2829 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2830 (i386_update_inferior_debug_regs): New.
2831 (i386_insert_watchpoint): Work on a local mirror of the debug
2832 registers, and only update the inferior on success.
2833 (i386_remove_watchpoint): Ditto.
2834 (i386_region_ok_for_watchpoint): Adjust.
2835 (i386_stopped_data_address): Adjust.
2836 (i386_insert_hw_breakpoint): Adjust.
2837 (i386_remove_hw_breakpoint): Adjust.
2839 2011-07-22 Tom Tromey <tromey@redhat.com>
2841 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2842 from amd64_pseudo_register_read. Change arguments. Call
2843 mark_value_bytes_unavailable when needed.
2844 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2845 set_gdbarch_pseudo_register_read.
2846 * sentinel-frame.c (sentinel_frame_prev_register): Use
2847 regcache_cooked_read_value.
2848 * regcache.h (regcache_cooked_read_value): Declare.
2849 * regcache.c (regcache_cooked_read_value): New function.
2850 (regcache_cooked_read): Call
2851 gdbarch_pseudo_register_read_value if available.
2852 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2853 (i386_pseudo_register_read): Remove.
2854 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
2855 i386_pseudo_register_read. Change arguments. Call
2856 mark_value_bytes_unavailable when needed.
2857 (i386_pseudo_register_read_value): New function.
2858 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
2859 not set_gdbarch_pseudo_register_read.
2860 * gdbarch.sh (pseudo_register_read_value): New method.
2861 * gdbarch.c, gdbarch.h: Rebuild.
2862 * findvar.c (value_from_register): Call get_frame_register_value.
2864 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
2866 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
2868 (display_gdb_prompt): Likewise.
2869 (change_annotation_level): Likewise.
2870 (push_prompt): Likewise.
2871 (pop_prompt): Likewise.
2872 (handle_stop_sig): Use get_prompt with a level.
2873 * top.c (command_loop): Use get_prompt with a level.
2874 (set_async_annotation_level): Use set_prompt with a level.
2875 (get_prefix): New function.
2876 (set_prefix): Ditto.
2877 (set_suffix): Ditto.
2878 (get_suffix): Ditto.
2879 (get_prompt): Accept a level argument.
2880 (set_prompt): Accept a level argument. Free old prompts. Set
2881 new_async_prompt if level is 0.
2882 (init_main): Use set_prompt with a level. Do not set
2884 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
2885 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
2886 Modify set_prompt, get_prompt to account for levels.
2887 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
2889 * python/python.c (before_prompt_hook): Use set_prompt.
2891 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
2893 * defs.h: Add guard against inclusion in gdbserver.
2894 (struct ptid, ptid_t): Move to common/ptid.h.
2895 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
2896 xsnprintf, internal_error): Move to common/common-utils.h.
2898 * gdb_assert.h: Move into common/ sub-directory.
2899 * gdb_locale.h: Ditto.
2900 * gdb_dirent.h: Ditto.
2901 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
2902 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
2903 Move into common/ptid.h.
2904 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
2905 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
2906 Change nomem to malloc_failure.
2907 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
2908 * utils.c (nomem): Rename to malloc_failure.
2909 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
2910 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
2911 (gdb_buildargv): Change nomem to malloc_failure.
2912 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
2913 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2914 ptid_is_pid): Move into common/ptid.c.
2915 (initialize_infrun): Delete initialization of null_ptid and
2917 * linux-nat.c (linux_nat_xfer_osdata): Defer to
2918 linux_common_xfer_osdata.
2919 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
2920 common/ptid.c and common/buffer.c.
2921 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
2922 common/ptid.h, common/buffer.h and common/linux-osdata.h.
2923 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
2924 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
2926 * common/gdb_assert.h: New.
2927 * common/gdb_dirent.h: New.
2928 * common/gdb_locale.h: New.
2929 * common/buffer.c: New.
2930 * common/buffer.h: New.
2931 * common/ptid.c: New.
2932 * common/ptid.h: New.
2933 * common/xml-utils.c: New.
2934 * common/xml-utils.h: New.
2935 * common/common-utils.c: New.
2936 * common/common-utils.h: New.
2937 * common/linux-osdata.c: New.
2938 * common/linux-osdata.h: New.
2939 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
2940 * config/arm/linux.mh (NATDEPFILES): Ditto.
2941 * config/i386/linux.mh (NATDEPFILES): Ditto.
2942 * config/i386/linux64.mh (NATDEPFILES): Ditto.
2943 * config/ia64/linux.mh (NATDEPFILES): Ditto.
2944 * config/m32r/linux.mh (NATDEPFILES): Ditto.
2945 * config/m68k/linux.mh (NATDEPFILES): Ditto.
2946 * config/mips/linux.mh (NATDEPFILES): Ditto.
2947 * config/pa/linux.mh (NATDEPFILES): Ditto.
2948 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
2949 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
2950 * config/s390/s390.mh (NATDEPFILES): Ditto.
2951 * config/sparc/linux.mh (NATDEPFILES): Ditto.
2952 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
2953 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
2955 2011-07-21 Matt Rice <ratmice@gmail.com>
2957 * NEWS: Add info macros and info definitions commands.
2959 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2961 * NEWS: Document Python prompt substitution hook.
2963 2011-07-18 Matt Rice <ratmice@gmail.com>
2966 * macrotab.h (macro_callback_fn): Add new arguments to callback.
2967 * macrotab.c (foreach_macro): Ditto.
2968 (foreach_macro_in_scope): Ditto.
2969 * macrocmd.c (print_macro_callback): New function.
2970 (info_macro_command): Move some code to print_macro_definition.
2971 (print_macro_definition): New function.
2972 (print_one_macro): Add new arguments to callback.
2973 (info_definitions_command): New function.
2974 (info_macros_command): Ditto.
2975 (_initialize_macrocmd): Add info macros and info definitions commands.
2976 * symtab.c (add_macro_name): Add new arguments to callback.
2978 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2979 Tom Tromey <tromey@redhat.com>
2981 * top.c (set_prompt): Rewrite to free previous prompt, free
2982 asynch_new_prompt and set both on new prompts.
2983 * event-top.c (display_gdb_prompt): Add prompt substitution
2985 * python/python.c (before_prompt_hook): New function.
2987 2011-07-20 Matt Rice <ratmice@gmail.com>
2989 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
2990 arguments to store_unsigned_integer.
2992 2011-07-20 Tom Tromey <tromey@redhat.com>
2994 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
2995 in some declaration-only cases.
2997 2011-07-18 Tom Tromey <tromey@redhat.com>
3000 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3001 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3002 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3003 <debug_type_section>: New field.
3004 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3005 (load_cu): Use appropriate section.
3006 (create_signatured_type_table_from_index): Add 'section'
3008 (dwarf2_read_index): Only allow a single .debug_types section.
3009 (dw2_get_file_names): Use appropriate section.
3010 (read_type_comp_unit_head): Add 'section' argument.
3011 (create_debug_types_hash_table): Loop over all .debug_types
3013 (init_cu_die_reader): Use appropriate section.
3014 (process_psymtab_comp_unit, load_partial_comp_unit)
3015 (load_full_comp_unit, read_die_and_children, find_partial_die)
3016 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3017 (lookup_signatured_type_at_offset): Add 'section' argument.
3018 (read_signatured_type_at_offset): Add 'sect' argument.
3019 (read_signatured_type): Use appropriate section.
3020 (set_die_type, get_die_type_at_offset): Update.
3021 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3023 (write_psymtabs_to_index): Don't allow index with more than one
3024 .debug_types section.
3026 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 Fix crash if referenced CU is aged out.
3029 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3030 xfree of block.data.
3031 (indirect_pieced_value): New variable back_to, use to for xfree of
3033 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3035 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3036 (load_cu): New function from ...
3037 (dw2_do_instantiate_symtab): ... the code here ...
3038 (process_full_comp_unit): ... and here.
3039 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3042 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3047 2011-07-19 Gary Benson <gbenson@redhat.com>
3049 * infrun.c (struct execution_control_state): New member
3050 stop_func_filled_in.
3051 (clear_stop_func, fill_in_stop_func): New functions.
3052 (handle_inferior_event): Call clear_stop_func rather than
3053 manipulating the execution control state directly.
3054 Call fill_in_stop_func lazily as required rather than
3055 directly calling find_pc_partial_function in all cases.
3057 2011-07-18 Tom Tromey <tromey@redhat.com>
3059 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3060 checking for variable-sized array.
3062 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3064 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3065 of supported languages.
3066 * varobj.c: Add top definitions and basic implementation of the
3067 following callbacks: ada_number_of_children, ada_name_of_variable,
3068 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3069 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3070 (languages): Register Ada-specific callbacks.
3071 (variable_language): Add the Ada case in the language setter switch.
3073 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3075 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3077 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3081 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3082 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3083 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3084 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3085 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3086 (struct dwarf_expr_context_funcs): New, move here methods from ...
3087 (struct dwarf_expr_context): ... here. New fields funcs.
3088 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3089 (dwarf_expr_ctx_funcs): New.
3090 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3091 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3092 (needs_frame_ctx_funcs): New.
3093 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3095 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3097 * MAINTAINERS (Write After Approval): Add myself to the list.
3099 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3101 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3102 that CIE pointer of an FDE really points to a CIE .
3104 2011-07-15 Hui Zhu <teawater@gmail.com>
3106 * remote.c (remote_get_trace_status): Add comments.
3108 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3110 Code cleanup - constify struct lval_funcs.
3111 * dwarf2loc.c (pieced_value_funcs): Make it const.
3112 * infrun.c (siginfo_value_funcs): Likewise.
3113 * opencl-lang.c (opencl_value_funcs): Likewise.
3114 * valops.c (value_assign, value_ind): Make the funcs variable const.
3115 * value.c (struct value): Make location.computed.funcs target const.
3116 Rearrange the comments.
3117 (allocate_computed_value): Make the funcs parameter target const.
3118 (value_computed_funcs): Return the funcs target const.
3119 (value_free, value_copy, set_value_component_location): Make the funcs
3121 * value.h (allocate_computed_value): Make the funcs parameter target
3123 (value_computed_funcs): Return the funcs target const.
3124 * windows-tdep.c (tlb_value_funcs): Make it const.
3126 2011-07-14 Hui Zhu <teawater@gmail.com>
3128 * remote.c (remote_get_trace_status): Initialize p.
3130 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3133 * remote.c (remote_get_trace_status): New variable ex. Put
3134 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3136 2011-07-13 Tom Tromey <tromey@redhat.com>
3138 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3139 value_from_contents for final conversion.
3141 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3144 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3145 Indent prototypes so they do not get into tags.
3147 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3149 Code cleanup making also optimized out values lazy.
3150 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3151 allocate_optimized_out_value. Twice.
3152 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3153 * findvar.c (read_var_value): Likewise.
3154 * value.c (allocate_optimized_out_value): New function.
3155 * value.h (allocate_optimized_out_value): New declaration.
3157 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3159 Fix occasional crash of CTRL-C during DWARF read in.
3160 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3162 2011-07-11 Tom Tromey <tromey@redhat.com>
3164 * regcache.c (struct regcache_descr): Fix typo.
3165 * i387-tdep.c (i387_supply_xsave): Fix typo.
3167 2011-07-11 Tom Tromey <tromey@redhat.com>
3169 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3170 (read_file_scope, read_type_unit_scope): Use it.
3172 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3177 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3180 * python/python.c: Set gdbpy_should_print_stack default to off.
3181 (set_python): Deprecate maint set python print-stack to
3183 (_initialize_python): Deprecate maint set/show python print-stack.
3184 Add new prefix command, python. Add new setting, print-backtrace.
3185 * NEWS: Document set python print-stack. Document default change.
3187 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3189 * python/py-inferior.c (infpy_dealloc): New function.
3190 (inferior_to_inferior_object): Return a new object, or a
3191 new reference to the existing object.
3192 (find_thread_object): Cleanup references to inferior.
3193 (delete_thread_object): Ditto.
3194 * python/py-infthread.c (create_thread_object): Do not increment
3195 inferior reference count.
3197 2011-07-08 Tom Tromey <tromey@redhat.com>
3199 * dwarf2loc.c (locexpr_regname): New function.
3200 (locexpr_describe_location_piece): Use it.
3201 (disassemble_dwarf_expression): Add per_cu argument. Use
3203 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3204 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3206 (locexpr_describe_location_1): Add per_cu argument.
3207 (locexpr_describe_location): Update.
3208 (loclist_describe_location): Update.
3210 2011-07-08 Tom Tromey <tromey@redhat.com>
3212 * dwarf2expr.c (execute_stack_op): Add QUIT.
3214 2011-07-07 Hui Zhu <teawater@gmail.com>
3217 2011-07-06 Hui Zhu <teawater@gmail.com>
3218 * remote.c (remote_start_remote): Add TRY_CATCH for
3219 remote_get_trace_status.
3220 * tracepoint.c (disconnect_tracing): Ditto.
3222 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3224 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3225 variables as signed, not unsigned.
3227 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3229 * jit.c (jit_inferior_init): Reformat forward declaration.
3231 2011-07-06 Matt Rice <ratmice@gmail.com>
3233 * MAINTAINERS (Write After Approval): Add myself to the list.
3235 2011-07-06 Hui Zhu <teawater@gmail.com>
3237 * remote.c (remote_start_remote): Add TRY_CATCH for
3238 remote_get_trace_status.
3239 * tracepoint.c (disconnect_tracing): Ditto.
3241 2011-07-05 Tom Tromey <tromey@redhat.com>
3243 * symtab.c (operator_chars): Now static.
3244 * linespec.c (operator_chars): Don't declare.
3246 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3248 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3250 2011-07-05 Tom Tromey <tromey@redhat.com>
3252 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3253 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3254 (TYPE_CPLUS_REALLY_JAVA): New macro.
3255 * dwarf2read.c (process_structure_scope): Set
3256 TYPE_CPLUS_REALLY_JAVA.
3258 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3260 * ada-lang.c: Fix typos.
3261 * amd64-tdep.c: Likewise.
3262 * breakpoint.c: Likewise.
3263 * cli/cli-decode.c: Likewise.
3264 * findcmd.c: Likewise.
3265 * inline-frame.c: Likewise.
3266 * mi/mi-main.c: Likewise.
3267 * minsyms.c: Likewise.
3268 * monitor.c: Likewise.
3269 * monitor.h: Likewise.
3270 * prologue-value.c: Likewise.
3271 * reverse.c: Likewise.
3272 * s390-tdep.c: Likewise.
3274 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3276 * jit.c (jit_inferior_init): Forward declare.
3277 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3279 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3281 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3283 2011-07-04 Tristan Gingold <gingold@adacore.com>
3285 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3286 (tcb_fieldno): Add activation_link field.
3287 (get_known_tasks_addr): Moved and rewritten.
3288 (get_tcb_types_info): Set activation_link field.
3289 (read_known_tasks_array): Add parameter. Rewritten.
3290 (read_known_tasks_list): New function.
3291 (read_known_tasks): New function.
3292 (ada_build_task_list): Call read_known_tasks instead of
3293 read_known_tasks_array.
3294 * ravenscar-thread.c: Add first_task_name constant.
3295 (has_ravenscar_runtime): Check for task list too.
3297 2011-07-04 Tristan Gingold <gingold@adacore.com>
3299 * ada-tasks.c: Renames fieldno to actb_fieldno.
3300 (ada_get_task_number): Indentation.
3301 (get_tcb_types_info): Remove all parameters. Write directly
3303 (ptid_from_atcb_common): Adjust.
3304 (read_atcb): Adjust.
3306 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3308 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3310 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3312 * ui-out.c (ui_out_field_core_addr): Mention that the function
3313 description is in the header file.
3314 * ui-out.h (ui_out_field_core_addr): Document function.
3316 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3318 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3319 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3321 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3323 * symtab.c (expand_line_sal): Remove empty line.
3325 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3327 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3328 same way as ELFOSABI_NONE.
3329 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3331 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3333 * breakpoint.c: Fix typos in comments.
3334 * linespec.c: Likewise.
3335 * symtab.c: Likewise.
3337 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3339 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3340 section in separate object files.
3342 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3344 Fix false GCC warning.
3345 * linespec.c (decode_line_1): Initialize values.
3347 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3349 * linespec.c (find_method): Accept the function type automatically only
3350 if it was specified with parameter types.
3352 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3354 Stop on first linespec terminator instead of eating what we can.
3355 * linespec.c (is_linespec_boundary): New function.
3356 (name_end): Remove function.
3357 (keep_name_info): New parameter on_boundary, replace the body.
3358 (decode_line_1): Provide the parameter to keep_name_info.
3359 (decode_compound): Likewise. Drop the trailing java return type
3362 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3364 Fall back linespec to minimal symbols.
3365 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3366 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3367 (find_method, symbol_found): Change error to cplusplus_error.
3369 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3373 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3374 Tom Tromey <tromey@redhat.com>
3376 * dwarf2read.c (check_physname): New variable.
3377 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3378 (show_check_physname): New function.
3379 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3381 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3383 * machoread.c (macho_symfile_read): Delete OBE comment.
3385 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3387 * machoread.c (struct macho_oso_data): Delete.
3388 (current_oso): Delete.
3389 (macho_relocate_common_syms): New function, mostly extracted
3391 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3392 Remove code that sets and unset current_oso.
3393 (macho_symfile_relocate): Delete handling of common symbols,
3394 now moved to macho_relocate_common_syms.
3396 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3398 * darwin-nat.c (darwin_ptrace): Add documentation.
3399 Set errno to zero before calling ptrace. If ptrace returns
3400 -1 and errno is zero, then change then return zero.
3401 (darwin_kill_inferior): Issue a warning instead of triggering
3402 a failed assertion when the PT_KILL ptrace operations returned
3405 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3407 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3408 only when inf->private->no_ptrace.
3410 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3412 * ada-lang.c (print_it_exception): Print temporary catchpoints
3413 as "Temporary catchpoint".
3414 (print_mention_exception): Likewise.
3416 2011-07-01 Tom Tromey <tromey@redhat.com>
3418 * jv-lang.c (java_language_defn): Use java_printchar,
3420 (java_get_encoding): New function.
3421 (java_emit_char): Use generic_emit_char.
3422 (java_printchar): New function.
3423 (java_printstr): Likewise.
3425 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3427 * ada-typeprint.c (print_record_type): If unable to decode
3428 the name of the parent type, use the encoded name.
3430 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3432 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3433 pointer to constrained packed array type output.
3434 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3435 packed array output.
3437 2011-07-01 Jean-Charles Delay <delay@adacore.com>
3439 * ada-typeprint.c (print_array_type): removed if condition on show
3440 being negative for bounds printing.
3442 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3444 * ada-lang.c (ada_identical_enum_types_p): New function.
3445 (symbols_are_identical_enums): New function.
3446 (remove_extra_symbols): Do nothing if NSYMS < 2.
3447 Use symbols_are_identical_enums.
3449 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3451 * ada-valprint.c (ada_value_print): Handle typedefs.
3453 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3455 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3457 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3459 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3460 (decode_constrained_packed_array): Likewise.
3461 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3463 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3465 * ada-exp.y (convert_char_literal): Handle typedef types.
3467 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3469 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3471 2011-06-30 Tom Tromey <tromey@redhat.com>
3473 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3474 * valops.c (find_overload_match): Call do_cleanups on early exit
3476 * solib.c (solib_find): Call do_cleanups on early exit path.
3478 2011-06-30 Tom Tromey <tromey@redhat.com>
3480 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3481 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3482 return paths. Defer final do_cleanups until last return.
3483 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3486 2011-06-30 Tom Tromey <tromey@redhat.com>
3488 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3490 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
3492 * MAINTAINERS (Write After Approval): Add myself to the list.
3494 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3496 Disable epilogue unwinders on recent GCCs.
3497 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3498 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3499 * dwarf2read.c (process_full_comp_unit): Initialize
3500 EPILOGUE_UNWIND_VALID.
3501 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3502 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3503 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3505 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 Code cleanup - reformatting.
3508 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3509 (producer_is_gcc_ge_4): ... here, change the return value.
3510 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3513 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 Fix non-only rename list for Fortran modules import.
3516 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3517 cp_add_using_directive caller.
3518 (cp_add_using_directive): New parameter excludes, describe it. New
3519 variables ix and param. Compare if also excludes match. Allocate NEW
3520 with variable size, initialize EXCLUDES there.
3521 (cp_lookup_symbol_imports): New variable excludep, test
3522 current->EXCLUDES with it.
3523 * cp-support.h: Include vec.h.
3524 (struct using_direct): New field excludes, describe it.
3525 (DEF_VEC_P (const_char_ptr)): New.
3526 (cp_add_using_directive): New parameter excludes.
3527 * defs.h (const_char_ptr): New typedef.
3528 * dwarf2read.c (read_import_statement): New variables child_die,
3529 excludes and cleanups, read in excludes.
3530 (read_namespace): Adjust the cp_add_using_directive caller.
3532 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3536 negative comparisons.
3538 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3540 * mi/mi-main.c (mi_cmd_list_features): Emit
3541 breakpoint-notifications.
3543 2011-06-29 Tom Tromey <tromey@redhat.com>
3546 * valprint.h (generic_emit_char, generic_printstr): Declare.
3547 * valprint.c (wchar_printable, append_string_as_wide)
3548 (print_wchar): Move from c-lang.c.
3549 (generic_emit_char): New function; mostly taken from c_emit_char.
3550 (generic_printstr): New function; mostly taken from c_printstr.
3551 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3552 represented as arrays.
3553 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3555 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3556 identically to TYPE_CODE_INT.
3557 * f-lang.c (f_get_encoding): New function.
3558 (f_emit_char): Use generic_emit_char.
3559 (f_printchar): Replace comment.
3560 (f_printstr): Use generic_printstr.
3561 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3562 "character" types specially.
3563 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3565 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3567 (c_emit_char): Call generic_emit_char.
3568 (c_printstr): Call generic_printstr.
3570 2011-06-29 Gary Benson <gbenson@redhat.com>
3572 * breakpoint.c (bpstat_what): Removed duplicated case.
3574 2011-06-28 Tom Tromey <tromey@redhat.com>
3576 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3578 2011-06-27 Tom Tromey <tromey@redhat.com>
3580 * valops.c (find_overload_match): Call do_cleanups before early
3582 * top.c (execute_command): Call do_cleanups before early return.
3583 (command_loop): Likewise.
3584 * stack.c (backtrace_command): Make a null cleanup early. Don't
3585 conditionally call do_cleanups.
3586 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3588 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3589 so cleanups are always run.
3590 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3591 * findcmd.c (parse_find_args): Call do_cleanups on early return
3593 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3594 Don't conditionally call do_cleanups.
3595 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3598 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3600 * MAINTAINERS (Write After Approval): Use default email address.
3602 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3604 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3606 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3608 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3609 saved_regs_mask and copied_regs_mask fields.
3610 (sparc_record_save_insn): New prototype.
3611 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3612 (sparc_record_save_insn): New function.
3613 (sparc_analyze_prologue): Add head comment. Recognize store insns
3614 of call-saved registers. Use OFFSET consistently. Recognize flat
3615 frames and cache their settings.
3616 (sparc32_skip_prologue): Handle flat frames.
3617 (sparc_frame_cache): Add frame_offset to the base address.
3618 (sparc32_frame_cache): Adjust to new frame description.
3619 (sparc32_frame_prev_register): Likewise.
3620 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3621 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3622 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3623 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3624 frame by calling sparc_record_save_insn.
3625 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3626 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3627 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3629 2011-06-27 Tristan Gingold <gingold@adacore.com>
3631 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3632 field by map_addr and map_len.
3633 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3634 (munmap_section_buffer): Likewise.
3636 2011-06-24 Tom Tromey <tromey@redhat.com>
3638 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3639 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3640 * python/python.c (gdbpy_parameter): Make 'arg' const.
3641 (execute_gdb_command): Likewise.
3642 (gdbpy_decode_line): Likewise. Copy it.
3643 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3644 (gdbpy_write): Make 'arg' const.
3645 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3647 (gdbpy_lookup_type): Likewise.
3648 * python/py-prettyprint.c (print_children): Make 'name' const.
3649 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3650 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3652 * python/py-function.c (fnpy_init): Make 'name' const.
3653 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3654 (gdbpy_string_to_argv): Make 'input' const.
3655 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3657 * gdbtypes.h (lookup_typename): Update.
3658 * gdbtypes.c (lookup_typename): Make 'name' const.
3659 (lookup_struct): Likewise.
3660 (lookup_union): Likewise.
3661 (lookup_enum): Likewise.
3663 2011-06-24 Tom Tromey <tromey@redhat.com>
3665 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3666 gdb_thread_db.h. Move all common/ entries to be together.
3667 (TAGS): Don't depend on DEPFILES.
3669 2011-06-23 Yao Qi <yao@codesourcery.com>
3671 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3672 * remote.c (remote_start_remote): ... here.
3673 * monitor.c (monitor_open): ... here.
3675 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
3677 * gdbtypes.c (append_composite_type_field_aligned): Fix
3678 calculation of bit position based on alignment.
3680 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3682 * breakpoint.c (bpstat_stop_status): Call the check_status
3683 breakpoint_ops method.
3684 (print_one_breakpoint_location): Also print the condition for Ada
3685 exception catchpoints.
3686 (allocate_bp_location): New, factored out from
3687 allocate_bp_location.
3688 (allocate_bp_location): Adjust. Call the owner breakpoint's
3689 allocate_location method, if there is one.
3690 (free_bp_location): Call the locations's dtor method, if there is
3692 (init_raw_breakpoint_without_location): New breakpoint_ops
3694 (set_raw_breakpoint_without_location): Adjust.
3695 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3696 (set_raw_breakpoint): Adjust.
3697 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3698 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3699 re_set and check_status methods.
3700 (init_catchpoint): Don't memset, initialize thread, addr_string
3701 and enable_state. Pass the ops down to init_raw_breakpoint.
3702 (install_catchpoint): Rename to ...
3703 (install_breakpoint): ... this, and make extern.
3704 (create_fork_vfork_event_catchpoint): Adjust.
3705 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3706 re_set and check_status methods.
3707 (create_syscall_event_catchpoint): Adjust.
3708 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3709 (masked_watchpoint_breakpoint_ops): Install NULL
3710 allocate_location, re_set and check_status methods.
3711 (catch_exec_command_1): Adjust.
3712 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3713 re_set and check_status methods.
3714 (create_ada_exception_breakpoint): Rename to ...
3715 (init_ada_exception_breakpoint): ... this. Add a struct
3716 breakpoint parameter, and delete the exp_string, cond_string and
3717 cond parameters. Use init_raw_breakpoint, and don't install or
3718 mention the breakpoint yet. Don't clear breakpoint fields that
3719 init_raw_breakpoint already clears.
3720 (re_set_breakpoint): Delete, split into ...
3721 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3723 (breakpoint_re_set_one): Call the breakpoint's
3724 breakpoint_ops->re_set implementation, if there's one. Adjust.
3725 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3726 (struct bp_location_ops): New type.
3727 (struct bp_location): New field `ops'.
3728 (struct breakpoint_ops): New `allocate_location', `re_set' and
3729 `check_status' fields. Make `breakpoint_hit''s description match
3731 (init_bp_location): Declare.
3732 (breakpoint_re_set_default): Declare.
3733 (create_ada_exception_breakpoint): Rename to ...
3734 (init_ada_exception_breakpoint): ... this. Add a struct
3735 breakpoint parameter, and delete the exp_string, cond_string and
3737 (install_breakpoint): Declare.
3738 * ada-lang.c: Include exceptions.h.
3739 <Ada exceptions description>: Update.
3740 (struct ada_catchpoint_location): New type.
3741 (ada_catchpoint_location_dtor): New function.
3742 (ada_catchpoint_location_ops): New global.
3743 (ada_catchpoint): New type.
3744 (create_excep_cond_exprs): New function.
3745 (dtor_exception, allocate_location_exception, re_set_exception)
3746 (should_stop_exception, check_status_exception): New functions.
3747 (print_one_exception, print_mention_exception)
3748 (print_recreate_exception): Adjust.
3749 (dtor_catch_exception, allocate_location_catch_exception)
3750 (re_set_catch_exception, check_status_catch_exception): New
3752 (catch_exception_breakpoint_ops): Install them.
3753 (dtor_catch_exception_unhandled)
3754 (allocate_location_catch_exception_unhandled)
3755 (re_set_catch_exception_unhandled)
3756 (check_status_catch_exception_unhandled): New functions.
3757 (catch_exception_unhandled_breakpoint_ops): Install them.
3758 (dtor_catch_assert, allocate_location_catch_assert)
3759 (re_set_catch_assert, check_status_catch_assert): New functions.
3760 (catch_assert_breakpoint_ops): Install them.
3761 (ada_exception_catchpoint_p): Delete.
3762 (catch_ada_exception_command_split)
3763 (ada_exception_catchpoint_cond_string): Rename exp_string
3764 parameter to excep_string. Adjust.
3765 (ada_parse_catchpoint_condition): Delete.
3766 (ada_exception_sal): Rename the exp_string parameter to
3767 excep_string. Delete the cond_string and cond parameters.
3769 (ada_decode_exception_location): Rename the exp_string parameter
3770 to excep_string. Delete the cond_string and cond parameters.
3772 (create_ada_exception_catchpoint): New function.
3773 (catch_ada_exception_command, ada_decode_assert_location)
3774 (catch_assert_command): Adjust.
3775 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3777 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3779 * ada-lang.c: Include arch-utils.h.
3780 (ada_decode_exception_location): Make static.
3781 (catch_ada_exception_command): Moved here from breakpoint.c.
3782 (ada_decode_assert_location): Make static.
3783 (catch_assert_command): Moved here from breakpoint.c.
3784 (_initialize_ada_lang): Install the exception and assert
3785 catchpoint commands here.
3786 * ada-lang.h (ada_decode_exception_location)
3787 (ada_decode_assert_location): Delete declarations.
3788 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3790 (create_ada_exception_breakpoint): Make extern.
3791 (catch_ada_exception_command, catch_assert_command): Moved to
3793 (add_catch_command): Make extern.
3794 (_initilize_breakpoint): Don't install the exception and assert
3795 catchpoint commands here.
3796 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3798 (add_catch_command, create_ada_exception_breakpoint): Declare.
3800 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3802 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3803 the breakpoint to the breakpoint chain here.
3804 (set_raw_breakpoint_without_location): Add the breakpoint to the
3805 breakpoint chain here.
3806 (init_raw_breakpoint): Adjust comments.
3807 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3809 (init_catchpoint): Don't set the catchpoint's breakpoint number
3811 (install_catchpoint): New function.
3812 (create_fork_vfork_event_catchpoint)
3813 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3814 use install_catchpoint.
3816 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3818 * breakpoint.c (create_catchpoint_without_mention)
3819 (create_catchpoint): Delete.
3821 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3823 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3824 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3825 reference to exec_pathname.
3826 (struct exec_catchpoint): New type.
3827 (dtor_catch_exec): New function.
3828 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3829 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3830 (catch_exec_command_1): Adjust to use init_catchpoint.
3831 (delete_breakpoint): Remove reference to exec_pathname.
3833 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3835 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3836 (struct breakpoint): Delete field `syscalls_to_be_caught'.
3837 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3838 reference to syscalls_to_be_caught.
3839 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3841 (struct syscall_catchpoint): New type.
3842 (dtor_catch_syscall): New function.
3843 (insert_catch_syscall, remove_catch_syscall)
3844 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3845 (print_recreate_catch_syscall): Adjust.
3846 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3847 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3848 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3849 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3850 (masked_watchpoint_breakpoint_ops)
3851 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3852 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3853 there is one. Remove references to syscalls_to_be_caught.
3854 (catching_syscall_number): Adjust.
3855 * ada-lang.c (catch_exception_breakpoint_ops)
3856 (catch_exception_unhandled_breakpoint_ops)
3857 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
3859 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3861 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
3863 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3864 reference to forked_inferior_pid.
3865 (struct fork_catchpoint): New type.
3866 (breakpoint_hit_catch_fork, print_it_catch_fork)
3867 (print_one_catch_fork, breakpoint_hit_catch_vfork)
3868 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
3869 (create_fork_vfork_event_catchpoint): Adjust to use
3872 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3874 * breakpoint.c (add_to_breakpoint_chain)
3875 (init_raw_breakpoint_without_location): New functions, factored
3877 (set_raw_breakpoint_without_location): ... this one.
3878 (init_raw_breakpoint): New function, factored out from
3879 set_raw_breakpoint and adjusted to use
3880 init_raw_breakpoint_without_location.
3881 (set_raw_breakpoint): Adjust.
3882 (init_catchpoint): New function, factored out from
3883 create_catchpoint_without_mention and adjusted to use
3884 init_raw_breakpoint.
3885 (create_catchpoint_without_mention): Adjust.
3887 2011-06-22 Tom Tromey <tromey@redhat.com>
3889 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
3890 argument of 0 specially.
3892 2011-06-22 Yao Qi <yao@codesourcery.com>
3894 * infrun.c (handle_inferior_event): Remove write-only local variable
3895 `sw_single_step_trap_p'.
3897 2011-06-20 Tom Tromey <tromey@redhat.com>
3899 * symtab.c (lookup_language_this): End loop if block is NULL.
3901 2011-06-17 Tom Tromey <tromey@redhat.com>
3903 * valops.c (value_of_this): Use lookup_language_this.
3904 * symtab.h (lookup_language_this): Declare.
3905 * symtab.c (lookup_language_this): New function.
3906 (lookup_symbol_aux): Use lookup_language_this.
3907 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
3909 2011-06-17 Tom Tromey <tromey@redhat.com>
3911 * value.h (value_of_this): Update.
3912 (value_of_local): Remove.
3913 * valops.c (value_of_this): Rename from value_of_local. Change
3915 * p-exp.y (exp): Update.
3916 (variable): Likewise.
3917 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
3919 2011-06-17 Tom Tromey <tromey@redhat.com>
3921 * valops.c (value_of_local): Complain if NAME is NULL.
3922 * std-operator.def (OP_OBJC_SELF): Remove.
3923 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
3924 * objc-exp.y (name_not_typename): Use OP_THIS.
3925 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
3927 <OP_OBJC_SELF>: Remove.
3928 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
3930 2011-06-16 Tristan Gingold <gingold@adacore.com>
3932 * python/py-events.h (gdb_py_events): Make it extern.
3933 * python/py-evtregistry.c (gdb_py_events): Declare.
3935 2011-06-16 Hui Zhu <teawater@gmail.com>
3937 * remote.c (remote_trace_set_readonly_regions): Add check for
3938 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
3941 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3943 * arm-linux-tdep.c: Include "auxv.h".
3945 (ARM_LINUX_SIZEOF_VFP): Define.
3946 (arm_linux_supply_vfp): New function.
3947 (arm_linux_collect_vfp): Likewise.
3948 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
3949 (arm_linux_fpa_regset_sections): New variable.
3950 (arm_linux_vfp_regset_sections): Likewise.
3951 (arm_linux_core_read_description): New function.
3952 (arm_linux_init_abi): Install arm_linux_core_read_description and
3953 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
3954 appropriate for the architecture.
3955 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
3956 (tdesc_arm_with_m): Declare.
3957 (tdesc_arm_with_iwmmxt): Likewise.
3958 (tdesc_arm_with_vfpv2): Likewise.
3959 (tdesc_arm_with_vfpv3): Likewise.
3960 (tdesc_arm_with_neon): Likewise.
3961 * arm-linux-nat.c: Move features/*.c includes ...
3962 * arm-tdep.c: ... here.
3963 * arm-linux-nat.c (arm_linux_read_description): Move initializing
3964 target description data structures ...
3965 * arm-tdep.c (_initialize_arm_tdep): ... here.
3966 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
3967 HWCAP_VFPv3D16): Move definitions ...
3968 * arm-linux-tdep.h: ... here.
3970 2011-06-15 Hui Zhu <teawater@gmail.com>
3972 * remote.c (remote_trace_set_readonly_regions): Add a check for
3975 2011-06-14 Tom Tromey <tromey@redhat.com>
3977 * coffread.c (coffread_objfile): Rename from current_objfile.
3978 * dbxread.c (dbxread_objfile): Rename from current_objfile.
3979 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
3981 2011-06-14 Tom Tromey <tromey@redhat.com>
3983 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
3984 (class_symtab): Remove.
3985 (jv_dynamics_progspace_key): New global.
3986 (jv_per_objfile_free): Reset program space data. Update assert.
3987 Don't clear globals.
3988 (get_dynamics_objfile): Use and set program space data.
3989 (get_java_class_symtab): Use get_dynamics_objfile.
3990 (add_class_symbol): Likewise.
3991 (java_link_class_type): Likewise.
3992 (java_object_type, jv_clear_object_type, set_java_object_type):
3994 (get_java_object_type): Update. Don't cache result.
3995 (is_object_type): Don't call set_java_object_type.
3996 (_initialize_java_language): Don't set jv_type_objfile_data_key;
3997 initialize jv_dynamics_progspace_key.
3999 2011-06-14 Tom Tromey <tromey@redhat.com>
4001 * symtab.h (current_objfile): Don't declare.
4002 * objfiles.h (current_objfile): Don't declare.
4003 * objfiles.c (current_objfile): Remove.
4004 * mdebugread.c (current_objfile): New file-scope global.
4005 * dbxread.c (current_objfile): New file-scope global.
4006 * coffread.c (current_objfile): New file-scope global.
4008 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4010 * top.h (line): Rename to ...
4011 (saved_command_line): ... this.
4012 (linesize): Rename to ...
4013 (saved_command_line_size): ... this.
4014 * top.c (line): Rename to ...
4015 (saved_command_line): ... this.
4016 (linesize): Rename to ...
4017 (saved_command_line_size): ... this.
4018 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4019 * event-top.c (command_line_handler): Adjust.
4020 * main.c (captured_main): Adjust.
4022 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4024 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4025 get_frame_func instead of get_frame_pc to determine the code
4026 address used to construct the frame ID.
4027 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4028 (i386_epilogue_frame_this_id): Likewise.
4029 (i386_epilogue_frame_prev_register): New function.
4030 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4031 (i386_stack_tramp_frame_sniffer): Fix coding style.
4032 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4033 (i386_gdbarch_init): Fix comments.
4035 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4037 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4038 instruction when walking back through the instruction stream.
4040 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4042 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4043 fullname parameters order.
4045 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4050 * psymtab.c (map_symbol_filenames_psymtab)
4051 (map_partial_symbol_filenames): Likewise.
4052 * psymtab.h: Include symfile.h.
4053 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4054 * symfile.h (symbol_filename_ftype): New.
4055 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4056 map_symbol_filenames, clarify more the naming in comment.
4058 2011-06-07 Doug Evans <dje@google.com>
4060 * cc-with-index.sh: Fix typos in comment.
4061 Look for ../../gdb, for fullname.exp.
4063 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4064 Pedro Alves <pedro@codesourcery.com>
4066 * cli/cli-cmds.c (shell_escape): Use waitpid.
4067 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4069 2011-06-07 Tristan Gingold <gingold@adacore.com>
4071 * xcoffread.c (dwarf2_xcoff_names): New variable.
4072 (aix_process_linenos): Add a guard.
4073 (xcoff_symfile_finish): Free dwarf2.
4074 (xcoff_initial_scan): Add dwarf2 support.
4076 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4078 * infcall.c (run_inferior_call): Don't mask async. Instead force
4079 a synchronous wait, if the target can async.
4081 * target.h (struct target_ops): Delete to_async_mask.
4082 (target_async_mask): Delete.
4083 * target.c (update_current_target): Delete references to to_async_mask.
4084 * linux-nat.c (linux_nat_async_mask_value): Delete.
4085 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4086 to linux_nat_async_mask_value.
4087 (linux_nat_async_mask): Delete.
4088 (linux_nat_async, linux_nat_close): Remove references to
4089 linux_nat_async_mask_value.
4090 * record.c (record_async_mask_value): Delete.
4091 (record_async): Remove references to record_async_mask_value.
4092 (record_async_mask): Delete.
4093 (record_can_async_p, record_is_async_p): Remove references to
4094 record_async_mask_value.
4095 (init_record_ops, init_record_core_ops): Remove references to
4097 * remote.c (remote_async_mask_value): Delete.
4098 (init_remote_ops): Remove reference to remote_async_mask.
4099 (remote_can_async_p, remote_is_async_p): Remove references to
4100 remote_async_mask_value.
4101 (remote_async): Remove references to remote_async_mask_value.
4102 (remote_async_mask): Delete.
4104 * infrun.c (fetch_inferior_event): Don't claim registers changed
4105 if the current thread is already not executing.
4107 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4109 From Stephen Kitt <steve@sk2.org>
4110 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4111 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4113 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4115 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4116 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4118 2011-06-03 Tom Tromey <tromey@redhat.com>
4120 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4122 * python/py-exitedevent.c (create_exited_event_object): Change
4123 type of 'exit_code'. Optionally add exit_code attribute.
4124 (emit_exited_event): Change type of 'exit_code'.
4125 * python/py-event.h (emit_exited_event): Update.
4126 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4127 * infrun.c (handle_inferior_event): Set exit code fields on
4129 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4131 * inferior.c (exit_inferior_1): Initialize new fields.
4133 2011-06-03 Tom Tromey <tromey@redhat.com>
4135 * dwarf2expr.c (get_signed_type): New function.
4136 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4138 2011-06-02 Keith Seitz <keiths@redhat.com>
4140 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4142 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4144 * top.h (simplified_command_loop): Delete declaration.
4146 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4148 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4149 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4151 2011-06-01 Yao Qi <yao@codesourcery.com>
4153 * objfiles.h (obj_section_addr): Update reference to objfile from
4155 (obj_section_endaddr): Likewise.
4157 2011-06-01 Daniel Jacobowitz <drow@false.org>
4159 * MAINTAINERS: Update my email address and affiliation. Also
4160 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4162 2010-05-31 Keith Seitz <keiths@redhat.com>
4165 * linespec.c (get_search_block): New function.
4166 (find_methods): Add FILE_SYMTATB parameter and use it and
4167 get_search_block to pass an appropriate block to
4168 lookup_symbol_in_namespace.
4169 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4170 Check if *ARGPTR starts with a filename first.
4171 If it does, call locate_first_half again to locate the next
4172 "first half" of the linespec.
4173 Pass FILE_SYMTATB to decode_objc and decode_compound.
4174 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4175 (locate_first_half): Stop on the first colon seen.
4176 (decode_compound): Add FILE_SYMTAB parameter.
4177 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4178 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4179 get_search_block with lookup_symbol.
4180 (find_method): Add FILE_SYMTAB parameter and pass it to
4182 (decode_objc): Use get_search_block.
4184 2010-05-31 Keith Seitz <keiths@redhat.com>
4187 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4188 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4189 and CP_ANONYMOUS_NAMESPACE_LEN.
4190 (cp_is_anonymous): Likewise.
4191 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4192 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4193 * dwarf2read.c (namespace_name): Likewise.
4194 (fixup_partial_die): Likewise.
4195 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4196 seen in the input, keep it.
4198 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4200 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4201 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4202 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4203 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4204 * remote.c (_initialize_remote): Register
4205 async_remote_interrupt_twice directly as
4206 sigint_remote_twice_token event.
4208 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4210 * target.h (enum inferior_event_type): Delete INF_ERROR.
4211 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4213 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4215 * interps.c (interp_set): Don't cancel continuations.
4217 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4219 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4221 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4223 * continuations.h (continuation_ftype): Add `err' parameter.
4224 Document parameters.
4225 (do_all_continuations, do_all_continuations_thread)
4226 (do_all_intermediate_continuations)
4227 (do_all_intermediate_continuations_thread)
4228 (do_all_inferior_continuations): Add `err' parameter.
4229 * continuations.c (do_my_continuations_1, do_my_continuations)
4230 (do_all_inferior_continuations, do_all_continuations_ptid)
4231 (do_all_continuations_thread_callback)
4232 (do_all_continuations_thread, do_all_continuations)
4233 (do_all_intermediate_continuations_thread_callback)
4234 (do_all_intermediate_continuations_thread)
4235 (do_all_intermediate_continuations): Add `err' parameter, and pass
4236 it down all the way to the continuations proper.
4237 * inf-loop.c (inferior_event_handler): If fetching an inferior
4238 event throws an error, don't pop the target, and still call the
4239 continuations, but with `err' set. Adjust all other continuation
4241 * breakpoint.c (until_break_command_continuation): Add `err'
4243 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4244 issue another step if `err' is set.
4245 (struct until_next_continuation_args): New.
4246 (until_next_continuation): Add `err' parameter. Adjust.
4247 (until_next_command): Adjust.
4248 (struct finish_command_continuation_args): Add `thread' field.
4249 (finish_command_continuation): Add `err' parameter. Handle it.
4250 (finish_forward): Adjust.
4251 (attach_command_continuation): Add `err' parameter. Handle it.
4252 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4253 cancel the continuations.
4254 * interps.c (interp_set): Adjust to cancel the continuations.
4255 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4256 continuations rather than discarding.
4257 (free_thread): Don't clear thread inferior resources here.
4258 (delete_thread_1): Do it here instead. And do it before removing
4259 the thread from the threads list. Tag the thread as exited before
4260 clearing thread inferior resources.
4262 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4264 * infcall.c (call_function_by_hand): Rephrase error message.
4266 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4268 * defs.h (struct thread_info, struct inferior): Delete forward
4270 * breakpoint.h (struct thread_info): New forward declaration.
4271 * observer.sh (struct inferior): New forward declaration.
4272 * python/python-internal.h (struct inferior): New forward
4275 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4277 * defs.h (struct continuation, continuation_ftype)
4278 (continuation_free_arg_ftype, add_continuation)
4279 (do_all_continuations, do_all_continuations_thread)
4280 (discard_all_continuations, discard_all_continuations_thread)
4281 (add_intermediate_continuation, do_all_intermediate_continuations)
4282 (do_all_intermediate_continuations_thread)
4283 (discard_all_intermediate_continuations)
4284 (discard_all_intermediate_continuations_thread)
4285 (add_inferior_continuation, do_all_inferior_continuations)
4286 (discard_all_inferior_continuations): Move to ...
4287 * continuations.h: ... this new file.
4288 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4289 infcmd.c, inferior.c, infrun.c, interps.c: Include
4292 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4293 Doug Evans <dje@google.com>
4295 Fix PR 10970, PR 12702.
4296 * linux-nat.c (linux_lwp_is_zombie): New function.
4297 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4298 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4300 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4302 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4304 (add_continuation, add_intermediate_continuation)
4305 (add_inferior_continuation): Use them.
4306 * continuations.c (struct continuation): Use them.
4307 (make_continuation_ftype): Delete.
4308 (make_continuation, add_inferior_continuation, add_continuation)
4309 (add_intermediate_continuation): Use continuation_ftype and
4310 continuation_free_arg_ftype. Rename parameters to shorter names.
4312 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4314 * continuations.c (make_continuation): Make it return void.
4315 (do_my_continuations): Rename to ...
4316 (do_my_continuations_1): ... this. Remove old_chain parameter and
4318 (do_my_continuations): New.
4319 (discard_my_continuations): Rename to ...
4320 (discard_my_continuations_1): ... this. Remove old_chain
4321 parameter and adjust.
4322 (discard_my_continuations): New.
4323 (add_inferior_continuation): Simplify.
4324 (do_all_inferior_continuations): Reimplement on top
4325 do_my_continuations.
4326 (discard_all_inferior_continuations): Simplify.
4327 (add_continuation): Simplify.
4328 (do_all_continuations_ptid): Simplify.
4329 (discard_all_continuations_thread_callback): Simplify.
4330 (add_intermediate_continuation): Simplify.
4331 (discard_all_intermediate_continuations_thread_callback):
4334 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4336 * utils.c (struct continuation, add_continuation)
4337 (add_inferior_continuation)
4338 (do_all_inferior_continuations, discard_all_inferior_continuations)
4339 (restore_thread_cleanup, do_all_continuations_ptid)
4340 (do_all_continuations_thread_callback)
4341 (do_all_continuations_thread, do_all_continuations)
4342 (discard_all_continuations_thread_callback)
4343 (discard_all_continuations_thread, discard_all_continuations)
4344 (add_intermediate_continuation)
4345 (do_all_intermediate_continuations_thread_callback)
4346 (do_all_intermediate_continuations_thread)
4347 (do_all_intermediate_continuations)
4348 (discard_all_intermediate_continuations_thread_callback)
4349 (discard_all_intermediate_continuations_thread)
4350 (discard_all_intermediate_continuations): Move to ...
4351 * continuations.c: ... this new file, and adjust to no longer
4352 implement continuations on top of cleanups.
4353 * Makefile.in (SFILES): Add continuations.c.
4354 (COMMON_OBS): Add continuations.o.
4356 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4358 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4359 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4360 Internal error on invalid values.
4361 * reverse.c: Don't handle EXEC_ERROR.
4362 * mi/mi-main.c: Don't handle EXEC_ERROR.
4364 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4366 * record.c: Include event-loop.h, inf-loop.h.
4367 (record_beneath_to_async): New global.
4368 (tmp_to_async): New global.
4369 (record_async_inferior_event_token): New global.
4370 (record_open_1): Don't error out if async is enabled.
4371 (record_open): Handle to_async. Create an async event source in
4373 (record_close): Delete the async event source.
4374 (record_resumed): New global.
4375 (record_execution_dir): New global.
4376 (record_resume, record_core_resume): Set them. Register the
4377 target on the event loop.
4378 (record_wait): Rename to ...
4379 (record_wait_1): ... this. Add more debug output. Handle
4380 TARGET_WNOHANG, and the target beneath returning
4381 TARGET_WAITKIND_IGNORE.
4382 (record_wait): Reimplement on top of record_wait_1.
4383 (record_async_mask_value): New global.
4384 (record_async, record_async_mask, record_can_async_p)
4385 (record_is_async_p, record_execution_direction): New functions.
4386 (init_record_ops, init_record_core_ops): Install new methods.
4387 * infrun.c (fetch_inferior_event): Temporarily switch the global
4388 execution direction to the direction the target was going.
4389 (execution_direction): Change type to int.
4390 * target.c (default_execution_direction): New function.
4391 (update_current_target): Inherit and de_fault
4392 to_execution_direction.
4393 * target.h (struct target_ops) <to_execution_direction>: New
4395 (target_execution_direction): New macro.
4396 * inferior.h (execution_direction): Change type to int.
4398 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4400 * infcall.c (call_function_by_hand): Don't allow calling functions
4401 in reverse execution mode.
4403 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4405 * infcmd.c (finish_command): Allow async finish in reverse.
4407 2011-05-26 Yao Qi <yao@codesourcery.com>
4409 * gdb_thread_db.h: Delete. Move to ...
4410 * common/gdb_thread_db.h: ... here.
4412 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4414 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4415 function's entry point instead of a manually managed momentary
4416 breakpoint, and only ever issue one proceed call.
4417 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4418 doing a reverse-finish, switch to stepi mode, to do another step.
4419 (insert_step_resume_breakpoint_at_sal): Make public.
4420 (normal_stop): No need to save function value return registers if
4422 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4424 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4426 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4427 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4428 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4430 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4431 step-resume breakpoints.
4432 (print_it_typical): Handle bp_hp_step_resume.
4433 (bpstat_what): Ditto.
4434 (bptype_string): Ditto.
4435 (print_one_breakpoint_location): Ditto.
4436 (allocate_bp_location): Ditto.
4438 (breakpoint_re_set_one): Ditto.
4439 * infrun.c (handle_inferior_event): Adjust. Split
4440 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4441 BPSTAT_WHAT_HP_STEP_RESUME.
4442 (insert_step_resume_breakpoint_at_sal): Rename to ...
4443 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4444 parameter. Handle it.
4445 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4446 insert_step_resume_breakpoint_at_sal_1.
4447 (insert_step_resume_breakpoint_at_frame): Rename to ...
4448 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4449 set a high-priority step-resume breakpoint.
4450 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4451 (insert_step_resume_breakpoint_at_caller): Ditto.
4453 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4455 * breakpoint.c (iterate_over_related_breakpoints): New.
4456 (do_map_delete_breakpoint): New.
4457 (delete_command): Pass do_map_delete_breakpoint to
4458 map_breakpoint_numbers.
4459 (do_disable_breakpoint): New.
4460 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4462 (do_enable_breakpoint): Rename to ...
4463 (enable_breakpoint_disp): ... this.
4464 (enable_breakpoint): Adjust.
4465 (do_enable_breakpoint): New.
4466 (enable_once_breakpoint): Delete.
4467 (do_map_enable_breakpoint): New.
4468 (do_map_enable_once_breakpoint): New.
4469 (enable_once_command, enable_delete_command)
4470 (delete_trace_command): Iterate over the breakpoint's related
4473 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4475 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4476 for ALPHA_ZERO_REGNUM.
4477 (alpha_supply_int_regs): Explicitly supply zero as the value for
4478 ALPHA_ZERO_REGNUM in the register cache.
4479 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4481 2011-05-26 Yao Qi <yao@codesourcery.com>
4483 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4485 2011-05-26 Tristan Gingold <gingold@adacore.com>
4487 * symfile.h (struct dwarf2_section_names): New type.
4488 (struct dwarf2_debug_sections): New type.
4489 (dwarf2_has_info): Add parameter.
4490 * dwarf2read.c (dwarf2_elf_names): New variable.
4491 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4492 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4493 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4494 (dwarf2_has_info): Add names parameter. Pass names
4495 to dwarf2_locate_sections.
4496 (section_is_p): Rewrite using the names parameter.
4497 (dwarf2_locate_sections): Use section names from the names parameter.
4498 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4499 * elfread.c (read_psyms): Ditto.
4500 * machoread.c (macho_symfile_read): Ditto.
4502 2011-05-25 Andreas Schwab <schwab@redhat.com>
4505 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4507 2011-05-24 Keith Seitz <keiths@redhat.com>
4510 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4511 (decode_compound): Unconditionally call keep_name_info.
4513 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4515 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4516 scope, clear its command list.
4517 (map_breakpoint_numbers): Don't walk the related breakpoints list
4520 2011-05-24 Tom Tromey <tromey@redhat.com>
4522 * MAINTAINERS: Move Jim Blandy to past maintainers.
4524 2011-05-24 Tristan Gingold <gingold@adacore.com>
4526 * symfile.h (enum dwarf2_section_enum): New type.
4527 (dwarf2_get_section_info): New prototype.
4528 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4529 section_name by sect. Use a switch to select the info.
4530 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4531 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4533 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4535 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4536 shared library event breakpoint if there's no execution.
4538 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4540 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4541 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4543 2011-05-23 Tom Tromey <tromey@redhat.com>
4545 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4548 2011-05-23 Doug Evans <dje@google.com>
4550 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4551 entry for RuntimeError to doc string.
4553 2011-05-23 Jerome Guitton <guitton@adacore.com>
4555 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4556 sequence for probing loops.
4558 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4560 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4563 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4565 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4566 zero as the value for %g0 in the register cache.
4567 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4568 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4570 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4572 * infrun.c (proceed): Set previous_inferior_ptid here.
4573 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4574 inferior_ptid, not null_ptid.
4575 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4576 (fetch_inferior_event): Nor here.
4578 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4580 * inf-loop.c (inferior_event_handler): Only output a message if
4583 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4585 * MAINTAINERS: Update my e-mail address.
4587 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4589 * infrun.c (proceed): Switch the inferior event loop to
4590 INF_EXEC_COMPLETE if the target refused to resume from a
4593 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4595 * infcmd.c: Include "inf-loop.h".
4596 (step_once): When stepping into an inline subroutine, pretend the
4597 target has run. If the target can async, switch the inferior
4598 event loop to INF_EXEC_COMPLETE.
4599 * inferior.h (user_visible_resume_ptid): Declare.
4600 * infrun.c (user_visible_resume_ptid): New function, factored out
4603 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4604 that the current thread is running. Merge async and sync
4607 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4609 * infcmd.c (step_1): Simplify synchronous case.
4611 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4613 * tracepoint.c: Include exceptions.h.
4614 (TFILE_PID): Move higher in file.
4615 (tfile_open): Delay pushing the tfile target until we're assured
4616 the tfile header is present in the file. Wrap reading the initial
4617 newline-terminated lines in TRY_CATCH. Pop the target if the
4618 initial setup failed. Add the tfile's thread immediately
4619 aftwards, before any non-essential setup. Don't skip
4620 post_create_inferior if there are no traceframes present in the
4622 (tfile_close): Remove redundant check for null before xfree call.
4623 (tfile_thread_alive): New function.
4624 (init_tfile_ops): Register it as to_thread_alive callback.
4626 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4628 * tracepoint.c (tfile_open): Delete #if 0'd code.
4630 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4632 Fix -readnow for -gdwarf-4 unused type units.
4633 * dwarf2read.c (struct signatured_type): Remove the field offset.
4634 (create_signatured_type_table_from_index): Remove its initialization.
4635 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4636 instead. Add a complaint call.
4637 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4638 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4639 (lookup_signatured_type_at_offset, read_signatured_type)
4640 (write_one_signatured_type): Update the field for per_cu.
4642 2011-05-19 Tom Tromey <tromey@redhat.com>
4644 * python/py-inferior.c (python_inferior_exit): Use
4646 (python_on_resume): Likewise.
4648 2011-05-19 Matt Rice <ratmice@gmail.com>
4650 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4652 2011-05-19 Hui Zhu <teawater@gmail.com>
4654 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4656 2011-05-19 Hui Zhu <teawater@gmail.com>
4658 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4660 2011-05-18 Tom Tromey <tromey@redhat.com>
4662 * dwarf2read.c (dwarf2_add_field): Constify.
4663 * value.c (value_static_field): Constify.
4664 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4666 * ax-gdb.c (gen_static_field): Constify
4668 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4670 * linux-nat.c (kill_callback): Use SIGKILL first.
4672 2011-05-18 Joel Brobecker <brobecker@adacore.com>
4674 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4676 2011-05-18 Tom Tromey <tromey@redhat.com>
4678 * value.c (value_fn_field): Constify.
4679 * symtab.c (gdb_mangle_name): Constify.
4680 * stabsread.c (update_method_name_from_physname): Make 'physname'
4682 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4683 const. Use explicit fputc_filtered loop.
4684 (pascal_type_print_base): Constify.
4685 * p-lang.h (pascal_type_print_method_args): Update.
4686 * linespec.c (add_matching_methods): Constify.
4687 (add_constructors): Likewise.
4688 * jv-typeprint.c (java_type_print_base): Constify.
4689 * gdbtypes.h (struct cplus_struct_type)
4690 <fn_fieldlist.fn_field.physname>: Now const.
4691 * dwarf2read.c (compute_delayed_physnames): Constify.
4692 (dwarf2_add_member_fn): Likewise.
4693 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4695 2011-05-18 Pedro Alves <pedro@codesourcery.com>
4697 * infrun.c (resume): Mention which is the current thread, and its
4698 current PC in debug output.
4699 (prepare_to_proceed): Mention the thread switching in debug
4702 2011-05-18 Tom Tromey <tromey@redhat.com>
4704 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4705 path check. Use xmalloc and cleanups.
4706 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4708 2011-05-17 Tom Tromey <tromey@redhat.com>
4710 * cp-valprint.c (cp_print_value_fields): Catch errors from
4713 2011-05-17 Tom Tromey <tromey@redhat.com>
4715 * dwarf2read.c (dwarf2_get_die_type): Call
4716 get_die_type_at_offset.
4717 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4718 get_base_type function.
4720 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
4722 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4725 2011-05-16 Doug Evans <dje@google.com>
4727 * python/py-auto-load.c (source_section_scripts): Mention objfile
4730 2011-05-15 Doug Evans <dje@google.com>
4732 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4733 (try_thread_db_load_from_pdir): Call it. If unable to find
4734 libthread_db in directory of libpthread, see if we're looking at
4735 the separate-debug-info copy.
4737 * python/py-autoload.c (print_script): Print "Missing" instead of
4738 "No" for missing scripts.
4739 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4741 2011-05-13 Doug Evans <dje@google.com>
4743 * ui-file.c (stdio_file_write_async_safe): Add comment.
4745 2011-05-14 Hui Zhu <teawater@gmail.com>
4747 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4749 2011-05-13 Doug Evans <dje@google.com>
4751 Support $pdir and $sdir in libthread-db-search-path.
4752 * NEWS: Mention $sdir,$pdir.
4753 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4754 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4755 (try_thread_db_load_from_sdir): New function.
4756 (try_thread_db_load_from_dir): New function.
4757 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4758 system directories if search of libthread-db-search-path fails,
4759 that is now done via $sdir.
4760 (has_libpthread): New function.
4761 (thread_db_load): Remove search for libthread_db in directory of
4762 libpthread, that is now done via $pdir.
4764 * NEWS: Mention "info auto-load-scripts".
4765 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4766 script_not_found_warning_printed.
4767 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4768 all callers updated. Initialize script_not_found_warning_printed.
4769 (get_auto_load_pspace_data_for_loading): New function.
4770 (maybe_add_script): New function.
4771 (source_section_scripts): Simplify. Only print one warning regardless
4772 of the number of auto-load scripts not found.
4773 (clear_section_scripts): Clear script_not_found_warning_printed.
4774 (auto_load_objfile_script): Record script in hash table.
4775 (count_matching_scripts): New function.
4776 (maybe_print_script): Renamed from maybe_print_section_script, all
4777 callers updated. Rewrite to use ui_out_*.
4778 (info_auto_load_scripts): Renamed from
4779 maintenance_print_section_scripts, all callers updated.
4780 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4781 renamed as "info auto-load-scripts".
4783 2011-05-13 Tom Tromey <tromey@redhat.com>
4785 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4786 (read_sleb128): Likewise.
4788 2011-05-13 Tom Tromey <tromey@redhat.com>
4790 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4793 2011-05-13 Doug Evans <dje@google.com>
4795 * linux-nat.c (debug_linux_nat_async): Delete.
4796 Replace all references to use debug_linux_nat instead.
4797 (show_debug_linux_nat_async): Delete.
4798 (sigchld_handler): Call ui_file_write_async_safe instead of
4800 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4801 * ui-file.c (struct ui_file): New member to_write_async_safe.
4802 (null_file_write_async_safe): New function.
4803 (ui_file_write_async_safe): New function.
4804 (set_ui_file_write_async_safe): New function.
4805 (ui_file_new): Initialize to_write_async_safe.
4806 (stdio_file_write_async_safe): New function.
4807 (struct stdio_file): New member fd.
4808 (stdio_file_new): Initialize to_write_async_safe, fd.
4809 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4811 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4812 (set_ui_file_write_async_safe): Declare.
4813 (ui_file_write_async_safe): Declare.
4815 2011-05-13 Tom Tromey <tromey@redhat.com>
4817 * utils.c (do_value_free): New function.
4818 (make_cleanup_value_free): Likewise.
4819 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4821 (dwarf2_loc_desc_needs_frame): Call
4822 make_cleanup_value_free_to_mark.
4823 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4824 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4826 (new_dwarf_expr_context): Don't call value_mark.
4827 * dwarf2-frame.c (execute_stack_op): Call
4828 make_cleanup_value_free_to_mark.
4829 * defs.h (make_cleanup_value_free): Declare.
4831 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4833 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4834 prepare_execute_command.
4835 * top.c (prepare_execute_command): Return cleanup.
4836 (execute_command): Use cleanup from prepare_execute_command.
4837 * top.h (prepare_execute_command): Change prototype to return
4839 * defs.h (struct value): Add opaque declaration.
4840 (make_cleanup_value_free_to_mark): Add prototype.
4841 * utils.c (do_value_free_to_mark): New function.
4842 (make_cleanup_value_free_to_mark): Likewise.
4844 2011-05-12 Tom Tromey <tromey@redhat.com>
4846 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4847 cast left-hand-side to unsigned.
4849 2011-05-12 Tom Tromey <tromey@redhat.com>
4852 * value.h (value_from_contents): Declare.
4853 * value.c (value_from_contents): New function.
4854 * dwarf2read.c (dwarf_stack_op_name): Add new values.
4855 (dwarf2_get_die_type): New function.
4856 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
4857 (allocate_piece_closure): Acquire reference to values.
4858 (read_pieced_value): Update for value-based expressions.
4859 (write_pieced_value): Likewise.
4860 (free_pieced_value_closure): Call value_free as needed.
4861 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
4862 Update for value-based expressions.
4863 * dwarf2loc.h (dwarf2_get_die_type): Declare.
4864 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
4865 <get_base_type>: New field.
4866 (struct dwarf_expr_piece) <v.value>: Change type.
4867 <v.regno>: New field.
4868 (struct dwarf_expr_context) <mark>: New field.
4869 (dwarf_expr_piece, dwarf_expr_fetch): Update.
4870 (dwarf_expr_pop, dwarf_expr_push): Remove.
4871 (dwarf_expr_push_address): Declare.
4872 * dwarf2expr.c (dwarf_arch_cookie): New global.
4873 (struct dwarf_gdbarch_types): New.
4874 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
4876 (dwarf_expr_push): Change type of 'value' argument. Update. Now
4878 (dwarf_expr_push_address): New function.
4879 (dwarf_expr_pop): Now static.
4880 (dwarf_expr_fetch): Change return type.
4881 (dwarf_require_integral): New function.
4882 (dwarf_expr_fetch): Simplify.
4883 (add_piece): Update.
4884 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
4886 (execute_stack_op) <sign_ext>: Remove.
4887 Use values for DWARF stack.
4888 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
4889 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4891 (_initialize_dwarf2expr): New function.
4892 (add_piece): Update.
4893 (new_dwarf_expr_context): Set new field.
4894 (free_dwarf_expr_context): Call value_free_to_mark.
4895 * dwarf2-frame.c (no_base_type): New function.
4896 (execute_stack_op): Set get_base_type field. Update.
4898 2011-05-12 Tom Tromey <tromey@redhat.com>
4900 * dwarf2read.c (read_common_block): Fix formatting.
4902 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
4904 * breakpoint.c (disable_breakpoint): Disable all locations
4905 associated with a tracepoint on target if a trace experiment is
4907 (disable_command): Disable a specific tracepoint location on target if
4908 a trace experiment is running.
4909 (do_enable_breakpoint): Enable all locations associated with a
4910 tracepoint on target if a trace experiment is running.
4911 (enable_command) Enable a specific tracepoint location on target if a
4912 trace experiment is running.
4913 * target.c (update_current_target): Add INHERIT and de_fault clauses for
4914 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4915 to_disable_tracepoint.
4916 * target.h: Add declaration of struct bp_location.
4917 (struct target_ops): Add new functions
4918 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4919 to_disable_tracepoint to target operations.
4920 (target_supports_enable_disable_tracepoint): New macro.
4921 (target_enable_tracepoint): New macro.
4922 (target_disable_tracepoint): New macro.
4923 * remote.c (struct remote_state): Add new field.
4924 (remote_enable_disable_tracepoint_feature): New.
4925 (remote_protocol_features): Add new entry.
4926 (remote_supports_enable_disable_tracepoint): New.
4927 (remote_enable_tracepoint): New.
4928 (remote_disable_tracepoint): New.
4929 (init_remote_ops): Add remote_enable_tracepoint,
4930 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
4931 to remote operations.
4932 * tracepoint.c (start_tracing): Allow tracing to start without any
4933 tracepoints enabled with just a warning if they can be re-enabled
4935 * NEWS: Add news item for the new behaviour of the enable and disable
4936 GDB commands when applied to tracepoints.
4937 Add news items for the new remote packets QTEnable and QTDisable.
4939 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4941 * config.in: Regenerate.
4942 * configure: Regenerate.
4943 * configure.ac <--with-system-readline> (for readline_echoing_p):
4945 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
4946 (tui_old_rl_echoing_p): ... here.
4947 (tui_setup_io): Rename extern declaration readline_echoing_p to
4948 _rl_echoing_p. Adjust assignments for the both renames.
4950 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4952 * symtab.c (lookup_symtab): Run cleanup before returning.
4954 2011-05-11 Tom Tromey <tromey@redhat.com>
4956 * dwarf2read.c (handle_data_member_location): New function.
4957 (dwarf2_add_field): Use it.
4958 (read_common_block): Likewise.
4960 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4962 Make addrs->SECTINDEX always defined.
4963 * symfile.c (relative_addr_info_to_section_offsets): Check for
4964 SECTINDEX -1, not for zero ADDR.
4965 (addrs_section_compar): Remove checking for invalid SECTINDEX.
4966 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
4967 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
4970 2011-05-10 Doug Evans <dje@google.com>
4972 * linux-thread-db.c: Whitespace cleanup.
4973 (try_thread_db_load_1): Fix comment.
4975 * linux-thread-db.c (set_libthread_db_search_path): New function.
4976 (_initialize_thread_db): Add setter for libthread-db-search-path.
4978 2011-05-09 Doug Evans <dje@google.com>
4980 * NEWS: Mention --with-iconv-bin.
4981 * configure.ac: New option --with-iconv-bin.
4982 * configure: Regenerate.
4983 * config.in: Regenerate.
4984 * defs.h (relocate_gdb_directory): Declare.
4985 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
4986 removed progname parameter, and exported. All callers updated.
4987 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
4989 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
4990 adding missing call to restore_child_signals_mask.
4992 2011-05-09 Pedro Alves <pedro@codesourcery.com>
4994 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
4996 * infrun.c (proceed, start_remote): Adjust.
4997 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
4998 and adjust to not handle it.
4999 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5000 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5001 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5002 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5003 * windows-nat.c (do_initial_windows_stuff): Adjust.
5004 * infcmd.c (attach_command): Adjust.
5005 (notice_new_inferior): Adjust.
5007 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5009 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5010 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5011 * spu-tdep.c (op_selb): Use correct value.
5013 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5015 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5016 "parent" parameter to symbol_file_add_from_bfd call.
5018 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5019 Thiago Jung Bauermann <bauerman@br.ibm.com>
5021 Implement support for PowerPC BookE masked watchpoints.
5022 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5024 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5025 method. Initialize to NULL in all existing breakpoint_ops instances.
5026 (struct breakpoint) <hw_wp_mask>: New field.
5027 * breakpoint.c (is_masked_watchpoint): Add prototype.
5028 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5029 breakpoint's breakpoint_ops.works_in_software_mode if available.
5030 (watchpoints_triggered): Handle the case of a hardware masked
5032 (watchpoint_check): Likewise.
5033 (works_in_software_mode_watchpoint): New function.
5034 (insert_masked_watchpoint, remove_masked_watchpoint)
5035 (resources_needed_masked_watchpoint)
5036 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5037 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5038 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5040 (masked_watchpoint_breakpoint_ops): New structure.
5041 (watch_command_1): Check for the existence of the `mask' parameter.
5042 Set b->ops according to the type of hardware watchpoint being created.
5043 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5044 (ppc_linux_remove_mask_watchpoint)
5045 (ppc_linux_masked_watch_num_registers): New functions.
5046 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5047 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5048 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5049 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5050 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5051 (target_masked_watch_num_registers): New functions.
5052 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5053 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5055 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5056 (target_masked_watch_num_registers): Add prototypes.
5058 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5061 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5062 (producer_is_gcc_ge_4_0): New function.
5063 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5064 symtab->language code.
5065 (var_decode_location): Set cu->has_loclist.
5066 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5067 skip. Intialize force_skip from locations_valid. Move the prologue
5068 skipping code into two passes.
5069 * symtab.h (struct symtab): Make the primary field a bitfield. New
5070 field locations_valid.
5072 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5075 (classify_inner_name): Call cp_lookup_nested_type with
5077 * cp-namespace.c (cp_lookup_nested_type): New variable
5078 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5079 type_name_no_tag_or_error with saved_parent_type.
5080 * dwarf2read.c (load_partial_dies): Read in any children of
5081 DW_TAG_typedef with complaint in such case.
5082 * gdbtypes.c (type_name_no_tag_or_error): New function.
5083 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5084 * valops.c (destructor_name_p): New comment for parameter type. Remove
5085 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5086 * value.h (destructor_name_p): Remove type const.
5088 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5090 * symtab.c (compare_symbol_name): New function.
5091 (completion_list_add_name, expand_partial_symbol_name): Call it,
5092 remove the variable ncmp.
5093 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5096 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5098 Demote to sw watchpoint only in update_watchpoint.
5099 * breakpoint.c (update_watchpoint): Change between software and
5100 hardware watchpoint for all kinds of watchpoints, not just
5101 read/write ones. Determine b->exact value here instead of
5102 in watch_command_1. Error out if there are not enough resources
5103 for a read or access hardware watchpoint.
5104 (watch_command_1): Remove logic of checking whether there are
5105 enough resources available, since update_watchpoint will do that
5106 work now. Don't set b->exact here. Catch exceptions thrown by
5107 update_watchpoint and delete the watchpoint.
5108 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5109 Use target_exact_watchpoints instead.
5110 (delete_breakpoint): Notify observers only if deleted watchpoint
5111 has a breakpoint number assigned to it.
5113 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5115 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5117 2011-05-05 Jerome Guitton <guitton@adacore.com>
5119 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5121 (i386_stack_tramp_frame_unwind): New static global.
5122 (i386_match_pattern): New function, extracted from i386_match_insn.
5123 (i386_match_insn): Use i386_match_pattern.
5124 (i386_match_insn_block): New function.
5125 (i386_tramp_chain_in_reg_insns)
5126 (i386_tramp_chain_on_stack_insns): New static variables.
5127 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5130 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5132 * configure.host (xscale*): Don't handle target.
5133 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5136 2011-05-04 Yao Qi <yao@codesourcery.com>
5138 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5140 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5143 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5144 | * elfread.c (elf_symtab_read): Stop memory leak.
5146 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5148 * nto-tdep.c (nto_target): Replace deprecated call to
5149 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5151 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5153 Fix false GCC warning.
5154 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5156 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5158 * breakpoint.c (update_watchpoint): Move code to change
5159 the enable state of breakpoint from here ...
5160 (do_enable_breakpoint): ... to here.
5162 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5164 * valprint.c (val_print_array_elements): Fixed poor performance
5165 of printing very large arrays with repeat_count_threshold set
5166 to unlimited. New comment.
5168 2011-04-29 Tom Tromey <tromey@redhat.com>
5170 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5171 (mi_parse): Likewise.
5172 * breakpoint.c (break_range_command): Use sizeof char*, not
5174 (create_breakpoint): Likewise.
5175 (parse_breakpoint_sals): Likewise.
5177 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5179 * linux-nat.c (linux_child_remove_fork_catchpoint)
5180 (linux_child_remove_vfork_catchpoint)
5181 (linux_child_remove_exec_catchpoint): New functions.
5182 (linux_target_install_ops): Install them.
5184 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5188 * varobj.c (install_default_visualizer): Do not install a
5189 visualizer if the varobj is CPLUS_FAKE_CHILD.
5190 (construct_visualizer): Likewise.
5192 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5194 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5195 case insensitive comparison.
5197 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5199 * infrun.c (proceed): Revert previous change.
5200 (resume): Instead, handle the case of signal delivery while stepping
5201 off a breakpoint location here, and only if software single-stepping
5202 is used. Handle nested signals.
5204 2011-04-28 Yao Qi <yao@codesourcery.com>
5206 * arm-tdep.c (copy_unmodified): Rename to ...
5207 (arm_copy_unmodified): .. this. New.
5208 (copy_preload): Move common part to ...
5209 (install_preload): .. this. New.
5210 (arm_copy_preload): New.
5211 (copy_preload_reg): Move common part to ...
5212 (install_preload_reg): ... this. New.
5213 (arm_copy_preload_reg): New.
5214 (copy_b_bl_blx): Move common part to ...
5215 (install_b_bl_blx): .. this. New.
5216 (arm_copy_b_bl_blx): New.
5217 (copy_bx_blx_reg): Move common part to ...
5218 (install_bx_blx_reg): ... this. New.
5219 (arm_copy_bx_blx_reg): New.
5220 (copy_alu_reg): Move common part to ...
5221 (install_alu_reg): ... this. New.
5222 (arm_copy_alu_reg): New.
5223 (copy_alu_shifted_reg): Move common part to ...
5224 (install_alu_shifted_reg): ... this. New.
5225 (copy_ldr_str_ldrb_strb): Move common part to ...
5226 (install_ldr_str_ldrb_strb): ... this. New.
5227 (arm_copy_ldr_str_ldrb_strb): New.
5228 (copy_copro_load_store): Move some common part to ...
5229 (install_copy_copro_load_store): ... this. New.
5230 (arm_copy_copro_load_store): New.
5232 (arm_copy_svc): Renamed from copy_svc.
5233 (copy_undef): Delete.
5234 (arm_copy_undef): Renamed from copy_undef.
5235 (decode_ext_reg_ld_st): Delete.
5236 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5237 (decode_svc_copro): Delete.
5238 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5239 (copy_copro_load_store, copy_alu_imm): update callers.
5240 (copy_extra_ld_st, copy_block_xfer): Likewise.
5241 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5242 (decode_miscellaneous, decode_dp_misc): Likewise.
5243 (decode_ld_st_word_ubyte, decode_media): Likewise.
5244 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5245 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5246 (decode_unconditional, decode_miscellaneous): Likewise.
5247 (decode_media, decode_b_bl_ldmstm): Likewise.
5248 (arm_process_displaced_insn): Likewise..
5249 (decode_misc_memhint_neon): Delete.
5250 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5251 (decode_miscellaneous): Delete.
5252 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5253 (decode_dp_misc): Delete.
5254 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5255 (decode_ld_st_word_ubyte): Delete.
5256 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5257 (decode_media): Delete.
5258 (arm_decode_media): Renamed from decode_media.
5259 (decode_b_bl_ldmstm): Delete.
5260 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5261 (decode_ext_reg_ld_st): Delete.
5262 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5263 (decode_unconditional): Delete.
5264 (arm_decode_unconditional): Renamed from decode_unconditional.
5266 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5268 Case insensitive lookups implementation.
5269 * dwarf2read.c: Include ctype.h.
5270 (struct mapped_index): New field version.
5271 (mapped_index_string_hash): New parameter index_version. New comment
5272 for it. Call tolower appropriately.
5273 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5274 Choose the right index version for mapped_index_string_hash.
5275 (dwarf2_read_index): Support also the index version 5. Initialize the
5276 new struct mapped_index field version.
5277 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5278 (find_slot): Explain the version needs. Pass INT_MAX for the new
5280 (write_psymtabs_to_index): Produce version 5.
5281 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5282 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5283 * psymtab.c (lookup_partial_symbol): Find the
5284 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5286 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5288 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5289 (completion_list_add_name): New variable ncmp, initialize it, use it.
5290 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5291 * utils.c (strcmp_iw): Support case_sensitive_off.
5292 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5293 New function comment part. New variables saved_string1,
5294 saved_string2 and case_pass. Add a proper second pass.
5296 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5298 Replace re_comp/re_exec by regcomp/regexec.
5299 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5300 (search_symbols_name_matches): Use them, use regexec.
5301 (search_symbols): New variable retval_chain, adjust the use of
5302 old_chain against it. Replace re_comp by regcomp. Use the new struct
5303 search_symbols_data fields, use regexec instead of re_exec.
5305 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5307 Format the code for the next patch.
5308 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5309 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5310 New variables c1 and c2.
5312 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5314 * infrun.c (proceed): Do not single-step into signal delivery
5315 when stepping off a breakpoint location.
5316 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5317 (insert_step_resume_breakpoint_at_caller): Likewise.
5318 (insert_step_resume_breakpoint_at_sal): Likewise.
5319 (insert_longjmp_resume_breakpoint): Likewise.
5321 2011-04-27 Yao Qi <yao@codesourcery.com>
5323 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5325 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5327 * procfs.c (procfs_pass_signals): Fix advance declaration.
5329 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5331 * target.h (struct target_ops): Remove to_notice_signals;
5332 add to_pass_signals.
5333 (target_notice_signals): Remove.
5334 (target_pass_signals): Add prototype.
5335 * target.c (update_current_target): Remove to_notice_signals;
5336 mention to_pass_signals.
5337 (target_pass_signals): New function.
5338 (debug_to_notice_signals): Remove.
5339 (setup_target_debug): Do not install debug_to_notice_signals.
5341 * infrun.c (signal_pass): New global.
5342 (resume): Call target_pass_signals.
5343 (handle_inferior_event): Report all signals while stepping over
5344 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5345 are re-inserted when stepping over a signal handler.
5346 (signal_cache_update): New function.
5347 (signal_stop_update): Call it.
5348 (signal_print_update): Likewise.
5349 (signal_pass_update): Likewise.
5350 (handle_command): Call signal_cache_update and target_pass_signals
5351 instead of target_notice_signals.
5352 (_initialize_infrun): Initialize signal_pass.
5354 * linux-nat.c (pass_mask): New global.
5355 (linux_nat_pass_signals): New function.
5356 (linux_nat_create_inferior): Report all signals initially.
5357 (linux_nat_attach): Likewise.
5358 (linux_nat_resume): Use pass_mask to decide whether to directly
5359 handle an inferior signal.
5360 (linux_nat_wait_1): Likewise.
5361 (linux_nat_add_target): Install to_pass_signals callback.
5363 * nto-procfs.c (notice_signals): Remove.
5364 (procfs_resume): Do not call notice_signals.
5365 (procfs_notice_signals): Remove.
5366 (procfs_pass_signals): New function.
5367 (init_procfs_ops): Install to_pass_signals callback instead of
5368 to_notice_signals callback.
5369 (_initialize_procfs): Report all signals initially.
5371 * procfs.c (procfs_notice_signals): Remove.
5372 (procfs_pass_signals): New function.
5373 (procfs_target): Install to_pass_signals callback instead of
5374 to_notice_signals callback.
5375 (register_gdb_signals): Remove.
5376 (procfs_debug_inferior): Report all signals initially.
5377 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5379 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5380 parameters; use them instead of calling signal_..._state routines.
5381 (remote_notice_signals): Remove.
5382 (remote_start_remote): Report all signals initially.
5383 (remote_resume): Do not call remote_pass_signals.
5384 (_initialize_remote): Install to_pass_signals callback instead of
5385 to_notice_signals callback.
5387 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5389 * breakpoint.c (user_settable_breakpoint): Delete.
5390 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5391 (delete_command): Check user_breakpoint_p instead of looking at
5392 the breakpoint's type.
5393 (disable_command): Ditto.
5394 (enable_command): Ditto.
5395 (delete_trace_command): Use user_breakpoint_p instead of looking
5396 at the breakpoint number directly. When checking if there are
5397 user visible tracepoints, in order to know whether to ask the user
5398 for confirmation, check whether the breakpoint is actually a
5401 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5403 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5406 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5408 MI breakpoint notifications.
5410 * annotate.c (breakpoint_changed): Adjust parameter type.
5411 * breakpoint.c (set_breakpoint_condition): Adjust to change
5412 in breakpoint_modified type.
5413 (breakpoint_set_commands): Likewise.
5414 (do_map_commands_command): Likewise.
5415 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5416 changed after bumping hit count.
5417 (bpstat_stop_status): Likewise.
5418 (print_one_breakpoint_location): Don't wrap in tuple here.
5419 (print_one_breakpoint): Always print individual locations.
5420 For locations, use unnamed tuple.
5421 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5423 (create_catchpoint, create_syscall_event_catchpoint): Call
5424 breakpoint_created obsever.
5425 (mention): Don't call breakpoint_created observer.
5426 (create_breakpoint_sal): Call breakpoint_created observer.
5427 (create_breakpoint, watch_command_1): Likewise.
5428 (create_ada_exception_breakpoint): Likewise.
5429 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5430 (locations_are_equal): New.
5431 (update_breakpoint_locations): If locations were changed, notify.
5432 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5433 Call breakpoint_modified observer.
5435 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5436 (mi_cmd_break_insert): Don't set observers for modify and delete.
5437 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5438 (mi_breakpoint_created, mi_breakpoint_deleted)
5439 (mi_breakpoint_modified): New.
5440 (mi_interpreter_init): Hook the above.
5441 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5442 while -break-* commands are executing.
5443 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5444 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5446 (mi_ui_out_impl): Hook in mi_redirect.
5447 (mi_field_skip): True to the name, skip the field, don't output
5448 a field with an empty value.
5450 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5451 (gdbpy_breakpoint_deleted): Adjust.
5452 * tui/tui-hooks.c (tui_event_create_breakpoint)
5453 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
5455 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5457 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5458 (procfs_remove_hw_watchpoint): Likewise.
5460 2011-04-26 Michael Walle <michael@walle.cc>
5462 * remote.c (remote_start_remote): Ack packet after sending the
5465 2011-04-26 Yao Qi <yao@codesourcery.com>
5467 * linux-nat.c: Move common macros to ...
5468 Include linux-ptrace.h.
5469 * common/linux-ptrace.h: ... here. New.
5471 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5473 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5474 !objfile_has_partial_symbols. New comment.
5475 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5476 SYM_READ_PSYMBOLS is not present. Extend the comment.
5477 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5479 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5481 * defs.h (ENUM_BITFIELD): Remove.
5483 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5484 Eli Zaretskii <eliz@gnu.org>
5486 * NEWS: Document the new gdbserver --once option.
5488 2011-04-21 Jie Zhang <jzhang918@gmail.com>
5490 * MAINTAINERS: Update my email address.
5492 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5494 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5495 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5496 function call if __STDC_ISO_10646__ macro is defined.
5497 (intermediate_encoding): New prototype.
5498 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5499 to generate compile time error for unsupported gdb_wchar_t size.
5500 (ENDIAN_SUFFIX): New macro.
5501 (intermediate_encoding): New function.
5503 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5505 * ada-lang.c (struct add_partial_datum): Update the comment for
5506 expand_partial_symbol_name.
5507 (ada_add_partial_symbol_completions): Rename to ...
5508 (ada_expand_partial_symbol_name): ... here, change return type, update
5509 function comment, call symbol_completion_match instead of
5510 symbol_completion_add.
5511 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5512 and ada_expand_partial_symbol_name.
5513 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5515 (dw2_map_symbol_names): Remove.
5516 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5517 * psymtab.c (map_symbol_names_psymtab): Remove.
5518 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5519 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5521 (psym_functions): Unlist map_symbol_names_psymtab.
5522 (map_partial_symbol_names): Rename to ...
5523 (expand_partial_symbol_names): ... here, change the FUN type, call
5524 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5525 * psymtab.h (map_partial_symbol_names): Rename to ...
5526 (expand_partial_symbol_names): ... here, change the FUN type.
5527 * symfile.h (struct quick_symbol_functions): Update the description of
5528 expand_symtabs_matching. Remove map_symbol_names.
5529 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5530 (struct add_name_data): Update the comment for
5531 expand_partial_symbol_name.
5532 (add_partial_symbol_name): Rename to ...
5533 (expand_partial_symbol_name): ... here. Replace
5534 completion_list_add_name call by strncmp.
5535 (default_make_symbol_completion_list_break_on): Use now
5536 expand_partial_symbol_names and expand_partial_symbol_name.
5537 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5539 2011-04-20 Tom Tromey <tromey@redhat.com>
5541 * dwarf2read.c (save_gdb_index_command): Replace format
5542 documentation with a pointer to the manual.
5544 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5546 * regcache.c: Include remote.h.
5547 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5548 (regcache_dump): Handle regcache_dump_remote.
5549 (maintenance_print_remote_registers): New function.
5550 (_initialize_regcache): Install "maint print remote-registers"
5552 * remote.c (map_regcache_remote_table): New function, factored out
5554 (init_remote_state): ... here.
5555 (remote_register_number_and_offset): New.
5556 * remote.h (remote_register_number_and_offset): Declare.
5558 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5560 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5561 null_ptid, assume and allow a NULL address space, instead of
5562 asking the target for the ptid's address space.
5563 * infrun.c (ptid_is_pid): Remove assertion.
5565 2011-04-19 Tom Tromey <tromey@redhat.com>
5567 * windows-tdep.c (windows_xfer_shared_library):
5568 * windows-nat.c (get_module_name, windows_make_so):
5569 * v850-tdep.c (v850_handle_pushm):
5570 * utils.c (null_cleanup, gdb_realpath):
5571 * ui-out.c (get_next_header):
5572 * tracepoint.c (clear_traceframe_info):
5573 * symtab.c (lookup_symtab):
5574 * serial.h (struct serial_ops):
5575 * mipsread.c (read_alphacoff_dynamic_symtab):
5576 * infcmd.c (print_return_value):
5577 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5578 * f-exp.y (parse_number):
5579 * exceptions.c (catch_exceptions):
5580 * dummy-frame.c (dummy_frame_this_id):
5581 * defs.h (struct cleanup):
5582 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5583 * arm-tdep.c (arm_push_dummy_call):
5584 * amd64-tdep.h (amd64_collect_xsave):
5585 * amd64-tdep.c (amd64_collect_xsave):
5586 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5587 * README (typing): Remove duplicate words.
5588 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5589 * infrun.c (siginfo_value_read): Fix typo.
5590 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5591 * top.c (source_line_number): Add comma.
5593 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5595 * thread.c (any_live_thread_of_process): Prioritize threads
5596 that are not executing.
5597 * gdbthread.h (any_live_thread_of_process): Update comment
5598 as per above change.
5600 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5602 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5603 (scan_xcoff_symtab): Likewise.
5605 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5607 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5610 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5611 Pedro Alves <pedro@codesourcery.com>
5613 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5614 variables to simplify code and avoid == operator at end of
5615 line as this is against GNU coding standards.
5617 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5619 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5620 lm_name to name_lm to avoid conflict with lm_name function.
5622 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5624 ARI fixes: Use only lowercase function name for static functions.
5625 * nto-tdep.c (LM_ADDR): Rename to...
5626 (lm_addr): New function name.
5627 (nto_relocate_section_addresses): Adapt to change above.
5628 * solib-sunos.c (LM_ADDR): Rename to...
5629 (lm_addr): New function name.
5630 (LM_NEXT): Rename to...
5631 (lm_next): New function name.
5632 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5633 function name changes above.
5634 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5635 (lm_addr_from_link_map): New function name.
5636 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5637 (has_lm_dynamic_from_link_map): New function name.
5638 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5639 (lm_dynamic_from_link_map): New function name.
5640 (LM_ADDR_CHECK): Rename to...
5641 (lm_addr_check): New function name.
5642 (LM_NEXT): Rename to...
5643 (lm_next): New function name.
5644 (LM_PREV): Rename to...
5645 (lm_prev): New function name.
5646 (LM_NAME): Rename to...
5647 (lm_name): New function name.
5648 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5649 (ignore_first_link_map_entry): New function name.
5650 (svr4_keep_data_in_core): Adapt to function name changes above.
5651 (svr4_current_sos): Likewise.
5652 (enable_break): Likewise.
5653 (svr4_relocate_section_addresses): Likewise.
5655 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5658 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5659 sprintf. Simplify code and avoid loosing memory.
5660 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5661 (call0_frame_cache): Remove && operator from end of line.
5663 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5665 Fix libraries displacement if they change whether they were prelinked.
5666 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5667 does not match. Comment why.
5669 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5671 * corelow.c: Include wrapper.h.
5672 (core_open): Call now gdb_target_find_new_threads.
5673 * wrapper.c: Include target.h.
5674 (gdb_target_find_new_threads): New.
5675 * wrapper.h (gdb_target_find_new_threads): New declaration.
5677 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5679 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5680 even if !TARGET_HAS_EXECUTION.
5682 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5684 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5685 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5686 bfd_get_synthetic_symtab.
5687 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5688 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5689 parameter parent, remove the call to add_separate_debug_objfile.
5690 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5691 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5692 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5693 parent, new comment for it, call add_separate_debug_objfile for it.
5694 (symbol_file_add_separate): Pass objfile as the parameter parent,
5695 remove the call to add_separate_debug_objfile.
5696 (symbol_file_add_from_bfd): New parameter parent, pass it.
5697 (symbol_file_add): Pass NULL to the new parameter parent.
5698 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5700 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5702 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5705 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5707 Fix Python access to inlined frames.
5708 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5709 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5711 2011-04-15 Tom Tromey <tromey@redhat.com>
5713 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5715 2011-04-15 Gary Benson <gbenson@redhat.com>
5717 * MAINTAINERS: Add myself to write-after-approval section.
5719 2011-04-14 Mike Frysinger <vapier@gentoo.org>
5721 * remote-sim.c (sim_command_completer): New function.
5722 (_initialize_remote_sim): Set completer to sim_command_completer.
5724 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5726 * breakpoint.c (print_exception_catchpoint): Rename to ...
5727 (print_it_exception_catchpoint): ... this.
5728 (gnu_v3_exception_catchpoint_ops): Update with new name
5729 for print_it_exception_catchpoint.
5731 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5733 * MAINTAINERS: Add myself for write after approval privileges.
5735 2011-04-13 Marek Polacek <mpolacek@redhat.com>
5737 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5739 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5741 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5743 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5745 * breakpoint.c (save_breakpoints): Verify whether
5746 breakpoint_ops.print_recreate is defined before calling it.
5748 2011-04-11 Gary Benson <gbenson@redhat.com>
5750 Fix failure with --enable-maintainer-mode.
5751 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5753 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5756 * symtab.c (search_symbols): Reorder the KIND description in the
5757 function comment. Remove the unused 4th element of types, types2,
5758 types3 and types4. New gdb_assert on KIND.
5759 (symtab_symbol_info): Remove the unused 4th element of classnames.
5760 New gdb_assert on KIND.
5761 * symtab.h (enum search_domain): New warning in the enum comment.
5762 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5765 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5767 Fix crash of gdb save-index on a STABS file.
5768 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5771 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5773 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5774 * dwarf2read.c: Include ctype.h.
5775 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5777 (dwarf2_add_field): Fix new_field->accessibility by calling
5778 dwarf2_default_access_attribute. Restructure setting accessibility
5780 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5781 is_private and is_protected by calling
5782 dwarf2_default_access_attribute.
5784 2011-04-08 Kevin Buettner <kevinb@redhat.com>
5786 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5787 to the initialization.
5789 2011-04-08 Steve Ellcey <sje@cup.hp.com>
5791 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5794 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5796 Remove support for old Cygwin 1.5 versions.
5797 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5798 function on old Cygwin version.
5799 * windows-nat.c: Remove cygwin version check and always define
5800 __USEWIDE for Cygwin compilation.
5802 2011-04-07 Yao Qi <yao@codesourcery.com>
5804 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5806 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5807 (arm_copy_svc): Remove parameters INSN and TO.
5808 (decode_svc_copro): Update caller.
5809 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5810 from function pointer `copy_svc_os'.
5812 2011-04-07 Yao Qi <yao@codesourcery.com>
5814 * arm-tdep.c (cleanup_branch): Set a correct return address in
5815 LR for ARM and Thumb.
5817 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5820 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5821 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5822 in the function comment, a new note on values compatibility.
5823 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5824 * symtab.h (SYMBOL_HASH_NEXT): New.
5826 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5828 * ppc-linux-nat.c (check_condition): Add len output parameter.
5829 Set it based on the memory region referenced in the condition
5830 expression. Update all callers.
5832 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5834 Fix crash regression on systems featuring .gdb_index.
5835 * objfiles.c (free_objfile): Move the
5836 forget_cached_source_info_for_objfile call earlier. Comment it.
5837 Extend the comment for objfile_free_data.
5839 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5841 Fix regression of displaying the debug format.
5842 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5845 2011-04-04 Tom Tromey <tromey@redhat.com>
5847 * cli/cli-interp.c (struct captured_execute_command_args):
5849 (do_captured_execute_command): Remove.
5850 (safe_execute_command): Use TRY_CATCH.
5851 * cli/cli-script.c (struct wrapped_read_command_file_args):
5853 (wrapped_read_command_file): Remove.
5854 (script_from_file): Use TRY_CATCH.
5855 * exceptions.c (catch_exception): Remove.
5856 * exceptions.h (catch_exception): Remove.
5857 (deprecated_throw_reason): Update comment.
5858 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
5859 argument to 'context'.
5860 (mi_execute_command): Use TRY_CATCH.
5861 * remote.c (struct start_remote_args): Remove.
5862 (remote_start_remote): Update; change arguments.
5863 (remote_open_1): Use TRY_CATCH.
5865 2011-04-04 Tom Tromey <tromey@redhat.com>
5867 * tracepoint.c (scope_info): Update.
5868 * symtab.c (decode_line_spec): Update.
5869 * python/python.c (gdbpy_decode_line): Update.
5870 * linespec.h (decode_line_1): Update.
5871 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
5872 (decode_compound, find_method, symtab_from_filename)
5873 (decode_variable): Likewise.
5874 * cli/cli-cmds.c (edit_command): Update.
5875 (list_command): Update.
5876 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
5878 (create_breakpoint): Update.
5879 (until_break_command): Update.
5880 (addr_string_to_sals): Update.
5881 (decode_line_spec_1): Update.
5883 2011-04-04 Tom Tromey <tromey@redhat.com>
5885 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
5886 (do_captured_parse_breakpoint): Remove.
5887 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
5888 Use TRY_CATCH directly.
5890 2011-04-04 Tom Tromey <tromey@redhat.com>
5892 * symtab.h (free_symtab): Remove.
5893 (forget_cached_source_info_for_objfile): Declare.
5894 * symmisc.c (free_symtab): Remove.
5895 * source.c (forget_cached_source_info_for_objfile): New function.
5896 (forget_cached_source_info): Use it.
5897 * objfiles.c (free_objfile): Simplify check before calling
5898 clear_current_source_symtab_and_line. Call
5899 forget_cached_source_info_for_objfile.
5901 2011-04-04 Tom Tromey <tromey@redhat.com>
5903 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
5904 (new_symtab): Don't set `free_code' on symtab.
5905 (new_linetable): Properly handle size==0.
5906 * symtab.h (struct symtab) <free_code, free_func>: Remove.
5907 * symmisc.c (free_symtab): Don't free the linetable. Don't call
5909 * jv-lang.c (struct jv_per_objfile_data): New.
5910 (jv_per_objfile_free): Free the data.
5911 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
5912 (get_java_class_symtab): Set the `dict' field on the
5913 jv_per_objfile_data.
5914 (free_class_block): Remove.
5915 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
5918 2011-04-04 Tom Tromey <tromey@redhat.com>
5920 * symfile.c (reread_symbols): Update.
5921 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
5923 * objfiles.c (allocate_objfile): Update.
5924 * cp-support.h (cp_check_possible_namespace_symbols): Don't
5926 * cp-namespace.c (lookup_symbol_file): Don't call
5927 lookup_possible_namespace_symbol.
5928 (initialize_namespace_symtab, get_possible_namespace_block)
5929 (free_namespace_block, cp_check_possible_namespace_symbols)
5930 (check_possible_namespace_symbols_loop)
5931 (check_one_possible_namespace_symbol)
5932 (lookup_possible_namespace_symbol): Remove.
5933 (maintenance_cplus_namespace): Replace with notice.
5934 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
5936 2011-04-04 Tom Tromey <tromey@redhat.com>
5938 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
5939 * symtab.h (struct symtab) <producer, debugformat>: Now const.
5940 * symmisc.c (free_symtab): Don't free debugformat.
5941 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
5942 (record_debugformat, record_producer): Document.
5943 * buildsym.c (end_symtab): Don't save debugformat and producer
5945 (end_symtab): Don't free debugformat and producer fields.
5946 (record_debugformat): Don't call xstrdup.
5947 (record_producer): Likewise.
5949 2011-04-04 Tom Tromey <tromey@redhat.com>
5951 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
5952 (source_line_charpos, source_charpos_line): Remove.
5954 2011-04-04 Tom Tromey <tromey@redhat.com>
5956 * symtab.h (domain_enum): Split in two...
5957 (enum search_domain): New.
5958 (search_symbols): Update.
5959 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
5960 redundant declarations.
5961 (search_symbols): Change 'kind' argument to search_domain.
5963 (print_symbol_info): Likewise.
5964 (symtab_symbol_info): Likewise.
5965 * symfile.h (struct quick_symbol_functions)
5966 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
5967 <expand_symtabs_matching>: Likewise.
5968 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
5969 (expand_symtabs_matching_via_partial): Update.
5970 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
5971 (dw2_expand_symtabs_for_function): Update.
5972 * block.h: Moved anonymous enum...
5973 * defs.h (enum block_enum): ... here. Now named.
5975 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5977 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
5978 * version.in: Bump version to 7.3.50.20110403-cvs.
5980 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5982 * NEWS: Create a new section for the next release branch.
5983 Rename the section of the current branch, now that it has
5986 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5988 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
5989 for "fpscr" in target description.
5991 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5993 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
5994 initialize it. Delay HASH initialization. Strip the part after open
5995 parenthesis for languages with qualifiers. Call do_cleanups.
5997 2011-04-01 Tom Tromey <tromey@redhat.com>
5999 * utils.c (report_command_stats): Don't print `-' for negative
6002 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6004 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6005 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6008 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6010 * breakpoint.h (bpdisp_text): Add declaration.
6011 * breakpoint.c (bpdisp_text): Make non-static.
6012 * ada-lang.c: #include "mi/mi-common.h".
6013 (print_it_exception): Rewrite to improve GDB/MI output.
6015 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6017 * arm-tdep.h (struct address_space): Add forward declaration.
6019 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6021 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6022 * arm-tdep.c (arm_override_mode): New global.
6023 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6024 execution mode heuristics.
6025 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6026 second single-step breakpoint if needed, using
6027 arm_insert_single_step_breakpoint.
6028 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6029 ARM execution mode, do not call thumb_get_next_pc_raw.
6030 (arm_get_next_pc): Encode execution mode in return value. Call
6031 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6032 (arm_insert_single_step_breakpoint): New function.
6033 (arm_software_single_step): Call it.
6034 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6035 argument to return execution mode of sigreturn target.
6036 (arm_linux_syscall_next_pc): Use it.
6037 (arm_linux_copy_svc): Update call.
6038 (arm_linux_software_single_step): Call
6039 arm_insert_single_step_breakpoint.
6041 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6043 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6046 2011-03-31 Tom Tromey <tromey@redhat.com>
6048 * varobj.c (update_dynamic_varobj_children): Properly handle
6049 errors from iterator.
6051 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6053 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6054 struct linkage name twice.
6056 2011-03-31 Tom Tromey <tromey@redhat.com>
6058 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6059 missing ">" to message.
6061 2011-03-31 Tom Tromey <tromey@redhat.com>
6063 * varobj.c (instantiate_pretty_printer): Remove duplicate
6066 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6068 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6069 if neither saved value nor register available (e.g. signal frame).
6071 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6073 * macroexp.c (expand): Avoid uninitialized variable
6076 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6078 * breakpoint.c (break_range_command): Fix typo in comment.
6080 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6081 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6083 Implement support for PowerPC BookE ranged breakpoints.
6084 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6085 * breakpoint.h (struct bp_target_info) <length>: New member
6087 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6088 instead of struct breakpoint as argument, and also add ASPACE
6089 and BP_ADDR arguments. Update all callers.
6090 (struct breakpoint_ops) <print_one_detail>: New method.
6091 (struct breakpoint) <addr_string_range_end>: New member variable.
6092 * breakpoint.c (breakpoint_location_address_match): Add function
6094 (insert_bp_location): Set bl->target_info.length.
6095 (breakpoint_here_p): Call breakpoint_location_address_match.
6096 (moribund_breakpoint_here_p): Likewise.
6097 (regular_breakpoint_inserted_here_p): Likewise.
6098 (breakpoint_thread_match): Likewise.
6099 (bpstat_stop_status): Likewise.
6100 (bpstat_check_location): Move call to
6101 breakpoint_ops.breakpoint_hit to the top.
6102 (print_one_breakpoint_location): Call
6103 breakpoint_ops.print_one_detail if available.
6104 (breakpoint_address_match_range): New function.
6105 (breakpoint_location_address_match): Likewise.
6106 (breakpoint_locations_match): Compare the length field of the
6108 (hw_breakpoint_used_count): Count resources used by all locations
6109 in a breakpoint, and use breakpoint_ops.resources_needed if
6111 (breakpoint_hit_ranged_breakpoint): New function.
6112 (resources_needed_ranged_breakpoint): Likewise.
6113 (print_it_ranged_breakpoint): Likewise.
6114 (print_one_ranged_breakpoint): Likewise.
6115 (print_one_detail_ranged_breakpoint): Likewise.
6116 (print_mention_ranged_breakpoint): Likewise.
6117 (print_recreate_ranged_breakpoint): Likewise.
6118 (ranged_breakpoint_ops): New structure.
6119 (find_breakpoint_range_end): New function.
6120 (break_range_command): Likewise.
6121 (delete_breakpoint): Free addr_string_range_end.
6122 (update_breakpoint_locations): Add SALS_END argument. Update
6123 all callers. Calculate breakpoint length if a non-zero SALS_END
6124 is given. Call breakpoint_locations_match instead of
6125 breakpoint_address_match.
6126 (reset_breakpoint): Find SaL of the end of the range if B is a
6128 (_initialize_breakpoint): Register break-range command.
6129 * defs.h (print_core_address): Add function prototype.
6130 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6132 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6133 (ppc_linux_remove_hw_breakpoint): Likewise.
6134 (_initialize_ppc_linux_nat): Initialize
6135 to_ranged_break_num_registers.
6136 * target.c (update_current_target): Add comment about
6137 to_ranged_break_num_registers.
6138 (target_ranged_break_num_registers): New function.
6139 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6141 (target_ranged_break_num_registers): Add function prototype.
6142 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6143 * utils.c (print_core_address): ... here.
6145 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6147 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6148 variable compiler warning.
6150 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6152 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6154 (re_set_breakpoint): ... to here ...
6155 (addr_string_to_sals): ... and here.
6157 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6159 * Makefile.in (SFILES): Add missing C sources.
6160 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6161 Add missing headers.
6163 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6165 * .gitignore: New file.
6167 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6169 * NEWS: Mention new cfi device simulation.
6171 2011-03-29 Tom Tromey <tromey@redhat.com>
6173 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6174 otherwise anonymous types.
6175 (dwarf2_name): Likewise.
6176 * valops.c (value_struct_elt_for_reference): Refine artificial
6177 type logic. Call error if j==-1.
6179 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6181 Fix false GCC warning.
6182 * infcall.c (find_function_addr): Initialize funaddr.
6184 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6186 Fix mingw compilation with --enable-targets=all.
6187 * remote-mips.c (gdb_usleep.h): Include header.
6188 (mips_enter_debug): Use gdb_usleep instead of sleep.
6190 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6192 Support resolution of STT_GNU_IFUNC via breakpoints.
6193 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6194 bp_gnu_ifunc_resolver_return.
6195 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6196 the loop. Support bp_gnu_ifunc_resolver and
6197 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6198 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6200 (bptype_string, print_one_breakpoint_location): Support
6201 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6202 (user_settable_breakpoint): Return true also for
6203 bp_gnu_ifunc_resolver.
6204 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6205 bp_gnu_ifunc_resolver_return.
6206 (set_breakpoint_location_function): New parameter explicit_loc,
6207 describe it. Call find_pc_partial_function_gnu_ifunc with new
6208 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6209 EXPLICIT_LOC is not set.
6210 (set_raw_breakpoint): Set EXPLICIT_LOC for
6211 set_breakpoint_location_function.
6212 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6213 set_breakpoint_location_function.
6214 (mention): Support bp_gnu_ifunc_resolver and
6215 bp_gnu_ifunc_resolver_return.
6216 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6217 set_breakpoint_location_function.
6218 (update_breakpoint_locations): Remove static.
6219 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6220 bp_gnu_ifunc_resolver_return.
6221 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6222 bp_gnu_ifunc_resolver_return.
6223 (update_breakpoint_locations): New declaration.
6224 * elfread.c: Include gdbthread.h and regcache.h.
6225 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6227 (elf_gnu_ifunc_fns): Install them.
6228 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6229 (stub_gnu_ifunc_resolver_return_stop): New functions.
6230 (stub_gnu_ifunc_fns): Install them.
6231 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6232 and gnu_ifunc_resolver_return_stop.
6233 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6235 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6237 STT_GNU_IFUNC reader implementation.
6238 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6239 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6240 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6241 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6242 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6243 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6244 (elf_gnu_ifunc_resolve_addr): New.
6245 (elf_symfile_read): Call elf_rel_plt_read.
6246 (elf_gnu_ifunc_fns): New.
6247 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6248 Install elf_gnu_ifunc_fns.
6249 * infcall.c (find_function_return_type): New function.
6250 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6251 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6252 (stub_gnu_ifunc_resolve_name): New functions.
6253 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6254 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6255 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6257 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6259 Code cleanup for later STT_GNU_IFUNC support.
6260 * infcall.c (find_function_addr): Remove variable code, use explicit
6261 dereferences for it. Move VALUE_TYPE initialization later.
6263 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6265 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6266 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6267 (clear_pc_function_cache): Clear it.
6268 (find_pc_partial_function): Rename to ...
6269 (find_pc_partial_function_gnu_ifunc): ... this function. New
6270 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6271 (find_pc_partial_function): New wrapper for this function.
6272 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6274 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6276 GDB internal type support for STT_GNU_IFUNC.
6277 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6278 (elf_symtab_read): Set mst_text_gnu_ifunc for
6279 BSF_GNU_INDIRECT_FUNCTION.
6280 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6281 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6282 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6283 nodebug_got_plt_symbol.
6284 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6285 (TYPE_GNU_IFUNC): New.
6286 (struct main_type): New field flag_gnu_ifunc.
6287 (struct builtin_type): New field builtin_func_func.
6288 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6289 nodebug_got_plt_symbol.
6290 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6291 (in_gnu_ifunc_stub): New.
6292 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6294 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6295 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6296 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6298 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6299 * symtab.c (search_symbols): Likewise.
6300 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6301 and mst_slot_got_plt.
6302 (in_gnu_ifunc_stub): New declaration.
6304 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6306 Support a ring of related breakpoints.
6307 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6308 other functions, add gdb_assert.
6309 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6310 watchpoint_del_at_next_stop.
6311 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6312 (bpstat_stop_status): Handle ring in related_breakpoint.
6313 (set_raw_breakpoint_without_location): Initialize ring in
6315 (delete_breakpoint): Handle ring in related_breakpoint, use
6316 watchpoint_del_at_next_stop.
6317 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6319 2011-03-28 Tom Tromey <tromey@redhat.com>
6322 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6323 with `language_minimal'.
6325 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6327 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6328 instead of checking for STT_ARM_TFUNC symbol type.
6330 2011-03-25 Tom Tromey <tromey@redhat.com>
6332 * linespec.c (symbol_found): Restore line-based result for
6333 non-LOC_LABEL symbols.
6335 2011-03-25 Kai Tietz <ktietz@redhat.com>
6337 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6338 instead of strcmp for comparison.
6339 (tui_source_is_displayed): Likewise.
6340 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6342 2011-03-24 Mark Wielaard <mjw@redhat.com>
6344 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6346 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6347 (find_partial_die_in_comp_unit): Likewise in comment.
6348 (read_attribute_value): Likewise.
6349 (lookup_die_type): Likewise.
6350 (dwarf_form_name): Likewise.
6351 (dump_die_shallow): Likewise.
6352 (follow_die_ref_or_sig): Likewise.
6354 2011-03-24 Tom Tromey <tromey@redhat.com>
6356 PR breakpoints/11816:
6357 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6358 (decode_compound): Update.
6359 (find_function_symbol): New function.
6360 (decode_dollar): Update.
6361 (decode_label): Add 'function_symbol' parameter. Handle
6362 function-relative labels.
6363 (decode_variable): Update.
6364 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6365 not its line. Set `special_display' and canonical name for
6368 2011-03-24 Tom Tromey <tromey@redhat.com>
6370 * linespec.h (struct linespec_result) <special_display>: New
6372 * breakpoint.h (struct breakpoint) <display_canonical>: New
6374 * breakpoint.c (print_breakpoint_location): Respect
6376 (create_breakpoint_sal): Add 'display_canonical' parameter.
6377 (create_breakpoints_sal): Update.
6378 (create_breakpoint): Update.
6380 2011-03-24 Tom Tromey <tromey@redhat.com>
6382 * symtab.c (decode_line_spec): Update.
6383 * linespec.c (build_canonical_line_spec): Change type of
6385 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6386 (find_method, decode_all_digits, decode_dollar, decode_label)
6387 (symbol_found): Likewise.
6388 (init_linespec_result): New function.
6389 * breakpoint.c (struct captured_parse_breakpoint_args)
6390 <canonical_p>: New field, replaces addr_string_p.
6391 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6393 (parse_breakpoint_sals): Likewise.
6394 (do_captured_parse_breakpoint): Update.
6395 (create_breakpoint): Use struct linespec_result.
6396 (until_break_command): Update.
6397 (breakpoint_re_set_one): Update.
6398 (decode_line_spec_1): Update.
6399 * linespec.h (struct linespec_result): New.
6400 (init_linespec_result): Declare.
6402 2011-03-23 Pedro Alves <pedro@codesourcery.com>
6404 * regcache.c (regcache_raw_read): If the target didn't supply a
6405 given raw register, mark it as unavailable.
6407 2011-03-23 Kai Tietz <ktietz@redhat.com>
6409 * breakpoint.c (clear_command): Use filename_cmp
6410 instead of strcmp for comparison.
6411 * buildsym.c (watch_main_source_file_lossage): Likewise.
6412 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6413 checking just for slash.
6414 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6415 strrchr and filename_cmp instead of strcmp for filenames.
6416 (add_old_header_file): Use filename_cmp
6417 instead of strcmp for comparison.
6418 * exec.c (exec_set_section_address): Likewise.
6419 * macrotab.c (macro_lookup_inclusion): Likewise.
6420 (macro_lookup_inclusion): Likewise.
6421 * elfread.c (_initialize_elfread): Likewise.
6422 (elfstab_offset_sections): Likewise.
6423 (elfstab_offset_sections): Use lbasename instead of
6425 * mdebugread.c (parse_partial_symbols): Likewise.
6426 (arse_partial_symbols): Use filename_(n)cmp instead of
6427 str(n)cmp for comparison.
6428 * minsyms.c (lookup_minimal_symbol): Likewise.
6429 * psymtab.c (read_psymtabs_with_filename): Likewise.
6430 * solib.c (solib_read_symbols): Likewise.
6431 (reload_shared_libraries_1): Likewise.
6432 * symmisc.c (maintenance_print_symbols): Likewise.
6433 * symfile.c (separate_debug_file_exists): Likewise.
6434 (reread_symbols): Likewise.
6435 (find_separate_debug_file_by_debuglink): Likewise.
6436 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6437 * source.c (add_path): Likewise.
6438 * symtab.c (filename_seen): Likewise.
6439 (file_matches): Likewise.
6440 (print_symbol_info): Likewise.
6441 (maybe_add_partial_symtab_filename): Likewise.
6442 (make_source_files_completion_list): Likewise.
6443 * xml-syscall.c (init_sysinfo): Likewise.
6444 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6445 IS_DIR_SEPARATOR for checking for trailing path separator.
6447 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6449 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6450 label abort_expression.
6451 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6452 DWARF_VALUE_OPTIMIZED_OUT.
6454 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6457 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6458 to linkage_name. Invert its value. Update the function comment.
6459 (c_type_print_varspec_suffix): Invert it at the caller.
6460 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6462 2011-03-22 Pedro Alves <pedro@codesourcery.com>
6464 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6465 errors when reading the `stop_pc'.
6466 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6469 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6471 * NEWS: Document gdb.Write stream keyword.
6473 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6476 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6477 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6478 (dwarf2_add_field): Fix new_field->accessibility for
6479 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6481 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6485 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6486 other error classes. Do not print stack trace.
6488 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6490 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6491 (dwarf2_add_field): Fix new_field->accessibility for
6492 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6494 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6496 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6497 encountering a load via a non-SP register.
6499 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6501 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6502 field in returned unwinder.
6504 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6508 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6510 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6513 2012-03-18 Pedro Alves <pedro@codesourcery.com>
6515 * frame.c (frame_unwind_register): Throw an error if unwinding the
6517 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6518 an unwind stop reason.
6519 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6520 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6521 UNWIND_UNAVAILABLE>: New.
6522 * inline-frame.c (inline_frame_unwind): Install
6523 default_frame_unwind_stop_reason.
6524 * frame-unwind.c: Include "exceptions.h".
6525 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6526 (default_frame_unwind_stop_reason): New.
6527 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6528 (default_frame_unwind_stop_reason): Declare.
6529 (struct frame_unwind) <stop_reason>: New function pointer.
6531 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6532 * dwarf2-frame.c: Include exceptions.h.
6533 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6534 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6535 computing the CFA. If such an error was thrown, set
6536 unavailable_retaddr.
6537 (dwarf2_frame_unwind_stop_reason): New.
6538 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6540 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6541 (dwarf2_signal_frame_unwind): Ditto.
6543 * amd64-tdep.c: Include "exceptions.h".
6544 (struct amd64_frame_cache): New field "base_p".
6545 (amd64_init_frame_cache): Clear it.
6546 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6547 Avoid reading registers with functions that throw if the register
6548 is not necessary to compute the frame base.
6549 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6550 swallowing NOT_AVAILABLE_ERROR.
6551 (amd64_frame_unwind_stop_reason): New.
6552 (amd64_frame_this_id): Don't build a frame id if the frame base
6554 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6555 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6556 base_p if the frame base was computable.
6557 (amd64_sigtramp_frame_unwind_stop_reason): New.
6558 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6559 frame base was unavailable.
6560 (amd64_sigtramp_frame_unwind): Install
6561 amd64_sigtramp_frame_unwind_stop_reason.
6562 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6563 base_p if the frame base was computable.
6564 (amd64_epilogue_frame_unwind_stop_reason): New.
6565 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6566 frame base was unavailable.
6567 (amd64_epilogue_frame_unwind): Install
6568 amd64_epilogue_frame_unwind_stop_reason.
6569 * i386-tdep.c: Include "exceptions.h".
6570 (struct i386_frame_cache): New field "base_p".
6571 (i386_init_frame_cache): Clear it.
6572 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6573 Avoid reading registers with functions that throw if the register
6574 is not necessary to compute the frame base.
6575 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6576 swallowing NOT_AVAILABLE_ERROR.
6577 (i386_frame_unwind_stop_reason): New.
6578 (i386_frame_this_id): Don't build a frame id if the frame base was
6580 (i386_frame_prev_register): Handle unavailable SP.
6581 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6582 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6583 base_p if the frame base was computable.
6584 (i386_epilogue_frame_unwind_stop_reason): New.
6585 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6586 base was unavailable.
6587 (i386_epilogue_frame_unwind): Install
6588 i386_epilogue_frame_unwind_stop_reason.
6589 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6590 base_p if the frame base was computable.
6591 (i386_sigtramp_frame_unwind_stop_reason): New.
6592 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6593 base was unavailable.
6594 (i386_sigtramp_frame_unwind): Install
6595 i386_sigtramp_frame_unwind_stop_reason.
6596 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6597 type's size, not the register's.
6598 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6600 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6601 default_frame_unwind_stop_reason.
6602 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6603 (alpha_heuristic_frame_unwind): Ditto.
6604 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6605 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6606 * avr-tdep.c (avr_frame_unwind): Ditto.
6607 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6609 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6610 * frv-tdep.c (frv_frame_unwind): Ditto.
6611 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6612 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6613 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6614 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6615 (hppa_stub_frame_unwind): Ditto.
6616 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6617 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6618 (ia64_libunwind_frame_unwind)
6619 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6620 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6621 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6622 * m32c-tdep.c (m32c_unwind): Ditto.
6623 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6624 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6625 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6626 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6627 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6628 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6629 * mep-tdep.c (mep_frame_unwind): Ditto.
6630 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6631 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6632 (mips_stub_frame_unwind): Ditto.
6633 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6634 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6635 * mt-tdep.c (mt_frame_unwind): Ditto.
6636 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6637 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6638 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6639 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6640 (s390_sigtramp_frame_unwind): Ditto.
6641 * score-tdep.c (score_prologue_unwind): Ditto.
6642 * sh-tdep.c (sh_frame_unwind): Ditto.
6643 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6644 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6645 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6646 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6647 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6648 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6649 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6650 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6651 (sparc64obsd_trapframe_unwind): Ditto.
6652 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6653 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6654 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6655 * v850-tdep.c (v850_frame_unwind): Ditto.
6656 * vax-tdep.c (vax_frame_unwind): Ditto.
6657 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6658 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6659 * xtensa-tdep.c (xtensa_unwind): Ditto.
6661 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6663 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6664 there's always a frame. Use get_frame_pc_if_available instead of
6665 get_frame_pc, and if there's no PC available, don't look up a
6668 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6670 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6673 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6675 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6678 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6680 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6681 * frame.c (frame_unwind_caller_pc_if_available): New.
6682 * stack.c (frame_info): Handle unavailable PC.
6684 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6686 * frame.c (frame_unwind_pc): Rename to ...
6687 (frame_unwind_pc_if_available): ... this. New `pc' output
6688 parameter. Change return type to int. Gracefully handle
6689 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6690 happened, or 1 otherwise.
6691 (frame_unwind_pc): Reimplement on top of
6692 frame_unwind_pc_if_available.
6693 (get_frame_func): Rename to ...
6694 (get_frame_func_if_available): New `pc' output parameter. Change
6695 return type to int. Gracefully handle the PC not being available.
6696 (get_frame_func): Reimplement on top of
6697 get_frame_func_if_available.
6698 (select_frame): Handle the PC being unavailable.
6699 (get_prev_frame): Handle the PC being unavailable.
6700 (get_frame_pc_if_available): New.
6701 (get_frame_address_in_block_if_available): New.
6702 (find_frame_sal): Handle the frame PC not being available.
6703 * frame.h (get_frame_pc_if_available): Declare.
6704 (get_frame_address_in_block_if_available): Declare.
6705 (get_frame_func_if_available): Declare.
6706 * stack.c (print_frame_info): Handle the PC being unavailable.
6707 (find_frame_funname): Ditto.
6708 (print_frame): Handle the PC being unavailable.
6709 (get_frame_language): Ditto.
6710 * blockframe.c (get_frame_block): Ditto.
6711 * macroscope.c (default_macro_scope): Ditto.
6712 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6714 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6716 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6717 NOT_AVAILABLE_ERROR when evaluating the location expression.
6719 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6721 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6722 returning that the register piece is unavailable/optimized out.
6723 (write_pieced_value): Handle get_frame_register_bytes returning
6724 that the register piece is unavailable/optimized out when doing a
6725 read-modify write of a bitfield.
6726 * findvar.c (value_from_register): Handle get_frame_register_bytes
6727 returning that the register piece is unavailable/optimized out.
6728 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6729 and `unavailablep'. Throw error on bad debug info. Use
6730 frame_register instead of frame_register_read, to fill in the new
6732 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6734 * valops.c: (value_assign): Adjust, and handle
6735 get_frame_register_bytes failing.
6736 * spu-tdep.c: Include exceptions.h.
6737 (spu_software_single_step): Adjust, and handle
6738 get_frame_register_bytes failing.
6739 (spu_get_longjmp_target): Ditto.
6740 * gdbarch.sh (register_to_value): Change to return int. New
6741 parameters `optimizedp' and `unavailablep'.
6742 * gdbarch.h, gdbarch.c: Regenerate.
6743 * i386-tdep.c (i386_register_to_value): Adjust to new
6744 gdbarch_register_to_value interface.
6745 * i387-tdep.c (i387_register_to_value): Ditto.
6746 * i387-tdep.h (i387_register_to_value): Ditto.
6747 * alpha-tdep.c (alpha_register_to_value): Ditto.
6748 * ia64-tdep.c (ia64_register_to_value): Ditto.
6749 * m68k-tdep.c (m68k_register_to_value): Ditto.
6750 * mips-tdep.c (mips_register_to_value): Ditto.
6751 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6753 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6755 * findvar.c (value_of_register): Mark the value as unavailable, if
6756 the register is unavailable.
6757 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6758 (frame_register): New `unavailablep' parameter.
6759 (frame_register_read): Update comment.
6760 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6761 Set it if the register is unavailable. If the register is
6762 unavailable, clear the output buffer.
6763 (frame_register): New `unavailablep' parameter. Pass it down.
6764 (frame_unwind_register): Adjust.
6765 (put_frame_register): Adjust.
6766 (frame_register_read): Adjust. Also return false if the register
6768 (frame_register_unwind_location): Adjust.
6769 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6770 is unavailable, mark the value accordingly.
6771 * stack.c (frame_info): Handle unavailable registers.
6773 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6775 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6776 simplify, using regcache_cooked_read.
6778 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6780 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6781 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6782 (regcache_raw_read_unsigned, regcache_raw_read_part)
6783 (regcache_cooked_read, regcache_cooked_read_signed)
6784 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6785 (regcache_cooked_read_ftype): Change return to enum
6787 * regcache.c: Include exceptions.h
6788 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6789 (do_cooked_read): Change return to enum register_status. Always
6790 forward to regcache_cooked_read.
6791 (regcache_raw_read): Change return to enum register_status. If
6792 the register is not REG_VALID, memset the buffer. Return the
6794 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6795 return the register's status.
6796 (regcache_raw_read_unsigned): Ditto.
6797 (regcache_cooked_read): Change return to enum register_status.
6798 Assert that with read-only regcaches, the register's status must
6799 be known. If the regcache is read-only, and the register is not
6800 REG_VALID, memset the buffer. Return the register's status.
6801 (regcache_cooked_read_signed): Change return to enum
6802 register_status. Handle non-REG_VALID registers and return the
6804 (regcache_cooked_read_unsigned): Change return to enum
6805 register_status. Handle non-REG_VALID registers and return the
6807 (regcache_xfer_part, regcache_raw_read_part)
6808 (regcache_cooked_read_part): Change return to enum
6809 register_status. Return the register's status.
6810 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6812 (regcache_dump): Handle unavailable cooked registers.
6813 * frame.c (do_frame_register_read): Adjust interface to match
6814 regcache_cooked_read_ftype.
6815 * gdbarch.sh (pseudo_register_read): Change return to enum
6817 * gdbarch.h, gdbarch.c: Regenerate.
6819 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6821 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6822 register_status. If reading a raw register indicates the raw
6823 register is not valid, return the raw register's status,
6824 otherwise, return REG_VALID.
6825 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6826 register_status. Handle non-REG_VALID raw registers and return
6827 the register's status.
6828 * arm-tdep.c (arm_neon_quad_read)
6829 (arm_pseudo_read): Change return to enum register_status. Handle
6830 non-REG_VALID raw registers and return the register's status.
6831 * avr-tdep.c (avr_pseudo_register_read): Ditto.
6832 * frv-tdep.c (frv_pseudo_register_read): Ditto.
6833 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6834 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6835 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6837 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6838 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6839 (m32c_part_write, m32c_cat_read, m32c_cat_write)
6840 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6841 (m32c_pseudo_register_read): Change return to enum
6842 register_status. Adjust.
6843 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6844 enum register_status. Return the register's status.
6845 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6846 register_status. Return the register's status.
6847 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6848 * mips-tdep.c (mips_pseudo_register_read): Ditto.
6849 * mt-tdep.c (mt_pseudo_register_read): Ditto.
6850 * rs6000-tdep.c (move_ev_register_func): New typedef.
6851 (e500_move_ev_register): Use it. Change return to enum
6852 register_status. Return the register's status.
6853 (do_regcache_raw_read): New function.
6854 (do_regcache_raw_write): New function.
6855 (e500_pseudo_register_read): Change return to enum
6856 register_status. Return the register's status. Use
6857 do_regcache_raw_read.
6858 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
6859 (dfp_pseudo_register_read): Change return to enum register_status.
6860 Return the register's status.
6861 (vsx_pseudo_register_read): Ditto.
6862 (efpr_pseudo_register_read): Ditto.
6863 (rs6000_pseudo_register_read): Ditto.
6864 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
6865 register_status. Return the register's status.
6866 * sh64-tdep.c (pseudo_register_read_portions): New function.
6867 (sh64_pseudo_register_read): Change return to enum
6868 register_status. Use pseudo_register_read_portions. Return the
6870 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
6871 register_status. Return the register's status.
6872 * sh-tdep.c (pseudo_register_read_portions): New function.
6873 (sh_pseudo_register_read): Change return to enum register_status.
6874 Use pseudo_register_read_portions. Return the register's status.
6875 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
6876 enum register_status. Return the register's status.
6877 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
6878 * spu-tdep.c (spu_pseudo_register_read_spu)
6879 (spu_pseudo_register_read): Ditto.
6880 * xtensa-tdep.c (xtensa_register_read_masked)
6881 (xtensa_pseudo_register_read): Ditto.
6882 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
6884 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6886 * python/py-value.c (valpy_getitem): Fix formatting of error function
6889 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6891 ARI fixes: Add missing internationalization markups throughout
6893 * darwin-nat-info.c: Ditto.
6896 * mi/mi-main.c: Ditto.
6898 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6900 ARI fixes: Add missing internationalization markups throughout
6903 * cp-name-parser.y: Ditto.
6906 * objc-exp.y: Ditto.
6909 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6911 ARI fixes: Messages should have no trailing new lines.
6912 * darwin-nat.c (mach_check_error): Remove trailing new line from
6913 warning function call message.
6914 * record.c (bfdcore_read): Idem for error call.
6916 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6918 * common/signals.c (target_signal_from_host): Add _ markup to error
6919 function call message.
6920 (target_signal_to_host): Add _ markup and remove trailing new line
6921 from warning call message.
6922 (target_signal_from_command): Add _ markup to error function call
6925 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
6929 * python/python.c (gdbpy_write): Accept a stream argument and
6930 operate to the appropriate stream.
6931 (gdbpy_flush): Likewise.
6932 (_initialize_python): Add stream constants.
6933 (finish_python_initialization): Add GdbOutputErrorFile class.
6935 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6937 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6939 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6941 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
6942 to store_signed_integer. Add debug message when relocating CALL
6943 instructions. Fix formatting of debug message.
6944 * i386-tdep.c (i386_relocate_instruction): Ditto.
6946 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6948 * target.h (struct target_ops): Remove to_lookup_symbol field.
6949 (target_lookup_symbol): Delete macro.
6950 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
6951 (update_current_target, setup_target_debug): Remove handling
6952 of to_lookup_symbol target_ops field.
6953 * ada-tasks.c (get_known_tasks_addr): Remove use of
6954 target_lookup_symbol.
6955 * coffread.c (coff_symtab_read): Likewise.
6956 * dbxread.c (read_dbx_symtab): Ditto.
6958 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6961 * configure.ac: Add getthrds declaration check.
6962 * configure, config.in: Regenerate.
6963 * aix-thread.c (getthrds): Declare only if not already declared
6964 in procinfo.h. More declaration out of get_signaled_thread to
6967 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
6969 * python/py-symtab.c: Populate symtab_object_methods,
6971 (stpy_is_valid): New function.
6972 (salpy_is_valid): Ditto.
6973 * python/py-symbol.c: Declare symbol_object_methods. Populate.
6974 (sympy_is_valid): New function.
6975 * python/py-objfile.c: Declare objfile_object_methods. Populate.
6976 (objfpy_is_valid): New function.
6977 * python/py-inferior.c: Populate inferior_object_methods.
6978 (infpy_is_valid): New function.
6979 * python/py-infthread.c: Populate thread_object_methods.
6980 (thpy_is_valid): New function.
6981 * python/py-block.c: Declare block_object_methods. Populate. Declare
6982 block_iterator_object_methods. Populate.
6983 (blpy_is_valid): New function.
6984 (blpy_iter_is_valid): Ditto.
6986 2011-03-16 Keith Seitz <keiths@redhat.com>
6988 * linespec.c (find_methods): Canonicalize NAME before looking
6990 (name_end): New function.
6991 (keep_name_info): New function.
6992 (decode_line_1): Use keep_name_info.
6993 (decode_compound): Likewise.
6994 * cli/cli-utils.h (remove_trailing_whitespace): New function.
6995 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
6998 * linespec.c (locate_first_half): Keep overload information, too.
6999 (decode_compound): Use a string to represent break characters
7001 If P points to a break character, do not increment it.
7002 For C++ and Java, keep overload information and relevant keywords.
7003 If we cannot find a symbol, search the minimal symbols.
7006 * linespec.c (decode_compound): Rename SAVED_ARG to
7008 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7010 Pass a valid block to lookup_symbol.
7011 (lookup_prefix_sym): Likewise.
7012 (find_method): Construct search name based on SYM_CLASS instead
7014 * psymtab.c (lookup_partial_symbol): Add language parameter.
7015 (lookup_symbol_aux_psymtabs): Likewise.
7016 Don't assume that the psymtab we found was the right one. Search
7017 for the desired symbol in the symtab to be certain.
7018 (psymtab_search_name): New function.
7019 (lookup_partial_symbol): Use psymtab_search_name.
7020 Add language parameter.
7021 (read_symtabs_for_function): Add language parameter and pass to
7022 lookup_partial_symbol.
7023 (find_symbol_file_from_partial): Likewise.
7025 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7028 * dwarf2read.c (noop_record_line): New function.
7029 (dwarf_decode_lines): Ignore line tables for GCd functions.
7031 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7033 Fix ARI warnings about new lines at the end of messages, which
7034 are unneeded as there is a new line added at the end of the message
7036 * darwin-nat.c (darwin_stop_inferior): Ditto.
7037 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7038 * dfp.c (decimal_to_number): Ditto.
7039 * exec.c (print_section_info): Ditto.
7040 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7041 * osdata.c (get_osdata): Ditto.
7042 * record.c (bfdcore_write): Ditto.
7043 * remote-mips.c (mips_readchar): Ditto.
7044 * remote.c (read_ptid): Ditto.
7045 * ser-mingw.c (ser_windows_raw): Ditto.
7046 * tracepoint.c (add_local_symbols): Ditto.
7047 * windows-nat.c (fake_create_process): Ditto.
7049 2011-03-16 Tom Tromey <tromey@redhat.com>
7051 * tracepoint.c (stop_tracing): Don't declare.
7052 * event-top.c (after_char_processing_hook): Add `(void)'.
7054 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7056 * NEWS: Add Parameter sub-classing description.
7058 2011-03-16 Kai Tietz <ktietz@redhat.com>
7060 * MAINTAINERS: Update my e-mail address.
7062 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7064 * MAINTAINERS: Add myself for write after approval privileges.
7066 2011-03-15 Michael Snyder <msnyder@vmware.com>
7068 * frame.c (find_frame_sal): Assert sym is not null.
7070 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7072 * objc-lang.c (selectors_info): Check strchr for null result.
7074 * stabsread.c (define_symbol): Guard against bad stabstring input.
7076 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7078 Remove trailing spaces and tabulations from pascal language
7083 p-valprint.c: Ditto.
7085 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7087 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7088 than LOW. Comment it.
7089 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7090 HIGHPC not strictly higher than LOWPC.
7092 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7094 Fix formatting of function declarations returning a pointer in
7096 * varobj.c (varobj_add_child): Ditto.
7097 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7098 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7100 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7103 for the "generic" vector ABI used with GCC 4.3 and later.
7104 (ppc64_sysv_abi_return_value): Likewise.
7106 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7108 * infcall.c (call_function_by_hand): Function return value is
7109 always a non_lval, even when using struct_return.
7111 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7113 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7114 (map_display_numbers): New.
7115 (do_delete_display): New.
7116 (undisplay_command): Use map_display_numbers.
7117 (do_enable_disable_display): New.
7118 (enable_disable_display_command): New function.
7119 (enable_display): Delete.
7120 (enable_display_command): New.
7121 (disable_display_command): Reimplement.
7122 (_initialize_printcmd): Adjust "enable display" command to use
7123 `enable_display_command' as callback.
7125 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7127 * NEWS: Add Python breakpoint 'stop' operation.
7129 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7131 * NEWS: Delete duplicate entry. Fix typo.
7133 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7135 Fix ARI warning about function names in first column.
7136 Put prototype declaration on same line as return type.
7137 * objc-exp.y: Ditto.
7139 * python/py-stopevent.h: Ditto.
7140 For long function names, split parameters to
7141 allow function name on same line as return type.
7142 * solib-pa64.c: Ditto.
7145 For long function declaration, use single line.
7146 * hppa-tdep.h: Ditto.
7147 * inferior.h: Ditto.
7149 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7151 * python/python.h: Declare gdbpy_should_stop and
7152 gdbpy_breakpoint_has_py_cond.
7153 * python/python.c: Add python.h to includes. Remove python.h from
7154 HAVE_PYTHON definition
7155 (gdbpy_should_stop): New dummy function.
7156 (gdbpy_breakpoint_has_py_cond): New dummy function.
7157 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7158 sub-classing capabilities.
7159 (gdbpy_should_stop): New function.
7160 (gdbpy_breakpoint_has_py_cond): New function.
7161 (local_setattro): New function.
7162 * breakpoint.c (condition_command): Add check for Python 'stop'
7164 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7165 operation function as part of stop/continue tests.
7167 2011-03-14 Tom Tromey <tromey@redhat.com>
7170 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7171 (needs_frame_dwarf_call): Likewise.
7173 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7175 Fix ARI warning about functions without parameters that do not
7177 * breakpoint.c (all_tracepoints): Replace () by (void).
7178 * f-exp.y (match_string_literal): Ditto.
7180 * m2-exp.y (yylex): Ditto.
7181 * mep-tdep.c (current_me_module): Ditto.
7182 (current_options): Ditto.
7183 (current_cop_data_bus_width): Ditto.
7184 (current_cr_names): Ditto.
7185 (current_cr_is_float): Ditto.
7186 (current_ccr_names): Ditto.
7187 * objc-exp.y (yylex): Ditto.
7188 * p-exp.y (yylex): Ditto.
7189 * remote.c (send_interrupt_sequence): Ditto.
7190 * tracepoint.c (current_trace_status): Ditto.
7191 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7192 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7194 2011-03-11 Michael Snyder <msnyder@vmware.com>
7196 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7197 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7198 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7199 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7200 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7202 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7203 (delete_async_event_handler): Ditto.
7205 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7207 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7209 * top.c (set_verbose): Assert showcmd was found.
7211 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7213 * xtensa-tdep.c (warning_once): Correct style issues.
7215 2011-03-11 Yao Qi <yao@codesourcery.com>
7217 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7219 2011-03-11 Andreas Schwab <schwab@redhat.com>
7221 * common/aclocal.m4: Remove.
7223 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7225 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7226 (xtensa_write_register, xtensa_read_register): Likewise.
7227 (xtensa_hextochar): Removed.
7228 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7230 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7232 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7233 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7234 (xtensa_alloc_frame_cache): Add initialization for new fields.
7235 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7236 (warning_once): New function.
7237 (xtensa_insn_kind): New item c0opc_and.
7238 (call0_classify_opcode): Add the case for AND instruction.
7239 (call0_track_op): Change arguments. New local variable litbase.
7240 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7241 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7243 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7244 (call0_analyze_prologue): Update the comments. Change arguments.
7245 Add the variety of updates to handle extended prologues, which now can
7246 conduct dynamic stack adjustments.
7247 (call0_frame_cache): Likewise.
7248 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7249 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7251 2011-03-10 Michael Snyder <msnyder@vmware.com>
7253 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7254 (cmd_qtframe): Ditto.
7255 (cmd_qtbuffer): Ditto.
7256 (cmd_bigqtbuffer): Ditto.
7258 2011-03-10 Tom Tromey <tromey@redhat.com>
7260 * tracepoint.c (trace_actions_command): Update.
7261 * thread.c (thread_apply_command): Update.
7262 * reverse.c (delete_bookmark_command): Update.
7263 (bookmarks_info): Update.
7264 * printcmd.c (undisplay_command): Update.
7265 * memattr.c (mem_enable_command): Update.
7266 (mem_disable_command): Update.
7267 (mem_delete_command): Update.
7268 * inferior.c (detach_inferior_command): Update.
7269 (kill_inferior_command): Update.
7270 (remove_inferior_command): Update.
7271 * cli/cli-utils.h (struct get_number_or_range_state): New.
7272 (init_number_or_range): Declare.
7273 (get_number_or_range): Update.
7274 * cli/cli-utils.c (init_number_or_range): New function.
7275 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7277 (number_is_in_list): Update.
7278 * breakpoint.h (get_tracepoint_by_number): Update.
7279 * breakpoint.c (map_breakpoint_numbers): Update for change to
7280 get_number_or_range.
7281 (find_location_by_number): Use get_number, not
7282 get_number_or_range.
7283 (trace_pass_set_count): New function.
7284 (trace_pass_command): Update for change to get_number_or_range.
7286 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7289 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7291 * python/py-param.c (add_setshow_generic): Add set/show callback
7292 parameters. Register Python object context.
7293 (get_show_value): New function.
7294 (get_set_value): New function.
7295 (call_doc_function): New function.
7296 (get_doc_string): Move behind get_show_value/get_set_value.
7298 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7300 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7302 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7304 * xtensa-tdep.c (xtensa_read_register): Add comment.
7305 (xtensa_write_register): Likewise.
7306 (xtensa_hextochar): Add comment and update to match coding conventions.
7307 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7308 (execute_l32e, execute_s32e, execute_code): Update comments.
7309 (xtensa_exception_handler_t): Update to match coding conventions.
7310 (xtensa_insn_kind): Likewise.
7312 2011-03-09 Michael Snyder <msnyder@vmware.com>
7314 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7316 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7318 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7320 2011-03-09 Tom Tromey <tromey@redhat.com>
7322 * thread.c (restore_selected_frame): Handle frame_level == -1.
7323 (make_cleanup_restore_current_thread): Use
7324 get_selected_frame_if_set.
7325 * frame.h (get_selected_frame_if_set): Declare.
7326 * frame.c (get_selected_frame_if_set): New function.
7328 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7330 * cli/cli-cmds.c (shell_escape): Use lbasename.
7331 * coffread.c (coff_start_symtab): Constify parameter.
7332 (complete_symtab): Constify `name' parameter.
7333 (coff_symtab_read): Constify `filestring' local.
7334 (coff_getfilename): Constify return and `result' local.
7336 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7337 * linux-fork.c (info_checkpoints_command): Use lbasename.
7338 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7339 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7340 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7341 * procfs.c (procfs_make_note_section): Use lbasename.
7342 * tui/tui-io.c (printable_part): Constity return and parameter.
7344 (print_filename): Constify parameters, and local `s'.
7345 (tui_rl_display_match_list): Constify local `temp'.
7347 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7350 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7351 Fix DWARF-3+ DW_AT_accessibility default assumption.
7352 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7353 cu->header.version >= 3.
7355 2011-03-09 Yao Qi <yao@codesourcery.com>
7357 * common/Makefile.in: Remove.
7358 * common/configure: Remove.
7359 * common/configure.ac: Remove.
7361 2011-03-09 Yao Qi <yao@codesourcery.com>
7364 2011-02-11 Yao Qi <yao@codesourcery.com>
7366 * common/Makefile.in: Add copyright header.
7368 2011-02-11 Yao Qi <yao@codesourcery.com>
7370 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7372 * configure.ac: Add common to sub dir.
7373 * configure: Regenerate.
7375 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7377 * xtensa-tdep.c (call0_ret): New function.
7378 (xtensa_skip_prologue): Speed up analysis.
7380 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7382 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7383 while executing MI command -data-list-changed-registers.
7385 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7387 * xtensa-tdep.c (xtensa_read_register): New function.
7388 (xtensa_write_register): New function.
7389 (xtensa_find_register_by_name): New function.
7390 (xtensa_windowed_frame_cache): Update comments in type description.
7391 (xtensa_frame_cache): Likewise.
7392 (xtensa_window_interrupt_insn): New function.
7393 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7394 (xtensa_insn_kind): Add new instructions.
7395 (rwx_special_register): New function.
7396 (call0_classify_opcode): Add new instructions to the analysis.
7397 (a0_saved, a7_saved, a11_saved): New variables.
7398 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7399 (execute_l32e): New function.
7400 (execute_s32e): New function.
7401 (xtensa_exception_handler_t): New type.
7402 (execute_code): New function.
7403 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7404 analysis for Xtensa Window Exception handlers.
7406 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7408 * xtensa-tdep.c (TX_PS): New.
7409 (windowing_enabled): Update to count for Call0 ABI.
7410 (xtensa_hextochar): New.
7411 (xtensa_init_reggroups): Make algorithm generic.
7412 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7414 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7416 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
7418 2011-03-08 Michael Snyder <msnyder@vmware.com>
7420 * i386-tdep.c (i386_follow_jump): Check return value of
7422 (i386_analyze_struct_return): Ditto.
7423 (i386_skip_probe): Ditto.
7424 (i386_match_insn): Ditto.
7425 (i386_skip_noop): Ditto.
7426 (i386_analyze_frame_setup): Ditto.
7427 (i386_analyze_register_saves): Ditto.
7428 (i386_skip_prologue): Ditto.
7429 (i386_skip_main_prologue): Ditto.
7431 * target.c (read_whatever_is_readable): Fix memory leak.
7433 * i386-tdep.c (i386_process_record): Document fall through.
7435 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7437 Fix DWARF-3+ DW_AT_accessibility default assumption.
7438 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7439 cu->header.version >= 3.
7441 2011-03-08 Pedro Alves <pedro@codesourcery.com>
7443 * remote.c (remote_check_symbols): Skip if the target has no
7446 2011-03-08 Joel Brobecker <brobecker@adacore.com>
7448 * target.c (read_whatever_is_readable): Reformat comment,
7449 with a minor typo fix. Minor reformatting of the code.
7451 2011-03-08 Yao Qi <yao@codesourcery.com>
7453 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7454 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7455 Use cached result instead of calling displaced_in_arm_mode again.
7456 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7457 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7458 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7459 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7460 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7461 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7462 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7463 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7464 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7465 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7466 (arm_catch_kernel_helper_return): Likewise.
7467 * gdb/arm-tdep.h : Update function declarations.
7469 2011-03-07 Michael Snyder <msnyder@vmware.com>
7471 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7473 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7475 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7477 * elfread.c (elf_symtab_read): Stop memory leak.
7479 * main.c (captured_main): Fix memory leak.
7481 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7483 * ada-lang.c (compare_names): Call is_name_suffix with string1
7486 2011-03-07 Tom Tromey <tromey@redhat.com>
7488 * xcoffread.c (xcoff_sym_fns): Update.
7489 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7490 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7491 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7492 (symbol_file_add_with_addrs_or_offsets): Likewise.
7493 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7494 * somread.c (som_sym_fns): Update.
7495 * psymtab.h (require_partial_symbols): Declare.
7496 * psymtab.c (require_partial_symbols): New function.
7497 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7498 (ALL_OBJFILE_PSYMTABS): Undef.
7499 (ALL_PSYMTABS): Move from psympriv.h.
7500 (lookup_partial_symtab, find_pc_sect_psymtab)
7501 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7502 (find_last_source_symtab_from_partial)
7503 (forget_cached_source_info_partial)
7504 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7505 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7506 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7507 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7508 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7509 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7510 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7511 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7512 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7514 * mipsread.c (ecoff_sym_fns): Update.
7515 * machoread.c (macho_sym_fns): Update.
7516 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7517 (read_psyms): New function.
7518 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7519 (elf_sym_fns_lazy_psyms): New global.
7520 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7521 dwarf2_build_psymtabs.
7522 * dbxread.c (aout_sym_fns): Update.
7523 * coffread.c (coff_sym_fns): Update.
7525 2011-03-07 Tom Tromey <tromey@redhat.com>
7527 * infrun.c (print_exited_reason): Include inferior id and pid in
7530 2011-03-07 Tom Tromey <tromey@redhat.com>
7532 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7534 (target_has_execution_1): Update.
7535 (target_has_execution_current): Declare.
7536 (target_has_execution): Call target_has_execution_current.
7537 (default_child_has_execution): Update.
7538 * target.c (default_child_has_execution): Add 'the_ptid'
7540 (target_has_execution_1): Likewise.
7541 (target_has_execution_current): New function.
7542 (add_target): Update.
7543 (init_dummy_target): Update.
7544 * remote-m32r-sdi.c (m32r_has_execution): New function.
7545 (init_m32r_ops): Use it.
7546 * record.c (record_core_has_execution): Now static. Add
7547 'the_ptid' parameter.
7548 * inferior.c (have_live_inferiors): Don't save current thread.
7549 Use target_has_execution_1.
7551 2011-03-07 Yao Qi <yao@codesourcery.com>
7553 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7555 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7557 * elfread.c (elf_symtab_read): Minor reformatting.
7559 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7561 * objc-lang.c (selectors_info): Minor reformatting.
7563 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7565 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7567 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7568 Michael Snyder <msnyder@vmware.com>
7570 * ada-valprint.c (ada_val_print_array): Move the declaration of
7571 "byte_order" and "elttype" inside the block where these variables
7572 are actually used. Remove some special handling for the case
7573 where "elttype" and "eltlen" are null. Replace by a comment
7574 and a couple of assertion checks.
7576 2011-03-05 Michael Snyder <msnyder@vmware.com>
7578 * source.c (add_path): Replace semicolon at end of block.
7579 * dwarf2expr.c (execute_stack_op): Ditto.
7581 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7583 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7584 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7585 (bfin-*-*): Likewise.
7587 2011-03-05 Michael Snyder <msnyder@vmware.com>
7589 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7590 * mdebugread.c (parse_symbol): Ditto.
7591 * parse.c (parse_exp_in_context): Ditto.
7592 * source.c (add_path): Ditto.
7593 * utils.c (gnu_debuglink_crc32): Ditto.
7594 * varobj.c (variable_language): Ditto.
7596 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7598 2011-03-04 Michael Snyder <msnyder@vmware.com>
7600 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7602 * symfile.c (simple_overlay_update): Check for null return value
7603 from lookup_minimal_symbol.
7605 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7607 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7609 * eval.c (parse_and_eval_address_1): Remove function.
7610 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7611 instead of parse_and_eval_address_1.
7612 * value.h (parse_and_eval_address_1): Remove prototype.
7614 2011-03-04 Michael Snyder <msnyder@vmware.com>
7616 * remote.c (putpkt_binary): Document that case stmt falls through.
7618 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7620 * breakpointc (print_it_typical): Move NULL check from here...
7621 (print_bp_stop_message): ... to here.
7623 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7625 * breakpoint.c (enable_command): Use break instead of continue,
7626 and fill in a missing break.
7627 (disable_command): Ditto.
7629 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7631 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7632 (terminal_save_ours): Remove misleading comment.
7633 (inflow_inferior_data_cleanup): Free ttystate.
7634 (inflow_inferior_exit): Likewise.
7635 (copy_terminal_info): Copy ttystate.
7637 * serial.c (serial_copy_tty_state): New function.
7638 * serial.h (serial_copy_tty_state): Add prototype.
7639 (struct serial_ops): Add copy_tty_state callback.
7640 * ser-base.c (ser_base_copy_tty_state): New function.
7641 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7642 * ser-go32.c (dos_copy_tty_state): New function.
7643 (dos_ops): Install copy_tty_state callback.
7644 * ser-mingw.c (_initialize_ser_windows): Likewise.
7645 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7646 * ser-unix.c (hardwire_copy_tty_state): New function.
7647 (_initialize_ser_hardwire): Install it.
7649 2011-03-04 Michael Snyder <msnyder@vmware.com>
7651 * breakpoint.c (create_breakpoint): Add missing break statement.
7653 Reverting this patch:
7654 * infcall.c (call_function_by_hand): Add break statements for lint.
7656 Reverting this patch:
7657 * cli/cli-script.c (script_from_file): Add break for lint.
7659 2011-03-04 Michael Snyder <msnyder@vmware.com>
7661 * solib.c (reload_shared_libraries_1): Close memory leak.
7663 2011-03-03 Tom Tromey <tromey@redhat.com>
7666 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7669 2011-03-03 Michael Snyder <msnyder@vmware.com>
7671 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7672 fields of struct 'st' to zero.
7674 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7675 sal.pspace before calling set_current_source_symtab_and_line.
7677 2011-03-03 Yao Qi <yao@codesourcery.com>
7679 * Makefile.in (configure-common): Remove. Let Makefile
7680 in dir common to rebuild itself.
7681 (common/Makefile): Likewise.
7683 2011-03-03 Joel Brobecker <brobecker@adacore.com>
7685 * utils.c (parse_escape): Add i18n markup in error message.
7687 2011-03-03 Yao Qi <yao@codesourcery.com>
7689 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7691 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7692 (displaced_write_reg, displaced_read_reg): Likewise.
7693 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7694 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7695 (cleanup_branch): Replace magic number 14 and 15 with
7696 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7698 2011-03-02 Michael Snyder <msnyder@vmware.com>
7700 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7702 * cli/cli-script.c (script_from_file): Add break for lint.
7704 * mdebugread.c (parse_partial_symbols): Fix indent.
7706 * target-descriptions.c (tdesc_gdb_type): No need to call
7707 xstrdup, callee saves a copy.
7709 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7711 * infcall.c (call_function_by_hand): Add break statements for lint.
7713 * utils.c (parse_escape): Escape the escape char.
7715 * python/py-inferior.c (build_inferior_list): Error out if
7716 PyList_Append fails.
7717 (gdbpy_inferiors): Error out if build_inferior_list fails.
7719 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7722 * record.c (record_restore): Move printf to before error return.
7724 2011-03-02 Yao Qi <yao@codesourcery.com>
7726 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7727 is_thumb and insn_size.
7728 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7729 on both ARM and Thumb mode.
7730 (arm_process_displaced_insn): Set is_thumb and insn_size.
7731 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7732 (arm_displaced_step_fixup): Likewise.
7734 2011-03-01 Michael Snyder <msnyder@vmware.com>
7736 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7738 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7740 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7742 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7744 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7747 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7748 which shadows function parameter.
7750 * tracepoint.c (create_tsv_from_upload): Superfluous call
7751 to xstrdup. Callee already calls xstrdup.
7753 * linespec.c (decode_line_1): Remove unnecessary null check.
7755 * tracepoint.c (scope_info): Fix mem leak, remove underused
7758 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7759 superfluous null check.
7761 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
7762 (value_of_builtin_frame_fp_reg): Ditto.
7764 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7766 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7769 * linespec.c (decode_line_1): Check for null before dereference.
7771 * reverse.c (record_restore): Move null-check to before pointer
7774 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7776 * objc-lang.c (selectors_info): Add explanitory comment.
7777 (classes_info): Ditto.
7779 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7781 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7782 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7783 versions of the trampoline. Handle Thumb vs. ARM addresses.
7784 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7785 (arm_linux_init_abi): Install it.
7786 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7787 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7789 2011-02-28 Michael Snyder <msnyder@vmware.com>
7791 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7792 a little bigger, to avoid possibility of an overflow.
7794 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7795 buffers a little bigger, to avoid possibility of an overflow.
7797 * coffread.c (coff_getfilename): Add check to avoid overflow.
7799 * objc-lang.c (selectors_info): Add a small safety margin to
7801 (classes_info): Error out on too long REGEXP.
7803 * infrun.c (handle_inferior_event): Remove unused function call.
7805 * fork-child.c (fork_inferior): Remove ifdef'd code and
7808 * linux-thread-db.c (attach_thread): Discard unused value.
7810 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7812 * remote.c (remote_get_noisy_reply): Discard unused value.
7813 (remote_vcont_resume): Ditto.
7814 (remote_stop_ns): Ditto.
7816 * linespec.c (decode_objc): Delete unused variable.
7818 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7820 * dwarf2read.c (add_partial_symbol): Discard unused values.
7821 (read_base_type): Delete unused variable.
7823 * dbxread.c (read_dbx_symtab): Discard unused value.
7825 * eval.c (evaluate_subexp_standard): Delete unused variable,
7826 and discard unused values.
7828 * infcmd.c (_initialize_infcmd): Discard unused values.
7830 * stabsread.c (rs6000_builtin_type): Missing break statement.
7832 * dbxread.c (process_one_symbol): Discard unused value.
7834 * coffread.c (coff_end_symtab): Delete unused variable.
7836 * dwarf2read.c (dw2_get_file_names): Discard unused value.
7837 (dwarf2_add_typedef): Delete unused variable.
7838 (read_namespace): Ditto.
7839 (dwarf_decode_macros): Ditto.
7841 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7843 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7845 * p-valprint.c (pascal_val_print): Discard unused value.
7847 * utils.c (nquery): Call va_end before return;
7851 * proc-service.c (ps_plog): Call va_end before return.
7853 2011-02-28 Tom Tromey <tromey@redhat.com>
7855 * python/python.c (gdbpy_value_cst): New global.
7856 (_initialize_python): Initialize it.
7857 * python/python-internal.h (gdbpy_value_cst): Declare.
7858 * python/py-value.c (convert_value_from_python): Use
7861 2011-02-28 Michael Snyder <msnyder@vmware.com>
7863 * python/py-cmd.c (cmdpy_init): Fix memory leak.
7865 * breakpoint.c (catch_syscall_completer): Free malloced list.
7867 * jv-lang.c (java_primitive_type_from_name): Add missing break.
7869 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
7870 (lval_func_check_synthetic_pointer): Ditto.
7871 (lval_func_free_closure): Fix use-after-free.
7873 2011-02-28 Tom Tromey <tromey@redhat.com>
7875 * psymtab.c (expand_partial_symbol_tables): Use
7876 ALL_OBJFILE_PSYMTABS.
7878 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7880 * objc-lang.c (selectors_info): Error on too long REGEXP.
7882 2011-02-28 Michael Snyder <msnyder@vmware.com>
7884 * python/py-param.c (set_parameter_value): Add missing
7887 * linux-record.c (record_linux_system_call): Add missing
7890 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7892 * breakpoint.c (print_one_breakpoint_location): Remove unused
7893 argument PRINT_ADDRESS_BITS. Update callers.
7894 (print_one_breakpoint): Likewise.
7896 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7898 * breakpoint.c (wrap_indent_at_field): New function.
7899 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
7900 Allocate ui_stream locally instead of using STB argument.
7901 (print_one_breakpoint_location): Update call.
7902 * ui-out.c (ui_out_query_field): New function.
7903 * ui-out.h (ui_out_query_field): Add prototype.
7905 2011-02-28 Joel Brobecker <brobecker@adacore.com>
7907 From Michael Snyder <msnyder@vmware.com>
7908 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
7910 2011-02-27 Michael Snyder <msnyder@vmware.com>
7912 * objc-lang.c (selectors_info): Prevent string overrun.
7914 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
7917 * symtab.c (rbreak_command): Move variable 'file_name' to
7920 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
7921 param with a local variable of the same name.
7923 2011-02-27 Michael Snyder <msnyder@vmware.com>
7925 * value.c (value_from_history_ref): New function.
7926 * value.h (value_from_history_ref): Export.
7927 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
7928 to parse value history references.
7929 * cli/cli-utils.h (get_number_trailer): Update comment.
7931 2011-02-27 Michael Snyder <msnyder@vmware.com>
7933 * inferior.c (detach_inferior_command): Use get_number_or_range.
7934 (kill_inferior_command): Ditto.
7935 (remove_inferior_command): Ditto.
7936 (initialize_inferiors): Make command names plural.
7937 Update help strings.
7939 2011-02-27 Michael Snyder <msnyder@vmware.com>
7941 * darwin-nat-info.c: Fix comment typo.
7942 * dwarf2expr.h: Ditto.
7943 * fbsd-nat.c: Ditto.
7944 * fbsd-nat.h: Ditto.
7945 * frame-unwind.h: Ditto.
7947 * hppa-hpux-tdep.c: Ditto.
7948 * i386-linux-nat.c: Ditto.
7949 * linux-nat.c: Ditto.
7950 * nbsd-nat.c: Ditto.
7951 * nbsd-nat.h: Ditto.
7952 * ppc-linux-tdep.c: Ditto.
7955 * tui/tui-winsource.c: Ditto.
7957 2011-02-26 Michael Snyder <msnyder@vmware.com>
7959 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
7961 * maint.c (maintenance_do_deprecate): Plug a memory leak.
7963 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
7964 with a local variable of the same name.
7966 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
7967 param with a local variable of the same name.
7968 (i387_supply_xsave): Ditto.
7970 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
7971 that it does not shadow a function parameter.
7973 * i386-nat.c (i386_length_and_rw_bits): Document that case
7974 statement is meant to fall through.
7976 * expprint.c (dump_subexp_body_standard): Document that case
7977 statement is meant to fall through.
7979 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
7980 dead if statement. Condition can't be false.
7982 2011-02-25 Michael Snyder <msnyder@vmware.com>
7984 * arm-tdep.c: Fix typos in comments.
7985 * bsd-uthread.c: Ditto.
7986 * completer.c: Ditto.
7988 * cp-namespace.c: Ditto.
7989 * cp-support.c: Ditto.
7990 * cris-tdep.c: Ditto.
7992 * dwarf2read.c: Ditto.
7994 * gdbtypes.h: Ditto.
7995 * inferior.h: Ditto.
7996 * mdebugread.c: Ditto.
7997 * mips-tdep.c: Ditto.
7998 * ppc-linux-nat.c: Ditto.
7999 * ppc-linux-tdep.c: Ditto.
8000 * printcmd.c: Ditto.
8001 * sol-thread.c: Ditto.
8002 * solib-frv.c: Ditto.
8004 * sparc64-tdep.c: Ditto.
8005 * spu-tdep.c: Ditto.
8006 * stabsread.c: Ditto.
8011 * python/py-block.c: Ditto.
8012 * python/py-symbol.c: Ditto.
8013 * python/py-symtab.c: Ditto.
8014 * python/py-value.c: Ditto.
8015 * tui/tui-win.c: Ditto.
8017 2011-02-25 Michael Snyder <msnyder@vmware.com>
8019 * inferior.c (print_inferior): Accept a string instead of an int
8020 for requested_inferiors, and use get_number_or_range to parse it.
8021 (info_inferiors_command): Pass args string to print_inferior.
8022 (initialize_inferiors): Change help string for info inferiors.
8023 * inferior.h (print_inferior): Export prototype change.
8025 2011-02-25 Tom Tromey <tromey@redhat.com>
8027 * common/ax.def (invalid2): Set to 0x31.
8029 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8031 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8033 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8035 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8037 2011-02-24 Michael Snyder <msnyder@vmware.com>
8039 * Makefile.in (clean): Make clean should remove generated files
8040 observer.h and observer.inc.
8042 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8044 Revert the following patch (not approved yet):
8045 2011-02-21 Hui Zhu <teawater@gmail.com>
8046 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8047 * ax-gdb.c (gen_printf_expr_callback): New function.
8048 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8049 * ax-general.c (ax_memcpy): New function.
8050 (ax_print): Handle "printf".
8052 * ax.h (ax_memcpy): Forward declare.
8053 * common/ax.def (invalid2): Removed.
8054 (printf): New entry.
8055 * printcmd.c (printcmd.h): New include.
8056 (string_printf): New function.
8057 (ui_printf): Removed.
8058 (printf_command): Remove static. Call string_printf.
8059 (eval_command): Call string_printf.
8060 * printcmd.h: New file.
8061 * tracepoint.c (validate_actionline,
8062 encode_actions_1): handle printf_command.
8064 2011-02-23 Tom Tromey <tromey@redhat.com>
8066 * ax-general.c (ax_pick): Add missing newline.
8068 2011-02-23 Michael Snyder <msnyder@vmware.com>
8070 * breakpoint.c (breakpoint_1): Change first argument from an int
8071 to a char pointer, so that the function now accepts a list of
8072 breakpoints rather than just one. Use new function
8073 'number_is_in_list' to implement.
8074 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8075 (watchpoints_info): Ditto.
8076 (tracepoints_info): Ditto.
8077 (maintenance_info_breakpoints): Ditto.
8078 (_initialize_breakpoint): Update help strings to reflect the fact
8079 that these functions can now take more than one argument.
8080 * cli/cli-utils.c (number_is_in_list): New function.
8081 * cli/cli-utils.h (number_is_in_list): Export.
8083 2011-02-23 Michael Snyder <msnyder@vmware.com>
8085 * memattr.c (mem_enable_command): Use get_number_or_range.
8086 (mem_disable_command): Ditto.
8087 (mem_delete_command): Ditto.
8088 (_initialize_mem): Tweak usage message to reflect multiple
8091 2011-02-22 Doug Evans <dje@google.com>
8093 Add gdb.lookup_global_symbol python function.
8095 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8096 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8097 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8099 2011-02-22 Tom Tromey <tromey@redhat.com>
8101 * language.c (language_class_name_from_physname): Rename
8102 'curr_language' argument to 'lang'; use in body.
8104 2011-02-22 Michael Snyder <msnyder@vmware.com>
8106 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8108 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8110 * frame-unwind.h: Fix comment to mention the this frame, not the
8113 2011-02-22 Tom Tromey <tromey@redhat.com>
8115 * symfile.c (auto_solib_limit): Remove.
8116 * symfile.h (auto_solib_limit): Remove.
8118 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8120 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8122 2011-02-21 Michael Snyder <msnyder@vmware.com>
8124 * gdbthread.h (print_thread_info): Change prototype.
8125 * thread.c (print_thread_info): Accept char* instead of int for
8126 requested_threads argument. Use new function number_is_in_list
8127 to determine which threads to list.
8128 (info_threads_command): Pass char* to print_thread_info.
8129 * cli/cli-utils.c (number_is_in_list): New function.
8130 * cli/cli-utils.h (number_is_in_list): Export.
8131 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8133 (print_one_inferior): Ditto.
8134 (mi_cmd_list_thread_groups): Ditto.
8136 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8138 * common/Makefile.in (CFLAGS): New.
8139 (COMPILE): Add $(CFLAGS).
8141 2011-02-21 Tom Tromey <tromey@redhat.com>
8143 * breakpoint.c (catch_syscall_command_1): Fix typo.
8145 2011-02-21 Tom Tromey <tromey@redhat.com>
8147 * reverse.c: Include cli-utils.h.
8148 * printcmd.c: Include cli-utils.h.
8149 (string_printf): Use skip_spaces.
8150 * cli/cli-utils.h: New file.
8151 * cli/cli-utils.c: New file.
8152 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8153 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8154 * breakpoint.h (get_number, get_number_or_range): Move to
8156 * breakpoint.c: Include cli-utils.h.
8157 (get_number_trailer, get_number, get_number_or_range)
8158 (ep_skip_leading_whitespace): Move to cli-utils.c.
8159 (create_breakpoint_sal, find_condition_and_thread)
8160 (decode_static_tracepoint_spec, watch_command_1)
8161 (watch_maybe_just_location, ep_parse_optional_if_clause)
8162 (catch_fork_command_1, catch_exec_command_1)
8163 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8164 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8165 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8166 (HFILES_NO_SRCDIR): Add cli-utils.h.
8167 (cli-utils.o): New target.
8169 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8171 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8172 before calling discard_all_inferiors.
8174 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8176 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8177 (struct builtin_opencl_type): Remove.
8178 (builtin_opencl_type): Change return type to "struct type **".
8179 (lookup_opencl_vector_type): Update caller.
8180 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8181 (build_opencl_types): Install plain array of "struct type *"
8182 instead of "struct builtin_opencl_type".
8184 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8185 Ulrich Weigand <uweigand@de.ibm.com>
8187 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8188 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8189 (struct arm_linux_hwbp_cap): New type.
8190 (arm_linux_get_hwbp_cap): New function.
8191 (arm_linux_get_hw_breakpoint_count): Likewise.
8192 (arm_linux_get_hw_watchpoint_count): Likewise.
8193 (arm_linux_can_use_hw_breakpoint): Likewise.
8194 (arm_hwbp_type): New type.
8195 (arm_hwbp_control_t): Likewise.
8196 (struct arm_linux_hw_breakpoint): Likewise.
8197 (struct arm_linux_thread_points): Likewise.
8198 (arm_threads): New global variable.
8199 (arm_linux_find_breakpoints_by_tid): New function.
8200 (arm_hwbp_control_initialize): Likewise.
8201 (arm_hwbp_control_is_enabled): Likewise.
8202 (arm_hwbp_control_disable): Likewise.
8203 (arm_linux_hw_breakpoint_initialize): Likewise.
8204 (arm_linux_get_hwbp_type): Likewise.
8205 (arm_linux_hw_watchpoint_initialize): Likewise.
8206 (arm_linux_hw_breakpoint_equal): Likewise.
8207 (arm_linux_insert_hw_breakpoint1): Likewise.
8208 (arm_linux_remove_hw_breakpoint1): Likewise.
8209 (arm_linux_insert_hw_breakpoint): Likewise.
8210 (arm_linux_remove_hw_breakpoint): Likewise.
8211 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8212 (arm_linux_insert_watchpoint): Likewise.
8213 (arm_linux_remove_watchpoint): Likewise.
8214 (arm_linux_stopped_data_address): Likewise.
8215 (arm_linux_stopped_by_watchpoint): Likewise.
8216 (arm_linux_watchpoint_addr_within_range): Likewise.
8217 (arm_linux_new_thread): Likewise.
8218 (arm_linux_thread_exit): Likewise.
8219 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8220 related target callbacks. Register arm_linux_new_thread and
8221 arm_linux_thread_exit.
8222 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8223 * arm-tdep.c (arm_pc_is_thumb): Make global.
8224 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8226 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8228 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8229 per-frame locations while within a function epilogue.
8231 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8233 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8234 to GNU coding standards.
8236 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8238 Allow use of mingw native on Windows 95 OS.
8239 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8240 (ser_windows_close): Only call CancelIo if function exists.
8241 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8242 to check for existence of CancelIo function in kernel32 DLL.
8244 2011-02-21 Hui Zhu <teawater@gmail.com>
8246 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8247 * ax-gdb.c (gen_printf_expr_callback): New function.
8248 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8249 * ax-general.c (ax_memcpy): New function.
8250 (ax_print): Handle "printf".
8252 * ax.h (ax_memcpy): Forward declare.
8253 * common/ax.def (invalid2): Removed.
8254 (printf): New entry.
8255 * printcmd.c (printcmd.h): New include.
8256 (string_printf): New function.
8257 (ui_printf): Removed.
8258 (printf_command): Remove static. Call string_printf.
8259 (eval_command): Call string_printf.
8260 * printcmd.h: New file.
8261 * tracepoint.c (validate_actionline,
8262 encode_actions_1): handle printf_command.
8264 2011-02-19 Michael Snyder <msnyder@vmware.com>
8266 * reverse.c (delete_one_bookmark): Argument is now bookmark
8267 id rather than pointer to bookmark struct.
8268 (delete_bookmark_command): Use get_number_or_range.
8269 (goto_bookmark_command): Parse with get_number instead of strtoul.
8270 (bookmark_1): New function. Print info for one bookmark.
8271 (bookmarks_info): Use get_number_or_range and bookmark_1.
8273 2011-02-18 Michael Snyder <msnyder@vmware.com>
8275 * thread.c (info_threads_command): Re-implement using
8276 get_number_or_range.
8277 (thread_apply_command): Ditto.
8279 2011-02-18 Tom Tromey <tromey@redhat.com>
8281 * common/ax.def: New file.
8282 * ax.h (enum agent_op): Use ax.def.
8283 * ax-general.c (aop_map): Use ax.def.
8285 2011-02-18 Tom Tromey <tromey@redhat.com>
8287 * ax-general.c (aop_map): Add pick and rot.
8288 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8289 <DW_OP_rot>: Implement.
8290 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8292 * ax-general.c (ax_pick): New function.
8294 2011-02-18 Tom Tromey <tromey@redhat.com>
8296 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8298 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8299 Tom Tromey <tromey@redhat.com>
8301 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8302 make_symbol_overload_list_block with NULL BLOCK.
8303 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8305 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8307 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8308 * breakpoint.h (get_number_or_range): Declare.
8309 * printcmd.c (ALL_DISPLAYS): Declare.
8310 (delete_display): Reimplement taking a display pointer.
8311 (undisplay_command): Accept a range of displays to delete, using
8312 get_number_or_range.
8314 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8316 * c-valprint.c (c_val_print): Add embedded_offset to address
8317 for arrays of unspecified length.
8318 * p-valprint.c (pascal_val_print): Likewise.
8320 2011-02-18 Yao Qi <yao@codesourcery.com>
8322 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8323 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8324 (thumb_process_displaced_insn): New.
8325 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8326 call to arm_process_displaced_insn.
8327 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8329 2011-02-17 Tom Tromey <tromey@redhat.com>
8331 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8332 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8333 compile_dwarf_to_ax. No longer static. Call
8334 dwarf2_compile_cfa_to_ax.
8335 (locexpr_tracepoint_var_ref): Update.
8336 (loclist_tracepoint_var_ref): Update.
8337 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8338 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8339 argument; add 'gdbarch' and 'pc'.
8340 (dwarf2_compile_cfa_to_ax): New function.
8341 (dwarf2_frame_cache): Update.
8343 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8345 * ada-lang.c (ada_type_of_array): Fix the size of the array
8346 in the case of an unconstrained packed array.
8348 2011-02-17 Yao Qi <yao@codesourcery.com>
8350 * common/Makefile.in: Add more targets for make.
8352 2011-02-16 Tom Tromey <tromey@redhat.com>
8354 * dwarf2loc.c (unimplemented): Fix typo.
8356 2011-02-16 Tom Tromey <tromey@redhat.com>
8358 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8359 (compile_dwarf_to_ax) <default>: Use unimplemented.
8360 <DW_OP_deref>: Update.
8361 (disassemble_dwarf_expression): Update.
8362 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8363 (decode_locdesc): Update.
8364 * dwarf2expr.h (dwarf_stack_op_name): Update.
8366 2011-02-16 Tom Tromey <tromey@redhat.com>
8368 * ax.h (struct aop_map) <name>: Now const.
8370 2011-02-16 Tom Tromey <tromey@redhat.com>
8372 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8375 2011-02-16 Yao Qi <yao@codesourcery.com>
8377 * infrun.c (get_displaced_step_closure_by_addr): New.
8378 * inferior.h: Declare it.
8379 * arm-tdep.c: (arm_pc_is_thumb): Call
8380 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8383 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8384 Jan Kratochvil <jan.kratochvil@redhat.com>
8387 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8389 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8390 Jan Kratochvil <jan.kratochvil@redhat.com>
8392 * value.c (value_contents_copy_raw): Extend describing comment.
8393 Assert that the destination contents we're overwriting are wholly
8395 (value_contents_copy): Extend describing comment.
8397 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8398 Jan Kratochvil <jan.kratochvil@redhat.com>
8400 * value.c (value_available_contents_eq): Remove redundant local
8401 variables. Fix available contents comparision.
8402 * value.h (value_available_contents_eq): Extend describing
8405 2011-02-16 Yao Qi <yao@codesourcery.com>
8407 * thread.c (info_threads_command): Add missing i18n markup and remove
8410 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8412 * breakpoint.c (longjmp_names): New variable.
8413 (struct breakpoint_objfile_data): New type.
8414 (breakpoint_objfile_key): New variable.
8415 (msym_not_found): New variable.
8416 (msym_not_found_p): New predicate.
8417 (get_breakpoint_objfile_data): New function.
8418 (create_overlay_event_breakpoint): Check per-objfile cache for
8420 (create_longjmp_master_breakpoint): Likewise.
8421 (create_std_terminate_master_breakpoint): Likewise.
8422 (create_exception_master_breakpoint): Likewise.
8423 (_initialize_breakpoint): Register per-objfile data key.
8425 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8427 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8429 (create_longjmp_master_breakpoint): Loop over longjmp names.
8430 (create_std_terminate_master_breakpoint): Const-propagate parameter
8432 (update_breakpoints_after_exec): Adjust.
8433 (breakpoint_re_set): Adjust.
8435 2011-02-15 Michael Snyder <msnyder@vmware.com>
8437 * thread.c (info_threads_command): Process arg as thread id,
8438 or list of thread ids.
8439 (thread_find_command): New command.
8440 (_initialize_thread): Document argument for info threads.
8441 Document 'thread find' command.
8442 * NEWS: Document new command "thread find".
8444 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8446 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8447 * aclocal.m4: Regenerated with aclocal-1.11.1.
8448 * common/configure: Regenerate with autoconf-2.64.
8450 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
8452 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8453 bool data type to a size of one byte.
8455 2011-02-15 Pedro Alves <pedro@codesourcery.com>
8456 Jan Kratochvil <jan.kratochvil@redhat.com>
8458 * target.c (memory_xfer_live_readonly_partial): Document where to
8459 look for interface description.
8461 2011-02-15 Yao Qi <yao@codesourcery.com>
8464 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8465 order to store PC value on stack instead of text section.
8467 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8469 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8470 the EFP register set size.
8471 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8472 data from the VMX register.
8473 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8474 and write data from/to the VMX register.
8476 2011-02-14 Michael Snyder <msnyder@vmware.com>
8478 * command.h (enum command_class): New class 'no_set_class', for
8479 "show" commands without a corresponding "set" command.
8480 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8481 * copying.c (_initialize_copying): Ditto for "show copying" and
8483 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8485 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8486 which there is no corresponding "set" command (eg. "show copying").
8488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8489 Jan Kratochvil <jan.kratochvil@redhat.com>
8491 * exec.c (section_table_available_memory): Change `len' parameter
8493 * exec.h (section_table_available_memory): Ditto.
8494 * value.h (read_value_memory): Rename the `offset' parameter to
8497 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8498 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 * memrange.c (compare_mem_ranges): Mention sort order in
8502 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8503 * tracepoint.c (traceframe_available_memory): Extend comment to
8504 mention what happens to RESULT when the target does not support
8507 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8508 Jan Kratochvil <jan.kratochvil@redhat.com>
8510 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8513 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8515 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8516 No longer handle NULL values.
8518 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8520 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8521 * value.c: Include "exceptions.h".
8522 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8524 * cp-abi.c: Include gdb_assert.h.
8525 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8526 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8528 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8529 parameters. No longer returns -1 on error.
8530 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8532 * cp-valprint.c: Include exceptions.h.
8533 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8534 the baseclass_offset. Handle unavailable base classes. Use
8535 val_print_invalid_address.
8536 * p-valprint.c: Include exceptions.h.
8537 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8538 when fetching the baseclass_offset. No longer expect
8539 baseclass_offset returning -1. Handle unavailable base classes.
8540 Use val_print_invalid_address.
8541 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8542 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8543 `embedded_offset' and `val' parameters. Adjust.
8544 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8545 parameter, and change its type to gdb_byte pointer. Add
8546 `embedded_offset' and `val' parameters. Adjust. No longer expect
8547 baseclass_offset returning -1.
8548 (value_dynamic_cast): Use value_contents_for_printing rather than
8549 value_contents. Adjust.
8550 (search_struct_field): No longer expect baseclass_offset returning
8552 (search_struct_method): If reading memory from the target is
8553 necessary, wrap it in a new value to pass to baseclass_offset. No
8554 longer expect baseclass_offset returning -1.
8555 (find_method_list): No longer expect baseclass_offset returning
8556 -1. Use value_contents_for_printing rather than value_contents.
8557 * valprint.c (val_print_invalid_address): New function.
8558 * valprint.h (val_print_invalid_address): Declare.
8559 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8560 and `val' parameters. No longer expect baseclass_offset returning
8562 * gnu-v2-abi.c: Include "exceptions.h".
8563 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8564 parameters. Handle unavailable memory. Recurse through
8565 gnuv2_baseclass_offset directly, rather than through
8566 baseclass_offset. No longer returns -1 on not found, instead
8568 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8569 `val' parameters. Adjust.
8571 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8573 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8574 almost but not quite adjacent.
8576 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8578 * value.h (value_entirely_available): Declare.
8579 * value.c (value_entirely_available): New function.
8580 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8581 real type if the pointer is unavailable.
8583 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8585 * valops.c (value_repeat): Use read_value_memory instead of
8588 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8590 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8591 * value.c (value_contents_copy_raw, value_contents_copy): New
8593 (value_primitive_field): Use value_contents_copy_raw instead of
8595 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8597 (value_array, value_slice): Ditto.
8598 * valarith.c (value_subscripted_rvalue): Use
8599 value_contents_copy_raw instead of memcpy.
8601 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8603 <unavailable> references.
8605 * valops.c (get_value_at): Use value_from_contents_and_address,
8606 avoiding read_memory.
8608 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8610 * c-valprint.c (c_val_print): Print a string with unavailable
8611 contents as an array.
8613 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8615 * value.h (unpack_bits_as_long): Delete declaration.
8616 (unpack_value_bits_as_long): Declare.
8617 (unpack_value_field_as_long): Declare.
8618 (value_field_bitfield): Declare.
8619 * value.c (unpack_bits_as_long): Rename to...
8620 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8621 value parameters. Return the extracted result in a new output
8622 parameter. If the value contents are unavailable, return false,
8623 otherwise return true.
8624 (unpack_value_bits_as_long): New.
8625 (unpack_field_as_long): Rename to...
8626 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8627 Add embedded_offset and value parameters. Return the extracted
8628 result in a new output parameter. If the value contents are
8629 unavailable, return false, otherwise return true.
8630 (unpack_value_field_as_long): New.
8631 (unpack_field_as_long_1): New.
8632 (unpack_field_as_long): Reimplement as wrapper around
8633 unpack_value_field_as_long_1.
8634 (value_field_bitfield): New function.
8635 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8636 unpack_value_bits_as_long. Mark the value as unavailable, if it
8638 * jv-valprint.c (java_print_value_fields): Use
8639 value_field_bitfield.
8640 * p-valprint.c (pascal_object_print_value_fields): Use
8641 value_field_bitfield.
8642 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8644 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8646 * value.c (get_internalvar_integer): Also return the int value of
8647 TYPE_CODE_INT INTERNALVAR_VALUE values.
8648 (set_internalvar): Don't special case TYPE_CODE_INT.
8650 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8652 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8653 INTERNALVAR_POINTER.
8655 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8656 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8657 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8659 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8661 * value.h (value_available_contents_eq): Declare.
8662 * value.c (find_first_range_overlap): New function.
8663 (value_available_contents_eq): New function.
8664 * valprint.c (val_print_array_elements): Use
8665 value_available_contents_eq.
8666 * ada-valprint.c (val_print_packed_array_elements): Use
8667 value_available_contents_eq.
8668 * jv-valprint.c (java_value_print): Use
8669 value_available_contents_eq.
8671 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8673 * target.c (target_read_live_memory): New function.
8674 (memory_xfer_live_readonly_partial): New.
8675 (memory_xfer_partial): If reading from a traceframe, fallback to
8676 reading unavailable read-only memory from read-only regions of
8678 * tracepoint.c (disconnect_tracing): Adjust.
8679 (set_current_traceframe): New, factored out from
8680 set_traceframe_number.
8681 (set_traceframe_number): Reimplement to only change the traceframe
8682 number on the GDB side.
8683 (do_restore_current_traceframe_cleanup): Adjust.
8684 (make_cleanup_restore_traceframe_number): New.
8685 (cur_traceframe_number): New global.
8686 (tfile_open): Set cur_traceframe_number to no traceframe.
8687 (set_tfile_traceframe): New function.
8688 (tfile_trace_find): If looking up a traceframe using any method
8689 other than by number, make sure the current tfile traceframe
8690 matches gdb's current traceframe. Update the current tfile
8691 traceframe if the lookup succeeded.
8692 (tfile_fetch_registers, tfile_xfer_partial)
8693 (tfile_get_trace_state_variable_value): Make sure the remote
8694 traceframe matches gdb's current traceframe.
8695 * remote.c (remote_traceframe_number): New global.
8696 (remote_open_1): Set it to -1.
8697 (set_remote_traceframe): New function.
8698 (remote_fetch_registers, remote_store_registers)
8699 (remote_xfer_memory, remote_xfer_partial)
8700 (remote_get_trace_state_variable_value): Make sure the remote
8701 traceframe matches gdb's current traceframe.
8702 (remote_trace_find): If looking up a traceframe using any method
8703 other than by number, make sure the current remote traceframe
8704 matches gdb's current traceframe. Update the current remote
8705 traceframe if the lookup succeeded.
8706 * infrun.c (fetch_inferior_event): Adjust.
8707 * tracepoint.h (set_current_traceframe): Declare.
8708 (get_traceframe_number, set_traceframe_number): Add describing
8711 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8713 Mark pieces of values as unavailable if the corresponding memory
8716 * valops.c: Include tracepoint.h.
8717 (value_fetch_lazy): Use read_value_memory.
8718 (read_value_memory): New.
8719 * value.h (read_value_memory): Declare.
8720 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8721 * exec.c (section_table_available_memory): New function.
8722 * exec.h (section_table_available_memory): Declare.
8724 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8726 * Makefile.in (SFILES): Add memrange.c.
8727 (HFILES_NO_SRCDIR): Add memrange.h.
8728 (COMMON_OBS): Add memrange.o.
8729 * memrange.c: New file.
8730 * memrange.h: New file.
8731 * tracepoint.c: Include memrange.h.
8732 (struct mem_range): Delete.
8733 (mem_range_s): Delete.
8734 (traceframe_available_memory): New function.
8735 * tracepoint.h (traceframe_available_memory): Declare.
8737 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8739 * target.h (struct traceframe_info): Forward declare.
8740 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8741 (struct target_ops) <to_traceframe_info>: New field.
8742 (target_traceframe_info): New.
8743 * target.c (update_current_target): Inherit and default
8745 * remote.c (PACKET_qXfer_traceframe_info): New.
8746 (remote_protocol_features): Register qXfer:traceframe-info:read.
8747 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8748 (remote_traceframe_info): New.
8749 (init_remote_ops): Install it.
8750 (_initialize_remote): Install "set/show remote traceframe-info"
8752 * tracepoint.h (parse_traceframe_info): Declare.
8753 * tracepoint.c (struct mem_range): New.
8754 (mem_range_s): New typedef.
8755 (struct traceframe_info): New.
8756 (traceframe_info): New global.
8757 (free_traceframe_info): New function.
8758 (clear_traceframe_info): New function.
8759 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8761 (build_traceframe_info): New function.
8762 (tfile_traceframe_info): New function.
8763 (init_tfile_ops): Install tfile_traceframe_info.
8764 (traceframe_info_start_memory, free_result): New functions.
8765 (memory_attributes, traceframe_info_elements): New globals.
8766 (parse_traceframe_info, get_traceframe_info): New functions.
8767 * features/traceframe-info.dtd: New file.
8768 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8770 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8772 Base support for <unavailable> value contents.
8774 * value.h (value_bytes_available): Declare.
8775 (mark_value_bytes_unavailable): Declare.
8776 * value.c (struct range): New struct.
8777 (range_s): New typedef.
8778 (ranges_overlap): New function.
8779 (range_lessthan): New function.
8780 (ranges_contain_p): New function.
8781 (struct value) <unavailable>: New field.
8782 (value_bytes_available): New function.
8783 (mark_value_bytes_unavailable): New function.
8784 (require_not_optimized_out): Constify parameter.
8785 (require_available): New function.
8786 (value_contents_all, value_contents): Require all bytes be
8788 (value_free): Free `unavailable'.
8789 (value_copy): Copy `unavailable'.
8790 * valprint.h (val_print_unavailable): Declare.
8791 * valprint.c (valprint_check_validity): Rename `offset' parameter
8792 to `embedded_offset'. If printing a scalar, check whether the
8793 value chunk is available.
8794 (val_print_unavailable): New.
8795 (val_print_scalar_formatted): Check whether the value is
8797 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8798 pretty-printing unavailable values.
8800 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8802 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8803 * c-typeprint.c (c_type_print_args): Update the function comment. New
8804 variable param_type, initialize it. Remove const/volatile qualifiers
8805 for language_cplus and !show_artificial. Use param_type.
8807 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8809 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8810 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8811 * symtab.h (struct symtab) <next>: Comment extension.
8813 2011-02-12 Yao Qi <yao@codesourcery.com>
8815 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8817 2011-02-11 Yao Qi <yao@codesourcery.com>
8819 * common/Makefile.in: Add copyright header.
8821 2011-02-11 Pedro Alves <pedro@codesourcery.com>
8823 * infrun.c (proceed): Move switching out and in of tfind mode from
8825 (fetch_inferior_event): ... to here.
8827 2011-02-11 Yao Qi <yao@codesourcery.com>
8829 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8831 * configure.ac: Add common to sub dir.
8832 * configure: Regenerate.
8834 2011-02-11 Yao Qi <yao@codesourcery.com>
8838 * common/Makefile.in: New.
8839 * common/configure.ac: New.
8840 * common/aclocal.m4: New.
8841 * common/configure: Generate.
8843 2011-02-10 Pedro Alves <pedro@codesourcery.com>
8845 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8846 side of the parenthesis.
8849 2010-07-13 Jakub Jelinek <jakub@redhat.com>
8850 * vec.h (VEC_block_remove): Fix comment.
8852 2011-02-08 Michael Snyder <msnyder@vmware.com>
8854 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
8856 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8858 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
8859 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
8862 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8865 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
8867 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
8868 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
8870 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8872 * dwarf2read.c (read_subroutine_type): Set special calling
8873 convention flag for functions compiled by IBM XL C for OpenCL.
8874 * ppc-sysv-tdep.c: Include "dwarf2.h"
8875 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
8877 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
8878 IBM OpenCL vector types calling convention.
8879 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
8880 (ppc_sysv_abi_broken_return_value): Likewise.
8881 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
8882 types calling convention.
8883 (ppc64_sysv_abi_return_value): Likewise.
8884 * spu-tdep.c: Include "dwarf2.h"
8885 (spu_return_value): Implement IBM OpenCL vector types calling
8888 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8890 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
8891 correct ABI for AltiVec vector arguments.
8893 2011-02-07 Pedro Alves <pedro@codesourcery.com>
8895 * valprint.c (val_print): Extend comment.
8896 * ada-valprint.c (ada_valprint): Rewrite comment deferring
8897 interface explanation to val_print.
8898 (ada_val_print_array): Adjust comment to current interface.
8899 (print_field_values): Adjust comment to current interface.
8900 * c-valprint.c (c_val_print): Rewrite comment deferring interface
8901 explanation to val_print.
8902 * f-valprint.c (f_val_print): Ditto.
8903 * jv-valprint.c (java_val_print): Ditto.
8904 * m2-valprint.c (m2_val_print): Ditto.
8905 * p-valprint.c (pascal_val_print): Ditto.
8907 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8909 * breakpoint.c (parse_breakpoint_sals): Fix description.
8911 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
8912 Oguz Kayral <oguzkayral@gmail.com>
8914 * python/py-inferior.c (python_on_normal_stop): New function.
8915 (python_on_resume): New function.
8916 (python_inferior_exit): New function.
8917 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
8918 inferior_exit observers.
8919 * python/py-evtregistry.c: New file.
8920 * python/py-threadevent.c : New file.
8921 * python/py-event.c: New file.
8922 * python/py-evts.c: New file.
8923 * python/py-continueevent.c: New file.
8924 * python/py-bpevent.c: New file.
8925 * python/py-signalevent.c: New file.
8926 * python/py-exetiedevent.c: New file.
8927 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
8928 Move struct breakpoint_object from here...
8929 * python/python-internal.h: ... to here.
8930 * python/py-event.h: New file.
8931 * python/py-events.h: New file.
8932 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
8933 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
8934 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
8935 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
8936 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
8937 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
8938 Add build rules for all the above.
8940 2011-02-04 Tom Tromey <tromey@redhat.com>
8942 * dwarf2read.c (dwarf2_section_empty_p): New function.
8943 (dwarf2_read_section): Use dwarf2_section_empty_p.
8944 (dwarf2_section_size): New function.
8945 (dwarf2_get_section_info): Unconditionally read section.
8946 (dwarf2_read_index): Use dwarf2_section_empty_p.
8947 (partial_read_comp_unit_head): Use dwarf2_section_size.
8948 (dwarf2_symbol_mark_computed): Likewise.
8950 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8952 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
8954 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8956 * mips-linux-tdep.c: Include xml-syscall.h.
8957 (mips_linux_get_syscall_number): New function.
8958 (mips_linux_init_abi): Add calls to
8959 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
8960 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8961 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
8962 * syscalls/mips-n32-linux.xml: New file.
8963 * syscalls/mips-n64-linux.xml: New file.
8964 * syscalls/mips-o32-linux.xml: New file.
8966 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8968 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
8969 Complain about inverted range entries.
8970 (dwarf2_record_block_ranges): Likewise.
8972 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8975 * breakpoint.c (update_watchpoint): Fix name of the
8976 update_global_location_list function.
8977 (print_one_breakpoint): Fix typo.
8978 (_initialize_breakpoint): Remove extra space in hbreak help
8980 * breakpoint.h (struct bp_location) <length>: Fix field
8983 2011-02-04 Pedro Alves <pedro@codesourcery.com>
8985 * regcache.c (registers_changed_ptid): Don't explictly always
8986 clear `current_regcache'. Only clear current_thread_ptid and
8987 current_thread_arch when PTID matches. Only reinit the frame
8988 cache if PTID matches the current inferior_ptid. Move alloca(0)
8990 (registers_changed): ... here.
8992 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
8994 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
8995 starts with __stack_chk_guard as stack guard symbol.
8997 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
8999 * disasm.c (compare_lines): Handle the end of sequence markers
9000 within the line table to better support disassembling over
9001 compilation unit boundaries.
9003 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9005 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9006 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9007 implementation even if no symbols are available.
9008 (thumb_analyze_prologue): Update call to skip_prologue_function.
9009 (arm_analyze_prologue): Likewise.
9011 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9013 * arm-tdep.c: Include "observer.h".
9014 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9015 (arm_exidx_data_key): New static variable.
9016 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9017 (struct arm_exidx_data): Likewise.
9018 (arm_exidx_data_free): New function.
9019 (arm_compare_exidx_entries): Likewise.
9020 (arm_obj_section_from_vma): Likewise.
9021 (arm_exidx_new_objfile): Likewise.
9022 (arm_find_exidx_entry): Likewise.
9023 (arm_exidx_fill_cache): Likewise.
9024 (arm_exidx_unwind_sniffer): Likewise.
9025 (arm_exidx_unwind): New global variable.
9026 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9027 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9028 observer. Register arm_exidx_data_key as objfile data.
9030 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9032 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9033 due to accessing uninitialized variable. Fix indentation.
9035 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9037 * c-valprint.c (c_value_print): When doing virtual base pointer
9038 adjustment, create a new value with adjusted contents rather than
9039 changing the contents of the value being printed (and getting it
9042 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9044 * xml-support.c (xml_find_attribute): New.
9045 (xinclude_start_include): Use it.
9046 * xml-support.h (xml_find_attribute): Declare.
9047 * memory-map.c (memory_map_start_memory)
9048 (memory_map_start_property): Use xml_find_attribute.
9049 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9051 * remote.c (start_thread): Use xml_find_attribute.
9052 * solib-target.c (library_list_start_segment)
9053 (library_list_start_section, library_list_start_library)
9054 (library_list_start_list): Use xml_find_attribute.
9055 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9056 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9057 (tdesc_start_field): Use xml_find_attribute.
9059 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9061 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9062 (BUILD_OCL_VTYPES): Update.
9064 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9066 * configure.ac: Work around non-GNU sed limitation when computing
9067 python version number.
9068 * configure: Regenerate.
9070 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9072 Fix debug printing of TYPE_INSTANCE.
9073 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9074 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9076 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9078 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9079 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9080 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9081 * ada-operator.inc: Rename the file to ...
9082 * ada-operator.def: ... here, wrap all the entries by macro OP.
9083 * expprint.c (op_name_standard): Remove all the entries. Include
9084 "std-operator.def" instead.
9085 * expression.h (enum exp_opcode): Include "std-operator.def" and
9086 "ada-operator.def". Move all the entries ...
9087 * std-operator.def: ... here, wrap all the entries by macro OP.
9089 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9091 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9092 * breakpoint.c (remove_jit_event_breakpoints): New function.
9093 * jit.c (jit_descriptor_addr): Delete.
9094 (registering_code): Delete.
9095 (clear_int): Delete.
9096 (jit_inferior_data): New variable.
9097 (struct jit_inferior_data): New type.
9098 (get_jit_inferior_data): New function.
9099 (jit_inferior_data_cleanup): New function.
9100 (jit_read_descriptor): Adjust.
9101 (jit_register_code): Adjust.
9102 (jit_breakpoint_re_set_internal): New function; move code here ...
9103 (jit_inferior_init): ... from here.
9104 (jit_breakpoint_re_set): Adjust.
9105 (jit_reset_inferior_data_and_breakpoints): New function.
9106 (jit_inferior_created_observer): Adjust.
9107 (jit_inferior_exit_hook): Adjust.
9108 (jit_executable_changed_observer): New function.
9109 (jit_event_handler): Adjust.
9110 (_initialize_jit): Adjust.
9112 2011-01-31 Michael Snyder <msnyder@vmware.com>
9114 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9117 2011-01-31 Tom Tromey <tromey@redhat.com>
9120 * python/python.c (execute_gdb_command): Call
9121 prevent_dont_repeat.
9122 * top.c (suppress_dont_repeat): New global.
9123 (dont_repeat): Use it.
9124 (prevent_dont_repeat): New function.
9125 * command.h (prevent_dont_repeat): Declare.
9127 2011-01-31 Tom Tromey <tromey@redhat.com>
9129 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9130 * python/py-breakpoint.c (bppy_set_silent): Use
9131 breakpoint_set_silent.
9132 (bppy_set_thread): Use breakpoint_set_thread.
9133 (bppy_set_task): Use breakpoint_set_task.
9134 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9135 (breakpoint_set_task): Declare.
9136 (make_breakpoint_silent): Remove.
9137 * breakpoint.c (breakpoint_set_silent): New function.
9138 (breakpoint_set_thread): Likewise.
9139 (breakpoint_set_task): Likewise.
9140 (make_breakpoint_silent): Remove.
9142 2011-01-31 Tom Tromey <tromey@redhat.com>
9144 * breakpoint.h (user_breakpoint_p): Declare.
9145 * breakpoint.c (user_breakpoint_p): New function.
9146 (breakpoint_1): Use it.
9147 (save_breakpoints): Likewise.
9149 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9151 * configure.ac: Add handling of Python distribution on Windows.
9152 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9153 sysconfig variables are not defined, then do not use them.
9154 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9155 instead. On Windows, return all paths using forward-slashes
9156 rather than backslashes.
9158 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9160 * configure.ac: Remove fallback behavior for building
9161 against Python. Remove tweaking of Python include path.
9162 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9163 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9164 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9165 Always restore CPPFLAGS and LIBS after linking test.
9166 * configure: Regenerated.
9167 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9168 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9169 * python/python-internal.h: Adjust includes of Python .h files.
9171 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9173 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9176 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9178 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9181 2011-01-31 Yao Qi <yao@codesourcery.com>
9183 * arm-linux-nat.c: Update calls to regcache_register_status
9184 instead of regcache_valid_p.
9185 * aix-thread.c: Likewise.
9186 * i386gnu-nat.c: Likewise.
9188 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9191 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9192 touching TYPE_FIELD_ARTIFICIAL.
9194 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9196 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9199 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9201 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9202 selected, don't try iterating over the traceframe's blocks.
9203 (tfile_has_stack): If there's no traceframe selected, then there's
9205 (tfile_has_registers): If there's no traceframe selected, then
9206 there's no registers.
9208 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9210 * target.c (memory_xfer_partial): No need to restore shadows if we
9211 haven't read anything.
9213 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9215 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9216 and val_print_scalar_formatted.
9218 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9220 * tracepoint.c (tfile_read): New.
9221 (tfile_open): Use it.
9222 (tfile_get_traceframe_address): Use it.
9223 (tfile_trace_find): Use it.
9224 (walk_blocks_callback_func): New typedef.
9225 (match_blocktype): New function.
9226 (traceframe_walk_blocks): New function.
9227 (traceframe_find_block_type): New function.
9228 (tfile_fetch_registers, tfile_xfer_partial)
9229 (tfile_get_trace_state_variable_value): Use
9230 traceframe_find_block_type and tfile_read.
9232 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9234 * remote-mips.c: Add internationalization mark ups. Remove
9235 trailing \n from already marked up strings.
9237 2011-01-26 Tom Tromey <tromey@redhat.com>
9239 * python/py-prettyprint.c (print_string_repr): Clear
9240 'addressprint' option when calling val_print_string.
9241 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9242 option when calling val_print_string.
9244 2011-01-26 Tom Tromey <tromey@redhat.com>
9246 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9248 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9250 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9251 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9252 (gdb_py_long_as_ulongest): New defines.
9253 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9254 (gdb_py_int_as_long): Declare.
9255 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9256 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9257 (valpy_long): Add comment.
9258 * python/py-utils.c (get_addr_from_python): Use
9259 gdb_py_long_as_ulongest. Handle overflow properly.
9260 (gdb_py_object_from_longest): New function.
9261 (gdb_py_object_from_ulongest): Likewise.
9262 (gdb_py_int_as_long): Likewise.
9263 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9264 * python/py-symtab.c (salpy_get_pc): Use
9265 gdb_py_long_from_ulongest.
9266 (salpy_get_line): Use PyInt_FromLong.
9267 * python/py-param.c (set_parameter_value): Use
9269 * python/py-lazy-string.c (stpy_get_address): Use
9270 gdb_py_long_from_ulongest.
9271 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9272 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9273 * python/py-breakpoint.c (bppy_set_thread): Use
9275 (bppy_set_task): Likewise.
9276 (bppy_set_ignore_count): Likewise.
9277 (bppy_set_hit_count): Likewise.
9278 * python/py-block.c (blpy_get_start): Use
9279 gdb_py_object_from_ulongest.
9280 (blpy_get_end): Likewise.
9281 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9283 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9286 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9287 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9288 equality test for objfile, initialize addr_low if needed.
9290 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9292 * tui/tui-regs.c (tui_register_format): Remove dead code.
9294 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9296 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9297 instead of print_scalar_formatted.
9298 (print_scalar_formatted): Don't handle 's' format strings here,
9299 and add an assertion that we never see such format here.
9300 * valprint.h (val_print_scalar_formatted): Declare.
9301 * valprint.c (val_print_scalar_formatted): New.
9302 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9303 instead of print_scalar_formatted.
9304 * jv-valprint.c (java_val_print): Ditto.
9305 * p-valprint.c (pascal_val_print): Ditto.
9306 * ada-valprint.c (ada_val_print_1): Ditto.
9307 * f-valprint.c (f_val_print): Ditto.
9308 * infcmd.c (registers_info): Ditto.
9309 * m2-valprint.c (m2_val_print): Ditto.
9311 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9313 * m2-valprint.c (print_unbounded_array): Pass
9314 value_contents_for_printing rather than value_contents, to
9315 m2_print_array_contents. Also pass in the value.
9317 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9319 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9320 (save_gdb_index_command): Switch to .gdb_index version 4.
9322 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9324 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9325 than frame_register, and always pass a valid value to val_print.
9327 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9329 Centralize printing "<optimized out>".
9331 * valprint.h (val_print_optimized_out): Declare.
9332 * cp-valprint.c (cp_print_value_fields): Use
9333 val_print_optimized_out.
9334 * jv-valprint.c (java_print_value_fields): Ditto.
9335 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9336 * printcmd.c (print_formatted): Ditto.
9337 * valprint.c (valprint_check_validity): Ditto.
9338 (value_check_printable): Ditto.
9339 (val_print_optimized_out): New.
9341 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9343 * infcmd.c (default_print_registers_info): Allocate values so to
9344 never pass a NULL value to val_print.
9346 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9348 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9349 boolean. Make sure to always pass a value that matches the
9350 contents buffer to callees. Preserve `address' for following
9352 * value.c (value_contents_for_printing_const): New.
9353 (value_address): Constify value argument.
9354 * value.h (value_contents_for_printing_const): Declare.
9355 (value_address): Constify value argument.
9357 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9359 * regcache.c (struct regcache_descr): Rename
9360 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9361 and sizeof_cooked_register_valid_p to
9362 sizeof_cooked_register_status.
9363 (init_regcache_descr): Adjust.
9364 (struct regcache): Rename register_valid_p field to
9366 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9367 (do_cooked_read): Adjust.
9368 (regcache_valid_p): Rename to ...
9369 (regcache_register_status): ... this. Adjust.
9370 (regcache_invalidate): Adjust.
9371 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9373 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9374 as unavailable, not valid.
9375 (regcache_dump): Adjust.
9376 * regcache.h (enum register_status): New.
9377 (regcache_register_status): Declare.
9378 (regcache_invalidate): Delete declaration.
9379 * corelow.c (get_core_registers): Adjust.
9380 * tracepoint.c (tfile_fetch_registers): Adjust.
9381 * trad-frame.c (REG_VALUE): Rename to ...
9382 (TF_REG_VALUE): ... this.
9383 (REG_UNKNOWN): Rename to ...
9384 (TF_REG_UNKNOWN): ... this.
9385 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9386 * mi/mi-main.c (register_changed_p): Adjust.
9388 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9390 * regcache.c (struct regcache_descr): Remove outdated comment.
9391 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9393 (regcache_xmalloc): Rename to ...
9394 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9395 Allocate the regcache type accordingly.
9396 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9397 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9398 cooked registers, not raw.
9399 (regcache_dup_no_passthrough): Delete.
9400 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9401 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9402 mention obsolete write_register_bytes.
9403 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9405 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9407 Stop remote_read_bytes from handling partial reads itself.
9409 * remote-fileio.c: Include target.h.
9410 (remote_fileio_write_bytes): Delete.
9411 (remote_fileio_func_open, remote_fileio_func_write)
9412 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9414 (remote_fileio_func_stat): Use target_read_memory and
9415 target_write_memory.
9416 (remote_fileio_func_gettimeofday): Use target_write_memory.
9417 (remote_fileio_func_system): Use target_read_memory.
9418 * remote.c (remote_write_bytes): Make it static.
9419 (remote_read_bytes): Don't handle partial reads here.
9420 * remote.h (remote_read_bytes): Delete declaration.
9422 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9424 Simplify XML parsing a bit.
9426 * xml-support.h (gdb_xml_parse_quick): Declare.
9427 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9428 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9430 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9431 gdb_xml_create_parser_and_cleanup_1.
9432 (gdb_xml_parse_quick): New.
9433 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9434 * osdata.c (osdata_parse): Ditto.
9435 * remote.c (remote_threads_info): Ditto.
9436 * solib-target.c (solib_target_parse_libraries): Ditto.
9437 * xml-syscall.c (syscall_parse_xml): Ditto.
9438 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9440 2011-01-24 Kevin Buettner <kevinb@redhat.com>
9442 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9443 with remote-mips.o added to gdb_target_obs.
9444 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9446 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9448 * ada-valprint.c (val_print_packed_array_elements): Pass the
9449 correct struct value to val_print.
9450 (ada_val_print_1): Ditto.
9452 2011-01-24 Pedro Alves <pedro@codesourcery.com>
9454 Don't lose embedded_offset in printing routines throughout.
9456 * valprint.h (val_print_array_elements): Change prototype.
9457 * valprint.c (val_print_array_elements): Add `embedded_offset'
9458 parameter, and adjust to pass it down to val_print, while passing
9459 `valaddr' or `address' unmodified. Take embedded_offset into
9460 account when checking repetitions.
9461 * c-valprint.c (c_val_print): Pass embedded_offset to
9462 val_print_array_elements instead of adjusting `valaddr' and
9464 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9465 embedded_offset to val_print_array_elements instead of adjusting
9467 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9468 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9469 val_print_array_elements and pascal_object_print_value_fields
9470 instead of adjusting `valaddr'.
9471 (pascal_object_print_value_fields): Add `offset' parameter, and
9473 (pascal_object_print_value): Add `offset' parameter, and adjust to
9475 (pascal_object_print_static_field): Use
9476 value_contents_for_printing/value_embedded_offset, rather than
9478 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9479 parameter, and adjust to use it. Use
9480 value_contents_for_printing/value_embedded_offset, rather than
9482 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9483 (ada_val_print_array): Add `offset' parameter, and adjust to use
9485 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9486 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9487 Instead work with offsets. Use
9488 value_contents_for_printing/value_embedded_offset, rather than
9489 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9490 and use value_from_pointer to extract a target pointer, rather
9491 than value_from_longest.
9492 (print_variant_part): Add `offset' parameter. Replace
9493 `outer_valaddr' parameter by a new `outer_offset' parameter.
9494 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9495 (ada_value_print): Use
9496 value_contents_for_printing/value_embedded_offset, rather than
9498 (print_record): Add `offset' parameter, and adjust to pass it
9500 (print_field_values): Add `offset' parameter. Replace
9501 `outer_valaddr' parameter by a new `outer_offset' parameter.
9502 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9503 Use value_contents_for_printing/value_embedded_offset, rather than
9505 * d-valprint.c (dynamic_array_type): Use
9506 value_contents_for_printing/value_embedded_offset, rather than
9508 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9509 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9510 (java_print_value_fields): Take `offset' into account. Don't
9511 re-adjust `valaddr'. Instead pass down adjusted offsets.
9512 (java_val_print): Take `embedded_offset' into account. Pass it to
9513 java_print_value_fields.
9514 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9515 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9516 down adjusted offsets.
9517 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9518 (f_val_print): Take `embedded_offset' into account.
9520 2011-01-21 Joel Brobecker <brobecker@adacore.com>
9522 * inflow.c: Include "gdbcmd.h".
9523 (interactive_mode): New static global, moved here from top.c.
9524 (show_interactive_mode): New function, moved here from top.c.
9525 use gdb_has_a_terminal instead of input_from_terminal_p to
9526 determine the current mode.
9527 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9529 (_initialize_inflow): Add the "set/show interactive-mode"
9530 commands. Moved here from top.c, after having adjusted slightly
9532 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9534 (input_from_terminal_p): Remove handling of "interactive-mode"
9535 setting, moved to infow.c.
9536 (init_main): Remove creation of the "set/show interactive-mode"
9537 commands, moved to inflow.c.
9539 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9541 * NEWS: Add entry for native ia64-hpux support.
9543 2011-01-19 Tom Tromey <tromey@redhat.com>
9546 * thread.c (free_thread): Free 'name'.
9547 (print_thread_info): Emit thread name. Change CLI output.
9548 (thread_name_command): New function.
9549 (do_captured_thread_select): Emit newline.
9550 (_initialize_thread): Register 'thread name' command.
9551 * target.h (struct target_ops) <to_thread_name>: New field.
9552 (target_thread_name): New macro.
9553 * target.c (update_current_target): Handle to_thread_name.
9554 * python/py-infthread.c (thpy_get_name): New function.
9555 (thpy_set_name): Likewise.
9556 (thread_object_getset): Add "name".
9557 * linux-nat.c (linux_nat_thread_name): New function.
9558 (linux_nat_add_target): Set to_thread_name.
9559 * gdbthread.h (struct thread_info) <name>: New field.
9561 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9563 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9564 (ada_val_print_1): Likewise.
9566 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9568 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9569 upper limit address is not greater than the function end address
9570 when the upper limit could not be computed using the debugging
9573 2011-01-17 Tom Tromey <tromey@redhat.com>
9575 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9577 * utils.c: Include gdb_regex.h.
9578 (do_regfree_cleanup): New function.
9579 (make_regfree_cleanup): Likewise.
9580 (get_regcomp_error): Likewise.
9581 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9583 2011-01-17 Tom Tromey <tromey@redhat.com>
9585 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9588 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9590 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9591 for internal variables.
9592 (last_was_structop): New static variable.
9593 (COMPLETE): New token.
9594 (field_exp): New rule to group all '.' suffix handling.
9595 Add mark_struct_expression calls when approriate to be able
9596 to correctly find fields for completion.
9597 (yylex): Adapt to handle field completion and set INTVAR when
9600 2011-01-14 Yao Qi <yao@codesourcery.com>
9602 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9603 save_reggroup, restore_reggroup and all_reggroup.
9605 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9607 * ada-valprint. (ada_printchar): Use the correct type length
9608 in call to ada_emit_char.
9609 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9611 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9613 * solib-som.h (hpux_major_release): Declare variable here.
9614 * solib-som.c: Remove <sys/utsname.h> header.
9615 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9616 (hpux_major_release): Make global, change default value to
9617 DEFAULT_HPUX_MAJOR_RELEASE.
9618 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9619 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9620 Add "solib-som.h" header.
9621 (set_hpux_major_release): New function.
9622 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9624 2011-01-14 Mike Frysinger <vapier@gentoo.org>
9626 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9628 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9630 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9631 new-line at end of warning message.
9632 (ia64_hpux_store_register): Remove trailing new-line at end of
9634 * ia64-hpux-tdep.c: Rephrase comment.
9635 * solib-ia64-hpux.c (struct dld_info): Change type of field
9636 dld_flags from "long long" to ULONGEST.
9638 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9640 * target.h (deprecated_child_ops): Delete declaration.
9641 * target.c (deprecated_child_ops): Delete definition.
9643 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9645 * Makefile.in (hpux-thread.o): Delete rule.
9646 * configure.ac: Don't check for HPUX DCE threads support.
9647 * configure, config.in: Regenerate.
9648 * hppa-hpux-nat.c (child_suppress_run): Delete.
9649 (hppa_hpux_child_can_run): Delete.
9650 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9651 * hpux-thread.c: Delete.
9653 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9655 * hpux-thread.c (hpux_pid_to_str): Delete.
9657 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9659 * ada-valprint.c (ada_emit_char): Remove strange code.
9660 Check that c is <= UCHAR_MAX before passing it to isascii.
9661 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9663 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9665 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9666 to the case where instream is stdin.
9668 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9670 * ia64-tdep.h (struct regcache): Forward declare.
9671 (struct ia64_infcall_ops): New struct type.
9672 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9674 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9675 Renames ia64_find_global_pointer.
9676 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9677 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9678 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9680 (ia64_infcall_ops): New static global constant.
9681 (ia64_gdbarch_init): Set tdep->infcall_ops.
9682 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9683 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9684 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9685 (ia64_hpux_dummy_code): New static global constant.
9686 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9687 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9688 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9690 (ia64_hpux_infcall_ops): New static global constant.
9691 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9692 for inferior function calls to work properly on ia64-hpux.
9694 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9696 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9697 * ia64-tdep.h (struct frame_info): forward declaration.
9698 (struct gdbarch_tdep): Add field size_of_register_frame.
9699 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9700 to determine the size of the register frame.
9701 (ia64_size_of_register_frame): New function.
9702 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9703 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9704 (IA64_HPUX_UREG_REASON): New macro.
9705 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9707 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9708 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9709 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9712 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9714 Add support for ia64-hpux.
9715 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9716 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9718 * configure.host: Add handling for ia64-hpux hosts. Add associated
9720 * configure.tgt: Add handling for ia64-hpux targets.
9721 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9722 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9723 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9725 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9727 [ttrace] Compute thread list immediately after attach.
9728 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9730 (inf_ttrace_attach): Use it.
9732 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9734 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9735 if we could not determine the frame's function address. Instead,
9736 use the frame's PC, and then continue.
9738 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9740 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9741 not already defined.
9743 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9745 * ia64-tdep.c (ia64_struct_type_p): New function.
9746 (ia64_extract_return_value): Handle integral values that are
9747 less than 8 bytes long.
9748 (ia64_push_dummy_call): Likewise.
9750 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9752 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9753 floatformat_ia64_ext.
9754 (floatformat_ia64_ext_big): New static const.
9755 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9757 2011-01-12 Tom Tromey <tromey@redhat.com>
9759 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9761 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9762 (mi_cmd_thread_list_ids): Likewise.
9763 (mi_cmd_data_list_changed_registers): Likewise.
9764 (mi_cmd_data_list_register_values): Likewise.
9765 (mi_cmd_data_write_register_values): Likewise.
9766 (mi_cmd_data_evaluate_expression): Likewise.
9767 (mi_cmd_data_read_memory): Likewise.
9768 (mi_cmd_data_read_memory_bytes): Likewise.
9769 (mi_cmd_data_write_memory): Likewise.
9770 (mi_cmd_enable_timings): Likewise.
9771 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9772 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9773 (mi_cmd_var_delete): Likewise.
9774 (mi_cmd_var_set_format): Likewise.
9775 (mi_cmd_var_show_format): Likewise.
9776 (mi_cmd_var_info_num_children): Likewise.
9777 (mi_cmd_var_list_children): Likewise.
9778 (mi_cmd_var_info_type): Likewise.
9779 (mi_cmd_var_info_expression): Likewise.
9780 (mi_cmd_var_show_attributes): Likewise.
9781 (mi_cmd_var_assign): Likewise.
9782 (mi_cmd_var_update): Likewise.
9783 (mi_cmd_enable_pretty_printing): Likewise.
9784 (mi_cmd_var_set_update_range): Likewise.
9785 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9787 (mi_cmd_target_file_put): Likewise.
9788 (mi_cmd_target_file_delete): Likewise.
9789 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9791 (mi_cmd_stack_info_depth): Likewise.
9792 (mi_cmd_stack_list_locals): Likewise.
9793 (mi_cmd_stack_list_args): Likewise.
9794 (mi_cmd_stack_select_frame): Likewise.
9795 (mi_cmd_stack_select_frame): Likewise.
9796 (mi_cmd_stack_info_frame): Likewise.
9797 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9799 (mi_cmd_file_list_exec_source_files): Likewise.
9800 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9801 (mi_cmd_env_cd): Likewise.
9802 (mi_cmd_env_path): Likewise.
9803 (mi_cmd_env_dir): Likewise.
9804 (mi_cmd_inferior_tty_show): Likewise.
9805 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9806 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9807 (mi_cmd_break_watch): Likewise.
9809 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9811 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9812 (ppc_linux_insert_hw_breakpoint): Likewise.
9813 (ppc_linux_remove_hw_breakpoint): Likewise.
9814 (ppc_linux_insert_watchpoint): Likewise.
9816 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9817 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 PR fortran/11104 and DWARF unbound arrays detection.
9820 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9821 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9822 unspecified upper bound.
9823 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9824 variables array_size_array, tmp_type and offset_item. New variable
9825 array. Remove call to f77_get_upperbound. New variables array_type
9826 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9827 the final call to deprecated_set_value_type.
9829 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9831 Make value allocations more lazy.
9832 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9833 instead of allocate_value and set_value_lazy when possible.
9834 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
9835 instead of allocate_value and set_value_lazy.
9836 * findvar.c (value_of_register_lazy): Likewise.
9837 (read_var_value): Remove V preallocation, call just check_typedef in
9838 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
9839 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9840 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
9841 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
9842 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
9843 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
9844 the end, remove set_value_lazy there.
9845 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9846 instead of allocate_value and set_value_lazy when possible.
9847 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9848 * value.c (allocate_computed_value): Use allocate_value_lazy instead
9849 of allocate_value and set_value_lazy.
9850 (value_from_contents_and_address): Use allocate_value_lazy instead of
9851 allocate_value and set_value_lazy when possible.
9853 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9855 * disasm.c (dump_insns): Support dumping opcodes for MI.
9856 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
9857 dumping of instruction opcodes.
9859 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
9861 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
9864 2011-01-11 Tom Tromey <tromey@redhat.com>
9866 * thread.c (do_captured_thread_select): Emit newline before
9869 2011-01-11 Michael Snyder <msnyder@vmware.com>
9871 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
9872 * score-tdep.c: Ditto.
9873 * score-tdep.h: Ditto.
9874 * ser-base.c: Ditto.
9875 * ser-go32.c: Ditto.
9878 * ser-mingw.c: Ditto.
9879 * ser-pipe.c: Ditto.
9881 * ser-unix.c: Ditto.
9882 * sh64-tdep.c: Ditto.
9883 * shnbsd-nat.c: Ditto.
9887 * solib-darwin.c: Ditto.
9888 * solib-frv.c: Ditto.
9890 * solib-irix.c: Ditto.
9891 * solib-osf.c: Ditto.
9892 * solib-pa64.c: Ditto.
9893 * solib-som.c: Ditto.
9894 * solib-spu.c: Ditto.
9895 * solib-sunos.c: Ditto.
9896 * solib-svr4.c: Ditto.
9898 * sol-thread.c: Ditto.
9902 * sparc64-linux-tdep.c: Ditto.
9903 * sparc64-tdep.c: Ditto.
9904 * sparc-linux-nat.c: Ditto.
9905 * sparc-linux-tdep.c: Ditto.
9906 * sparc-sol2-nat.c: Ditto.
9907 * sparc-sol2-tdep.c: Ditto.
9908 * sparc-tdep.c: Ditto.
9909 * sparc-tdep.h: Ditto.
9910 * spu-tdep.c: Ditto.
9911 * stabsread.c: Ditto.
9912 * stabsread.h: Ditto.
9920 * target-descriptions.c: Ditto.
9921 * target-descriptions.h: Ditto.
9923 * target-memory.c: Ditto.
9924 * terminal.h: Ditto.
9927 * tracepoint.c: Ditto.
9928 * tracepoint.h: Ditto.
9929 * trad-frame.h: Ditto.
9930 * typeprint.c: Ditto.
9932 2011-01-11 Michael Snyder <msnyder@vmware.com>
9934 * ui-file.c: Comment cleanup, mostly periods and spaces.
9939 * v850-tdep.c: Ditto.
9940 * valarith.c: Ditto.
9942 * valprint.c: Ditto.
9943 * valprint.h: Ditto.
9948 * vax-tdep.c: Ditto.
9952 * windows-nat.c: Ditto.
9953 * windows-tdep.c: Ditto.
9954 * xcoffread.c: Ditto.
9955 * xcoffsolib.c: Ditto.
9956 * xml-support.c: Ditto.
9957 * xstormy16-tdep.c: Ditto.
9958 * xtensa-tdep.c: Ditto.
9959 * xtensa-tdep.h: Ditto.
9961 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9963 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
9964 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
9966 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9967 Thiago Jung Bauermann <bauerman@br.ibm.com>
9969 Implement support for PowerPC BookE ranged watchpoints.
9971 (struct breakpoint_ops) <resources_needed>: New method.
9972 Initialize to NULL in all existing breakpoint_ops instances.
9973 (struct breakpoint) <exact>: New field.
9974 (target_exact_watchpoints): Declare external global.
9975 * breakpoint.c (target_exact_watchpoints): New global flag.
9976 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
9977 b->enable_state to bp_enabled before calling
9978 hw_watchpoint_used_count.
9979 (hw_watchpoint_used_count): Iterate over all bp_locations in a
9980 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
9982 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
9983 if the watchpoint is exact.
9984 (resources_needed_watchpoint): New function.
9985 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
9986 (watch_command_1): Set b->exact if the user asked for an exact
9987 watchpoint and one can be set.
9988 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
9989 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
9990 the user asks for an exact watchpoint and one can be set. Return
9991 number of needed debug registers to watch the expression.
9992 * gdbtypes.c (is_scalar_type): New function, based on
9993 valprint.c:scalar_type_p.
9994 (is_scalar_type_recursive): New function.
9995 * gdbtypes.h (is_scalar_type_recursive): Declare.
9996 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
9997 handle regions when ranged watchpoints are available.
9998 (create_watchpoint_request): New function.
9999 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10000 create_watchpoint_request.
10001 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10002 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10003 `set powerpc' and `show powerpc' commands.
10004 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10005 Mention documentation comment in the target macro.
10006 (target_region_ok_for_hw_watchpoint): Document return value.
10008 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10010 * breakpoint.c (update_watchpoint): Decide on using a software or
10011 hardware watchpoint after the bp_locations are created.
10013 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10015 Convert hardware watchpoints to use breakpoint_ops.
10016 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10017 <insert_location>: ... this. Return int instead of void.
10018 Accept pointer to struct bp_location instead of pointer to
10019 struct breakpoint. Adapt all implementations.
10020 (breakpoint_ops) <remove>: Rename to...
10021 <remove_location>: ... this. Accept pointer to struct bp_location
10022 instead of pointer to struct breakpoint. Adapt all implementations.
10023 * breakpoint.c (insert_catchpoint): Delete function.
10024 (insert_bp_location): Call the watchpoint or catchpoint's
10025 breakpoint_ops.insert method.
10026 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10027 breakpoint_ops.remove method.
10028 (insert_watchpoint, remove_watchpoint): New functions.
10029 (watchpoint_breakpoint_ops): New structure.
10030 (watch_command_1): Initialize the OPS field.
10031 * inf-child.c (inf_child_insert_fork_catchpoint)
10032 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10033 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10034 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10036 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10037 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10038 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10039 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10040 * target.c (update_current_target): Change default implementation of
10041 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10042 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10043 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10044 to_set_syscall_catchpoint to return_one.
10045 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10046 (debug_to_insert_exec_catchpoint): Report return value.
10047 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10048 (to_insert_exec_catchpoint): Change declaration to return int instead
10051 2011-01-11 Michael Snyder <msnyder@vmware.com>
10053 * arm-tdep.c: Internationalization.
10055 * charset.c: Ditto.
10056 * fork-child.c: Ditto.
10057 * nto-procfs.c: Ditto.
10058 * ppc-sysv-tdep.c: Ditto.
10060 * remote-mips.c: Ditto.
10062 * rs6000-nat.c: Ditto.
10063 * rs6000-tdep.c: Ditto.
10067 * xml-support.c: Ditto.
10068 * mi/mi-cmd-break.c: Ditto.
10069 * mi/mi-cmd-var.c: Ditto.
10070 * mi/mi-interp.c: Ditto.
10071 * mi/mi-main.c: Ditto.
10073 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10075 * remote-sim.c (gdbsim_store_register): Update API to
10076 sim_store_register to check more error conditions.
10078 2011-01-10 Michael Snyder <msnyder@vmware.com>
10080 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10081 * nto-tdep.c: Ditto.
10082 * nto-tdep.h: Ditto.
10083 * objc-exp.y: Ditto.
10084 * objc-lang.c: Ditto.
10085 * objfiles.c: Ditto.
10086 * objfiles.h: Ditto.
10087 * observer.c: Ditto.
10088 * opencl-lang.c: Ditto.
10091 * parser-defs.h: Ditto.
10094 * posix-hdep.c: Ditto.
10095 * ppcbug-rom.c: Ditto.
10096 * ppc-linux-nat.c: Ditto.
10097 * ppc-linux-tdep.c: Ditto.
10098 * ppc-linux-tdep.h: Ditto.
10099 * ppcnbsd-tdep.c: Ditto.
10100 * ppcobsd-tdep.c: Ditto.
10101 * ppcobsd-tdep.h: Ditto.
10102 * ppc-sysv-tdep.c: Ditto.
10103 * ppc-tdep.h: Ditto.
10104 * printcmd.c: Ditto.
10105 * proc-abi.c: Ditto.
10106 * proc-flags.c: Ditto.
10108 * proc-utils.h: Ditto.
10109 * progspace.h: Ditto.
10110 * prologue-value.c: Ditto.
10111 * prologue-value.h: Ditto.
10112 * psympriv.h: Ditto.
10113 * psymtab.c: Ditto.
10114 * p-typeprint.c: Ditto.
10115 * p-valprint.c: Ditto.
10116 * ravenscar-sparc-thread.c: Ditto.
10117 * ravenscar-thread.c: Ditto.
10118 * ravenscar-thread.h: Ditto.
10120 * regcache.c: Ditto.
10121 * regcache.h: Ditto.
10123 * remote-fileio.c: Ditto.
10124 * remote-fileio.h: Ditto.
10126 * remote-m32r-sdi.c: Ditto.
10127 * remote-mips.c: Ditto.
10128 * remote-sim.c: Ditto.
10129 * rs6000-aix-tdep.c: Ditto.
10130 * rs6000-nat.c: Ditto.
10131 * rs6000-tdep.c: Ditto.
10133 2011-01-10 Michael Snyder <msnyder@vmware.com>
10135 * charset.c (validate): Internationalization.
10136 * coffread.c (read_one_sym): Ditto.
10137 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10138 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10139 * inflow.c (new_tty): Ditto.
10140 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10141 * m32c-tdep.c (m32c_return_value): Ditto.
10142 * mep-tdep.c (mep_store_return_value): Ditto.
10143 * score-tdep.c (score7_fetch_insn): Ditto.
10144 * ser-mingw.c (pipe_windows_open): Ditto.
10145 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10146 * spu-tdep.c (spu_register_type): Ditto.
10147 * tracepoint.c (trace_find_command): Ditto.
10148 * valarith.c (value_pos): Ditto.
10150 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10152 * ada-valprint.c (printstr): Minor comment reformatting.
10154 2011-01-08 Michael Snyder <msnyder@vmware.com>
10156 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10159 2011-01-08 Michael Snyder <msnyder@vmware.com>
10161 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10162 * hppa-hpux-tdep.c: Ditto.
10163 * hppa-linux-nat.c: Ditto.
10164 * hppa-linux-tdep.c: Ditto.
10165 * hppanbsd-tdep.c: Ditto.
10166 * hppa-tdep.c: Ditto.
10167 * hppa-tdep.h: Ditto.
10168 * hpux-thread.c: Ditto.
10169 * i386-cygwin-tdep.c: Ditto.
10170 * i386-darwin-nat.c: Ditto.
10171 * i386gnu-nat.c: Ditto.
10172 * i386-linux-nat.c: Ditto.
10173 * i386-linux-tdep.c: Ditto.
10174 * i386-nat.c: Ditto.
10175 * i386-nat.h: Ditto.
10176 * i386nbsd-tdep.c: Ditto.
10177 * i386-sol2-nat.c: Ditto.
10178 * i386-stub.c: Ditto.
10179 * i386-tdep.c: Ditto.
10180 * i386-tdep.h: Ditto.
10181 * i387-tdep.c: Ditto.
10182 * ia64-linux-nat.c: Ditto.
10183 * ia64-linux-tdep.c: Ditto.
10184 * ia64-tdep.c: Ditto.
10185 * infcall.c: Ditto.
10186 * infcall.h: Ditto.
10188 * inferior.c: Ditto.
10189 * inferior.h: Ditto.
10190 * infloop.c: Ditto.
10193 * interps.c: Ditto.
10194 * interps.h: Ditto.
10195 * iq2000-tdep.c: Ditto.
10196 * irix5-nat.c: Ditto.
10200 * jv-lang.c: Ditto.
10201 * jv-lang.h: Ditto.
10202 * jv-typeprint.c: Ditto.
10203 * jv-valprint.c: Ditto.
10204 * language.c: Ditto.
10205 * language.h: Ditto.
10206 * linespec.c: Ditto.
10207 * linux-fork.c: Ditto.
10208 * linux-nat.c: Ditto.
10209 * linux-thread-db.c: Ditto.
10210 * lm32-tdep.c: Ditto.
10212 2011-01-08 Michael Snyder <msnyder@vmware.com>
10214 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10215 * m2-lang.c: Ditto.
10216 * m2-typeprint.c: Ditto.
10217 * m2-valprint.c: Ditto.
10218 * m32c-tdep.c: Ditto.
10219 * m32r-linux-nat.c: Ditto.
10220 * m32r-rom.c: Ditto.
10221 * m32r-tdep.c: Ditto.
10222 * m32r-tdep.h: Ditto.
10223 * m68hc11-tdep.c: Ditto.
10224 * m58klinux-nat.c: Ditto.
10225 * m68k-tdep.c: Ditto.
10226 * m88k-tdep.c: Ditto.
10227 * m88k-tdep.h: Ditto.
10228 * machoread.c: Ditto.
10229 * macrocmd.c: Ditto.
10230 * macroexp.c: Ditto.
10231 * macrotab.c: Ditto.
10234 * mdebugread.c: Ditto.
10235 * mdebugread.h: Ditto.
10236 * memattr.c: Ditto.
10237 * memattr.h: Ditto.
10238 * memory-map.h: Ditto.
10239 * mep-tdep.c: Ditto.
10240 * microblaze-rom.c: Ditto.
10241 * microblaze-tdep.c: Ditto.
10242 * minsyms.c: Ditto.
10243 * mips-irix-tdep.c: Ditto.
10244 * mips-linux-nat.c: Ditto.
10245 * mips-linux-tdep.c: Ditto.
10246 * mips-linux-tdep.h: Ditto.
10247 * mipsnbsd-nat.c: Ditto.
10248 * mipsnbsd-tdep.c: Ditto.
10249 * mipsread.c: Ditto.
10250 * mips-tdep.c: Ditto.
10251 * mips-tdep.h: Ditto.
10252 * mn10300-linux-tdep.c: Ditto.
10253 * mn10300-tdep.c: Ditto.
10254 * mn10300-tdep.h: Ditto.
10255 * monitor.c: Ditto.
10256 * monitor.h: Ditto.
10257 * moxie-tdep.c: Ditto.
10258 * moxie-tdep.h: Ditto.
10259 * mt-tdep.c: Ditto.
10261 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10263 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10265 2011-01-08 Robert Millan <rmh@gnu.org>
10267 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10269 2011-01-07 Michael Snyder <msnyder@vmware.com>
10271 * charset.c (_initialize_charset): Fix typo in string.
10273 2011-01-07 Michael Snyder <msnyder@vmware.com>
10275 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10277 * tui/tui-layout.c (tui_set_layout_for_display_command):
10278 Split line so that operator goes to beginning of line.
10279 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10280 assignment out of if statement.
10282 2011-01-07 Michael Snyder <msnyder@vmware.com>
10284 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10285 * ada-lang.h: Ditto.
10286 * ada-tasks.c: Ditto.
10287 * ada-valprint.c: Ditto.
10288 * aix-threads.c: Ditto.
10289 * alpha-linux-nat.c: Ditto.
10290 * alpha-linux-tdep.c: Ditto.
10291 * alpha-mdebug-tdep.c: Ditto.
10292 * alpha-nat.c: Ditto.
10293 * alpha-osf1-tdep.c: Ditto.
10294 * alpha-tdep.c: Ditto.
10295 * alphabsd-nat.c: Ditto.
10296 * alphabsd-tdep.c: Ditto.
10297 * amd64-darwin-tdep.c: Ditto.
10298 * amd64-linux-nat.c: Ditto.
10299 * amd64-linux-tdep.c: Ditto.
10300 * amd64-sol2-tdep.c: Ditto.
10301 * amd64-tdep.c: Ditto.
10302 * amd64-fbsd-tdep.c: Ditto.
10303 * amd64-nbsd-tdep.c: Ditto.
10304 * amd64-obsd-tdep.c: Ditto.
10305 * amd64-linux-nat.c: Ditto.
10306 * amd64-linux-tdep.c: Ditto.
10307 * arm-tdep.c: Ditto.
10308 * arm-tdep.h: Ditto.
10309 * armnbsd-nat.c: Ditto.
10310 * avr-tdep.c: Ditto.
10311 * bfin-tdep.c: Ditto.
10312 * bsd-kvm.c: Ditto.
10313 * c-typeprintc: Ditto.
10314 * c-valprint.c: Ditto.
10315 * coff-pe-read.h: Ditto.
10316 * coffreead.c: Ditto.
10317 * cris-tdep.c: Ditto.
10319 * darwin-nat-info.c: Ditto.
10320 * darwin-nat.c: Ditto.
10321 * dbug-rom.c: Ditto.
10322 * dbxread.c: Ditto.
10325 * dec-thread.c: Ditto.
10327 * demangle.c: Ditto.
10328 * dicos-tdep.c: Ditto.
10329 * dictionary.c: Ditto.
10330 * dictionary.h: Ditto.
10331 * dink32-rom.c: Ditto.
10333 * doublest.c: Ditto.
10335 * dummy-frame.c: Ditto.
10336 * dwarf2-frame.c: Ditto.
10337 * dwarf2expr.c: Ditto.
10338 * dwarf2loc.c: Ditto.
10339 * dwarf2read.c: Ditto.
10340 * elfread.c: Ditto.
10341 * environ.c: Ditto.
10343 * event-top.h: Ditto.
10344 * exceptions.c: Ditto.
10345 * exceptions.h: Ditto.
10347 * expprint.c: Ditto.
10348 * expression.h: Ditto.
10352 * f-typeprint.c: Ditto.
10353 * f-valprint.c: Ditto.
10354 * fbsd-nat.c: Ditto.
10355 * findvar.c: Ditto.
10356 * fork-child.c: Ditto.
10359 * frv-linux-tdep.c: Ditto.
10360 * frv-tdep.c: Ditto.
10362 * gdb-stabs.h: Ditto.
10363 * gdb_assert.h: Ditto.
10364 * gdb_string.h: Ditto.
10365 * gdb_thread_db.h: Ditto.
10366 * gdb_wait.h: Ditto.
10367 * gdbarch.sh: Ditto.
10368 * gdbcore.h: Ditto.
10369 * gdbthread.h: Ditto.
10370 * gdbtypes.c: Ditto.
10371 * gdbtypes.h: Ditto.
10372 * gnu-nat.c: Ditto.
10373 * gnu-nat.h: Ditto.
10374 * gnu-v2-abi.c: Ditto.
10375 * gnu-v3-abi.c: Ditto.
10376 * go32-nat.c: Ditto.
10377 * gdbarch.c: Regenerate.
10378 * gdbarch.h: Regenerate.
10380 2011-01-07 Michael Snyder <msnyder@vmware.com>
10382 * ax-gdb.c: Adjust some long output strings.
10383 * breakpoint.c: Ditto.
10384 * charset.c: Ditto.
10386 * infcall.c: Ditto.
10388 * linux-nat.c: Ditto.
10389 * solib-pa64.c: Ditto.
10390 * solib-som.c: Ditto.
10392 2011-01-06 Tom Tromey <tromey@redhat.com>
10396 * python/python.c (GdbMethods): Add "newest_frame" method.
10397 * python/python-internal.h (gdbpy_newest_frame): Declare.
10398 * python/py-frame.c (gdbpy_newest_frame): New function.
10400 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10402 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10403 * jit.c (jit_debug): New variable.
10404 (show_jit_debug): New function.
10405 (struct target_buffer): Use ULONGEST.
10406 (bfd_open_from_target_memory): Likewise.
10407 (jit_register_code, jit_inferior_init): Add debug output.
10408 (_initialize_jit): Register "debug jit" command.
10410 2011-01-06 Tom Tromey <tromey@redhat.com>
10412 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10413 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10416 2011-01-06 Tom Tromey <tromey@redhat.com>
10418 * python/py-frame.c (frapy_block): Use get_frame_block.
10420 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10422 Do not stop on SIGPRIO signals by default
10423 * infrun.c (_initialize_infrun): Unset signal_stop and
10424 signal_print for TARGET_SIGNAL_PRIO.
10426 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10428 * ada-tasks.c: Fix style violation in comment.
10430 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10432 * linespec.c (decode_compound, find_method): Remove trailing \n
10433 at end of error string.
10434 * solib-irix.c (irix_current_sos): Likewise.
10435 * varobj.c (uninstall_variable): Likewise.
10437 2011-01-06 Joel Brobecker <brobecker@adacore.com>
10439 * copyright.py: New script.
10440 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10441 Launch emacs without exec'ing. Call copyright.py afterwards.
10443 2011-01-05 Michael Snyder <msnyder@vmware.com>
10445 * addrmap.c: Shorten lines of >= 80 columns.
10446 * arch-utils.c: Ditto.
10447 * arch-utils.h: Ditto.
10449 * ax-general.c: Ditto.
10451 * blockframe.c: Ditto.
10452 * breakpoint.c: Ditto.
10453 * buildsym.c: Ditto.
10455 * c-typeprint.c: Ditto.
10456 * charset.c: Ditto.
10457 * coffread.c: Ditto.
10458 * command.h: Ditto.
10459 * corelow.c: Ditto.
10461 * cp-namespace.c: Ditto.
10462 * cp-support.c: Ditto.
10463 * dbug-rom.c: Ditto.
10464 * dbxread.c: Ditto.
10468 * dictionary.c: Ditto.
10470 * doublest.c: Ditto.
10471 * dwarf2-frame.c: Ditto.
10472 * dwarf2expr.c: Ditto.
10473 * dwarf2loc.c: Ditto.
10474 * dwarf2read.c: Ditto.
10475 * elfread.c: Ditto.
10477 * event-loop.c: Ditto.
10478 * event-loop.h: Ditto.
10479 * exceptions.h: Ditto.
10481 * expprint.c: Ditto.
10482 * expression.h: Ditto.
10484 * f-valprint.c: Ditto.
10485 * findcmd.c: Ditto.
10486 * frame-base.c: Ditto.
10487 * frame-unwind.c: Ditto.
10488 * frame-unwind.h: Ditto.
10492 * gdb-stabs.h: Ditto.
10493 * gdb_assert.h: Ditto.
10494 * gdb_dirent.h: Ditto.
10495 * gdb_obstack.h: Ditto.
10496 * gdbcore.h: Ditto.
10497 * gdbtypes.c: Ditto.
10498 * gdbtypes.h: Ditto.
10499 * inf-ttrace.c: Ditto.
10500 * infcall.c: Ditto.
10504 * inline-frame.h: Ditto.
10505 * language.c: Ditto.
10506 * language.h: Ditto.
10507 * libunwind-frame.c: Ditto.
10508 * libunwind-frame.h: Ditto.
10509 * linespec.c: Ditto.
10510 * linux-nat.c: Ditto.
10511 * linux-nat.h: Ditto.
10512 * linux-thread-db.c: Ditto.
10513 * machoread.c: Ditto.
10514 * macroexp.c: Ditto.
10515 * macrotab.c: Ditto.
10518 * mdebugread.c: Ditto.
10519 * memattr.c: Ditto.
10520 * minsyms.c: Ditto.
10521 * monitor.c: Ditto.
10522 * monitor.h: Ditto.
10523 * objfiles.c: Ditto.
10524 * objfiles.h: Ditto.
10526 * p-typeprint.c: Ditto.
10527 * p-valprint.c: Ditto.
10529 * printcmd.c: Ditto.
10530 * proc-events.c: Ditto.
10532 * progspace.c: Ditto.
10533 * progspace.h: Ditto.
10534 * psympriv.h: Ditto.
10535 * psymtab.c: Ditto.
10537 * regcache.c: Ditto.
10538 * regcache.h: Ditto.
10539 * remote-fileio.c: Ditto.
10541 * ser-mingw.c: Ditto.
10542 * ser-tcp.c: Ditto.
10543 * ser-unix.c: Ditto.
10546 * solib-frv.c: Ditto.
10547 * solib-irix.c: Ditto.
10548 * solib-osf.c: Ditto.
10549 * solib-pa64.c: Ditto.
10550 * solib-som.c: Ditto.
10551 * solib-sunos.c: Ditto.
10552 * solib-svr4.c: Ditto.
10553 * solib-target.c: Ditto.
10555 * somread.c: Ditto.
10557 * stabsread.c: Ditto.
10558 * stabsread.c: Ditto.
10561 * symfile-mem.c: Ditto.
10562 * symfile.c: Ditto.
10563 * symfile.h: Ditto.
10564 * symmisc.c: Ditto.
10567 * target-descriptions.c: Ditto.
10568 * target-memory.c: Ditto.
10571 * terminal.h: Ditto.
10574 * tracepoint.c: Ditto.
10575 * tracepoint.h: Ditto.
10576 * ui-file.c: Ditto.
10577 * ui-file.h: Ditto.
10579 * user-regs.c: Ditto.
10580 * user-regs.h: Ditto.
10582 * valarith.c: Ditto.
10584 * valprint.c: Ditto.
10585 * valprint.h: Ditto.
10590 * xcoffread.c: Ditto.
10591 * xcoffsolib.c: Ditto.
10592 * xcoffsolib.h: Ditto.
10593 * xml-syscall.c: Ditto.
10594 * xml-tdesc.c: Ditto.
10596 2011-01-05 Michael Snyder <msnyder@vmware.com>
10598 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10599 * cli/cli-decode.c: Ditto.
10600 * cli/cli-dump.c: Ditto.
10601 * cli/cli-logging.c: Ditto.
10602 * cli/cli-script.c: Ditto.
10603 * cli/cli-setshow.c: Ditto.
10604 * common/signals.c: Ditto.
10605 * mi/mi-cmd-break.c: Ditto.
10606 * mi/mi-cmd-disas.c: Ditto.
10607 * mi/mi-cmd-stack.c: Ditto.
10608 * mi/mi-cmd-var.c: Ditto.
10609 * mi/mi-cmds.c: Ditto.
10610 * mi/mi-common.h: Ditto.
10611 * mi/mi-console.c: Ditto.
10612 * mi/mi-interp.c: Ditto.
10613 * mi/mi-main.c: Ditto.
10614 * osf-share/cma_attr.c: Ditto.
10615 * osf-share/cma_deb_core.h: Ditto.
10616 * osf-share/cma_debug_client.h: Ditto.
10617 * osf-share/cma_handle.h: Ditto.
10618 * osf-share/cma_mutex.h: Ditto.
10619 * osf-share/cma_stack_int.h: Ditto.
10620 * osf-share/cma_tcb_defs.h: Ditto.
10621 * python/py-auto-load.c: Ditto.
10622 * python/py-breakpoint.c: Ditto.
10623 * python/py-cmd.c: Ditto.
10624 * python/py-frame.c: Ditto.
10625 * python/py-objfile.c: Ditto.
10626 * python/py-param.c: Ditto.
10627 * python/py-progspace.c: Ditto.
10628 * python/py-symbol.c: Ditto.
10629 * python/py-value.c: Ditto.
10630 * python/python-internal.h: Ditto.
10631 * python/python.c: Ditto.
10632 * tui/tui-data.c: Ditto.
10633 * tui/tui-disasm.c: Ditto.
10634 * tui/tui-hooks.c: Ditto.
10635 * tui/tui-io.c: Ditto.
10636 * tui/tui-layout.c: Ditto.
10637 * tui/tui-regs.c: Ditto.
10638 * tui/tui-source.c: Ditto.
10639 * tui/tui-stack.c: Ditto.
10640 * tui/tui-win.c: Ditto.
10641 * tui/tui-windata.c: Ditto.
10642 * tui/tui-winsource.c: Ditto.
10644 2011-01-05 Joel Brobecker <brobecker@adacore.com>
10646 * configure.ac, gdb.1: Copyright year update.
10648 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10650 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10651 this_pc_in_block, morestack_msym and morestack_name. Check for
10652 "__morestack" minimal symbol there.
10654 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10656 * symfile.c (find_sym_fns): Add call to dont_repeat.
10658 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10660 Copyright year update in most files (performed by copyright.sh).
10662 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10664 * top.c (print_gdb_version): Update copyright year in version output.
10666 For older changes see ChangeLog-2010.
10672 version-control: never