1 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Implement basic support for DW_TAG_GNU_call_site.
4 * block.c: Include gdbtypes.h and exceptions.h.
5 (call_site_for_pc): New function.
6 * block.h (call_site_for_pc): New declaration.
7 * defs.h: Include hashtab.h.
8 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
10 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
11 ctx_no_push_dwarf_reg_entry_value.
12 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
13 (dwarf_block_to_dwarf_reg): New function.
14 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
15 (ctx_no_push_dwarf_reg_entry_value): New function.
16 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
17 push_dwarf_reg_entry_value.
18 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
20 * dwarf2loc.c: Include gdbcmd.h.
21 (dwarf_expr_ctx_funcs): New forward declaration.
22 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
23 (dwarf_expr_reg_to_entry_parameter)
24 (dwarf_expr_push_dwarf_reg_entry_value): New.
25 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
26 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
27 (needs_dwarf_reg_entry_value): New function.
28 (needs_frame_ctx_funcs): Install it.
29 (_initialize_dwarf2loc): New function.
30 * dwarf2loc.h (entry_values_debug): New declaration.
31 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
32 (read_call_site_scope): New forward declaration.
33 (process_full_comp_unit): Copy call_site_htab.
34 (process_die): Support DW_TAG_GNU_call_site.
35 (read_call_site_scope): New function.
36 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
37 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
38 (cleanup_htab): Delete.
39 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
40 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
41 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
42 FIELD_LOC_KIND_DWARF_BLOCK.
43 * gdbtypes.h (enum field_loc_kind): New entry
44 FIELD_LOC_KIND_DWARF_BLOCK.
45 (struct main_type): New loc entry dwarf_block.
46 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
47 (TYPE_FIELD_DWARF_BLOCK): New.
48 * python/py-type.c: Include dwarf2loc.h.
49 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
50 internal_error call on unknown FIELD_LOC_KIND.
51 * symtab.h (struct symtab): New field call_site_htab.
52 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
53 (core_addr_hash, core_addr_eq): New functions.
55 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
59 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
60 calling_convention under func_stuff there.
61 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
62 (init_type) <TYPE_CODE_FUNC>: Likewise.
63 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
64 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
65 * gdbtypes.h (enum type_specific_kind): Change
66 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
67 (struct main_type) <type_specific>: Change calling_convention to
68 func_stuff. Move calling_convention to ...
69 (struct func_type): ... this new struct.
70 (INIT_FUNC_SPECIFIC): New #define.
71 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
73 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
75 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
76 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
77 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
78 ctx->ref_addr_size. Handle its invalid value.
79 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
80 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
81 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
82 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
83 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
84 (dwarf2_per_cu_ref_addr_size): New function.
86 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
89 * dwarf2read.c (per_cu_header_read_in): New function.
90 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
91 variables cu_header_local and cu_headerp.
93 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
95 Fix initial language detection with -readnow.
96 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
97 * symfile.h (struct quick_symbol_functions): State find_symbol_file
98 searches only for global symbols.
100 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
102 Fix printed anonymous struct name.
103 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
104 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
105 (anonymous_struct_prefix): New function.
106 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
107 (dwarf2_name): Strip for anonymous structs any prefixes.
109 2011-10-07 Doug Evans <dje@google.com>
111 * python/lib/gdb/printing.py (register_pretty_printer): New argument
114 * python/lib/gdb/printing.py: Whitespace cleanup.
116 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
119 2011-10-07 Pedro Alves <pedro@codesourcery.com>
121 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
122 * amd64-linux-nat.c (amd64_linux_dr_set_control)
123 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
124 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
125 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
126 (arm_linux_remove_watchpoint): Adjust.
127 * i386-linux-nat.c (i386_linux_dr_set_control)
128 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
129 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
130 (ia64_linux_remove_watchpoint): Adjust.
131 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
132 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
133 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
134 (ppc_linux_insert_mask_watchpoint)
135 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
136 (ppc_linux_remove_watchpoint): Adjust.
137 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
140 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
142 * windows-nat.c: Include wchar.h to avoid compiler warnings.
143 (clear_win32_environment): New function for Cygwin to clear out
145 (windows_create_inferior): Prepare new environment from in_env
148 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
151 * python/py-value.c (valpy_call): Check that arguments are
153 (is_intlike): Remove call to CHECK_TYPEDEF.
154 (valpy_nonzero): Catch GDB exceptions.
155 (valpy_absolute): Ditto.
156 (valpy_lazy_string): Ditto.
158 (valpy_get_is_optimized_out): Ditto.
160 (valpy_float): Ditto.
161 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
162 (valpy_richcompare): Ditto.
164 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
166 * inferior.h (disable_randomization): Declare.
167 * infrun.c (disable_randomization): New global variable.
168 (show_disable_randomization): New function.
169 (set_disable_randomization): Likewise.
170 (_initialize_infrun): Install set/show disable-randomization
172 * linux-nat.c (disable_randomization): Remove.
173 (show_disable_randomization): Likewise.
174 (set_disable_randomization): Likewise.
175 (_initialize_linux_nat): No longer install set/show
176 disable-randomization commands here.
177 (linux_nat_supports_disable_randomization): New function.
178 (linux_nat_add_target): Install it.
179 * remote.c (PACKET_QDisableRandomization): New enum value.
180 (remote_protocol_packets): Support QDisableRandomization.
181 (_initialize_remote): Likewise.
182 (remote_supports_disable_randomization): New function.
183 (init_remote_ops): Install it.
184 (extended_remote_supports_disable_randomization): New function.
185 (init_extended_remote_ops): Install it.
186 (extended_remote_disable_randomization): New function.
187 (extended_remote_create_inferior_1): Call it.
188 * target.h (struct target_ops): Add to_supports_disable_randomization.
189 (target_supports_disable_randomization): Add prototype.
190 * target.c (target_supports_disable_randomization): New function.
191 (find_default_supports_disable_randomization): Likewise.
192 (init_dummy_target): Install it.
194 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
196 Allow Python notification of new object-file loadings.
197 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
198 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
199 Add build rule for this file.
200 * python/py-event.h (emit_new_objfile_event): New prototype.
201 (newobjfile): New Python event emitter.
202 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
203 Python event registry.
204 * python/py-inferior.c: Include objfiles.h
205 (python_new_objfile): New function.
206 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
208 * python/py-newobjfileevent.c: New file.
209 * python-internal.h (gdbpy_initialize_new_objfile_event): New
211 * python/python.c (_initialize_python): Add
212 gdbpy_initialize_new_objfile_event call.
213 * NEWS: Add item for new Python event "gdb.newobjfile"
215 2011-10-05 Tristan Gingold <gingold@adacore.com>
217 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
218 Extract the ravenscar task name from the symbol for the atcb.
220 2011-10-04 Paul Koning <paul_koning@dell.com>
222 * python/py-type.c (typy_make_iter): Add forward declaration.
223 (typy_fields_items): Use the gdb.Type iterator.
225 2011-10-04 Paul Koning <paul_koning@dell.com>
227 * NEWS: Add entry for Python gdb.Type mapping methods.
229 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
231 PR python/12691: Add the inferior to Python exited event
232 * python/py-exitedevent.c (create_exited_event_object): Add inferior
234 * python/py-event.h (emit_exited_event): Likewise
235 * python/-inferior.c (python_inferior_exit): Likewise
237 2011-10-03 Joel Brobecker <brobecker@adacore.com>
239 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
240 in output of -ada-task-info GDB/MI command.
242 2011-10-03 Joel Brobecker <brobecker@adacore.com>
244 * ada-lang.h (struct inferior): Declare.
245 (print_ada_task_info): Add declaration.
246 * ada-tasks.c (print_ada_task_info): Make non-static.
247 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
248 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
249 * mi/mi-main.c: #include "ada-lang.h".
250 (mi_cmd_list_features): Add "ada-task-info" to the list
251 of supported features.
252 (mi_cmd_ada_task_info): New function.
254 2011-10-03 Joel Brobecker <brobecker@adacore.com>
256 * python/python.c (python_run_simple_file): New function.
257 (source_python_script, source_python_script_for_objfile):
258 Replace call to PyRun_SimpleFile by call to
259 python_run_simple_file.
261 2011-10-03 Paul Koning <paul_koning@dell.com>
263 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
264 (value_to_value_object): Fetch value if it was lazy.
266 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
269 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
270 Rearrange the code for it.
272 2011-10-02 Joel Brobecker <brobecker@adacore.com>
274 * breakpoint.c (bkpt_print_recreate): Add call to
275 print_recreate_thread.
277 2011-09-29 Mike Frysinger <vapier@gentoo.org>
279 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
280 PTRACE_GETFDPIC_INTERP): Define.
282 2011-09-28 Yao Qi <yao@codesourcery.com>
284 * symfile.c (add_symbol_file_command): Update message on usage.
286 2011-09-28 Paul Koning <paul_koning@dell.com>
288 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
289 (typy_length, typy_get, typy_has_key, typy_make_iter)
290 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
291 (typy_iterator_iter, typy_iterator_iternext)
292 (typy_iterator_dealloc): New functions to implement standard
293 Python mapping methods on gdb.Type object.
294 (gdb.TypeIterator): New Python type.
295 * python/python-internal.h (gdbpy_iter_kind): New enum.
297 2011-09-28 David S. Miller <davem@davemloft.net>
299 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
300 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
301 * sparc-tdep.c (sparc_complex_floating_p): New function.
302 (sparc32_store_arguments): Handle complex floats.
303 (sparc32_extract_return_value): Likewise.
304 (sparc32_store_return_value): Likewise.
305 (sparc32_stabs_argument_has_addr): Likewise.
306 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
307 (sparc64_store_floating_fields): Handle complex floats.
308 (sparc64_store_arguments): Likewise.
309 (sparc64_store_return_value): Likewise.
311 2011-09-28 Eli Zaretskii <eliz@gnu.org>
313 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
314 before the change on 2006-12-09.
315 (windows_create_inferior) [!__CYGWIN__]: Restore code that
316 generates the environment block for CreateProcessA, modulo the
317 Cygwin-specific parts that are not needed here.
319 2011-09-27 Tristan Gingold <gingold@adacore.com>
321 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
322 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
323 (darwin_solib_get_all_image_info_addr_at_init): New function.
324 (darwin_solib_read_all_image_info_addr): Likewise.
325 (darwin_solib_create_inferior_hook): Use the above two functions.
326 * darwin-nat.c (darwin_execvp): Renames retval to res.
327 (darwin_read_write_inferior): Update comment.
328 (darwin_read_dyld_info): New function.
329 (darwin_xfer_partial): Handle DYLD_INFO.
331 2011-09-27 Stan Shebs <stan@codesourcery.com>
333 Add return address collection for tracepoints.
334 * tracepoint.c (encode_actions_1): Add case for $_ret.
335 (validate_actionline): Check for $_ret.
336 (trace_dump_actions): Ditto.
337 * ax-gdb.h (gen_trace_for_return_address): Declare.
338 * ax-gdb.c: Include arch-utils.h.
339 (gen_trace_for_return_address): New function.
340 (agent_command): Add return address special case.
341 * amd64-tdep.c: Include ax.h and ax-gdb.h.
342 (amd64_gen_return_address): New function.
343 (amd64_init_abi): Call it.
344 * i386-tdep.c: Include ax.h and ax-gdb.h.
345 (i386_gen_return_address): New function.
346 (i386_init_abi): Call it.
347 * arch-utils.h (default_gen_return_address): Declare.
348 * arch-utils.c (default_gen_return_address): New function.
349 * gdbarch.sh (gen_return_address): New method.
350 * gdbarch.h, gdbarch.c: Regenerate.
352 2011-09-23 Joseph Myers <joseph@codesourcery.com>
355 * i386-tdep.c (i386_frame_align): New.
356 (i386_gdbarch_init): Use i386_frame_align.
358 2011-09-23 Yao Qi <yao@codesourcery.com>
360 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
363 2011-09-22 Tristan Gingold <gingold@adacore.com>
365 * fork-child.c (fork_inferior): Add exec_fun parameter.
366 Call exec_fun or execvp.
367 * inferior.h: Adjust prototype.
368 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
369 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
370 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
371 * procfs.c (procfs_create_inferior): Ditto.
372 * darwin-nat.c (darwin_execvp): New function.
373 (darwin_create_inferior): Use it.
375 2011-09-22 Yao Qi <yao@codesourcery.com>
377 * infrun.c (context_switch): Print debug message when switching to
380 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
382 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
383 complex and vector types.
384 (s390_return_value_convention): Likewise.
386 (s390_value_from_register): Call check_typedef.
387 (extend_simple_arg): Likewise.
388 (alignment_of): Likewise.
389 (s390_push_dummy_call): Likewise.
390 (s390_return_value): Likewise.
392 2011-09-21 Joseph Myers <joseph@codesourcery.com>
394 * event-top.c (async_disconnect): If an exception is thrown from
395 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
397 * top.c (quit_cover): Return void and take no arguments.
398 * top.h (quit_cover): Update prototype.
400 2011-09-20 Joseph Myers <joseph@codesourcery.com>
402 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
403 current_uiout, not uiout.
405 2011-09-19 Doug Evans <dje@google.com>
407 * python/py-auto-load.c (source_section_scripts): Fix file
409 * python/python.c (source_python_script_for_objfile): Tweak comments.
411 2011-09-18 Yao Qi <yao@codesourcery.com>
412 Ulrich Weigand <ulrich.weigand@linaro.org>
414 Support displaced stepping for Thumb 16-bit insns.
415 * arm-tdep.c (THUMB_NOP) Define.
416 (thumb_copy_unmodified_16bit): New.
417 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
418 (thumb_copy_alu_reg): New.
419 (arm_copy_svc): Move some common code to ...
420 (install_svc): ... here. New.
421 (thumb_copy_svc): New.
422 (install_pc_relative): New.
423 (thumb_copy_pc_relative_16bit): New.
424 (thumb_decode_pc_relative_16bit): New.
425 (thumb_copy_16bit_ldr_literal): New.
426 (thumb_copy_cbnz_cbz): New.
427 (cleanup_pop_pc_16bit_all): New.
428 (thumb_copy_pop_pc_16bit): New.
429 (thumb_process_displaced_16bit_insn): New.
430 (thumb_process_displaced_32bit_insn): New.
431 (thumb_process_displaced_insn): process thumb instruction.
433 Support displaced stepping for Thumb 32-bit insns.
434 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
435 (thumb2_copy_preload): New.
436 (thumb2_copy_copro_load_store): New.
437 (thumb2_copy_b_bl_blx): New.
438 (thumb2_copy_alu_imm): New.
439 (thumb2_copy_load_reg_imm): New.
440 (thumb2_copy_load_literal): New
441 (thumb2_copy_block_xfer): New.
442 (thumb_32bit_copy_undef): New.
443 (thumb_32bit_copy_unpred): New.
444 (thumb2_decode_ext_reg_ld_st): New.
445 (thumb2_decode_svc_copro): New.
446 (decode_thumb_32bit_store_single_data_item): New.
447 (thumb_copy_pc_relative_32bit): New.
448 (thumb_decode_pc_relative_32bit): New.
449 (decode_thumb_32bit_ld_mem_hints): New.
450 (thumb2_copy_table_branch): New
451 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
454 2011-09-18 Yao Qi <yao@codesourcery.com>
456 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
457 (install_b_bl_blx): Likewise.
459 2011-09-17 Yao Qi <yao@codesourcery.com>
461 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
462 (install_load_store): ... this. New.
463 Change parameter BYTE to SIZE.
464 (arm_copy_ldr_str_ldrb_strb): Update caller.
465 (arm_decode_ld_st_word_ubyte): Update caller.
467 2011-09-17 Yao Qi <yao@codesourcery.com>
469 * infrun.c (displaced_step_fixup): Move some code ...
470 (displaced_step_restore): ... here. New function.
471 (handle_inferior_event): Cleanup displaced stepping state for both
472 child and parent when get forked or vforked event.
473 * regcache.c (get_thread_arch_aspace_regcache): New function.
474 get_thread_arch_regcache (): Call it.
476 2011-09-16 Joel Brobecker <brobecker@adacore.com>
478 * ada-tasks.c (print_ada_task_info): New function, merging
479 short_task_info and info_tasks together. Reimplement using
480 ui-out instead of printing to stdout directly. Move the code
481 building and checking the task list here, instead of leaving it
482 in info_tasks_command.
483 (info_task): Move the code building and checking the task
484 list here, instead of leaving it in info_tasks_command.
485 (info_tasks_command): Delete code building and checking
486 the task list - moved elsewhere. Update calls to info_tasks
489 2011-09-16 Joel Brobecker <brobecker@adacore.com>
491 * ada-tasks.c (info_task): Delete parameter `from_tty'.
493 2011-09-16 Joel Brobecker <brobecker@adacore.com>
495 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
497 2011-09-16 Joel Brobecker <brobecker@adacore.com>
499 * ada-lang.h (ada_build_task_list): Remove parameter
501 * ada-tasks.c (ada_build_task_list): Remove parameter
502 `warn_if_null'. Adjust implementation and documentation.
503 (valid_task_id, ada_get_environment_task)
504 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
505 (info_tasks_command): Adjust implementation.
506 (task_command): Likewise.
507 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
508 to ada_build_task_list.
510 2011-09-16 Joel Brobecker <brobecker@adacore.com>
512 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
513 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
514 (ada_tasks_inferior_data_handle): New static global.
515 (get_ada_tasks_inferior_data): New function.
516 (ada_get_task_number, get_task_number_from_id, valid_task_id)
517 (ada_get_environment_task, iterate_over_live_ada_tasks)
518 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
520 (ada_set_current_inferior_known_tasks_addr): New function.
521 (read_known_tasks, ada_build_task_list, short_task_info)
522 (info_tasks, info_task, info_tasks_command, task_command_1)
523 (task_command, ada_task_list_changed): Adjust.
524 (ada_tasks_invalidate_inferior_data): New function.
525 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
526 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
527 * ada-lang.h (struct inferior): Add declaration.
528 (ada_task_list_changed): Update profile.
529 * remote-wtx-pd.c: #include "inferior.h".
530 (switch_to_pd_internal): Update call to ada_task_list_changed.
532 2011-09-16 Joel Brobecker <brobecker@adacore.com>
534 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
535 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
536 (atcb_fieldno): Delete these static globals.
537 (struct ada_tasks_pspace_data): New struct.
538 (ada_tasks_pspace_data_handle): New static global.
539 (get_ada_tasks_pspace_data): New function.
540 (ada_tasks_invalidate_pspace_data): New function.
541 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
542 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
543 (_initialize_tasks): Create this module's per-progspace
546 2011-09-16 Joel Brobecker <brobecker@adacore.com>
548 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
550 2011-09-16 Tristan Gingold <gingold@adacore.com>
552 * fork-child.c (fork_inferior): Update comment. Use alloca
553 instead of xmalloc for argv. Move len and shell_command
554 declarations in the block where they are used.
555 Only call execvp. Factorize failure code.
557 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
560 * parse.c (write_exp_elt): Change argument to pass a pointer of union
561 `exp_element' instead of an element of the same and make the function
563 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
564 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
565 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
566 Change argument of `write_exp_elt' function call.
567 Remove extra spaces from comments.
568 * parser-defs.h (write_exp_elt): Remove prototype.
570 2011-09-15 Paul Koning <paul_koning@dell.com>
572 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
573 count of item appended to list.
574 * python/py-type.c (typy_fields): Likewise.
576 2011-09-15 Paul Koning <paul_koning@dell.com>
578 * MAINTAINERS (Write After Approval): Add myself to the list.
580 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
583 * linux-fork.c (checkpoint_command): Disallow checkpointing of
584 processes with multiple threads.
585 (inf_has_multiple_thread_cb): New function.
586 (inf_has_multiple_threads): New function.
588 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
590 PR Python/12692 Add gdb.selected_inferior() to Python interface.
591 * python/py-inferior.c (GdbMethods): New Python method definition.
593 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
595 Handle multiple breakpoint hits in Python interface:
596 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
597 variable to breakpoints.
598 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
599 bps instead of single breakpoint. Fix some space typos.
600 * python/py-stopevent.c (create_breakpoint_event_object): Rename
601 variable to breakpoints.
603 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
605 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
606 note if the breakpoint is internal.
608 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
610 * MAINTAINERS (Write After Approval): Add myself to the list
612 2011-09-14 Pedro Alves <pedro@codesourcery.com>
614 * infrun.c (prepare_for_detach, wait_for_inferior)
615 (fetch_inferior_event): Don't flush the register cache.
616 * remote.c (struct stop_reply) <regcache>: Add comment.
618 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
620 Remove excessive DWARF expressions memory duplication.
621 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
623 (indirect_pieced_value): Remove variable result. Remove variable
624 back_to and its use for baton.data.
625 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
627 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
628 Update the function comment.
630 2011-09-13 Pedro Alves <pedro@codesourcery.com>
632 * inferior.h (ALL_INFERIORS): New.
633 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
634 for a stopped thread.
635 (thread_db_find_new_threads): Look for threads in all inferiors.
637 2011-09-13 Pedro Alves <pedro@codesourcery.com>
639 * breakpoint.c (update_watchpoint): Handle the case of the
640 watchpoint to update not being in the breakpoint list yet.
641 (hw_watchpoint_use_count): New, factored out from
642 hw_watchpoint_used_count.
643 (hw_watchpoint_used_count): Rename to ...
644 (hw_watchpoint_used_count_others): ... this. Add `except'
645 parameter. Don't count resources of `except'. Use
646 hw_watchpoint_use_count.
648 2011-09-13 Pedro Alves <pedro@codesourcery.com>
650 * gdbthread.h (enum thread_state): Moved here.
651 (struct thread_info): Rename `executing_' field to `executing' and
653 * thread.c (enum thread_state): Moved to gdbthread.h.
654 (new_thread, add_thread_silent, delete_thread_1)
655 (any_live_thread_of_process, thread_alive, set_running)
656 (set_running, is_thread_state, any_running, is_executing)
657 (set_executing, finish_thread_state, print_thread_info)
658 (do_captured_thread_select): Adjust.
660 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
662 Fix compatibility with gcc < 4.3 and non-gcc compilers.
663 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
665 2011-09-12 Pedro Alves <pedro@codesourcery.com>
666 Matt Rice <ratmice@gmail.com>
670 * interps.c (struct interp) <interpreter_out>: Delete field.
671 (interp_new): Remove the data and uiout parameters and adjust.
672 (interp_set): Only set the current_uiout from the interpreter's
673 uiout after initializing the interpreter. Adjust call to
675 (interp_ui_out): Adjust to call procs->ui_out_proc.
676 (interp_data, interp_name): New.
677 * interps.h (interp_init_ftype): Add `self' parameter.
678 (interp_ui_out_ftype): New typedef.
679 (struct interp_procs) <ui_out_proc>: New method pointer.
680 (interp_new): Remove the data and uiout parameters.
681 (interp_data, interp_name): Declare.
682 * tui/tui-interp.c (tui_init): Adjust prototype.
684 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
685 tui_out here. Adjust call to interp_new.
686 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
687 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
689 (_initialize_cli_interp): Install it. Adjust call to interp_new.
690 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
691 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
692 Initialize mi->uiout depending on the mi_version as extracted from
693 the interpreter's name.
695 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
696 interp_new. Don't allocate the ui_out's of the interpreters here.
698 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
700 * solib.c (solib_used): New function.
701 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
702 by another so_list object before freeing it.
704 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
707 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
710 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
713 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
714 (amd64_skip_xmm_prologue): ... this new function. Describe its
715 parameters. No longer use amd64_prologue_line_bug.
716 * defs.h (producer_is_gcc_ge_4): New declaration.
717 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
718 (process_full_comp_unit): Update its caller. Remove
719 amd64_prologue_line_bug initialization.
720 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
721 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
723 2011-09-09 Pedro Alves <pedro@codesourcery.com>
725 * linux-nat.h (enum resume_kind): New.
726 (struct lwp_info) <last_resume_kind>: New field.
727 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
728 resume_stop on the new lwp.
729 (add_lwp): Set last_resume_kind as resume_continue by default.
730 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
731 (resume_lwp): New, factored out from resume_callback. Also check
732 for pending status in lp->waitstatus.
733 (resume_callback): Reimplement.
734 (resume_clear_callback): Set last_resume_kind as resume_stop.
735 (resume_set_callback): Set last_resume_kind as resume_continue.
736 (linux_nat_resume, linux_handle_extended_wait): Set
738 (running_callback): Also check lp->waitstatus for pending events.
739 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
741 (stop_and_resume_callback): Don't re-resume if the core wanted the
742 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
743 using an invalidated pointer.
744 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
745 SIGSTOPs if the core wanted the LWP to stop.
746 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
747 wanted the lwp to stop. If the core wanted the lwp to stop, and
748 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
749 of TARGET_SIGNAL_STOP.
750 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
751 here. Instead, signal the lwp, and set the last_resume_kind to
754 2011-09-09 Pedro Alves <pedro@codesourcery.com>
756 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
757 -1 (error), if the lwp exits right after attaching.
759 2011-09-08 Doug Evans <dje@google.com>
761 * py-cmd.c: Some minor formatting fixes.
762 (gdbpy_parse_command_name): Rename text arg to name, make const.
764 * python-internal.h (gdbpy_parse_command_name): Update.
766 * cli/cli-decode.c (add_cmd): Add comment.
768 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
771 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
772 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
773 * dwarf2read.c (process_full_comp_unit): Initialize
774 amd64_prologue_line_bug.
775 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
777 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
779 Fix TUI screen corruption.
780 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
783 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
785 * findvar.c (read_var_value): Never return NULL, throw an error
786 instead. Update the function comment. State symbol name in the error
788 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
790 * stack.c (print_frame_args): Likewise.
791 * valops.c (value_of_variable): Likewise.
793 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
795 * stack.c (print_frame_args): New variable except. Wrap
796 read_var_value and common_val_print into TRY_CATCH.
798 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
800 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
801 caller to value_of_this.
802 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
804 * valops.c (value_of_this): Remove parameter complain and variable ret.
805 Update function comment. Never return NULL by this code.
806 (value_of_this_silent): New function.
807 * value.h (value_of_this): Remove parameter complain.
808 (value_of_this_silent): New declaration.
810 2011-09-07 Yao Qi <yao@codesourcery.com>
812 * gdbthread.h (struct thread_info): Remove fields
813 `stepping_through_solib_after_catch' and
814 `stepping_through_solib_catchpoints'.
815 * infrun.c (init_thread_stepping_state): Update.
816 (process_event_stop_test, currently_stepping): Update.
817 (currently_stepping_or_nexting_callback): Update.
819 2011-09-07 Yao Qi <yao@codesourcery.com>
821 * gdbthread.h (struct thread_info): Comment on field
822 `step_after_step_resume_breakpoint'.
824 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
826 * remote.c (remote_console_output): Reindent.
828 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
830 * frame.c (has_stack_frames): Check for currently selected
833 2011-09-06 Pedro Alves <pedro@codesourcery.com>
835 * event-top.h (MAXPROMPTS, struct prompts): Delete.
836 (set_async_annotation_level, set_async_prompt, pop_prompt)
837 (push_prompt, new_async_prompt): Delete declarations.
838 * top.h (get_prompt, set_prompt): Change prototype.
839 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
841 * top.c (command_loop):
842 (top_prompt): New global.
843 (get_prefix, set_prefix, get_suffix, ): Delete.
844 (get_prompt, set_prompt): Rewrite.
845 (show_new_async_prompt): Rename to ...
846 (show_prompt): ... this.
847 (init_main): Adjust. Don't handle --annotate=2 here.
848 * event-top.c (new_async_prompt): Delete.
849 (the_prompts): Delete.
850 (more_to_come): Make static.
851 (display_gdb_prompt): Use top_level_prompt() to compute the top
852 level prompt, and don't notify the before_prompt observers
853 directly here. Always trick readline into not trying to display
854 the prompt if sync_execution and displaying the primary prompt.
855 If displaying a local/secondary prompt, always show it, even if
856 sync_execution is set.
857 (change_annotation_level): Delete.
858 (top_level_prompt): New, based on change_annotation_level.
859 (push_prompt, pop_prompt): Delete.
860 (async_disable_stdin): No longer pushes prompt.
861 (command_line_handler): No longer pushes or pops prompt. If more
862 input is expected, call display_gdb_prompt with an explicit empty
864 (async_stop_sig): Adjust.
865 (set_async_annotation_level, set_async_prompt): Delete.
866 * python/python.c (before_prompt_hook): Adjust.
868 2011-09-05 Pedro Alves <pedro@codesourcery.com>
872 * infrun.c (fetch_inferior_event): Check if there's a selected
873 thread before checking if the selected thread is executing.
875 2011-09-05 Pedro Alves <pedro@codesourcery.com>
877 * inf-loop.c (execute_command): Don't check if the current thread
878 if running before synchronously waiting for command completion.
879 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
881 (normal_stop): Call async_enable_stdin here.
882 * inf-loop.c (inferior_event_handler): Don't call
883 async_enable_stdin, nor handle "set exec-done-display" here.
885 2011-09-04 Joel Brobecker <brobecker@adacore.com>
889 2011-09-04 Joel Brobecker <brobecker@adacore.com>
891 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
893 2011-09-04 Joel Brobecker <brobecker@adacore.com>
895 * NEWS: Add entry for OpenBSD/NetBSD build failure.
897 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
899 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
901 2011-09-02 Matt Rice <ratmice@gmail.com>
904 * event-top.c (cli_command_loop): Replace readline setup with
905 direct call to display_gdb_prompt.
906 (display_gdb_prompt): Do not call observer mechanism during
907 synchronous execution.
909 2011-09-02 Pedro Alves <pedro@codesourcery.com>
911 * linux-nat.c (in_pid_list_p): New.
912 (linux_record_stopped_pid): Delete.
913 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
914 already attached to the LWP. Return an indication if so.
915 (linux_nat_filter_event): Adjust.
916 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
917 returning an indication to ignore this thread.
919 2011-09-02 Pedro Alves <pedro@codesourcery.com>
921 * top.c: Include interps.h.
922 (execute_command): If the target can async, but the interpreter is
923 in sync mode, synchronously wait for the command to finish before
925 (execute_command_to_string): Force the interpreter to sync mode.
926 * infrun.c: Include interps.h.
927 (fetch_inferior_event): Don't restore the prompt yet if the
928 interpreter is in sync mode.
929 * interps.c (interpreter_async): New global.
930 * interps.h (interpreter_async): Declare.
931 * inf-loop.c: Include interps.h.
932 (inferior_event_handler): Don't print the language change or run
933 breakpoint commands yet if the interpreter in is sync mode.
934 * main.c (captured_command_loop): Flip the interpreter to async
936 * cli/cli-script.c: Include interps.h.
937 (execute_user_command, while_command, if_command): Force the
938 interpreter to sync mode.
939 * python/python.c: Include interps.h.
940 (python_command, execute_gdb_command): Force the interpreter to
943 2011-09-02 Pedro Alves <pedro@codesourcery.com>
945 * value.c (show_convenience): Catch errors thrown while printing
946 each internal variable.
947 * infrun.c (validate_siginfo_access): New function.
948 (siginfo_value_read, siginfo_value_write): Call it.
950 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
953 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
954 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
957 2011-08-29 Yao Qi <yao@codesourcery.com>
959 * solib-dsbt.c (bfd_lookup_symbol): Removed.
961 (enable_break2): Update caller.
962 * solib-frv.c (bfd_lookup_symbol): Removed.
964 (enable_break2): Update caller.
965 * solib-pa64.c (bfd_lookup_symbol): Removed.
967 * solib-svr4.c (bfd_lookup_symbol): Removed.
968 (cmp_name_and_sec_flags): New.
969 (enable_break): Update caller.
970 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
971 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
972 (gdb_bfd_lookup_symbol): New.
973 * solib.h: Functions declarations.
975 2011-08-29 Yao Qi <yao@codesourcery.com>
977 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
980 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
982 Fix TUI stepi on code without symbols.
983 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
986 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
989 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
990 and the static keyword.
991 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
992 Make prefix an array.
993 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
994 * mi/mi-main.c (get_register): Remove stb initialization and the static
997 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
999 Code cleanup - make mi_opt const.
1000 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1002 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1003 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1004 (mi_cmd_env_dir): Likewise.
1005 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1006 (mi_cmd_target_file_put): Likewise.
1007 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1008 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1009 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1010 (mi_valid_noargs): Make opts const.
1011 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1012 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1013 (mi_cmd_data_read_memory): Likewise.
1014 (mi_cmd_data_read_memory_bytes): Likewise.
1015 (mi_cmd_data_write_memory): Likewise.
1017 2011-08-26 Matt Rice <ratmice@gmail.com>
1019 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1020 bcache_xmalloc, replace bcache_xmalloc with call to
1021 psymbol_bcache_init for psymbol_cache.
1022 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1024 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1026 * inf-loop.c (inferior_event_handler): Add exception_print in
1029 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1032 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1033 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1034 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1035 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1036 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1037 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1038 * infrun.c (fetch_inferior_event): Call
1039 make_bpstat_clear_actions_cleanup.
1040 * top.c (execute_command): New variable cleanup_if_error, call
1041 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1042 * utils.c (do_bpstat_clear_actions_cleanup)
1043 (make_bpstat_clear_actions_cleanup): New functions.
1045 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1047 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1048 either the parent or the child forks. Rename a couple locals.
1050 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1052 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1053 library call. Avoid reading the `status' local if all waitpid
1056 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1058 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1059 opening /proc/PID/task always succeeds.
1061 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1063 * linespec.c (symtab_from_filename): Check for the end of string.
1065 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1068 * varobj.c (cplus_describe_child): Add the keyword
1069 'class' to the output of the method when dealing
1070 with a cast to a base class.
1072 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1074 No functionality change.
1075 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1076 function comment a reference, new variables tp and bs, move here code
1077 from throw_exception.
1078 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1079 describe it in the comment.
1080 * exceptions.c (throw_exception): Remove variable tp, move the code for
1081 bpstat_clear_actions to bpstat_clear_actions.
1083 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
1085 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1086 * linux-nat.c: Include linux-procfs.h.
1087 (linux_proc_get_tgid): Move to ...
1088 * common/linux-procfs.c: ... here. New file.
1089 * common/linux-procfs.h: New file.
1090 * linux-thread-db.c: Include linux-procfs.h.
1091 * Makefile.in: Update dependencies.
1092 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1093 * config/arm/linux.mh: Likewise.
1094 * config/i386/linux.mh: Likewise.
1095 * config/i386/linux64.mh: Likewise.
1096 * config/ia64/linux.mh: Likewise.
1097 * config/m32r/linux.mh: Likewise.
1098 * config/m68k/linux.mh: Likewise.
1099 * config/mips/linux.mh: Likewise.
1100 * config/pa/linux.mh: Likewise.
1101 * config/pa/linux.mh: Likewise.
1102 * config/powerpc/linux.mh: Likewise.
1103 * config/powerpc/ppc64-linux.mh: Likewise.
1104 * config/powerpc/spu-linux.mh: Likewise.
1105 * config/sparc/linux.mh: Likewise.
1106 * config/sparc/linux64.mh: Likewise.
1107 * config/xtensa/linux.mh: Likewise.
1109 2011-08-24 Hui Zhu <teawater@gmail.com>
1111 * tracepoint.c (cond_string_is_same): New function.
1112 (find_matching_tracepoint): Add condition check
1113 by cond_string_is_same.
1115 2011-08-23 Josh Matthews <josh@joshmatthews.net>
1117 Fix build error in Darwin port.
1118 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
1120 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1123 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
1124 (command_line_is_silent): New function.
1125 (bpstat_do_actions_1): No longer use commands_left, use
1126 command_line_is_silent for commands.
1127 (bpstat_alloc): Remove clearing of commands_left.
1128 (bpstat_stop_status): Remove initialization of commands_left, use
1129 command_line_is_silent.
1130 * breakpoint.h (struct bpstats): Remove commands_left.
1132 2011-08-18 Keith Seitz <keiths@redhat.com>
1135 * cp-name-parser.y (struct demangle_info): Remove unused
1138 (allocate_info): Change return type to struct demangle_info *.
1139 Always allocate a new demangle_info.
1140 Remove unused PREV pointer.
1141 (cp_new_demangle_parse_info): New function.
1142 (cp_demangled_name_parse_free): New function.
1143 (do_demangled_name_parse_free_cleanup): New function.
1144 (make_cleanup_cp_demangled_name_parse_free): New function.
1145 (cp_demangled_name_to_comp): Change return type to
1146 struct demangle_parse_info *.
1147 Allocate a new storage for each call.
1148 (main): Update usage for cp_demangled_name_to_comp
1150 * cp-support.h (struct demangle_parse_info): New structure.
1151 (cp_demangled_name_to_comp): Update API change for
1153 (cp_new_demangle_parse_info): Declare.
1154 (make_cleanup_cp_demangled_name_parse_free): New declaration.
1155 (cp_demangled_name_parse_free): Declare.
1156 * cp-support.c (cp_canonicalize_string): Update API
1157 change for cp_demangled_name_to_comp.
1158 (mangled_name_to_comp): Likewise.
1159 Return struct demangle_parse_info, too.
1160 (cp_class_name_from_physname): Update mangled_name_to_comp
1162 (method_name_from_physname): Likewise.
1163 (cp_func_name): Update API change for cp_demangled_name_to_comp.
1164 (cp_remove_params): Likewise.
1165 * python/py-type.c (typy_legacy_template_argument): Likewise.
1167 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
1168 (cp_merge_demangle_parse_infos): Declare.
1169 * cp-support.c (ignore_typedefs): New file global.
1170 (copy_string_to_obstack): New function.
1171 (inspect_type): New function.
1172 (replace_typedefs): New function.
1173 (replace_typedefs_qualified_name): New function.
1174 (cp_canonicalize_string_no_typedefs): New function.
1175 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
1176 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
1177 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
1178 instead of cp_canonicalize_string.
1179 (find_method): Likewise.
1180 (decode_compound): Before looking up the name, call
1181 cp_canonicalize_string_no_typedefs.
1182 (decode_variable): Likewise.
1184 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
1185 Tom Tromey <tromey@redhat.com>
1186 Matt Rice <ratmice@gmail.com>
1188 * python/lib/gdb/prompt.py: New file.
1189 * python/lib/gdb/command/prompt.py: New file.
1190 * NEWS: Document set extended-prompt and gdb.prompt library
1192 2011-08-16 Yao Qi <yao@codesourcery.com>
1194 * tic6x-linux-tdep.c: Move const arrays definition from here...
1195 * tic6x-tdep.c: to here ...
1197 2011-08-14 Yao Qi <yao@codesourcery.com>
1199 * NEWS: New port to Texas Instruments TMS320C6x.
1201 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
1202 Bernd Schmidt <bernds@codesourcery.com>
1203 Yao Qi <yao@codesourcery.com>
1205 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
1206 * solib-dsbt.c: New file. Support DSBT shared object.
1207 * tic6x-linux-tdep.c: New file.
1208 * tic6x-tdep.c: New file.
1209 * tic6x-tdep.h: New file.
1211 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
1212 Yao Qi <yao@codesourcery.com>
1214 * remote.c (PACKET_qXfer_fdpic): New enum value.
1215 (remote_protocol_features): Add qXfer:fdpic:read packet.
1216 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
1217 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
1218 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
1220 2011-08-14 Yao Qi <yao@codesourcery.com>
1222 Target description for tic6x.
1223 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
1224 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
1225 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
1226 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
1227 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
1228 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
1229 * features/tic6x-c64xp-linux.xml: New.
1230 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
1231 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
1232 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
1233 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
1234 * regformats/tic6x-c64xp.dat,
1235 regformats/tic6x-c62x-linux.dat: Generated.
1236 * regformats/tic6x-c64x-linux.dat,
1237 regformats/tic6x-c64xp-linux.dat: Generated.
1238 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
1239 features/tic6x-*.c files.
1240 Add regformats/tic6x-*.dat files.
1242 2011-08-12 Doug Evans <dje@google.com>
1244 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
1245 * python/py-symbol.c (sympy_get_type): New function.
1246 (symbol_object_getset): Add "type".
1248 2011-08-12 Pedro Alves <pedro@codesourcery.com>
1252 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
1254 (tui_show_register_group): Don't store a byte buffer in the data
1256 (tui_register_format): Skip registers with an empty name.
1257 (tui_get_register): Store a struct value in the data element's
1258 value field instead of a byte buffer holding the raw register
1259 contents. Account for optimized-out and unavailable registers
1260 when comparing register contents.
1262 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1264 * printcmd.c (current_display_number): Update comment.
1265 (disable_current_display_cleanup): Delete.
1266 (do_one_display): Use make_cleanup_restore_integer. Gracefully
1267 catch errors thrown while evaluating and printing the display.
1269 2011-08-09 Tom Tromey <tromey@redhat.com>
1271 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
1273 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1275 * elfread.c (elf_symtab_read): Rework comments.
1276 * maint.c (maintenance_command): Ditto.
1277 * somread.c (som_symtab_read): Ditto.
1278 * solib.c (solib_find, solib_map_sections, update_solib_list)
1279 (solib_add, info_sharedlibrary_command, solib_name_from_address)
1280 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1281 (sharedlibrary_command, no_shared_libraries): Ditto.
1282 * solib-irix.c (locate_base, disable_break, enable_break)
1283 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1284 (irix_current_sos, irix_open_symbol_file_object)
1285 (irix_special_symbol_handling): Ditto.
1286 * solib-sunos.c (locate_base, first_link_map_member)
1287 (sunos_current_sos, disable_break, enable_break)
1288 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1290 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1291 (open_symbol_file_object, svr4_current_sos, enable_break)
1292 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1294 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1295 (frv_current_sos, enable_break, frv_special_symbol_handling)
1296 (frv_solib_create_inferior_hook): Ditto.
1297 * solist.h (struct target_so_ops): Extend the comments of the
1298 special_symbol_handling, current_sos and open_symbol_file_object
1301 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
1303 * python/lib/gdb/__init__.py: Auto-load files in command and
1304 function directories.
1305 * python/python.c (finish_python_initialization): Use
1307 * python/lib/gdb/command/pretty_printers.py: Self register
1309 * NEWS: Document auto-loading.
1311 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1313 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1314 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1315 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
1317 2011-08-08 Tom Tromey <tromey@redhat.com>
1319 * breakpoint.c (clean_up_filters): Remove.
1320 (catch_syscall_split_args): Use VEC_cleanup.
1322 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1324 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1325 (main): Uncomment "Demangling error\n".
1327 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1329 * solib-target.c (segment_attributes): Make them static.
1330 (section_attributes, library_children, library_attributes): Likewise.
1331 (library_list_children, library_list_attributes): Likesise.
1332 (library_list_elements): Likewise.
1334 2011-08-05 Pedro Alves <pedro@codesourcery.com>
1336 * exceptions.c (throw_exception): Don't disable the current
1338 * printcmd.c (disable_current_display_cleanup): New function.
1339 (do_one_display): Install a cleanup to disable the current display
1340 if doing the display throws.
1342 2011-08-05 Eli Zaretskii <eliz@gnu.org>
1344 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1345 initialization of the tp_new member to the corresponding
1346 gdbpy_initialize_* function.
1347 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1348 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1349 * python/py-function.c (gdbpy_initialize_functions): Likewise.
1350 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1351 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1353 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1355 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1356 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1357 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1358 references to current_uiout.
1360 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1362 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1363 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1364 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1365 * top.c (gdb_readline_wrapper): Adjust.
1366 * tui/tui-interp.c (tui_command_loop):
1367 (_initialize_tui_interp): Don't install it.
1369 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1371 * ui-out.h (uiout): Rename to ...
1372 (current_uiout): ... this.
1373 * ui-out.c (uiout): Rename to ...
1374 (current_uiout): ... this.
1375 * ada-lang.c (print_it_exception, print_one_exception)
1376 (print_mention_exception): Adjust.
1377 * breakpoint.c (watchpoint_check): Adjust.
1378 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1379 (default_collect_info, watchpoints_info, print_one_catch_fork)
1380 (print_one_catch_vfork, print_one_catch_syscall)
1381 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1382 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1383 (print_it_watchpoint, print_mention_watchpoint)
1384 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1385 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1386 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1387 (bkpt_print_mention, momentary_bkpt_print_it)
1388 (tracepoint_print_mention, update_static_tracepoint)
1389 (tracepoints_info, save_breakpoints): Adjust.
1390 * cli-out.c (field_separator): Adjust.
1391 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1392 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1393 * frame.c (get_current_frame): Adjust.
1394 * infcmd.c (run_command_1, print_return_value): Adjust.
1395 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1396 * infrun.c (print_end_stepping_range_reason): Adjust.
1397 (print_signal_exited_reason, print_exited_reason): Adjust.
1398 (print_signal_received_reason, print_no_history_reason): Adjust.
1399 * interps.c (interp_set): Adjust.
1400 * osdata.c (info_osdata_command): Adjust.
1401 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1402 * remote-fileio.c (remote_fileio_request): Adjust.
1403 * remote.c (show_remote_cmd): Adjust.
1404 * solib.c (info_sharedlibrary_command): Adjust.
1405 * source.c (print_source_lines_base): Adjust.
1406 * stack.c (print_stack_frame): Adjust.
1407 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1408 * symfile-mem.c (add_vsyscall_page): Adjust.
1409 * symfile.c (load_progress, generic_load)
1410 (print_transfer_performance): Adjust.
1411 * thread.c (info_threads_command, restore_selected_frame)
1412 (thread_command): Adjust.
1413 * top.c (make_cleanup_restore_ui_file): Adjust.
1414 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1415 (print_one_static_tracepoint_marker): Adjust.
1416 * cli/cli-cmds.c (print_disassembly): Adjust.
1417 * cli/cli-decode.c (print_doc_line): Adjust.
1418 * cli/cli-interp.c (safe_execute_command): Adjust.
1419 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1420 (handle_redirections): Adjust.
1421 * cli/cli-script.c (show_user_1): Adjust.
1422 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1423 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1424 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1425 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1426 (mi_cmd_env_dir): Adjust.
1427 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1428 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1429 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1430 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1431 (list_args_or_locals): Adjust.
1432 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1433 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1434 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1435 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1436 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1437 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1438 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1439 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1440 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1441 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1442 (list_available_thread_groups, mi_cmd_list_thread_groups)
1443 (mi_cmd_data_list_register_names)
1444 (mi_cmd_data_list_changed_registers)
1445 (mi_cmd_data_list_register_values, get_register)
1446 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1447 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1448 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1449 (mi_execute_command, mi_load_progress): Adjust.
1450 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1451 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1453 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1454 * tui/tui-interp.c (tui_command_loop): Adjust.
1455 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1457 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1459 * exceptions.c (struct catcher): Remove saved_uiout field.
1460 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1461 no longer save/resvore the global ui_out builder.
1462 (catch_exceptions_with_msg): Save/override/restore the global
1463 ui_out builder manually instead of relying on TRY_CATCH to do it.
1464 (catch_errors): Save/restore the global ui_out builder manually
1465 instead of relying on TRY_CATCH to do it.
1466 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1468 (TRY_CATCH): Adjust.
1469 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1470 the global ui_out builder manually instead of relying on TRY_CATCH
1473 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1475 * breakpoint.c (update_global_location_list): Ensure
1476 invariant 'first loc marked not duplicated and inserted,
1477 following locs marked duplicated/not inserted' is respected
1478 for multiple locations at the same address.
1479 (unduplicated_should_be_inserted) New function.
1480 (swap_insertion) New function.
1482 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1484 * stack.c (print_frame_arguments_choices): Comment typo fix.
1486 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1489 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1490 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1491 argument. Update callers.
1493 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1496 * doublest.c (convert_doublest_to_floatformat): Pass correct
1497 mantissa length to put_field.
1499 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1501 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1502 exception_print code path.
1503 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1504 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1505 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1507 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1510 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1511 Remove, merge them into ...
1512 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1513 variable args and its initialization.
1514 (struct print_args_args, print_args_stub): Remove, merge them into
1516 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1518 (do_gdb_disassembly): ... here. Remove variable args and its
1520 (print_frame): Remove variable args and its initialization, new
1521 variable gdbarch and numargs (from print_args_stub), inline here
1522 print_args_stub with a TRY_CATCH.
1523 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1525 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1526 New variable e, remove variable btargs and its initialization.
1528 2011-08-01 Tristan Gingold <gingold@adacore.com>
1530 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1532 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1534 * breakpoint.c (insert_bp_location): Document return value.
1535 (insert_breakpoint_locations): Fix documentation.
1536 (remove_breakpoints): Add documentation.
1538 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1540 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1541 argument. Update callers.
1543 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 * stack.c (print_frame_info): Comment typo fix.
1547 2011-07-29 Sterling Augustine <saugustine@google.com>
1549 * MAINTAINERS (Write After Approval): Add myself to the list.
1551 2011-07-29 Tom Tromey <tromey@redhat.com>
1553 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1554 (library_list_start_segment): Update.
1555 (library_list_start_section): Update.
1557 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1559 * varobj.c (value_get_print_value): Move hint check later into the
1560 function. Comment function. Free thevalue before reusing it.
1562 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1563 Pedro Alves <pedro@codesourcery.com>
1565 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1567 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1568 Assert the result kind.
1569 * value.h (value_one): Remove parameter lv.
1571 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 Fix crash on lval_computed values.
1574 * valops.c (value_zero): Use not_lval for lval_computed.
1576 2011-07-27 Tom Tromey <tromey@redhat.com>
1578 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1579 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1581 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1583 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1584 "ptype" by their typedefs difference.
1586 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * dwarf2expr.c (ctx_no_read_reg): New function.
1589 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1590 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1591 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1592 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1594 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1596 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1597 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1599 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1600 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1601 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1602 (ctx_no_get_base_type): Move the functions here.
1603 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1604 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1605 (ctx_no_get_base_type): New declarations.
1607 2011-07-27 Tom Tromey <tromey@redhat.com>
1609 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1611 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1612 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1614 2011-07-26 Sterling Augustine <saugustine@google.com>
1616 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1618 (dump_bfd_file): Likewise.
1620 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1622 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1623 (remote_hw_watchpoint_length_limit): New variable.
1624 (_initialize_remote) add set,show cmds for this new variable.
1625 * gdb.texinfo: document these new commands.
1626 * NEWS: Mention these new commands.
1628 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1630 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1631 true for software watchpoints.
1633 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1637 2011-07-26 Tom Tromey <tromey@redhat.com>
1639 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1640 * dwarf2read.c (read_indirect_string_at_offset): New function.
1641 (read_indirect_string): Use it.
1642 (dwarf_decode_macro_bytes): New function, taken from
1643 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1644 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1645 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1647 (struct dwarf2_per_objfile) <macro>: New field.
1648 (dwarf2_elf_names): Add .debug_macro.
1649 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1650 (dwarf2_locate_sections): Handle new section.
1651 (read_file_scope): Handle DW_AT_GNU_macros.
1652 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1654 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1656 * NEWS: Mention dcache configuration.
1657 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1658 (dcache_size, dcache_line_size): New variables.
1659 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1660 (struct dcache_block): Make it expandable.
1661 (struct dcache_struct): New field.
1662 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1663 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1664 (dcache_poke_byte, dcache_print_line): Adjust.
1665 (set_dcache_size, set_dcache_line_size): New functions.
1666 (set_dcache_command, show_dcache_command): New functions.
1667 (_initialize_dcache): Add new commands.
1669 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1671 * progspace.h (struct program_space): Add solib_add_generation.
1672 * infcmd.c (post_create_inferior): Only call solib_add if not
1674 * solib.c (solib_add): Increment solib_add_generation.
1676 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1678 Fix implicit pointer offsets.
1679 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1682 2011-07-25 Tom Tromey <tromey@redhat.com>
1684 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1686 (ada_exception_sal): Make 'ops' const.
1687 (ada_decode_exception_location): Likewise.
1688 (ada_decode_assert_location): Likewise.
1689 (catch_assert_command): Update.
1690 (catch_ada_exception_command): Update.
1691 (create_ada_exception_catchpoint): Make 'ops' const.
1692 * breakpoint.c (set_raw_breakpoint_without_location)
1693 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1695 (create_internal_breakpoint): Update.
1696 (init_raw_breakpoint_without_location): Make 'ops' const.
1697 (init_raw_breakpoint, init_catchpoint)
1698 (create_fork_vfork_event_catchpoint)
1699 (create_syscall_event_catchpoint, init_breakpoint_sal)
1700 (create_breakpoint_sal, create_breakpoints_sal)
1701 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1702 * breakpoint.h (struct breakpoint) <ops>: Now const.
1703 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1706 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1708 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1710 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1712 * breakpoint.h (print_recreate_thread): Declare.
1713 (struct breakpoint): Move step_count, pass_count,
1714 number_on_target, static_trace_marker_id,
1715 static_trace_marker_id_idx ...
1716 (struct tracepoint): ... to this new struct.
1717 (get_tracepoint, get_tracepoint_by_number_on_target)
1718 (get_tracepoint_by_number): Change return type to struct
1720 * breakpoint.c (is_tracepoint_type): New, factored out from
1722 (is_tracepoint): Adjust.
1723 (print_one_breakpoint_location): Cast to struct tracepoint as
1724 necessary, and adjust.
1725 (print_recreate_catch_fork, print_recreate_catch_vfork)
1726 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1727 print_recreate_thread.
1728 (init_breakpoint_sal): New, factored out from
1729 create_breakpoint_sal.
1730 (create_breakpoint_sal): Reimplement.
1731 (create_breakpoint): Allocate a struct tracecepoint if the caller
1732 wanted a tracepoint. Use init_breakpoint_sal and
1734 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1735 (print_recreate_masked_watchpoint)
1736 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1737 (tracepoint_print_one_detail): Adjust.
1738 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1739 Dump the pass count here.
1740 (update_static_tracepoint): Adjust.
1741 (addr_string_to_sals): Adjust.
1742 (create_tracepoint_from_upload): Adjust. Change return type to
1743 struct tracepoint pointer.
1744 (trace_pass_set_count): Change parameter type to struct tracepoint
1745 pointer, and adjust.
1746 (trace_pass_command): Adjust.
1747 (get_tracepoint, get_tracepoint_by_number_on_target)
1748 (get_tracepoint_by_number): Change return type to struct
1749 tracepoint pointer, and adjust.
1750 (print_recreate_thread): New, factored out from save_breakpoints.
1751 (save_breakpoints): Don't print thread and task and passcount
1753 * remote.c (remote_download_tracepoint): Adjust.
1754 * tracepoint.c (trace_actions_command, validate_actionline)
1755 (start_tracing, tfind_1, trace_find_tracepoint_command)
1756 (trace_dump_command): Adjust.
1757 (find_matching_tracepoint): Change return type to struct
1758 tracepoint pointer, and adjust.
1759 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1760 (tfile_trace_find, tfile_fetch_registers): Adjust.
1761 * tracepoint.h (create_tracepoint_from_upload): Change return type
1762 to struct tracepoint pointer.
1763 * ada-lang.c (print_recreate_exception): Call
1764 print_recreate_thread.
1765 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1767 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1769 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1770 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1771 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1772 watchpoint_thread, watchpoint_triggered ...
1773 (struct watchpoint): ... to this new struct.
1774 (is_watchpoint): Declare.
1775 (install_breakpoint): Add new `internal' parameter.
1776 * breakpoint.c (is_watchpoint): Delete declaration.
1777 (set_breakpoint_condition): Handle watchpoints.
1778 (is_watchpoint): Make public.
1779 (watchpoint_in_thread_scope): Change parameter type to struct
1781 (watchpoint_del_at_next_stop): Change parameter type to struct
1782 watchpoint. Remove assertion. Adjust.
1783 (update_watchpoint): Ditto.
1784 (insert_breakpoints, breakpoint_init_inferior)
1785 (watchpoints_triggered, watchpoint_check)
1786 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1787 (bpstat_stop_status, print_one_breakpoint_location)
1788 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1789 to struct watchpoint as necessary, and adjust.
1790 (install_breakpoint): Add `internal' argument. If true, don't
1791 mention the new breakpoint. Use set_breakpoint_number.
1792 (create_fork_vfork_event_catchpoint)
1793 (create_syscall_event_catchpoint): Adjust.
1794 (dtor_watchpoint): New.
1795 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1796 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1797 (print_it_watchpoint, print_mention_watchpoint)
1798 (print_recreate_watchpoint, insert_masked_watchpoint)
1799 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1800 (print_one_detail_masked_watchpoint)
1801 (print_mention_masked_watchpoint)
1802 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1803 necessary, and adjust.
1804 (watch_command_1): Allocate and initialize a struct watchpoint
1805 instead of a struct breakpoint. Use install_breakpoint.
1806 (catch_exec_command_1): Adjust.
1807 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1809 (delete_breakpoint, enable_breakpoint_disp)
1810 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1811 as necessary, and adjust.
1812 (initialize_breakpoint_ops): Install dtor_watchpoint as
1813 watchpoints' dtor method.
1814 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1815 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1816 to struct watchpoint as necessary, and adjust.
1818 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1820 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1821 the the base class ops table.
1822 (catch_exception_breakpoint_ops)
1823 (catch_exception_unhandled_breakpoint_ops)
1824 (catch_assert_breakpoint_ops): Don't statically initialize.
1825 (initialize_ada_catchpoint_ops): New.
1826 (_initialize_ada_language): Call it.
1827 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1828 (bkpt_breakpoint_ops): Forward declare.
1829 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1830 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1831 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1832 (masked_watchpoint_breakpoint_ops)
1833 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1834 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1835 base class ops table.
1836 (null_re_set, null_check_status, null_works_in_software_mode)
1837 (null_resources_needed, null_print_one_detail): Delete.
1838 (bkpt_dtor): Rename to ...
1839 (base_breakpoint_dtor): ... this. Make static.
1840 (bkpt_allocate_location): Rename to ...
1841 (base_breakpoint_allocate_location): ... this. Make static.
1842 (base_breakpoint_re_set): New.
1843 (internal_error_pure_virtual_called): New.
1844 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1845 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1846 (base_breakpoint_works_in_software_mode)
1847 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1848 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1849 (base_breakpoint_print_recreate): New functions.
1850 (base_breakpoint_ops): New global.
1851 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1852 (bkpt_breakpoint_hit): Make static.
1853 (bkpt_check_status): Delete.
1854 (bkpt_resources_needed): Make static.
1855 (bkpt_works_in_software_mode): Delete.
1856 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1858 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1859 (momentary_breakpoint_ops): Don't statically initialize.
1860 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1862 (tracepoint_insert_location, tracepoint_remove_location)
1863 (tracepoint_check_status, tracepoint_works_in_software_mode)
1864 (tracepoint_print_it): Delete.
1865 (tracepoint_breakpoint_ops): Don't statically initialize.
1866 (initialize_breakpoint_ops): New.
1867 (_initialize_breakpoint): Call it.
1868 * breakpoint.h (null_re_set, null_works_in_software_mode)
1869 (null_resources_needed, null_check_status, null_print_one_detail):
1870 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1871 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1872 (bkpt_check_status, bkpt_resources_needed)
1873 (bkpt_works_in_software_mode, bkpt_print_it)
1874 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1875 Delete declarations.
1876 (initialize_breakpoint_ops): Declare.
1878 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1880 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1881 (momentary_bkpt_print_it): Simplify.
1883 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1885 Split internal, momentary and user breakpoints breakpoint_ops
1888 * breakpoint.c (internal_breakpoint_ops)
1889 (momentary_breakpoint_ops): Forward declare.
1890 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1891 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1892 (create_overlay_event_breakpoint)
1893 (create_std_terminate_master_breakpoint)
1894 (create_exception_master_breakpoint): Create breakpoints with
1895 internal_breakpoint_ops vtable.
1896 (set_longjmp_breakpoint): Create momentary breakpoints with
1897 momentary_breakpoint_ops vtable, using
1898 momentary_breakpoint_from_master.
1899 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1900 (create_solib_event_breakpoint): Create breakpoints with
1901 internal_breakpoint_ops vtable.
1902 (set_momentary_breakpoint): Create breakpoints with
1903 momentary_breakpoint_ops vtable.
1904 (momentary_breakpoint_from_master): New, factored out from
1905 clone_momentary_breakpoint.
1906 (clone_momentary_breakpoint): Adjust.
1907 (watch_command_1): Create scope breakpoints with
1908 momentary_breakpoint_ops vtable.
1909 (bkpt_re_set): Remove handling of internal and momentary
1911 (bkpt_print_mention, bkpt_print_recreate): New.
1912 (bkpt_breakpoint_ops): Adjust.
1913 (internal_bkpt_re_set, internal_bkpt_check_status)
1914 (internal_bkpt_print_it, internal_bkpt_print_mention)
1915 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1916 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1917 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1918 (momentary_bkpt_print_recreate): New.
1919 (momentary_breakpoint_ops): New.
1921 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1923 Implement most breakpoint_ops methods for all breakpoint types,
1924 and move the default handlings to the proper callbacks.
1926 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1927 works_in_software_mode method.
1928 (insert_bp_location): Go through breakpoint_ops->insert_location
1929 for software and hardware watchpoints.
1930 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1932 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1933 for software and hardware watchpoints.
1934 (print_it_typical): Delete.
1935 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1937 (watchpoint_check): Adjust comment.
1938 (bpstat_check_location): Simply always call the breakpoint's
1939 breakpoint_hit method.
1940 (bpstat_stop_status): Always call the breakpoint's check_status
1941 method. Remove special cases for watchpoints and internal event
1942 breakpoints from here (moved to the check_status implementations).
1943 (print_one_breakpoint_location): Assume b->ops is never NULL.
1944 Remove static tracepoint marker id printing from here (moved to
1945 the print_one_detail callback implementation of tracepoints).
1946 (init_bp_location): Assert OPS is never NULL.
1947 (allocate_bp_location): Always call the breakpoint's
1948 allocate_location method, and remove the default code from here.
1949 (free_bp_location): Always call the location's dtor method, and
1950 remove the default code from here.
1951 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1952 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1953 parameter. Pass it down.
1954 (set_raw_breakpoint): Ditto.
1955 (print_it_catch_fork): Adjust to take a bpstat as argument.
1956 (catch_fork_breakpoint_ops): Install methods.
1957 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1958 (catch_vfork_breakpoint_ops): Install methods.
1959 (dtor_catch_syscall): Call the base dtor.
1960 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1961 (catch_syscall_breakpoint_ops): Install methods.
1962 (dtor_catch_exec): Call the base dtor.
1963 (print_it_catch_exec): Adjust to take a bpstat as argument.
1964 (catch_exec_breakpoint_ops): Install methods.
1965 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1966 the breakpoint's resources_needed method, and remove the default
1968 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1970 (clone_momentary_breakpoint): Clone the original's ops.
1971 (mention): Always call the breakpoint's print_mention method, and
1972 remove the default code from here.
1973 (create_breakpoint_sal): Adjust to pass the ops to
1974 set_raw_breakpoint rather than setting it manually.
1975 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1976 ops to set_raw_breakpoint_without_location rather than setting it
1978 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1979 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1980 (ranged_breakpoint_ops): Install methods.
1981 (break_range_command): Adjust to pass the ops to
1982 set_raw_breakpoint rather than setting it manually.
1983 (re_set_watchpoint, breakpoint_hit_watchpoint)
1984 (check_status_watchpoint, resources_needed_watchpoint)
1985 (works_in_software_mode_watchpoint, print_it_watchpoint)
1986 (print_mention_watchpoint, print_recreate_watchpoint): New
1988 (watchpoint_breakpoint_ops): Install new methods.
1989 (print_it_masked_watchpoint): New function.
1990 (masked_watchpoint_breakpoint_ops): Install new methods.
1991 (watch_command_1): Adjust to pass the right breakpoint_ops to
1992 set_raw_breakpoint_without_location rather than setting it
1993 manually later. Record the current pspace.
1994 (print_it_exception_catchpoint): Adjust to take a bpstat as
1996 (gnu_v3_exception_catchpoint_ops): Install new methods.
1997 (say_where): New function.
1998 (null_re_set, null_check_status, null_works_in_software_mode)
1999 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2001 (bp_location_ops): New global.
2002 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2003 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2004 (bkpt_check_status, bkpt_resources_needed)
2005 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2006 (bkpt_print_recreate): New functions.
2007 (bkpt_breakpoint_ops): New global.
2008 (tracepoint_re_set, tracepoint_insert_location)
2009 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2010 (tracepoint_check_status, tracepoint_works_in_software_mode)
2011 (tracepoint_print_it, tracepoint_print_one_detail)
2012 (tracepoint_print_mention, tracepoint_print_recreate): New
2014 (tracepoint_breakpoint_ops): New global.
2015 (delete_breakpoint): Always call the breakpoint's dtor method, and
2016 remove the default handling from here.
2017 (breakpoint_re_set_default): Make static.
2018 (breakpoint_re_set_one): Always call the breakpoints re_set
2019 method, and remove the default handling from here.
2020 (trace_command, ftrace_command, strace_command)
2021 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2022 to create_breakpoint.
2023 (save_breakpoints): Always call the breakpoint's print_recreate
2024 method, and remove the default handling from here.
2026 * ada-lang.c (dtor_exception): Call the base dtor.
2027 (re_set_exception): Call the base method.
2028 (print_it_exception, print_it_catch_exception): Adjust to take a
2030 (catch_exception_breakpoint_ops): Install methods.
2031 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2033 (catch_exception_unhandled_breakpoint_ops): Install methods.
2034 (print_it_catch_assert): Adjust to take a bpstat as argument.
2035 (catch_assert_breakpoint_ops): Install methods.
2037 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2038 to take a bpstat as argument.
2039 (enum print_stop_action): Add describing comments to each enum
2041 (breakpoint_re_set_default): Delete declaration.
2042 (null_re_set, null_works_in_software_mode, null_resources_needed)
2043 (null_check_status, null_print_one_detail): Declare.
2044 (bkpt_breakpoint_ops): Declare.
2045 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2046 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2047 (bkpt_check_status, bkpt_resources_needed)
2048 (bkpt_works_in_software_mode, bkpt_print_it)
2049 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2052 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2053 bkpt_breakpoint_ops.
2054 * python/py-breakpoint.c (bppy_init): Ditto.
2056 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2058 * MAINTAINERS (Write After Approval): Add myself to the list.
2060 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2062 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2064 2011-07-22 Pedro Alves <pedro@codesourcery.com>
2066 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2067 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2068 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2070 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2071 (struct i386_debug_reg_state): New.
2072 (i386_init_dregs): New.
2074 (i386_cleanup_dregs): Use i386_init_dregs.
2075 (i386_show_dr): Add state parameter and adjust.
2076 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2078 (i386_remove_aligned_watchpoint): Likewise.
2079 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2080 (i386_update_inferior_debug_regs): New.
2081 (i386_insert_watchpoint): Work on a local mirror of the debug
2082 registers, and only update the inferior on success.
2083 (i386_remove_watchpoint): Ditto.
2084 (i386_region_ok_for_watchpoint): Adjust.
2085 (i386_stopped_data_address): Adjust.
2086 (i386_insert_hw_breakpoint): Adjust.
2087 (i386_remove_hw_breakpoint): Adjust.
2089 2011-07-22 Tom Tromey <tromey@redhat.com>
2091 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2092 from amd64_pseudo_register_read. Change arguments. Call
2093 mark_value_bytes_unavailable when needed.
2094 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2095 set_gdbarch_pseudo_register_read.
2096 * sentinel-frame.c (sentinel_frame_prev_register): Use
2097 regcache_cooked_read_value.
2098 * regcache.h (regcache_cooked_read_value): Declare.
2099 * regcache.c (regcache_cooked_read_value): New function.
2100 (regcache_cooked_read): Call
2101 gdbarch_pseudo_register_read_value if available.
2102 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2103 (i386_pseudo_register_read): Remove.
2104 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
2105 i386_pseudo_register_read. Change arguments. Call
2106 mark_value_bytes_unavailable when needed.
2107 (i386_pseudo_register_read_value): New function.
2108 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
2109 not set_gdbarch_pseudo_register_read.
2110 * gdbarch.sh (pseudo_register_read_value): New method.
2111 * gdbarch.c, gdbarch.h: Rebuild.
2112 * findvar.c (value_from_register): Call get_frame_register_value.
2114 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
2116 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
2118 (display_gdb_prompt): Likewise.
2119 (change_annotation_level): Likewise.
2120 (push_prompt): Likewise.
2121 (pop_prompt): Likewise.
2122 (handle_stop_sig): Use get_prompt with a level.
2123 * top.c (command_loop): Use get_prompt with a level.
2124 (set_async_annotation_level): Use set_prompt with a level.
2125 (get_prefix): New function.
2126 (set_prefix): Ditto.
2127 (set_suffix): Ditto.
2128 (get_suffix): Ditto.
2129 (get_prompt): Accept a level argument.
2130 (set_prompt): Accept a level argument. Free old prompts. Set
2131 new_async_prompt if level is 0.
2132 (init_main): Use set_prompt with a level. Do not set
2134 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
2135 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
2136 Modify set_prompt, get_prompt to account for levels.
2137 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
2139 * python/python.c (before_prompt_hook): Use set_prompt.
2141 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
2143 * defs.h: Add guard against inclusion in gdbserver.
2144 (struct ptid, ptid_t): Move to common/ptid.h.
2145 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
2146 xsnprintf, internal_error): Move to common/common-utils.h.
2148 * gdb_assert.h: Move into common/ sub-directory.
2149 * gdb_locale.h: Ditto.
2150 * gdb_dirent.h: Ditto.
2151 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
2152 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
2153 Move into common/ptid.h.
2154 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
2155 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
2156 Change nomem to malloc_failure.
2157 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
2158 * utils.c (nomem): Rename to malloc_failure.
2159 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
2160 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
2161 (gdb_buildargv): Change nomem to malloc_failure.
2162 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
2163 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2164 ptid_is_pid): Move into common/ptid.c.
2165 (initialize_infrun): Delete initialization of null_ptid and
2167 * linux-nat.c (linux_nat_xfer_osdata): Defer to
2168 linux_common_xfer_osdata.
2169 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
2170 common/ptid.c and common/buffer.c.
2171 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
2172 common/ptid.h, common/buffer.h and common/linux-osdata.h.
2173 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
2174 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
2176 * common/gdb_assert.h: New.
2177 * common/gdb_dirent.h: New.
2178 * common/gdb_locale.h: New.
2179 * common/buffer.c: New.
2180 * common/buffer.h: New.
2181 * common/ptid.c: New.
2182 * common/ptid.h: New.
2183 * common/xml-utils.c: New.
2184 * common/xml-utils.h: New.
2185 * common/common-utils.c: New.
2186 * common/common-utils.h: New.
2187 * common/linux-osdata.c: New.
2188 * common/linux-osdata.h: New.
2189 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
2190 * config/arm/linux.mh (NATDEPFILES): Ditto.
2191 * config/i386/linux.mh (NATDEPFILES): Ditto.
2192 * config/i386/linux64.mh (NATDEPFILES): Ditto.
2193 * config/ia64/linux.mh (NATDEPFILES): Ditto.
2194 * config/m32r/linux.mh (NATDEPFILES): Ditto.
2195 * config/m68k/linux.mh (NATDEPFILES): Ditto.
2196 * config/mips/linux.mh (NATDEPFILES): Ditto.
2197 * config/pa/linux.mh (NATDEPFILES): Ditto.
2198 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
2199 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
2200 * config/s390/s390.mh (NATDEPFILES): Ditto.
2201 * config/sparc/linux.mh (NATDEPFILES): Ditto.
2202 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
2203 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
2205 2011-07-21 Matt Rice <ratmice@gmail.com>
2207 * NEWS: Add info macros and info definitions commands.
2209 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2211 * NEWS: Document Python prompt substitution hook.
2213 2011-07-18 Matt Rice <ratmice@gmail.com>
2216 * macrotab.h (macro_callback_fn): Add new arguments to callback.
2217 * macrotab.c (foreach_macro): Ditto.
2218 (foreach_macro_in_scope): Ditto.
2219 * macrocmd.c (print_macro_callback): New function.
2220 (info_macro_command): Move some code to print_macro_definition.
2221 (print_macro_definition): New function.
2222 (print_one_macro): Add new arguments to callback.
2223 (info_definitions_command): New function.
2224 (info_macros_command): Ditto.
2225 (_initialize_macrocmd): Add info macros and info definitions commands.
2226 * symtab.c (add_macro_name): Add new arguments to callback.
2228 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2229 Tom Tromey <tromey@redhat.com>
2231 * top.c (set_prompt): Rewrite to free previous prompt, free
2232 asynch_new_prompt and set both on new prompts.
2233 * event-top.c (display_gdb_prompt): Add prompt substitution
2235 * python/python.c (before_prompt_hook): New function.
2237 2011-07-20 Matt Rice <ratmice@gmail.com>
2239 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
2240 arguments to store_unsigned_integer.
2242 2011-07-20 Tom Tromey <tromey@redhat.com>
2244 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
2245 in some declaration-only cases.
2247 2011-07-18 Tom Tromey <tromey@redhat.com>
2250 * dwarf2read.c (dwarf2_section_info_def): New typedef.
2251 (struct dwarf2_per_objfile) <types>: Change to a VEC.
2252 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
2253 <debug_type_section>: New field.
2254 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
2255 (load_cu): Use appropriate section.
2256 (create_signatured_type_table_from_index): Add 'section'
2258 (dwarf2_read_index): Only allow a single .debug_types section.
2259 (dw2_get_file_names): Use appropriate section.
2260 (read_type_comp_unit_head): Add 'section' argument.
2261 (create_debug_types_hash_table): Loop over all .debug_types
2263 (init_cu_die_reader): Use appropriate section.
2264 (process_psymtab_comp_unit, load_partial_comp_unit)
2265 (load_full_comp_unit, read_die_and_children, find_partial_die)
2266 (lookup_die_type, determine_prefix, follow_die_offset): Update.
2267 (lookup_signatured_type_at_offset): Add 'section' argument.
2268 (read_signatured_type_at_offset): Add 'sect' argument.
2269 (read_signatured_type): Use appropriate section.
2270 (set_die_type, get_die_type_at_offset): Update.
2271 (dwarf2_per_objfile_free): Free all .debug_types sections, and
2273 (write_psymtabs_to_index): Don't allow index with more than one
2274 .debug_types section.
2276 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2278 Fix crash if referenced CU is aged out.
2279 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2280 xfree of block.data.
2281 (indirect_pieced_value): New variable back_to, use to for xfree of
2283 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2285 * dwarf2read.c (dwarf2_find_base_address): New prototype.
2286 (load_cu): New function from ...
2287 (dw2_do_instantiate_symtab): ... the code here ...
2288 (process_full_comp_unit): ... and here.
2289 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
2292 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2294 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2297 2011-07-19 Gary Benson <gbenson@redhat.com>
2299 * infrun.c (struct execution_control_state): New member
2300 stop_func_filled_in.
2301 (clear_stop_func, fill_in_stop_func): New functions.
2302 (handle_inferior_event): Call clear_stop_func rather than
2303 manipulating the execution control state directly.
2304 Call fill_in_stop_func lazily as required rather than
2305 directly calling find_pc_partial_function in all cases.
2307 2011-07-18 Tom Tromey <tromey@redhat.com>
2309 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2310 checking for variable-sized array.
2312 2011-07-18 Jean-Charles Delay <delay@adacore.com>
2314 * varobj.h (varobj_languages): Add vlang_ada definition to the list
2315 of supported languages.
2316 * varobj.c: Add top definitions and basic implementation of the
2317 following callbacks: ada_number_of_children, ada_name_of_variable,
2318 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2319 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2320 (languages): Register Ada-specific callbacks.
2321 (variable_language): Add the Ada case in the language setter switch.
2323 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2325 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2327 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2331 (execute_stack_op): Use dwarf2_frame_ctx_funcs
2332 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2333 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2334 get_frame_cfa, get_tls_address and dwarf_call via funcs.
2335 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2336 (struct dwarf_expr_context_funcs): New, move here methods from ...
2337 (struct dwarf_expr_context): ... here. New fields funcs.
2338 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2339 (dwarf_expr_ctx_funcs): New.
2340 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2341 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2342 (needs_frame_ctx_funcs): New.
2343 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2345 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2347 * MAINTAINERS (Write After Approval): Add myself to the list.
2349 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2351 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2352 that CIE pointer of an FDE really points to a CIE .
2354 2011-07-15 Hui Zhu <teawater@gmail.com>
2356 * remote.c (remote_get_trace_status): Add comments.
2358 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2360 Code cleanup - constify struct lval_funcs.
2361 * dwarf2loc.c (pieced_value_funcs): Make it const.
2362 * infrun.c (siginfo_value_funcs): Likewise.
2363 * opencl-lang.c (opencl_value_funcs): Likewise.
2364 * valops.c (value_assign, value_ind): Make the funcs variable const.
2365 * value.c (struct value): Make location.computed.funcs target const.
2366 Rearrange the comments.
2367 (allocate_computed_value): Make the funcs parameter target const.
2368 (value_computed_funcs): Return the funcs target const.
2369 (value_free, value_copy, set_value_component_location): Make the funcs
2371 * value.h (allocate_computed_value): Make the funcs parameter target
2373 (value_computed_funcs): Return the funcs target const.
2374 * windows-tdep.c (tlb_value_funcs): Make it const.
2376 2011-07-14 Hui Zhu <teawater@gmail.com>
2378 * remote.c (remote_get_trace_status): Initialize p.
2380 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 * remote.c (remote_get_trace_status): New variable ex. Put
2384 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2386 2011-07-13 Tom Tromey <tromey@redhat.com>
2388 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2389 value_from_contents for final conversion.
2391 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2395 Indent prototypes so they do not get into tags.
2397 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 Code cleanup making also optimized out values lazy.
2400 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2401 allocate_optimized_out_value. Twice.
2402 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2403 * findvar.c (read_var_value): Likewise.
2404 * value.c (allocate_optimized_out_value): New function.
2405 * value.h (allocate_optimized_out_value): New declaration.
2407 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2409 Fix occasional crash of CTRL-C during DWARF read in.
2410 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2412 2011-07-11 Tom Tromey <tromey@redhat.com>
2414 * regcache.c (struct regcache_descr): Fix typo.
2415 * i387-tdep.c (i387_supply_xsave): Fix typo.
2417 2011-07-11 Tom Tromey <tromey@redhat.com>
2419 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2420 (read_file_scope, read_type_unit_scope): Use it.
2422 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2424 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2427 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2430 * python/python.c: Set gdbpy_should_print_stack default to off.
2431 (set_python): Deprecate maint set python print-stack to
2433 (_initialize_python): Deprecate maint set/show python print-stack.
2434 Add new prefix command, python. Add new setting, print-backtrace.
2435 * NEWS: Document set python print-stack. Document default change.
2437 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2439 * python/py-inferior.c (infpy_dealloc): New function.
2440 (inferior_to_inferior_object): Return a new object, or a
2441 new reference to the existing object.
2442 (find_thread_object): Cleanup references to inferior.
2443 (delete_thread_object): Ditto.
2444 * python/py-infthread.c (create_thread_object): Do not increment
2445 inferior reference count.
2447 2011-07-08 Tom Tromey <tromey@redhat.com>
2449 * dwarf2loc.c (locexpr_regname): New function.
2450 (locexpr_describe_location_piece): Use it.
2451 (disassemble_dwarf_expression): Add per_cu argument. Use
2453 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2454 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2456 (locexpr_describe_location_1): Add per_cu argument.
2457 (locexpr_describe_location): Update.
2458 (loclist_describe_location): Update.
2460 2011-07-08 Tom Tromey <tromey@redhat.com>
2462 * dwarf2expr.c (execute_stack_op): Add QUIT.
2464 2011-07-07 Hui Zhu <teawater@gmail.com>
2467 2011-07-06 Hui Zhu <teawater@gmail.com>
2468 * remote.c (remote_start_remote): Add TRY_CATCH for
2469 remote_get_trace_status.
2470 * tracepoint.c (disconnect_tracing): Ditto.
2472 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2474 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2475 variables as signed, not unsigned.
2477 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2479 * jit.c (jit_inferior_init): Reformat forward declaration.
2481 2011-07-06 Matt Rice <ratmice@gmail.com>
2483 * MAINTAINERS (Write After Approval): Add myself to the list.
2485 2011-07-06 Hui Zhu <teawater@gmail.com>
2487 * remote.c (remote_start_remote): Add TRY_CATCH for
2488 remote_get_trace_status.
2489 * tracepoint.c (disconnect_tracing): Ditto.
2491 2011-07-05 Tom Tromey <tromey@redhat.com>
2493 * symtab.c (operator_chars): Now static.
2494 * linespec.c (operator_chars): Don't declare.
2496 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2498 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2500 2011-07-05 Tom Tromey <tromey@redhat.com>
2502 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2503 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2504 (TYPE_CPLUS_REALLY_JAVA): New macro.
2505 * dwarf2read.c (process_structure_scope): Set
2506 TYPE_CPLUS_REALLY_JAVA.
2508 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2510 * ada-lang.c: Fix typos.
2511 * amd64-tdep.c: Likewise.
2512 * breakpoint.c: Likewise.
2513 * cli/cli-decode.c: Likewise.
2514 * findcmd.c: Likewise.
2515 * inline-frame.c: Likewise.
2516 * mi/mi-main.c: Likewise.
2517 * minsyms.c: Likewise.
2518 * monitor.c: Likewise.
2519 * monitor.h: Likewise.
2520 * prologue-value.c: Likewise.
2521 * reverse.c: Likewise.
2522 * s390-tdep.c: Likewise.
2524 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2526 * jit.c (jit_inferior_init): Forward declare.
2527 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2529 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2531 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2533 2011-07-04 Tristan Gingold <gingold@adacore.com>
2535 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2536 (tcb_fieldno): Add activation_link field.
2537 (get_known_tasks_addr): Moved and rewritten.
2538 (get_tcb_types_info): Set activation_link field.
2539 (read_known_tasks_array): Add parameter. Rewritten.
2540 (read_known_tasks_list): New function.
2541 (read_known_tasks): New function.
2542 (ada_build_task_list): Call read_known_tasks instead of
2543 read_known_tasks_array.
2544 * ravenscar-thread.c: Add first_task_name constant.
2545 (has_ravenscar_runtime): Check for task list too.
2547 2011-07-04 Tristan Gingold <gingold@adacore.com>
2549 * ada-tasks.c: Renames fieldno to actb_fieldno.
2550 (ada_get_task_number): Indentation.
2551 (get_tcb_types_info): Remove all parameters. Write directly
2553 (ptid_from_atcb_common): Adjust.
2554 (read_atcb): Adjust.
2556 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2558 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2560 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2562 * ui-out.c (ui_out_field_core_addr): Mention that the function
2563 description is in the header file.
2564 * ui-out.h (ui_out_field_core_addr): Document function.
2566 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2568 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2569 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2571 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2573 * symtab.c (expand_line_sal): Remove empty line.
2575 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2577 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2578 same way as ELFOSABI_NONE.
2579 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2581 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2583 * breakpoint.c: Fix typos in comments.
2584 * linespec.c: Likewise.
2585 * symtab.c: Likewise.
2587 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2589 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2590 section in separate object files.
2592 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 Fix false GCC warning.
2595 * linespec.c (decode_line_1): Initialize values.
2597 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2599 * linespec.c (find_method): Accept the function type automatically only
2600 if it was specified with parameter types.
2602 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2604 Stop on first linespec terminator instead of eating what we can.
2605 * linespec.c (is_linespec_boundary): New function.
2606 (name_end): Remove function.
2607 (keep_name_info): New parameter on_boundary, replace the body.
2608 (decode_line_1): Provide the parameter to keep_name_info.
2609 (decode_compound): Likewise. Drop the trailing java return type
2612 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2614 Fall back linespec to minimal symbols.
2615 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2616 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2617 (find_method, symbol_found): Change error to cplusplus_error.
2619 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2621 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2623 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2624 Tom Tromey <tromey@redhat.com>
2626 * dwarf2read.c (check_physname): New variable.
2627 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2628 (show_check_physname): New function.
2629 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2631 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2633 * machoread.c (macho_symfile_read): Delete OBE comment.
2635 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2637 * machoread.c (struct macho_oso_data): Delete.
2638 (current_oso): Delete.
2639 (macho_relocate_common_syms): New function, mostly extracted
2641 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2642 Remove code that sets and unset current_oso.
2643 (macho_symfile_relocate): Delete handling of common symbols,
2644 now moved to macho_relocate_common_syms.
2646 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2648 * darwin-nat.c (darwin_ptrace): Add documentation.
2649 Set errno to zero before calling ptrace. If ptrace returns
2650 -1 and errno is zero, then change then return zero.
2651 (darwin_kill_inferior): Issue a warning instead of triggering
2652 a failed assertion when the PT_KILL ptrace operations returned
2655 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2657 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2658 only when inf->private->no_ptrace.
2660 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2662 * ada-lang.c (print_it_exception): Print temporary catchpoints
2663 as "Temporary catchpoint".
2664 (print_mention_exception): Likewise.
2666 2011-07-01 Tom Tromey <tromey@redhat.com>
2668 * jv-lang.c (java_language_defn): Use java_printchar,
2670 (java_get_encoding): New function.
2671 (java_emit_char): Use generic_emit_char.
2672 (java_printchar): New function.
2673 (java_printstr): Likewise.
2675 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2677 * ada-typeprint.c (print_record_type): If unable to decode
2678 the name of the parent type, use the encoded name.
2680 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2682 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2683 pointer to constrained packed array type output.
2684 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2685 packed array output.
2687 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2689 * ada-typeprint.c (print_array_type): removed if condition on show
2690 being negative for bounds printing.
2692 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2694 * ada-lang.c (ada_identical_enum_types_p): New function.
2695 (symbols_are_identical_enums): New function.
2696 (remove_extra_symbols): Do nothing if NSYMS < 2.
2697 Use symbols_are_identical_enums.
2699 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2701 * ada-valprint.c (ada_value_print): Handle typedefs.
2703 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2705 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2707 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2709 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2710 (decode_constrained_packed_array): Likewise.
2711 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2713 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2715 * ada-exp.y (convert_char_literal): Handle typedef types.
2717 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2719 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2721 2011-06-30 Tom Tromey <tromey@redhat.com>
2723 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2724 * valops.c (find_overload_match): Call do_cleanups on early exit
2726 * solib.c (solib_find): Call do_cleanups on early exit path.
2728 2011-06-30 Tom Tromey <tromey@redhat.com>
2730 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2731 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2732 return paths. Defer final do_cleanups until last return.
2733 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2736 2011-06-30 Tom Tromey <tromey@redhat.com>
2738 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2740 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2742 * MAINTAINERS (Write After Approval): Add myself to the list.
2744 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2746 Disable epilogue unwinders on recent GCCs.
2747 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2748 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2749 * dwarf2read.c (process_full_comp_unit): Initialize
2750 EPILOGUE_UNWIND_VALID.
2751 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2752 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2753 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2755 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2757 Code cleanup - reformatting.
2758 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2759 (producer_is_gcc_ge_4): ... here, change the return value.
2760 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2763 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2765 Fix non-only rename list for Fortran modules import.
2766 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2767 cp_add_using_directive caller.
2768 (cp_add_using_directive): New parameter excludes, describe it. New
2769 variables ix and param. Compare if also excludes match. Allocate NEW
2770 with variable size, initialize EXCLUDES there.
2771 (cp_lookup_symbol_imports): New variable excludep, test
2772 current->EXCLUDES with it.
2773 * cp-support.h: Include vec.h.
2774 (struct using_direct): New field excludes, describe it.
2775 (DEF_VEC_P (const_char_ptr)): New.
2776 (cp_add_using_directive): New parameter excludes.
2777 * defs.h (const_char_ptr): New typedef.
2778 * dwarf2read.c (read_import_statement): New variables child_die,
2779 excludes and cleanups, read in excludes.
2780 (read_namespace): Adjust the cp_add_using_directive caller.
2782 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2785 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2786 negative comparisons.
2788 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2790 * mi/mi-main.c (mi_cmd_list_features): Emit
2791 breakpoint-notifications.
2793 2011-06-29 Tom Tromey <tromey@redhat.com>
2796 * valprint.h (generic_emit_char, generic_printstr): Declare.
2797 * valprint.c (wchar_printable, append_string_as_wide)
2798 (print_wchar): Move from c-lang.c.
2799 (generic_emit_char): New function; mostly taken from c_emit_char.
2800 (generic_printstr): New function; mostly taken from c_printstr.
2801 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2802 represented as arrays.
2803 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2805 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2806 identically to TYPE_CODE_INT.
2807 * f-lang.c (f_get_encoding): New function.
2808 (f_emit_char): Use generic_emit_char.
2809 (f_printchar): Replace comment.
2810 (f_printstr): Use generic_printstr.
2811 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2812 "character" types specially.
2813 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2815 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2817 (c_emit_char): Call generic_emit_char.
2818 (c_printstr): Call generic_printstr.
2820 2011-06-29 Gary Benson <gbenson@redhat.com>
2822 * breakpoint.c (bpstat_what): Removed duplicated case.
2824 2011-06-28 Tom Tromey <tromey@redhat.com>
2826 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2828 2011-06-27 Tom Tromey <tromey@redhat.com>
2830 * valops.c (find_overload_match): Call do_cleanups before early
2832 * top.c (execute_command): Call do_cleanups before early return.
2833 (command_loop): Likewise.
2834 * stack.c (backtrace_command): Make a null cleanup early. Don't
2835 conditionally call do_cleanups.
2836 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2838 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2839 so cleanups are always run.
2840 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2841 * findcmd.c (parse_find_args): Call do_cleanups on early return
2843 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2844 Don't conditionally call do_cleanups.
2845 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2848 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2850 * MAINTAINERS (Write After Approval): Use default email address.
2852 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2854 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2856 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2858 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2859 saved_regs_mask and copied_regs_mask fields.
2860 (sparc_record_save_insn): New prototype.
2861 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2862 (sparc_record_save_insn): New function.
2863 (sparc_analyze_prologue): Add head comment. Recognize store insns
2864 of call-saved registers. Use OFFSET consistently. Recognize flat
2865 frames and cache their settings.
2866 (sparc32_skip_prologue): Handle flat frames.
2867 (sparc_frame_cache): Add frame_offset to the base address.
2868 (sparc32_frame_cache): Adjust to new frame description.
2869 (sparc32_frame_prev_register): Likewise.
2870 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2871 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2872 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2873 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2874 frame by calling sparc_record_save_insn.
2875 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2876 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2877 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2879 2011-06-27 Tristan Gingold <gingold@adacore.com>
2881 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2882 field by map_addr and map_len.
2883 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2884 (munmap_section_buffer): Likewise.
2886 2011-06-24 Tom Tromey <tromey@redhat.com>
2888 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2889 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2890 * python/python.c (gdbpy_parameter): Make 'arg' const.
2891 (execute_gdb_command): Likewise.
2892 (gdbpy_decode_line): Likewise. Copy it.
2893 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2894 (gdbpy_write): Make 'arg' const.
2895 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2897 (gdbpy_lookup_type): Likewise.
2898 * python/py-prettyprint.c (print_children): Make 'name' const.
2899 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2900 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2902 * python/py-function.c (fnpy_init): Make 'name' const.
2903 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2904 (gdbpy_string_to_argv): Make 'input' const.
2905 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2907 * gdbtypes.h (lookup_typename): Update.
2908 * gdbtypes.c (lookup_typename): Make 'name' const.
2909 (lookup_struct): Likewise.
2910 (lookup_union): Likewise.
2911 (lookup_enum): Likewise.
2913 2011-06-24 Tom Tromey <tromey@redhat.com>
2915 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2916 gdb_thread_db.h. Move all common/ entries to be together.
2917 (TAGS): Don't depend on DEPFILES.
2919 2011-06-23 Yao Qi <yao@codesourcery.com>
2921 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2922 * remote.c (remote_start_remote): ... here.
2923 * monitor.c (monitor_open): ... here.
2925 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2927 * gdbtypes.c (append_composite_type_field_aligned): Fix
2928 calculation of bit position based on alignment.
2930 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2932 * breakpoint.c (bpstat_stop_status): Call the check_status
2933 breakpoint_ops method.
2934 (print_one_breakpoint_location): Also print the condition for Ada
2935 exception catchpoints.
2936 (allocate_bp_location): New, factored out from
2937 allocate_bp_location.
2938 (allocate_bp_location): Adjust. Call the owner breakpoint's
2939 allocate_location method, if there is one.
2940 (free_bp_location): Call the locations's dtor method, if there is
2942 (init_raw_breakpoint_without_location): New breakpoint_ops
2944 (set_raw_breakpoint_without_location): Adjust.
2945 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2946 (set_raw_breakpoint): Adjust.
2947 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2948 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2949 re_set and check_status methods.
2950 (init_catchpoint): Don't memset, initialize thread, addr_string
2951 and enable_state. Pass the ops down to init_raw_breakpoint.
2952 (install_catchpoint): Rename to ...
2953 (install_breakpoint): ... this, and make extern.
2954 (create_fork_vfork_event_catchpoint): Adjust.
2955 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2956 re_set and check_status methods.
2957 (create_syscall_event_catchpoint): Adjust.
2958 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2959 (masked_watchpoint_breakpoint_ops): Install NULL
2960 allocate_location, re_set and check_status methods.
2961 (catch_exec_command_1): Adjust.
2962 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2963 re_set and check_status methods.
2964 (create_ada_exception_breakpoint): Rename to ...
2965 (init_ada_exception_breakpoint): ... this. Add a struct
2966 breakpoint parameter, and delete the exp_string, cond_string and
2967 cond parameters. Use init_raw_breakpoint, and don't install or
2968 mention the breakpoint yet. Don't clear breakpoint fields that
2969 init_raw_breakpoint already clears.
2970 (re_set_breakpoint): Delete, split into ...
2971 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2973 (breakpoint_re_set_one): Call the breakpoint's
2974 breakpoint_ops->re_set implementation, if there's one. Adjust.
2975 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2976 (struct bp_location_ops): New type.
2977 (struct bp_location): New field `ops'.
2978 (struct breakpoint_ops): New `allocate_location', `re_set' and
2979 `check_status' fields. Make `breakpoint_hit''s description match
2981 (init_bp_location): Declare.
2982 (breakpoint_re_set_default): Declare.
2983 (create_ada_exception_breakpoint): Rename to ...
2984 (init_ada_exception_breakpoint): ... this. Add a struct
2985 breakpoint parameter, and delete the exp_string, cond_string and
2987 (install_breakpoint): Declare.
2988 * ada-lang.c: Include exceptions.h.
2989 <Ada exceptions description>: Update.
2990 (struct ada_catchpoint_location): New type.
2991 (ada_catchpoint_location_dtor): New function.
2992 (ada_catchpoint_location_ops): New global.
2993 (ada_catchpoint): New type.
2994 (create_excep_cond_exprs): New function.
2995 (dtor_exception, allocate_location_exception, re_set_exception)
2996 (should_stop_exception, check_status_exception): New functions.
2997 (print_one_exception, print_mention_exception)
2998 (print_recreate_exception): Adjust.
2999 (dtor_catch_exception, allocate_location_catch_exception)
3000 (re_set_catch_exception, check_status_catch_exception): New
3002 (catch_exception_breakpoint_ops): Install them.
3003 (dtor_catch_exception_unhandled)
3004 (allocate_location_catch_exception_unhandled)
3005 (re_set_catch_exception_unhandled)
3006 (check_status_catch_exception_unhandled): New functions.
3007 (catch_exception_unhandled_breakpoint_ops): Install them.
3008 (dtor_catch_assert, allocate_location_catch_assert)
3009 (re_set_catch_assert, check_status_catch_assert): New functions.
3010 (catch_assert_breakpoint_ops): Install them.
3011 (ada_exception_catchpoint_p): Delete.
3012 (catch_ada_exception_command_split)
3013 (ada_exception_catchpoint_cond_string): Rename exp_string
3014 parameter to excep_string. Adjust.
3015 (ada_parse_catchpoint_condition): Delete.
3016 (ada_exception_sal): Rename the exp_string parameter to
3017 excep_string. Delete the cond_string and cond parameters.
3019 (ada_decode_exception_location): Rename the exp_string parameter
3020 to excep_string. Delete the cond_string and cond parameters.
3022 (create_ada_exception_catchpoint): New function.
3023 (catch_ada_exception_command, ada_decode_assert_location)
3024 (catch_assert_command): Adjust.
3025 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3027 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3029 * ada-lang.c: Include arch-utils.h.
3030 (ada_decode_exception_location): Make static.
3031 (catch_ada_exception_command): Moved here from breakpoint.c.
3032 (ada_decode_assert_location): Make static.
3033 (catch_assert_command): Moved here from breakpoint.c.
3034 (_initialize_ada_lang): Install the exception and assert
3035 catchpoint commands here.
3036 * ada-lang.h (ada_decode_exception_location)
3037 (ada_decode_assert_location): Delete declarations.
3038 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3040 (create_ada_exception_breakpoint): Make extern.
3041 (catch_ada_exception_command, catch_assert_command): Moved to
3043 (add_catch_command): Make extern.
3044 (_initilize_breakpoint): Don't install the exception and assert
3045 catchpoint commands here.
3046 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3048 (add_catch_command, create_ada_exception_breakpoint): Declare.
3050 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3052 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3053 the breakpoint to the breakpoint chain here.
3054 (set_raw_breakpoint_without_location): Add the breakpoint to the
3055 breakpoint chain here.
3056 (init_raw_breakpoint): Adjust comments.
3057 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3059 (init_catchpoint): Don't set the catchpoint's breakpoint number
3061 (install_catchpoint): New function.
3062 (create_fork_vfork_event_catchpoint)
3063 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3064 use install_catchpoint.
3066 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3068 * breakpoint.c (create_catchpoint_without_mention)
3069 (create_catchpoint): Delete.
3071 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3073 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3074 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3075 reference to exec_pathname.
3076 (struct exec_catchpoint): New type.
3077 (dtor_catch_exec): New function.
3078 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3079 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3080 (catch_exec_command_1): Adjust to use init_catchpoint.
3081 (delete_breakpoint): Remove reference to exec_pathname.
3083 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3085 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3086 (struct breakpoint): Delete field `syscalls_to_be_caught'.
3087 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3088 reference to syscalls_to_be_caught.
3089 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3091 (struct syscall_catchpoint): New type.
3092 (dtor_catch_syscall): New function.
3093 (insert_catch_syscall, remove_catch_syscall)
3094 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3095 (print_recreate_catch_syscall): Adjust.
3096 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3097 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3098 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3099 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3100 (masked_watchpoint_breakpoint_ops)
3101 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3102 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3103 there is one. Remove references to syscalls_to_be_caught.
3104 (catching_syscall_number): Adjust.
3105 * ada-lang.c (catch_exception_breakpoint_ops)
3106 (catch_exception_unhandled_breakpoint_ops)
3107 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
3109 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3111 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
3113 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3114 reference to forked_inferior_pid.
3115 (struct fork_catchpoint): New type.
3116 (breakpoint_hit_catch_fork, print_it_catch_fork)
3117 (print_one_catch_fork, breakpoint_hit_catch_vfork)
3118 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
3119 (create_fork_vfork_event_catchpoint): Adjust to use
3122 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3124 * breakpoint.c (add_to_breakpoint_chain)
3125 (init_raw_breakpoint_without_location): New functions, factored
3127 (set_raw_breakpoint_without_location): ... this one.
3128 (init_raw_breakpoint): New function, factored out from
3129 set_raw_breakpoint and adjusted to use
3130 init_raw_breakpoint_without_location.
3131 (set_raw_breakpoint): Adjust.
3132 (init_catchpoint): New function, factored out from
3133 create_catchpoint_without_mention and adjusted to use
3134 init_raw_breakpoint.
3135 (create_catchpoint_without_mention): Adjust.
3137 2011-06-22 Tom Tromey <tromey@redhat.com>
3139 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
3140 argument of 0 specially.
3142 2011-06-22 Yao Qi <yao@codesourcery.com>
3144 * infrun.c (handle_inferior_event): Remove write-only local variable
3145 `sw_single_step_trap_p'.
3147 2011-06-20 Tom Tromey <tromey@redhat.com>
3149 * symtab.c (lookup_language_this): End loop if block is NULL.
3151 2011-06-17 Tom Tromey <tromey@redhat.com>
3153 * valops.c (value_of_this): Use lookup_language_this.
3154 * symtab.h (lookup_language_this): Declare.
3155 * symtab.c (lookup_language_this): New function.
3156 (lookup_symbol_aux): Use lookup_language_this.
3157 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
3159 2011-06-17 Tom Tromey <tromey@redhat.com>
3161 * value.h (value_of_this): Update.
3162 (value_of_local): Remove.
3163 * valops.c (value_of_this): Rename from value_of_local. Change
3165 * p-exp.y (exp): Update.
3166 (variable): Likewise.
3167 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
3169 2011-06-17 Tom Tromey <tromey@redhat.com>
3171 * valops.c (value_of_local): Complain if NAME is NULL.
3172 * std-operator.def (OP_OBJC_SELF): Remove.
3173 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
3174 * objc-exp.y (name_not_typename): Use OP_THIS.
3175 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
3177 <OP_OBJC_SELF>: Remove.
3178 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
3180 2011-06-16 Tristan Gingold <gingold@adacore.com>
3182 * python/py-events.h (gdb_py_events): Make it extern.
3183 * python/py-evtregistry.c (gdb_py_events): Declare.
3185 2011-06-16 Hui Zhu <teawater@gmail.com>
3187 * remote.c (remote_trace_set_readonly_regions): Add check for
3188 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
3191 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3193 * arm-linux-tdep.c: Include "auxv.h".
3195 (ARM_LINUX_SIZEOF_VFP): Define.
3196 (arm_linux_supply_vfp): New function.
3197 (arm_linux_collect_vfp): Likewise.
3198 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
3199 (arm_linux_fpa_regset_sections): New variable.
3200 (arm_linux_vfp_regset_sections): Likewise.
3201 (arm_linux_core_read_description): New function.
3202 (arm_linux_init_abi): Install arm_linux_core_read_description and
3203 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
3204 appropriate for the architecture.
3205 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
3206 (tdesc_arm_with_m): Declare.
3207 (tdesc_arm_with_iwmmxt): Likewise.
3208 (tdesc_arm_with_vfpv2): Likewise.
3209 (tdesc_arm_with_vfpv3): Likewise.
3210 (tdesc_arm_with_neon): Likewise.
3211 * arm-linux-nat.c: Move features/*.c includes ...
3212 * arm-tdep.c: ... here.
3213 * arm-linux-nat.c (arm_linux_read_description): Move initializing
3214 target description data structures ...
3215 * arm-tdep.c (_initialize_arm_tdep): ... here.
3216 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
3217 HWCAP_VFPv3D16): Move definitions ...
3218 * arm-linux-tdep.h: ... here.
3220 2011-06-15 Hui Zhu <teawater@gmail.com>
3222 * remote.c (remote_trace_set_readonly_regions): Add a check for
3225 2011-06-14 Tom Tromey <tromey@redhat.com>
3227 * coffread.c (coffread_objfile): Rename from current_objfile.
3228 * dbxread.c (dbxread_objfile): Rename from current_objfile.
3229 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
3231 2011-06-14 Tom Tromey <tromey@redhat.com>
3233 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
3234 (class_symtab): Remove.
3235 (jv_dynamics_progspace_key): New global.
3236 (jv_per_objfile_free): Reset program space data. Update assert.
3237 Don't clear globals.
3238 (get_dynamics_objfile): Use and set program space data.
3239 (get_java_class_symtab): Use get_dynamics_objfile.
3240 (add_class_symbol): Likewise.
3241 (java_link_class_type): Likewise.
3242 (java_object_type, jv_clear_object_type, set_java_object_type):
3244 (get_java_object_type): Update. Don't cache result.
3245 (is_object_type): Don't call set_java_object_type.
3246 (_initialize_java_language): Don't set jv_type_objfile_data_key;
3247 initialize jv_dynamics_progspace_key.
3249 2011-06-14 Tom Tromey <tromey@redhat.com>
3251 * symtab.h (current_objfile): Don't declare.
3252 * objfiles.h (current_objfile): Don't declare.
3253 * objfiles.c (current_objfile): Remove.
3254 * mdebugread.c (current_objfile): New file-scope global.
3255 * dbxread.c (current_objfile): New file-scope global.
3256 * coffread.c (current_objfile): New file-scope global.
3258 2011-06-13 Pedro Alves <pedro@codesourcery.com>
3260 * top.h (line): Rename to ...
3261 (saved_command_line): ... this.
3262 (linesize): Rename to ...
3263 (saved_command_line_size): ... this.
3264 * top.c (line): Rename to ...
3265 (saved_command_line): ... this.
3266 (linesize): Rename to ...
3267 (saved_command_line_size): ... this.
3268 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
3269 * event-top.c (command_line_handler): Adjust.
3270 * main.c (captured_main): Adjust.
3272 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3274 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
3275 get_frame_func instead of get_frame_pc to determine the code
3276 address used to construct the frame ID.
3277 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
3278 (i386_epilogue_frame_this_id): Likewise.
3279 (i386_epilogue_frame_prev_register): New function.
3280 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3281 (i386_stack_tramp_frame_sniffer): Fix coding style.
3282 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3283 (i386_gdbarch_init): Fix comments.
3285 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3287 * i386-tdep.c (i386_match_insn_block): Use length of the proper
3288 instruction when walking back through the instruction stream.
3290 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 * symtab.c (output_partial_symbol_filename): Exchange the filename and
3293 fullname parameters order.
3295 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3298 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3300 * psymtab.c (map_symbol_filenames_psymtab)
3301 (map_partial_symbol_filenames): Likewise.
3302 * psymtab.h: Include symfile.h.
3303 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3304 * symfile.h (symbol_filename_ftype): New.
3305 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3306 map_symbol_filenames, clarify more the naming in comment.
3308 2011-06-07 Doug Evans <dje@google.com>
3310 * cc-with-index.sh: Fix typos in comment.
3311 Look for ../../gdb, for fullname.exp.
3313 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 Pedro Alves <pedro@codesourcery.com>
3316 * cli/cli-cmds.c (shell_escape): Use waitpid.
3317 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3319 2011-06-07 Tristan Gingold <gingold@adacore.com>
3321 * xcoffread.c (dwarf2_xcoff_names): New variable.
3322 (aix_process_linenos): Add a guard.
3323 (xcoff_symfile_finish): Free dwarf2.
3324 (xcoff_initial_scan): Add dwarf2 support.
3326 2011-06-06 Pedro Alves <pedro@codesourcery.com>
3328 * infcall.c (run_inferior_call): Don't mask async. Instead force
3329 a synchronous wait, if the target can async.
3331 * target.h (struct target_ops): Delete to_async_mask.
3332 (target_async_mask): Delete.
3333 * target.c (update_current_target): Delete references to to_async_mask.
3334 * linux-nat.c (linux_nat_async_mask_value): Delete.
3335 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3336 to linux_nat_async_mask_value.
3337 (linux_nat_async_mask): Delete.
3338 (linux_nat_async, linux_nat_close): Remove references to
3339 linux_nat_async_mask_value.
3340 * record.c (record_async_mask_value): Delete.
3341 (record_async): Remove references to record_async_mask_value.
3342 (record_async_mask): Delete.
3343 (record_can_async_p, record_is_async_p): Remove references to
3344 record_async_mask_value.
3345 (init_record_ops, init_record_core_ops): Remove references to
3347 * remote.c (remote_async_mask_value): Delete.
3348 (init_remote_ops): Remove reference to remote_async_mask.
3349 (remote_can_async_p, remote_is_async_p): Remove references to
3350 remote_async_mask_value.
3351 (remote_async): Remove references to remote_async_mask_value.
3352 (remote_async_mask): Delete.
3354 * infrun.c (fetch_inferior_event): Don't claim registers changed
3355 if the current thread is already not executing.
3357 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3359 From Stephen Kitt <steve@sk2.org>
3360 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3361 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3363 2011-06-03 Joel Brobecker <brobecker@adacore.com>
3365 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3366 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3368 2011-06-03 Tom Tromey <tromey@redhat.com>
3370 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3372 * python/py-exitedevent.c (create_exited_event_object): Change
3373 type of 'exit_code'. Optionally add exit_code attribute.
3374 (emit_exited_event): Change type of 'exit_code'.
3375 * python/py-event.h (emit_exited_event): Update.
3376 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3377 * infrun.c (handle_inferior_event): Set exit code fields on
3379 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3381 * inferior.c (exit_inferior_1): Initialize new fields.
3383 2011-06-03 Tom Tromey <tromey@redhat.com>
3385 * dwarf2expr.c (get_signed_type): New function.
3386 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3388 2011-06-02 Keith Seitz <keiths@redhat.com>
3390 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3392 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3394 * top.h (simplified_command_loop): Delete declaration.
3396 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3398 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3399 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3401 2011-06-01 Yao Qi <yao@codesourcery.com>
3403 * objfiles.h (obj_section_addr): Update reference to objfile from
3405 (obj_section_endaddr): Likewise.
3407 2011-06-01 Daniel Jacobowitz <drow@false.org>
3409 * MAINTAINERS: Update my email address and affiliation. Also
3410 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3412 2010-05-31 Keith Seitz <keiths@redhat.com>
3415 * linespec.c (get_search_block): New function.
3416 (find_methods): Add FILE_SYMTATB parameter and use it and
3417 get_search_block to pass an appropriate block to
3418 lookup_symbol_in_namespace.
3419 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3420 Check if *ARGPTR starts with a filename first.
3421 If it does, call locate_first_half again to locate the next
3422 "first half" of the linespec.
3423 Pass FILE_SYMTATB to decode_objc and decode_compound.
3424 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3425 (locate_first_half): Stop on the first colon seen.
3426 (decode_compound): Add FILE_SYMTAB parameter.
3427 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3428 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3429 get_search_block with lookup_symbol.
3430 (find_method): Add FILE_SYMTAB parameter and pass it to
3432 (decode_objc): Use get_search_block.
3434 2010-05-31 Keith Seitz <keiths@redhat.com>
3437 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3438 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3439 and CP_ANONYMOUS_NAMESPACE_LEN.
3440 (cp_is_anonymous): Likewise.
3441 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3442 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3443 * dwarf2read.c (namespace_name): Likewise.
3444 (fixup_partial_die): Likewise.
3445 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3446 seen in the input, keep it.
3448 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3450 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3451 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3452 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3453 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3454 * remote.c (_initialize_remote): Register
3455 async_remote_interrupt_twice directly as
3456 sigint_remote_twice_token event.
3458 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3460 * target.h (enum inferior_event_type): Delete INF_ERROR.
3461 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3463 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3465 * interps.c (interp_set): Don't cancel continuations.
3467 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3471 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3473 * continuations.h (continuation_ftype): Add `err' parameter.
3474 Document parameters.
3475 (do_all_continuations, do_all_continuations_thread)
3476 (do_all_intermediate_continuations)
3477 (do_all_intermediate_continuations_thread)
3478 (do_all_inferior_continuations): Add `err' parameter.
3479 * continuations.c (do_my_continuations_1, do_my_continuations)
3480 (do_all_inferior_continuations, do_all_continuations_ptid)
3481 (do_all_continuations_thread_callback)
3482 (do_all_continuations_thread, do_all_continuations)
3483 (do_all_intermediate_continuations_thread_callback)
3484 (do_all_intermediate_continuations_thread)
3485 (do_all_intermediate_continuations): Add `err' parameter, and pass
3486 it down all the way to the continuations proper.
3487 * inf-loop.c (inferior_event_handler): If fetching an inferior
3488 event throws an error, don't pop the target, and still call the
3489 continuations, but with `err' set. Adjust all other continuation
3491 * breakpoint.c (until_break_command_continuation): Add `err'
3493 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3494 issue another step if `err' is set.
3495 (struct until_next_continuation_args): New.
3496 (until_next_continuation): Add `err' parameter. Adjust.
3497 (until_next_command): Adjust.
3498 (struct finish_command_continuation_args): Add `thread' field.
3499 (finish_command_continuation): Add `err' parameter. Handle it.
3500 (finish_forward): Adjust.
3501 (attach_command_continuation): Add `err' parameter. Handle it.
3502 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3503 cancel the continuations.
3504 * interps.c (interp_set): Adjust to cancel the continuations.
3505 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3506 continuations rather than discarding.
3507 (free_thread): Don't clear thread inferior resources here.
3508 (delete_thread_1): Do it here instead. And do it before removing
3509 the thread from the threads list. Tag the thread as exited before
3510 clearing thread inferior resources.
3512 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3514 * infcall.c (call_function_by_hand): Rephrase error message.
3516 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3518 * defs.h (struct thread_info, struct inferior): Delete forward
3520 * breakpoint.h (struct thread_info): New forward declaration.
3521 * observer.sh (struct inferior): New forward declaration.
3522 * python/python-internal.h (struct inferior): New forward
3525 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3527 * defs.h (struct continuation, continuation_ftype)
3528 (continuation_free_arg_ftype, add_continuation)
3529 (do_all_continuations, do_all_continuations_thread)
3530 (discard_all_continuations, discard_all_continuations_thread)
3531 (add_intermediate_continuation, do_all_intermediate_continuations)
3532 (do_all_intermediate_continuations_thread)
3533 (discard_all_intermediate_continuations)
3534 (discard_all_intermediate_continuations_thread)
3535 (add_inferior_continuation, do_all_inferior_continuations)
3536 (discard_all_inferior_continuations): Move to ...
3537 * continuations.h: ... this new file.
3538 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3539 infcmd.c, inferior.c, infrun.c, interps.c: Include
3542 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3543 Doug Evans <dje@google.com>
3545 Fix PR 10970, PR 12702.
3546 * linux-nat.c (linux_lwp_is_zombie): New function.
3547 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3548 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3550 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3552 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3554 (add_continuation, add_intermediate_continuation)
3555 (add_inferior_continuation): Use them.
3556 * continuations.c (struct continuation): Use them.
3557 (make_continuation_ftype): Delete.
3558 (make_continuation, add_inferior_continuation, add_continuation)
3559 (add_intermediate_continuation): Use continuation_ftype and
3560 continuation_free_arg_ftype. Rename parameters to shorter names.
3562 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3564 * continuations.c (make_continuation): Make it return void.
3565 (do_my_continuations): Rename to ...
3566 (do_my_continuations_1): ... this. Remove old_chain parameter and
3568 (do_my_continuations): New.
3569 (discard_my_continuations): Rename to ...
3570 (discard_my_continuations_1): ... this. Remove old_chain
3571 parameter and adjust.
3572 (discard_my_continuations): New.
3573 (add_inferior_continuation): Simplify.
3574 (do_all_inferior_continuations): Reimplement on top
3575 do_my_continuations.
3576 (discard_all_inferior_continuations): Simplify.
3577 (add_continuation): Simplify.
3578 (do_all_continuations_ptid): Simplify.
3579 (discard_all_continuations_thread_callback): Simplify.
3580 (add_intermediate_continuation): Simplify.
3581 (discard_all_intermediate_continuations_thread_callback):
3584 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3586 * utils.c (struct continuation, add_continuation)
3587 (add_inferior_continuation)
3588 (do_all_inferior_continuations, discard_all_inferior_continuations)
3589 (restore_thread_cleanup, do_all_continuations_ptid)
3590 (do_all_continuations_thread_callback)
3591 (do_all_continuations_thread, do_all_continuations)
3592 (discard_all_continuations_thread_callback)
3593 (discard_all_continuations_thread, discard_all_continuations)
3594 (add_intermediate_continuation)
3595 (do_all_intermediate_continuations_thread_callback)
3596 (do_all_intermediate_continuations_thread)
3597 (do_all_intermediate_continuations)
3598 (discard_all_intermediate_continuations_thread_callback)
3599 (discard_all_intermediate_continuations_thread)
3600 (discard_all_intermediate_continuations): Move to ...
3601 * continuations.c: ... this new file, and adjust to no longer
3602 implement continuations on top of cleanups.
3603 * Makefile.in (SFILES): Add continuations.c.
3604 (COMMON_OBS): Add continuations.o.
3606 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3608 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3609 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3610 Internal error on invalid values.
3611 * reverse.c: Don't handle EXEC_ERROR.
3612 * mi/mi-main.c: Don't handle EXEC_ERROR.
3614 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3616 * record.c: Include event-loop.h, inf-loop.h.
3617 (record_beneath_to_async): New global.
3618 (tmp_to_async): New global.
3619 (record_async_inferior_event_token): New global.
3620 (record_open_1): Don't error out if async is enabled.
3621 (record_open): Handle to_async. Create an async event source in
3623 (record_close): Delete the async event source.
3624 (record_resumed): New global.
3625 (record_execution_dir): New global.
3626 (record_resume, record_core_resume): Set them. Register the
3627 target on the event loop.
3628 (record_wait): Rename to ...
3629 (record_wait_1): ... this. Add more debug output. Handle
3630 TARGET_WNOHANG, and the target beneath returning
3631 TARGET_WAITKIND_IGNORE.
3632 (record_wait): Reimplement on top of record_wait_1.
3633 (record_async_mask_value): New global.
3634 (record_async, record_async_mask, record_can_async_p)
3635 (record_is_async_p, record_execution_direction): New functions.
3636 (init_record_ops, init_record_core_ops): Install new methods.
3637 * infrun.c (fetch_inferior_event): Temporarily switch the global
3638 execution direction to the direction the target was going.
3639 (execution_direction): Change type to int.
3640 * target.c (default_execution_direction): New function.
3641 (update_current_target): Inherit and de_fault
3642 to_execution_direction.
3643 * target.h (struct target_ops) <to_execution_direction>: New
3645 (target_execution_direction): New macro.
3646 * inferior.h (execution_direction): Change type to int.
3648 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3650 * infcall.c (call_function_by_hand): Don't allow calling functions
3651 in reverse execution mode.
3653 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3655 * infcmd.c (finish_command): Allow async finish in reverse.
3657 2011-05-26 Yao Qi <yao@codesourcery.com>
3659 * gdb_thread_db.h: Delete. Move to ...
3660 * common/gdb_thread_db.h: ... here.
3662 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3664 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3665 function's entry point instead of a manually managed momentary
3666 breakpoint, and only ever issue one proceed call.
3667 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3668 doing a reverse-finish, switch to stepi mode, to do another step.
3669 (insert_step_resume_breakpoint_at_sal): Make public.
3670 (normal_stop): No need to save function value return registers if
3672 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3674 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3676 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3677 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3678 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3680 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3681 step-resume breakpoints.
3682 (print_it_typical): Handle bp_hp_step_resume.
3683 (bpstat_what): Ditto.
3684 (bptype_string): Ditto.
3685 (print_one_breakpoint_location): Ditto.
3686 (allocate_bp_location): Ditto.
3688 (breakpoint_re_set_one): Ditto.
3689 * infrun.c (handle_inferior_event): Adjust. Split
3690 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3691 BPSTAT_WHAT_HP_STEP_RESUME.
3692 (insert_step_resume_breakpoint_at_sal): Rename to ...
3693 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3694 parameter. Handle it.
3695 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3696 insert_step_resume_breakpoint_at_sal_1.
3697 (insert_step_resume_breakpoint_at_frame): Rename to ...
3698 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3699 set a high-priority step-resume breakpoint.
3700 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3701 (insert_step_resume_breakpoint_at_caller): Ditto.
3703 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3705 * breakpoint.c (iterate_over_related_breakpoints): New.
3706 (do_map_delete_breakpoint): New.
3707 (delete_command): Pass do_map_delete_breakpoint to
3708 map_breakpoint_numbers.
3709 (do_disable_breakpoint): New.
3710 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3712 (do_enable_breakpoint): Rename to ...
3713 (enable_breakpoint_disp): ... this.
3714 (enable_breakpoint): Adjust.
3715 (do_enable_breakpoint): New.
3716 (enable_once_breakpoint): Delete.
3717 (do_map_enable_breakpoint): New.
3718 (do_map_enable_once_breakpoint): New.
3719 (enable_once_command, enable_delete_command)
3720 (delete_trace_command): Iterate over the breakpoint's related
3723 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3725 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3726 for ALPHA_ZERO_REGNUM.
3727 (alpha_supply_int_regs): Explicitly supply zero as the value for
3728 ALPHA_ZERO_REGNUM in the register cache.
3729 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3731 2011-05-26 Yao Qi <yao@codesourcery.com>
3733 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3735 2011-05-26 Tristan Gingold <gingold@adacore.com>
3737 * symfile.h (struct dwarf2_section_names): New type.
3738 (struct dwarf2_debug_sections): New type.
3739 (dwarf2_has_info): Add parameter.
3740 * dwarf2read.c (dwarf2_elf_names): New variable.
3741 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3742 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3743 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3744 (dwarf2_has_info): Add names parameter. Pass names
3745 to dwarf2_locate_sections.
3746 (section_is_p): Rewrite using the names parameter.
3747 (dwarf2_locate_sections): Use section names from the names parameter.
3748 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3749 * elfread.c (read_psyms): Ditto.
3750 * machoread.c (macho_symfile_read): Ditto.
3752 2011-05-25 Andreas Schwab <schwab@redhat.com>
3755 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3757 2011-05-24 Keith Seitz <keiths@redhat.com>
3760 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3761 (decode_compound): Unconditionally call keep_name_info.
3763 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3765 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3766 scope, clear its command list.
3767 (map_breakpoint_numbers): Don't walk the related breakpoints list
3770 2011-05-24 Tom Tromey <tromey@redhat.com>
3772 * MAINTAINERS: Move Jim Blandy to past maintainers.
3774 2011-05-24 Tristan Gingold <gingold@adacore.com>
3776 * symfile.h (enum dwarf2_section_enum): New type.
3777 (dwarf2_get_section_info): New prototype.
3778 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3779 section_name by sect. Use a switch to select the info.
3780 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3781 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3783 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3785 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3786 shared library event breakpoint if there's no execution.
3788 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3790 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3791 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3793 2011-05-23 Tom Tromey <tromey@redhat.com>
3795 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3798 2011-05-23 Doug Evans <dje@google.com>
3800 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3801 entry for RuntimeError to doc string.
3803 2011-05-23 Jerome Guitton <guitton@adacore.com>
3805 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3806 sequence for probing loops.
3808 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3810 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3813 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3815 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3816 zero as the value for %g0 in the register cache.
3817 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3818 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3820 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3822 * infrun.c (proceed): Set previous_inferior_ptid here.
3823 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3824 inferior_ptid, not null_ptid.
3825 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3826 (fetch_inferior_event): Nor here.
3828 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3830 * inf-loop.c (inferior_event_handler): Only output a message if
3833 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3835 * MAINTAINERS: Update my e-mail address.
3837 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3839 * infrun.c (proceed): Switch the inferior event loop to
3840 INF_EXEC_COMPLETE if the target refused to resume from a
3843 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3845 * infcmd.c: Include "inf-loop.h".
3846 (step_once): When stepping into an inline subroutine, pretend the
3847 target has run. If the target can async, switch the inferior
3848 event loop to INF_EXEC_COMPLETE.
3849 * inferior.h (user_visible_resume_ptid): Declare.
3850 * infrun.c (user_visible_resume_ptid): New function, factored out
3853 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3854 that the current thread is running. Merge async and sync
3857 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3859 * infcmd.c (step_1): Simplify synchronous case.
3861 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3863 * tracepoint.c: Include exceptions.h.
3864 (TFILE_PID): Move higher in file.
3865 (tfile_open): Delay pushing the tfile target until we're assured
3866 the tfile header is present in the file. Wrap reading the initial
3867 newline-terminated lines in TRY_CATCH. Pop the target if the
3868 initial setup failed. Add the tfile's thread immediately
3869 aftwards, before any non-essential setup. Don't skip
3870 post_create_inferior if there are no traceframes present in the
3872 (tfile_close): Remove redundant check for null before xfree call.
3873 (tfile_thread_alive): New function.
3874 (init_tfile_ops): Register it as to_thread_alive callback.
3876 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3878 * tracepoint.c (tfile_open): Delete #if 0'd code.
3880 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 Fix -readnow for -gdwarf-4 unused type units.
3883 * dwarf2read.c (struct signatured_type): Remove the field offset.
3884 (create_signatured_type_table_from_index): Remove its initialization.
3885 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3886 instead. Add a complaint call.
3887 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3888 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3889 (lookup_signatured_type_at_offset, read_signatured_type)
3890 (write_one_signatured_type): Update the field for per_cu.
3892 2011-05-19 Tom Tromey <tromey@redhat.com>
3894 * python/py-inferior.c (python_inferior_exit): Use
3896 (python_on_resume): Likewise.
3898 2011-05-19 Matt Rice <ratmice@gmail.com>
3900 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3902 2011-05-19 Hui Zhu <teawater@gmail.com>
3904 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3906 2011-05-19 Hui Zhu <teawater@gmail.com>
3908 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3910 2011-05-18 Tom Tromey <tromey@redhat.com>
3912 * dwarf2read.c (dwarf2_add_field): Constify.
3913 * value.c (value_static_field): Constify.
3914 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3916 * ax-gdb.c (gen_static_field): Constify
3918 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3920 * linux-nat.c (kill_callback): Use SIGKILL first.
3922 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3924 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3926 2011-05-18 Tom Tromey <tromey@redhat.com>
3928 * value.c (value_fn_field): Constify.
3929 * symtab.c (gdb_mangle_name): Constify.
3930 * stabsread.c (update_method_name_from_physname): Make 'physname'
3932 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3933 const. Use explicit fputc_filtered loop.
3934 (pascal_type_print_base): Constify.
3935 * p-lang.h (pascal_type_print_method_args): Update.
3936 * linespec.c (add_matching_methods): Constify.
3937 (add_constructors): Likewise.
3938 * jv-typeprint.c (java_type_print_base): Constify.
3939 * gdbtypes.h (struct cplus_struct_type)
3940 <fn_fieldlist.fn_field.physname>: Now const.
3941 * dwarf2read.c (compute_delayed_physnames): Constify.
3942 (dwarf2_add_member_fn): Likewise.
3943 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3945 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3947 * infrun.c (resume): Mention which is the current thread, and its
3948 current PC in debug output.
3949 (prepare_to_proceed): Mention the thread switching in debug
3952 2011-05-18 Tom Tromey <tromey@redhat.com>
3954 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3955 path check. Use xmalloc and cleanups.
3956 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3958 2011-05-17 Tom Tromey <tromey@redhat.com>
3960 * cp-valprint.c (cp_print_value_fields): Catch errors from
3963 2011-05-17 Tom Tromey <tromey@redhat.com>
3965 * dwarf2read.c (dwarf2_get_die_type): Call
3966 get_die_type_at_offset.
3967 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3968 get_base_type function.
3970 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3972 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3975 2011-05-16 Doug Evans <dje@google.com>
3977 * python/py-auto-load.c (source_section_scripts): Mention objfile
3980 2011-05-15 Doug Evans <dje@google.com>
3982 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3983 (try_thread_db_load_from_pdir): Call it. If unable to find
3984 libthread_db in directory of libpthread, see if we're looking at
3985 the separate-debug-info copy.
3987 * python/py-autoload.c (print_script): Print "Missing" instead of
3988 "No" for missing scripts.
3989 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3991 2011-05-13 Doug Evans <dje@google.com>
3993 * ui-file.c (stdio_file_write_async_safe): Add comment.
3995 2011-05-14 Hui Zhu <teawater@gmail.com>
3997 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3999 2011-05-13 Doug Evans <dje@google.com>
4001 Support $pdir and $sdir in libthread-db-search-path.
4002 * NEWS: Mention $sdir,$pdir.
4003 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4004 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4005 (try_thread_db_load_from_sdir): New function.
4006 (try_thread_db_load_from_dir): New function.
4007 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4008 system directories if search of libthread-db-search-path fails,
4009 that is now done via $sdir.
4010 (has_libpthread): New function.
4011 (thread_db_load): Remove search for libthread_db in directory of
4012 libpthread, that is now done via $pdir.
4014 * NEWS: Mention "info auto-load-scripts".
4015 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4016 script_not_found_warning_printed.
4017 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4018 all callers updated. Initialize script_not_found_warning_printed.
4019 (get_auto_load_pspace_data_for_loading): New function.
4020 (maybe_add_script): New function.
4021 (source_section_scripts): Simplify. Only print one warning regardless
4022 of the number of auto-load scripts not found.
4023 (clear_section_scripts): Clear script_not_found_warning_printed.
4024 (auto_load_objfile_script): Record script in hash table.
4025 (count_matching_scripts): New function.
4026 (maybe_print_script): Renamed from maybe_print_section_script, all
4027 callers updated. Rewrite to use ui_out_*.
4028 (info_auto_load_scripts): Renamed from
4029 maintenance_print_section_scripts, all callers updated.
4030 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4031 renamed as "info auto-load-scripts".
4033 2011-05-13 Tom Tromey <tromey@redhat.com>
4035 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4036 (read_sleb128): Likewise.
4038 2011-05-13 Tom Tromey <tromey@redhat.com>
4040 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4043 2011-05-13 Doug Evans <dje@google.com>
4045 * linux-nat.c (debug_linux_nat_async): Delete.
4046 Replace all references to use debug_linux_nat instead.
4047 (show_debug_linux_nat_async): Delete.
4048 (sigchld_handler): Call ui_file_write_async_safe instead of
4050 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4051 * ui-file.c (struct ui_file): New member to_write_async_safe.
4052 (null_file_write_async_safe): New function.
4053 (ui_file_write_async_safe): New function.
4054 (set_ui_file_write_async_safe): New function.
4055 (ui_file_new): Initialize to_write_async_safe.
4056 (stdio_file_write_async_safe): New function.
4057 (struct stdio_file): New member fd.
4058 (stdio_file_new): Initialize to_write_async_safe, fd.
4059 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4061 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4062 (set_ui_file_write_async_safe): Declare.
4063 (ui_file_write_async_safe): Declare.
4065 2011-05-13 Tom Tromey <tromey@redhat.com>
4067 * utils.c (do_value_free): New function.
4068 (make_cleanup_value_free): Likewise.
4069 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4071 (dwarf2_loc_desc_needs_frame): Call
4072 make_cleanup_value_free_to_mark.
4073 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4074 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4076 (new_dwarf_expr_context): Don't call value_mark.
4077 * dwarf2-frame.c (execute_stack_op): Call
4078 make_cleanup_value_free_to_mark.
4079 * defs.h (make_cleanup_value_free): Declare.
4081 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4083 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4084 prepare_execute_command.
4085 * top.c (prepare_execute_command): Return cleanup.
4086 (execute_command): Use cleanup from prepare_execute_command.
4087 * top.h (prepare_execute_command): Change prototype to return
4089 * defs.h (struct value): Add opaque declaration.
4090 (make_cleanup_value_free_to_mark): Add prototype.
4091 * utils.c (do_value_free_to_mark): New function.
4092 (make_cleanup_value_free_to_mark): Likewise.
4094 2011-05-12 Tom Tromey <tromey@redhat.com>
4096 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4097 cast left-hand-side to unsigned.
4099 2011-05-12 Tom Tromey <tromey@redhat.com>
4102 * value.h (value_from_contents): Declare.
4103 * value.c (value_from_contents): New function.
4104 * dwarf2read.c (dwarf_stack_op_name): Add new values.
4105 (dwarf2_get_die_type): New function.
4106 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
4107 (allocate_piece_closure): Acquire reference to values.
4108 (read_pieced_value): Update for value-based expressions.
4109 (write_pieced_value): Likewise.
4110 (free_pieced_value_closure): Call value_free as needed.
4111 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
4112 Update for value-based expressions.
4113 * dwarf2loc.h (dwarf2_get_die_type): Declare.
4114 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
4115 <get_base_type>: New field.
4116 (struct dwarf_expr_piece) <v.value>: Change type.
4117 <v.regno>: New field.
4118 (struct dwarf_expr_context) <mark>: New field.
4119 (dwarf_expr_piece, dwarf_expr_fetch): Update.
4120 (dwarf_expr_pop, dwarf_expr_push): Remove.
4121 (dwarf_expr_push_address): Declare.
4122 * dwarf2expr.c (dwarf_arch_cookie): New global.
4123 (struct dwarf_gdbarch_types): New.
4124 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
4126 (dwarf_expr_push): Change type of 'value' argument. Update. Now
4128 (dwarf_expr_push_address): New function.
4129 (dwarf_expr_pop): Now static.
4130 (dwarf_expr_fetch): Change return type.
4131 (dwarf_require_integral): New function.
4132 (dwarf_expr_fetch): Simplify.
4133 (add_piece): Update.
4134 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
4136 (execute_stack_op) <sign_ext>: Remove.
4137 Use values for DWARF stack.
4138 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
4139 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4141 (_initialize_dwarf2expr): New function.
4142 (add_piece): Update.
4143 (new_dwarf_expr_context): Set new field.
4144 (free_dwarf_expr_context): Call value_free_to_mark.
4145 * dwarf2-frame.c (no_base_type): New function.
4146 (execute_stack_op): Set get_base_type field. Update.
4148 2011-05-12 Tom Tromey <tromey@redhat.com>
4150 * dwarf2read.c (read_common_block): Fix formatting.
4152 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
4154 * breakpoint.c (disable_breakpoint): Disable all locations
4155 associated with a tracepoint on target if a trace experiment is
4157 (disable_command): Disable a specific tracepoint location on target if
4158 a trace experiment is running.
4159 (do_enable_breakpoint): Enable all locations associated with a
4160 tracepoint on target if a trace experiment is running.
4161 (enable_command) Enable a specific tracepoint location on target if a
4162 trace experiment is running.
4163 * target.c (update_current_target): Add INHERIT and de_fault clauses for
4164 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4165 to_disable_tracepoint.
4166 * target.h: Add declaration of struct bp_location.
4167 (struct target_ops): Add new functions
4168 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4169 to_disable_tracepoint to target operations.
4170 (target_supports_enable_disable_tracepoint): New macro.
4171 (target_enable_tracepoint): New macro.
4172 (target_disable_tracepoint): New macro.
4173 * remote.c (struct remote_state): Add new field.
4174 (remote_enable_disable_tracepoint_feature): New.
4175 (remote_protocol_features): Add new entry.
4176 (remote_supports_enable_disable_tracepoint): New.
4177 (remote_enable_tracepoint): New.
4178 (remote_disable_tracepoint): New.
4179 (init_remote_ops): Add remote_enable_tracepoint,
4180 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
4181 to remote operations.
4182 * tracepoint.c (start_tracing): Allow tracing to start without any
4183 tracepoints enabled with just a warning if they can be re-enabled
4185 * NEWS: Add news item for the new behaviour of the enable and disable
4186 GDB commands when applied to tracepoints.
4187 Add news items for the new remote packets QTEnable and QTDisable.
4189 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4191 * config.in: Regenerate.
4192 * configure: Regenerate.
4193 * configure.ac <--with-system-readline> (for readline_echoing_p):
4195 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
4196 (tui_old_rl_echoing_p): ... here.
4197 (tui_setup_io): Rename extern declaration readline_echoing_p to
4198 _rl_echoing_p. Adjust assignments for the both renames.
4200 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4202 * symtab.c (lookup_symtab): Run cleanup before returning.
4204 2011-05-11 Tom Tromey <tromey@redhat.com>
4206 * dwarf2read.c (handle_data_member_location): New function.
4207 (dwarf2_add_field): Use it.
4208 (read_common_block): Likewise.
4210 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4212 Make addrs->SECTINDEX always defined.
4213 * symfile.c (relative_addr_info_to_section_offsets): Check for
4214 SECTINDEX -1, not for zero ADDR.
4215 (addrs_section_compar): Remove checking for invalid SECTINDEX.
4216 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
4217 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
4220 2011-05-10 Doug Evans <dje@google.com>
4222 * linux-thread-db.c: Whitespace cleanup.
4223 (try_thread_db_load_1): Fix comment.
4225 * linux-thread-db.c (set_libthread_db_search_path): New function.
4226 (_initialize_thread_db): Add setter for libthread-db-search-path.
4228 2011-05-09 Doug Evans <dje@google.com>
4230 * NEWS: Mention --with-iconv-bin.
4231 * configure.ac: New option --with-iconv-bin.
4232 * configure: Regenerate.
4233 * config.in: Regenerate.
4234 * defs.h (relocate_gdb_directory): Declare.
4235 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
4236 removed progname parameter, and exported. All callers updated.
4237 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
4239 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
4240 adding missing call to restore_child_signals_mask.
4242 2011-05-09 Pedro Alves <pedro@codesourcery.com>
4244 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
4246 * infrun.c (proceed, start_remote): Adjust.
4247 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
4248 and adjust to not handle it.
4249 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
4250 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
4251 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
4252 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
4253 * windows-nat.c (do_initial_windows_stuff): Adjust.
4254 * infcmd.c (attach_command): Adjust.
4255 (notice_new_inferior): Adjust.
4257 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4259 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
4260 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
4261 * spu-tdep.c (op_selb): Use correct value.
4263 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4265 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
4266 "parent" parameter to symbol_file_add_from_bfd call.
4268 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4269 Thiago Jung Bauermann <bauerman@br.ibm.com>
4271 Implement support for PowerPC BookE masked watchpoints.
4272 * NEWS: Mention masked watchpoint support. Create "Changed commands"
4274 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
4275 method. Initialize to NULL in all existing breakpoint_ops instances.
4276 (struct breakpoint) <hw_wp_mask>: New field.
4277 * breakpoint.c (is_masked_watchpoint): Add prototype.
4278 (update_watchpoint): Don't set b->val for masked watchpoints. Call
4279 breakpoint's breakpoint_ops.works_in_software_mode if available.
4280 (watchpoints_triggered): Handle the case of a hardware masked
4282 (watchpoint_check): Likewise.
4283 (works_in_software_mode_watchpoint): New function.
4284 (insert_masked_watchpoint, remove_masked_watchpoint)
4285 (resources_needed_masked_watchpoint)
4286 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4287 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4288 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4290 (masked_watchpoint_breakpoint_ops): New structure.
4291 (watch_command_1): Check for the existence of the `mask' parameter.
4292 Set b->ops according to the type of hardware watchpoint being created.
4293 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4294 (ppc_linux_remove_mask_watchpoint)
4295 (ppc_linux_masked_watch_num_registers): New functions.
4296 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4297 to_remove_mask_watchpoint and to_masked_watch_num_registers.
4298 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4299 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4300 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4301 (target_masked_watch_num_registers): New functions.
4302 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4303 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4305 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4306 (target_masked_watch_num_registers): Add prototypes.
4308 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4311 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4312 (producer_is_gcc_ge_4_0): New function.
4313 (process_full_comp_unit): Set also symtab->locations_valid. Move the
4314 symtab->language code.
4315 (var_decode_location): Set cu->has_loclist.
4316 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4317 skip. Intialize force_skip from locations_valid. Move the prologue
4318 skipping code into two passes.
4319 * symtab.h (struct symtab): Make the primary field a bitfield. New
4320 field locations_valid.
4322 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4325 (classify_inner_name): Call cp_lookup_nested_type with
4327 * cp-namespace.c (cp_lookup_nested_type): New variable
4328 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
4329 type_name_no_tag_or_error with saved_parent_type.
4330 * dwarf2read.c (load_partial_dies): Read in any children of
4331 DW_TAG_typedef with complaint in such case.
4332 * gdbtypes.c (type_name_no_tag_or_error): New function.
4333 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4334 * valops.c (destructor_name_p): New comment for parameter type. Remove
4335 type const. Make dname and cp const. Call type_name_no_tag_or_error.
4336 * value.h (destructor_name_p): Remove type const.
4338 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4340 * symtab.c (compare_symbol_name): New function.
4341 (completion_list_add_name, expand_partial_symbol_name): Call it,
4342 remove the variable ncmp.
4343 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4346 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4348 Demote to sw watchpoint only in update_watchpoint.
4349 * breakpoint.c (update_watchpoint): Change between software and
4350 hardware watchpoint for all kinds of watchpoints, not just
4351 read/write ones. Determine b->exact value here instead of
4352 in watch_command_1. Error out if there are not enough resources
4353 for a read or access hardware watchpoint.
4354 (watch_command_1): Remove logic of checking whether there are
4355 enough resources available, since update_watchpoint will do that
4356 work now. Don't set b->exact here. Catch exceptions thrown by
4357 update_watchpoint and delete the watchpoint.
4358 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4359 Use target_exact_watchpoints instead.
4360 (delete_breakpoint): Notify observers only if deleted watchpoint
4361 has a breakpoint number assigned to it.
4363 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
4365 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4367 2011-05-05 Jerome Guitton <guitton@adacore.com>
4369 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4371 (i386_stack_tramp_frame_unwind): New static global.
4372 (i386_match_pattern): New function, extracted from i386_match_insn.
4373 (i386_match_insn): Use i386_match_pattern.
4374 (i386_match_insn_block): New function.
4375 (i386_tramp_chain_in_reg_insns)
4376 (i386_tramp_chain_on_stack_insns): New static variables.
4377 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4380 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4382 * configure.host (xscale*): Don't handle target.
4383 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4386 2011-05-04 Yao Qi <yao@codesourcery.com>
4388 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4390 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4393 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4394 | * elfread.c (elf_symtab_read): Stop memory leak.
4396 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4398 * nto-tdep.c (nto_target): Replace deprecated call to
4399 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4401 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4403 Fix false GCC warning.
4404 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4406 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4408 * breakpoint.c (update_watchpoint): Move code to change
4409 the enable state of breakpoint from here ...
4410 (do_enable_breakpoint): ... to here.
4412 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4414 * valprint.c (val_print_array_elements): Fixed poor performance
4415 of printing very large arrays with repeat_count_threshold set
4416 to unlimited. New comment.
4418 2011-04-29 Tom Tromey <tromey@redhat.com>
4420 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4421 (mi_parse): Likewise.
4422 * breakpoint.c (break_range_command): Use sizeof char*, not
4424 (create_breakpoint): Likewise.
4425 (parse_breakpoint_sals): Likewise.
4427 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4429 * linux-nat.c (linux_child_remove_fork_catchpoint)
4430 (linux_child_remove_vfork_catchpoint)
4431 (linux_child_remove_exec_catchpoint): New functions.
4432 (linux_target_install_ops): Install them.
4434 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4438 * varobj.c (install_default_visualizer): Do not install a
4439 visualizer if the varobj is CPLUS_FAKE_CHILD.
4440 (construct_visualizer): Likewise.
4442 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4445 case insensitive comparison.
4447 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4449 * infrun.c (proceed): Revert previous change.
4450 (resume): Instead, handle the case of signal delivery while stepping
4451 off a breakpoint location here, and only if software single-stepping
4452 is used. Handle nested signals.
4454 2011-04-28 Yao Qi <yao@codesourcery.com>
4456 * arm-tdep.c (copy_unmodified): Rename to ...
4457 (arm_copy_unmodified): .. this. New.
4458 (copy_preload): Move common part to ...
4459 (install_preload): .. this. New.
4460 (arm_copy_preload): New.
4461 (copy_preload_reg): Move common part to ...
4462 (install_preload_reg): ... this. New.
4463 (arm_copy_preload_reg): New.
4464 (copy_b_bl_blx): Move common part to ...
4465 (install_b_bl_blx): .. this. New.
4466 (arm_copy_b_bl_blx): New.
4467 (copy_bx_blx_reg): Move common part to ...
4468 (install_bx_blx_reg): ... this. New.
4469 (arm_copy_bx_blx_reg): New.
4470 (copy_alu_reg): Move common part to ...
4471 (install_alu_reg): ... this. New.
4472 (arm_copy_alu_reg): New.
4473 (copy_alu_shifted_reg): Move common part to ...
4474 (install_alu_shifted_reg): ... this. New.
4475 (copy_ldr_str_ldrb_strb): Move common part to ...
4476 (install_ldr_str_ldrb_strb): ... this. New.
4477 (arm_copy_ldr_str_ldrb_strb): New.
4478 (copy_copro_load_store): Move some common part to ...
4479 (install_copy_copro_load_store): ... this. New.
4480 (arm_copy_copro_load_store): New.
4482 (arm_copy_svc): Renamed from copy_svc.
4483 (copy_undef): Delete.
4484 (arm_copy_undef): Renamed from copy_undef.
4485 (decode_ext_reg_ld_st): Delete.
4486 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4487 (decode_svc_copro): Delete.
4488 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4489 (copy_copro_load_store, copy_alu_imm): update callers.
4490 (copy_extra_ld_st, copy_block_xfer): Likewise.
4491 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4492 (decode_miscellaneous, decode_dp_misc): Likewise.
4493 (decode_ld_st_word_ubyte, decode_media): Likewise.
4494 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4495 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4496 (decode_unconditional, decode_miscellaneous): Likewise.
4497 (decode_media, decode_b_bl_ldmstm): Likewise.
4498 (arm_process_displaced_insn): Likewise..
4499 (decode_misc_memhint_neon): Delete.
4500 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4501 (decode_miscellaneous): Delete.
4502 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4503 (decode_dp_misc): Delete.
4504 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4505 (decode_ld_st_word_ubyte): Delete.
4506 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4507 (decode_media): Delete.
4508 (arm_decode_media): Renamed from decode_media.
4509 (decode_b_bl_ldmstm): Delete.
4510 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4511 (decode_ext_reg_ld_st): Delete.
4512 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4513 (decode_unconditional): Delete.
4514 (arm_decode_unconditional): Renamed from decode_unconditional.
4516 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4518 Case insensitive lookups implementation.
4519 * dwarf2read.c: Include ctype.h.
4520 (struct mapped_index): New field version.
4521 (mapped_index_string_hash): New parameter index_version. New comment
4522 for it. Call tolower appropriately.
4523 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4524 Choose the right index version for mapped_index_string_hash.
4525 (dwarf2_read_index): Support also the index version 5. Initialize the
4526 new struct mapped_index field version.
4527 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4528 (find_slot): Explain the version needs. Pass INT_MAX for the new
4530 (write_psymtabs_to_index): Produce version 5.
4531 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4532 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4533 * psymtab.c (lookup_partial_symbol): Find the
4534 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4536 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4538 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4539 (completion_list_add_name): New variable ncmp, initialize it, use it.
4540 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4541 * utils.c (strcmp_iw): Support case_sensitive_off.
4542 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4543 New function comment part. New variables saved_string1,
4544 saved_string2 and case_pass. Add a proper second pass.
4546 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4548 Replace re_comp/re_exec by regcomp/regexec.
4549 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4550 (search_symbols_name_matches): Use them, use regexec.
4551 (search_symbols): New variable retval_chain, adjust the use of
4552 old_chain against it. Replace re_comp by regcomp. Use the new struct
4553 search_symbols_data fields, use regexec instead of re_exec.
4555 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4557 Format the code for the next patch.
4558 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4559 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4560 New variables c1 and c2.
4562 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4564 * infrun.c (proceed): Do not single-step into signal delivery
4565 when stepping off a breakpoint location.
4566 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4567 (insert_step_resume_breakpoint_at_caller): Likewise.
4568 (insert_step_resume_breakpoint_at_sal): Likewise.
4569 (insert_longjmp_resume_breakpoint): Likewise.
4571 2011-04-27 Yao Qi <yao@codesourcery.com>
4573 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4575 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4577 * procfs.c (procfs_pass_signals): Fix advance declaration.
4579 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4581 * target.h (struct target_ops): Remove to_notice_signals;
4582 add to_pass_signals.
4583 (target_notice_signals): Remove.
4584 (target_pass_signals): Add prototype.
4585 * target.c (update_current_target): Remove to_notice_signals;
4586 mention to_pass_signals.
4587 (target_pass_signals): New function.
4588 (debug_to_notice_signals): Remove.
4589 (setup_target_debug): Do not install debug_to_notice_signals.
4591 * infrun.c (signal_pass): New global.
4592 (resume): Call target_pass_signals.
4593 (handle_inferior_event): Report all signals while stepping over
4594 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4595 are re-inserted when stepping over a signal handler.
4596 (signal_cache_update): New function.
4597 (signal_stop_update): Call it.
4598 (signal_print_update): Likewise.
4599 (signal_pass_update): Likewise.
4600 (handle_command): Call signal_cache_update and target_pass_signals
4601 instead of target_notice_signals.
4602 (_initialize_infrun): Initialize signal_pass.
4604 * linux-nat.c (pass_mask): New global.
4605 (linux_nat_pass_signals): New function.
4606 (linux_nat_create_inferior): Report all signals initially.
4607 (linux_nat_attach): Likewise.
4608 (linux_nat_resume): Use pass_mask to decide whether to directly
4609 handle an inferior signal.
4610 (linux_nat_wait_1): Likewise.
4611 (linux_nat_add_target): Install to_pass_signals callback.
4613 * nto-procfs.c (notice_signals): Remove.
4614 (procfs_resume): Do not call notice_signals.
4615 (procfs_notice_signals): Remove.
4616 (procfs_pass_signals): New function.
4617 (init_procfs_ops): Install to_pass_signals callback instead of
4618 to_notice_signals callback.
4619 (_initialize_procfs): Report all signals initially.
4621 * procfs.c (procfs_notice_signals): Remove.
4622 (procfs_pass_signals): New function.
4623 (procfs_target): Install to_pass_signals callback instead of
4624 to_notice_signals callback.
4625 (register_gdb_signals): Remove.
4626 (procfs_debug_inferior): Report all signals initially.
4627 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4629 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4630 parameters; use them instead of calling signal_..._state routines.
4631 (remote_notice_signals): Remove.
4632 (remote_start_remote): Report all signals initially.
4633 (remote_resume): Do not call remote_pass_signals.
4634 (_initialize_remote): Install to_pass_signals callback instead of
4635 to_notice_signals callback.
4637 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4639 * breakpoint.c (user_settable_breakpoint): Delete.
4640 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4641 (delete_command): Check user_breakpoint_p instead of looking at
4642 the breakpoint's type.
4643 (disable_command): Ditto.
4644 (enable_command): Ditto.
4645 (delete_trace_command): Use user_breakpoint_p instead of looking
4646 at the breakpoint number directly. When checking if there are
4647 user visible tracepoints, in order to know whether to ask the user
4648 for confirmation, check whether the breakpoint is actually a
4651 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4653 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4656 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4658 MI breakpoint notifications.
4660 * annotate.c (breakpoint_changed): Adjust parameter type.
4661 * breakpoint.c (set_breakpoint_condition): Adjust to change
4662 in breakpoint_modified type.
4663 (breakpoint_set_commands): Likewise.
4664 (do_map_commands_command): Likewise.
4665 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4666 changed after bumping hit count.
4667 (bpstat_stop_status): Likewise.
4668 (print_one_breakpoint_location): Don't wrap in tuple here.
4669 (print_one_breakpoint): Always print individual locations.
4670 For locations, use unnamed tuple.
4671 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4673 (create_catchpoint, create_syscall_event_catchpoint): Call
4674 breakpoint_created obsever.
4675 (mention): Don't call breakpoint_created observer.
4676 (create_breakpoint_sal): Call breakpoint_created observer.
4677 (create_breakpoint, watch_command_1): Likewise.
4678 (create_ada_exception_breakpoint): Likewise.
4679 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4680 (locations_are_equal): New.
4681 (update_breakpoint_locations): If locations were changed, notify.
4682 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4683 Call breakpoint_modified observer.
4685 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4686 (mi_cmd_break_insert): Don't set observers for modify and delete.
4687 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4688 (mi_breakpoint_created, mi_breakpoint_deleted)
4689 (mi_breakpoint_modified): New.
4690 (mi_interpreter_init): Hook the above.
4691 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4692 while -break-* commands are executing.
4693 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4694 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4696 (mi_ui_out_impl): Hook in mi_redirect.
4697 (mi_field_skip): True to the name, skip the field, don't output
4698 a field with an empty value.
4700 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4701 (gdbpy_breakpoint_deleted): Adjust.
4702 * tui/tui-hooks.c (tui_event_create_breakpoint)
4703 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4705 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4707 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4708 (procfs_remove_hw_watchpoint): Likewise.
4710 2011-04-26 Michael Walle <michael@walle.cc>
4712 * remote.c (remote_start_remote): Ack packet after sending the
4715 2011-04-26 Yao Qi <yao@codesourcery.com>
4717 * linux-nat.c: Move common macros to ...
4718 Include linux-ptrace.h.
4719 * common/linux-ptrace.h: ... here. New.
4721 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4723 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4724 !objfile_has_partial_symbols. New comment.
4725 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4726 SYM_READ_PSYMBOLS is not present. Extend the comment.
4727 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4729 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4731 * defs.h (ENUM_BITFIELD): Remove.
4733 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4734 Eli Zaretskii <eliz@gnu.org>
4736 * NEWS: Document the new gdbserver --once option.
4738 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4740 * MAINTAINERS: Update my email address.
4742 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4744 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4745 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4746 function call if __STDC_ISO_10646__ macro is defined.
4747 (intermediate_encoding): New prototype.
4748 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4749 to generate compile time error for unsupported gdb_wchar_t size.
4750 (ENDIAN_SUFFIX): New macro.
4751 (intermediate_encoding): New function.
4753 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 * ada-lang.c (struct add_partial_datum): Update the comment for
4756 expand_partial_symbol_name.
4757 (ada_add_partial_symbol_completions): Rename to ...
4758 (ada_expand_partial_symbol_name): ... here, change return type, update
4759 function comment, call symbol_completion_match instead of
4760 symbol_completion_add.
4761 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4762 and ada_expand_partial_symbol_name.
4763 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4765 (dw2_map_symbol_names): Remove.
4766 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4767 * psymtab.c (map_symbol_names_psymtab): Remove.
4768 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4769 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4771 (psym_functions): Unlist map_symbol_names_psymtab.
4772 (map_partial_symbol_names): Rename to ...
4773 (expand_partial_symbol_names): ... here, change the FUN type, call
4774 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4775 * psymtab.h (map_partial_symbol_names): Rename to ...
4776 (expand_partial_symbol_names): ... here, change the FUN type.
4777 * symfile.h (struct quick_symbol_functions): Update the description of
4778 expand_symtabs_matching. Remove map_symbol_names.
4779 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4780 (struct add_name_data): Update the comment for
4781 expand_partial_symbol_name.
4782 (add_partial_symbol_name): Rename to ...
4783 (expand_partial_symbol_name): ... here. Replace
4784 completion_list_add_name call by strncmp.
4785 (default_make_symbol_completion_list_break_on): Use now
4786 expand_partial_symbol_names and expand_partial_symbol_name.
4787 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4789 2011-04-20 Tom Tromey <tromey@redhat.com>
4791 * dwarf2read.c (save_gdb_index_command): Replace format
4792 documentation with a pointer to the manual.
4794 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4796 * regcache.c: Include remote.h.
4797 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4798 (regcache_dump): Handle regcache_dump_remote.
4799 (maintenance_print_remote_registers): New function.
4800 (_initialize_regcache): Install "maint print remote-registers"
4802 * remote.c (map_regcache_remote_table): New function, factored out
4804 (init_remote_state): ... here.
4805 (remote_register_number_and_offset): New.
4806 * remote.h (remote_register_number_and_offset): Declare.
4808 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4810 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4811 null_ptid, assume and allow a NULL address space, instead of
4812 asking the target for the ptid's address space.
4813 * infrun.c (ptid_is_pid): Remove assertion.
4815 2011-04-19 Tom Tromey <tromey@redhat.com>
4817 * windows-tdep.c (windows_xfer_shared_library):
4818 * windows-nat.c (get_module_name, windows_make_so):
4819 * v850-tdep.c (v850_handle_pushm):
4820 * utils.c (null_cleanup, gdb_realpath):
4821 * ui-out.c (get_next_header):
4822 * tracepoint.c (clear_traceframe_info):
4823 * symtab.c (lookup_symtab):
4824 * serial.h (struct serial_ops):
4825 * mipsread.c (read_alphacoff_dynamic_symtab):
4826 * infcmd.c (print_return_value):
4827 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4828 * f-exp.y (parse_number):
4829 * exceptions.c (catch_exceptions):
4830 * dummy-frame.c (dummy_frame_this_id):
4831 * defs.h (struct cleanup):
4832 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4833 * arm-tdep.c (arm_push_dummy_call):
4834 * amd64-tdep.h (amd64_collect_xsave):
4835 * amd64-tdep.c (amd64_collect_xsave):
4836 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4837 * README (typing): Remove duplicate words.
4838 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4839 * infrun.c (siginfo_value_read): Fix typo.
4840 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4841 * top.c (source_line_number): Add comma.
4843 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4845 * thread.c (any_live_thread_of_process): Prioritize threads
4846 that are not executing.
4847 * gdbthread.h (any_live_thread_of_process): Update comment
4848 as per above change.
4850 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4852 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4853 (scan_xcoff_symtab): Likewise.
4855 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4857 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4860 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4861 Pedro Alves <pedro@codesourcery.com>
4863 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4864 variables to simplify code and avoid == operator at end of
4865 line as this is against GNU coding standards.
4867 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4869 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4870 lm_name to name_lm to avoid conflict with lm_name function.
4872 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4874 ARI fixes: Use only lowercase function name for static functions.
4875 * nto-tdep.c (LM_ADDR): Rename to...
4876 (lm_addr): New function name.
4877 (nto_relocate_section_addresses): Adapt to change above.
4878 * solib-sunos.c (LM_ADDR): Rename to...
4879 (lm_addr): New function name.
4880 (LM_NEXT): Rename to...
4881 (lm_next): New function name.
4882 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4883 function name changes above.
4884 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4885 (lm_addr_from_link_map): New function name.
4886 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4887 (has_lm_dynamic_from_link_map): New function name.
4888 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4889 (lm_dynamic_from_link_map): New function name.
4890 (LM_ADDR_CHECK): Rename to...
4891 (lm_addr_check): New function name.
4892 (LM_NEXT): Rename to...
4893 (lm_next): New function name.
4894 (LM_PREV): Rename to...
4895 (lm_prev): New function name.
4896 (LM_NAME): Rename to...
4897 (lm_name): New function name.
4898 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4899 (ignore_first_link_map_entry): New function name.
4900 (svr4_keep_data_in_core): Adapt to function name changes above.
4901 (svr4_current_sos): Likewise.
4902 (enable_break): Likewise.
4903 (svr4_relocate_section_addresses): Likewise.
4905 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4908 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4909 sprintf. Simplify code and avoid loosing memory.
4910 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4911 (call0_frame_cache): Remove && operator from end of line.
4913 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4915 Fix libraries displacement if they change whether they were prelinked.
4916 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4917 does not match. Comment why.
4919 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4921 * corelow.c: Include wrapper.h.
4922 (core_open): Call now gdb_target_find_new_threads.
4923 * wrapper.c: Include target.h.
4924 (gdb_target_find_new_threads): New.
4925 * wrapper.h (gdb_target_find_new_threads): New declaration.
4927 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4929 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4930 even if !TARGET_HAS_EXECUTION.
4932 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4934 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4935 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4936 bfd_get_synthetic_symtab.
4937 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4938 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4939 parameter parent, remove the call to add_separate_debug_objfile.
4940 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4941 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4942 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4943 parent, new comment for it, call add_separate_debug_objfile for it.
4944 (symbol_file_add_separate): Pass objfile as the parameter parent,
4945 remove the call to add_separate_debug_objfile.
4946 (symbol_file_add_from_bfd): New parameter parent, pass it.
4947 (symbol_file_add): Pass NULL to the new parameter parent.
4948 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4950 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4952 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4955 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4957 Fix Python access to inlined frames.
4958 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4959 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4961 2011-04-15 Tom Tromey <tromey@redhat.com>
4963 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4965 2011-04-15 Gary Benson <gbenson@redhat.com>
4967 * MAINTAINERS: Add myself to write-after-approval section.
4969 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4971 * remote-sim.c (sim_command_completer): New function.
4972 (_initialize_remote_sim): Set completer to sim_command_completer.
4974 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4976 * breakpoint.c (print_exception_catchpoint): Rename to ...
4977 (print_it_exception_catchpoint): ... this.
4978 (gnu_v3_exception_catchpoint_ops): Update with new name
4979 for print_it_exception_catchpoint.
4981 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4983 * MAINTAINERS: Add myself for write after approval privileges.
4985 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4987 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4989 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4991 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4993 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4995 * breakpoint.c (save_breakpoints): Verify whether
4996 breakpoint_ops.print_recreate is defined before calling it.
4998 2011-04-11 Gary Benson <gbenson@redhat.com>
5000 Fix failure with --enable-maintainer-mode.
5001 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5003 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5006 * symtab.c (search_symbols): Reorder the KIND description in the
5007 function comment. Remove the unused 4th element of types, types2,
5008 types3 and types4. New gdb_assert on KIND.
5009 (symtab_symbol_info): Remove the unused 4th element of classnames.
5010 New gdb_assert on KIND.
5011 * symtab.h (enum search_domain): New warning in the enum comment.
5012 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5015 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5017 Fix crash of gdb save-index on a STABS file.
5018 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5021 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5023 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5024 * dwarf2read.c: Include ctype.h.
5025 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5027 (dwarf2_add_field): Fix new_field->accessibility by calling
5028 dwarf2_default_access_attribute. Restructure setting accessibility
5030 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5031 is_private and is_protected by calling
5032 dwarf2_default_access_attribute.
5034 2011-04-08 Kevin Buettner <kevinb@redhat.com>
5036 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5037 to the initialization.
5039 2011-04-08 Steve Ellcey <sje@cup.hp.com>
5041 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5044 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5046 Remove support for old Cygwin 1.5 versions.
5047 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5048 function on old Cygwin version.
5049 * windows-nat.c: Remove cygwin version check and always define
5050 __USEWIDE for Cygwin compilation.
5052 2011-04-07 Yao Qi <yao@codesourcery.com>
5054 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5056 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5057 (arm_copy_svc): Remove parameters INSN and TO.
5058 (decode_svc_copro): Update caller.
5059 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5060 from function pointer `copy_svc_os'.
5062 2011-04-07 Yao Qi <yao@codesourcery.com>
5064 * arm-tdep.c (cleanup_branch): Set a correct return address in
5065 LR for ARM and Thumb.
5067 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5070 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5071 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5072 in the function comment, a new note on values compatibility.
5073 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5074 * symtab.h (SYMBOL_HASH_NEXT): New.
5076 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5078 * ppc-linux-nat.c (check_condition): Add len output parameter.
5079 Set it based on the memory region referenced in the condition
5080 expression. Update all callers.
5082 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5084 Fix crash regression on systems featuring .gdb_index.
5085 * objfiles.c (free_objfile): Move the
5086 forget_cached_source_info_for_objfile call earlier. Comment it.
5087 Extend the comment for objfile_free_data.
5089 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5091 Fix regression of displaying the debug format.
5092 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5095 2011-04-04 Tom Tromey <tromey@redhat.com>
5097 * cli/cli-interp.c (struct captured_execute_command_args):
5099 (do_captured_execute_command): Remove.
5100 (safe_execute_command): Use TRY_CATCH.
5101 * cli/cli-script.c (struct wrapped_read_command_file_args):
5103 (wrapped_read_command_file): Remove.
5104 (script_from_file): Use TRY_CATCH.
5105 * exceptions.c (catch_exception): Remove.
5106 * exceptions.h (catch_exception): Remove.
5107 (deprecated_throw_reason): Update comment.
5108 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
5109 argument to 'context'.
5110 (mi_execute_command): Use TRY_CATCH.
5111 * remote.c (struct start_remote_args): Remove.
5112 (remote_start_remote): Update; change arguments.
5113 (remote_open_1): Use TRY_CATCH.
5115 2011-04-04 Tom Tromey <tromey@redhat.com>
5117 * tracepoint.c (scope_info): Update.
5118 * symtab.c (decode_line_spec): Update.
5119 * python/python.c (gdbpy_decode_line): Update.
5120 * linespec.h (decode_line_1): Update.
5121 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
5122 (decode_compound, find_method, symtab_from_filename)
5123 (decode_variable): Likewise.
5124 * cli/cli-cmds.c (edit_command): Update.
5125 (list_command): Update.
5126 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
5128 (create_breakpoint): Update.
5129 (until_break_command): Update.
5130 (addr_string_to_sals): Update.
5131 (decode_line_spec_1): Update.
5133 2011-04-04 Tom Tromey <tromey@redhat.com>
5135 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
5136 (do_captured_parse_breakpoint): Remove.
5137 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
5138 Use TRY_CATCH directly.
5140 2011-04-04 Tom Tromey <tromey@redhat.com>
5142 * symtab.h (free_symtab): Remove.
5143 (forget_cached_source_info_for_objfile): Declare.
5144 * symmisc.c (free_symtab): Remove.
5145 * source.c (forget_cached_source_info_for_objfile): New function.
5146 (forget_cached_source_info): Use it.
5147 * objfiles.c (free_objfile): Simplify check before calling
5148 clear_current_source_symtab_and_line. Call
5149 forget_cached_source_info_for_objfile.
5151 2011-04-04 Tom Tromey <tromey@redhat.com>
5153 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
5154 (new_symtab): Don't set `free_code' on symtab.
5155 (new_linetable): Properly handle size==0.
5156 * symtab.h (struct symtab) <free_code, free_func>: Remove.
5157 * symmisc.c (free_symtab): Don't free the linetable. Don't call
5159 * jv-lang.c (struct jv_per_objfile_data): New.
5160 (jv_per_objfile_free): Free the data.
5161 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
5162 (get_java_class_symtab): Set the `dict' field on the
5163 jv_per_objfile_data.
5164 (free_class_block): Remove.
5165 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
5168 2011-04-04 Tom Tromey <tromey@redhat.com>
5170 * symfile.c (reread_symbols): Update.
5171 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
5173 * objfiles.c (allocate_objfile): Update.
5174 * cp-support.h (cp_check_possible_namespace_symbols): Don't
5176 * cp-namespace.c (lookup_symbol_file): Don't call
5177 lookup_possible_namespace_symbol.
5178 (initialize_namespace_symtab, get_possible_namespace_block)
5179 (free_namespace_block, cp_check_possible_namespace_symbols)
5180 (check_possible_namespace_symbols_loop)
5181 (check_one_possible_namespace_symbol)
5182 (lookup_possible_namespace_symbol): Remove.
5183 (maintenance_cplus_namespace): Replace with notice.
5184 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
5186 2011-04-04 Tom Tromey <tromey@redhat.com>
5188 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
5189 * symtab.h (struct symtab) <producer, debugformat>: Now const.
5190 * symmisc.c (free_symtab): Don't free debugformat.
5191 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
5192 (record_debugformat, record_producer): Document.
5193 * buildsym.c (end_symtab): Don't save debugformat and producer
5195 (end_symtab): Don't free debugformat and producer fields.
5196 (record_debugformat): Don't call xstrdup.
5197 (record_producer): Likewise.
5199 2011-04-04 Tom Tromey <tromey@redhat.com>
5201 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
5202 (source_line_charpos, source_charpos_line): Remove.
5204 2011-04-04 Tom Tromey <tromey@redhat.com>
5206 * symtab.h (domain_enum): Split in two...
5207 (enum search_domain): New.
5208 (search_symbols): Update.
5209 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
5210 redundant declarations.
5211 (search_symbols): Change 'kind' argument to search_domain.
5213 (print_symbol_info): Likewise.
5214 (symtab_symbol_info): Likewise.
5215 * symfile.h (struct quick_symbol_functions)
5216 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
5217 <expand_symtabs_matching>: Likewise.
5218 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
5219 (expand_symtabs_matching_via_partial): Update.
5220 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
5221 (dw2_expand_symtabs_for_function): Update.
5222 * block.h: Moved anonymous enum...
5223 * defs.h (enum block_enum): ... here. Now named.
5225 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5227 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
5228 * version.in: Bump version to 7.3.50.20110403-cvs.
5230 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5232 * NEWS: Create a new section for the next release branch.
5233 Rename the section of the current branch, now that it has
5236 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5238 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
5239 for "fpscr" in target description.
5241 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5243 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
5244 initialize it. Delay HASH initialization. Strip the part after open
5245 parenthesis for languages with qualifiers. Call do_cleanups.
5247 2011-04-01 Tom Tromey <tromey@redhat.com>
5249 * utils.c (report_command_stats): Don't print `-' for negative
5252 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
5254 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
5255 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
5258 2011-04-01 Joel Brobecker <brobecker@adacore.com>
5260 * breakpoint.h (bpdisp_text): Add declaration.
5261 * breakpoint.c (bpdisp_text): Make non-static.
5262 * ada-lang.c: #include "mi/mi-common.h".
5263 (print_it_exception): Rewrite to improve GDB/MI output.
5265 2011-04-01 Pedro Alves <pedro@codesourcery.com>
5267 * arm-tdep.h (struct address_space): Add forward declaration.
5269 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5271 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
5272 * arm-tdep.c (arm_override_mode): New global.
5273 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
5274 execution mode heuristics.
5275 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
5276 second single-step breakpoint if needed, using
5277 arm_insert_single_step_breakpoint.
5278 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
5279 ARM execution mode, do not call thumb_get_next_pc_raw.
5280 (arm_get_next_pc): Encode execution mode in return value. Call
5281 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5282 (arm_insert_single_step_breakpoint): New function.
5283 (arm_software_single_step): Call it.
5284 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5285 argument to return execution mode of sigreturn target.
5286 (arm_linux_syscall_next_pc): Use it.
5287 (arm_linux_copy_svc): Update call.
5288 (arm_linux_software_single_step): Call
5289 arm_insert_single_step_breakpoint.
5291 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5293 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5296 2011-03-31 Tom Tromey <tromey@redhat.com>
5298 * varobj.c (update_dynamic_varobj_children): Properly handle
5299 errors from iterator.
5301 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5303 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
5304 struct linkage name twice.
5306 2011-03-31 Tom Tromey <tromey@redhat.com>
5308 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5309 missing ">" to message.
5311 2011-03-31 Tom Tromey <tromey@redhat.com>
5313 * varobj.c (instantiate_pretty_printer): Remove duplicate
5316 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
5318 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5319 if neither saved value nor register available (e.g. signal frame).
5321 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5323 * macroexp.c (expand): Avoid uninitialized variable
5326 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5328 * breakpoint.c (break_range_command): Fix typo in comment.
5330 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5331 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5333 Implement support for PowerPC BookE ranged breakpoints.
5334 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5335 * breakpoint.h (struct bp_target_info) <length>: New member
5337 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5338 instead of struct breakpoint as argument, and also add ASPACE
5339 and BP_ADDR arguments. Update all callers.
5340 (struct breakpoint_ops) <print_one_detail>: New method.
5341 (struct breakpoint) <addr_string_range_end>: New member variable.
5342 * breakpoint.c (breakpoint_location_address_match): Add function
5344 (insert_bp_location): Set bl->target_info.length.
5345 (breakpoint_here_p): Call breakpoint_location_address_match.
5346 (moribund_breakpoint_here_p): Likewise.
5347 (regular_breakpoint_inserted_here_p): Likewise.
5348 (breakpoint_thread_match): Likewise.
5349 (bpstat_stop_status): Likewise.
5350 (bpstat_check_location): Move call to
5351 breakpoint_ops.breakpoint_hit to the top.
5352 (print_one_breakpoint_location): Call
5353 breakpoint_ops.print_one_detail if available.
5354 (breakpoint_address_match_range): New function.
5355 (breakpoint_location_address_match): Likewise.
5356 (breakpoint_locations_match): Compare the length field of the
5358 (hw_breakpoint_used_count): Count resources used by all locations
5359 in a breakpoint, and use breakpoint_ops.resources_needed if
5361 (breakpoint_hit_ranged_breakpoint): New function.
5362 (resources_needed_ranged_breakpoint): Likewise.
5363 (print_it_ranged_breakpoint): Likewise.
5364 (print_one_ranged_breakpoint): Likewise.
5365 (print_one_detail_ranged_breakpoint): Likewise.
5366 (print_mention_ranged_breakpoint): Likewise.
5367 (print_recreate_ranged_breakpoint): Likewise.
5368 (ranged_breakpoint_ops): New structure.
5369 (find_breakpoint_range_end): New function.
5370 (break_range_command): Likewise.
5371 (delete_breakpoint): Free addr_string_range_end.
5372 (update_breakpoint_locations): Add SALS_END argument. Update
5373 all callers. Calculate breakpoint length if a non-zero SALS_END
5374 is given. Call breakpoint_locations_match instead of
5375 breakpoint_address_match.
5376 (reset_breakpoint): Find SaL of the end of the range if B is a
5378 (_initialize_breakpoint): Register break-range command.
5379 * defs.h (print_core_address): Add function prototype.
5380 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5382 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5383 (ppc_linux_remove_hw_breakpoint): Likewise.
5384 (_initialize_ppc_linux_nat): Initialize
5385 to_ranged_break_num_registers.
5386 * target.c (update_current_target): Add comment about
5387 to_ranged_break_num_registers.
5388 (target_ranged_break_num_registers): New function.
5389 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5391 (target_ranged_break_num_registers): Add function prototype.
5392 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5393 * utils.c (print_core_address): ... here.
5395 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5397 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5398 variable compiler warning.
5400 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5402 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5404 (re_set_breakpoint): ... to here ...
5405 (addr_string_to_sals): ... and here.
5407 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5409 * Makefile.in (SFILES): Add missing C sources.
5410 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5411 Add missing headers.
5413 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5415 * .gitignore: New file.
5417 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5419 * NEWS: Mention new cfi device simulation.
5421 2011-03-29 Tom Tromey <tromey@redhat.com>
5423 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5424 otherwise anonymous types.
5425 (dwarf2_name): Likewise.
5426 * valops.c (value_struct_elt_for_reference): Refine artificial
5427 type logic. Call error if j==-1.
5429 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5431 Fix false GCC warning.
5432 * infcall.c (find_function_addr): Initialize funaddr.
5434 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5436 Fix mingw compilation with --enable-targets=all.
5437 * remote-mips.c (gdb_usleep.h): Include header.
5438 (mips_enter_debug): Use gdb_usleep instead of sleep.
5440 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5442 Support resolution of STT_GNU_IFUNC via breakpoints.
5443 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5444 bp_gnu_ifunc_resolver_return.
5445 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5446 the loop. Support bp_gnu_ifunc_resolver and
5447 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5448 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5450 (bptype_string, print_one_breakpoint_location): Support
5451 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5452 (user_settable_breakpoint): Return true also for
5453 bp_gnu_ifunc_resolver.
5454 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5455 bp_gnu_ifunc_resolver_return.
5456 (set_breakpoint_location_function): New parameter explicit_loc,
5457 describe it. Call find_pc_partial_function_gnu_ifunc with new
5458 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5459 EXPLICIT_LOC is not set.
5460 (set_raw_breakpoint): Set EXPLICIT_LOC for
5461 set_breakpoint_location_function.
5462 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5463 set_breakpoint_location_function.
5464 (mention): Support bp_gnu_ifunc_resolver and
5465 bp_gnu_ifunc_resolver_return.
5466 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5467 set_breakpoint_location_function.
5468 (update_breakpoint_locations): Remove static.
5469 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5470 bp_gnu_ifunc_resolver_return.
5471 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5472 bp_gnu_ifunc_resolver_return.
5473 (update_breakpoint_locations): New declaration.
5474 * elfread.c: Include gdbthread.h and regcache.h.
5475 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5477 (elf_gnu_ifunc_fns): Install them.
5478 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5479 (stub_gnu_ifunc_resolver_return_stop): New functions.
5480 (stub_gnu_ifunc_fns): Install them.
5481 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5482 and gnu_ifunc_resolver_return_stop.
5483 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5485 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5487 STT_GNU_IFUNC reader implementation.
5488 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5489 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5490 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5491 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5492 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5493 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5494 (elf_gnu_ifunc_resolve_addr): New.
5495 (elf_symfile_read): Call elf_rel_plt_read.
5496 (elf_gnu_ifunc_fns): New.
5497 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5498 Install elf_gnu_ifunc_fns.
5499 * infcall.c (find_function_return_type): New function.
5500 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5501 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5502 (stub_gnu_ifunc_resolve_name): New functions.
5503 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5504 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5505 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5507 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5509 Code cleanup for later STT_GNU_IFUNC support.
5510 * infcall.c (find_function_addr): Remove variable code, use explicit
5511 dereferences for it. Move VALUE_TYPE initialization later.
5513 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5515 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5516 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5517 (clear_pc_function_cache): Clear it.
5518 (find_pc_partial_function): Rename to ...
5519 (find_pc_partial_function_gnu_ifunc): ... this function. New
5520 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5521 (find_pc_partial_function): New wrapper for this function.
5522 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5524 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5526 GDB internal type support for STT_GNU_IFUNC.
5527 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5528 (elf_symtab_read): Set mst_text_gnu_ifunc for
5529 BSF_GNU_INDIRECT_FUNCTION.
5530 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5531 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5532 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5533 nodebug_got_plt_symbol.
5534 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5535 (TYPE_GNU_IFUNC): New.
5536 (struct main_type): New field flag_gnu_ifunc.
5537 (struct builtin_type): New field builtin_func_func.
5538 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5539 nodebug_got_plt_symbol.
5540 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5541 (in_gnu_ifunc_stub): New.
5542 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5544 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5545 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5546 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5548 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5549 * symtab.c (search_symbols): Likewise.
5550 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5551 and mst_slot_got_plt.
5552 (in_gnu_ifunc_stub): New declaration.
5554 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 Support a ring of related breakpoints.
5557 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5558 other functions, add gdb_assert.
5559 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5560 watchpoint_del_at_next_stop.
5561 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5562 (bpstat_stop_status): Handle ring in related_breakpoint.
5563 (set_raw_breakpoint_without_location): Initialize ring in
5565 (delete_breakpoint): Handle ring in related_breakpoint, use
5566 watchpoint_del_at_next_stop.
5567 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5569 2011-03-28 Tom Tromey <tromey@redhat.com>
5572 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5573 with `language_minimal'.
5575 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5577 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5578 instead of checking for STT_ARM_TFUNC symbol type.
5580 2011-03-25 Tom Tromey <tromey@redhat.com>
5582 * linespec.c (symbol_found): Restore line-based result for
5583 non-LOC_LABEL symbols.
5585 2011-03-25 Kai Tietz <ktietz@redhat.com>
5587 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5588 instead of strcmp for comparison.
5589 (tui_source_is_displayed): Likewise.
5590 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5592 2011-03-24 Mark Wielaard <mjw@redhat.com>
5594 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5596 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5597 (find_partial_die_in_comp_unit): Likewise in comment.
5598 (read_attribute_value): Likewise.
5599 (lookup_die_type): Likewise.
5600 (dwarf_form_name): Likewise.
5601 (dump_die_shallow): Likewise.
5602 (follow_die_ref_or_sig): Likewise.
5604 2011-03-24 Tom Tromey <tromey@redhat.com>
5606 PR breakpoints/11816:
5607 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5608 (decode_compound): Update.
5609 (find_function_symbol): New function.
5610 (decode_dollar): Update.
5611 (decode_label): Add 'function_symbol' parameter. Handle
5612 function-relative labels.
5613 (decode_variable): Update.
5614 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5615 not its line. Set `special_display' and canonical name for
5618 2011-03-24 Tom Tromey <tromey@redhat.com>
5620 * linespec.h (struct linespec_result) <special_display>: New
5622 * breakpoint.h (struct breakpoint) <display_canonical>: New
5624 * breakpoint.c (print_breakpoint_location): Respect
5626 (create_breakpoint_sal): Add 'display_canonical' parameter.
5627 (create_breakpoints_sal): Update.
5628 (create_breakpoint): Update.
5630 2011-03-24 Tom Tromey <tromey@redhat.com>
5632 * symtab.c (decode_line_spec): Update.
5633 * linespec.c (build_canonical_line_spec): Change type of
5635 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5636 (find_method, decode_all_digits, decode_dollar, decode_label)
5637 (symbol_found): Likewise.
5638 (init_linespec_result): New function.
5639 * breakpoint.c (struct captured_parse_breakpoint_args)
5640 <canonical_p>: New field, replaces addr_string_p.
5641 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5643 (parse_breakpoint_sals): Likewise.
5644 (do_captured_parse_breakpoint): Update.
5645 (create_breakpoint): Use struct linespec_result.
5646 (until_break_command): Update.
5647 (breakpoint_re_set_one): Update.
5648 (decode_line_spec_1): Update.
5649 * linespec.h (struct linespec_result): New.
5650 (init_linespec_result): Declare.
5652 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5654 * regcache.c (regcache_raw_read): If the target didn't supply a
5655 given raw register, mark it as unavailable.
5657 2011-03-23 Kai Tietz <ktietz@redhat.com>
5659 * breakpoint.c (clear_command): Use filename_cmp
5660 instead of strcmp for comparison.
5661 * buildsym.c (watch_main_source_file_lossage): Likewise.
5662 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5663 checking just for slash.
5664 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5665 strrchr and filename_cmp instead of strcmp for filenames.
5666 (add_old_header_file): Use filename_cmp
5667 instead of strcmp for comparison.
5668 * exec.c (exec_set_section_address): Likewise.
5669 * macrotab.c (macro_lookup_inclusion): Likewise.
5670 (macro_lookup_inclusion): Likewise.
5671 * elfread.c (_initialize_elfread): Likewise.
5672 (elfstab_offset_sections): Likewise.
5673 (elfstab_offset_sections): Use lbasename instead of
5675 * mdebugread.c (parse_partial_symbols): Likewise.
5676 (arse_partial_symbols): Use filename_(n)cmp instead of
5677 str(n)cmp for comparison.
5678 * minsyms.c (lookup_minimal_symbol): Likewise.
5679 * psymtab.c (read_psymtabs_with_filename): Likewise.
5680 * solib.c (solib_read_symbols): Likewise.
5681 (reload_shared_libraries_1): Likewise.
5682 * symmisc.c (maintenance_print_symbols): Likewise.
5683 * symfile.c (separate_debug_file_exists): Likewise.
5684 (reread_symbols): Likewise.
5685 (find_separate_debug_file_by_debuglink): Likewise.
5686 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5687 * source.c (add_path): Likewise.
5688 * symtab.c (filename_seen): Likewise.
5689 (file_matches): Likewise.
5690 (print_symbol_info): Likewise.
5691 (maybe_add_partial_symtab_filename): Likewise.
5692 (make_source_files_completion_list): Likewise.
5693 * xml-syscall.c (init_sysinfo): Likewise.
5694 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5695 IS_DIR_SEPARATOR for checking for trailing path separator.
5697 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5699 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5700 label abort_expression.
5701 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5702 DWARF_VALUE_OPTIMIZED_OUT.
5704 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5707 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5708 to linkage_name. Invert its value. Update the function comment.
5709 (c_type_print_varspec_suffix): Invert it at the caller.
5710 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5712 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5714 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5715 errors when reading the `stop_pc'.
5716 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5719 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5721 * NEWS: Document gdb.Write stream keyword.
5723 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5727 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5728 (dwarf2_add_field): Fix new_field->accessibility for
5729 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5731 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5735 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5736 other error classes. Do not print stack trace.
5738 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5740 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5741 (dwarf2_add_field): Fix new_field->accessibility for
5742 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5744 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5746 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5747 encountering a load via a non-SP register.
5749 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5751 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5752 field in returned unwinder.
5754 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5756 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5758 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5760 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5763 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5765 * frame.c (frame_unwind_register): Throw an error if unwinding the
5767 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5768 an unwind stop reason.
5769 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5770 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5771 UNWIND_UNAVAILABLE>: New.
5772 * inline-frame.c (inline_frame_unwind): Install
5773 default_frame_unwind_stop_reason.
5774 * frame-unwind.c: Include "exceptions.h".
5775 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5776 (default_frame_unwind_stop_reason): New.
5777 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5778 (default_frame_unwind_stop_reason): Declare.
5779 (struct frame_unwind) <stop_reason>: New function pointer.
5781 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5782 * dwarf2-frame.c: Include exceptions.h.
5783 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5784 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5785 computing the CFA. If such an error was thrown, set
5786 unavailable_retaddr.
5787 (dwarf2_frame_unwind_stop_reason): New.
5788 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5790 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5791 (dwarf2_signal_frame_unwind): Ditto.
5793 * amd64-tdep.c: Include "exceptions.h".
5794 (struct amd64_frame_cache): New field "base_p".
5795 (amd64_init_frame_cache): Clear it.
5796 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5797 Avoid reading registers with functions that throw if the register
5798 is not necessary to compute the frame base.
5799 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5800 swallowing NOT_AVAILABLE_ERROR.
5801 (amd64_frame_unwind_stop_reason): New.
5802 (amd64_frame_this_id): Don't build a frame id if the frame base
5804 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5805 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5806 base_p if the frame base was computable.
5807 (amd64_sigtramp_frame_unwind_stop_reason): New.
5808 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5809 frame base was unavailable.
5810 (amd64_sigtramp_frame_unwind): Install
5811 amd64_sigtramp_frame_unwind_stop_reason.
5812 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5813 base_p if the frame base was computable.
5814 (amd64_epilogue_frame_unwind_stop_reason): New.
5815 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5816 frame base was unavailable.
5817 (amd64_epilogue_frame_unwind): Install
5818 amd64_epilogue_frame_unwind_stop_reason.
5819 * i386-tdep.c: Include "exceptions.h".
5820 (struct i386_frame_cache): New field "base_p".
5821 (i386_init_frame_cache): Clear it.
5822 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5823 Avoid reading registers with functions that throw if the register
5824 is not necessary to compute the frame base.
5825 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5826 swallowing NOT_AVAILABLE_ERROR.
5827 (i386_frame_unwind_stop_reason): New.
5828 (i386_frame_this_id): Don't build a frame id if the frame base was
5830 (i386_frame_prev_register): Handle unavailable SP.
5831 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5832 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5833 base_p if the frame base was computable.
5834 (i386_epilogue_frame_unwind_stop_reason): New.
5835 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5836 base was unavailable.
5837 (i386_epilogue_frame_unwind): Install
5838 i386_epilogue_frame_unwind_stop_reason.
5839 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5840 base_p if the frame base was computable.
5841 (i386_sigtramp_frame_unwind_stop_reason): New.
5842 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5843 base was unavailable.
5844 (i386_sigtramp_frame_unwind): Install
5845 i386_sigtramp_frame_unwind_stop_reason.
5846 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5847 type's size, not the register's.
5848 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5850 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5851 default_frame_unwind_stop_reason.
5852 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5853 (alpha_heuristic_frame_unwind): Ditto.
5854 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5855 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5856 * avr-tdep.c (avr_frame_unwind): Ditto.
5857 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5859 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5860 * frv-tdep.c (frv_frame_unwind): Ditto.
5861 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5862 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5863 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5864 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5865 (hppa_stub_frame_unwind): Ditto.
5866 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5867 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5868 (ia64_libunwind_frame_unwind)
5869 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5870 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5871 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5872 * m32c-tdep.c (m32c_unwind): Ditto.
5873 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5874 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5875 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5876 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5877 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5878 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5879 * mep-tdep.c (mep_frame_unwind): Ditto.
5880 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5881 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5882 (mips_stub_frame_unwind): Ditto.
5883 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5884 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5885 * mt-tdep.c (mt_frame_unwind): Ditto.
5886 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5887 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5888 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5889 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5890 (s390_sigtramp_frame_unwind): Ditto.
5891 * score-tdep.c (score_prologue_unwind): Ditto.
5892 * sh-tdep.c (sh_frame_unwind): Ditto.
5893 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5894 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5895 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5896 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5897 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5898 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5899 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5900 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5901 (sparc64obsd_trapframe_unwind): Ditto.
5902 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5903 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5904 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5905 * v850-tdep.c (v850_frame_unwind): Ditto.
5906 * vax-tdep.c (vax_frame_unwind): Ditto.
5907 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5908 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5909 * xtensa-tdep.c (xtensa_unwind): Ditto.
5911 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5913 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5914 there's always a frame. Use get_frame_pc_if_available instead of
5915 get_frame_pc, and if there's no PC available, don't look up a
5918 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5920 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5923 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5925 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5928 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5930 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5931 * frame.c (frame_unwind_caller_pc_if_available): New.
5932 * stack.c (frame_info): Handle unavailable PC.
5934 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5936 * frame.c (frame_unwind_pc): Rename to ...
5937 (frame_unwind_pc_if_available): ... this. New `pc' output
5938 parameter. Change return type to int. Gracefully handle
5939 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5940 happened, or 1 otherwise.
5941 (frame_unwind_pc): Reimplement on top of
5942 frame_unwind_pc_if_available.
5943 (get_frame_func): Rename to ...
5944 (get_frame_func_if_available): New `pc' output parameter. Change
5945 return type to int. Gracefully handle the PC not being available.
5946 (get_frame_func): Reimplement on top of
5947 get_frame_func_if_available.
5948 (select_frame): Handle the PC being unavailable.
5949 (get_prev_frame): Handle the PC being unavailable.
5950 (get_frame_pc_if_available): New.
5951 (get_frame_address_in_block_if_available): New.
5952 (find_frame_sal): Handle the frame PC not being available.
5953 * frame.h (get_frame_pc_if_available): Declare.
5954 (get_frame_address_in_block_if_available): Declare.
5955 (get_frame_func_if_available): Declare.
5956 * stack.c (print_frame_info): Handle the PC being unavailable.
5957 (find_frame_funname): Ditto.
5958 (print_frame): Handle the PC being unavailable.
5959 (get_frame_language): Ditto.
5960 * blockframe.c (get_frame_block): Ditto.
5961 * macroscope.c (default_macro_scope): Ditto.
5962 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5964 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5966 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5967 NOT_AVAILABLE_ERROR when evaluating the location expression.
5969 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5971 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5972 returning that the register piece is unavailable/optimized out.
5973 (write_pieced_value): Handle get_frame_register_bytes returning
5974 that the register piece is unavailable/optimized out when doing a
5975 read-modify write of a bitfield.
5976 * findvar.c (value_from_register): Handle get_frame_register_bytes
5977 returning that the register piece is unavailable/optimized out.
5978 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5979 and `unavailablep'. Throw error on bad debug info. Use
5980 frame_register instead of frame_register_read, to fill in the new
5982 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5984 * valops.c: (value_assign): Adjust, and handle
5985 get_frame_register_bytes failing.
5986 * spu-tdep.c: Include exceptions.h.
5987 (spu_software_single_step): Adjust, and handle
5988 get_frame_register_bytes failing.
5989 (spu_get_longjmp_target): Ditto.
5990 * gdbarch.sh (register_to_value): Change to return int. New
5991 parameters `optimizedp' and `unavailablep'.
5992 * gdbarch.h, gdbarch.c: Regenerate.
5993 * i386-tdep.c (i386_register_to_value): Adjust to new
5994 gdbarch_register_to_value interface.
5995 * i387-tdep.c (i387_register_to_value): Ditto.
5996 * i387-tdep.h (i387_register_to_value): Ditto.
5997 * alpha-tdep.c (alpha_register_to_value): Ditto.
5998 * ia64-tdep.c (ia64_register_to_value): Ditto.
5999 * m68k-tdep.c (m68k_register_to_value): Ditto.
6000 * mips-tdep.c (mips_register_to_value): Ditto.
6001 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6003 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6005 * findvar.c (value_of_register): Mark the value as unavailable, if
6006 the register is unavailable.
6007 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6008 (frame_register): New `unavailablep' parameter.
6009 (frame_register_read): Update comment.
6010 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6011 Set it if the register is unavailable. If the register is
6012 unavailable, clear the output buffer.
6013 (frame_register): New `unavailablep' parameter. Pass it down.
6014 (frame_unwind_register): Adjust.
6015 (put_frame_register): Adjust.
6016 (frame_register_read): Adjust. Also return false if the register
6018 (frame_register_unwind_location): Adjust.
6019 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6020 is unavailable, mark the value accordingly.
6021 * stack.c (frame_info): Handle unavailable registers.
6023 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6025 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6026 simplify, using regcache_cooked_read.
6028 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6030 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6031 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6032 (regcache_raw_read_unsigned, regcache_raw_read_part)
6033 (regcache_cooked_read, regcache_cooked_read_signed)
6034 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6035 (regcache_cooked_read_ftype): Change return to enum
6037 * regcache.c: Include exceptions.h
6038 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6039 (do_cooked_read): Change return to enum register_status. Always
6040 forward to regcache_cooked_read.
6041 (regcache_raw_read): Change return to enum register_status. If
6042 the register is not REG_VALID, memset the buffer. Return the
6044 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6045 return the register's status.
6046 (regcache_raw_read_unsigned): Ditto.
6047 (regcache_cooked_read): Change return to enum register_status.
6048 Assert that with read-only regcaches, the register's status must
6049 be known. If the regcache is read-only, and the register is not
6050 REG_VALID, memset the buffer. Return the register's status.
6051 (regcache_cooked_read_signed): Change return to enum
6052 register_status. Handle non-REG_VALID registers and return the
6054 (regcache_cooked_read_unsigned): Change return to enum
6055 register_status. Handle non-REG_VALID registers and return the
6057 (regcache_xfer_part, regcache_raw_read_part)
6058 (regcache_cooked_read_part): Change return to enum
6059 register_status. Return the register's status.
6060 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6062 (regcache_dump): Handle unavailable cooked registers.
6063 * frame.c (do_frame_register_read): Adjust interface to match
6064 regcache_cooked_read_ftype.
6065 * gdbarch.sh (pseudo_register_read): Change return to enum
6067 * gdbarch.h, gdbarch.c: Regenerate.
6069 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6071 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6072 register_status. If reading a raw register indicates the raw
6073 register is not valid, return the raw register's status,
6074 otherwise, return REG_VALID.
6075 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6076 register_status. Handle non-REG_VALID raw registers and return
6077 the register's status.
6078 * arm-tdep.c (arm_neon_quad_read)
6079 (arm_pseudo_read): Change return to enum register_status. Handle
6080 non-REG_VALID raw registers and return the register's status.
6081 * avr-tdep.c (avr_pseudo_register_read): Ditto.
6082 * frv-tdep.c (frv_pseudo_register_read): Ditto.
6083 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6084 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6085 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6087 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6088 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6089 (m32c_part_write, m32c_cat_read, m32c_cat_write)
6090 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6091 (m32c_pseudo_register_read): Change return to enum
6092 register_status. Adjust.
6093 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6094 enum register_status. Return the register's status.
6095 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6096 register_status. Return the register's status.
6097 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6098 * mips-tdep.c (mips_pseudo_register_read): Ditto.
6099 * mt-tdep.c (mt_pseudo_register_read): Ditto.
6100 * rs6000-tdep.c (move_ev_register_func): New typedef.
6101 (e500_move_ev_register): Use it. Change return to enum
6102 register_status. Return the register's status.
6103 (do_regcache_raw_read): New function.
6104 (do_regcache_raw_write): New function.
6105 (e500_pseudo_register_read): Change return to enum
6106 register_status. Return the register's status. Use
6107 do_regcache_raw_read.
6108 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
6109 (dfp_pseudo_register_read): Change return to enum register_status.
6110 Return the register's status.
6111 (vsx_pseudo_register_read): Ditto.
6112 (efpr_pseudo_register_read): Ditto.
6113 (rs6000_pseudo_register_read): Ditto.
6114 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
6115 register_status. Return the register's status.
6116 * sh64-tdep.c (pseudo_register_read_portions): New function.
6117 (sh64_pseudo_register_read): Change return to enum
6118 register_status. Use pseudo_register_read_portions. Return the
6120 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
6121 register_status. Return the register's status.
6122 * sh-tdep.c (pseudo_register_read_portions): New function.
6123 (sh_pseudo_register_read): Change return to enum register_status.
6124 Use pseudo_register_read_portions. Return the register's status.
6125 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
6126 enum register_status. Return the register's status.
6127 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
6128 * spu-tdep.c (spu_pseudo_register_read_spu)
6129 (spu_pseudo_register_read): Ditto.
6130 * xtensa-tdep.c (xtensa_register_read_masked)
6131 (xtensa_pseudo_register_read): Ditto.
6132 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
6134 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6136 * python/py-value.c (valpy_getitem): Fix formatting of error function
6139 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6141 ARI fixes: Add missing internationalization markups throughout
6143 * darwin-nat-info.c: Ditto.
6146 * mi/mi-main.c: Ditto.
6148 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6150 ARI fixes: Add missing internationalization markups throughout
6153 * cp-name-parser.y: Ditto.
6156 * objc-exp.y: Ditto.
6159 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6161 ARI fixes: Messages should have no trailing new lines.
6162 * darwin-nat.c (mach_check_error): Remove trailing new line from
6163 warning function call message.
6164 * record.c (bfdcore_read): Idem for error call.
6166 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6168 * common/signals.c (target_signal_from_host): Add _ markup to error
6169 function call message.
6170 (target_signal_to_host): Add _ markup and remove trailing new line
6171 from warning call message.
6172 (target_signal_from_command): Add _ markup to error function call
6175 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
6179 * python/python.c (gdbpy_write): Accept a stream argument and
6180 operate to the appropriate stream.
6181 (gdbpy_flush): Likewise.
6182 (_initialize_python): Add stream constants.
6183 (finish_python_initialization): Add GdbOutputErrorFile class.
6185 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6187 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6189 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6191 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
6192 to store_signed_integer. Add debug message when relocating CALL
6193 instructions. Fix formatting of debug message.
6194 * i386-tdep.c (i386_relocate_instruction): Ditto.
6196 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6198 * target.h (struct target_ops): Remove to_lookup_symbol field.
6199 (target_lookup_symbol): Delete macro.
6200 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
6201 (update_current_target, setup_target_debug): Remove handling
6202 of to_lookup_symbol target_ops field.
6203 * ada-tasks.c (get_known_tasks_addr): Remove use of
6204 target_lookup_symbol.
6205 * coffread.c (coff_symtab_read): Likewise.
6206 * dbxread.c (read_dbx_symtab): Ditto.
6208 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6211 * configure.ac: Add getthrds declaration check.
6212 * configure, config.in: Regenerate.
6213 * aix-thread.c (getthrds): Declare only if not already declared
6214 in procinfo.h. More declaration out of get_signaled_thread to
6217 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
6219 * python/py-symtab.c: Populate symtab_object_methods,
6221 (stpy_is_valid): New function.
6222 (salpy_is_valid): Ditto.
6223 * python/py-symbol.c: Declare symbol_object_methods. Populate.
6224 (sympy_is_valid): New function.
6225 * python/py-objfile.c: Declare objfile_object_methods. Populate.
6226 (objfpy_is_valid): New function.
6227 * python/py-inferior.c: Populate inferior_object_methods.
6228 (infpy_is_valid): New function.
6229 * python/py-infthread.c: Populate thread_object_methods.
6230 (thpy_is_valid): New function.
6231 * python/py-block.c: Declare block_object_methods. Populate. Declare
6232 block_iterator_object_methods. Populate.
6233 (blpy_is_valid): New function.
6234 (blpy_iter_is_valid): Ditto.
6236 2011-03-16 Keith Seitz <keiths@redhat.com>
6238 * linespec.c (find_methods): Canonicalize NAME before looking
6240 (name_end): New function.
6241 (keep_name_info): New function.
6242 (decode_line_1): Use keep_name_info.
6243 (decode_compound): Likewise.
6244 * cli/cli-utils.h (remove_trailing_whitespace): New function.
6245 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
6248 * linespec.c (locate_first_half): Keep overload information, too.
6249 (decode_compound): Use a string to represent break characters
6251 If P points to a break character, do not increment it.
6252 For C++ and Java, keep overload information and relevant keywords.
6253 If we cannot find a symbol, search the minimal symbols.
6256 * linespec.c (decode_compound): Rename SAVED_ARG to
6258 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
6260 Pass a valid block to lookup_symbol.
6261 (lookup_prefix_sym): Likewise.
6262 (find_method): Construct search name based on SYM_CLASS instead
6264 * psymtab.c (lookup_partial_symbol): Add language parameter.
6265 (lookup_symbol_aux_psymtabs): Likewise.
6266 Don't assume that the psymtab we found was the right one. Search
6267 for the desired symbol in the symtab to be certain.
6268 (psymtab_search_name): New function.
6269 (lookup_partial_symbol): Use psymtab_search_name.
6270 Add language parameter.
6271 (read_symtabs_for_function): Add language parameter and pass to
6272 lookup_partial_symbol.
6273 (find_symbol_file_from_partial): Likewise.
6275 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
6278 * dwarf2read.c (noop_record_line): New function.
6279 (dwarf_decode_lines): Ignore line tables for GCd functions.
6281 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6283 Fix ARI warnings about new lines at the end of messages, which
6284 are unneeded as there is a new line added at the end of the message
6286 * darwin-nat.c (darwin_stop_inferior): Ditto.
6287 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6288 * dfp.c (decimal_to_number): Ditto.
6289 * exec.c (print_section_info): Ditto.
6290 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6291 * osdata.c (get_osdata): Ditto.
6292 * record.c (bfdcore_write): Ditto.
6293 * remote-mips.c (mips_readchar): Ditto.
6294 * remote.c (read_ptid): Ditto.
6295 * ser-mingw.c (ser_windows_raw): Ditto.
6296 * tracepoint.c (add_local_symbols): Ditto.
6297 * windows-nat.c (fake_create_process): Ditto.
6299 2011-03-16 Tom Tromey <tromey@redhat.com>
6301 * tracepoint.c (stop_tracing): Don't declare.
6302 * event-top.c (after_char_processing_hook): Add `(void)'.
6304 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
6306 * NEWS: Add Parameter sub-classing description.
6308 2011-03-16 Kai Tietz <ktietz@redhat.com>
6310 * MAINTAINERS: Update my e-mail address.
6312 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
6314 * MAINTAINERS: Add myself for write after approval privileges.
6316 2011-03-15 Michael Snyder <msnyder@vmware.com>
6318 * frame.c (find_frame_sal): Assert sym is not null.
6320 * dbxread.c (process_one_symbol): Assert 'name' is not null.
6322 * objc-lang.c (selectors_info): Check strchr for null result.
6324 * stabsread.c (define_symbol): Guard against bad stabstring input.
6326 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6328 Remove trailing spaces and tabulations from pascal language
6333 p-valprint.c: Ditto.
6335 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6337 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6338 than LOW. Comment it.
6339 (read_partial_die): Call complaint for inappropriate zero LOWPC or
6340 HIGHPC not strictly higher than LOWPC.
6342 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6344 Fix formatting of function declarations returning a pointer in
6346 * varobj.c (varobj_add_child): Ditto.
6347 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6348 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6350 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6352 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6353 for the "generic" vector ABI used with GCC 4.3 and later.
6354 (ppc64_sysv_abi_return_value): Likewise.
6356 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6358 * infcall.c (call_function_by_hand): Function return value is
6359 always a non_lval, even when using struct_return.
6361 2011-03-15 Pedro Alves <pedro@codesourcery.com>
6363 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6364 (map_display_numbers): New.
6365 (do_delete_display): New.
6366 (undisplay_command): Use map_display_numbers.
6367 (do_enable_disable_display): New.
6368 (enable_disable_display_command): New function.
6369 (enable_display): Delete.
6370 (enable_display_command): New.
6371 (disable_display_command): Reimplement.
6372 (_initialize_printcmd): Adjust "enable display" command to use
6373 `enable_display_command' as callback.
6375 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6377 * NEWS: Add Python breakpoint 'stop' operation.
6379 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6381 * NEWS: Delete duplicate entry. Fix typo.
6383 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6385 Fix ARI warning about function names in first column.
6386 Put prototype declaration on same line as return type.
6387 * objc-exp.y: Ditto.
6389 * python/py-stopevent.h: Ditto.
6390 For long function names, split parameters to
6391 allow function name on same line as return type.
6392 * solib-pa64.c: Ditto.
6395 For long function declaration, use single line.
6396 * hppa-tdep.h: Ditto.
6397 * inferior.h: Ditto.
6399 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6401 * python/python.h: Declare gdbpy_should_stop and
6402 gdbpy_breakpoint_has_py_cond.
6403 * python/python.c: Add python.h to includes. Remove python.h from
6404 HAVE_PYTHON definition
6405 (gdbpy_should_stop): New dummy function.
6406 (gdbpy_breakpoint_has_py_cond): New dummy function.
6407 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6408 sub-classing capabilities.
6409 (gdbpy_should_stop): New function.
6410 (gdbpy_breakpoint_has_py_cond): New function.
6411 (local_setattro): New function.
6412 * breakpoint.c (condition_command): Add check for Python 'stop'
6414 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6415 operation function as part of stop/continue tests.
6417 2011-03-14 Tom Tromey <tromey@redhat.com>
6420 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6421 (needs_frame_dwarf_call): Likewise.
6423 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6425 Fix ARI warning about functions without parameters that do not
6427 * breakpoint.c (all_tracepoints): Replace () by (void).
6428 * f-exp.y (match_string_literal): Ditto.
6430 * m2-exp.y (yylex): Ditto.
6431 * mep-tdep.c (current_me_module): Ditto.
6432 (current_options): Ditto.
6433 (current_cop_data_bus_width): Ditto.
6434 (current_cr_names): Ditto.
6435 (current_cr_is_float): Ditto.
6436 (current_ccr_names): Ditto.
6437 * objc-exp.y (yylex): Ditto.
6438 * p-exp.y (yylex): Ditto.
6439 * remote.c (send_interrupt_sequence): Ditto.
6440 * tracepoint.c (current_trace_status): Ditto.
6441 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6442 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6444 2011-03-11 Michael Snyder <msnyder@vmware.com>
6446 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6447 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6448 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6449 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6450 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6452 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6453 (delete_async_event_handler): Ditto.
6455 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6457 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6459 * top.c (set_verbose): Assert showcmd was found.
6461 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6463 * xtensa-tdep.c (warning_once): Correct style issues.
6465 2011-03-11 Yao Qi <yao@codesourcery.com>
6467 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6469 2011-03-11 Andreas Schwab <schwab@redhat.com>
6471 * common/aclocal.m4: Remove.
6473 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6475 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6476 (xtensa_write_register, xtensa_read_register): Likewise.
6477 (xtensa_hextochar): Removed.
6478 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6480 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6482 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6483 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6484 (xtensa_alloc_frame_cache): Add initialization for new fields.
6485 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6486 (warning_once): New function.
6487 (xtensa_insn_kind): New item c0opc_and.
6488 (call0_classify_opcode): Add the case for AND instruction.
6489 (call0_track_op): Change arguments. New local variable litbase.
6490 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6491 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6493 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6494 (call0_analyze_prologue): Update the comments. Change arguments.
6495 Add the variety of updates to handle extended prologues, which now can
6496 conduct dynamic stack adjustments.
6497 (call0_frame_cache): Likewise.
6498 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6499 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6501 2011-03-10 Michael Snyder <msnyder@vmware.com>
6503 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6504 (cmd_qtframe): Ditto.
6505 (cmd_qtbuffer): Ditto.
6506 (cmd_bigqtbuffer): Ditto.
6508 2011-03-10 Tom Tromey <tromey@redhat.com>
6510 * tracepoint.c (trace_actions_command): Update.
6511 * thread.c (thread_apply_command): Update.
6512 * reverse.c (delete_bookmark_command): Update.
6513 (bookmarks_info): Update.
6514 * printcmd.c (undisplay_command): Update.
6515 * memattr.c (mem_enable_command): Update.
6516 (mem_disable_command): Update.
6517 (mem_delete_command): Update.
6518 * inferior.c (detach_inferior_command): Update.
6519 (kill_inferior_command): Update.
6520 (remove_inferior_command): Update.
6521 * cli/cli-utils.h (struct get_number_or_range_state): New.
6522 (init_number_or_range): Declare.
6523 (get_number_or_range): Update.
6524 * cli/cli-utils.c (init_number_or_range): New function.
6525 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6527 (number_is_in_list): Update.
6528 * breakpoint.h (get_tracepoint_by_number): Update.
6529 * breakpoint.c (map_breakpoint_numbers): Update for change to
6530 get_number_or_range.
6531 (find_location_by_number): Use get_number, not
6532 get_number_or_range.
6533 (trace_pass_set_count): New function.
6534 (trace_pass_command): Update for change to get_number_or_range.
6536 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6539 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6541 * python/py-param.c (add_setshow_generic): Add set/show callback
6542 parameters. Register Python object context.
6543 (get_show_value): New function.
6544 (get_set_value): New function.
6545 (call_doc_function): New function.
6546 (get_doc_string): Move behind get_show_value/get_set_value.
6548 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6550 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6552 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6554 * xtensa-tdep.c (xtensa_read_register): Add comment.
6555 (xtensa_write_register): Likewise.
6556 (xtensa_hextochar): Add comment and update to match coding conventions.
6557 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6558 (execute_l32e, execute_s32e, execute_code): Update comments.
6559 (xtensa_exception_handler_t): Update to match coding conventions.
6560 (xtensa_insn_kind): Likewise.
6562 2011-03-09 Michael Snyder <msnyder@vmware.com>
6564 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6566 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6568 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6570 2011-03-09 Tom Tromey <tromey@redhat.com>
6572 * thread.c (restore_selected_frame): Handle frame_level == -1.
6573 (make_cleanup_restore_current_thread): Use
6574 get_selected_frame_if_set.
6575 * frame.h (get_selected_frame_if_set): Declare.
6576 * frame.c (get_selected_frame_if_set): New function.
6578 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6580 * cli/cli-cmds.c (shell_escape): Use lbasename.
6581 * coffread.c (coff_start_symtab): Constify parameter.
6582 (complete_symtab): Constify `name' parameter.
6583 (coff_symtab_read): Constify `filestring' local.
6584 (coff_getfilename): Constify return and `result' local.
6586 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6587 * linux-fork.c (info_checkpoints_command): Use lbasename.
6588 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6589 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6590 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6591 * procfs.c (procfs_make_note_section): Use lbasename.
6592 * tui/tui-io.c (printable_part): Constity return and parameter.
6594 (print_filename): Constify parameters, and local `s'.
6595 (tui_rl_display_match_list): Constify local `temp'.
6597 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6600 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6601 Fix DWARF-3+ DW_AT_accessibility default assumption.
6602 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6603 cu->header.version >= 3.
6605 2011-03-09 Yao Qi <yao@codesourcery.com>
6607 * common/Makefile.in: Remove.
6608 * common/configure: Remove.
6609 * common/configure.ac: Remove.
6611 2011-03-09 Yao Qi <yao@codesourcery.com>
6614 2011-02-11 Yao Qi <yao@codesourcery.com>
6616 * common/Makefile.in: Add copyright header.
6618 2011-02-11 Yao Qi <yao@codesourcery.com>
6620 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6622 * configure.ac: Add common to sub dir.
6623 * configure: Regenerate.
6625 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6627 * xtensa-tdep.c (call0_ret): New function.
6628 (xtensa_skip_prologue): Speed up analysis.
6630 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6632 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6633 while executing MI command -data-list-changed-registers.
6635 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6637 * xtensa-tdep.c (xtensa_read_register): New function.
6638 (xtensa_write_register): New function.
6639 (xtensa_find_register_by_name): New function.
6640 (xtensa_windowed_frame_cache): Update comments in type description.
6641 (xtensa_frame_cache): Likewise.
6642 (xtensa_window_interrupt_insn): New function.
6643 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6644 (xtensa_insn_kind): Add new instructions.
6645 (rwx_special_register): New function.
6646 (call0_classify_opcode): Add new instructions to the analysis.
6647 (a0_saved, a7_saved, a11_saved): New variables.
6648 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6649 (execute_l32e): New function.
6650 (execute_s32e): New function.
6651 (xtensa_exception_handler_t): New type.
6652 (execute_code): New function.
6653 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6654 analysis for Xtensa Window Exception handlers.
6656 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6658 * xtensa-tdep.c (TX_PS): New.
6659 (windowing_enabled): Update to count for Call0 ABI.
6660 (xtensa_hextochar): New.
6661 (xtensa_init_reggroups): Make algorithm generic.
6662 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6664 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6666 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6668 2011-03-08 Michael Snyder <msnyder@vmware.com>
6670 * i386-tdep.c (i386_follow_jump): Check return value of
6672 (i386_analyze_struct_return): Ditto.
6673 (i386_skip_probe): Ditto.
6674 (i386_match_insn): Ditto.
6675 (i386_skip_noop): Ditto.
6676 (i386_analyze_frame_setup): Ditto.
6677 (i386_analyze_register_saves): Ditto.
6678 (i386_skip_prologue): Ditto.
6679 (i386_skip_main_prologue): Ditto.
6681 * target.c (read_whatever_is_readable): Fix memory leak.
6683 * i386-tdep.c (i386_process_record): Document fall through.
6685 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6687 Fix DWARF-3+ DW_AT_accessibility default assumption.
6688 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6689 cu->header.version >= 3.
6691 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6693 * remote.c (remote_check_symbols): Skip if the target has no
6696 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6698 * target.c (read_whatever_is_readable): Reformat comment,
6699 with a minor typo fix. Minor reformatting of the code.
6701 2011-03-08 Yao Qi <yao@codesourcery.com>
6703 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6704 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6705 Use cached result instead of calling displaced_in_arm_mode again.
6706 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6707 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6708 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6709 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6710 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6711 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6712 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6713 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6714 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6715 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6716 (arm_catch_kernel_helper_return): Likewise.
6717 * gdb/arm-tdep.h : Update function declarations.
6719 2011-03-07 Michael Snyder <msnyder@vmware.com>
6721 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6723 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6725 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6727 * elfread.c (elf_symtab_read): Stop memory leak.
6729 * main.c (captured_main): Fix memory leak.
6731 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6733 * ada-lang.c (compare_names): Call is_name_suffix with string1
6736 2011-03-07 Tom Tromey <tromey@redhat.com>
6738 * xcoffread.c (xcoff_sym_fns): Update.
6739 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6740 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6741 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6742 (symbol_file_add_with_addrs_or_offsets): Likewise.
6743 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6744 * somread.c (som_sym_fns): Update.
6745 * psymtab.h (require_partial_symbols): Declare.
6746 * psymtab.c (require_partial_symbols): New function.
6747 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6748 (ALL_OBJFILE_PSYMTABS): Undef.
6749 (ALL_PSYMTABS): Move from psympriv.h.
6750 (lookup_partial_symtab, find_pc_sect_psymtab)
6751 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6752 (find_last_source_symtab_from_partial)
6753 (forget_cached_source_info_partial)
6754 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6755 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6756 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6757 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6758 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6759 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6760 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6761 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6762 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6764 * mipsread.c (ecoff_sym_fns): Update.
6765 * machoread.c (macho_sym_fns): Update.
6766 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6767 (read_psyms): New function.
6768 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6769 (elf_sym_fns_lazy_psyms): New global.
6770 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6771 dwarf2_build_psymtabs.
6772 * dbxread.c (aout_sym_fns): Update.
6773 * coffread.c (coff_sym_fns): Update.
6775 2011-03-07 Tom Tromey <tromey@redhat.com>
6777 * infrun.c (print_exited_reason): Include inferior id and pid in
6780 2011-03-07 Tom Tromey <tromey@redhat.com>
6782 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6784 (target_has_execution_1): Update.
6785 (target_has_execution_current): Declare.
6786 (target_has_execution): Call target_has_execution_current.
6787 (default_child_has_execution): Update.
6788 * target.c (default_child_has_execution): Add 'the_ptid'
6790 (target_has_execution_1): Likewise.
6791 (target_has_execution_current): New function.
6792 (add_target): Update.
6793 (init_dummy_target): Update.
6794 * remote-m32r-sdi.c (m32r_has_execution): New function.
6795 (init_m32r_ops): Use it.
6796 * record.c (record_core_has_execution): Now static. Add
6797 'the_ptid' parameter.
6798 * inferior.c (have_live_inferiors): Don't save current thread.
6799 Use target_has_execution_1.
6801 2011-03-07 Yao Qi <yao@codesourcery.com>
6803 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6805 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6807 * elfread.c (elf_symtab_read): Minor reformatting.
6809 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6811 * objc-lang.c (selectors_info): Minor reformatting.
6813 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6815 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6817 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6818 Michael Snyder <msnyder@vmware.com>
6820 * ada-valprint.c (ada_val_print_array): Move the declaration of
6821 "byte_order" and "elttype" inside the block where these variables
6822 are actually used. Remove some special handling for the case
6823 where "elttype" and "eltlen" are null. Replace by a comment
6824 and a couple of assertion checks.
6826 2011-03-05 Michael Snyder <msnyder@vmware.com>
6828 * source.c (add_path): Replace semicolon at end of block.
6829 * dwarf2expr.c (execute_stack_op): Ditto.
6831 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6833 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6834 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6835 (bfin-*-*): Likewise.
6837 2011-03-05 Michael Snyder <msnyder@vmware.com>
6839 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6840 * mdebugread.c (parse_symbol): Ditto.
6841 * parse.c (parse_exp_in_context): Ditto.
6842 * source.c (add_path): Ditto.
6843 * utils.c (gnu_debuglink_crc32): Ditto.
6844 * varobj.c (variable_language): Ditto.
6846 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6848 2011-03-04 Michael Snyder <msnyder@vmware.com>
6850 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6852 * symfile.c (simple_overlay_update): Check for null return value
6853 from lookup_minimal_symbol.
6855 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6857 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6859 * eval.c (parse_and_eval_address_1): Remove function.
6860 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6861 instead of parse_and_eval_address_1.
6862 * value.h (parse_and_eval_address_1): Remove prototype.
6864 2011-03-04 Michael Snyder <msnyder@vmware.com>
6866 * remote.c (putpkt_binary): Document that case stmt falls through.
6868 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6870 * breakpointc (print_it_typical): Move NULL check from here...
6871 (print_bp_stop_message): ... to here.
6873 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6875 * breakpoint.c (enable_command): Use break instead of continue,
6876 and fill in a missing break.
6877 (disable_command): Ditto.
6879 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6881 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6882 (terminal_save_ours): Remove misleading comment.
6883 (inflow_inferior_data_cleanup): Free ttystate.
6884 (inflow_inferior_exit): Likewise.
6885 (copy_terminal_info): Copy ttystate.
6887 * serial.c (serial_copy_tty_state): New function.
6888 * serial.h (serial_copy_tty_state): Add prototype.
6889 (struct serial_ops): Add copy_tty_state callback.
6890 * ser-base.c (ser_base_copy_tty_state): New function.
6891 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6892 * ser-go32.c (dos_copy_tty_state): New function.
6893 (dos_ops): Install copy_tty_state callback.
6894 * ser-mingw.c (_initialize_ser_windows): Likewise.
6895 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6896 * ser-unix.c (hardwire_copy_tty_state): New function.
6897 (_initialize_ser_hardwire): Install it.
6899 2011-03-04 Michael Snyder <msnyder@vmware.com>
6901 * breakpoint.c (create_breakpoint): Add missing break statement.
6903 Reverting this patch:
6904 * infcall.c (call_function_by_hand): Add break statements for lint.
6906 Reverting this patch:
6907 * cli/cli-script.c (script_from_file): Add break for lint.
6909 2011-03-04 Michael Snyder <msnyder@vmware.com>
6911 * solib.c (reload_shared_libraries_1): Close memory leak.
6913 2011-03-03 Tom Tromey <tromey@redhat.com>
6916 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6919 2011-03-03 Michael Snyder <msnyder@vmware.com>
6921 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6922 fields of struct 'st' to zero.
6924 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6925 sal.pspace before calling set_current_source_symtab_and_line.
6927 2011-03-03 Yao Qi <yao@codesourcery.com>
6929 * Makefile.in (configure-common): Remove. Let Makefile
6930 in dir common to rebuild itself.
6931 (common/Makefile): Likewise.
6933 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6935 * utils.c (parse_escape): Add i18n markup in error message.
6937 2011-03-03 Yao Qi <yao@codesourcery.com>
6939 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6941 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6942 (displaced_write_reg, displaced_read_reg): Likewise.
6943 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6944 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6945 (cleanup_branch): Replace magic number 14 and 15 with
6946 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6948 2011-03-02 Michael Snyder <msnyder@vmware.com>
6950 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6952 * cli/cli-script.c (script_from_file): Add break for lint.
6954 * mdebugread.c (parse_partial_symbols): Fix indent.
6956 * target-descriptions.c (tdesc_gdb_type): No need to call
6957 xstrdup, callee saves a copy.
6959 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6961 * infcall.c (call_function_by_hand): Add break statements for lint.
6963 * utils.c (parse_escape): Escape the escape char.
6965 * python/py-inferior.c (build_inferior_list): Error out if
6966 PyList_Append fails.
6967 (gdbpy_inferiors): Error out if build_inferior_list fails.
6969 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6972 * record.c (record_restore): Move printf to before error return.
6974 2011-03-02 Yao Qi <yao@codesourcery.com>
6976 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6977 is_thumb and insn_size.
6978 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6979 on both ARM and Thumb mode.
6980 (arm_process_displaced_insn): Set is_thumb and insn_size.
6981 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6982 (arm_displaced_step_fixup): Likewise.
6984 2011-03-01 Michael Snyder <msnyder@vmware.com>
6986 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6988 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6990 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6992 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6994 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6997 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6998 which shadows function parameter.
7000 * tracepoint.c (create_tsv_from_upload): Superfluous call
7001 to xstrdup. Callee already calls xstrdup.
7003 * linespec.c (decode_line_1): Remove unnecessary null check.
7005 * tracepoint.c (scope_info): Fix mem leak, remove underused
7008 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7009 superfluous null check.
7011 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
7012 (value_of_builtin_frame_fp_reg): Ditto.
7014 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7016 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7019 * linespec.c (decode_line_1): Check for null before dereference.
7021 * reverse.c (record_restore): Move null-check to before pointer
7024 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7026 * objc-lang.c (selectors_info): Add explanitory comment.
7027 (classes_info): Ditto.
7029 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7031 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7032 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7033 versions of the trampoline. Handle Thumb vs. ARM addresses.
7034 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7035 (arm_linux_init_abi): Install it.
7036 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7037 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7039 2011-02-28 Michael Snyder <msnyder@vmware.com>
7041 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7042 a little bigger, to avoid possibility of an overflow.
7044 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7045 buffers a little bigger, to avoid possibility of an overflow.
7047 * coffread.c (coff_getfilename): Add check to avoid overflow.
7049 * objc-lang.c (selectors_info): Add a small safety margin to
7051 (classes_info): Error out on too long REGEXP.
7053 * infrun.c (handle_inferior_event): Remove unused function call.
7055 * fork-child.c (fork_inferior): Remove ifdef'd code and
7058 * linux-thread-db.c (attach_thread): Discard unused value.
7060 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7062 * remote.c (remote_get_noisy_reply): Discard unused value.
7063 (remote_vcont_resume): Ditto.
7064 (remote_stop_ns): Ditto.
7066 * linespec.c (decode_objc): Delete unused variable.
7068 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7070 * dwarf2read.c (add_partial_symbol): Discard unused values.
7071 (read_base_type): Delete unused variable.
7073 * dbxread.c (read_dbx_symtab): Discard unused value.
7075 * eval.c (evaluate_subexp_standard): Delete unused variable,
7076 and discard unused values.
7078 * infcmd.c (_initialize_infcmd): Discard unused values.
7080 * stabsread.c (rs6000_builtin_type): Missing break statement.
7082 * dbxread.c (process_one_symbol): Discard unused value.
7084 * coffread.c (coff_end_symtab): Delete unused variable.
7086 * dwarf2read.c (dw2_get_file_names): Discard unused value.
7087 (dwarf2_add_typedef): Delete unused variable.
7088 (read_namespace): Ditto.
7089 (dwarf_decode_macros): Ditto.
7091 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7093 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7095 * p-valprint.c (pascal_val_print): Discard unused value.
7097 * utils.c (nquery): Call va_end before return;
7101 * proc-service.c (ps_plog): Call va_end before return.
7103 2011-02-28 Tom Tromey <tromey@redhat.com>
7105 * python/python.c (gdbpy_value_cst): New global.
7106 (_initialize_python): Initialize it.
7107 * python/python-internal.h (gdbpy_value_cst): Declare.
7108 * python/py-value.c (convert_value_from_python): Use
7111 2011-02-28 Michael Snyder <msnyder@vmware.com>
7113 * python/py-cmd.c (cmdpy_init): Fix memory leak.
7115 * breakpoint.c (catch_syscall_completer): Free malloced list.
7117 * jv-lang.c (java_primitive_type_from_name): Add missing break.
7119 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
7120 (lval_func_check_synthetic_pointer): Ditto.
7121 (lval_func_free_closure): Fix use-after-free.
7123 2011-02-28 Tom Tromey <tromey@redhat.com>
7125 * psymtab.c (expand_partial_symbol_tables): Use
7126 ALL_OBJFILE_PSYMTABS.
7128 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7130 * objc-lang.c (selectors_info): Error on too long REGEXP.
7132 2011-02-28 Michael Snyder <msnyder@vmware.com>
7134 * python/py-param.c (set_parameter_value): Add missing
7137 * linux-record.c (record_linux_system_call): Add missing
7140 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7142 * breakpoint.c (print_one_breakpoint_location): Remove unused
7143 argument PRINT_ADDRESS_BITS. Update callers.
7144 (print_one_breakpoint): Likewise.
7146 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7148 * breakpoint.c (wrap_indent_at_field): New function.
7149 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
7150 Allocate ui_stream locally instead of using STB argument.
7151 (print_one_breakpoint_location): Update call.
7152 * ui-out.c (ui_out_query_field): New function.
7153 * ui-out.h (ui_out_query_field): Add prototype.
7155 2011-02-28 Joel Brobecker <brobecker@adacore.com>
7157 From Michael Snyder <msnyder@vmware.com>
7158 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
7160 2011-02-27 Michael Snyder <msnyder@vmware.com>
7162 * objc-lang.c (selectors_info): Prevent string overrun.
7164 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
7167 * symtab.c (rbreak_command): Move variable 'file_name' to
7170 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
7171 param with a local variable of the same name.
7173 2011-02-27 Michael Snyder <msnyder@vmware.com>
7175 * value.c (value_from_history_ref): New function.
7176 * value.h (value_from_history_ref): Export.
7177 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
7178 to parse value history references.
7179 * cli/cli-utils.h (get_number_trailer): Update comment.
7181 2011-02-27 Michael Snyder <msnyder@vmware.com>
7183 * inferior.c (detach_inferior_command): Use get_number_or_range.
7184 (kill_inferior_command): Ditto.
7185 (remove_inferior_command): Ditto.
7186 (initialize_inferiors): Make command names plural.
7187 Update help strings.
7189 2011-02-27 Michael Snyder <msnyder@vmware.com>
7191 * darwin-nat-info.c: Fix comment typo.
7192 * dwarf2expr.h: Ditto.
7193 * fbsd-nat.c: Ditto.
7194 * fbsd-nat.h: Ditto.
7195 * frame-unwind.h: Ditto.
7197 * hppa-hpux-tdep.c: Ditto.
7198 * i386-linux-nat.c: Ditto.
7199 * linux-nat.c: Ditto.
7200 * nbsd-nat.c: Ditto.
7201 * nbsd-nat.h: Ditto.
7202 * ppc-linux-tdep.c: Ditto.
7205 * tui/tui-winsource.c: Ditto.
7207 2011-02-26 Michael Snyder <msnyder@vmware.com>
7209 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
7211 * maint.c (maintenance_do_deprecate): Plug a memory leak.
7213 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
7214 with a local variable of the same name.
7216 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
7217 param with a local variable of the same name.
7218 (i387_supply_xsave): Ditto.
7220 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
7221 that it does not shadow a function parameter.
7223 * i386-nat.c (i386_length_and_rw_bits): Document that case
7224 statement is meant to fall through.
7226 * expprint.c (dump_subexp_body_standard): Document that case
7227 statement is meant to fall through.
7229 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
7230 dead if statement. Condition can't be false.
7232 2011-02-25 Michael Snyder <msnyder@vmware.com>
7234 * arm-tdep.c: Fix typos in comments.
7235 * bsd-uthread.c: Ditto.
7236 * completer.c: Ditto.
7238 * cp-namespace.c: Ditto.
7239 * cp-support.c: Ditto.
7240 * cris-tdep.c: Ditto.
7242 * dwarf2read.c: Ditto.
7244 * gdbtypes.h: Ditto.
7245 * inferior.h: Ditto.
7246 * mdebugread.c: Ditto.
7247 * mips-tdep.c: Ditto.
7248 * ppc-linux-nat.c: Ditto.
7249 * ppc-linux-tdep.c: Ditto.
7250 * printcmd.c: Ditto.
7251 * sol-thread.c: Ditto.
7252 * solib-frv.c: Ditto.
7254 * sparc64-tdep.c: Ditto.
7255 * spu-tdep.c: Ditto.
7256 * stabsread.c: Ditto.
7261 * python/py-block.c: Ditto.
7262 * python/py-symbol.c: Ditto.
7263 * python/py-symtab.c: Ditto.
7264 * python/py-value.c: Ditto.
7265 * tui/tui-win.c: Ditto.
7267 2011-02-25 Michael Snyder <msnyder@vmware.com>
7269 * inferior.c (print_inferior): Accept a string instead of an int
7270 for requested_inferiors, and use get_number_or_range to parse it.
7271 (info_inferiors_command): Pass args string to print_inferior.
7272 (initialize_inferiors): Change help string for info inferiors.
7273 * inferior.h (print_inferior): Export prototype change.
7275 2011-02-25 Tom Tromey <tromey@redhat.com>
7277 * common/ax.def (invalid2): Set to 0x31.
7279 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7281 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7283 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7285 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7287 2011-02-24 Michael Snyder <msnyder@vmware.com>
7289 * Makefile.in (clean): Make clean should remove generated files
7290 observer.h and observer.inc.
7292 2011-02-24 Joel Brobecker <brobecker@adacore.com>
7294 Revert the following patch (not approved yet):
7295 2011-02-21 Hui Zhu <teawater@gmail.com>
7296 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7297 * ax-gdb.c (gen_printf_expr_callback): New function.
7298 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7299 * ax-general.c (ax_memcpy): New function.
7300 (ax_print): Handle "printf".
7302 * ax.h (ax_memcpy): Forward declare.
7303 * common/ax.def (invalid2): Removed.
7304 (printf): New entry.
7305 * printcmd.c (printcmd.h): New include.
7306 (string_printf): New function.
7307 (ui_printf): Removed.
7308 (printf_command): Remove static. Call string_printf.
7309 (eval_command): Call string_printf.
7310 * printcmd.h: New file.
7311 * tracepoint.c (validate_actionline,
7312 encode_actions_1): handle printf_command.
7314 2011-02-23 Tom Tromey <tromey@redhat.com>
7316 * ax-general.c (ax_pick): Add missing newline.
7318 2011-02-23 Michael Snyder <msnyder@vmware.com>
7320 * breakpoint.c (breakpoint_1): Change first argument from an int
7321 to a char pointer, so that the function now accepts a list of
7322 breakpoints rather than just one. Use new function
7323 'number_is_in_list' to implement.
7324 (breakpoints_info): Pass char * instead of int to breakpoint_1.
7325 (watchpoints_info): Ditto.
7326 (tracepoints_info): Ditto.
7327 (maintenance_info_breakpoints): Ditto.
7328 (_initialize_breakpoint): Update help strings to reflect the fact
7329 that these functions can now take more than one argument.
7330 * cli/cli-utils.c (number_is_in_list): New function.
7331 * cli/cli-utils.h (number_is_in_list): Export.
7333 2011-02-23 Michael Snyder <msnyder@vmware.com>
7335 * memattr.c (mem_enable_command): Use get_number_or_range.
7336 (mem_disable_command): Ditto.
7337 (mem_delete_command): Ditto.
7338 (_initialize_mem): Tweak usage message to reflect multiple
7341 2011-02-22 Doug Evans <dje@google.com>
7343 Add gdb.lookup_global_symbol python function.
7345 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7346 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7347 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7349 2011-02-22 Tom Tromey <tromey@redhat.com>
7351 * language.c (language_class_name_from_physname): Rename
7352 'curr_language' argument to 'lang'; use in body.
7354 2011-02-22 Michael Snyder <msnyder@vmware.com>
7356 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7358 2011-02-22 Pedro Alves <pedro@codesourcery.com>
7360 * frame-unwind.h: Fix comment to mention the this frame, not the
7363 2011-02-22 Tom Tromey <tromey@redhat.com>
7365 * symfile.c (auto_solib_limit): Remove.
7366 * symfile.h (auto_solib_limit): Remove.
7368 2011-02-22 Joel Brobecker <brobecker@adacore.com>
7370 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7372 2011-02-21 Michael Snyder <msnyder@vmware.com>
7374 * gdbthread.h (print_thread_info): Change prototype.
7375 * thread.c (print_thread_info): Accept char* instead of int for
7376 requested_threads argument. Use new function number_is_in_list
7377 to determine which threads to list.
7378 (info_threads_command): Pass char* to print_thread_info.
7379 * cli/cli-utils.c (number_is_in_list): New function.
7380 * cli/cli-utils.h (number_is_in_list): Export.
7381 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7383 (print_one_inferior): Ditto.
7384 (mi_cmd_list_thread_groups): Ditto.
7386 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7388 * common/Makefile.in (CFLAGS): New.
7389 (COMPILE): Add $(CFLAGS).
7391 2011-02-21 Tom Tromey <tromey@redhat.com>
7393 * breakpoint.c (catch_syscall_command_1): Fix typo.
7395 2011-02-21 Tom Tromey <tromey@redhat.com>
7397 * reverse.c: Include cli-utils.h.
7398 * printcmd.c: Include cli-utils.h.
7399 (string_printf): Use skip_spaces.
7400 * cli/cli-utils.h: New file.
7401 * cli/cli-utils.c: New file.
7402 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7403 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7404 * breakpoint.h (get_number, get_number_or_range): Move to
7406 * breakpoint.c: Include cli-utils.h.
7407 (get_number_trailer, get_number, get_number_or_range)
7408 (ep_skip_leading_whitespace): Move to cli-utils.c.
7409 (create_breakpoint_sal, find_condition_and_thread)
7410 (decode_static_tracepoint_spec, watch_command_1)
7411 (watch_maybe_just_location, ep_parse_optional_if_clause)
7412 (catch_fork_command_1, catch_exec_command_1)
7413 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7414 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7415 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7416 (HFILES_NO_SRCDIR): Add cli-utils.h.
7417 (cli-utils.o): New target.
7419 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7421 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7422 before calling discard_all_inferiors.
7424 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7426 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7427 (struct builtin_opencl_type): Remove.
7428 (builtin_opencl_type): Change return type to "struct type **".
7429 (lookup_opencl_vector_type): Update caller.
7430 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7431 (build_opencl_types): Install plain array of "struct type *"
7432 instead of "struct builtin_opencl_type".
7434 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7435 Ulrich Weigand <uweigand@de.ibm.com>
7437 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7438 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7439 (struct arm_linux_hwbp_cap): New type.
7440 (arm_linux_get_hwbp_cap): New function.
7441 (arm_linux_get_hw_breakpoint_count): Likewise.
7442 (arm_linux_get_hw_watchpoint_count): Likewise.
7443 (arm_linux_can_use_hw_breakpoint): Likewise.
7444 (arm_hwbp_type): New type.
7445 (arm_hwbp_control_t): Likewise.
7446 (struct arm_linux_hw_breakpoint): Likewise.
7447 (struct arm_linux_thread_points): Likewise.
7448 (arm_threads): New global variable.
7449 (arm_linux_find_breakpoints_by_tid): New function.
7450 (arm_hwbp_control_initialize): Likewise.
7451 (arm_hwbp_control_is_enabled): Likewise.
7452 (arm_hwbp_control_disable): Likewise.
7453 (arm_linux_hw_breakpoint_initialize): Likewise.
7454 (arm_linux_get_hwbp_type): Likewise.
7455 (arm_linux_hw_watchpoint_initialize): Likewise.
7456 (arm_linux_hw_breakpoint_equal): Likewise.
7457 (arm_linux_insert_hw_breakpoint1): Likewise.
7458 (arm_linux_remove_hw_breakpoint1): Likewise.
7459 (arm_linux_insert_hw_breakpoint): Likewise.
7460 (arm_linux_remove_hw_breakpoint): Likewise.
7461 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7462 (arm_linux_insert_watchpoint): Likewise.
7463 (arm_linux_remove_watchpoint): Likewise.
7464 (arm_linux_stopped_data_address): Likewise.
7465 (arm_linux_stopped_by_watchpoint): Likewise.
7466 (arm_linux_watchpoint_addr_within_range): Likewise.
7467 (arm_linux_new_thread): Likewise.
7468 (arm_linux_thread_exit): Likewise.
7469 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7470 related target callbacks. Register arm_linux_new_thread and
7471 arm_linux_thread_exit.
7472 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7473 * arm-tdep.c (arm_pc_is_thumb): Make global.
7474 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7476 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7478 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7479 per-frame locations while within a function epilogue.
7481 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7483 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7484 to GNU coding standards.
7486 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7488 Allow use of mingw native on Windows 95 OS.
7489 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7490 (ser_windows_close): Only call CancelIo if function exists.
7491 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7492 to check for existence of CancelIo function in kernel32 DLL.
7494 2011-02-21 Hui Zhu <teawater@gmail.com>
7496 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7497 * ax-gdb.c (gen_printf_expr_callback): New function.
7498 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7499 * ax-general.c (ax_memcpy): New function.
7500 (ax_print): Handle "printf".
7502 * ax.h (ax_memcpy): Forward declare.
7503 * common/ax.def (invalid2): Removed.
7504 (printf): New entry.
7505 * printcmd.c (printcmd.h): New include.
7506 (string_printf): New function.
7507 (ui_printf): Removed.
7508 (printf_command): Remove static. Call string_printf.
7509 (eval_command): Call string_printf.
7510 * printcmd.h: New file.
7511 * tracepoint.c (validate_actionline,
7512 encode_actions_1): handle printf_command.
7514 2011-02-19 Michael Snyder <msnyder@vmware.com>
7516 * reverse.c (delete_one_bookmark): Argument is now bookmark
7517 id rather than pointer to bookmark struct.
7518 (delete_bookmark_command): Use get_number_or_range.
7519 (goto_bookmark_command): Parse with get_number instead of strtoul.
7520 (bookmark_1): New function. Print info for one bookmark.
7521 (bookmarks_info): Use get_number_or_range and bookmark_1.
7523 2011-02-18 Michael Snyder <msnyder@vmware.com>
7525 * thread.c (info_threads_command): Re-implement using
7526 get_number_or_range.
7527 (thread_apply_command): Ditto.
7529 2011-02-18 Tom Tromey <tromey@redhat.com>
7531 * common/ax.def: New file.
7532 * ax.h (enum agent_op): Use ax.def.
7533 * ax-general.c (aop_map): Use ax.def.
7535 2011-02-18 Tom Tromey <tromey@redhat.com>
7537 * ax-general.c (aop_map): Add pick and rot.
7538 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7539 <DW_OP_rot>: Implement.
7540 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7542 * ax-general.c (ax_pick): New function.
7544 2011-02-18 Tom Tromey <tromey@redhat.com>
7546 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7548 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7549 Tom Tromey <tromey@redhat.com>
7551 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7552 make_symbol_overload_list_block with NULL BLOCK.
7553 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7555 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7557 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7558 * breakpoint.h (get_number_or_range): Declare.
7559 * printcmd.c (ALL_DISPLAYS): Declare.
7560 (delete_display): Reimplement taking a display pointer.
7561 (undisplay_command): Accept a range of displays to delete, using
7562 get_number_or_range.
7564 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7566 * c-valprint.c (c_val_print): Add embedded_offset to address
7567 for arrays of unspecified length.
7568 * p-valprint.c (pascal_val_print): Likewise.
7570 2011-02-18 Yao Qi <yao@codesourcery.com>
7572 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7573 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7574 (thumb_process_displaced_insn): New.
7575 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7576 call to arm_process_displaced_insn.
7577 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7579 2011-02-17 Tom Tromey <tromey@redhat.com>
7581 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7582 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7583 compile_dwarf_to_ax. No longer static. Call
7584 dwarf2_compile_cfa_to_ax.
7585 (locexpr_tracepoint_var_ref): Update.
7586 (loclist_tracepoint_var_ref): Update.
7587 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7588 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7589 argument; add 'gdbarch' and 'pc'.
7590 (dwarf2_compile_cfa_to_ax): New function.
7591 (dwarf2_frame_cache): Update.
7593 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7595 * ada-lang.c (ada_type_of_array): Fix the size of the array
7596 in the case of an unconstrained packed array.
7598 2011-02-17 Yao Qi <yao@codesourcery.com>
7600 * common/Makefile.in: Add more targets for make.
7602 2011-02-16 Tom Tromey <tromey@redhat.com>
7604 * dwarf2loc.c (unimplemented): Fix typo.
7606 2011-02-16 Tom Tromey <tromey@redhat.com>
7608 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7609 (compile_dwarf_to_ax) <default>: Use unimplemented.
7610 <DW_OP_deref>: Update.
7611 (disassemble_dwarf_expression): Update.
7612 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7613 (decode_locdesc): Update.
7614 * dwarf2expr.h (dwarf_stack_op_name): Update.
7616 2011-02-16 Tom Tromey <tromey@redhat.com>
7618 * ax.h (struct aop_map) <name>: Now const.
7620 2011-02-16 Tom Tromey <tromey@redhat.com>
7622 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7625 2011-02-16 Yao Qi <yao@codesourcery.com>
7627 * infrun.c (get_displaced_step_closure_by_addr): New.
7628 * inferior.h: Declare it.
7629 * arm-tdep.c: (arm_pc_is_thumb): Call
7630 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7633 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7634 Jan Kratochvil <jan.kratochvil@redhat.com>
7637 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7639 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7640 Jan Kratochvil <jan.kratochvil@redhat.com>
7642 * value.c (value_contents_copy_raw): Extend describing comment.
7643 Assert that the destination contents we're overwriting are wholly
7645 (value_contents_copy): Extend describing comment.
7647 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7648 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 * value.c (value_available_contents_eq): Remove redundant local
7651 variables. Fix available contents comparision.
7652 * value.h (value_available_contents_eq): Extend describing
7655 2011-02-16 Yao Qi <yao@codesourcery.com>
7657 * thread.c (info_threads_command): Add missing i18n markup and remove
7660 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7662 * breakpoint.c (longjmp_names): New variable.
7663 (struct breakpoint_objfile_data): New type.
7664 (breakpoint_objfile_key): New variable.
7665 (msym_not_found): New variable.
7666 (msym_not_found_p): New predicate.
7667 (get_breakpoint_objfile_data): New function.
7668 (create_overlay_event_breakpoint): Check per-objfile cache for
7670 (create_longjmp_master_breakpoint): Likewise.
7671 (create_std_terminate_master_breakpoint): Likewise.
7672 (create_exception_master_breakpoint): Likewise.
7673 (_initialize_breakpoint): Register per-objfile data key.
7675 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7677 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7679 (create_longjmp_master_breakpoint): Loop over longjmp names.
7680 (create_std_terminate_master_breakpoint): Const-propagate parameter
7682 (update_breakpoints_after_exec): Adjust.
7683 (breakpoint_re_set): Adjust.
7685 2011-02-15 Michael Snyder <msnyder@vmware.com>
7687 * thread.c (info_threads_command): Process arg as thread id,
7688 or list of thread ids.
7689 (thread_find_command): New command.
7690 (_initialize_thread): Document argument for info threads.
7691 Document 'thread find' command.
7692 * NEWS: Document new command "thread find".
7694 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7696 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7697 * aclocal.m4: Regenerated with aclocal-1.11.1.
7698 * common/configure: Regenerate with autoconf-2.64.
7700 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7702 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7703 bool data type to a size of one byte.
7705 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7706 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 * target.c (memory_xfer_live_readonly_partial): Document where to
7709 look for interface description.
7711 2011-02-15 Yao Qi <yao@codesourcery.com>
7714 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7715 order to store PC value on stack instead of text section.
7717 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7719 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7720 the EFP register set size.
7721 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7722 data from the VMX register.
7723 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7724 and write data from/to the VMX register.
7726 2011-02-14 Michael Snyder <msnyder@vmware.com>
7728 * command.h (enum command_class): New class 'no_set_class', for
7729 "show" commands without a corresponding "set" command.
7730 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7731 * copying.c (_initialize_copying): Ditto for "show copying" and
7733 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7735 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7736 which there is no corresponding "set" command (eg. "show copying").
7738 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7739 Jan Kratochvil <jan.kratochvil@redhat.com>
7741 * exec.c (section_table_available_memory): Change `len' parameter
7743 * exec.h (section_table_available_memory): Ditto.
7744 * value.h (read_value_memory): Rename the `offset' parameter to
7747 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7748 Jan Kratochvil <jan.kratochvil@redhat.com>
7750 * memrange.c (compare_mem_ranges): Mention sort order in
7752 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7753 * tracepoint.c (traceframe_available_memory): Extend comment to
7754 mention what happens to RESULT when the target does not support
7757 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7758 Jan Kratochvil <jan.kratochvil@redhat.com>
7760 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7763 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7765 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7766 No longer handle NULL values.
7768 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7770 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7771 * value.c: Include "exceptions.h".
7772 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7774 * cp-abi.c: Include gdb_assert.h.
7775 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7776 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7778 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7779 parameters. No longer returns -1 on error.
7780 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7782 * cp-valprint.c: Include exceptions.h.
7783 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7784 the baseclass_offset. Handle unavailable base classes. Use
7785 val_print_invalid_address.
7786 * p-valprint.c: Include exceptions.h.
7787 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7788 when fetching the baseclass_offset. No longer expect
7789 baseclass_offset returning -1. Handle unavailable base classes.
7790 Use val_print_invalid_address.
7791 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7792 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7793 `embedded_offset' and `val' parameters. Adjust.
7794 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7795 parameter, and change its type to gdb_byte pointer. Add
7796 `embedded_offset' and `val' parameters. Adjust. No longer expect
7797 baseclass_offset returning -1.
7798 (value_dynamic_cast): Use value_contents_for_printing rather than
7799 value_contents. Adjust.
7800 (search_struct_field): No longer expect baseclass_offset returning
7802 (search_struct_method): If reading memory from the target is
7803 necessary, wrap it in a new value to pass to baseclass_offset. No
7804 longer expect baseclass_offset returning -1.
7805 (find_method_list): No longer expect baseclass_offset returning
7806 -1. Use value_contents_for_printing rather than value_contents.
7807 * valprint.c (val_print_invalid_address): New function.
7808 * valprint.h (val_print_invalid_address): Declare.
7809 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7810 and `val' parameters. No longer expect baseclass_offset returning
7812 * gnu-v2-abi.c: Include "exceptions.h".
7813 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7814 parameters. Handle unavailable memory. Recurse through
7815 gnuv2_baseclass_offset directly, rather than through
7816 baseclass_offset. No longer returns -1 on not found, instead
7818 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7819 `val' parameters. Adjust.
7821 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7823 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7824 almost but not quite adjacent.
7826 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7828 * value.h (value_entirely_available): Declare.
7829 * value.c (value_entirely_available): New function.
7830 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7831 real type if the pointer is unavailable.
7833 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7835 * valops.c (value_repeat): Use read_value_memory instead of
7838 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7840 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7841 * value.c (value_contents_copy_raw, value_contents_copy): New
7843 (value_primitive_field): Use value_contents_copy_raw instead of
7845 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7847 (value_array, value_slice): Ditto.
7848 * valarith.c (value_subscripted_rvalue): Use
7849 value_contents_copy_raw instead of memcpy.
7851 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7853 <unavailable> references.
7855 * valops.c (get_value_at): Use value_from_contents_and_address,
7856 avoiding read_memory.
7858 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7860 * c-valprint.c (c_val_print): Print a string with unavailable
7861 contents as an array.
7863 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7865 * value.h (unpack_bits_as_long): Delete declaration.
7866 (unpack_value_bits_as_long): Declare.
7867 (unpack_value_field_as_long): Declare.
7868 (value_field_bitfield): Declare.
7869 * value.c (unpack_bits_as_long): Rename to...
7870 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7871 value parameters. Return the extracted result in a new output
7872 parameter. If the value contents are unavailable, return false,
7873 otherwise return true.
7874 (unpack_value_bits_as_long): New.
7875 (unpack_field_as_long): Rename to...
7876 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7877 Add embedded_offset and value parameters. Return the extracted
7878 result in a new output parameter. If the value contents are
7879 unavailable, return false, otherwise return true.
7880 (unpack_value_field_as_long): New.
7881 (unpack_field_as_long_1): New.
7882 (unpack_field_as_long): Reimplement as wrapper around
7883 unpack_value_field_as_long_1.
7884 (value_field_bitfield): New function.
7885 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7886 unpack_value_bits_as_long. Mark the value as unavailable, if it
7888 * jv-valprint.c (java_print_value_fields): Use
7889 value_field_bitfield.
7890 * p-valprint.c (pascal_object_print_value_fields): Use
7891 value_field_bitfield.
7892 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7894 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7896 * value.c (get_internalvar_integer): Also return the int value of
7897 TYPE_CODE_INT INTERNALVAR_VALUE values.
7898 (set_internalvar): Don't special case TYPE_CODE_INT.
7900 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7902 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7903 INTERNALVAR_POINTER.
7905 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7906 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7907 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7911 * value.h (value_available_contents_eq): Declare.
7912 * value.c (find_first_range_overlap): New function.
7913 (value_available_contents_eq): New function.
7914 * valprint.c (val_print_array_elements): Use
7915 value_available_contents_eq.
7916 * ada-valprint.c (val_print_packed_array_elements): Use
7917 value_available_contents_eq.
7918 * jv-valprint.c (java_value_print): Use
7919 value_available_contents_eq.
7921 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7923 * target.c (target_read_live_memory): New function.
7924 (memory_xfer_live_readonly_partial): New.
7925 (memory_xfer_partial): If reading from a traceframe, fallback to
7926 reading unavailable read-only memory from read-only regions of
7928 * tracepoint.c (disconnect_tracing): Adjust.
7929 (set_current_traceframe): New, factored out from
7930 set_traceframe_number.
7931 (set_traceframe_number): Reimplement to only change the traceframe
7932 number on the GDB side.
7933 (do_restore_current_traceframe_cleanup): Adjust.
7934 (make_cleanup_restore_traceframe_number): New.
7935 (cur_traceframe_number): New global.
7936 (tfile_open): Set cur_traceframe_number to no traceframe.
7937 (set_tfile_traceframe): New function.
7938 (tfile_trace_find): If looking up a traceframe using any method
7939 other than by number, make sure the current tfile traceframe
7940 matches gdb's current traceframe. Update the current tfile
7941 traceframe if the lookup succeeded.
7942 (tfile_fetch_registers, tfile_xfer_partial)
7943 (tfile_get_trace_state_variable_value): Make sure the remote
7944 traceframe matches gdb's current traceframe.
7945 * remote.c (remote_traceframe_number): New global.
7946 (remote_open_1): Set it to -1.
7947 (set_remote_traceframe): New function.
7948 (remote_fetch_registers, remote_store_registers)
7949 (remote_xfer_memory, remote_xfer_partial)
7950 (remote_get_trace_state_variable_value): Make sure the remote
7951 traceframe matches gdb's current traceframe.
7952 (remote_trace_find): If looking up a traceframe using any method
7953 other than by number, make sure the current remote traceframe
7954 matches gdb's current traceframe. Update the current remote
7955 traceframe if the lookup succeeded.
7956 * infrun.c (fetch_inferior_event): Adjust.
7957 * tracepoint.h (set_current_traceframe): Declare.
7958 (get_traceframe_number, set_traceframe_number): Add describing
7961 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7963 Mark pieces of values as unavailable if the corresponding memory
7966 * valops.c: Include tracepoint.h.
7967 (value_fetch_lazy): Use read_value_memory.
7968 (read_value_memory): New.
7969 * value.h (read_value_memory): Declare.
7970 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7971 * exec.c (section_table_available_memory): New function.
7972 * exec.h (section_table_available_memory): Declare.
7974 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7976 * Makefile.in (SFILES): Add memrange.c.
7977 (HFILES_NO_SRCDIR): Add memrange.h.
7978 (COMMON_OBS): Add memrange.o.
7979 * memrange.c: New file.
7980 * memrange.h: New file.
7981 * tracepoint.c: Include memrange.h.
7982 (struct mem_range): Delete.
7983 (mem_range_s): Delete.
7984 (traceframe_available_memory): New function.
7985 * tracepoint.h (traceframe_available_memory): Declare.
7987 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7989 * target.h (struct traceframe_info): Forward declare.
7990 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7991 (struct target_ops) <to_traceframe_info>: New field.
7992 (target_traceframe_info): New.
7993 * target.c (update_current_target): Inherit and default
7995 * remote.c (PACKET_qXfer_traceframe_info): New.
7996 (remote_protocol_features): Register qXfer:traceframe-info:read.
7997 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7998 (remote_traceframe_info): New.
7999 (init_remote_ops): Install it.
8000 (_initialize_remote): Install "set/show remote traceframe-info"
8002 * tracepoint.h (parse_traceframe_info): Declare.
8003 * tracepoint.c (struct mem_range): New.
8004 (mem_range_s): New typedef.
8005 (struct traceframe_info): New.
8006 (traceframe_info): New global.
8007 (free_traceframe_info): New function.
8008 (clear_traceframe_info): New function.
8009 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8011 (build_traceframe_info): New function.
8012 (tfile_traceframe_info): New function.
8013 (init_tfile_ops): Install tfile_traceframe_info.
8014 (traceframe_info_start_memory, free_result): New functions.
8015 (memory_attributes, traceframe_info_elements): New globals.
8016 (parse_traceframe_info, get_traceframe_info): New functions.
8017 * features/traceframe-info.dtd: New file.
8018 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8020 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8022 Base support for <unavailable> value contents.
8024 * value.h (value_bytes_available): Declare.
8025 (mark_value_bytes_unavailable): Declare.
8026 * value.c (struct range): New struct.
8027 (range_s): New typedef.
8028 (ranges_overlap): New function.
8029 (range_lessthan): New function.
8030 (ranges_contain_p): New function.
8031 (struct value) <unavailable>: New field.
8032 (value_bytes_available): New function.
8033 (mark_value_bytes_unavailable): New function.
8034 (require_not_optimized_out): Constify parameter.
8035 (require_available): New function.
8036 (value_contents_all, value_contents): Require all bytes be
8038 (value_free): Free `unavailable'.
8039 (value_copy): Copy `unavailable'.
8040 * valprint.h (val_print_unavailable): Declare.
8041 * valprint.c (valprint_check_validity): Rename `offset' parameter
8042 to `embedded_offset'. If printing a scalar, check whether the
8043 value chunk is available.
8044 (val_print_unavailable): New.
8045 (val_print_scalar_formatted): Check whether the value is
8047 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8048 pretty-printing unavailable values.
8050 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8052 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8053 * c-typeprint.c (c_type_print_args): Update the function comment. New
8054 variable param_type, initialize it. Remove const/volatile qualifiers
8055 for language_cplus and !show_artificial. Use param_type.
8057 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8059 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8060 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8061 * symtab.h (struct symtab) <next>: Comment extension.
8063 2011-02-12 Yao Qi <yao@codesourcery.com>
8065 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8067 2011-02-11 Yao Qi <yao@codesourcery.com>
8069 * common/Makefile.in: Add copyright header.
8071 2011-02-11 Pedro Alves <pedro@codesourcery.com>
8073 * infrun.c (proceed): Move switching out and in of tfind mode from
8075 (fetch_inferior_event): ... to here.
8077 2011-02-11 Yao Qi <yao@codesourcery.com>
8079 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8081 * configure.ac: Add common to sub dir.
8082 * configure: Regenerate.
8084 2011-02-11 Yao Qi <yao@codesourcery.com>
8088 * common/Makefile.in: New.
8089 * common/configure.ac: New.
8090 * common/aclocal.m4: New.
8091 * common/configure: Generate.
8093 2011-02-10 Pedro Alves <pedro@codesourcery.com>
8095 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8096 side of the parenthesis.
8099 2010-07-13 Jakub Jelinek <jakub@redhat.com>
8100 * vec.h (VEC_block_remove): Fix comment.
8102 2011-02-08 Michael Snyder <msnyder@vmware.com>
8104 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
8106 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8108 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
8109 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
8112 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8115 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
8117 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
8118 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
8120 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8122 * dwarf2read.c (read_subroutine_type): Set special calling
8123 convention flag for functions compiled by IBM XL C for OpenCL.
8124 * ppc-sysv-tdep.c: Include "dwarf2.h"
8125 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
8127 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
8128 IBM OpenCL vector types calling convention.
8129 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
8130 (ppc_sysv_abi_broken_return_value): Likewise.
8131 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
8132 types calling convention.
8133 (ppc64_sysv_abi_return_value): Likewise.
8134 * spu-tdep.c: Include "dwarf2.h"
8135 (spu_return_value): Implement IBM OpenCL vector types calling
8138 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8140 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
8141 correct ABI for AltiVec vector arguments.
8143 2011-02-07 Pedro Alves <pedro@codesourcery.com>
8145 * valprint.c (val_print): Extend comment.
8146 * ada-valprint.c (ada_valprint): Rewrite comment deferring
8147 interface explanation to val_print.
8148 (ada_val_print_array): Adjust comment to current interface.
8149 (print_field_values): Adjust comment to current interface.
8150 * c-valprint.c (c_val_print): Rewrite comment deferring interface
8151 explanation to val_print.
8152 * f-valprint.c (f_val_print): Ditto.
8153 * jv-valprint.c (java_val_print): Ditto.
8154 * m2-valprint.c (m2_val_print): Ditto.
8155 * p-valprint.c (pascal_val_print): Ditto.
8157 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8159 * breakpoint.c (parse_breakpoint_sals): Fix description.
8161 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
8162 Oguz Kayral <oguzkayral@gmail.com>
8164 * python/py-inferior.c (python_on_normal_stop): New function.
8165 (python_on_resume): New function.
8166 (python_inferior_exit): New function.
8167 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
8168 inferior_exit observers.
8169 * python/py-evtregistry.c: New file.
8170 * python/py-threadevent.c : New file.
8171 * python/py-event.c: New file.
8172 * python/py-evts.c: New file.
8173 * python/py-continueevent.c: New file.
8174 * python/py-bpevent.c: New file.
8175 * python/py-signalevent.c: New file.
8176 * python/py-exetiedevent.c: New file.
8177 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
8178 Move struct breakpoint_object from here...
8179 * python/python-internal.h: ... to here.
8180 * python/py-event.h: New file.
8181 * python/py-events.h: New file.
8182 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
8183 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
8184 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
8185 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
8186 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
8187 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
8188 Add build rules for all the above.
8190 2011-02-04 Tom Tromey <tromey@redhat.com>
8192 * dwarf2read.c (dwarf2_section_empty_p): New function.
8193 (dwarf2_read_section): Use dwarf2_section_empty_p.
8194 (dwarf2_section_size): New function.
8195 (dwarf2_get_section_info): Unconditionally read section.
8196 (dwarf2_read_index): Use dwarf2_section_empty_p.
8197 (partial_read_comp_unit_head): Use dwarf2_section_size.
8198 (dwarf2_symbol_mark_computed): Likewise.
8200 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8202 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
8204 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8206 * mips-linux-tdep.c: Include xml-syscall.h.
8207 (mips_linux_get_syscall_number): New function.
8208 (mips_linux_init_abi): Add calls to
8209 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
8210 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8211 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
8212 * syscalls/mips-n32-linux.xml: New file.
8213 * syscalls/mips-n64-linux.xml: New file.
8214 * syscalls/mips-o32-linux.xml: New file.
8216 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8218 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
8219 Complain about inverted range entries.
8220 (dwarf2_record_block_ranges): Likewise.
8222 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8225 * breakpoint.c (update_watchpoint): Fix name of the
8226 update_global_location_list function.
8227 (print_one_breakpoint): Fix typo.
8228 (_initialize_breakpoint): Remove extra space in hbreak help
8230 * breakpoint.h (struct bp_location) <length>: Fix field
8233 2011-02-04 Pedro Alves <pedro@codesourcery.com>
8235 * regcache.c (registers_changed_ptid): Don't explictly always
8236 clear `current_regcache'. Only clear current_thread_ptid and
8237 current_thread_arch when PTID matches. Only reinit the frame
8238 cache if PTID matches the current inferior_ptid. Move alloca(0)
8240 (registers_changed): ... here.
8242 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
8244 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
8245 starts with __stack_chk_guard as stack guard symbol.
8247 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
8249 * disasm.c (compare_lines): Handle the end of sequence markers
8250 within the line table to better support disassembling over
8251 compilation unit boundaries.
8253 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8255 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
8256 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
8257 implementation even if no symbols are available.
8258 (thumb_analyze_prologue): Update call to skip_prologue_function.
8259 (arm_analyze_prologue): Likewise.
8261 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8263 * arm-tdep.c: Include "observer.h".
8264 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
8265 (arm_exidx_data_key): New static variable.
8266 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
8267 (struct arm_exidx_data): Likewise.
8268 (arm_exidx_data_free): New function.
8269 (arm_compare_exidx_entries): Likewise.
8270 (arm_obj_section_from_vma): Likewise.
8271 (arm_exidx_new_objfile): Likewise.
8272 (arm_find_exidx_entry): Likewise.
8273 (arm_exidx_fill_cache): Likewise.
8274 (arm_exidx_unwind_sniffer): Likewise.
8275 (arm_exidx_unwind): New global variable.
8276 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
8277 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
8278 observer. Register arm_exidx_data_key as objfile data.
8280 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8282 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8283 due to accessing uninitialized variable. Fix indentation.
8285 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8287 * c-valprint.c (c_value_print): When doing virtual base pointer
8288 adjustment, create a new value with adjusted contents rather than
8289 changing the contents of the value being printed (and getting it
8292 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8294 * xml-support.c (xml_find_attribute): New.
8295 (xinclude_start_include): Use it.
8296 * xml-support.h (xml_find_attribute): Declare.
8297 * memory-map.c (memory_map_start_memory)
8298 (memory_map_start_property): Use xml_find_attribute.
8299 * osdata.c (osdata_start_osdata, osdata_start_column): Use
8301 * remote.c (start_thread): Use xml_find_attribute.
8302 * solib-target.c (library_list_start_segment)
8303 (library_list_start_section, library_list_start_library)
8304 (library_list_start_list): Use xml_find_attribute.
8305 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8306 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8307 (tdesc_start_field): Use xml_find_attribute.
8309 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
8311 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8312 (BUILD_OCL_VTYPES): Update.
8314 2011-02-02 Joel Brobecker <brobecker@adacore.com>
8316 * configure.ac: Work around non-GNU sed limitation when computing
8317 python version number.
8318 * configure: Regenerate.
8320 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8322 Fix debug printing of TYPE_INSTANCE.
8323 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8324 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8326 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8328 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8329 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8330 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8331 * ada-operator.inc: Rename the file to ...
8332 * ada-operator.def: ... here, wrap all the entries by macro OP.
8333 * expprint.c (op_name_standard): Remove all the entries. Include
8334 "std-operator.def" instead.
8335 * expression.h (enum exp_opcode): Include "std-operator.def" and
8336 "ada-operator.def". Move all the entries ...
8337 * std-operator.def: ... here, wrap all the entries by macro OP.
8339 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8341 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8342 * breakpoint.c (remove_jit_event_breakpoints): New function.
8343 * jit.c (jit_descriptor_addr): Delete.
8344 (registering_code): Delete.
8345 (clear_int): Delete.
8346 (jit_inferior_data): New variable.
8347 (struct jit_inferior_data): New type.
8348 (get_jit_inferior_data): New function.
8349 (jit_inferior_data_cleanup): New function.
8350 (jit_read_descriptor): Adjust.
8351 (jit_register_code): Adjust.
8352 (jit_breakpoint_re_set_internal): New function; move code here ...
8353 (jit_inferior_init): ... from here.
8354 (jit_breakpoint_re_set): Adjust.
8355 (jit_reset_inferior_data_and_breakpoints): New function.
8356 (jit_inferior_created_observer): Adjust.
8357 (jit_inferior_exit_hook): Adjust.
8358 (jit_executable_changed_observer): New function.
8359 (jit_event_handler): Adjust.
8360 (_initialize_jit): Adjust.
8362 2011-01-31 Michael Snyder <msnyder@vmware.com>
8364 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8367 2011-01-31 Tom Tromey <tromey@redhat.com>
8370 * python/python.c (execute_gdb_command): Call
8371 prevent_dont_repeat.
8372 * top.c (suppress_dont_repeat): New global.
8373 (dont_repeat): Use it.
8374 (prevent_dont_repeat): New function.
8375 * command.h (prevent_dont_repeat): Declare.
8377 2011-01-31 Tom Tromey <tromey@redhat.com>
8379 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8380 * python/py-breakpoint.c (bppy_set_silent): Use
8381 breakpoint_set_silent.
8382 (bppy_set_thread): Use breakpoint_set_thread.
8383 (bppy_set_task): Use breakpoint_set_task.
8384 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8385 (breakpoint_set_task): Declare.
8386 (make_breakpoint_silent): Remove.
8387 * breakpoint.c (breakpoint_set_silent): New function.
8388 (breakpoint_set_thread): Likewise.
8389 (breakpoint_set_task): Likewise.
8390 (make_breakpoint_silent): Remove.
8392 2011-01-31 Tom Tromey <tromey@redhat.com>
8394 * breakpoint.h (user_breakpoint_p): Declare.
8395 * breakpoint.c (user_breakpoint_p): New function.
8396 (breakpoint_1): Use it.
8397 (save_breakpoints): Likewise.
8399 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8401 * configure.ac: Add handling of Python distribution on Windows.
8402 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8403 sysconfig variables are not defined, then do not use them.
8404 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8405 instead. On Windows, return all paths using forward-slashes
8406 rather than backslashes.
8408 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8410 * configure.ac: Remove fallback behavior for building
8411 against Python. Remove tweaking of Python include path.
8412 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8413 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8414 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8415 Always restore CPPFLAGS and LIBS after linking test.
8416 * configure: Regenerated.
8417 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8418 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8419 * python/python-internal.h: Adjust includes of Python .h files.
8421 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8423 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8426 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8428 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8431 2011-01-31 Yao Qi <yao@codesourcery.com>
8433 * arm-linux-nat.c: Update calls to regcache_register_status
8434 instead of regcache_valid_p.
8435 * aix-thread.c: Likewise.
8436 * i386gnu-nat.c: Likewise.
8438 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8441 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8442 touching TYPE_FIELD_ARTIFICIAL.
8444 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8446 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8449 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8451 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8452 selected, don't try iterating over the traceframe's blocks.
8453 (tfile_has_stack): If there's no traceframe selected, then there's
8455 (tfile_has_registers): If there's no traceframe selected, then
8456 there's no registers.
8458 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8460 * target.c (memory_xfer_partial): No need to restore shadows if we
8461 haven't read anything.
8463 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8465 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8466 and val_print_scalar_formatted.
8468 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8470 * tracepoint.c (tfile_read): New.
8471 (tfile_open): Use it.
8472 (tfile_get_traceframe_address): Use it.
8473 (tfile_trace_find): Use it.
8474 (walk_blocks_callback_func): New typedef.
8475 (match_blocktype): New function.
8476 (traceframe_walk_blocks): New function.
8477 (traceframe_find_block_type): New function.
8478 (tfile_fetch_registers, tfile_xfer_partial)
8479 (tfile_get_trace_state_variable_value): Use
8480 traceframe_find_block_type and tfile_read.
8482 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8484 * remote-mips.c: Add internationalization mark ups. Remove
8485 trailing \n from already marked up strings.
8487 2011-01-26 Tom Tromey <tromey@redhat.com>
8489 * python/py-prettyprint.c (print_string_repr): Clear
8490 'addressprint' option when calling val_print_string.
8491 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8492 option when calling val_print_string.
8494 2011-01-26 Tom Tromey <tromey@redhat.com>
8496 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8498 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8500 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8501 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8502 (gdb_py_long_as_ulongest): New defines.
8503 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8504 (gdb_py_int_as_long): Declare.
8505 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8506 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8507 (valpy_long): Add comment.
8508 * python/py-utils.c (get_addr_from_python): Use
8509 gdb_py_long_as_ulongest. Handle overflow properly.
8510 (gdb_py_object_from_longest): New function.
8511 (gdb_py_object_from_ulongest): Likewise.
8512 (gdb_py_int_as_long): Likewise.
8513 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8514 * python/py-symtab.c (salpy_get_pc): Use
8515 gdb_py_long_from_ulongest.
8516 (salpy_get_line): Use PyInt_FromLong.
8517 * python/py-param.c (set_parameter_value): Use
8519 * python/py-lazy-string.c (stpy_get_address): Use
8520 gdb_py_long_from_ulongest.
8521 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8522 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8523 * python/py-breakpoint.c (bppy_set_thread): Use
8525 (bppy_set_task): Likewise.
8526 (bppy_set_ignore_count): Likewise.
8527 (bppy_set_hit_count): Likewise.
8528 * python/py-block.c (blpy_get_start): Use
8529 gdb_py_object_from_ulongest.
8530 (blpy_get_end): Likewise.
8531 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8533 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8536 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8537 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8538 equality test for objfile, initialize addr_low if needed.
8540 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8542 * tui/tui-regs.c (tui_register_format): Remove dead code.
8544 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8546 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8547 instead of print_scalar_formatted.
8548 (print_scalar_formatted): Don't handle 's' format strings here,
8549 and add an assertion that we never see such format here.
8550 * valprint.h (val_print_scalar_formatted): Declare.
8551 * valprint.c (val_print_scalar_formatted): New.
8552 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8553 instead of print_scalar_formatted.
8554 * jv-valprint.c (java_val_print): Ditto.
8555 * p-valprint.c (pascal_val_print): Ditto.
8556 * ada-valprint.c (ada_val_print_1): Ditto.
8557 * f-valprint.c (f_val_print): Ditto.
8558 * infcmd.c (registers_info): Ditto.
8559 * m2-valprint.c (m2_val_print): Ditto.
8561 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8563 * m2-valprint.c (print_unbounded_array): Pass
8564 value_contents_for_printing rather than value_contents, to
8565 m2_print_array_contents. Also pass in the value.
8567 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8569 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8570 (save_gdb_index_command): Switch to .gdb_index version 4.
8572 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8574 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8575 than frame_register, and always pass a valid value to val_print.
8577 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8579 Centralize printing "<optimized out>".
8581 * valprint.h (val_print_optimized_out): Declare.
8582 * cp-valprint.c (cp_print_value_fields): Use
8583 val_print_optimized_out.
8584 * jv-valprint.c (java_print_value_fields): Ditto.
8585 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8586 * printcmd.c (print_formatted): Ditto.
8587 * valprint.c (valprint_check_validity): Ditto.
8588 (value_check_printable): Ditto.
8589 (val_print_optimized_out): New.
8591 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8593 * infcmd.c (default_print_registers_info): Allocate values so to
8594 never pass a NULL value to val_print.
8596 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8598 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8599 boolean. Make sure to always pass a value that matches the
8600 contents buffer to callees. Preserve `address' for following
8602 * value.c (value_contents_for_printing_const): New.
8603 (value_address): Constify value argument.
8604 * value.h (value_contents_for_printing_const): Declare.
8605 (value_address): Constify value argument.
8607 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8609 * regcache.c (struct regcache_descr): Rename
8610 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8611 and sizeof_cooked_register_valid_p to
8612 sizeof_cooked_register_status.
8613 (init_regcache_descr): Adjust.
8614 (struct regcache): Rename register_valid_p field to
8616 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8617 (do_cooked_read): Adjust.
8618 (regcache_valid_p): Rename to ...
8619 (regcache_register_status): ... this. Adjust.
8620 (regcache_invalidate): Adjust.
8621 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8623 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8624 as unavailable, not valid.
8625 (regcache_dump): Adjust.
8626 * regcache.h (enum register_status): New.
8627 (regcache_register_status): Declare.
8628 (regcache_invalidate): Delete declaration.
8629 * corelow.c (get_core_registers): Adjust.
8630 * tracepoint.c (tfile_fetch_registers): Adjust.
8631 * trad-frame.c (REG_VALUE): Rename to ...
8632 (TF_REG_VALUE): ... this.
8633 (REG_UNKNOWN): Rename to ...
8634 (TF_REG_UNKNOWN): ... this.
8635 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8636 * mi/mi-main.c (register_changed_p): Adjust.
8638 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8640 * regcache.c (struct regcache_descr): Remove outdated comment.
8641 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8643 (regcache_xmalloc): Rename to ...
8644 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8645 Allocate the regcache type accordingly.
8646 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8647 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8648 cooked registers, not raw.
8649 (regcache_dup_no_passthrough): Delete.
8650 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8651 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8652 mention obsolete write_register_bytes.
8653 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8655 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8657 Stop remote_read_bytes from handling partial reads itself.
8659 * remote-fileio.c: Include target.h.
8660 (remote_fileio_write_bytes): Delete.
8661 (remote_fileio_func_open, remote_fileio_func_write)
8662 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8664 (remote_fileio_func_stat): Use target_read_memory and
8665 target_write_memory.
8666 (remote_fileio_func_gettimeofday): Use target_write_memory.
8667 (remote_fileio_func_system): Use target_read_memory.
8668 * remote.c (remote_write_bytes): Make it static.
8669 (remote_read_bytes): Don't handle partial reads here.
8670 * remote.h (remote_read_bytes): Delete declaration.
8672 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8674 Simplify XML parsing a bit.
8676 * xml-support.h (gdb_xml_parse_quick): Declare.
8677 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8678 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8680 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8681 gdb_xml_create_parser_and_cleanup_1.
8682 (gdb_xml_parse_quick): New.
8683 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8684 * osdata.c (osdata_parse): Ditto.
8685 * remote.c (remote_threads_info): Ditto.
8686 * solib-target.c (solib_target_parse_libraries): Ditto.
8687 * xml-syscall.c (syscall_parse_xml): Ditto.
8688 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8690 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8692 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8693 with remote-mips.o added to gdb_target_obs.
8694 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8696 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8698 * ada-valprint.c (val_print_packed_array_elements): Pass the
8699 correct struct value to val_print.
8700 (ada_val_print_1): Ditto.
8702 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8704 Don't lose embedded_offset in printing routines throughout.
8706 * valprint.h (val_print_array_elements): Change prototype.
8707 * valprint.c (val_print_array_elements): Add `embedded_offset'
8708 parameter, and adjust to pass it down to val_print, while passing
8709 `valaddr' or `address' unmodified. Take embedded_offset into
8710 account when checking repetitions.
8711 * c-valprint.c (c_val_print): Pass embedded_offset to
8712 val_print_array_elements instead of adjusting `valaddr' and
8714 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8715 embedded_offset to val_print_array_elements instead of adjusting
8717 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8718 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8719 val_print_array_elements and pascal_object_print_value_fields
8720 instead of adjusting `valaddr'.
8721 (pascal_object_print_value_fields): Add `offset' parameter, and
8723 (pascal_object_print_value): Add `offset' parameter, and adjust to
8725 (pascal_object_print_static_field): Use
8726 value_contents_for_printing/value_embedded_offset, rather than
8728 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8729 parameter, and adjust to use it. Use
8730 value_contents_for_printing/value_embedded_offset, rather than
8732 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8733 (ada_val_print_array): Add `offset' parameter, and adjust to use
8735 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8736 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8737 Instead work with offsets. Use
8738 value_contents_for_printing/value_embedded_offset, rather than
8739 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8740 and use value_from_pointer to extract a target pointer, rather
8741 than value_from_longest.
8742 (print_variant_part): Add `offset' parameter. Replace
8743 `outer_valaddr' parameter by a new `outer_offset' parameter.
8744 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8745 (ada_value_print): Use
8746 value_contents_for_printing/value_embedded_offset, rather than
8748 (print_record): Add `offset' parameter, and adjust to pass it
8750 (print_field_values): Add `offset' parameter. Replace
8751 `outer_valaddr' parameter by a new `outer_offset' parameter.
8752 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8753 Use value_contents_for_printing/value_embedded_offset, rather than
8755 * d-valprint.c (dynamic_array_type): Use
8756 value_contents_for_printing/value_embedded_offset, rather than
8758 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8759 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8760 (java_print_value_fields): Take `offset' into account. Don't
8761 re-adjust `valaddr'. Instead pass down adjusted offsets.
8762 (java_val_print): Take `embedded_offset' into account. Pass it to
8763 java_print_value_fields.
8764 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8765 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8766 down adjusted offsets.
8767 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8768 (f_val_print): Take `embedded_offset' into account.
8770 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8772 * inflow.c: Include "gdbcmd.h".
8773 (interactive_mode): New static global, moved here from top.c.
8774 (show_interactive_mode): New function, moved here from top.c.
8775 use gdb_has_a_terminal instead of input_from_terminal_p to
8776 determine the current mode.
8777 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8779 (_initialize_inflow): Add the "set/show interactive-mode"
8780 commands. Moved here from top.c, after having adjusted slightly
8782 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8784 (input_from_terminal_p): Remove handling of "interactive-mode"
8785 setting, moved to infow.c.
8786 (init_main): Remove creation of the "set/show interactive-mode"
8787 commands, moved to inflow.c.
8789 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8791 * NEWS: Add entry for native ia64-hpux support.
8793 2011-01-19 Tom Tromey <tromey@redhat.com>
8796 * thread.c (free_thread): Free 'name'.
8797 (print_thread_info): Emit thread name. Change CLI output.
8798 (thread_name_command): New function.
8799 (do_captured_thread_select): Emit newline.
8800 (_initialize_thread): Register 'thread name' command.
8801 * target.h (struct target_ops) <to_thread_name>: New field.
8802 (target_thread_name): New macro.
8803 * target.c (update_current_target): Handle to_thread_name.
8804 * python/py-infthread.c (thpy_get_name): New function.
8805 (thpy_set_name): Likewise.
8806 (thread_object_getset): Add "name".
8807 * linux-nat.c (linux_nat_thread_name): New function.
8808 (linux_nat_add_target): Set to_thread_name.
8809 * gdbthread.h (struct thread_info) <name>: New field.
8811 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8813 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8814 (ada_val_print_1): Likewise.
8816 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8818 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8819 upper limit address is not greater than the function end address
8820 when the upper limit could not be computed using the debugging
8823 2011-01-17 Tom Tromey <tromey@redhat.com>
8825 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8827 * utils.c: Include gdb_regex.h.
8828 (do_regfree_cleanup): New function.
8829 (make_regfree_cleanup): Likewise.
8830 (get_regcomp_error): Likewise.
8831 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8833 2011-01-17 Tom Tromey <tromey@redhat.com>
8835 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8838 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8840 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8841 for internal variables.
8842 (last_was_structop): New static variable.
8843 (COMPLETE): New token.
8844 (field_exp): New rule to group all '.' suffix handling.
8845 Add mark_struct_expression calls when approriate to be able
8846 to correctly find fields for completion.
8847 (yylex): Adapt to handle field completion and set INTVAR when
8850 2011-01-14 Yao Qi <yao@codesourcery.com>
8852 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8853 save_reggroup, restore_reggroup and all_reggroup.
8855 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8857 * ada-valprint. (ada_printchar): Use the correct type length
8858 in call to ada_emit_char.
8859 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8861 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8863 * solib-som.h (hpux_major_release): Declare variable here.
8864 * solib-som.c: Remove <sys/utsname.h> header.
8865 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8866 (hpux_major_release): Make global, change default value to
8867 DEFAULT_HPUX_MAJOR_RELEASE.
8868 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8869 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8870 Add "solib-som.h" header.
8871 (set_hpux_major_release): New function.
8872 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8874 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8876 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8878 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8880 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8881 new-line at end of warning message.
8882 (ia64_hpux_store_register): Remove trailing new-line at end of
8884 * ia64-hpux-tdep.c: Rephrase comment.
8885 * solib-ia64-hpux.c (struct dld_info): Change type of field
8886 dld_flags from "long long" to ULONGEST.
8888 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8890 * target.h (deprecated_child_ops): Delete declaration.
8891 * target.c (deprecated_child_ops): Delete definition.
8893 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8895 * Makefile.in (hpux-thread.o): Delete rule.
8896 * configure.ac: Don't check for HPUX DCE threads support.
8897 * configure, config.in: Regenerate.
8898 * hppa-hpux-nat.c (child_suppress_run): Delete.
8899 (hppa_hpux_child_can_run): Delete.
8900 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8901 * hpux-thread.c: Delete.
8903 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8905 * hpux-thread.c (hpux_pid_to_str): Delete.
8907 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8909 * ada-valprint.c (ada_emit_char): Remove strange code.
8910 Check that c is <= UCHAR_MAX before passing it to isascii.
8911 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8913 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8915 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8916 to the case where instream is stdin.
8918 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8920 * ia64-tdep.h (struct regcache): Forward declare.
8921 (struct ia64_infcall_ops): New struct type.
8922 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8924 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8925 Renames ia64_find_global_pointer.
8926 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8927 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8928 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8930 (ia64_infcall_ops): New static global constant.
8931 (ia64_gdbarch_init): Set tdep->infcall_ops.
8932 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8933 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8934 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8935 (ia64_hpux_dummy_code): New static global constant.
8936 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8937 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8938 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8940 (ia64_hpux_infcall_ops): New static global constant.
8941 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8942 for inferior function calls to work properly on ia64-hpux.
8944 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8946 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8947 * ia64-tdep.h (struct frame_info): forward declaration.
8948 (struct gdbarch_tdep): Add field size_of_register_frame.
8949 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8950 to determine the size of the register frame.
8951 (ia64_size_of_register_frame): New function.
8952 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8953 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8954 (IA64_HPUX_UREG_REASON): New macro.
8955 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8957 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8958 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8959 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8962 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8964 Add support for ia64-hpux.
8965 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8966 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8968 * configure.host: Add handling for ia64-hpux hosts. Add associated
8970 * configure.tgt: Add handling for ia64-hpux targets.
8971 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8972 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8973 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8975 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8977 [ttrace] Compute thread list immediately after attach.
8978 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8980 (inf_ttrace_attach): Use it.
8982 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8984 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8985 if we could not determine the frame's function address. Instead,
8986 use the frame's PC, and then continue.
8988 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8990 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8991 not already defined.
8993 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8995 * ia64-tdep.c (ia64_struct_type_p): New function.
8996 (ia64_extract_return_value): Handle integral values that are
8997 less than 8 bytes long.
8998 (ia64_push_dummy_call): Likewise.
9000 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9002 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9003 floatformat_ia64_ext.
9004 (floatformat_ia64_ext_big): New static const.
9005 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9007 2011-01-12 Tom Tromey <tromey@redhat.com>
9009 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9011 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9012 (mi_cmd_thread_list_ids): Likewise.
9013 (mi_cmd_data_list_changed_registers): Likewise.
9014 (mi_cmd_data_list_register_values): Likewise.
9015 (mi_cmd_data_write_register_values): Likewise.
9016 (mi_cmd_data_evaluate_expression): Likewise.
9017 (mi_cmd_data_read_memory): Likewise.
9018 (mi_cmd_data_read_memory_bytes): Likewise.
9019 (mi_cmd_data_write_memory): Likewise.
9020 (mi_cmd_enable_timings): Likewise.
9021 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9022 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9023 (mi_cmd_var_delete): Likewise.
9024 (mi_cmd_var_set_format): Likewise.
9025 (mi_cmd_var_show_format): Likewise.
9026 (mi_cmd_var_info_num_children): Likewise.
9027 (mi_cmd_var_list_children): Likewise.
9028 (mi_cmd_var_info_type): Likewise.
9029 (mi_cmd_var_info_expression): Likewise.
9030 (mi_cmd_var_show_attributes): Likewise.
9031 (mi_cmd_var_assign): Likewise.
9032 (mi_cmd_var_update): Likewise.
9033 (mi_cmd_enable_pretty_printing): Likewise.
9034 (mi_cmd_var_set_update_range): Likewise.
9035 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9037 (mi_cmd_target_file_put): Likewise.
9038 (mi_cmd_target_file_delete): Likewise.
9039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9041 (mi_cmd_stack_info_depth): Likewise.
9042 (mi_cmd_stack_list_locals): Likewise.
9043 (mi_cmd_stack_list_args): Likewise.
9044 (mi_cmd_stack_select_frame): Likewise.
9045 (mi_cmd_stack_select_frame): Likewise.
9046 (mi_cmd_stack_info_frame): Likewise.
9047 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9049 (mi_cmd_file_list_exec_source_files): Likewise.
9050 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9051 (mi_cmd_env_cd): Likewise.
9052 (mi_cmd_env_path): Likewise.
9053 (mi_cmd_env_dir): Likewise.
9054 (mi_cmd_inferior_tty_show): Likewise.
9055 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9056 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9057 (mi_cmd_break_watch): Likewise.
9059 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9061 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9062 (ppc_linux_insert_hw_breakpoint): Likewise.
9063 (ppc_linux_remove_hw_breakpoint): Likewise.
9064 (ppc_linux_insert_watchpoint): Likewise.
9066 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9067 Jan Kratochvil <jan.kratochvil@redhat.com>
9069 PR fortran/11104 and DWARF unbound arrays detection.
9070 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9071 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9072 unspecified upper bound.
9073 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9074 variables array_size_array, tmp_type and offset_item. New variable
9075 array. Remove call to f77_get_upperbound. New variables array_type
9076 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9077 the final call to deprecated_set_value_type.
9079 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9081 Make value allocations more lazy.
9082 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9083 instead of allocate_value and set_value_lazy when possible.
9084 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
9085 instead of allocate_value and set_value_lazy.
9086 * findvar.c (value_of_register_lazy): Likewise.
9087 (read_var_value): Remove V preallocation, call just check_typedef in
9088 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
9089 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9090 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
9091 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
9092 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
9093 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
9094 the end, remove set_value_lazy there.
9095 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9096 instead of allocate_value and set_value_lazy when possible.
9097 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9098 * value.c (allocate_computed_value): Use allocate_value_lazy instead
9099 of allocate_value and set_value_lazy.
9100 (value_from_contents_and_address): Use allocate_value_lazy instead of
9101 allocate_value and set_value_lazy when possible.
9103 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9105 * disasm.c (dump_insns): Support dumping opcodes for MI.
9106 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
9107 dumping of instruction opcodes.
9109 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
9111 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
9114 2011-01-11 Tom Tromey <tromey@redhat.com>
9116 * thread.c (do_captured_thread_select): Emit newline before
9119 2011-01-11 Michael Snyder <msnyder@vmware.com>
9121 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
9122 * score-tdep.c: Ditto.
9123 * score-tdep.h: Ditto.
9124 * ser-base.c: Ditto.
9125 * ser-go32.c: Ditto.
9128 * ser-mingw.c: Ditto.
9129 * ser-pipe.c: Ditto.
9131 * ser-unix.c: Ditto.
9132 * sh64-tdep.c: Ditto.
9133 * shnbsd-nat.c: Ditto.
9137 * solib-darwin.c: Ditto.
9138 * solib-frv.c: Ditto.
9140 * solib-irix.c: Ditto.
9141 * solib-osf.c: Ditto.
9142 * solib-pa64.c: Ditto.
9143 * solib-som.c: Ditto.
9144 * solib-spu.c: Ditto.
9145 * solib-sunos.c: Ditto.
9146 * solib-svr4.c: Ditto.
9148 * sol-thread.c: Ditto.
9152 * sparc64-linux-tdep.c: Ditto.
9153 * sparc64-tdep.c: Ditto.
9154 * sparc-linux-nat.c: Ditto.
9155 * sparc-linux-tdep.c: Ditto.
9156 * sparc-sol2-nat.c: Ditto.
9157 * sparc-sol2-tdep.c: Ditto.
9158 * sparc-tdep.c: Ditto.
9159 * sparc-tdep.h: Ditto.
9160 * spu-tdep.c: Ditto.
9161 * stabsread.c: Ditto.
9162 * stabsread.h: Ditto.
9170 * target-descriptions.c: Ditto.
9171 * target-descriptions.h: Ditto.
9173 * target-memory.c: Ditto.
9174 * terminal.h: Ditto.
9177 * tracepoint.c: Ditto.
9178 * tracepoint.h: Ditto.
9179 * trad-frame.h: Ditto.
9180 * typeprint.c: Ditto.
9182 2011-01-11 Michael Snyder <msnyder@vmware.com>
9184 * ui-file.c: Comment cleanup, mostly periods and spaces.
9189 * v850-tdep.c: Ditto.
9190 * valarith.c: Ditto.
9192 * valprint.c: Ditto.
9193 * valprint.h: Ditto.
9198 * vax-tdep.c: Ditto.
9202 * windows-nat.c: Ditto.
9203 * windows-tdep.c: Ditto.
9204 * xcoffread.c: Ditto.
9205 * xcoffsolib.c: Ditto.
9206 * xml-support.c: Ditto.
9207 * xstormy16-tdep.c: Ditto.
9208 * xtensa-tdep.c: Ditto.
9209 * xtensa-tdep.h: Ditto.
9211 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9213 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
9214 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
9216 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9217 Thiago Jung Bauermann <bauerman@br.ibm.com>
9219 Implement support for PowerPC BookE ranged watchpoints.
9221 (struct breakpoint_ops) <resources_needed>: New method.
9222 Initialize to NULL in all existing breakpoint_ops instances.
9223 (struct breakpoint) <exact>: New field.
9224 (target_exact_watchpoints): Declare external global.
9225 * breakpoint.c (target_exact_watchpoints): New global flag.
9226 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
9227 b->enable_state to bp_enabled before calling
9228 hw_watchpoint_used_count.
9229 (hw_watchpoint_used_count): Iterate over all bp_locations in a
9230 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
9232 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
9233 if the watchpoint is exact.
9234 (resources_needed_watchpoint): New function.
9235 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
9236 (watch_command_1): Set b->exact if the user asked for an exact
9237 watchpoint and one can be set.
9238 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
9239 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
9240 the user asks for an exact watchpoint and one can be set. Return
9241 number of needed debug registers to watch the expression.
9242 * gdbtypes.c (is_scalar_type): New function, based on
9243 valprint.c:scalar_type_p.
9244 (is_scalar_type_recursive): New function.
9245 * gdbtypes.h (is_scalar_type_recursive): Declare.
9246 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
9247 handle regions when ranged watchpoints are available.
9248 (create_watchpoint_request): New function.
9249 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
9250 create_watchpoint_request.
9251 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
9252 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
9253 `set powerpc' and `show powerpc' commands.
9254 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9255 Mention documentation comment in the target macro.
9256 (target_region_ok_for_hw_watchpoint): Document return value.
9258 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9260 * breakpoint.c (update_watchpoint): Decide on using a software or
9261 hardware watchpoint after the bp_locations are created.
9263 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9265 Convert hardware watchpoints to use breakpoint_ops.
9266 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
9267 <insert_location>: ... this. Return int instead of void.
9268 Accept pointer to struct bp_location instead of pointer to
9269 struct breakpoint. Adapt all implementations.
9270 (breakpoint_ops) <remove>: Rename to...
9271 <remove_location>: ... this. Accept pointer to struct bp_location
9272 instead of pointer to struct breakpoint. Adapt all implementations.
9273 * breakpoint.c (insert_catchpoint): Delete function.
9274 (insert_bp_location): Call the watchpoint or catchpoint's
9275 breakpoint_ops.insert method.
9276 (remove_breakpoint_1): Call the watchpoint or catchpoint's
9277 breakpoint_ops.remove method.
9278 (insert_watchpoint, remove_watchpoint): New functions.
9279 (watchpoint_breakpoint_ops): New structure.
9280 (watch_command_1): Initialize the OPS field.
9281 * inf-child.c (inf_child_insert_fork_catchpoint)
9282 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9283 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9284 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9286 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9287 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9288 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9289 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9290 * target.c (update_current_target): Change default implementation of
9291 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9292 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9293 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9294 to_set_syscall_catchpoint to return_one.
9295 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9296 (debug_to_insert_exec_catchpoint): Report return value.
9297 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9298 (to_insert_exec_catchpoint): Change declaration to return int instead
9301 2011-01-11 Michael Snyder <msnyder@vmware.com>
9303 * arm-tdep.c: Internationalization.
9306 * fork-child.c: Ditto.
9307 * nto-procfs.c: Ditto.
9308 * ppc-sysv-tdep.c: Ditto.
9310 * remote-mips.c: Ditto.
9312 * rs6000-nat.c: Ditto.
9313 * rs6000-tdep.c: Ditto.
9317 * xml-support.c: Ditto.
9318 * mi/mi-cmd-break.c: Ditto.
9319 * mi/mi-cmd-var.c: Ditto.
9320 * mi/mi-interp.c: Ditto.
9321 * mi/mi-main.c: Ditto.
9323 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
9325 * remote-sim.c (gdbsim_store_register): Update API to
9326 sim_store_register to check more error conditions.
9328 2011-01-10 Michael Snyder <msnyder@vmware.com>
9330 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9331 * nto-tdep.c: Ditto.
9332 * nto-tdep.h: Ditto.
9333 * objc-exp.y: Ditto.
9334 * objc-lang.c: Ditto.
9335 * objfiles.c: Ditto.
9336 * objfiles.h: Ditto.
9337 * observer.c: Ditto.
9338 * opencl-lang.c: Ditto.
9341 * parser-defs.h: Ditto.
9344 * posix-hdep.c: Ditto.
9345 * ppcbug-rom.c: Ditto.
9346 * ppc-linux-nat.c: Ditto.
9347 * ppc-linux-tdep.c: Ditto.
9348 * ppc-linux-tdep.h: Ditto.
9349 * ppcnbsd-tdep.c: Ditto.
9350 * ppcobsd-tdep.c: Ditto.
9351 * ppcobsd-tdep.h: Ditto.
9352 * ppc-sysv-tdep.c: Ditto.
9353 * ppc-tdep.h: Ditto.
9354 * printcmd.c: Ditto.
9355 * proc-abi.c: Ditto.
9356 * proc-flags.c: Ditto.
9358 * proc-utils.h: Ditto.
9359 * progspace.h: Ditto.
9360 * prologue-value.c: Ditto.
9361 * prologue-value.h: Ditto.
9362 * psympriv.h: Ditto.
9364 * p-typeprint.c: Ditto.
9365 * p-valprint.c: Ditto.
9366 * ravenscar-sparc-thread.c: Ditto.
9367 * ravenscar-thread.c: Ditto.
9368 * ravenscar-thread.h: Ditto.
9370 * regcache.c: Ditto.
9371 * regcache.h: Ditto.
9373 * remote-fileio.c: Ditto.
9374 * remote-fileio.h: Ditto.
9376 * remote-m32r-sdi.c: Ditto.
9377 * remote-mips.c: Ditto.
9378 * remote-sim.c: Ditto.
9379 * rs6000-aix-tdep.c: Ditto.
9380 * rs6000-nat.c: Ditto.
9381 * rs6000-tdep.c: Ditto.
9383 2011-01-10 Michael Snyder <msnyder@vmware.com>
9385 * charset.c (validate): Internationalization.
9386 * coffread.c (read_one_sym): Ditto.
9387 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9388 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9389 * inflow.c (new_tty): Ditto.
9390 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9391 * m32c-tdep.c (m32c_return_value): Ditto.
9392 * mep-tdep.c (mep_store_return_value): Ditto.
9393 * score-tdep.c (score7_fetch_insn): Ditto.
9394 * ser-mingw.c (pipe_windows_open): Ditto.
9395 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9396 * spu-tdep.c (spu_register_type): Ditto.
9397 * tracepoint.c (trace_find_command): Ditto.
9398 * valarith.c (value_pos): Ditto.
9400 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9402 * ada-valprint.c (printstr): Minor comment reformatting.
9404 2011-01-08 Michael Snyder <msnyder@vmware.com>
9406 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9409 2011-01-08 Michael Snyder <msnyder@vmware.com>
9411 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9412 * hppa-hpux-tdep.c: Ditto.
9413 * hppa-linux-nat.c: Ditto.
9414 * hppa-linux-tdep.c: Ditto.
9415 * hppanbsd-tdep.c: Ditto.
9416 * hppa-tdep.c: Ditto.
9417 * hppa-tdep.h: Ditto.
9418 * hpux-thread.c: Ditto.
9419 * i386-cygwin-tdep.c: Ditto.
9420 * i386-darwin-nat.c: Ditto.
9421 * i386gnu-nat.c: Ditto.
9422 * i386-linux-nat.c: Ditto.
9423 * i386-linux-tdep.c: Ditto.
9424 * i386-nat.c: Ditto.
9425 * i386-nat.h: Ditto.
9426 * i386nbsd-tdep.c: Ditto.
9427 * i386-sol2-nat.c: Ditto.
9428 * i386-stub.c: Ditto.
9429 * i386-tdep.c: Ditto.
9430 * i386-tdep.h: Ditto.
9431 * i387-tdep.c: Ditto.
9432 * ia64-linux-nat.c: Ditto.
9433 * ia64-linux-tdep.c: Ditto.
9434 * ia64-tdep.c: Ditto.
9438 * inferior.c: Ditto.
9439 * inferior.h: Ditto.
9445 * iq2000-tdep.c: Ditto.
9446 * irix5-nat.c: Ditto.
9452 * jv-typeprint.c: Ditto.
9453 * jv-valprint.c: Ditto.
9454 * language.c: Ditto.
9455 * language.h: Ditto.
9456 * linespec.c: Ditto.
9457 * linux-fork.c: Ditto.
9458 * linux-nat.c: Ditto.
9459 * linux-thread-db.c: Ditto.
9460 * lm32-tdep.c: Ditto.
9462 2011-01-08 Michael Snyder <msnyder@vmware.com>
9464 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9466 * m2-typeprint.c: Ditto.
9467 * m2-valprint.c: Ditto.
9468 * m32c-tdep.c: Ditto.
9469 * m32r-linux-nat.c: Ditto.
9470 * m32r-rom.c: Ditto.
9471 * m32r-tdep.c: Ditto.
9472 * m32r-tdep.h: Ditto.
9473 * m68hc11-tdep.c: Ditto.
9474 * m58klinux-nat.c: Ditto.
9475 * m68k-tdep.c: Ditto.
9476 * m88k-tdep.c: Ditto.
9477 * m88k-tdep.h: Ditto.
9478 * machoread.c: Ditto.
9479 * macrocmd.c: Ditto.
9480 * macroexp.c: Ditto.
9481 * macrotab.c: Ditto.
9484 * mdebugread.c: Ditto.
9485 * mdebugread.h: Ditto.
9488 * memory-map.h: Ditto.
9489 * mep-tdep.c: Ditto.
9490 * microblaze-rom.c: Ditto.
9491 * microblaze-tdep.c: Ditto.
9493 * mips-irix-tdep.c: Ditto.
9494 * mips-linux-nat.c: Ditto.
9495 * mips-linux-tdep.c: Ditto.
9496 * mips-linux-tdep.h: Ditto.
9497 * mipsnbsd-nat.c: Ditto.
9498 * mipsnbsd-tdep.c: Ditto.
9499 * mipsread.c: Ditto.
9500 * mips-tdep.c: Ditto.
9501 * mips-tdep.h: Ditto.
9502 * mn10300-linux-tdep.c: Ditto.
9503 * mn10300-tdep.c: Ditto.
9504 * mn10300-tdep.h: Ditto.
9507 * moxie-tdep.c: Ditto.
9508 * moxie-tdep.h: Ditto.
9511 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9513 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9515 2011-01-08 Robert Millan <rmh@gnu.org>
9517 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9519 2011-01-07 Michael Snyder <msnyder@vmware.com>
9521 * charset.c (_initialize_charset): Fix typo in string.
9523 2011-01-07 Michael Snyder <msnyder@vmware.com>
9525 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9527 * tui/tui-layout.c (tui_set_layout_for_display_command):
9528 Split line so that operator goes to beginning of line.
9529 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9530 assignment out of if statement.
9532 2011-01-07 Michael Snyder <msnyder@vmware.com>
9534 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9535 * ada-lang.h: Ditto.
9536 * ada-tasks.c: Ditto.
9537 * ada-valprint.c: Ditto.
9538 * aix-threads.c: Ditto.
9539 * alpha-linux-nat.c: Ditto.
9540 * alpha-linux-tdep.c: Ditto.
9541 * alpha-mdebug-tdep.c: Ditto.
9542 * alpha-nat.c: Ditto.
9543 * alpha-osf1-tdep.c: Ditto.
9544 * alpha-tdep.c: Ditto.
9545 * alphabsd-nat.c: Ditto.
9546 * alphabsd-tdep.c: Ditto.
9547 * amd64-darwin-tdep.c: Ditto.
9548 * amd64-linux-nat.c: Ditto.
9549 * amd64-linux-tdep.c: Ditto.
9550 * amd64-sol2-tdep.c: Ditto.
9551 * amd64-tdep.c: Ditto.
9552 * amd64-fbsd-tdep.c: Ditto.
9553 * amd64-nbsd-tdep.c: Ditto.
9554 * amd64-obsd-tdep.c: Ditto.
9555 * amd64-linux-nat.c: Ditto.
9556 * amd64-linux-tdep.c: Ditto.
9557 * arm-tdep.c: Ditto.
9558 * arm-tdep.h: Ditto.
9559 * armnbsd-nat.c: Ditto.
9560 * avr-tdep.c: Ditto.
9561 * bfin-tdep.c: Ditto.
9563 * c-typeprintc: Ditto.
9564 * c-valprint.c: Ditto.
9565 * coff-pe-read.h: Ditto.
9566 * coffreead.c: Ditto.
9567 * cris-tdep.c: Ditto.
9569 * darwin-nat-info.c: Ditto.
9570 * darwin-nat.c: Ditto.
9571 * dbug-rom.c: Ditto.
9575 * dec-thread.c: Ditto.
9577 * demangle.c: Ditto.
9578 * dicos-tdep.c: Ditto.
9579 * dictionary.c: Ditto.
9580 * dictionary.h: Ditto.
9581 * dink32-rom.c: Ditto.
9583 * doublest.c: Ditto.
9585 * dummy-frame.c: Ditto.
9586 * dwarf2-frame.c: Ditto.
9587 * dwarf2expr.c: Ditto.
9588 * dwarf2loc.c: Ditto.
9589 * dwarf2read.c: Ditto.
9593 * event-top.h: Ditto.
9594 * exceptions.c: Ditto.
9595 * exceptions.h: Ditto.
9597 * expprint.c: Ditto.
9598 * expression.h: Ditto.
9602 * f-typeprint.c: Ditto.
9603 * f-valprint.c: Ditto.
9604 * fbsd-nat.c: Ditto.
9606 * fork-child.c: Ditto.
9609 * frv-linux-tdep.c: Ditto.
9610 * frv-tdep.c: Ditto.
9612 * gdb-stabs.h: Ditto.
9613 * gdb_assert.h: Ditto.
9614 * gdb_string.h: Ditto.
9615 * gdb_thread_db.h: Ditto.
9616 * gdb_wait.h: Ditto.
9617 * gdbarch.sh: Ditto.
9619 * gdbthread.h: Ditto.
9620 * gdbtypes.c: Ditto.
9621 * gdbtypes.h: Ditto.
9624 * gnu-v2-abi.c: Ditto.
9625 * gnu-v3-abi.c: Ditto.
9626 * go32-nat.c: Ditto.
9627 * gdbarch.c: Regenerate.
9628 * gdbarch.h: Regenerate.
9630 2011-01-07 Michael Snyder <msnyder@vmware.com>
9632 * ax-gdb.c: Adjust some long output strings.
9633 * breakpoint.c: Ditto.
9638 * linux-nat.c: Ditto.
9639 * solib-pa64.c: Ditto.
9640 * solib-som.c: Ditto.
9642 2011-01-06 Tom Tromey <tromey@redhat.com>
9646 * python/python.c (GdbMethods): Add "newest_frame" method.
9647 * python/python-internal.h (gdbpy_newest_frame): Declare.
9648 * python/py-frame.c (gdbpy_newest_frame): New function.
9650 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9652 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9653 * jit.c (jit_debug): New variable.
9654 (show_jit_debug): New function.
9655 (struct target_buffer): Use ULONGEST.
9656 (bfd_open_from_target_memory): Likewise.
9657 (jit_register_code, jit_inferior_init): Add debug output.
9658 (_initialize_jit): Register "debug jit" command.
9660 2011-01-06 Tom Tromey <tromey@redhat.com>
9662 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9663 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9666 2011-01-06 Tom Tromey <tromey@redhat.com>
9668 * python/py-frame.c (frapy_block): Use get_frame_block.
9670 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9672 Do not stop on SIGPRIO signals by default
9673 * infrun.c (_initialize_infrun): Unset signal_stop and
9674 signal_print for TARGET_SIGNAL_PRIO.
9676 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9678 * ada-tasks.c: Fix style violation in comment.
9680 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9682 * linespec.c (decode_compound, find_method): Remove trailing \n
9683 at end of error string.
9684 * solib-irix.c (irix_current_sos): Likewise.
9685 * varobj.c (uninstall_variable): Likewise.
9687 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9689 * copyright.py: New script.
9690 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9691 Launch emacs without exec'ing. Call copyright.py afterwards.
9693 2011-01-05 Michael Snyder <msnyder@vmware.com>
9695 * addrmap.c: Shorten lines of >= 80 columns.
9696 * arch-utils.c: Ditto.
9697 * arch-utils.h: Ditto.
9699 * ax-general.c: Ditto.
9701 * blockframe.c: Ditto.
9702 * breakpoint.c: Ditto.
9703 * buildsym.c: Ditto.
9705 * c-typeprint.c: Ditto.
9707 * coffread.c: Ditto.
9711 * cp-namespace.c: Ditto.
9712 * cp-support.c: Ditto.
9713 * dbug-rom.c: Ditto.
9718 * dictionary.c: Ditto.
9720 * doublest.c: Ditto.
9721 * dwarf2-frame.c: Ditto.
9722 * dwarf2expr.c: Ditto.
9723 * dwarf2loc.c: Ditto.
9724 * dwarf2read.c: Ditto.
9727 * event-loop.c: Ditto.
9728 * event-loop.h: Ditto.
9729 * exceptions.h: Ditto.
9731 * expprint.c: Ditto.
9732 * expression.h: Ditto.
9734 * f-valprint.c: Ditto.
9736 * frame-base.c: Ditto.
9737 * frame-unwind.c: Ditto.
9738 * frame-unwind.h: Ditto.
9742 * gdb-stabs.h: Ditto.
9743 * gdb_assert.h: Ditto.
9744 * gdb_dirent.h: Ditto.
9745 * gdb_obstack.h: Ditto.
9747 * gdbtypes.c: Ditto.
9748 * gdbtypes.h: Ditto.
9749 * inf-ttrace.c: Ditto.
9754 * inline-frame.h: Ditto.
9755 * language.c: Ditto.
9756 * language.h: Ditto.
9757 * libunwind-frame.c: Ditto.
9758 * libunwind-frame.h: Ditto.
9759 * linespec.c: Ditto.
9760 * linux-nat.c: Ditto.
9761 * linux-nat.h: Ditto.
9762 * linux-thread-db.c: Ditto.
9763 * machoread.c: Ditto.
9764 * macroexp.c: Ditto.
9765 * macrotab.c: Ditto.
9768 * mdebugread.c: Ditto.
9773 * objfiles.c: Ditto.
9774 * objfiles.h: Ditto.
9776 * p-typeprint.c: Ditto.
9777 * p-valprint.c: Ditto.
9779 * printcmd.c: Ditto.
9780 * proc-events.c: Ditto.
9782 * progspace.c: Ditto.
9783 * progspace.h: Ditto.
9784 * psympriv.h: Ditto.
9787 * regcache.c: Ditto.
9788 * regcache.h: Ditto.
9789 * remote-fileio.c: Ditto.
9791 * ser-mingw.c: Ditto.
9793 * ser-unix.c: Ditto.
9796 * solib-frv.c: Ditto.
9797 * solib-irix.c: Ditto.
9798 * solib-osf.c: Ditto.
9799 * solib-pa64.c: Ditto.
9800 * solib-som.c: Ditto.
9801 * solib-sunos.c: Ditto.
9802 * solib-svr4.c: Ditto.
9803 * solib-target.c: Ditto.
9807 * stabsread.c: Ditto.
9808 * stabsread.c: Ditto.
9811 * symfile-mem.c: Ditto.
9817 * target-descriptions.c: Ditto.
9818 * target-memory.c: Ditto.
9821 * terminal.h: Ditto.
9824 * tracepoint.c: Ditto.
9825 * tracepoint.h: Ditto.
9829 * user-regs.c: Ditto.
9830 * user-regs.h: Ditto.
9832 * valarith.c: Ditto.
9834 * valprint.c: Ditto.
9835 * valprint.h: Ditto.
9840 * xcoffread.c: Ditto.
9841 * xcoffsolib.c: Ditto.
9842 * xcoffsolib.h: Ditto.
9843 * xml-syscall.c: Ditto.
9844 * xml-tdesc.c: Ditto.
9846 2011-01-05 Michael Snyder <msnyder@vmware.com>
9848 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9849 * cli/cli-decode.c: Ditto.
9850 * cli/cli-dump.c: Ditto.
9851 * cli/cli-logging.c: Ditto.
9852 * cli/cli-script.c: Ditto.
9853 * cli/cli-setshow.c: Ditto.
9854 * common/signals.c: Ditto.
9855 * mi/mi-cmd-break.c: Ditto.
9856 * mi/mi-cmd-disas.c: Ditto.
9857 * mi/mi-cmd-stack.c: Ditto.
9858 * mi/mi-cmd-var.c: Ditto.
9859 * mi/mi-cmds.c: Ditto.
9860 * mi/mi-common.h: Ditto.
9861 * mi/mi-console.c: Ditto.
9862 * mi/mi-interp.c: Ditto.
9863 * mi/mi-main.c: Ditto.
9864 * osf-share/cma_attr.c: Ditto.
9865 * osf-share/cma_deb_core.h: Ditto.
9866 * osf-share/cma_debug_client.h: Ditto.
9867 * osf-share/cma_handle.h: Ditto.
9868 * osf-share/cma_mutex.h: Ditto.
9869 * osf-share/cma_stack_int.h: Ditto.
9870 * osf-share/cma_tcb_defs.h: Ditto.
9871 * python/py-auto-load.c: Ditto.
9872 * python/py-breakpoint.c: Ditto.
9873 * python/py-cmd.c: Ditto.
9874 * python/py-frame.c: Ditto.
9875 * python/py-objfile.c: Ditto.
9876 * python/py-param.c: Ditto.
9877 * python/py-progspace.c: Ditto.
9878 * python/py-symbol.c: Ditto.
9879 * python/py-value.c: Ditto.
9880 * python/python-internal.h: Ditto.
9881 * python/python.c: Ditto.
9882 * tui/tui-data.c: Ditto.
9883 * tui/tui-disasm.c: Ditto.
9884 * tui/tui-hooks.c: Ditto.
9885 * tui/tui-io.c: Ditto.
9886 * tui/tui-layout.c: Ditto.
9887 * tui/tui-regs.c: Ditto.
9888 * tui/tui-source.c: Ditto.
9889 * tui/tui-stack.c: Ditto.
9890 * tui/tui-win.c: Ditto.
9891 * tui/tui-windata.c: Ditto.
9892 * tui/tui-winsource.c: Ditto.
9894 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9896 * configure.ac, gdb.1: Copyright year update.
9898 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9900 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9901 this_pc_in_block, morestack_msym and morestack_name. Check for
9902 "__morestack" minimal symbol there.
9904 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9906 * symfile.c (find_sym_fns): Add call to dont_repeat.
9908 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9910 Copyright year update in most files (performed by copyright.sh).
9912 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9914 * top.c (print_gdb_version): Update copyright year in version output.
9916 For older changes see ChangeLog-2010.
9922 version-control: never