1 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
5 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
7 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
8 (struct i386_debug_reg_state): New.
9 (i386_init_dregs): New.
11 (i386_cleanup_dregs): Use i386_init_dregs.
12 (i386_show_dr): Add state parameter and adjust.
13 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
15 (i386_remove_aligned_watchpoint): Likewise.
16 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
17 (i386_update_inferior_debug_regs): New.
18 (i386_insert_watchpoint): Work on a local mirror of the debug
19 registers, and only update the inferior on success.
20 (i386_remove_watchpoint): Ditto.
21 (i386_region_ok_for_watchpoint): Adjust.
22 (i386_stopped_data_address): Adjust.
23 (i386_insert_hw_breakpoint): Adjust.
24 (i386_remove_hw_breakpoint): Adjust.
26 2011-07-22 Tom Tromey <tromey@redhat.com>
28 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
29 from amd64_pseudo_register_read. Change arguments. Call
30 mark_value_bytes_unavailable when needed.
31 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
32 set_gdbarch_pseudo_register_read.
33 * sentinel-frame.c (sentinel_frame_prev_register): Use
34 regcache_cooked_read_value.
35 * regcache.h (regcache_cooked_read_value): Declare.
36 * regcache.c (regcache_cooked_read_value): New function.
37 (regcache_cooked_read): Call
38 gdbarch_pseudo_register_read_value if available.
39 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
40 (i386_pseudo_register_read): Remove.
41 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
42 i386_pseudo_register_read. Change arguments. Call
43 mark_value_bytes_unavailable when needed.
44 (i386_pseudo_register_read_value): New function.
45 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
46 not set_gdbarch_pseudo_register_read.
47 * gdbarch.sh (pseudo_register_read_value): New method.
48 * gdbarch.c, gdbarch.h: Rebuild.
49 * findvar.c (value_from_register): Call get_frame_register_value.
51 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
53 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
55 (display_gdb_prompt): Likewise.
56 (change_annotation_level): Likewise.
57 (push_prompt): Likewise.
58 (pop_prompt): Likewise.
59 (handle_stop_sig): Use get_prompt with a level.
60 * top.c (command_loop): Use get_prompt with a level.
61 (set_async_annotation_level): Use set_prompt with a level.
62 (get_prefix): New function.
66 (get_prompt): Accept a level argument.
67 (set_prompt): Accept a level argument. Free old prompts. Set
68 new_async_prompt if level is 0.
69 (init_main): Use set_prompt with a level. Do not set
71 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
72 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
73 Modify set_prompt, get_prompt to account for levels.
74 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
76 * python/python.c (before_prompt_hook): Use set_prompt.
78 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
80 * defs.h: Add guard against inclusion in gdbserver.
81 (struct ptid, ptid_t): Move to common/ptid.h.
82 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
83 xsnprintf, internal_error): Move to common/common-utils.h.
85 * gdb_assert.h: Move into common/ sub-directory.
86 * gdb_locale.h: Ditto.
87 * gdb_dirent.h: Ditto.
88 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
89 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
90 Move into common/ptid.h.
91 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
92 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
93 Change nomem to malloc_failure.
94 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
95 * utils.c (nomem): Rename to malloc_failure.
96 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
97 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
98 (gdb_buildargv): Change nomem to malloc_failure.
99 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
100 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
101 ptid_is_pid): Move into common/ptid.c.
102 (initialize_infrun): Delete initialization of null_ptid and
104 * linux-nat.c (linux_nat_xfer_osdata): Defer to
105 linux_common_xfer_osdata.
106 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
107 common/ptid.c and common/buffer.c.
108 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
109 common/ptid.h, common/buffer.h and common/linux-osdata.h.
110 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
111 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
113 * common/gdb_assert.h: New.
114 * common/gdb_dirent.h: New.
115 * common/gdb_locale.h: New.
116 * common/buffer.c: New.
117 * common/buffer.h: New.
118 * common/ptid.c: New.
119 * common/ptid.h: New.
120 * common/xml-utils.c: New.
121 * common/xml-utils.h: New.
122 * common/common-utils.c: New.
123 * common/common-utils.h: New.
124 * common/linux-osdata.c: New.
125 * common/linux-osdata.h: New.
126 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
127 * config/arm/linux.mh (NATDEPFILES): Ditto.
128 * config/i386/linux.mh (NATDEPFILES): Ditto.
129 * config/i386/linux64.mh (NATDEPFILES): Ditto.
130 * config/ia64/linux.mh (NATDEPFILES): Ditto.
131 * config/m32r/linux.mh (NATDEPFILES): Ditto.
132 * config/m68k/linux.mh (NATDEPFILES): Ditto.
133 * config/mips/linux.mh (NATDEPFILES): Ditto.
134 * config/pa/linux.mh (NATDEPFILES): Ditto.
135 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
136 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
137 * config/s390/s390.mh (NATDEPFILES): Ditto.
138 * config/sparc/linux.mh (NATDEPFILES): Ditto.
139 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
140 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
142 2011-07-21 Matt Rice <ratmice@gmail.com>
144 * NEWS: Add info macros and info definitions commands.
146 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
148 * NEWS: Document Python prompt substitution hook.
150 2011-07-18 Matt Rice <ratmice@gmail.com>
153 * macrotab.h (macro_callback_fn): Add new arguments to callback.
154 * macrotab.c (foreach_macro): Ditto.
155 (foreach_macro_in_scope): Ditto.
156 * macrocmd.c (print_macro_callback): New function.
157 (info_macro_command): Move some code to print_macro_definition.
158 (print_macro_definition): New function.
159 (print_one_macro): Add new arguments to callback.
160 (info_definitions_command): New function.
161 (info_macros_command): Ditto.
162 (_initialize_macrocmd): Add info macros and info definitions commands.
163 * symtab.c (add_macro_name): Add new arguments to callback.
165 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
166 Tom Tromey <tromey@redhat.com>
168 * top.c (set_prompt): Rewrite to free previous prompt, free
169 asynch_new_prompt and set both on new prompts.
170 * event-top.c (display_gdb_prompt): Add prompt substitution
172 * python/python.c (before_prompt_hook): New function.
174 2011-07-20 Matt Rice <ratmice@gmail.com>
176 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
177 arguments to store_unsigned_integer.
179 2011-07-20 Tom Tromey <tromey@redhat.com>
181 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
182 in some declaration-only cases.
184 2011-07-18 Tom Tromey <tromey@redhat.com>
187 * dwarf2read.c (dwarf2_section_info_def): New typedef.
188 (struct dwarf2_per_objfile) <types>: Change to a VEC.
189 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
190 <debug_type_section>: New field.
191 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
192 (load_cu): Use appropriate section.
193 (create_signatured_type_table_from_index): Add 'section'
195 (dwarf2_read_index): Only allow a single .debug_types section.
196 (dw2_get_file_names): Use appropriate section.
197 (read_type_comp_unit_head): Add 'section' argument.
198 (create_debug_types_hash_table): Loop over all .debug_types
200 (init_cu_die_reader): Use appropriate section.
201 (process_psymtab_comp_unit, load_partial_comp_unit)
202 (load_full_comp_unit, read_die_and_children, find_partial_die)
203 (lookup_die_type, determine_prefix, follow_die_offset): Update.
204 (lookup_signatured_type_at_offset): Add 'section' argument.
205 (read_signatured_type_at_offset): Add 'sect' argument.
206 (read_signatured_type): Use appropriate section.
207 (set_die_type, get_die_type_at_offset): Update.
208 (dwarf2_per_objfile_free): Free all .debug_types sections, and
210 (write_psymtabs_to_index): Don't allow index with more than one
211 .debug_types section.
213 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
215 Fix crash if referenced CU is aged out.
216 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
218 (indirect_pieced_value): New variable back_to, use to for xfree of
220 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
222 * dwarf2read.c (dwarf2_find_base_address): New prototype.
223 (load_cu): New function from ...
224 (dw2_do_instantiate_symtab): ... the code here ...
225 (process_full_comp_unit): ... and here.
226 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
229 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
234 2011-07-19 Gary Benson <gbenson@redhat.com>
236 * infrun.c (struct execution_control_state): New member
238 (clear_stop_func, fill_in_stop_func): New functions.
239 (handle_inferior_event): Call clear_stop_func rather than
240 manipulating the execution control state directly.
241 Call fill_in_stop_func lazily as required rather than
242 directly calling find_pc_partial_function in all cases.
244 2011-07-18 Tom Tromey <tromey@redhat.com>
246 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
247 checking for variable-sized array.
249 2011-07-18 Jean-Charles Delay <delay@adacore.com>
251 * varobj.h (varobj_languages): Add vlang_ada definition to the list
252 of supported languages.
253 * varobj.c: Add top definitions and basic implementation of the
254 following callbacks: ada_number_of_children, ada_name_of_variable,
255 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
256 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
257 (languages): Register Ada-specific callbacks.
258 (variable_language): Add the Ada case in the language setter switch.
260 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
262 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
264 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
267 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
268 (execute_stack_op): Use dwarf2_frame_ctx_funcs
269 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
270 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
271 get_frame_cfa, get_tls_address and dwarf_call via funcs.
272 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
273 (struct dwarf_expr_context_funcs): New, move here methods from ...
274 (struct dwarf_expr_context): ... here. New fields funcs.
275 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
276 (dwarf_expr_ctx_funcs): New.
277 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
278 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
279 (needs_frame_ctx_funcs): New.
280 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
282 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
284 * MAINTAINERS (Write After Approval): Add myself to the list.
286 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
288 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
289 that CIE pointer of an FDE really points to a CIE .
291 2011-07-15 Hui Zhu <teawater@gmail.com>
293 * remote.c (remote_get_trace_status): Add comments.
295 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
297 Code cleanup - constify struct lval_funcs.
298 * dwarf2loc.c (pieced_value_funcs): Make it const.
299 * infrun.c (siginfo_value_funcs): Likewise.
300 * opencl-lang.c (opencl_value_funcs): Likewise.
301 * valops.c (value_assign, value_ind): Make the funcs variable const.
302 * value.c (struct value): Make location.computed.funcs target const.
303 Rearrange the comments.
304 (allocate_computed_value): Make the funcs parameter target const.
305 (value_computed_funcs): Return the funcs target const.
306 (value_free, value_copy, set_value_component_location): Make the funcs
308 * value.h (allocate_computed_value): Make the funcs parameter target
310 (value_computed_funcs): Return the funcs target const.
311 * windows-tdep.c (tlb_value_funcs): Make it const.
313 2011-07-14 Hui Zhu <teawater@gmail.com>
315 * remote.c (remote_get_trace_status): Initialize p.
317 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
320 * remote.c (remote_get_trace_status): New variable ex. Put
321 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
323 2011-07-13 Tom Tromey <tromey@redhat.com>
325 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
326 value_from_contents for final conversion.
328 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
331 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
332 Indent prototypes so they do not get into tags.
334 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
336 Code cleanup making also optimized out values lazy.
337 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
338 allocate_optimized_out_value. Twice.
339 (loclist_read_variable) Use allocate_optimized_out_value. Once.
340 * findvar.c (read_var_value): Likewise.
341 * value.c (allocate_optimized_out_value): New function.
342 * value.h (allocate_optimized_out_value): New declaration.
344 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
346 Fix occasional crash of CTRL-C during DWARF read in.
347 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
349 2011-07-11 Tom Tromey <tromey@redhat.com>
351 * regcache.c (struct regcache_descr): Fix typo.
352 * i387-tdep.c (i387_supply_xsave): Fix typo.
354 2011-07-11 Tom Tromey <tromey@redhat.com>
356 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
357 (read_file_scope, read_type_unit_scope): Use it.
359 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
361 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
364 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
367 * python/python.c: Set gdbpy_should_print_stack default to off.
368 (set_python): Deprecate maint set python print-stack to
370 (_initialize_python): Deprecate maint set/show python print-stack.
371 Add new prefix command, python. Add new setting, print-backtrace.
372 * NEWS: Document set python print-stack. Document default change.
374 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
376 * python/py-inferior.c (infpy_dealloc): New function.
377 (inferior_to_inferior_object): Return a new object, or a
378 new reference to the existing object.
379 (find_thread_object): Cleanup references to inferior.
380 (delete_thread_object): Ditto.
381 * python/py-infthread.c (create_thread_object): Do not increment
382 inferior reference count.
384 2011-07-08 Tom Tromey <tromey@redhat.com>
386 * dwarf2loc.c (locexpr_regname): New function.
387 (locexpr_describe_location_piece): Use it.
388 (disassemble_dwarf_expression): Add per_cu argument. Use
390 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
391 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
393 (locexpr_describe_location_1): Add per_cu argument.
394 (locexpr_describe_location): Update.
395 (loclist_describe_location): Update.
397 2011-07-08 Tom Tromey <tromey@redhat.com>
399 * dwarf2expr.c (execute_stack_op): Add QUIT.
401 2011-07-07 Hui Zhu <teawater@gmail.com>
404 2011-07-06 Hui Zhu <teawater@gmail.com>
405 * remote.c (remote_start_remote): Add TRY_CATCH for
406 remote_get_trace_status.
407 * tracepoint.c (disconnect_tracing): Ditto.
409 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
411 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
412 variables as signed, not unsigned.
414 2011-07-06 Joel Brobecker <brobecker@adacore.com>
416 * jit.c (jit_inferior_init): Reformat forward declaration.
418 2011-07-06 Matt Rice <ratmice@gmail.com>
420 * MAINTAINERS (Write After Approval): Add myself to the list.
422 2011-07-06 Hui Zhu <teawater@gmail.com>
424 * remote.c (remote_start_remote): Add TRY_CATCH for
425 remote_get_trace_status.
426 * tracepoint.c (disconnect_tracing): Ditto.
428 2011-07-05 Tom Tromey <tromey@redhat.com>
430 * symtab.c (operator_chars): Now static.
431 * linespec.c (operator_chars): Don't declare.
433 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
435 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
437 2011-07-05 Tom Tromey <tromey@redhat.com>
439 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
440 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
441 (TYPE_CPLUS_REALLY_JAVA): New macro.
442 * dwarf2read.c (process_structure_scope): Set
443 TYPE_CPLUS_REALLY_JAVA.
445 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
447 * ada-lang.c: Fix typos.
448 * amd64-tdep.c: Likewise.
449 * breakpoint.c: Likewise.
450 * cli/cli-decode.c: Likewise.
451 * findcmd.c: Likewise.
452 * inline-frame.c: Likewise.
453 * mi/mi-main.c: Likewise.
454 * minsyms.c: Likewise.
455 * monitor.c: Likewise.
456 * monitor.h: Likewise.
457 * prologue-value.c: Likewise.
458 * reverse.c: Likewise.
459 * s390-tdep.c: Likewise.
461 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
463 * jit.c (jit_inferior_init): Forward declare.
464 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
466 2011-07-04 Joel Brobecker <brobecker@adacore.com>
468 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
470 2011-07-04 Tristan Gingold <gingold@adacore.com>
472 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
473 (tcb_fieldno): Add activation_link field.
474 (get_known_tasks_addr): Moved and rewritten.
475 (get_tcb_types_info): Set activation_link field.
476 (read_known_tasks_array): Add parameter. Rewritten.
477 (read_known_tasks_list): New function.
478 (read_known_tasks): New function.
479 (ada_build_task_list): Call read_known_tasks instead of
480 read_known_tasks_array.
481 * ravenscar-thread.c: Add first_task_name constant.
482 (has_ravenscar_runtime): Check for task list too.
484 2011-07-04 Tristan Gingold <gingold@adacore.com>
486 * ada-tasks.c: Renames fieldno to actb_fieldno.
487 (ada_get_task_number): Indentation.
488 (get_tcb_types_info): Remove all parameters. Write directly
490 (ptid_from_atcb_common): Adjust.
493 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
495 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
497 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
499 * ui-out.c (ui_out_field_core_addr): Mention that the function
500 description is in the header file.
501 * ui-out.h (ui_out_field_core_addr): Document function.
503 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
505 * ui-out.c (ui_out_get_field_separator): Remove unused function.
506 * ui-out.h (ui_out_get_field_separator): Remove prototype.
508 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
510 * symtab.c (expand_line_sal): Remove empty line.
512 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
514 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
515 same way as ELFOSABI_NONE.
516 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
518 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
520 * breakpoint.c: Fix typos in comments.
521 * linespec.c: Likewise.
522 * symtab.c: Likewise.
524 2011-07-04 Joel Brobecker <brobecker@adacore.com>
526 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
527 section in separate object files.
529 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
531 Fix false GCC warning.
532 * linespec.c (decode_line_1): Initialize values.
534 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
536 * linespec.c (find_method): Accept the function type automatically only
537 if it was specified with parameter types.
539 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
541 Stop on first linespec terminator instead of eating what we can.
542 * linespec.c (is_linespec_boundary): New function.
543 (name_end): Remove function.
544 (keep_name_info): New parameter on_boundary, replace the body.
545 (decode_line_1): Provide the parameter to keep_name_info.
546 (decode_compound): Likewise. Drop the trailing java return type
549 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
551 Fall back linespec to minimal symbols.
552 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
553 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
554 (find_method, symbol_found): Change error to cplusplus_error.
556 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
558 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
560 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
561 Tom Tromey <tromey@redhat.com>
563 * dwarf2read.c (check_physname): New variable.
564 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
565 (show_check_physname): New function.
566 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
568 2011-07-01 Joel Brobecker <brobecker@adacore.com>
570 * machoread.c (macho_symfile_read): Delete OBE comment.
572 2011-07-01 Joel Brobecker <brobecker@adacore.com>
574 * machoread.c (struct macho_oso_data): Delete.
575 (current_oso): Delete.
576 (macho_relocate_common_syms): New function, mostly extracted
578 (macho_add_oso_symfile): Call macho_relocate_common_syms.
579 Remove code that sets and unset current_oso.
580 (macho_symfile_relocate): Delete handling of common symbols,
581 now moved to macho_relocate_common_syms.
583 2011-07-01 Joel Brobecker <brobecker@adacore.com>
585 * darwin-nat.c (darwin_ptrace): Add documentation.
586 Set errno to zero before calling ptrace. If ptrace returns
587 -1 and errno is zero, then change then return zero.
588 (darwin_kill_inferior): Issue a warning instead of triggering
589 a failed assertion when the PT_KILL ptrace operations returned
592 2011-07-01 Joel Brobecker <brobecker@adacore.com>
594 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
595 only when inf->private->no_ptrace.
597 2011-07-01 Joel Brobecker <brobecker@adacore.com>
599 * ada-lang.c (print_it_exception): Print temporary catchpoints
600 as "Temporary catchpoint".
601 (print_mention_exception): Likewise.
603 2011-07-01 Tom Tromey <tromey@redhat.com>
605 * jv-lang.c (java_language_defn): Use java_printchar,
607 (java_get_encoding): New function.
608 (java_emit_char): Use generic_emit_char.
609 (java_printchar): New function.
610 (java_printstr): Likewise.
612 2011-07-01 Joel Brobecker <brobecker@adacore.com>
614 * ada-typeprint.c (print_record_type): If unable to decode
615 the name of the parent type, use the encoded name.
617 2011-07-01 Jean-Charles Delay <delay@adacore.com>
619 * ada-typeprint.c (ada_print_type): Fix both PAD type and
620 pointer to constrained packed array type output.
621 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
624 2011-07-01 Jean-Charles Delay <delay@adacore.com>
626 * ada-typeprint.c (print_array_type): removed if condition on show
627 being negative for bounds printing.
629 2011-07-01 Joel Brobecker <brobecker@adacore.com>
631 * ada-lang.c (ada_identical_enum_types_p): New function.
632 (symbols_are_identical_enums): New function.
633 (remove_extra_symbols): Do nothing if NSYMS < 2.
634 Use symbols_are_identical_enums.
636 2011-07-01 Joel Brobecker <brobecker@adacore.com>
638 * ada-valprint.c (ada_value_print): Handle typedefs.
640 2011-07-01 Joel Brobecker <brobecker@adacore.com>
642 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
644 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
646 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
647 (decode_constrained_packed_array): Likewise.
648 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
650 2011-07-01 Joel Brobecker <brobecker@adacore.com>
652 * ada-exp.y (convert_char_literal): Handle typedef types.
654 2011-07-01 Joel Brobecker <brobecker@adacore.com>
656 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
658 2011-06-30 Tom Tromey <tromey@redhat.com>
660 * varobj.c (varobj_create): Call do_cleanups on early exit path.
661 * valops.c (find_overload_match): Call do_cleanups on early exit
663 * solib.c (solib_find): Call do_cleanups on early exit path.
665 2011-06-30 Tom Tromey <tromey@redhat.com>
667 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
668 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
669 return paths. Defer final do_cleanups until last return.
670 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
673 2011-06-30 Tom Tromey <tromey@redhat.com>
675 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
677 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
679 * MAINTAINERS (Write After Approval): Add myself to the list.
681 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
683 Disable epilogue unwinders on recent GCCs.
684 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
685 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
686 * dwarf2read.c (process_full_comp_unit): Initialize
687 EPILOGUE_UNWIND_VALID.
688 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
689 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
690 * symtab.h (struct symtab): New field epilogue_unwind_valid.
692 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
694 Code cleanup - reformatting.
695 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
696 (producer_is_gcc_ge_4): ... here, change the return value.
697 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
700 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
702 Fix non-only rename list for Fortran modules import.
703 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
704 cp_add_using_directive caller.
705 (cp_add_using_directive): New parameter excludes, describe it. New
706 variables ix and param. Compare if also excludes match. Allocate NEW
707 with variable size, initialize EXCLUDES there.
708 (cp_lookup_symbol_imports): New variable excludep, test
709 current->EXCLUDES with it.
710 * cp-support.h: Include vec.h.
711 (struct using_direct): New field excludes, describe it.
712 (DEF_VEC_P (const_char_ptr)): New.
713 (cp_add_using_directive): New parameter excludes.
714 * defs.h (const_char_ptr): New typedef.
715 * dwarf2read.c (read_import_statement): New variables child_die,
716 excludes and cleanups, read in excludes.
717 (read_namespace): Adjust the cp_add_using_directive caller.
719 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
723 negative comparisons.
725 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
727 * mi/mi-main.c (mi_cmd_list_features): Emit
728 breakpoint-notifications.
730 2011-06-29 Tom Tromey <tromey@redhat.com>
733 * valprint.h (generic_emit_char, generic_printstr): Declare.
734 * valprint.c (wchar_printable, append_string_as_wide)
735 (print_wchar): Move from c-lang.c.
736 (generic_emit_char): New function; mostly taken from c_emit_char.
737 (generic_printstr): New function; mostly taken from c_printstr.
738 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
739 represented as arrays.
740 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
742 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
743 identically to TYPE_CODE_INT.
744 * f-lang.c (f_get_encoding): New function.
745 (f_emit_char): Use generic_emit_char.
746 (f_printchar): Replace comment.
747 (f_printstr): Use generic_printstr.
748 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
749 "character" types specially.
750 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
752 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
754 (c_emit_char): Call generic_emit_char.
755 (c_printstr): Call generic_printstr.
757 2011-06-29 Gary Benson <gbenson@redhat.com>
759 * breakpoint.c (bpstat_what): Removed duplicated case.
761 2011-06-28 Tom Tromey <tromey@redhat.com>
763 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
765 2011-06-27 Tom Tromey <tromey@redhat.com>
767 * valops.c (find_overload_match): Call do_cleanups before early
769 * top.c (execute_command): Call do_cleanups before early return.
770 (command_loop): Likewise.
771 * stack.c (backtrace_command): Make a null cleanup early. Don't
772 conditionally call do_cleanups.
773 * python/py-value.c (TRY_CATCH): Move cleanup handling into
775 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
776 so cleanups are always run.
777 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
778 * findcmd.c (parse_find_args): Call do_cleanups on early return
780 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
781 Don't conditionally call do_cleanups.
782 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
785 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
787 * MAINTAINERS (Write After Approval): Use default email address.
789 2011-06-27 Joel Brobecker <brobecker@adacore.com>
791 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
793 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
795 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
796 saved_regs_mask and copied_regs_mask fields.
797 (sparc_record_save_insn): New prototype.
798 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
799 (sparc_record_save_insn): New function.
800 (sparc_analyze_prologue): Add head comment. Recognize store insns
801 of call-saved registers. Use OFFSET consistently. Recognize flat
802 frames and cache their settings.
803 (sparc32_skip_prologue): Handle flat frames.
804 (sparc_frame_cache): Add frame_offset to the base address.
805 (sparc32_frame_cache): Adjust to new frame description.
806 (sparc32_frame_prev_register): Likewise.
807 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
808 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
809 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
810 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
811 frame by calling sparc_record_save_insn.
812 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
813 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
814 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
816 2011-06-27 Tristan Gingold <gingold@adacore.com>
818 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
819 field by map_addr and map_len.
820 (dwarf2_read_section): Adjust for the new bfd_mmap api.
821 (munmap_section_buffer): Likewise.
823 2011-06-24 Tom Tromey <tromey@redhat.com>
825 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
826 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
827 * python/python.c (gdbpy_parameter): Make 'arg' const.
828 (execute_gdb_command): Likewise.
829 (gdbpy_decode_line): Likewise. Copy it.
830 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
831 (gdbpy_write): Make 'arg' const.
832 * python/py-type.c (typy_lookup_typename): Make 'type_name'
834 (gdbpy_lookup_type): Likewise.
835 * python/py-prettyprint.c (print_children): Make 'name' const.
836 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
837 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
839 * python/py-function.c (fnpy_init): Make 'name' const.
840 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
841 (gdbpy_string_to_argv): Make 'input' const.
842 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
844 * gdbtypes.h (lookup_typename): Update.
845 * gdbtypes.c (lookup_typename): Make 'name' const.
846 (lookup_struct): Likewise.
847 (lookup_union): Likewise.
848 (lookup_enum): Likewise.
850 2011-06-24 Tom Tromey <tromey@redhat.com>
852 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
853 gdb_thread_db.h. Move all common/ entries to be together.
854 (TAGS): Don't depend on DEPFILES.
856 2011-06-23 Yao Qi <yao@codesourcery.com>
858 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
859 * remote.c (remote_start_remote): ... here.
860 * monitor.c (monitor_open): ... here.
862 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
864 * gdbtypes.c (append_composite_type_field_aligned): Fix
865 calculation of bit position based on alignment.
867 2011-06-22 Pedro Alves <pedro@codesourcery.com>
869 * breakpoint.c (bpstat_stop_status): Call the check_status
870 breakpoint_ops method.
871 (print_one_breakpoint_location): Also print the condition for Ada
872 exception catchpoints.
873 (allocate_bp_location): New, factored out from
874 allocate_bp_location.
875 (allocate_bp_location): Adjust. Call the owner breakpoint's
876 allocate_location method, if there is one.
877 (free_bp_location): Call the locations's dtor method, if there is
879 (init_raw_breakpoint_without_location): New breakpoint_ops
881 (set_raw_breakpoint_without_location): Adjust.
882 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
883 (set_raw_breakpoint): Adjust.
884 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
885 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
886 re_set and check_status methods.
887 (init_catchpoint): Don't memset, initialize thread, addr_string
888 and enable_state. Pass the ops down to init_raw_breakpoint.
889 (install_catchpoint): Rename to ...
890 (install_breakpoint): ... this, and make extern.
891 (create_fork_vfork_event_catchpoint): Adjust.
892 (catch_exec_breakpoint_ops): Install NULL allocate_location,
893 re_set and check_status methods.
894 (create_syscall_event_catchpoint): Adjust.
895 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
896 (masked_watchpoint_breakpoint_ops): Install NULL
897 allocate_location, re_set and check_status methods.
898 (catch_exec_command_1): Adjust.
899 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
900 re_set and check_status methods.
901 (create_ada_exception_breakpoint): Rename to ...
902 (init_ada_exception_breakpoint): ... this. Add a struct
903 breakpoint parameter, and delete the exp_string, cond_string and
904 cond parameters. Use init_raw_breakpoint, and don't install or
905 mention the breakpoint yet. Don't clear breakpoint fields that
906 init_raw_breakpoint already clears.
907 (re_set_breakpoint): Delete, split into ...
908 (breakpoint_re_set_default, prepare_re_set_context): ... these new
910 (breakpoint_re_set_one): Call the breakpoint's
911 breakpoint_ops->re_set implementation, if there's one. Adjust.
912 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
913 (struct bp_location_ops): New type.
914 (struct bp_location): New field `ops'.
915 (struct breakpoint_ops): New `allocate_location', `re_set' and
916 `check_status' fields. Make `breakpoint_hit''s description match
918 (init_bp_location): Declare.
919 (breakpoint_re_set_default): Declare.
920 (create_ada_exception_breakpoint): Rename to ...
921 (init_ada_exception_breakpoint): ... this. Add a struct
922 breakpoint parameter, and delete the exp_string, cond_string and
924 (install_breakpoint): Declare.
925 * ada-lang.c: Include exceptions.h.
926 <Ada exceptions description>: Update.
927 (struct ada_catchpoint_location): New type.
928 (ada_catchpoint_location_dtor): New function.
929 (ada_catchpoint_location_ops): New global.
930 (ada_catchpoint): New type.
931 (create_excep_cond_exprs): New function.
932 (dtor_exception, allocate_location_exception, re_set_exception)
933 (should_stop_exception, check_status_exception): New functions.
934 (print_one_exception, print_mention_exception)
935 (print_recreate_exception): Adjust.
936 (dtor_catch_exception, allocate_location_catch_exception)
937 (re_set_catch_exception, check_status_catch_exception): New
939 (catch_exception_breakpoint_ops): Install them.
940 (dtor_catch_exception_unhandled)
941 (allocate_location_catch_exception_unhandled)
942 (re_set_catch_exception_unhandled)
943 (check_status_catch_exception_unhandled): New functions.
944 (catch_exception_unhandled_breakpoint_ops): Install them.
945 (dtor_catch_assert, allocate_location_catch_assert)
946 (re_set_catch_assert, check_status_catch_assert): New functions.
947 (catch_assert_breakpoint_ops): Install them.
948 (ada_exception_catchpoint_p): Delete.
949 (catch_ada_exception_command_split)
950 (ada_exception_catchpoint_cond_string): Rename exp_string
951 parameter to excep_string. Adjust.
952 (ada_parse_catchpoint_condition): Delete.
953 (ada_exception_sal): Rename the exp_string parameter to
954 excep_string. Delete the cond_string and cond parameters.
956 (ada_decode_exception_location): Rename the exp_string parameter
957 to excep_string. Delete the cond_string and cond parameters.
959 (create_ada_exception_catchpoint): New function.
960 (catch_ada_exception_command, ada_decode_assert_location)
961 (catch_assert_command): Adjust.
962 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
964 2011-06-22 Pedro Alves <pedro@codesourcery.com>
966 * ada-lang.c: Include arch-utils.h.
967 (ada_decode_exception_location): Make static.
968 (catch_ada_exception_command): Moved here from breakpoint.c.
969 (ada_decode_assert_location): Make static.
970 (catch_assert_command): Moved here from breakpoint.c.
971 (_initialize_ada_lang): Install the exception and assert
972 catchpoint commands here.
973 * ada-lang.h (ada_decode_exception_location)
974 (ada_decode_assert_location): Delete declarations.
975 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
977 (create_ada_exception_breakpoint): Make extern.
978 (catch_ada_exception_command, catch_assert_command): Moved to
980 (add_catch_command): Make extern.
981 (_initilize_breakpoint): Don't install the exception and assert
982 catchpoint commands here.
983 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
985 (add_catch_command, create_ada_exception_breakpoint): Declare.
987 2011-06-22 Pedro Alves <pedro@codesourcery.com>
989 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
990 the breakpoint to the breakpoint chain here.
991 (set_raw_breakpoint_without_location): Add the breakpoint to the
992 breakpoint chain here.
993 (init_raw_breakpoint): Adjust comments.
994 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
996 (init_catchpoint): Don't set the catchpoint's breakpoint number
998 (install_catchpoint): New function.
999 (create_fork_vfork_event_catchpoint)
1000 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1001 use install_catchpoint.
1003 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1005 * breakpoint.c (create_catchpoint_without_mention)
1006 (create_catchpoint): Delete.
1008 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1010 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1011 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1012 reference to exec_pathname.
1013 (struct exec_catchpoint): New type.
1014 (dtor_catch_exec): New function.
1015 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1016 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1017 (catch_exec_command_1): Adjust to use init_catchpoint.
1018 (delete_breakpoint): Remove reference to exec_pathname.
1020 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1022 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1023 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1024 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1025 reference to syscalls_to_be_caught.
1026 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1028 (struct syscall_catchpoint): New type.
1029 (dtor_catch_syscall): New function.
1030 (insert_catch_syscall, remove_catch_syscall)
1031 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1032 (print_recreate_catch_syscall): Adjust.
1033 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1034 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1035 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1036 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1037 (masked_watchpoint_breakpoint_ops)
1038 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1039 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1040 there is one. Remove references to syscalls_to_be_caught.
1041 (catching_syscall_number): Adjust.
1042 * ada-lang.c (catch_exception_breakpoint_ops)
1043 (catch_exception_unhandled_breakpoint_ops)
1044 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1046 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1048 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1050 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1051 reference to forked_inferior_pid.
1052 (struct fork_catchpoint): New type.
1053 (breakpoint_hit_catch_fork, print_it_catch_fork)
1054 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1055 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1056 (create_fork_vfork_event_catchpoint): Adjust to use
1059 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1061 * breakpoint.c (add_to_breakpoint_chain)
1062 (init_raw_breakpoint_without_location): New functions, factored
1064 (set_raw_breakpoint_without_location): ... this one.
1065 (init_raw_breakpoint): New function, factored out from
1066 set_raw_breakpoint and adjusted to use
1067 init_raw_breakpoint_without_location.
1068 (set_raw_breakpoint): Adjust.
1069 (init_catchpoint): New function, factored out from
1070 create_catchpoint_without_mention and adjusted to use
1071 init_raw_breakpoint.
1072 (create_catchpoint_without_mention): Adjust.
1074 2011-06-22 Tom Tromey <tromey@redhat.com>
1076 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1077 argument of 0 specially.
1079 2011-06-22 Yao Qi <yao@codesourcery.com>
1081 * infrun.c (handle_inferior_event): Remove write-only local variable
1082 `sw_single_step_trap_p'.
1084 2011-06-20 Tom Tromey <tromey@redhat.com>
1086 * symtab.c (lookup_language_this): End loop if block is NULL.
1088 2011-06-17 Tom Tromey <tromey@redhat.com>
1090 * valops.c (value_of_this): Use lookup_language_this.
1091 * symtab.h (lookup_language_this): Declare.
1092 * symtab.c (lookup_language_this): New function.
1093 (lookup_symbol_aux): Use lookup_language_this.
1094 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1096 2011-06-17 Tom Tromey <tromey@redhat.com>
1098 * value.h (value_of_this): Update.
1099 (value_of_local): Remove.
1100 * valops.c (value_of_this): Rename from value_of_local. Change
1102 * p-exp.y (exp): Update.
1103 (variable): Likewise.
1104 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1106 2011-06-17 Tom Tromey <tromey@redhat.com>
1108 * valops.c (value_of_local): Complain if NAME is NULL.
1109 * std-operator.def (OP_OBJC_SELF): Remove.
1110 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1111 * objc-exp.y (name_not_typename): Use OP_THIS.
1112 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1114 <OP_OBJC_SELF>: Remove.
1115 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1117 2011-06-16 Tristan Gingold <gingold@adacore.com>
1119 * python/py-events.h (gdb_py_events): Make it extern.
1120 * python/py-evtregistry.c (gdb_py_events): Declare.
1122 2011-06-16 Hui Zhu <teawater@gmail.com>
1124 * remote.c (remote_trace_set_readonly_regions): Add check for
1125 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1128 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1130 * arm-linux-tdep.c: Include "auxv.h".
1132 (ARM_LINUX_SIZEOF_VFP): Define.
1133 (arm_linux_supply_vfp): New function.
1134 (arm_linux_collect_vfp): Likewise.
1135 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1136 (arm_linux_fpa_regset_sections): New variable.
1137 (arm_linux_vfp_regset_sections): Likewise.
1138 (arm_linux_core_read_description): New function.
1139 (arm_linux_init_abi): Install arm_linux_core_read_description and
1140 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1141 appropriate for the architecture.
1142 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1143 (tdesc_arm_with_m): Declare.
1144 (tdesc_arm_with_iwmmxt): Likewise.
1145 (tdesc_arm_with_vfpv2): Likewise.
1146 (tdesc_arm_with_vfpv3): Likewise.
1147 (tdesc_arm_with_neon): Likewise.
1148 * arm-linux-nat.c: Move features/*.c includes ...
1149 * arm-tdep.c: ... here.
1150 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1151 target description data structures ...
1152 * arm-tdep.c (_initialize_arm_tdep): ... here.
1153 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1154 HWCAP_VFPv3D16): Move definitions ...
1155 * arm-linux-tdep.h: ... here.
1157 2011-06-15 Hui Zhu <teawater@gmail.com>
1159 * remote.c (remote_trace_set_readonly_regions): Add a check for
1162 2011-06-14 Tom Tromey <tromey@redhat.com>
1164 * coffread.c (coffread_objfile): Rename from current_objfile.
1165 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1166 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1168 2011-06-14 Tom Tromey <tromey@redhat.com>
1170 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1171 (class_symtab): Remove.
1172 (jv_dynamics_progspace_key): New global.
1173 (jv_per_objfile_free): Reset program space data. Update assert.
1174 Don't clear globals.
1175 (get_dynamics_objfile): Use and set program space data.
1176 (get_java_class_symtab): Use get_dynamics_objfile.
1177 (add_class_symbol): Likewise.
1178 (java_link_class_type): Likewise.
1179 (java_object_type, jv_clear_object_type, set_java_object_type):
1181 (get_java_object_type): Update. Don't cache result.
1182 (is_object_type): Don't call set_java_object_type.
1183 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1184 initialize jv_dynamics_progspace_key.
1186 2011-06-14 Tom Tromey <tromey@redhat.com>
1188 * symtab.h (current_objfile): Don't declare.
1189 * objfiles.h (current_objfile): Don't declare.
1190 * objfiles.c (current_objfile): Remove.
1191 * mdebugread.c (current_objfile): New file-scope global.
1192 * dbxread.c (current_objfile): New file-scope global.
1193 * coffread.c (current_objfile): New file-scope global.
1195 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1197 * top.h (line): Rename to ...
1198 (saved_command_line): ... this.
1199 (linesize): Rename to ...
1200 (saved_command_line_size): ... this.
1201 * top.c (line): Rename to ...
1202 (saved_command_line): ... this.
1203 (linesize): Rename to ...
1204 (saved_command_line_size): ... this.
1205 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1206 * event-top.c (command_line_handler): Adjust.
1207 * main.c (captured_main): Adjust.
1209 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1211 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1212 get_frame_func instead of get_frame_pc to determine the code
1213 address used to construct the frame ID.
1214 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1215 (i386_epilogue_frame_this_id): Likewise.
1216 (i386_epilogue_frame_prev_register): New function.
1217 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1218 (i386_stack_tramp_frame_sniffer): Fix coding style.
1219 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1220 (i386_gdbarch_init): Fix comments.
1222 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1224 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1225 instruction when walking back through the instruction stream.
1227 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1229 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1230 fullname parameters order.
1232 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1237 * psymtab.c (map_symbol_filenames_psymtab)
1238 (map_partial_symbol_filenames): Likewise.
1239 * psymtab.h: Include symfile.h.
1240 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1241 * symfile.h (symbol_filename_ftype): New.
1242 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1243 map_symbol_filenames, clarify more the naming in comment.
1245 2011-06-07 Doug Evans <dje@google.com>
1247 * cc-with-index.sh: Fix typos in comment.
1248 Look for ../../gdb, for fullname.exp.
1250 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1251 Pedro Alves <pedro@codesourcery.com>
1253 * cli/cli-cmds.c (shell_escape): Use waitpid.
1254 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1256 2011-06-07 Tristan Gingold <gingold@adacore.com>
1258 * xcoffread.c (dwarf2_xcoff_names): New variable.
1259 (aix_process_linenos): Add a guard.
1260 (xcoff_symfile_finish): Free dwarf2.
1261 (xcoff_initial_scan): Add dwarf2 support.
1263 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1265 * infcall.c (run_inferior_call): Don't mask async. Instead force
1266 a synchronous wait, if the target can async.
1268 * target.h (struct target_ops): Delete to_async_mask.
1269 (target_async_mask): Delete.
1270 * target.c (update_current_target): Delete references to to_async_mask.
1271 * linux-nat.c (linux_nat_async_mask_value): Delete.
1272 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1273 to linux_nat_async_mask_value.
1274 (linux_nat_async_mask): Delete.
1275 (linux_nat_async, linux_nat_close): Remove references to
1276 linux_nat_async_mask_value.
1277 * record.c (record_async_mask_value): Delete.
1278 (record_async): Remove references to record_async_mask_value.
1279 (record_async_mask): Delete.
1280 (record_can_async_p, record_is_async_p): Remove references to
1281 record_async_mask_value.
1282 (init_record_ops, init_record_core_ops): Remove references to
1284 * remote.c (remote_async_mask_value): Delete.
1285 (init_remote_ops): Remove reference to remote_async_mask.
1286 (remote_can_async_p, remote_is_async_p): Remove references to
1287 remote_async_mask_value.
1288 (remote_async): Remove references to remote_async_mask_value.
1289 (remote_async_mask): Delete.
1291 * infrun.c (fetch_inferior_event): Don't claim registers changed
1292 if the current thread is already not executing.
1294 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1296 From Stephen Kitt <steve@sk2.org>
1297 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1298 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1300 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1302 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1303 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1305 2011-06-03 Tom Tromey <tromey@redhat.com>
1307 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1309 * python/py-exitedevent.c (create_exited_event_object): Change
1310 type of 'exit_code'. Optionally add exit_code attribute.
1311 (emit_exited_event): Change type of 'exit_code'.
1312 * python/py-event.h (emit_exited_event): Update.
1313 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1314 * infrun.c (handle_inferior_event): Set exit code fields on
1316 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1318 * inferior.c (exit_inferior_1): Initialize new fields.
1320 2011-06-03 Tom Tromey <tromey@redhat.com>
1322 * dwarf2expr.c (get_signed_type): New function.
1323 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1325 2011-06-02 Keith Seitz <keiths@redhat.com>
1327 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1329 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1331 * top.h (simplified_command_loop): Delete declaration.
1333 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1335 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1336 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1338 2011-06-01 Yao Qi <yao@codesourcery.com>
1340 * objfiles.h (obj_section_addr): Update reference to objfile from
1342 (obj_section_endaddr): Likewise.
1344 2011-06-01 Daniel Jacobowitz <drow@false.org>
1346 * MAINTAINERS: Update my email address and affiliation. Also
1347 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1349 2010-05-31 Keith Seitz <keiths@redhat.com>
1352 * linespec.c (get_search_block): New function.
1353 (find_methods): Add FILE_SYMTATB parameter and use it and
1354 get_search_block to pass an appropriate block to
1355 lookup_symbol_in_namespace.
1356 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1357 Check if *ARGPTR starts with a filename first.
1358 If it does, call locate_first_half again to locate the next
1359 "first half" of the linespec.
1360 Pass FILE_SYMTATB to decode_objc and decode_compound.
1361 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1362 (locate_first_half): Stop on the first colon seen.
1363 (decode_compound): Add FILE_SYMTAB parameter.
1364 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1365 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1366 get_search_block with lookup_symbol.
1367 (find_method): Add FILE_SYMTAB parameter and pass it to
1369 (decode_objc): Use get_search_block.
1371 2010-05-31 Keith Seitz <keiths@redhat.com>
1374 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1375 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1376 and CP_ANONYMOUS_NAMESPACE_LEN.
1377 (cp_is_anonymous): Likewise.
1378 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1379 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1380 * dwarf2read.c (namespace_name): Likewise.
1381 (fixup_partial_die): Likewise.
1382 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1383 seen in the input, keep it.
1385 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1387 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1388 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1389 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1390 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1391 * remote.c (_initialize_remote): Register
1392 async_remote_interrupt_twice directly as
1393 sigint_remote_twice_token event.
1395 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1397 * target.h (enum inferior_event_type): Delete INF_ERROR.
1398 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1400 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1402 * interps.c (interp_set): Don't cancel continuations.
1404 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1408 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1410 * continuations.h (continuation_ftype): Add `err' parameter.
1411 Document parameters.
1412 (do_all_continuations, do_all_continuations_thread)
1413 (do_all_intermediate_continuations)
1414 (do_all_intermediate_continuations_thread)
1415 (do_all_inferior_continuations): Add `err' parameter.
1416 * continuations.c (do_my_continuations_1, do_my_continuations)
1417 (do_all_inferior_continuations, do_all_continuations_ptid)
1418 (do_all_continuations_thread_callback)
1419 (do_all_continuations_thread, do_all_continuations)
1420 (do_all_intermediate_continuations_thread_callback)
1421 (do_all_intermediate_continuations_thread)
1422 (do_all_intermediate_continuations): Add `err' parameter, and pass
1423 it down all the way to the continuations proper.
1424 * inf-loop.c (inferior_event_handler): If fetching an inferior
1425 event throws an error, don't pop the target, and still call the
1426 continuations, but with `err' set. Adjust all other continuation
1428 * breakpoint.c (until_break_command_continuation): Add `err'
1430 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1431 issue another step if `err' is set.
1432 (struct until_next_continuation_args): New.
1433 (until_next_continuation): Add `err' parameter. Adjust.
1434 (until_next_command): Adjust.
1435 (struct finish_command_continuation_args): Add `thread' field.
1436 (finish_command_continuation): Add `err' parameter. Handle it.
1437 (finish_forward): Adjust.
1438 (attach_command_continuation): Add `err' parameter. Handle it.
1439 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1440 cancel the continuations.
1441 * interps.c (interp_set): Adjust to cancel the continuations.
1442 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1443 continuations rather than discarding.
1444 (free_thread): Don't clear thread inferior resources here.
1445 (delete_thread_1): Do it here instead. And do it before removing
1446 the thread from the threads list. Tag the thread as exited before
1447 clearing thread inferior resources.
1449 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1451 * infcall.c (call_function_by_hand): Rephrase error message.
1453 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1455 * defs.h (struct thread_info, struct inferior): Delete forward
1457 * breakpoint.h (struct thread_info): New forward declaration.
1458 * observer.sh (struct inferior): New forward declaration.
1459 * python/python-internal.h (struct inferior): New forward
1462 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1464 * defs.h (struct continuation, continuation_ftype)
1465 (continuation_free_arg_ftype, add_continuation)
1466 (do_all_continuations, do_all_continuations_thread)
1467 (discard_all_continuations, discard_all_continuations_thread)
1468 (add_intermediate_continuation, do_all_intermediate_continuations)
1469 (do_all_intermediate_continuations_thread)
1470 (discard_all_intermediate_continuations)
1471 (discard_all_intermediate_continuations_thread)
1472 (add_inferior_continuation, do_all_inferior_continuations)
1473 (discard_all_inferior_continuations): Move to ...
1474 * continuations.h: ... this new file.
1475 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1476 infcmd.c, inferior.c, infrun.c, interps.c: Include
1479 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1480 Doug Evans <dje@google.com>
1482 Fix PR 10970, PR 12702.
1483 * linux-nat.c (linux_lwp_is_zombie): New function.
1484 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1485 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1487 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1489 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1491 (add_continuation, add_intermediate_continuation)
1492 (add_inferior_continuation): Use them.
1493 * continuations.c (struct continuation): Use them.
1494 (make_continuation_ftype): Delete.
1495 (make_continuation, add_inferior_continuation, add_continuation)
1496 (add_intermediate_continuation): Use continuation_ftype and
1497 continuation_free_arg_ftype. Rename parameters to shorter names.
1499 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1501 * continuations.c (make_continuation): Make it return void.
1502 (do_my_continuations): Rename to ...
1503 (do_my_continuations_1): ... this. Remove old_chain parameter and
1505 (do_my_continuations): New.
1506 (discard_my_continuations): Rename to ...
1507 (discard_my_continuations_1): ... this. Remove old_chain
1508 parameter and adjust.
1509 (discard_my_continuations): New.
1510 (add_inferior_continuation): Simplify.
1511 (do_all_inferior_continuations): Reimplement on top
1512 do_my_continuations.
1513 (discard_all_inferior_continuations): Simplify.
1514 (add_continuation): Simplify.
1515 (do_all_continuations_ptid): Simplify.
1516 (discard_all_continuations_thread_callback): Simplify.
1517 (add_intermediate_continuation): Simplify.
1518 (discard_all_intermediate_continuations_thread_callback):
1521 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1523 * utils.c (struct continuation, add_continuation)
1524 (add_inferior_continuation)
1525 (do_all_inferior_continuations, discard_all_inferior_continuations)
1526 (restore_thread_cleanup, do_all_continuations_ptid)
1527 (do_all_continuations_thread_callback)
1528 (do_all_continuations_thread, do_all_continuations)
1529 (discard_all_continuations_thread_callback)
1530 (discard_all_continuations_thread, discard_all_continuations)
1531 (add_intermediate_continuation)
1532 (do_all_intermediate_continuations_thread_callback)
1533 (do_all_intermediate_continuations_thread)
1534 (do_all_intermediate_continuations)
1535 (discard_all_intermediate_continuations_thread_callback)
1536 (discard_all_intermediate_continuations_thread)
1537 (discard_all_intermediate_continuations): Move to ...
1538 * continuations.c: ... this new file, and adjust to no longer
1539 implement continuations on top of cleanups.
1540 * Makefile.in (SFILES): Add continuations.c.
1541 (COMMON_OBS): Add continuations.o.
1543 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1545 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1546 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1547 Internal error on invalid values.
1548 * reverse.c: Don't handle EXEC_ERROR.
1549 * mi/mi-main.c: Don't handle EXEC_ERROR.
1551 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1553 * record.c: Include event-loop.h, inf-loop.h.
1554 (record_beneath_to_async): New global.
1555 (tmp_to_async): New global.
1556 (record_async_inferior_event_token): New global.
1557 (record_open_1): Don't error out if async is enabled.
1558 (record_open): Handle to_async. Create an async event source in
1560 (record_close): Delete the async event source.
1561 (record_resumed): New global.
1562 (record_execution_dir): New global.
1563 (record_resume, record_core_resume): Set them. Register the
1564 target on the event loop.
1565 (record_wait): Rename to ...
1566 (record_wait_1): ... this. Add more debug output. Handle
1567 TARGET_WNOHANG, and the target beneath returning
1568 TARGET_WAITKIND_IGNORE.
1569 (record_wait): Reimplement on top of record_wait_1.
1570 (record_async_mask_value): New global.
1571 (record_async, record_async_mask, record_can_async_p)
1572 (record_is_async_p, record_execution_direction): New functions.
1573 (init_record_ops, init_record_core_ops): Install new methods.
1574 * infrun.c (fetch_inferior_event): Temporarily switch the global
1575 execution direction to the direction the target was going.
1576 (execution_direction): Change type to int.
1577 * target.c (default_execution_direction): New function.
1578 (update_current_target): Inherit and de_fault
1579 to_execution_direction.
1580 * target.h (struct target_ops) <to_execution_direction>: New
1582 (target_execution_direction): New macro.
1583 * inferior.h (execution_direction): Change type to int.
1585 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1587 * infcall.c (call_function_by_hand): Don't allow calling functions
1588 in reverse execution mode.
1590 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1592 * infcmd.c (finish_command): Allow async finish in reverse.
1594 2011-05-26 Yao Qi <yao@codesourcery.com>
1596 * gdb_thread_db.h: Delete. Move to ...
1597 * common/gdb_thread_db.h: ... here.
1599 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1601 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1602 function's entry point instead of a manually managed momentary
1603 breakpoint, and only ever issue one proceed call.
1604 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1605 doing a reverse-finish, switch to stepi mode, to do another step.
1606 (insert_step_resume_breakpoint_at_sal): Make public.
1607 (normal_stop): No need to save function value return registers if
1609 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1611 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1613 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1614 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1615 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1617 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1618 step-resume breakpoints.
1619 (print_it_typical): Handle bp_hp_step_resume.
1620 (bpstat_what): Ditto.
1621 (bptype_string): Ditto.
1622 (print_one_breakpoint_location): Ditto.
1623 (allocate_bp_location): Ditto.
1625 (breakpoint_re_set_one): Ditto.
1626 * infrun.c (handle_inferior_event): Adjust. Split
1627 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1628 BPSTAT_WHAT_HP_STEP_RESUME.
1629 (insert_step_resume_breakpoint_at_sal): Rename to ...
1630 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1631 parameter. Handle it.
1632 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1633 insert_step_resume_breakpoint_at_sal_1.
1634 (insert_step_resume_breakpoint_at_frame): Rename to ...
1635 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1636 set a high-priority step-resume breakpoint.
1637 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1638 (insert_step_resume_breakpoint_at_caller): Ditto.
1640 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1642 * breakpoint.c (iterate_over_related_breakpoints): New.
1643 (do_map_delete_breakpoint): New.
1644 (delete_command): Pass do_map_delete_breakpoint to
1645 map_breakpoint_numbers.
1646 (do_disable_breakpoint): New.
1647 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1649 (do_enable_breakpoint): Rename to ...
1650 (enable_breakpoint_disp): ... this.
1651 (enable_breakpoint): Adjust.
1652 (do_enable_breakpoint): New.
1653 (enable_once_breakpoint): Delete.
1654 (do_map_enable_breakpoint): New.
1655 (do_map_enable_once_breakpoint): New.
1656 (enable_once_command, enable_delete_command)
1657 (delete_trace_command): Iterate over the breakpoint's related
1660 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1662 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1663 for ALPHA_ZERO_REGNUM.
1664 (alpha_supply_int_regs): Explicitly supply zero as the value for
1665 ALPHA_ZERO_REGNUM in the register cache.
1666 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1668 2011-05-26 Yao Qi <yao@codesourcery.com>
1670 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1672 2011-05-26 Tristan Gingold <gingold@adacore.com>
1674 * symfile.h (struct dwarf2_section_names): New type.
1675 (struct dwarf2_debug_sections): New type.
1676 (dwarf2_has_info): Add parameter.
1677 * dwarf2read.c (dwarf2_elf_names): New variable.
1678 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1679 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1680 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1681 (dwarf2_has_info): Add names parameter. Pass names
1682 to dwarf2_locate_sections.
1683 (section_is_p): Rewrite using the names parameter.
1684 (dwarf2_locate_sections): Use section names from the names parameter.
1685 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1686 * elfread.c (read_psyms): Ditto.
1687 * machoread.c (macho_symfile_read): Ditto.
1689 2011-05-25 Andreas Schwab <schwab@redhat.com>
1692 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1694 2011-05-24 Keith Seitz <keiths@redhat.com>
1697 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1698 (decode_compound): Unconditionally call keep_name_info.
1700 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1702 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1703 scope, clear its command list.
1704 (map_breakpoint_numbers): Don't walk the related breakpoints list
1707 2011-05-24 Tom Tromey <tromey@redhat.com>
1709 * MAINTAINERS: Move Jim Blandy to past maintainers.
1711 2011-05-24 Tristan Gingold <gingold@adacore.com>
1713 * symfile.h (enum dwarf2_section_enum): New type.
1714 (dwarf2_get_section_info): New prototype.
1715 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1716 section_name by sect. Use a switch to select the info.
1717 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1718 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1720 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1722 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1723 shared library event breakpoint if there's no execution.
1725 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1727 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1728 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1730 2011-05-23 Tom Tromey <tromey@redhat.com>
1732 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1735 2011-05-23 Doug Evans <dje@google.com>
1737 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1738 entry for RuntimeError to doc string.
1740 2011-05-23 Jerome Guitton <guitton@adacore.com>
1742 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1743 sequence for probing loops.
1745 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1747 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1750 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1752 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1753 zero as the value for %g0 in the register cache.
1754 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1755 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1757 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1759 * infrun.c (proceed): Set previous_inferior_ptid here.
1760 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1761 inferior_ptid, not null_ptid.
1762 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1763 (fetch_inferior_event): Nor here.
1765 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1767 * inf-loop.c (inferior_event_handler): Only output a message if
1770 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1772 * MAINTAINERS: Update my e-mail address.
1774 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1776 * infrun.c (proceed): Switch the inferior event loop to
1777 INF_EXEC_COMPLETE if the target refused to resume from a
1780 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1782 * infcmd.c: Include "inf-loop.h".
1783 (step_once): When stepping into an inline subroutine, pretend the
1784 target has run. If the target can async, switch the inferior
1785 event loop to INF_EXEC_COMPLETE.
1786 * inferior.h (user_visible_resume_ptid): Declare.
1787 * infrun.c (user_visible_resume_ptid): New function, factored out
1790 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1791 that the current thread is running. Merge async and sync
1794 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1796 * infcmd.c (step_1): Simplify synchronous case.
1798 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1800 * tracepoint.c: Include exceptions.h.
1801 (TFILE_PID): Move higher in file.
1802 (tfile_open): Delay pushing the tfile target until we're assured
1803 the tfile header is present in the file. Wrap reading the initial
1804 newline-terminated lines in TRY_CATCH. Pop the target if the
1805 initial setup failed. Add the tfile's thread immediately
1806 aftwards, before any non-essential setup. Don't skip
1807 post_create_inferior if there are no traceframes present in the
1809 (tfile_close): Remove redundant check for null before xfree call.
1810 (tfile_thread_alive): New function.
1811 (init_tfile_ops): Register it as to_thread_alive callback.
1813 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1815 * tracepoint.c (tfile_open): Delete #if 0'd code.
1817 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1819 Fix -readnow for -gdwarf-4 unused type units.
1820 * dwarf2read.c (struct signatured_type): Remove the field offset.
1821 (create_signatured_type_table_from_index): Remove its initialization.
1822 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1823 instead. Add a complaint call.
1824 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1825 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1826 (lookup_signatured_type_at_offset, read_signatured_type)
1827 (write_one_signatured_type): Update the field for per_cu.
1829 2011-05-19 Tom Tromey <tromey@redhat.com>
1831 * python/py-inferior.c (python_inferior_exit): Use
1833 (python_on_resume): Likewise.
1835 2011-05-19 Matt Rice <ratmice@gmail.com>
1837 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1839 2011-05-19 Hui Zhu <teawater@gmail.com>
1841 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1843 2011-05-19 Hui Zhu <teawater@gmail.com>
1845 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1847 2011-05-18 Tom Tromey <tromey@redhat.com>
1849 * dwarf2read.c (dwarf2_add_field): Constify.
1850 * value.c (value_static_field): Constify.
1851 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1853 * ax-gdb.c (gen_static_field): Constify
1855 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 * linux-nat.c (kill_callback): Use SIGKILL first.
1859 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1861 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1863 2011-05-18 Tom Tromey <tromey@redhat.com>
1865 * value.c (value_fn_field): Constify.
1866 * symtab.c (gdb_mangle_name): Constify.
1867 * stabsread.c (update_method_name_from_physname): Make 'physname'
1869 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1870 const. Use explicit fputc_filtered loop.
1871 (pascal_type_print_base): Constify.
1872 * p-lang.h (pascal_type_print_method_args): Update.
1873 * linespec.c (add_matching_methods): Constify.
1874 (add_constructors): Likewise.
1875 * jv-typeprint.c (java_type_print_base): Constify.
1876 * gdbtypes.h (struct cplus_struct_type)
1877 <fn_fieldlist.fn_field.physname>: Now const.
1878 * dwarf2read.c (compute_delayed_physnames): Constify.
1879 (dwarf2_add_member_fn): Likewise.
1880 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1882 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1884 * infrun.c (resume): Mention which is the current thread, and its
1885 current PC in debug output.
1886 (prepare_to_proceed): Mention the thread switching in debug
1889 2011-05-18 Tom Tromey <tromey@redhat.com>
1891 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1892 path check. Use xmalloc and cleanups.
1893 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1895 2011-05-17 Tom Tromey <tromey@redhat.com>
1897 * cp-valprint.c (cp_print_value_fields): Catch errors from
1900 2011-05-17 Tom Tromey <tromey@redhat.com>
1902 * dwarf2read.c (dwarf2_get_die_type): Call
1903 get_die_type_at_offset.
1904 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1905 get_base_type function.
1907 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1909 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1912 2011-05-16 Doug Evans <dje@google.com>
1914 * python/py-auto-load.c (source_section_scripts): Mention objfile
1917 2011-05-15 Doug Evans <dje@google.com>
1919 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1920 (try_thread_db_load_from_pdir): Call it. If unable to find
1921 libthread_db in directory of libpthread, see if we're looking at
1922 the separate-debug-info copy.
1924 * python/py-autoload.c (print_script): Print "Missing" instead of
1925 "No" for missing scripts.
1926 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1928 2011-05-13 Doug Evans <dje@google.com>
1930 * ui-file.c (stdio_file_write_async_safe): Add comment.
1932 2011-05-14 Hui Zhu <teawater@gmail.com>
1934 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1936 2011-05-13 Doug Evans <dje@google.com>
1938 Support $pdir and $sdir in libthread-db-search-path.
1939 * NEWS: Mention $sdir,$pdir.
1940 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1941 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1942 (try_thread_db_load_from_sdir): New function.
1943 (try_thread_db_load_from_dir): New function.
1944 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1945 system directories if search of libthread-db-search-path fails,
1946 that is now done via $sdir.
1947 (has_libpthread): New function.
1948 (thread_db_load): Remove search for libthread_db in directory of
1949 libpthread, that is now done via $pdir.
1951 * NEWS: Mention "info auto-load-scripts".
1952 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1953 script_not_found_warning_printed.
1954 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1955 all callers updated. Initialize script_not_found_warning_printed.
1956 (get_auto_load_pspace_data_for_loading): New function.
1957 (maybe_add_script): New function.
1958 (source_section_scripts): Simplify. Only print one warning regardless
1959 of the number of auto-load scripts not found.
1960 (clear_section_scripts): Clear script_not_found_warning_printed.
1961 (auto_load_objfile_script): Record script in hash table.
1962 (count_matching_scripts): New function.
1963 (maybe_print_script): Renamed from maybe_print_section_script, all
1964 callers updated. Rewrite to use ui_out_*.
1965 (info_auto_load_scripts): Renamed from
1966 maintenance_print_section_scripts, all callers updated.
1967 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1968 renamed as "info auto-load-scripts".
1970 2011-05-13 Tom Tromey <tromey@redhat.com>
1972 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1973 (read_sleb128): Likewise.
1975 2011-05-13 Tom Tromey <tromey@redhat.com>
1977 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1980 2011-05-13 Doug Evans <dje@google.com>
1982 * linux-nat.c (debug_linux_nat_async): Delete.
1983 Replace all references to use debug_linux_nat instead.
1984 (show_debug_linux_nat_async): Delete.
1985 (sigchld_handler): Call ui_file_write_async_safe instead of
1987 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1988 * ui-file.c (struct ui_file): New member to_write_async_safe.
1989 (null_file_write_async_safe): New function.
1990 (ui_file_write_async_safe): New function.
1991 (set_ui_file_write_async_safe): New function.
1992 (ui_file_new): Initialize to_write_async_safe.
1993 (stdio_file_write_async_safe): New function.
1994 (struct stdio_file): New member fd.
1995 (stdio_file_new): Initialize to_write_async_safe, fd.
1996 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1998 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1999 (set_ui_file_write_async_safe): Declare.
2000 (ui_file_write_async_safe): Declare.
2002 2011-05-13 Tom Tromey <tromey@redhat.com>
2004 * utils.c (do_value_free): New function.
2005 (make_cleanup_value_free): Likewise.
2006 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2008 (dwarf2_loc_desc_needs_frame): Call
2009 make_cleanup_value_free_to_mark.
2010 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2011 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2013 (new_dwarf_expr_context): Don't call value_mark.
2014 * dwarf2-frame.c (execute_stack_op): Call
2015 make_cleanup_value_free_to_mark.
2016 * defs.h (make_cleanup_value_free): Declare.
2018 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2020 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2021 prepare_execute_command.
2022 * top.c (prepare_execute_command): Return cleanup.
2023 (execute_command): Use cleanup from prepare_execute_command.
2024 * top.h (prepare_execute_command): Change prototype to return
2026 * defs.h (struct value): Add opaque declaration.
2027 (make_cleanup_value_free_to_mark): Add prototype.
2028 * utils.c (do_value_free_to_mark): New function.
2029 (make_cleanup_value_free_to_mark): Likewise.
2031 2011-05-12 Tom Tromey <tromey@redhat.com>
2033 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2034 cast left-hand-side to unsigned.
2036 2011-05-12 Tom Tromey <tromey@redhat.com>
2039 * value.h (value_from_contents): Declare.
2040 * value.c (value_from_contents): New function.
2041 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2042 (dwarf2_get_die_type): New function.
2043 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2044 (allocate_piece_closure): Acquire reference to values.
2045 (read_pieced_value): Update for value-based expressions.
2046 (write_pieced_value): Likewise.
2047 (free_pieced_value_closure): Call value_free as needed.
2048 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2049 Update for value-based expressions.
2050 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2051 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2052 <get_base_type>: New field.
2053 (struct dwarf_expr_piece) <v.value>: Change type.
2054 <v.regno>: New field.
2055 (struct dwarf_expr_context) <mark>: New field.
2056 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2057 (dwarf_expr_pop, dwarf_expr_push): Remove.
2058 (dwarf_expr_push_address): Declare.
2059 * dwarf2expr.c (dwarf_arch_cookie): New global.
2060 (struct dwarf_gdbarch_types): New.
2061 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2063 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2065 (dwarf_expr_push_address): New function.
2066 (dwarf_expr_pop): Now static.
2067 (dwarf_expr_fetch): Change return type.
2068 (dwarf_require_integral): New function.
2069 (dwarf_expr_fetch): Simplify.
2070 (add_piece): Update.
2071 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2073 (execute_stack_op) <sign_ext>: Remove.
2074 Use values for DWARF stack.
2075 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2076 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2078 (_initialize_dwarf2expr): New function.
2079 (add_piece): Update.
2080 (new_dwarf_expr_context): Set new field.
2081 (free_dwarf_expr_context): Call value_free_to_mark.
2082 * dwarf2-frame.c (no_base_type): New function.
2083 (execute_stack_op): Set get_base_type field. Update.
2085 2011-05-12 Tom Tromey <tromey@redhat.com>
2087 * dwarf2read.c (read_common_block): Fix formatting.
2089 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2091 * breakpoint.c (disable_breakpoint): Disable all locations
2092 associated with a tracepoint on target if a trace experiment is
2094 (disable_command): Disable a specific tracepoint location on target if
2095 a trace experiment is running.
2096 (do_enable_breakpoint): Enable all locations associated with a
2097 tracepoint on target if a trace experiment is running.
2098 (enable_command) Enable a specific tracepoint location on target if a
2099 trace experiment is running.
2100 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2101 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2102 to_disable_tracepoint.
2103 * target.h: Add declaration of struct bp_location.
2104 (struct target_ops): Add new functions
2105 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2106 to_disable_tracepoint to target operations.
2107 (target_supports_enable_disable_tracepoint): New macro.
2108 (target_enable_tracepoint): New macro.
2109 (target_disable_tracepoint): New macro.
2110 * remote.c (struct remote_state): Add new field.
2111 (remote_enable_disable_tracepoint_feature): New.
2112 (remote_protocol_features): Add new entry.
2113 (remote_supports_enable_disable_tracepoint): New.
2114 (remote_enable_tracepoint): New.
2115 (remote_disable_tracepoint): New.
2116 (init_remote_ops): Add remote_enable_tracepoint,
2117 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2118 to remote operations.
2119 * tracepoint.c (start_tracing): Allow tracing to start without any
2120 tracepoints enabled with just a warning if they can be re-enabled
2122 * NEWS: Add news item for the new behaviour of the enable and disable
2123 GDB commands when applied to tracepoints.
2124 Add news items for the new remote packets QTEnable and QTDisable.
2126 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 * config.in: Regenerate.
2129 * configure: Regenerate.
2130 * configure.ac <--with-system-readline> (for readline_echoing_p):
2132 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2133 (tui_old_rl_echoing_p): ... here.
2134 (tui_setup_io): Rename extern declaration readline_echoing_p to
2135 _rl_echoing_p. Adjust assignments for the both renames.
2137 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2139 * symtab.c (lookup_symtab): Run cleanup before returning.
2141 2011-05-11 Tom Tromey <tromey@redhat.com>
2143 * dwarf2read.c (handle_data_member_location): New function.
2144 (dwarf2_add_field): Use it.
2145 (read_common_block): Likewise.
2147 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 Make addrs->SECTINDEX always defined.
2150 * symfile.c (relative_addr_info_to_section_offsets): Check for
2151 SECTINDEX -1, not for zero ADDR.
2152 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2153 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2154 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2157 2011-05-10 Doug Evans <dje@google.com>
2159 * linux-thread-db.c: Whitespace cleanup.
2160 (try_thread_db_load_1): Fix comment.
2162 * linux-thread-db.c (set_libthread_db_search_path): New function.
2163 (_initialize_thread_db): Add setter for libthread-db-search-path.
2165 2011-05-09 Doug Evans <dje@google.com>
2167 * NEWS: Mention --with-iconv-bin.
2168 * configure.ac: New option --with-iconv-bin.
2169 * configure: Regenerate.
2170 * config.in: Regenerate.
2171 * defs.h (relocate_gdb_directory): Declare.
2172 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2173 removed progname parameter, and exported. All callers updated.
2174 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2176 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2177 adding missing call to restore_child_signals_mask.
2179 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2181 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2183 * infrun.c (proceed, start_remote): Adjust.
2184 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2185 and adjust to not handle it.
2186 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2187 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2188 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2189 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2190 * windows-nat.c (do_initial_windows_stuff): Adjust.
2191 * infcmd.c (attach_command): Adjust.
2192 (notice_new_inferior): Adjust.
2194 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2196 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2197 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2198 * spu-tdep.c (op_selb): Use correct value.
2200 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2202 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2203 "parent" parameter to symbol_file_add_from_bfd call.
2205 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2206 Thiago Jung Bauermann <bauerman@br.ibm.com>
2208 Implement support for PowerPC BookE masked watchpoints.
2209 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2211 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2212 method. Initialize to NULL in all existing breakpoint_ops instances.
2213 (struct breakpoint) <hw_wp_mask>: New field.
2214 * breakpoint.c (is_masked_watchpoint): Add prototype.
2215 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2216 breakpoint's breakpoint_ops.works_in_software_mode if available.
2217 (watchpoints_triggered): Handle the case of a hardware masked
2219 (watchpoint_check): Likewise.
2220 (works_in_software_mode_watchpoint): New function.
2221 (insert_masked_watchpoint, remove_masked_watchpoint)
2222 (resources_needed_masked_watchpoint)
2223 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2224 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2225 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2227 (masked_watchpoint_breakpoint_ops): New structure.
2228 (watch_command_1): Check for the existence of the `mask' parameter.
2229 Set b->ops according to the type of hardware watchpoint being created.
2230 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2231 (ppc_linux_remove_mask_watchpoint)
2232 (ppc_linux_masked_watch_num_registers): New functions.
2233 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2234 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2235 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2236 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2237 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2238 (target_masked_watch_num_registers): New functions.
2239 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2240 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2242 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2243 (target_masked_watch_num_registers): Add prototypes.
2245 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2249 (producer_is_gcc_ge_4_0): New function.
2250 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2251 symtab->language code.
2252 (var_decode_location): Set cu->has_loclist.
2253 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2254 skip. Intialize force_skip from locations_valid. Move the prologue
2255 skipping code into two passes.
2256 * symtab.h (struct symtab): Make the primary field a bitfield. New
2257 field locations_valid.
2259 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2261 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2262 (classify_inner_name): Call cp_lookup_nested_type with
2264 * cp-namespace.c (cp_lookup_nested_type): New variable
2265 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2266 type_name_no_tag_or_error with saved_parent_type.
2267 * dwarf2read.c (load_partial_dies): Read in any children of
2268 DW_TAG_typedef with complaint in such case.
2269 * gdbtypes.c (type_name_no_tag_or_error): New function.
2270 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2271 * valops.c (destructor_name_p): New comment for parameter type. Remove
2272 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2273 * value.h (destructor_name_p): Remove type const.
2275 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 * symtab.c (compare_symbol_name): New function.
2278 (completion_list_add_name, expand_partial_symbol_name): Call it,
2279 remove the variable ncmp.
2280 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2283 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2285 Demote to sw watchpoint only in update_watchpoint.
2286 * breakpoint.c (update_watchpoint): Change between software and
2287 hardware watchpoint for all kinds of watchpoints, not just
2288 read/write ones. Determine b->exact value here instead of
2289 in watch_command_1. Error out if there are not enough resources
2290 for a read or access hardware watchpoint.
2291 (watch_command_1): Remove logic of checking whether there are
2292 enough resources available, since update_watchpoint will do that
2293 work now. Don't set b->exact here. Catch exceptions thrown by
2294 update_watchpoint and delete the watchpoint.
2295 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2296 Use target_exact_watchpoints instead.
2297 (delete_breakpoint): Notify observers only if deleted watchpoint
2298 has a breakpoint number assigned to it.
2300 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2302 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2304 2011-05-05 Jerome Guitton <guitton@adacore.com>
2306 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2308 (i386_stack_tramp_frame_unwind): New static global.
2309 (i386_match_pattern): New function, extracted from i386_match_insn.
2310 (i386_match_insn): Use i386_match_pattern.
2311 (i386_match_insn_block): New function.
2312 (i386_tramp_chain_in_reg_insns)
2313 (i386_tramp_chain_on_stack_insns): New static variables.
2314 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2317 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2319 * configure.host (xscale*): Don't handle target.
2320 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2323 2011-05-04 Yao Qi <yao@codesourcery.com>
2325 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2327 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2330 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2331 | * elfread.c (elf_symtab_read): Stop memory leak.
2333 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2335 * nto-tdep.c (nto_target): Replace deprecated call to
2336 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2338 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 Fix false GCC warning.
2341 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2343 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2345 * breakpoint.c (update_watchpoint): Move code to change
2346 the enable state of breakpoint from here ...
2347 (do_enable_breakpoint): ... to here.
2349 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2351 * valprint.c (val_print_array_elements): Fixed poor performance
2352 of printing very large arrays with repeat_count_threshold set
2353 to unlimited. New comment.
2355 2011-04-29 Tom Tromey <tromey@redhat.com>
2357 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2358 (mi_parse): Likewise.
2359 * breakpoint.c (break_range_command): Use sizeof char*, not
2361 (create_breakpoint): Likewise.
2362 (parse_breakpoint_sals): Likewise.
2364 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2366 * linux-nat.c (linux_child_remove_fork_catchpoint)
2367 (linux_child_remove_vfork_catchpoint)
2368 (linux_child_remove_exec_catchpoint): New functions.
2369 (linux_target_install_ops): Install them.
2371 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2375 * varobj.c (install_default_visualizer): Do not install a
2376 visualizer if the varobj is CPLUS_FAKE_CHILD.
2377 (construct_visualizer): Likewise.
2379 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2381 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2382 case insensitive comparison.
2384 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2386 * infrun.c (proceed): Revert previous change.
2387 (resume): Instead, handle the case of signal delivery while stepping
2388 off a breakpoint location here, and only if software single-stepping
2389 is used. Handle nested signals.
2391 2011-04-28 Yao Qi <yao@codesourcery.com>
2393 * arm-tdep.c (copy_unmodified): Rename to ...
2394 (arm_copy_unmodified): .. this. New.
2395 (copy_preload): Move common part to ...
2396 (install_preload): .. this. New.
2397 (arm_copy_preload): New.
2398 (copy_preload_reg): Move common part to ...
2399 (install_preload_reg): ... this. New.
2400 (arm_copy_preload_reg): New.
2401 (copy_b_bl_blx): Move common part to ...
2402 (install_b_bl_blx): .. this. New.
2403 (arm_copy_b_bl_blx): New.
2404 (copy_bx_blx_reg): Move common part to ...
2405 (install_bx_blx_reg): ... this. New.
2406 (arm_copy_bx_blx_reg): New.
2407 (copy_alu_reg): Move common part to ...
2408 (install_alu_reg): ... this. New.
2409 (arm_copy_alu_reg): New.
2410 (copy_alu_shifted_reg): Move common part to ...
2411 (install_alu_shifted_reg): ... this. New.
2412 (copy_ldr_str_ldrb_strb): Move common part to ...
2413 (install_ldr_str_ldrb_strb): ... this. New.
2414 (arm_copy_ldr_str_ldrb_strb): New.
2415 (copy_copro_load_store): Move some common part to ...
2416 (install_copy_copro_load_store): ... this. New.
2417 (arm_copy_copro_load_store): New.
2419 (arm_copy_svc): Renamed from copy_svc.
2420 (copy_undef): Delete.
2421 (arm_copy_undef): Renamed from copy_undef.
2422 (decode_ext_reg_ld_st): Delete.
2423 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2424 (decode_svc_copro): Delete.
2425 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2426 (copy_copro_load_store, copy_alu_imm): update callers.
2427 (copy_extra_ld_st, copy_block_xfer): Likewise.
2428 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2429 (decode_miscellaneous, decode_dp_misc): Likewise.
2430 (decode_ld_st_word_ubyte, decode_media): Likewise.
2431 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2432 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2433 (decode_unconditional, decode_miscellaneous): Likewise.
2434 (decode_media, decode_b_bl_ldmstm): Likewise.
2435 (arm_process_displaced_insn): Likewise..
2436 (decode_misc_memhint_neon): Delete.
2437 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2438 (decode_miscellaneous): Delete.
2439 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2440 (decode_dp_misc): Delete.
2441 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2442 (decode_ld_st_word_ubyte): Delete.
2443 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2444 (decode_media): Delete.
2445 (arm_decode_media): Renamed from decode_media.
2446 (decode_b_bl_ldmstm): Delete.
2447 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2448 (decode_ext_reg_ld_st): Delete.
2449 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2450 (decode_unconditional): Delete.
2451 (arm_decode_unconditional): Renamed from decode_unconditional.
2453 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2455 Case insensitive lookups implementation.
2456 * dwarf2read.c: Include ctype.h.
2457 (struct mapped_index): New field version.
2458 (mapped_index_string_hash): New parameter index_version. New comment
2459 for it. Call tolower appropriately.
2460 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2461 Choose the right index version for mapped_index_string_hash.
2462 (dwarf2_read_index): Support also the index version 5. Initialize the
2463 new struct mapped_index field version.
2464 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2465 (find_slot): Explain the version needs. Pass INT_MAX for the new
2467 (write_psymtabs_to_index): Produce version 5.
2468 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2469 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2470 * psymtab.c (lookup_partial_symbol): Find the
2471 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2473 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2475 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2476 (completion_list_add_name): New variable ncmp, initialize it, use it.
2477 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2478 * utils.c (strcmp_iw): Support case_sensitive_off.
2479 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2480 New function comment part. New variables saved_string1,
2481 saved_string2 and case_pass. Add a proper second pass.
2483 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2485 Replace re_comp/re_exec by regcomp/regexec.
2486 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2487 (search_symbols_name_matches): Use them, use regexec.
2488 (search_symbols): New variable retval_chain, adjust the use of
2489 old_chain against it. Replace re_comp by regcomp. Use the new struct
2490 search_symbols_data fields, use regexec instead of re_exec.
2492 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 Format the code for the next patch.
2495 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2496 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2497 New variables c1 and c2.
2499 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2501 * infrun.c (proceed): Do not single-step into signal delivery
2502 when stepping off a breakpoint location.
2503 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2504 (insert_step_resume_breakpoint_at_caller): Likewise.
2505 (insert_step_resume_breakpoint_at_sal): Likewise.
2506 (insert_longjmp_resume_breakpoint): Likewise.
2508 2011-04-27 Yao Qi <yao@codesourcery.com>
2510 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2512 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2514 * procfs.c (procfs_pass_signals): Fix advance declaration.
2516 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2518 * target.h (struct target_ops): Remove to_notice_signals;
2519 add to_pass_signals.
2520 (target_notice_signals): Remove.
2521 (target_pass_signals): Add prototype.
2522 * target.c (update_current_target): Remove to_notice_signals;
2523 mention to_pass_signals.
2524 (target_pass_signals): New function.
2525 (debug_to_notice_signals): Remove.
2526 (setup_target_debug): Do not install debug_to_notice_signals.
2528 * infrun.c (signal_pass): New global.
2529 (resume): Call target_pass_signals.
2530 (handle_inferior_event): Report all signals while stepping over
2531 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2532 are re-inserted when stepping over a signal handler.
2533 (signal_cache_update): New function.
2534 (signal_stop_update): Call it.
2535 (signal_print_update): Likewise.
2536 (signal_pass_update): Likewise.
2537 (handle_command): Call signal_cache_update and target_pass_signals
2538 instead of target_notice_signals.
2539 (_initialize_infrun): Initialize signal_pass.
2541 * linux-nat.c (pass_mask): New global.
2542 (linux_nat_pass_signals): New function.
2543 (linux_nat_create_inferior): Report all signals initially.
2544 (linux_nat_attach): Likewise.
2545 (linux_nat_resume): Use pass_mask to decide whether to directly
2546 handle an inferior signal.
2547 (linux_nat_wait_1): Likewise.
2548 (linux_nat_add_target): Install to_pass_signals callback.
2550 * nto-procfs.c (notice_signals): Remove.
2551 (procfs_resume): Do not call notice_signals.
2552 (procfs_notice_signals): Remove.
2553 (procfs_pass_signals): New function.
2554 (init_procfs_ops): Install to_pass_signals callback instead of
2555 to_notice_signals callback.
2556 (_initialize_procfs): Report all signals initially.
2558 * procfs.c (procfs_notice_signals): Remove.
2559 (procfs_pass_signals): New function.
2560 (procfs_target): Install to_pass_signals callback instead of
2561 to_notice_signals callback.
2562 (register_gdb_signals): Remove.
2563 (procfs_debug_inferior): Report all signals initially.
2564 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2566 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2567 parameters; use them instead of calling signal_..._state routines.
2568 (remote_notice_signals): Remove.
2569 (remote_start_remote): Report all signals initially.
2570 (remote_resume): Do not call remote_pass_signals.
2571 (_initialize_remote): Install to_pass_signals callback instead of
2572 to_notice_signals callback.
2574 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2576 * breakpoint.c (user_settable_breakpoint): Delete.
2577 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2578 (delete_command): Check user_breakpoint_p instead of looking at
2579 the breakpoint's type.
2580 (disable_command): Ditto.
2581 (enable_command): Ditto.
2582 (delete_trace_command): Use user_breakpoint_p instead of looking
2583 at the breakpoint number directly. When checking if there are
2584 user visible tracepoints, in order to know whether to ask the user
2585 for confirmation, check whether the breakpoint is actually a
2588 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2590 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2593 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2595 MI breakpoint notifications.
2597 * annotate.c (breakpoint_changed): Adjust parameter type.
2598 * breakpoint.c (set_breakpoint_condition): Adjust to change
2599 in breakpoint_modified type.
2600 (breakpoint_set_commands): Likewise.
2601 (do_map_commands_command): Likewise.
2602 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2603 changed after bumping hit count.
2604 (bpstat_stop_status): Likewise.
2605 (print_one_breakpoint_location): Don't wrap in tuple here.
2606 (print_one_breakpoint): Always print individual locations.
2607 For locations, use unnamed tuple.
2608 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2610 (create_catchpoint, create_syscall_event_catchpoint): Call
2611 breakpoint_created obsever.
2612 (mention): Don't call breakpoint_created observer.
2613 (create_breakpoint_sal): Call breakpoint_created observer.
2614 (create_breakpoint, watch_command_1): Likewise.
2615 (create_ada_exception_breakpoint): Likewise.
2616 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2617 (locations_are_equal): New.
2618 (update_breakpoint_locations): If locations were changed, notify.
2619 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2620 Call breakpoint_modified observer.
2622 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2623 (mi_cmd_break_insert): Don't set observers for modify and delete.
2624 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2625 (mi_breakpoint_created, mi_breakpoint_deleted)
2626 (mi_breakpoint_modified): New.
2627 (mi_interpreter_init): Hook the above.
2628 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2629 while -break-* commands are executing.
2630 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2631 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2633 (mi_ui_out_impl): Hook in mi_redirect.
2634 (mi_field_skip): True to the name, skip the field, don't output
2635 a field with an empty value.
2637 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2638 (gdbpy_breakpoint_deleted): Adjust.
2639 * tui/tui-hooks.c (tui_event_create_breakpoint)
2640 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2642 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2644 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2645 (procfs_remove_hw_watchpoint): Likewise.
2647 2011-04-26 Michael Walle <michael@walle.cc>
2649 * remote.c (remote_start_remote): Ack packet after sending the
2652 2011-04-26 Yao Qi <yao@codesourcery.com>
2654 * linux-nat.c: Move common macros to ...
2655 Include linux-ptrace.h.
2656 * common/linux-ptrace.h: ... here. New.
2658 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2661 !objfile_has_partial_symbols. New comment.
2662 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2663 SYM_READ_PSYMBOLS is not present. Extend the comment.
2664 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2666 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2668 * defs.h (ENUM_BITFIELD): Remove.
2670 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2671 Eli Zaretskii <eliz@gnu.org>
2673 * NEWS: Document the new gdbserver --once option.
2675 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2677 * MAINTAINERS: Update my email address.
2679 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2681 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2682 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2683 function call if __STDC_ISO_10646__ macro is defined.
2684 (intermediate_encoding): New prototype.
2685 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2686 to generate compile time error for unsupported gdb_wchar_t size.
2687 (ENDIAN_SUFFIX): New macro.
2688 (intermediate_encoding): New function.
2690 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2692 * ada-lang.c (struct add_partial_datum): Update the comment for
2693 expand_partial_symbol_name.
2694 (ada_add_partial_symbol_completions): Rename to ...
2695 (ada_expand_partial_symbol_name): ... here, change return type, update
2696 function comment, call symbol_completion_match instead of
2697 symbol_completion_add.
2698 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2699 and ada_expand_partial_symbol_name.
2700 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2702 (dw2_map_symbol_names): Remove.
2703 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2704 * psymtab.c (map_symbol_names_psymtab): Remove.
2705 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2706 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2708 (psym_functions): Unlist map_symbol_names_psymtab.
2709 (map_partial_symbol_names): Rename to ...
2710 (expand_partial_symbol_names): ... here, change the FUN type, call
2711 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2712 * psymtab.h (map_partial_symbol_names): Rename to ...
2713 (expand_partial_symbol_names): ... here, change the FUN type.
2714 * symfile.h (struct quick_symbol_functions): Update the description of
2715 expand_symtabs_matching. Remove map_symbol_names.
2716 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2717 (struct add_name_data): Update the comment for
2718 expand_partial_symbol_name.
2719 (add_partial_symbol_name): Rename to ...
2720 (expand_partial_symbol_name): ... here. Replace
2721 completion_list_add_name call by strncmp.
2722 (default_make_symbol_completion_list_break_on): Use now
2723 expand_partial_symbol_names and expand_partial_symbol_name.
2724 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2726 2011-04-20 Tom Tromey <tromey@redhat.com>
2728 * dwarf2read.c (save_gdb_index_command): Replace format
2729 documentation with a pointer to the manual.
2731 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2733 * regcache.c: Include remote.h.
2734 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2735 (regcache_dump): Handle regcache_dump_remote.
2736 (maintenance_print_remote_registers): New function.
2737 (_initialize_regcache): Install "maint print remote-registers"
2739 * remote.c (map_regcache_remote_table): New function, factored out
2741 (init_remote_state): ... here.
2742 (remote_register_number_and_offset): New.
2743 * remote.h (remote_register_number_and_offset): Declare.
2745 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2747 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2748 null_ptid, assume and allow a NULL address space, instead of
2749 asking the target for the ptid's address space.
2750 * infrun.c (ptid_is_pid): Remove assertion.
2752 2011-04-19 Tom Tromey <tromey@redhat.com>
2754 * windows-tdep.c (windows_xfer_shared_library):
2755 * windows-nat.c (get_module_name, windows_make_so):
2756 * v850-tdep.c (v850_handle_pushm):
2757 * utils.c (null_cleanup, gdb_realpath):
2758 * ui-out.c (get_next_header):
2759 * tracepoint.c (clear_traceframe_info):
2760 * symtab.c (lookup_symtab):
2761 * serial.h (struct serial_ops):
2762 * mipsread.c (read_alphacoff_dynamic_symtab):
2763 * infcmd.c (print_return_value):
2764 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2765 * f-exp.y (parse_number):
2766 * exceptions.c (catch_exceptions):
2767 * dummy-frame.c (dummy_frame_this_id):
2768 * defs.h (struct cleanup):
2769 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2770 * arm-tdep.c (arm_push_dummy_call):
2771 * amd64-tdep.h (amd64_collect_xsave):
2772 * amd64-tdep.c (amd64_collect_xsave):
2773 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2774 * README (typing): Remove duplicate words.
2775 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2776 * infrun.c (siginfo_value_read): Fix typo.
2777 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2778 * top.c (source_line_number): Add comma.
2780 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2782 * thread.c (any_live_thread_of_process): Prioritize threads
2783 that are not executing.
2784 * gdbthread.h (any_live_thread_of_process): Update comment
2785 as per above change.
2787 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2789 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2790 (scan_xcoff_symtab): Likewise.
2792 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2794 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2797 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2798 Pedro Alves <pedro@codesourcery.com>
2800 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2801 variables to simplify code and avoid == operator at end of
2802 line as this is against GNU coding standards.
2804 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2806 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2807 lm_name to name_lm to avoid conflict with lm_name function.
2809 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2811 ARI fixes: Use only lowercase function name for static functions.
2812 * nto-tdep.c (LM_ADDR): Rename to...
2813 (lm_addr): New function name.
2814 (nto_relocate_section_addresses): Adapt to change above.
2815 * solib-sunos.c (LM_ADDR): Rename to...
2816 (lm_addr): New function name.
2817 (LM_NEXT): Rename to...
2818 (lm_next): New function name.
2819 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2820 function name changes above.
2821 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2822 (lm_addr_from_link_map): New function name.
2823 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2824 (has_lm_dynamic_from_link_map): New function name.
2825 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2826 (lm_dynamic_from_link_map): New function name.
2827 (LM_ADDR_CHECK): Rename to...
2828 (lm_addr_check): New function name.
2829 (LM_NEXT): Rename to...
2830 (lm_next): New function name.
2831 (LM_PREV): Rename to...
2832 (lm_prev): New function name.
2833 (LM_NAME): Rename to...
2834 (lm_name): New function name.
2835 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2836 (ignore_first_link_map_entry): New function name.
2837 (svr4_keep_data_in_core): Adapt to function name changes above.
2838 (svr4_current_sos): Likewise.
2839 (enable_break): Likewise.
2840 (svr4_relocate_section_addresses): Likewise.
2842 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2845 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2846 sprintf. Simplify code and avoid loosing memory.
2847 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2848 (call0_frame_cache): Remove && operator from end of line.
2850 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2852 Fix libraries displacement if they change whether they were prelinked.
2853 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2854 does not match. Comment why.
2856 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2858 * corelow.c: Include wrapper.h.
2859 (core_open): Call now gdb_target_find_new_threads.
2860 * wrapper.c: Include target.h.
2861 (gdb_target_find_new_threads): New.
2862 * wrapper.h (gdb_target_find_new_threads): New declaration.
2864 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2866 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2867 even if !TARGET_HAS_EXECUTION.
2869 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2871 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2872 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2873 bfd_get_synthetic_symtab.
2874 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2875 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2876 parameter parent, remove the call to add_separate_debug_objfile.
2877 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2878 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2879 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2880 parent, new comment for it, call add_separate_debug_objfile for it.
2881 (symbol_file_add_separate): Pass objfile as the parameter parent,
2882 remove the call to add_separate_debug_objfile.
2883 (symbol_file_add_from_bfd): New parameter parent, pass it.
2884 (symbol_file_add): Pass NULL to the new parameter parent.
2885 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2887 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2892 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2894 Fix Python access to inlined frames.
2895 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2896 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2898 2011-04-15 Tom Tromey <tromey@redhat.com>
2900 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2902 2011-04-15 Gary Benson <gbenson@redhat.com>
2904 * MAINTAINERS: Add myself to write-after-approval section.
2906 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2908 * remote-sim.c (sim_command_completer): New function.
2909 (_initialize_remote_sim): Set completer to sim_command_completer.
2911 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2913 * breakpoint.c (print_exception_catchpoint): Rename to ...
2914 (print_it_exception_catchpoint): ... this.
2915 (gnu_v3_exception_catchpoint_ops): Update with new name
2916 for print_it_exception_catchpoint.
2918 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2920 * MAINTAINERS: Add myself for write after approval privileges.
2922 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2924 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2926 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2928 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2930 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2932 * breakpoint.c (save_breakpoints): Verify whether
2933 breakpoint_ops.print_recreate is defined before calling it.
2935 2011-04-11 Gary Benson <gbenson@redhat.com>
2937 Fix failure with --enable-maintainer-mode.
2938 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2940 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2943 * symtab.c (search_symbols): Reorder the KIND description in the
2944 function comment. Remove the unused 4th element of types, types2,
2945 types3 and types4. New gdb_assert on KIND.
2946 (symtab_symbol_info): Remove the unused 4th element of classnames.
2947 New gdb_assert on KIND.
2948 * symtab.h (enum search_domain): New warning in the enum comment.
2949 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2952 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2954 Fix crash of gdb save-index on a STABS file.
2955 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2958 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2960 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2961 * dwarf2read.c: Include ctype.h.
2962 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2964 (dwarf2_add_field): Fix new_field->accessibility by calling
2965 dwarf2_default_access_attribute. Restructure setting accessibility
2967 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2968 is_private and is_protected by calling
2969 dwarf2_default_access_attribute.
2971 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2973 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2974 to the initialization.
2976 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2978 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2981 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2983 Remove support for old Cygwin 1.5 versions.
2984 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2985 function on old Cygwin version.
2986 * windows-nat.c: Remove cygwin version check and always define
2987 __USEWIDE for Cygwin compilation.
2989 2011-04-07 Yao Qi <yao@codesourcery.com>
2991 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2993 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2994 (arm_copy_svc): Remove parameters INSN and TO.
2995 (decode_svc_copro): Update caller.
2996 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2997 from function pointer `copy_svc_os'.
2999 2011-04-07 Yao Qi <yao@codesourcery.com>
3001 * arm-tdep.c (cleanup_branch): Set a correct return address in
3002 LR for ARM and Thumb.
3004 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3007 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3008 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3009 in the function comment, a new note on values compatibility.
3010 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3011 * symtab.h (SYMBOL_HASH_NEXT): New.
3013 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3015 * ppc-linux-nat.c (check_condition): Add len output parameter.
3016 Set it based on the memory region referenced in the condition
3017 expression. Update all callers.
3019 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3021 Fix crash regression on systems featuring .gdb_index.
3022 * objfiles.c (free_objfile): Move the
3023 forget_cached_source_info_for_objfile call earlier. Comment it.
3024 Extend the comment for objfile_free_data.
3026 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 Fix regression of displaying the debug format.
3029 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3032 2011-04-04 Tom Tromey <tromey@redhat.com>
3034 * cli/cli-interp.c (struct captured_execute_command_args):
3036 (do_captured_execute_command): Remove.
3037 (safe_execute_command): Use TRY_CATCH.
3038 * cli/cli-script.c (struct wrapped_read_command_file_args):
3040 (wrapped_read_command_file): Remove.
3041 (script_from_file): Use TRY_CATCH.
3042 * exceptions.c (catch_exception): Remove.
3043 * exceptions.h (catch_exception): Remove.
3044 (deprecated_throw_reason): Update comment.
3045 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3046 argument to 'context'.
3047 (mi_execute_command): Use TRY_CATCH.
3048 * remote.c (struct start_remote_args): Remove.
3049 (remote_start_remote): Update; change arguments.
3050 (remote_open_1): Use TRY_CATCH.
3052 2011-04-04 Tom Tromey <tromey@redhat.com>
3054 * tracepoint.c (scope_info): Update.
3055 * symtab.c (decode_line_spec): Update.
3056 * python/python.c (gdbpy_decode_line): Update.
3057 * linespec.h (decode_line_1): Update.
3058 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3059 (decode_compound, find_method, symtab_from_filename)
3060 (decode_variable): Likewise.
3061 * cli/cli-cmds.c (edit_command): Update.
3062 (list_command): Update.
3063 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3065 (create_breakpoint): Update.
3066 (until_break_command): Update.
3067 (addr_string_to_sals): Update.
3068 (decode_line_spec_1): Update.
3070 2011-04-04 Tom Tromey <tromey@redhat.com>
3072 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3073 (do_captured_parse_breakpoint): Remove.
3074 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3075 Use TRY_CATCH directly.
3077 2011-04-04 Tom Tromey <tromey@redhat.com>
3079 * symtab.h (free_symtab): Remove.
3080 (forget_cached_source_info_for_objfile): Declare.
3081 * symmisc.c (free_symtab): Remove.
3082 * source.c (forget_cached_source_info_for_objfile): New function.
3083 (forget_cached_source_info): Use it.
3084 * objfiles.c (free_objfile): Simplify check before calling
3085 clear_current_source_symtab_and_line. Call
3086 forget_cached_source_info_for_objfile.
3088 2011-04-04 Tom Tromey <tromey@redhat.com>
3090 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3091 (new_symtab): Don't set `free_code' on symtab.
3092 (new_linetable): Properly handle size==0.
3093 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3094 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3096 * jv-lang.c (struct jv_per_objfile_data): New.
3097 (jv_per_objfile_free): Free the data.
3098 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3099 (get_java_class_symtab): Set the `dict' field on the
3100 jv_per_objfile_data.
3101 (free_class_block): Remove.
3102 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3105 2011-04-04 Tom Tromey <tromey@redhat.com>
3107 * symfile.c (reread_symbols): Update.
3108 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3110 * objfiles.c (allocate_objfile): Update.
3111 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3113 * cp-namespace.c (lookup_symbol_file): Don't call
3114 lookup_possible_namespace_symbol.
3115 (initialize_namespace_symtab, get_possible_namespace_block)
3116 (free_namespace_block, cp_check_possible_namespace_symbols)
3117 (check_possible_namespace_symbols_loop)
3118 (check_one_possible_namespace_symbol)
3119 (lookup_possible_namespace_symbol): Remove.
3120 (maintenance_cplus_namespace): Replace with notice.
3121 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3123 2011-04-04 Tom Tromey <tromey@redhat.com>
3125 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3126 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3127 * symmisc.c (free_symtab): Don't free debugformat.
3128 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3129 (record_debugformat, record_producer): Document.
3130 * buildsym.c (end_symtab): Don't save debugformat and producer
3132 (end_symtab): Don't free debugformat and producer fields.
3133 (record_debugformat): Don't call xstrdup.
3134 (record_producer): Likewise.
3136 2011-04-04 Tom Tromey <tromey@redhat.com>
3138 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3139 (source_line_charpos, source_charpos_line): Remove.
3141 2011-04-04 Tom Tromey <tromey@redhat.com>
3143 * symtab.h (domain_enum): Split in two...
3144 (enum search_domain): New.
3145 (search_symbols): Update.
3146 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3147 redundant declarations.
3148 (search_symbols): Change 'kind' argument to search_domain.
3150 (print_symbol_info): Likewise.
3151 (symtab_symbol_info): Likewise.
3152 * symfile.h (struct quick_symbol_functions)
3153 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3154 <expand_symtabs_matching>: Likewise.
3155 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3156 (expand_symtabs_matching_via_partial): Update.
3157 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3158 (dw2_expand_symtabs_for_function): Update.
3159 * block.h: Moved anonymous enum...
3160 * defs.h (enum block_enum): ... here. Now named.
3162 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3164 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3165 * version.in: Bump version to 7.3.50.20110403-cvs.
3167 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3169 * NEWS: Create a new section for the next release branch.
3170 Rename the section of the current branch, now that it has
3173 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3175 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3176 for "fpscr" in target description.
3178 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3180 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3181 initialize it. Delay HASH initialization. Strip the part after open
3182 parenthesis for languages with qualifiers. Call do_cleanups.
3184 2011-04-01 Tom Tromey <tromey@redhat.com>
3186 * utils.c (report_command_stats): Don't print `-' for negative
3189 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3191 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3192 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3195 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3197 * breakpoint.h (bpdisp_text): Add declaration.
3198 * breakpoint.c (bpdisp_text): Make non-static.
3199 * ada-lang.c: #include "mi/mi-common.h".
3200 (print_it_exception): Rewrite to improve GDB/MI output.
3202 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3204 * arm-tdep.h (struct address_space): Add forward declaration.
3206 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3208 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3209 * arm-tdep.c (arm_override_mode): New global.
3210 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3211 execution mode heuristics.
3212 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3213 second single-step breakpoint if needed, using
3214 arm_insert_single_step_breakpoint.
3215 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3216 ARM execution mode, do not call thumb_get_next_pc_raw.
3217 (arm_get_next_pc): Encode execution mode in return value. Call
3218 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3219 (arm_insert_single_step_breakpoint): New function.
3220 (arm_software_single_step): Call it.
3221 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3222 argument to return execution mode of sigreturn target.
3223 (arm_linux_syscall_next_pc): Use it.
3224 (arm_linux_copy_svc): Update call.
3225 (arm_linux_software_single_step): Call
3226 arm_insert_single_step_breakpoint.
3228 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3230 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3233 2011-03-31 Tom Tromey <tromey@redhat.com>
3235 * varobj.c (update_dynamic_varobj_children): Properly handle
3236 errors from iterator.
3238 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3241 struct linkage name twice.
3243 2011-03-31 Tom Tromey <tromey@redhat.com>
3245 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3246 missing ">" to message.
3248 2011-03-31 Tom Tromey <tromey@redhat.com>
3250 * varobj.c (instantiate_pretty_printer): Remove duplicate
3253 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3255 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3256 if neither saved value nor register available (e.g. signal frame).
3258 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3260 * macroexp.c (expand): Avoid uninitialized variable
3263 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3265 * breakpoint.c (break_range_command): Fix typo in comment.
3267 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3268 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3270 Implement support for PowerPC BookE ranged breakpoints.
3271 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3272 * breakpoint.h (struct bp_target_info) <length>: New member
3274 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3275 instead of struct breakpoint as argument, and also add ASPACE
3276 and BP_ADDR arguments. Update all callers.
3277 (struct breakpoint_ops) <print_one_detail>: New method.
3278 (struct breakpoint) <addr_string_range_end>: New member variable.
3279 * breakpoint.c (breakpoint_location_address_match): Add function
3281 (insert_bp_location): Set bl->target_info.length.
3282 (breakpoint_here_p): Call breakpoint_location_address_match.
3283 (moribund_breakpoint_here_p): Likewise.
3284 (regular_breakpoint_inserted_here_p): Likewise.
3285 (breakpoint_thread_match): Likewise.
3286 (bpstat_stop_status): Likewise.
3287 (bpstat_check_location): Move call to
3288 breakpoint_ops.breakpoint_hit to the top.
3289 (print_one_breakpoint_location): Call
3290 breakpoint_ops.print_one_detail if available.
3291 (breakpoint_address_match_range): New function.
3292 (breakpoint_location_address_match): Likewise.
3293 (breakpoint_locations_match): Compare the length field of the
3295 (hw_breakpoint_used_count): Count resources used by all locations
3296 in a breakpoint, and use breakpoint_ops.resources_needed if
3298 (breakpoint_hit_ranged_breakpoint): New function.
3299 (resources_needed_ranged_breakpoint): Likewise.
3300 (print_it_ranged_breakpoint): Likewise.
3301 (print_one_ranged_breakpoint): Likewise.
3302 (print_one_detail_ranged_breakpoint): Likewise.
3303 (print_mention_ranged_breakpoint): Likewise.
3304 (print_recreate_ranged_breakpoint): Likewise.
3305 (ranged_breakpoint_ops): New structure.
3306 (find_breakpoint_range_end): New function.
3307 (break_range_command): Likewise.
3308 (delete_breakpoint): Free addr_string_range_end.
3309 (update_breakpoint_locations): Add SALS_END argument. Update
3310 all callers. Calculate breakpoint length if a non-zero SALS_END
3311 is given. Call breakpoint_locations_match instead of
3312 breakpoint_address_match.
3313 (reset_breakpoint): Find SaL of the end of the range if B is a
3315 (_initialize_breakpoint): Register break-range command.
3316 * defs.h (print_core_address): Add function prototype.
3317 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3319 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3320 (ppc_linux_remove_hw_breakpoint): Likewise.
3321 (_initialize_ppc_linux_nat): Initialize
3322 to_ranged_break_num_registers.
3323 * target.c (update_current_target): Add comment about
3324 to_ranged_break_num_registers.
3325 (target_ranged_break_num_registers): New function.
3326 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3328 (target_ranged_break_num_registers): Add function prototype.
3329 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3330 * utils.c (print_core_address): ... here.
3332 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3334 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3335 variable compiler warning.
3337 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3339 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3341 (re_set_breakpoint): ... to here ...
3342 (addr_string_to_sals): ... and here.
3344 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3346 * Makefile.in (SFILES): Add missing C sources.
3347 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3348 Add missing headers.
3350 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3352 * .gitignore: New file.
3354 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3356 * NEWS: Mention new cfi device simulation.
3358 2011-03-29 Tom Tromey <tromey@redhat.com>
3360 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3361 otherwise anonymous types.
3362 (dwarf2_name): Likewise.
3363 * valops.c (value_struct_elt_for_reference): Refine artificial
3364 type logic. Call error if j==-1.
3366 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3368 Fix false GCC warning.
3369 * infcall.c (find_function_addr): Initialize funaddr.
3371 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3373 Fix mingw compilation with --enable-targets=all.
3374 * remote-mips.c (gdb_usleep.h): Include header.
3375 (mips_enter_debug): Use gdb_usleep instead of sleep.
3377 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3379 Support resolution of STT_GNU_IFUNC via breakpoints.
3380 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3381 bp_gnu_ifunc_resolver_return.
3382 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3383 the loop. Support bp_gnu_ifunc_resolver and
3384 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3385 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3387 (bptype_string, print_one_breakpoint_location): Support
3388 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3389 (user_settable_breakpoint): Return true also for
3390 bp_gnu_ifunc_resolver.
3391 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3392 bp_gnu_ifunc_resolver_return.
3393 (set_breakpoint_location_function): New parameter explicit_loc,
3394 describe it. Call find_pc_partial_function_gnu_ifunc with new
3395 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3396 EXPLICIT_LOC is not set.
3397 (set_raw_breakpoint): Set EXPLICIT_LOC for
3398 set_breakpoint_location_function.
3399 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3400 set_breakpoint_location_function.
3401 (mention): Support bp_gnu_ifunc_resolver and
3402 bp_gnu_ifunc_resolver_return.
3403 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3404 set_breakpoint_location_function.
3405 (update_breakpoint_locations): Remove static.
3406 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3407 bp_gnu_ifunc_resolver_return.
3408 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3409 bp_gnu_ifunc_resolver_return.
3410 (update_breakpoint_locations): New declaration.
3411 * elfread.c: Include gdbthread.h and regcache.h.
3412 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3414 (elf_gnu_ifunc_fns): Install them.
3415 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3416 (stub_gnu_ifunc_resolver_return_stop): New functions.
3417 (stub_gnu_ifunc_fns): Install them.
3418 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3419 and gnu_ifunc_resolver_return_stop.
3420 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3422 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3424 STT_GNU_IFUNC reader implementation.
3425 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3426 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3427 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3428 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3429 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3430 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3431 (elf_gnu_ifunc_resolve_addr): New.
3432 (elf_symfile_read): Call elf_rel_plt_read.
3433 (elf_gnu_ifunc_fns): New.
3434 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3435 Install elf_gnu_ifunc_fns.
3436 * infcall.c (find_function_return_type): New function.
3437 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3438 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3439 (stub_gnu_ifunc_resolve_name): New functions.
3440 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3441 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3442 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3444 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3446 Code cleanup for later STT_GNU_IFUNC support.
3447 * infcall.c (find_function_addr): Remove variable code, use explicit
3448 dereferences for it. Move VALUE_TYPE initialization later.
3450 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3453 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3454 (clear_pc_function_cache): Clear it.
3455 (find_pc_partial_function): Rename to ...
3456 (find_pc_partial_function_gnu_ifunc): ... this function. New
3457 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3458 (find_pc_partial_function): New wrapper for this function.
3459 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3461 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 GDB internal type support for STT_GNU_IFUNC.
3464 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3465 (elf_symtab_read): Set mst_text_gnu_ifunc for
3466 BSF_GNU_INDIRECT_FUNCTION.
3467 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3468 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3469 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3470 nodebug_got_plt_symbol.
3471 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3472 (TYPE_GNU_IFUNC): New.
3473 (struct main_type): New field flag_gnu_ifunc.
3474 (struct builtin_type): New field builtin_func_func.
3475 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3476 nodebug_got_plt_symbol.
3477 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3478 (in_gnu_ifunc_stub): New.
3479 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3481 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3482 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3483 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3485 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3486 * symtab.c (search_symbols): Likewise.
3487 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3488 and mst_slot_got_plt.
3489 (in_gnu_ifunc_stub): New declaration.
3491 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3493 Support a ring of related breakpoints.
3494 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3495 other functions, add gdb_assert.
3496 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3497 watchpoint_del_at_next_stop.
3498 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3499 (bpstat_stop_status): Handle ring in related_breakpoint.
3500 (set_raw_breakpoint_without_location): Initialize ring in
3502 (delete_breakpoint): Handle ring in related_breakpoint, use
3503 watchpoint_del_at_next_stop.
3504 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3506 2011-03-28 Tom Tromey <tromey@redhat.com>
3509 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3510 with `language_minimal'.
3512 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3514 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3515 instead of checking for STT_ARM_TFUNC symbol type.
3517 2011-03-25 Tom Tromey <tromey@redhat.com>
3519 * linespec.c (symbol_found): Restore line-based result for
3520 non-LOC_LABEL symbols.
3522 2011-03-25 Kai Tietz <ktietz@redhat.com>
3524 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3525 instead of strcmp for comparison.
3526 (tui_source_is_displayed): Likewise.
3527 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3529 2011-03-24 Mark Wielaard <mjw@redhat.com>
3531 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3533 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3534 (find_partial_die_in_comp_unit): Likewise in comment.
3535 (read_attribute_value): Likewise.
3536 (lookup_die_type): Likewise.
3537 (dwarf_form_name): Likewise.
3538 (dump_die_shallow): Likewise.
3539 (follow_die_ref_or_sig): Likewise.
3541 2011-03-24 Tom Tromey <tromey@redhat.com>
3543 PR breakpoints/11816:
3544 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3545 (decode_compound): Update.
3546 (find_function_symbol): New function.
3547 (decode_dollar): Update.
3548 (decode_label): Add 'function_symbol' parameter. Handle
3549 function-relative labels.
3550 (decode_variable): Update.
3551 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3552 not its line. Set `special_display' and canonical name for
3555 2011-03-24 Tom Tromey <tromey@redhat.com>
3557 * linespec.h (struct linespec_result) <special_display>: New
3559 * breakpoint.h (struct breakpoint) <display_canonical>: New
3561 * breakpoint.c (print_breakpoint_location): Respect
3563 (create_breakpoint_sal): Add 'display_canonical' parameter.
3564 (create_breakpoints_sal): Update.
3565 (create_breakpoint): Update.
3567 2011-03-24 Tom Tromey <tromey@redhat.com>
3569 * symtab.c (decode_line_spec): Update.
3570 * linespec.c (build_canonical_line_spec): Change type of
3572 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3573 (find_method, decode_all_digits, decode_dollar, decode_label)
3574 (symbol_found): Likewise.
3575 (init_linespec_result): New function.
3576 * breakpoint.c (struct captured_parse_breakpoint_args)
3577 <canonical_p>: New field, replaces addr_string_p.
3578 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3580 (parse_breakpoint_sals): Likewise.
3581 (do_captured_parse_breakpoint): Update.
3582 (create_breakpoint): Use struct linespec_result.
3583 (until_break_command): Update.
3584 (breakpoint_re_set_one): Update.
3585 (decode_line_spec_1): Update.
3586 * linespec.h (struct linespec_result): New.
3587 (init_linespec_result): Declare.
3589 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3591 * regcache.c (regcache_raw_read): If the target didn't supply a
3592 given raw register, mark it as unavailable.
3594 2011-03-23 Kai Tietz <ktietz@redhat.com>
3596 * breakpoint.c (clear_command): Use filename_cmp
3597 instead of strcmp for comparison.
3598 * buildsym.c (watch_main_source_file_lossage): Likewise.
3599 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3600 checking just for slash.
3601 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3602 strrchr and filename_cmp instead of strcmp for filenames.
3603 (add_old_header_file): Use filename_cmp
3604 instead of strcmp for comparison.
3605 * exec.c (exec_set_section_address): Likewise.
3606 * macrotab.c (macro_lookup_inclusion): Likewise.
3607 (macro_lookup_inclusion): Likewise.
3608 * elfread.c (_initialize_elfread): Likewise.
3609 (elfstab_offset_sections): Likewise.
3610 (elfstab_offset_sections): Use lbasename instead of
3612 * mdebugread.c (parse_partial_symbols): Likewise.
3613 (arse_partial_symbols): Use filename_(n)cmp instead of
3614 str(n)cmp for comparison.
3615 * minsyms.c (lookup_minimal_symbol): Likewise.
3616 * psymtab.c (read_psymtabs_with_filename): Likewise.
3617 * solib.c (solib_read_symbols): Likewise.
3618 (reload_shared_libraries_1): Likewise.
3619 * symmisc.c (maintenance_print_symbols): Likewise.
3620 * symfile.c (separate_debug_file_exists): Likewise.
3621 (reread_symbols): Likewise.
3622 (find_separate_debug_file_by_debuglink): Likewise.
3623 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3624 * source.c (add_path): Likewise.
3625 * symtab.c (filename_seen): Likewise.
3626 (file_matches): Likewise.
3627 (print_symbol_info): Likewise.
3628 (maybe_add_partial_symtab_filename): Likewise.
3629 (make_source_files_completion_list): Likewise.
3630 * xml-syscall.c (init_sysinfo): Likewise.
3631 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3632 IS_DIR_SEPARATOR for checking for trailing path separator.
3634 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3636 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3637 label abort_expression.
3638 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3639 DWARF_VALUE_OPTIMIZED_OUT.
3641 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3644 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3645 to linkage_name. Invert its value. Update the function comment.
3646 (c_type_print_varspec_suffix): Invert it at the caller.
3647 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3649 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3651 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3652 errors when reading the `stop_pc'.
3653 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3656 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3658 * NEWS: Document gdb.Write stream keyword.
3660 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3663 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3664 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3665 (dwarf2_add_field): Fix new_field->accessibility for
3666 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3668 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3672 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3673 other error classes. Do not print stack trace.
3675 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3677 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3678 (dwarf2_add_field): Fix new_field->accessibility for
3679 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3681 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3683 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3684 encountering a load via a non-SP register.
3686 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3688 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3689 field in returned unwinder.
3691 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3693 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3695 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3697 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3700 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3702 * frame.c (frame_unwind_register): Throw an error if unwinding the
3704 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3705 an unwind stop reason.
3706 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3707 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3708 UNWIND_UNAVAILABLE>: New.
3709 * inline-frame.c (inline_frame_unwind): Install
3710 default_frame_unwind_stop_reason.
3711 * frame-unwind.c: Include "exceptions.h".
3712 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3713 (default_frame_unwind_stop_reason): New.
3714 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3715 (default_frame_unwind_stop_reason): Declare.
3716 (struct frame_unwind) <stop_reason>: New function pointer.
3718 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3719 * dwarf2-frame.c: Include exceptions.h.
3720 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3721 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3722 computing the CFA. If such an error was thrown, set
3723 unavailable_retaddr.
3724 (dwarf2_frame_unwind_stop_reason): New.
3725 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3727 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3728 (dwarf2_signal_frame_unwind): Ditto.
3730 * amd64-tdep.c: Include "exceptions.h".
3731 (struct amd64_frame_cache): New field "base_p".
3732 (amd64_init_frame_cache): Clear it.
3733 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3734 Avoid reading registers with functions that throw if the register
3735 is not necessary to compute the frame base.
3736 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3737 swallowing NOT_AVAILABLE_ERROR.
3738 (amd64_frame_unwind_stop_reason): New.
3739 (amd64_frame_this_id): Don't build a frame id if the frame base
3741 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3742 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3743 base_p if the frame base was computable.
3744 (amd64_sigtramp_frame_unwind_stop_reason): New.
3745 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3746 frame base was unavailable.
3747 (amd64_sigtramp_frame_unwind): Install
3748 amd64_sigtramp_frame_unwind_stop_reason.
3749 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3750 base_p if the frame base was computable.
3751 (amd64_epilogue_frame_unwind_stop_reason): New.
3752 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3753 frame base was unavailable.
3754 (amd64_epilogue_frame_unwind): Install
3755 amd64_epilogue_frame_unwind_stop_reason.
3756 * i386-tdep.c: Include "exceptions.h".
3757 (struct i386_frame_cache): New field "base_p".
3758 (i386_init_frame_cache): Clear it.
3759 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3760 Avoid reading registers with functions that throw if the register
3761 is not necessary to compute the frame base.
3762 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3763 swallowing NOT_AVAILABLE_ERROR.
3764 (i386_frame_unwind_stop_reason): New.
3765 (i386_frame_this_id): Don't build a frame id if the frame base was
3767 (i386_frame_prev_register): Handle unavailable SP.
3768 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3769 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3770 base_p if the frame base was computable.
3771 (i386_epilogue_frame_unwind_stop_reason): New.
3772 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3773 base was unavailable.
3774 (i386_epilogue_frame_unwind): Install
3775 i386_epilogue_frame_unwind_stop_reason.
3776 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3777 base_p if the frame base was computable.
3778 (i386_sigtramp_frame_unwind_stop_reason): New.
3779 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3780 base was unavailable.
3781 (i386_sigtramp_frame_unwind): Install
3782 i386_sigtramp_frame_unwind_stop_reason.
3783 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3784 type's size, not the register's.
3785 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3787 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3788 default_frame_unwind_stop_reason.
3789 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3790 (alpha_heuristic_frame_unwind): Ditto.
3791 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3792 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3793 * avr-tdep.c (avr_frame_unwind): Ditto.
3794 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3796 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3797 * frv-tdep.c (frv_frame_unwind): Ditto.
3798 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3799 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3800 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3801 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3802 (hppa_stub_frame_unwind): Ditto.
3803 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3804 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3805 (ia64_libunwind_frame_unwind)
3806 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3807 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3808 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3809 * m32c-tdep.c (m32c_unwind): Ditto.
3810 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3811 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3812 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3813 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3814 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3815 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3816 * mep-tdep.c (mep_frame_unwind): Ditto.
3817 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3818 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3819 (mips_stub_frame_unwind): Ditto.
3820 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3821 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3822 * mt-tdep.c (mt_frame_unwind): Ditto.
3823 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3824 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3825 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3826 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3827 (s390_sigtramp_frame_unwind): Ditto.
3828 * score-tdep.c (score_prologue_unwind): Ditto.
3829 * sh-tdep.c (sh_frame_unwind): Ditto.
3830 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3831 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3832 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3833 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3834 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3835 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3836 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3837 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3838 (sparc64obsd_trapframe_unwind): Ditto.
3839 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3840 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3841 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3842 * v850-tdep.c (v850_frame_unwind): Ditto.
3843 * vax-tdep.c (vax_frame_unwind): Ditto.
3844 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3845 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3846 * xtensa-tdep.c (xtensa_unwind): Ditto.
3848 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3850 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3851 there's always a frame. Use get_frame_pc_if_available instead of
3852 get_frame_pc, and if there's no PC available, don't look up a
3855 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3857 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3860 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3862 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3865 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3867 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3868 * frame.c (frame_unwind_caller_pc_if_available): New.
3869 * stack.c (frame_info): Handle unavailable PC.
3871 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3873 * frame.c (frame_unwind_pc): Rename to ...
3874 (frame_unwind_pc_if_available): ... this. New `pc' output
3875 parameter. Change return type to int. Gracefully handle
3876 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3877 happened, or 1 otherwise.
3878 (frame_unwind_pc): Reimplement on top of
3879 frame_unwind_pc_if_available.
3880 (get_frame_func): Rename to ...
3881 (get_frame_func_if_available): New `pc' output parameter. Change
3882 return type to int. Gracefully handle the PC not being available.
3883 (get_frame_func): Reimplement on top of
3884 get_frame_func_if_available.
3885 (select_frame): Handle the PC being unavailable.
3886 (get_prev_frame): Handle the PC being unavailable.
3887 (get_frame_pc_if_available): New.
3888 (get_frame_address_in_block_if_available): New.
3889 (find_frame_sal): Handle the frame PC not being available.
3890 * frame.h (get_frame_pc_if_available): Declare.
3891 (get_frame_address_in_block_if_available): Declare.
3892 (get_frame_func_if_available): Declare.
3893 * stack.c (print_frame_info): Handle the PC being unavailable.
3894 (find_frame_funname): Ditto.
3895 (print_frame): Handle the PC being unavailable.
3896 (get_frame_language): Ditto.
3897 * blockframe.c (get_frame_block): Ditto.
3898 * macroscope.c (default_macro_scope): Ditto.
3899 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3901 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3903 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3904 NOT_AVAILABLE_ERROR when evaluating the location expression.
3906 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3908 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3909 returning that the register piece is unavailable/optimized out.
3910 (write_pieced_value): Handle get_frame_register_bytes returning
3911 that the register piece is unavailable/optimized out when doing a
3912 read-modify write of a bitfield.
3913 * findvar.c (value_from_register): Handle get_frame_register_bytes
3914 returning that the register piece is unavailable/optimized out.
3915 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3916 and `unavailablep'. Throw error on bad debug info. Use
3917 frame_register instead of frame_register_read, to fill in the new
3919 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3921 * valops.c: (value_assign): Adjust, and handle
3922 get_frame_register_bytes failing.
3923 * spu-tdep.c: Include exceptions.h.
3924 (spu_software_single_step): Adjust, and handle
3925 get_frame_register_bytes failing.
3926 (spu_get_longjmp_target): Ditto.
3927 * gdbarch.sh (register_to_value): Change to return int. New
3928 parameters `optimizedp' and `unavailablep'.
3929 * gdbarch.h, gdbarch.c: Regenerate.
3930 * i386-tdep.c (i386_register_to_value): Adjust to new
3931 gdbarch_register_to_value interface.
3932 * i387-tdep.c (i387_register_to_value): Ditto.
3933 * i387-tdep.h (i387_register_to_value): Ditto.
3934 * alpha-tdep.c (alpha_register_to_value): Ditto.
3935 * ia64-tdep.c (ia64_register_to_value): Ditto.
3936 * m68k-tdep.c (m68k_register_to_value): Ditto.
3937 * mips-tdep.c (mips_register_to_value): Ditto.
3938 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3940 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3942 * findvar.c (value_of_register): Mark the value as unavailable, if
3943 the register is unavailable.
3944 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3945 (frame_register): New `unavailablep' parameter.
3946 (frame_register_read): Update comment.
3947 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3948 Set it if the register is unavailable. If the register is
3949 unavailable, clear the output buffer.
3950 (frame_register): New `unavailablep' parameter. Pass it down.
3951 (frame_unwind_register): Adjust.
3952 (put_frame_register): Adjust.
3953 (frame_register_read): Adjust. Also return false if the register
3955 (frame_register_unwind_location): Adjust.
3956 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3957 is unavailable, mark the value accordingly.
3958 * stack.c (frame_info): Handle unavailable registers.
3960 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3962 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3963 simplify, using regcache_cooked_read.
3965 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3967 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3968 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3969 (regcache_raw_read_unsigned, regcache_raw_read_part)
3970 (regcache_cooked_read, regcache_cooked_read_signed)
3971 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3972 (regcache_cooked_read_ftype): Change return to enum
3974 * regcache.c: Include exceptions.h
3975 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3976 (do_cooked_read): Change return to enum register_status. Always
3977 forward to regcache_cooked_read.
3978 (regcache_raw_read): Change return to enum register_status. If
3979 the register is not REG_VALID, memset the buffer. Return the
3981 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3982 return the register's status.
3983 (regcache_raw_read_unsigned): Ditto.
3984 (regcache_cooked_read): Change return to enum register_status.
3985 Assert that with read-only regcaches, the register's status must
3986 be known. If the regcache is read-only, and the register is not
3987 REG_VALID, memset the buffer. Return the register's status.
3988 (regcache_cooked_read_signed): Change return to enum
3989 register_status. Handle non-REG_VALID registers and return the
3991 (regcache_cooked_read_unsigned): Change return to enum
3992 register_status. Handle non-REG_VALID registers and return the
3994 (regcache_xfer_part, regcache_raw_read_part)
3995 (regcache_cooked_read_part): Change return to enum
3996 register_status. Return the register's status.
3997 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3999 (regcache_dump): Handle unavailable cooked registers.
4000 * frame.c (do_frame_register_read): Adjust interface to match
4001 regcache_cooked_read_ftype.
4002 * gdbarch.sh (pseudo_register_read): Change return to enum
4004 * gdbarch.h, gdbarch.c: Regenerate.
4006 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4008 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4009 register_status. If reading a raw register indicates the raw
4010 register is not valid, return the raw register's status,
4011 otherwise, return REG_VALID.
4012 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4013 register_status. Handle non-REG_VALID raw registers and return
4014 the register's status.
4015 * arm-tdep.c (arm_neon_quad_read)
4016 (arm_pseudo_read): Change return to enum register_status. Handle
4017 non-REG_VALID raw registers and return the register's status.
4018 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4019 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4020 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4021 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4022 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4024 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4025 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4026 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4027 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4028 (m32c_pseudo_register_read): Change return to enum
4029 register_status. Adjust.
4030 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4031 enum register_status. Return the register's status.
4032 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4033 register_status. Return the register's status.
4034 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4035 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4036 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4037 * rs6000-tdep.c (move_ev_register_func): New typedef.
4038 (e500_move_ev_register): Use it. Change return to enum
4039 register_status. Return the register's status.
4040 (do_regcache_raw_read): New function.
4041 (do_regcache_raw_write): New function.
4042 (e500_pseudo_register_read): Change return to enum
4043 register_status. Return the register's status. Use
4044 do_regcache_raw_read.
4045 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4046 (dfp_pseudo_register_read): Change return to enum register_status.
4047 Return the register's status.
4048 (vsx_pseudo_register_read): Ditto.
4049 (efpr_pseudo_register_read): Ditto.
4050 (rs6000_pseudo_register_read): Ditto.
4051 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4052 register_status. Return the register's status.
4053 * sh64-tdep.c (pseudo_register_read_portions): New function.
4054 (sh64_pseudo_register_read): Change return to enum
4055 register_status. Use pseudo_register_read_portions. Return the
4057 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4058 register_status. Return the register's status.
4059 * sh-tdep.c (pseudo_register_read_portions): New function.
4060 (sh_pseudo_register_read): Change return to enum register_status.
4061 Use pseudo_register_read_portions. Return the register's status.
4062 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4063 enum register_status. Return the register's status.
4064 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4065 * spu-tdep.c (spu_pseudo_register_read_spu)
4066 (spu_pseudo_register_read): Ditto.
4067 * xtensa-tdep.c (xtensa_register_read_masked)
4068 (xtensa_pseudo_register_read): Ditto.
4069 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4071 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4073 * python/py-value.c (valpy_getitem): Fix formatting of error function
4076 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4078 ARI fixes: Add missing internationalization markups throughout
4080 * darwin-nat-info.c: Ditto.
4083 * mi/mi-main.c: Ditto.
4085 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4087 ARI fixes: Add missing internationalization markups throughout
4090 * cp-name-parser.y: Ditto.
4093 * objc-exp.y: Ditto.
4096 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4098 ARI fixes: Messages should have no trailing new lines.
4099 * darwin-nat.c (mach_check_error): Remove trailing new line from
4100 warning function call message.
4101 * record.c (bfdcore_read): Idem for error call.
4103 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4105 * common/signals.c (target_signal_from_host): Add _ markup to error
4106 function call message.
4107 (target_signal_to_host): Add _ markup and remove trailing new line
4108 from warning call message.
4109 (target_signal_from_command): Add _ markup to error function call
4112 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4116 * python/python.c (gdbpy_write): Accept a stream argument and
4117 operate to the appropriate stream.
4118 (gdbpy_flush): Likewise.
4119 (_initialize_python): Add stream constants.
4120 (finish_python_initialization): Add GdbOutputErrorFile class.
4122 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4124 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4126 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4128 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4129 to store_signed_integer. Add debug message when relocating CALL
4130 instructions. Fix formatting of debug message.
4131 * i386-tdep.c (i386_relocate_instruction): Ditto.
4133 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4135 * target.h (struct target_ops): Remove to_lookup_symbol field.
4136 (target_lookup_symbol): Delete macro.
4137 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4138 (update_current_target, setup_target_debug): Remove handling
4139 of to_lookup_symbol target_ops field.
4140 * ada-tasks.c (get_known_tasks_addr): Remove use of
4141 target_lookup_symbol.
4142 * coffread.c (coff_symtab_read): Likewise.
4143 * dbxread.c (read_dbx_symtab): Ditto.
4145 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4148 * configure.ac: Add getthrds declaration check.
4149 * configure, config.in: Regenerate.
4150 * aix-thread.c (getthrds): Declare only if not already declared
4151 in procinfo.h. More declaration out of get_signaled_thread to
4154 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4156 * python/py-symtab.c: Populate symtab_object_methods,
4158 (stpy_is_valid): New function.
4159 (salpy_is_valid): Ditto.
4160 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4161 (sympy_is_valid): New function.
4162 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4163 (objfpy_is_valid): New function.
4164 * python/py-inferior.c: Populate inferior_object_methods.
4165 (infpy_is_valid): New function.
4166 * python/py-infthread.c: Populate thread_object_methods.
4167 (thpy_is_valid): New function.
4168 * python/py-block.c: Declare block_object_methods. Populate. Declare
4169 block_iterator_object_methods. Populate.
4170 (blpy_is_valid): New function.
4171 (blpy_iter_is_valid): Ditto.
4173 2011-03-16 Keith Seitz <keiths@redhat.com>
4175 * linespec.c (find_methods): Canonicalize NAME before looking
4177 (name_end): New function.
4178 (keep_name_info): New function.
4179 (decode_line_1): Use keep_name_info.
4180 (decode_compound): Likewise.
4181 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4182 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4185 * linespec.c (locate_first_half): Keep overload information, too.
4186 (decode_compound): Use a string to represent break characters
4188 If P points to a break character, do not increment it.
4189 For C++ and Java, keep overload information and relevant keywords.
4190 If we cannot find a symbol, search the minimal symbols.
4193 * linespec.c (decode_compound): Rename SAVED_ARG to
4195 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4197 Pass a valid block to lookup_symbol.
4198 (lookup_prefix_sym): Likewise.
4199 (find_method): Construct search name based on SYM_CLASS instead
4201 * psymtab.c (lookup_partial_symbol): Add language parameter.
4202 (lookup_symbol_aux_psymtabs): Likewise.
4203 Don't assume that the psymtab we found was the right one. Search
4204 for the desired symbol in the symtab to be certain.
4205 (psymtab_search_name): New function.
4206 (lookup_partial_symbol): Use psymtab_search_name.
4207 Add language parameter.
4208 (read_symtabs_for_function): Add language parameter and pass to
4209 lookup_partial_symbol.
4210 (find_symbol_file_from_partial): Likewise.
4212 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4215 * dwarf2read.c (noop_record_line): New function.
4216 (dwarf_decode_lines): Ignore line tables for GCd functions.
4218 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4220 Fix ARI warnings about new lines at the end of messages, which
4221 are unneeded as there is a new line added at the end of the message
4223 * darwin-nat.c (darwin_stop_inferior): Ditto.
4224 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4225 * dfp.c (decimal_to_number): Ditto.
4226 * exec.c (print_section_info): Ditto.
4227 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4228 * osdata.c (get_osdata): Ditto.
4229 * record.c (bfdcore_write): Ditto.
4230 * remote-mips.c (mips_readchar): Ditto.
4231 * remote.c (read_ptid): Ditto.
4232 * ser-mingw.c (ser_windows_raw): Ditto.
4233 * tracepoint.c (add_local_symbols): Ditto.
4234 * windows-nat.c (fake_create_process): Ditto.
4236 2011-03-16 Tom Tromey <tromey@redhat.com>
4238 * tracepoint.c (stop_tracing): Don't declare.
4239 * event-top.c (after_char_processing_hook): Add `(void)'.
4241 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4243 * NEWS: Add Parameter sub-classing description.
4245 2011-03-16 Kai Tietz <ktietz@redhat.com>
4247 * MAINTAINERS: Update my e-mail address.
4249 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4251 * MAINTAINERS: Add myself for write after approval privileges.
4253 2011-03-15 Michael Snyder <msnyder@vmware.com>
4255 * frame.c (find_frame_sal): Assert sym is not null.
4257 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4259 * objc-lang.c (selectors_info): Check strchr for null result.
4261 * stabsread.c (define_symbol): Guard against bad stabstring input.
4263 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4265 Remove trailing spaces and tabulations from pascal language
4270 p-valprint.c: Ditto.
4272 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4274 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4275 than LOW. Comment it.
4276 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4277 HIGHPC not strictly higher than LOWPC.
4279 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4281 Fix formatting of function declarations returning a pointer in
4283 * varobj.c (varobj_add_child): Ditto.
4284 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4285 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4287 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4289 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4290 for the "generic" vector ABI used with GCC 4.3 and later.
4291 (ppc64_sysv_abi_return_value): Likewise.
4293 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4295 * infcall.c (call_function_by_hand): Function return value is
4296 always a non_lval, even when using struct_return.
4298 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4300 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4301 (map_display_numbers): New.
4302 (do_delete_display): New.
4303 (undisplay_command): Use map_display_numbers.
4304 (do_enable_disable_display): New.
4305 (enable_disable_display_command): New function.
4306 (enable_display): Delete.
4307 (enable_display_command): New.
4308 (disable_display_command): Reimplement.
4309 (_initialize_printcmd): Adjust "enable display" command to use
4310 `enable_display_command' as callback.
4312 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4314 * NEWS: Add Python breakpoint 'stop' operation.
4316 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4318 * NEWS: Delete duplicate entry. Fix typo.
4320 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4322 Fix ARI warning about function names in first column.
4323 Put prototype declaration on same line as return type.
4324 * objc-exp.y: Ditto.
4326 * python/py-stopevent.h: Ditto.
4327 For long function names, split parameters to
4328 allow function name on same line as return type.
4329 * solib-pa64.c: Ditto.
4332 For long function declaration, use single line.
4333 * hppa-tdep.h: Ditto.
4334 * inferior.h: Ditto.
4336 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4338 * python/python.h: Declare gdbpy_should_stop and
4339 gdbpy_breakpoint_has_py_cond.
4340 * python/python.c: Add python.h to includes. Remove python.h from
4341 HAVE_PYTHON definition
4342 (gdbpy_should_stop): New dummy function.
4343 (gdbpy_breakpoint_has_py_cond): New dummy function.
4344 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4345 sub-classing capabilities.
4346 (gdbpy_should_stop): New function.
4347 (gdbpy_breakpoint_has_py_cond): New function.
4348 (local_setattro): New function.
4349 * breakpoint.c (condition_command): Add check for Python 'stop'
4351 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4352 operation function as part of stop/continue tests.
4354 2011-03-14 Tom Tromey <tromey@redhat.com>
4357 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4358 (needs_frame_dwarf_call): Likewise.
4360 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4362 Fix ARI warning about functions without parameters that do not
4364 * breakpoint.c (all_tracepoints): Replace () by (void).
4365 * f-exp.y (match_string_literal): Ditto.
4367 * m2-exp.y (yylex): Ditto.
4368 * mep-tdep.c (current_me_module): Ditto.
4369 (current_options): Ditto.
4370 (current_cop_data_bus_width): Ditto.
4371 (current_cr_names): Ditto.
4372 (current_cr_is_float): Ditto.
4373 (current_ccr_names): Ditto.
4374 * objc-exp.y (yylex): Ditto.
4375 * p-exp.y (yylex): Ditto.
4376 * remote.c (send_interrupt_sequence): Ditto.
4377 * tracepoint.c (current_trace_status): Ditto.
4378 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4379 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4381 2011-03-11 Michael Snyder <msnyder@vmware.com>
4383 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4384 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4385 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4386 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4387 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4389 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4390 (delete_async_event_handler): Ditto.
4392 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4394 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4396 * top.c (set_verbose): Assert showcmd was found.
4398 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4400 * xtensa-tdep.c (warning_once): Correct style issues.
4402 2011-03-11 Yao Qi <yao@codesourcery.com>
4404 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4406 2011-03-11 Andreas Schwab <schwab@redhat.com>
4408 * common/aclocal.m4: Remove.
4410 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4412 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4413 (xtensa_write_register, xtensa_read_register): Likewise.
4414 (xtensa_hextochar): Removed.
4415 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4417 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4419 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4420 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4421 (xtensa_alloc_frame_cache): Add initialization for new fields.
4422 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4423 (warning_once): New function.
4424 (xtensa_insn_kind): New item c0opc_and.
4425 (call0_classify_opcode): Add the case for AND instruction.
4426 (call0_track_op): Change arguments. New local variable litbase.
4427 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4428 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4430 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4431 (call0_analyze_prologue): Update the comments. Change arguments.
4432 Add the variety of updates to handle extended prologues, which now can
4433 conduct dynamic stack adjustments.
4434 (call0_frame_cache): Likewise.
4435 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4436 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4438 2011-03-10 Michael Snyder <msnyder@vmware.com>
4440 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4441 (cmd_qtframe): Ditto.
4442 (cmd_qtbuffer): Ditto.
4443 (cmd_bigqtbuffer): Ditto.
4445 2011-03-10 Tom Tromey <tromey@redhat.com>
4447 * tracepoint.c (trace_actions_command): Update.
4448 * thread.c (thread_apply_command): Update.
4449 * reverse.c (delete_bookmark_command): Update.
4450 (bookmarks_info): Update.
4451 * printcmd.c (undisplay_command): Update.
4452 * memattr.c (mem_enable_command): Update.
4453 (mem_disable_command): Update.
4454 (mem_delete_command): Update.
4455 * inferior.c (detach_inferior_command): Update.
4456 (kill_inferior_command): Update.
4457 (remove_inferior_command): Update.
4458 * cli/cli-utils.h (struct get_number_or_range_state): New.
4459 (init_number_or_range): Declare.
4460 (get_number_or_range): Update.
4461 * cli/cli-utils.c (init_number_or_range): New function.
4462 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4464 (number_is_in_list): Update.
4465 * breakpoint.h (get_tracepoint_by_number): Update.
4466 * breakpoint.c (map_breakpoint_numbers): Update for change to
4467 get_number_or_range.
4468 (find_location_by_number): Use get_number, not
4469 get_number_or_range.
4470 (trace_pass_set_count): New function.
4471 (trace_pass_command): Update for change to get_number_or_range.
4473 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4476 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4478 * python/py-param.c (add_setshow_generic): Add set/show callback
4479 parameters. Register Python object context.
4480 (get_show_value): New function.
4481 (get_set_value): New function.
4482 (call_doc_function): New function.
4483 (get_doc_string): Move behind get_show_value/get_set_value.
4485 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4487 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4489 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4491 * xtensa-tdep.c (xtensa_read_register): Add comment.
4492 (xtensa_write_register): Likewise.
4493 (xtensa_hextochar): Add comment and update to match coding conventions.
4494 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4495 (execute_l32e, execute_s32e, execute_code): Update comments.
4496 (xtensa_exception_handler_t): Update to match coding conventions.
4497 (xtensa_insn_kind): Likewise.
4499 2011-03-09 Michael Snyder <msnyder@vmware.com>
4501 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4503 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4505 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4507 2011-03-09 Tom Tromey <tromey@redhat.com>
4509 * thread.c (restore_selected_frame): Handle frame_level == -1.
4510 (make_cleanup_restore_current_thread): Use
4511 get_selected_frame_if_set.
4512 * frame.h (get_selected_frame_if_set): Declare.
4513 * frame.c (get_selected_frame_if_set): New function.
4515 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4517 * cli/cli-cmds.c (shell_escape): Use lbasename.
4518 * coffread.c (coff_start_symtab): Constify parameter.
4519 (complete_symtab): Constify `name' parameter.
4520 (coff_symtab_read): Constify `filestring' local.
4521 (coff_getfilename): Constify return and `result' local.
4523 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4524 * linux-fork.c (info_checkpoints_command): Use lbasename.
4525 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4526 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4527 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4528 * procfs.c (procfs_make_note_section): Use lbasename.
4529 * tui/tui-io.c (printable_part): Constity return and parameter.
4531 (print_filename): Constify parameters, and local `s'.
4532 (tui_rl_display_match_list): Constify local `temp'.
4534 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4537 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 Fix DWARF-3+ DW_AT_accessibility default assumption.
4539 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4540 cu->header.version >= 3.
4542 2011-03-09 Yao Qi <yao@codesourcery.com>
4544 * common/Makefile.in: Remove.
4545 * common/configure: Remove.
4546 * common/configure.ac: Remove.
4548 2011-03-09 Yao Qi <yao@codesourcery.com>
4551 2011-02-11 Yao Qi <yao@codesourcery.com>
4553 * common/Makefile.in: Add copyright header.
4555 2011-02-11 Yao Qi <yao@codesourcery.com>
4557 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4559 * configure.ac: Add common to sub dir.
4560 * configure: Regenerate.
4562 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4564 * xtensa-tdep.c (call0_ret): New function.
4565 (xtensa_skip_prologue): Speed up analysis.
4567 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4569 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4570 while executing MI command -data-list-changed-registers.
4572 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4574 * xtensa-tdep.c (xtensa_read_register): New function.
4575 (xtensa_write_register): New function.
4576 (xtensa_find_register_by_name): New function.
4577 (xtensa_windowed_frame_cache): Update comments in type description.
4578 (xtensa_frame_cache): Likewise.
4579 (xtensa_window_interrupt_insn): New function.
4580 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4581 (xtensa_insn_kind): Add new instructions.
4582 (rwx_special_register): New function.
4583 (call0_classify_opcode): Add new instructions to the analysis.
4584 (a0_saved, a7_saved, a11_saved): New variables.
4585 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4586 (execute_l32e): New function.
4587 (execute_s32e): New function.
4588 (xtensa_exception_handler_t): New type.
4589 (execute_code): New function.
4590 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4591 analysis for Xtensa Window Exception handlers.
4593 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4595 * xtensa-tdep.c (TX_PS): New.
4596 (windowing_enabled): Update to count for Call0 ABI.
4597 (xtensa_hextochar): New.
4598 (xtensa_init_reggroups): Make algorithm generic.
4599 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4601 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4603 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4605 2011-03-08 Michael Snyder <msnyder@vmware.com>
4607 * i386-tdep.c (i386_follow_jump): Check return value of
4609 (i386_analyze_struct_return): Ditto.
4610 (i386_skip_probe): Ditto.
4611 (i386_match_insn): Ditto.
4612 (i386_skip_noop): Ditto.
4613 (i386_analyze_frame_setup): Ditto.
4614 (i386_analyze_register_saves): Ditto.
4615 (i386_skip_prologue): Ditto.
4616 (i386_skip_main_prologue): Ditto.
4618 * target.c (read_whatever_is_readable): Fix memory leak.
4620 * i386-tdep.c (i386_process_record): Document fall through.
4622 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4624 Fix DWARF-3+ DW_AT_accessibility default assumption.
4625 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4626 cu->header.version >= 3.
4628 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4630 * remote.c (remote_check_symbols): Skip if the target has no
4633 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4635 * target.c (read_whatever_is_readable): Reformat comment,
4636 with a minor typo fix. Minor reformatting of the code.
4638 2011-03-08 Yao Qi <yao@codesourcery.com>
4640 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4641 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4642 Use cached result instead of calling displaced_in_arm_mode again.
4643 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4644 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4645 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4646 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4647 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4648 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4649 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4650 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4651 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4652 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4653 (arm_catch_kernel_helper_return): Likewise.
4654 * gdb/arm-tdep.h : Update function declarations.
4656 2011-03-07 Michael Snyder <msnyder@vmware.com>
4658 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4660 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4662 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4664 * elfread.c (elf_symtab_read): Stop memory leak.
4666 * main.c (captured_main): Fix memory leak.
4668 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4670 * ada-lang.c (compare_names): Call is_name_suffix with string1
4673 2011-03-07 Tom Tromey <tromey@redhat.com>
4675 * xcoffread.c (xcoff_sym_fns): Update.
4676 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4677 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4678 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4679 (symbol_file_add_with_addrs_or_offsets): Likewise.
4680 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4681 * somread.c (som_sym_fns): Update.
4682 * psymtab.h (require_partial_symbols): Declare.
4683 * psymtab.c (require_partial_symbols): New function.
4684 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4685 (ALL_OBJFILE_PSYMTABS): Undef.
4686 (ALL_PSYMTABS): Move from psympriv.h.
4687 (lookup_partial_symtab, find_pc_sect_psymtab)
4688 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4689 (find_last_source_symtab_from_partial)
4690 (forget_cached_source_info_partial)
4691 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4692 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4693 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4694 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4695 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4696 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4697 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4698 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4699 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4701 * mipsread.c (ecoff_sym_fns): Update.
4702 * machoread.c (macho_sym_fns): Update.
4703 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4704 (read_psyms): New function.
4705 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4706 (elf_sym_fns_lazy_psyms): New global.
4707 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4708 dwarf2_build_psymtabs.
4709 * dbxread.c (aout_sym_fns): Update.
4710 * coffread.c (coff_sym_fns): Update.
4712 2011-03-07 Tom Tromey <tromey@redhat.com>
4714 * infrun.c (print_exited_reason): Include inferior id and pid in
4717 2011-03-07 Tom Tromey <tromey@redhat.com>
4719 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4721 (target_has_execution_1): Update.
4722 (target_has_execution_current): Declare.
4723 (target_has_execution): Call target_has_execution_current.
4724 (default_child_has_execution): Update.
4725 * target.c (default_child_has_execution): Add 'the_ptid'
4727 (target_has_execution_1): Likewise.
4728 (target_has_execution_current): New function.
4729 (add_target): Update.
4730 (init_dummy_target): Update.
4731 * remote-m32r-sdi.c (m32r_has_execution): New function.
4732 (init_m32r_ops): Use it.
4733 * record.c (record_core_has_execution): Now static. Add
4734 'the_ptid' parameter.
4735 * inferior.c (have_live_inferiors): Don't save current thread.
4736 Use target_has_execution_1.
4738 2011-03-07 Yao Qi <yao@codesourcery.com>
4740 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4742 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4744 * elfread.c (elf_symtab_read): Minor reformatting.
4746 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4748 * objc-lang.c (selectors_info): Minor reformatting.
4750 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4752 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4754 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4755 Michael Snyder <msnyder@vmware.com>
4757 * ada-valprint.c (ada_val_print_array): Move the declaration of
4758 "byte_order" and "elttype" inside the block where these variables
4759 are actually used. Remove some special handling for the case
4760 where "elttype" and "eltlen" are null. Replace by a comment
4761 and a couple of assertion checks.
4763 2011-03-05 Michael Snyder <msnyder@vmware.com>
4765 * source.c (add_path): Replace semicolon at end of block.
4766 * dwarf2expr.c (execute_stack_op): Ditto.
4768 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4770 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4771 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4772 (bfin-*-*): Likewise.
4774 2011-03-05 Michael Snyder <msnyder@vmware.com>
4776 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4777 * mdebugread.c (parse_symbol): Ditto.
4778 * parse.c (parse_exp_in_context): Ditto.
4779 * source.c (add_path): Ditto.
4780 * utils.c (gnu_debuglink_crc32): Ditto.
4781 * varobj.c (variable_language): Ditto.
4783 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4785 2011-03-04 Michael Snyder <msnyder@vmware.com>
4787 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4789 * symfile.c (simple_overlay_update): Check for null return value
4790 from lookup_minimal_symbol.
4792 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4794 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4796 * eval.c (parse_and_eval_address_1): Remove function.
4797 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4798 instead of parse_and_eval_address_1.
4799 * value.h (parse_and_eval_address_1): Remove prototype.
4801 2011-03-04 Michael Snyder <msnyder@vmware.com>
4803 * remote.c (putpkt_binary): Document that case stmt falls through.
4805 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4807 * breakpointc (print_it_typical): Move NULL check from here...
4808 (print_bp_stop_message): ... to here.
4810 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4812 * breakpoint.c (enable_command): Use break instead of continue,
4813 and fill in a missing break.
4814 (disable_command): Ditto.
4816 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4818 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4819 (terminal_save_ours): Remove misleading comment.
4820 (inflow_inferior_data_cleanup): Free ttystate.
4821 (inflow_inferior_exit): Likewise.
4822 (copy_terminal_info): Copy ttystate.
4824 * serial.c (serial_copy_tty_state): New function.
4825 * serial.h (serial_copy_tty_state): Add prototype.
4826 (struct serial_ops): Add copy_tty_state callback.
4827 * ser-base.c (ser_base_copy_tty_state): New function.
4828 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4829 * ser-go32.c (dos_copy_tty_state): New function.
4830 (dos_ops): Install copy_tty_state callback.
4831 * ser-mingw.c (_initialize_ser_windows): Likewise.
4832 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4833 * ser-unix.c (hardwire_copy_tty_state): New function.
4834 (_initialize_ser_hardwire): Install it.
4836 2011-03-04 Michael Snyder <msnyder@vmware.com>
4838 * breakpoint.c (create_breakpoint): Add missing break statement.
4840 Reverting this patch:
4841 * infcall.c (call_function_by_hand): Add break statements for lint.
4843 Reverting this patch:
4844 * cli/cli-script.c (script_from_file): Add break for lint.
4846 2011-03-04 Michael Snyder <msnyder@vmware.com>
4848 * solib.c (reload_shared_libraries_1): Close memory leak.
4850 2011-03-03 Tom Tromey <tromey@redhat.com>
4853 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4856 2011-03-03 Michael Snyder <msnyder@vmware.com>
4858 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4859 fields of struct 'st' to zero.
4861 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4862 sal.pspace before calling set_current_source_symtab_and_line.
4864 2011-03-03 Yao Qi <yao@codesourcery.com>
4866 * Makefile.in (configure-common): Remove. Let Makefile
4867 in dir common to rebuild itself.
4868 (common/Makefile): Likewise.
4870 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4872 * utils.c (parse_escape): Add i18n markup in error message.
4874 2011-03-03 Yao Qi <yao@codesourcery.com>
4876 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4878 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4879 (displaced_write_reg, displaced_read_reg): Likewise.
4880 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4881 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4882 (cleanup_branch): Replace magic number 14 and 15 with
4883 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4885 2011-03-02 Michael Snyder <msnyder@vmware.com>
4887 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4889 * cli/cli-script.c (script_from_file): Add break for lint.
4891 * mdebugread.c (parse_partial_symbols): Fix indent.
4893 * target-descriptions.c (tdesc_gdb_type): No need to call
4894 xstrdup, callee saves a copy.
4896 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4898 * infcall.c (call_function_by_hand): Add break statements for lint.
4900 * utils.c (parse_escape): Escape the escape char.
4902 * python/py-inferior.c (build_inferior_list): Error out if
4903 PyList_Append fails.
4904 (gdbpy_inferiors): Error out if build_inferior_list fails.
4906 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4909 * record.c (record_restore): Move printf to before error return.
4911 2011-03-02 Yao Qi <yao@codesourcery.com>
4913 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4914 is_thumb and insn_size.
4915 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4916 on both ARM and Thumb mode.
4917 (arm_process_displaced_insn): Set is_thumb and insn_size.
4918 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4919 (arm_displaced_step_fixup): Likewise.
4921 2011-03-01 Michael Snyder <msnyder@vmware.com>
4923 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4925 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4927 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4929 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4931 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4934 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4935 which shadows function parameter.
4937 * tracepoint.c (create_tsv_from_upload): Superfluous call
4938 to xstrdup. Callee already calls xstrdup.
4940 * linespec.c (decode_line_1): Remove unnecessary null check.
4942 * tracepoint.c (scope_info): Fix mem leak, remove underused
4945 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4946 superfluous null check.
4948 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4949 (value_of_builtin_frame_fp_reg): Ditto.
4951 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4953 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4956 * linespec.c (decode_line_1): Check for null before dereference.
4958 * reverse.c (record_restore): Move null-check to before pointer
4961 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4963 * objc-lang.c (selectors_info): Add explanitory comment.
4964 (classes_info): Ditto.
4966 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4968 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4969 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4970 versions of the trampoline. Handle Thumb vs. ARM addresses.
4971 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4972 (arm_linux_init_abi): Install it.
4973 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4974 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4976 2011-02-28 Michael Snyder <msnyder@vmware.com>
4978 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4979 a little bigger, to avoid possibility of an overflow.
4981 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4982 buffers a little bigger, to avoid possibility of an overflow.
4984 * coffread.c (coff_getfilename): Add check to avoid overflow.
4986 * objc-lang.c (selectors_info): Add a small safety margin to
4988 (classes_info): Error out on too long REGEXP.
4990 * infrun.c (handle_inferior_event): Remove unused function call.
4992 * fork-child.c (fork_inferior): Remove ifdef'd code and
4995 * linux-thread-db.c (attach_thread): Discard unused value.
4997 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4999 * remote.c (remote_get_noisy_reply): Discard unused value.
5000 (remote_vcont_resume): Ditto.
5001 (remote_stop_ns): Ditto.
5003 * linespec.c (decode_objc): Delete unused variable.
5005 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5007 * dwarf2read.c (add_partial_symbol): Discard unused values.
5008 (read_base_type): Delete unused variable.
5010 * dbxread.c (read_dbx_symtab): Discard unused value.
5012 * eval.c (evaluate_subexp_standard): Delete unused variable,
5013 and discard unused values.
5015 * infcmd.c (_initialize_infcmd): Discard unused values.
5017 * stabsread.c (rs6000_builtin_type): Missing break statement.
5019 * dbxread.c (process_one_symbol): Discard unused value.
5021 * coffread.c (coff_end_symtab): Delete unused variable.
5023 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5024 (dwarf2_add_typedef): Delete unused variable.
5025 (read_namespace): Ditto.
5026 (dwarf_decode_macros): Ditto.
5028 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5030 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5032 * p-valprint.c (pascal_val_print): Discard unused value.
5034 * utils.c (nquery): Call va_end before return;
5038 * proc-service.c (ps_plog): Call va_end before return.
5040 2011-02-28 Tom Tromey <tromey@redhat.com>
5042 * python/python.c (gdbpy_value_cst): New global.
5043 (_initialize_python): Initialize it.
5044 * python/python-internal.h (gdbpy_value_cst): Declare.
5045 * python/py-value.c (convert_value_from_python): Use
5048 2011-02-28 Michael Snyder <msnyder@vmware.com>
5050 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5052 * breakpoint.c (catch_syscall_completer): Free malloced list.
5054 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5056 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5057 (lval_func_check_synthetic_pointer): Ditto.
5058 (lval_func_free_closure): Fix use-after-free.
5060 2011-02-28 Tom Tromey <tromey@redhat.com>
5062 * psymtab.c (expand_partial_symbol_tables): Use
5063 ALL_OBJFILE_PSYMTABS.
5065 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5067 * objc-lang.c (selectors_info): Error on too long REGEXP.
5069 2011-02-28 Michael Snyder <msnyder@vmware.com>
5071 * python/py-param.c (set_parameter_value): Add missing
5074 * linux-record.c (record_linux_system_call): Add missing
5077 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5079 * breakpoint.c (print_one_breakpoint_location): Remove unused
5080 argument PRINT_ADDRESS_BITS. Update callers.
5081 (print_one_breakpoint): Likewise.
5083 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5085 * breakpoint.c (wrap_indent_at_field): New function.
5086 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5087 Allocate ui_stream locally instead of using STB argument.
5088 (print_one_breakpoint_location): Update call.
5089 * ui-out.c (ui_out_query_field): New function.
5090 * ui-out.h (ui_out_query_field): Add prototype.
5092 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5094 From Michael Snyder <msnyder@vmware.com>
5095 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5097 2011-02-27 Michael Snyder <msnyder@vmware.com>
5099 * objc-lang.c (selectors_info): Prevent string overrun.
5101 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5104 * symtab.c (rbreak_command): Move variable 'file_name' to
5107 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5108 param with a local variable of the same name.
5110 2011-02-27 Michael Snyder <msnyder@vmware.com>
5112 * value.c (value_from_history_ref): New function.
5113 * value.h (value_from_history_ref): Export.
5114 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5115 to parse value history references.
5116 * cli/cli-utils.h (get_number_trailer): Update comment.
5118 2011-02-27 Michael Snyder <msnyder@vmware.com>
5120 * inferior.c (detach_inferior_command): Use get_number_or_range.
5121 (kill_inferior_command): Ditto.
5122 (remove_inferior_command): Ditto.
5123 (initialize_inferiors): Make command names plural.
5124 Update help strings.
5126 2011-02-27 Michael Snyder <msnyder@vmware.com>
5128 * darwin-nat-info.c: Fix comment typo.
5129 * dwarf2expr.h: Ditto.
5130 * fbsd-nat.c: Ditto.
5131 * fbsd-nat.h: Ditto.
5132 * frame-unwind.h: Ditto.
5134 * hppa-hpux-tdep.c: Ditto.
5135 * i386-linux-nat.c: Ditto.
5136 * linux-nat.c: Ditto.
5137 * nbsd-nat.c: Ditto.
5138 * nbsd-nat.h: Ditto.
5139 * ppc-linux-tdep.c: Ditto.
5142 * tui/tui-winsource.c: Ditto.
5144 2011-02-26 Michael Snyder <msnyder@vmware.com>
5146 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5148 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5150 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5151 with a local variable of the same name.
5153 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5154 param with a local variable of the same name.
5155 (i387_supply_xsave): Ditto.
5157 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5158 that it does not shadow a function parameter.
5160 * i386-nat.c (i386_length_and_rw_bits): Document that case
5161 statement is meant to fall through.
5163 * expprint.c (dump_subexp_body_standard): Document that case
5164 statement is meant to fall through.
5166 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5167 dead if statement. Condition can't be false.
5169 2011-02-25 Michael Snyder <msnyder@vmware.com>
5171 * arm-tdep.c: Fix typos in comments.
5172 * bsd-uthread.c: Ditto.
5173 * completer.c: Ditto.
5175 * cp-namespace.c: Ditto.
5176 * cp-support.c: Ditto.
5177 * cris-tdep.c: Ditto.
5179 * dwarf2read.c: Ditto.
5181 * gdbtypes.h: Ditto.
5182 * inferior.h: Ditto.
5183 * mdebugread.c: Ditto.
5184 * mips-tdep.c: Ditto.
5185 * ppc-linux-nat.c: Ditto.
5186 * ppc-linux-tdep.c: Ditto.
5187 * printcmd.c: Ditto.
5188 * sol-thread.c: Ditto.
5189 * solib-frv.c: Ditto.
5191 * sparc64-tdep.c: Ditto.
5192 * spu-tdep.c: Ditto.
5193 * stabsread.c: Ditto.
5198 * python/py-block.c: Ditto.
5199 * python/py-symbol.c: Ditto.
5200 * python/py-symtab.c: Ditto.
5201 * python/py-value.c: Ditto.
5202 * tui/tui-win.c: Ditto.
5204 2011-02-25 Michael Snyder <msnyder@vmware.com>
5206 * inferior.c (print_inferior): Accept a string instead of an int
5207 for requested_inferiors, and use get_number_or_range to parse it.
5208 (info_inferiors_command): Pass args string to print_inferior.
5209 (initialize_inferiors): Change help string for info inferiors.
5210 * inferior.h (print_inferior): Export prototype change.
5212 2011-02-25 Tom Tromey <tromey@redhat.com>
5214 * common/ax.def (invalid2): Set to 0x31.
5216 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5220 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5222 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5224 2011-02-24 Michael Snyder <msnyder@vmware.com>
5226 * Makefile.in (clean): Make clean should remove generated files
5227 observer.h and observer.inc.
5229 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5231 Revert the following patch (not approved yet):
5232 2011-02-21 Hui Zhu <teawater@gmail.com>
5233 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5234 * ax-gdb.c (gen_printf_expr_callback): New function.
5235 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5236 * ax-general.c (ax_memcpy): New function.
5237 (ax_print): Handle "printf".
5239 * ax.h (ax_memcpy): Forward declare.
5240 * common/ax.def (invalid2): Removed.
5241 (printf): New entry.
5242 * printcmd.c (printcmd.h): New include.
5243 (string_printf): New function.
5244 (ui_printf): Removed.
5245 (printf_command): Remove static. Call string_printf.
5246 (eval_command): Call string_printf.
5247 * printcmd.h: New file.
5248 * tracepoint.c (validate_actionline,
5249 encode_actions_1): handle printf_command.
5251 2011-02-23 Tom Tromey <tromey@redhat.com>
5253 * ax-general.c (ax_pick): Add missing newline.
5255 2011-02-23 Michael Snyder <msnyder@vmware.com>
5257 * breakpoint.c (breakpoint_1): Change first argument from an int
5258 to a char pointer, so that the function now accepts a list of
5259 breakpoints rather than just one. Use new function
5260 'number_is_in_list' to implement.
5261 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5262 (watchpoints_info): Ditto.
5263 (tracepoints_info): Ditto.
5264 (maintenance_info_breakpoints): Ditto.
5265 (_initialize_breakpoint): Update help strings to reflect the fact
5266 that these functions can now take more than one argument.
5267 * cli/cli-utils.c (number_is_in_list): New function.
5268 * cli/cli-utils.h (number_is_in_list): Export.
5270 2011-02-23 Michael Snyder <msnyder@vmware.com>
5272 * memattr.c (mem_enable_command): Use get_number_or_range.
5273 (mem_disable_command): Ditto.
5274 (mem_delete_command): Ditto.
5275 (_initialize_mem): Tweak usage message to reflect multiple
5278 2011-02-22 Doug Evans <dje@google.com>
5280 Add gdb.lookup_global_symbol python function.
5282 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5283 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5284 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5286 2011-02-22 Tom Tromey <tromey@redhat.com>
5288 * language.c (language_class_name_from_physname): Rename
5289 'curr_language' argument to 'lang'; use in body.
5291 2011-02-22 Michael Snyder <msnyder@vmware.com>
5293 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5295 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5297 * frame-unwind.h: Fix comment to mention the this frame, not the
5300 2011-02-22 Tom Tromey <tromey@redhat.com>
5302 * symfile.c (auto_solib_limit): Remove.
5303 * symfile.h (auto_solib_limit): Remove.
5305 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5307 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5309 2011-02-21 Michael Snyder <msnyder@vmware.com>
5311 * gdbthread.h (print_thread_info): Change prototype.
5312 * thread.c (print_thread_info): Accept char* instead of int for
5313 requested_threads argument. Use new function number_is_in_list
5314 to determine which threads to list.
5315 (info_threads_command): Pass char* to print_thread_info.
5316 * cli/cli-utils.c (number_is_in_list): New function.
5317 * cli/cli-utils.h (number_is_in_list): Export.
5318 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5320 (print_one_inferior): Ditto.
5321 (mi_cmd_list_thread_groups): Ditto.
5323 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5325 * common/Makefile.in (CFLAGS): New.
5326 (COMPILE): Add $(CFLAGS).
5328 2011-02-21 Tom Tromey <tromey@redhat.com>
5330 * breakpoint.c (catch_syscall_command_1): Fix typo.
5332 2011-02-21 Tom Tromey <tromey@redhat.com>
5334 * reverse.c: Include cli-utils.h.
5335 * printcmd.c: Include cli-utils.h.
5336 (string_printf): Use skip_spaces.
5337 * cli/cli-utils.h: New file.
5338 * cli/cli-utils.c: New file.
5339 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5340 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5341 * breakpoint.h (get_number, get_number_or_range): Move to
5343 * breakpoint.c: Include cli-utils.h.
5344 (get_number_trailer, get_number, get_number_or_range)
5345 (ep_skip_leading_whitespace): Move to cli-utils.c.
5346 (create_breakpoint_sal, find_condition_and_thread)
5347 (decode_static_tracepoint_spec, watch_command_1)
5348 (watch_maybe_just_location, ep_parse_optional_if_clause)
5349 (catch_fork_command_1, catch_exec_command_1)
5350 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5351 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5352 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5353 (HFILES_NO_SRCDIR): Add cli-utils.h.
5354 (cli-utils.o): New target.
5356 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5358 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5359 before calling discard_all_inferiors.
5361 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5363 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5364 (struct builtin_opencl_type): Remove.
5365 (builtin_opencl_type): Change return type to "struct type **".
5366 (lookup_opencl_vector_type): Update caller.
5367 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5368 (build_opencl_types): Install plain array of "struct type *"
5369 instead of "struct builtin_opencl_type".
5371 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5372 Ulrich Weigand <uweigand@de.ibm.com>
5374 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5375 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5376 (struct arm_linux_hwbp_cap): New type.
5377 (arm_linux_get_hwbp_cap): New function.
5378 (arm_linux_get_hw_breakpoint_count): Likewise.
5379 (arm_linux_get_hw_watchpoint_count): Likewise.
5380 (arm_linux_can_use_hw_breakpoint): Likewise.
5381 (arm_hwbp_type): New type.
5382 (arm_hwbp_control_t): Likewise.
5383 (struct arm_linux_hw_breakpoint): Likewise.
5384 (struct arm_linux_thread_points): Likewise.
5385 (arm_threads): New global variable.
5386 (arm_linux_find_breakpoints_by_tid): New function.
5387 (arm_hwbp_control_initialize): Likewise.
5388 (arm_hwbp_control_is_enabled): Likewise.
5389 (arm_hwbp_control_disable): Likewise.
5390 (arm_linux_hw_breakpoint_initialize): Likewise.
5391 (arm_linux_get_hwbp_type): Likewise.
5392 (arm_linux_hw_watchpoint_initialize): Likewise.
5393 (arm_linux_hw_breakpoint_equal): Likewise.
5394 (arm_linux_insert_hw_breakpoint1): Likewise.
5395 (arm_linux_remove_hw_breakpoint1): Likewise.
5396 (arm_linux_insert_hw_breakpoint): Likewise.
5397 (arm_linux_remove_hw_breakpoint): Likewise.
5398 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5399 (arm_linux_insert_watchpoint): Likewise.
5400 (arm_linux_remove_watchpoint): Likewise.
5401 (arm_linux_stopped_data_address): Likewise.
5402 (arm_linux_stopped_by_watchpoint): Likewise.
5403 (arm_linux_watchpoint_addr_within_range): Likewise.
5404 (arm_linux_new_thread): Likewise.
5405 (arm_linux_thread_exit): Likewise.
5406 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5407 related target callbacks. Register arm_linux_new_thread and
5408 arm_linux_thread_exit.
5409 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5410 * arm-tdep.c (arm_pc_is_thumb): Make global.
5411 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5413 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5415 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5416 per-frame locations while within a function epilogue.
5418 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5420 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5421 to GNU coding standards.
5423 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5425 Allow use of mingw native on Windows 95 OS.
5426 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5427 (ser_windows_close): Only call CancelIo if function exists.
5428 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5429 to check for existence of CancelIo function in kernel32 DLL.
5431 2011-02-21 Hui Zhu <teawater@gmail.com>
5433 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5434 * ax-gdb.c (gen_printf_expr_callback): New function.
5435 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5436 * ax-general.c (ax_memcpy): New function.
5437 (ax_print): Handle "printf".
5439 * ax.h (ax_memcpy): Forward declare.
5440 * common/ax.def (invalid2): Removed.
5441 (printf): New entry.
5442 * printcmd.c (printcmd.h): New include.
5443 (string_printf): New function.
5444 (ui_printf): Removed.
5445 (printf_command): Remove static. Call string_printf.
5446 (eval_command): Call string_printf.
5447 * printcmd.h: New file.
5448 * tracepoint.c (validate_actionline,
5449 encode_actions_1): handle printf_command.
5451 2011-02-19 Michael Snyder <msnyder@vmware.com>
5453 * reverse.c (delete_one_bookmark): Argument is now bookmark
5454 id rather than pointer to bookmark struct.
5455 (delete_bookmark_command): Use get_number_or_range.
5456 (goto_bookmark_command): Parse with get_number instead of strtoul.
5457 (bookmark_1): New function. Print info for one bookmark.
5458 (bookmarks_info): Use get_number_or_range and bookmark_1.
5460 2011-02-18 Michael Snyder <msnyder@vmware.com>
5462 * thread.c (info_threads_command): Re-implement using
5463 get_number_or_range.
5464 (thread_apply_command): Ditto.
5466 2011-02-18 Tom Tromey <tromey@redhat.com>
5468 * common/ax.def: New file.
5469 * ax.h (enum agent_op): Use ax.def.
5470 * ax-general.c (aop_map): Use ax.def.
5472 2011-02-18 Tom Tromey <tromey@redhat.com>
5474 * ax-general.c (aop_map): Add pick and rot.
5475 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5476 <DW_OP_rot>: Implement.
5477 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5479 * ax-general.c (ax_pick): New function.
5481 2011-02-18 Tom Tromey <tromey@redhat.com>
5483 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5485 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5486 Tom Tromey <tromey@redhat.com>
5488 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5489 make_symbol_overload_list_block with NULL BLOCK.
5490 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5492 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5494 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5495 * breakpoint.h (get_number_or_range): Declare.
5496 * printcmd.c (ALL_DISPLAYS): Declare.
5497 (delete_display): Reimplement taking a display pointer.
5498 (undisplay_command): Accept a range of displays to delete, using
5499 get_number_or_range.
5501 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5503 * c-valprint.c (c_val_print): Add embedded_offset to address
5504 for arrays of unspecified length.
5505 * p-valprint.c (pascal_val_print): Likewise.
5507 2011-02-18 Yao Qi <yao@codesourcery.com>
5509 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5510 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5511 (thumb_process_displaced_insn): New.
5512 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5513 call to arm_process_displaced_insn.
5514 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5516 2011-02-17 Tom Tromey <tromey@redhat.com>
5518 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5519 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5520 compile_dwarf_to_ax. No longer static. Call
5521 dwarf2_compile_cfa_to_ax.
5522 (locexpr_tracepoint_var_ref): Update.
5523 (loclist_tracepoint_var_ref): Update.
5524 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5525 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5526 argument; add 'gdbarch' and 'pc'.
5527 (dwarf2_compile_cfa_to_ax): New function.
5528 (dwarf2_frame_cache): Update.
5530 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5532 * ada-lang.c (ada_type_of_array): Fix the size of the array
5533 in the case of an unconstrained packed array.
5535 2011-02-17 Yao Qi <yao@codesourcery.com>
5537 * common/Makefile.in: Add more targets for make.
5539 2011-02-16 Tom Tromey <tromey@redhat.com>
5541 * dwarf2loc.c (unimplemented): Fix typo.
5543 2011-02-16 Tom Tromey <tromey@redhat.com>
5545 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5546 (compile_dwarf_to_ax) <default>: Use unimplemented.
5547 <DW_OP_deref>: Update.
5548 (disassemble_dwarf_expression): Update.
5549 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5550 (decode_locdesc): Update.
5551 * dwarf2expr.h (dwarf_stack_op_name): Update.
5553 2011-02-16 Tom Tromey <tromey@redhat.com>
5555 * ax.h (struct aop_map) <name>: Now const.
5557 2011-02-16 Tom Tromey <tromey@redhat.com>
5559 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5562 2011-02-16 Yao Qi <yao@codesourcery.com>
5564 * infrun.c (get_displaced_step_closure_by_addr): New.
5565 * inferior.h: Declare it.
5566 * arm-tdep.c: (arm_pc_is_thumb): Call
5567 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5570 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5571 Jan Kratochvil <jan.kratochvil@redhat.com>
5574 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5576 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5577 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 * value.c (value_contents_copy_raw): Extend describing comment.
5580 Assert that the destination contents we're overwriting are wholly
5582 (value_contents_copy): Extend describing comment.
5584 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5585 Jan Kratochvil <jan.kratochvil@redhat.com>
5587 * value.c (value_available_contents_eq): Remove redundant local
5588 variables. Fix available contents comparision.
5589 * value.h (value_available_contents_eq): Extend describing
5592 2011-02-16 Yao Qi <yao@codesourcery.com>
5594 * thread.c (info_threads_command): Add missing i18n markup and remove
5597 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5599 * breakpoint.c (longjmp_names): New variable.
5600 (struct breakpoint_objfile_data): New type.
5601 (breakpoint_objfile_key): New variable.
5602 (msym_not_found): New variable.
5603 (msym_not_found_p): New predicate.
5604 (get_breakpoint_objfile_data): New function.
5605 (create_overlay_event_breakpoint): Check per-objfile cache for
5607 (create_longjmp_master_breakpoint): Likewise.
5608 (create_std_terminate_master_breakpoint): Likewise.
5609 (create_exception_master_breakpoint): Likewise.
5610 (_initialize_breakpoint): Register per-objfile data key.
5612 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5614 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5616 (create_longjmp_master_breakpoint): Loop over longjmp names.
5617 (create_std_terminate_master_breakpoint): Const-propagate parameter
5619 (update_breakpoints_after_exec): Adjust.
5620 (breakpoint_re_set): Adjust.
5622 2011-02-15 Michael Snyder <msnyder@vmware.com>
5624 * thread.c (info_threads_command): Process arg as thread id,
5625 or list of thread ids.
5626 (thread_find_command): New command.
5627 (_initialize_thread): Document argument for info threads.
5628 Document 'thread find' command.
5629 * NEWS: Document new command "thread find".
5631 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5633 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5634 * aclocal.m4: Regenerated with aclocal-1.11.1.
5635 * common/configure: Regenerate with autoconf-2.64.
5637 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5639 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5640 bool data type to a size of one byte.
5642 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5643 Jan Kratochvil <jan.kratochvil@redhat.com>
5645 * target.c (memory_xfer_live_readonly_partial): Document where to
5646 look for interface description.
5648 2011-02-15 Yao Qi <yao@codesourcery.com>
5651 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5652 order to store PC value on stack instead of text section.
5654 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5656 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5657 the EFP register set size.
5658 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5659 data from the VMX register.
5660 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5661 and write data from/to the VMX register.
5663 2011-02-14 Michael Snyder <msnyder@vmware.com>
5665 * command.h (enum command_class): New class 'no_set_class', for
5666 "show" commands without a corresponding "set" command.
5667 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5668 * copying.c (_initialize_copying): Ditto for "show copying" and
5670 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5672 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5673 which there is no corresponding "set" command (eg. "show copying").
5675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5676 Jan Kratochvil <jan.kratochvil@redhat.com>
5678 * exec.c (section_table_available_memory): Change `len' parameter
5680 * exec.h (section_table_available_memory): Ditto.
5681 * value.h (read_value_memory): Rename the `offset' parameter to
5684 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5685 Jan Kratochvil <jan.kratochvil@redhat.com>
5687 * memrange.c (compare_mem_ranges): Mention sort order in
5689 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5690 * tracepoint.c (traceframe_available_memory): Extend comment to
5691 mention what happens to RESULT when the target does not support
5694 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5695 Jan Kratochvil <jan.kratochvil@redhat.com>
5697 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5700 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5702 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5703 No longer handle NULL values.
5705 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5707 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5708 * value.c: Include "exceptions.h".
5709 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5711 * cp-abi.c: Include gdb_assert.h.
5712 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5713 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5715 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5716 parameters. No longer returns -1 on error.
5717 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5719 * cp-valprint.c: Include exceptions.h.
5720 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5721 the baseclass_offset. Handle unavailable base classes. Use
5722 val_print_invalid_address.
5723 * p-valprint.c: Include exceptions.h.
5724 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5725 when fetching the baseclass_offset. No longer expect
5726 baseclass_offset returning -1. Handle unavailable base classes.
5727 Use val_print_invalid_address.
5728 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5729 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5730 `embedded_offset' and `val' parameters. Adjust.
5731 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5732 parameter, and change its type to gdb_byte pointer. Add
5733 `embedded_offset' and `val' parameters. Adjust. No longer expect
5734 baseclass_offset returning -1.
5735 (value_dynamic_cast): Use value_contents_for_printing rather than
5736 value_contents. Adjust.
5737 (search_struct_field): No longer expect baseclass_offset returning
5739 (search_struct_method): If reading memory from the target is
5740 necessary, wrap it in a new value to pass to baseclass_offset. No
5741 longer expect baseclass_offset returning -1.
5742 (find_method_list): No longer expect baseclass_offset returning
5743 -1. Use value_contents_for_printing rather than value_contents.
5744 * valprint.c (val_print_invalid_address): New function.
5745 * valprint.h (val_print_invalid_address): Declare.
5746 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5747 and `val' parameters. No longer expect baseclass_offset returning
5749 * gnu-v2-abi.c: Include "exceptions.h".
5750 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5751 parameters. Handle unavailable memory. Recurse through
5752 gnuv2_baseclass_offset directly, rather than through
5753 baseclass_offset. No longer returns -1 on not found, instead
5755 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5756 `val' parameters. Adjust.
5758 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5760 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5761 almost but not quite adjacent.
5763 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5765 * value.h (value_entirely_available): Declare.
5766 * value.c (value_entirely_available): New function.
5767 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5768 real type if the pointer is unavailable.
5770 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5772 * valops.c (value_repeat): Use read_value_memory instead of
5775 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5777 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5778 * value.c (value_contents_copy_raw, value_contents_copy): New
5780 (value_primitive_field): Use value_contents_copy_raw instead of
5782 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5784 (value_array, value_slice): Ditto.
5785 * valarith.c (value_subscripted_rvalue): Use
5786 value_contents_copy_raw instead of memcpy.
5788 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5790 <unavailable> references.
5792 * valops.c (get_value_at): Use value_from_contents_and_address,
5793 avoiding read_memory.
5795 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5797 * c-valprint.c (c_val_print): Print a string with unavailable
5798 contents as an array.
5800 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5802 * value.h (unpack_bits_as_long): Delete declaration.
5803 (unpack_value_bits_as_long): Declare.
5804 (unpack_value_field_as_long): Declare.
5805 (value_field_bitfield): Declare.
5806 * value.c (unpack_bits_as_long): Rename to...
5807 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5808 value parameters. Return the extracted result in a new output
5809 parameter. If the value contents are unavailable, return false,
5810 otherwise return true.
5811 (unpack_value_bits_as_long): New.
5812 (unpack_field_as_long): Rename to...
5813 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5814 Add embedded_offset and value parameters. Return the extracted
5815 result in a new output parameter. If the value contents are
5816 unavailable, return false, otherwise return true.
5817 (unpack_value_field_as_long): New.
5818 (unpack_field_as_long_1): New.
5819 (unpack_field_as_long): Reimplement as wrapper around
5820 unpack_value_field_as_long_1.
5821 (value_field_bitfield): New function.
5822 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5823 unpack_value_bits_as_long. Mark the value as unavailable, if it
5825 * jv-valprint.c (java_print_value_fields): Use
5826 value_field_bitfield.
5827 * p-valprint.c (pascal_object_print_value_fields): Use
5828 value_field_bitfield.
5829 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5831 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5833 * value.c (get_internalvar_integer): Also return the int value of
5834 TYPE_CODE_INT INTERNALVAR_VALUE values.
5835 (set_internalvar): Don't special case TYPE_CODE_INT.
5837 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5839 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5840 INTERNALVAR_POINTER.
5842 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5843 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5844 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5846 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5848 * value.h (value_available_contents_eq): Declare.
5849 * value.c (find_first_range_overlap): New function.
5850 (value_available_contents_eq): New function.
5851 * valprint.c (val_print_array_elements): Use
5852 value_available_contents_eq.
5853 * ada-valprint.c (val_print_packed_array_elements): Use
5854 value_available_contents_eq.
5855 * jv-valprint.c (java_value_print): Use
5856 value_available_contents_eq.
5858 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5860 * target.c (target_read_live_memory): New function.
5861 (memory_xfer_live_readonly_partial): New.
5862 (memory_xfer_partial): If reading from a traceframe, fallback to
5863 reading unavailable read-only memory from read-only regions of
5865 * tracepoint.c (disconnect_tracing): Adjust.
5866 (set_current_traceframe): New, factored out from
5867 set_traceframe_number.
5868 (set_traceframe_number): Reimplement to only change the traceframe
5869 number on the GDB side.
5870 (do_restore_current_traceframe_cleanup): Adjust.
5871 (make_cleanup_restore_traceframe_number): New.
5872 (cur_traceframe_number): New global.
5873 (tfile_open): Set cur_traceframe_number to no traceframe.
5874 (set_tfile_traceframe): New function.
5875 (tfile_trace_find): If looking up a traceframe using any method
5876 other than by number, make sure the current tfile traceframe
5877 matches gdb's current traceframe. Update the current tfile
5878 traceframe if the lookup succeeded.
5879 (tfile_fetch_registers, tfile_xfer_partial)
5880 (tfile_get_trace_state_variable_value): Make sure the remote
5881 traceframe matches gdb's current traceframe.
5882 * remote.c (remote_traceframe_number): New global.
5883 (remote_open_1): Set it to -1.
5884 (set_remote_traceframe): New function.
5885 (remote_fetch_registers, remote_store_registers)
5886 (remote_xfer_memory, remote_xfer_partial)
5887 (remote_get_trace_state_variable_value): Make sure the remote
5888 traceframe matches gdb's current traceframe.
5889 (remote_trace_find): If looking up a traceframe using any method
5890 other than by number, make sure the current remote traceframe
5891 matches gdb's current traceframe. Update the current remote
5892 traceframe if the lookup succeeded.
5893 * infrun.c (fetch_inferior_event): Adjust.
5894 * tracepoint.h (set_current_traceframe): Declare.
5895 (get_traceframe_number, set_traceframe_number): Add describing
5898 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5900 Mark pieces of values as unavailable if the corresponding memory
5903 * valops.c: Include tracepoint.h.
5904 (value_fetch_lazy): Use read_value_memory.
5905 (read_value_memory): New.
5906 * value.h (read_value_memory): Declare.
5907 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5908 * exec.c (section_table_available_memory): New function.
5909 * exec.h (section_table_available_memory): Declare.
5911 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5913 * Makefile.in (SFILES): Add memrange.c.
5914 (HFILES_NO_SRCDIR): Add memrange.h.
5915 (COMMON_OBS): Add memrange.o.
5916 * memrange.c: New file.
5917 * memrange.h: New file.
5918 * tracepoint.c: Include memrange.h.
5919 (struct mem_range): Delete.
5920 (mem_range_s): Delete.
5921 (traceframe_available_memory): New function.
5922 * tracepoint.h (traceframe_available_memory): Declare.
5924 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5926 * target.h (struct traceframe_info): Forward declare.
5927 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5928 (struct target_ops) <to_traceframe_info>: New field.
5929 (target_traceframe_info): New.
5930 * target.c (update_current_target): Inherit and default
5932 * remote.c (PACKET_qXfer_traceframe_info): New.
5933 (remote_protocol_features): Register qXfer:traceframe-info:read.
5934 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5935 (remote_traceframe_info): New.
5936 (init_remote_ops): Install it.
5937 (_initialize_remote): Install "set/show remote traceframe-info"
5939 * tracepoint.h (parse_traceframe_info): Declare.
5940 * tracepoint.c (struct mem_range): New.
5941 (mem_range_s): New typedef.
5942 (struct traceframe_info): New.
5943 (traceframe_info): New global.
5944 (free_traceframe_info): New function.
5945 (clear_traceframe_info): New function.
5946 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5948 (build_traceframe_info): New function.
5949 (tfile_traceframe_info): New function.
5950 (init_tfile_ops): Install tfile_traceframe_info.
5951 (traceframe_info_start_memory, free_result): New functions.
5952 (memory_attributes, traceframe_info_elements): New globals.
5953 (parse_traceframe_info, get_traceframe_info): New functions.
5954 * features/traceframe-info.dtd: New file.
5955 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5957 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5959 Base support for <unavailable> value contents.
5961 * value.h (value_bytes_available): Declare.
5962 (mark_value_bytes_unavailable): Declare.
5963 * value.c (struct range): New struct.
5964 (range_s): New typedef.
5965 (ranges_overlap): New function.
5966 (range_lessthan): New function.
5967 (ranges_contain_p): New function.
5968 (struct value) <unavailable>: New field.
5969 (value_bytes_available): New function.
5970 (mark_value_bytes_unavailable): New function.
5971 (require_not_optimized_out): Constify parameter.
5972 (require_available): New function.
5973 (value_contents_all, value_contents): Require all bytes be
5975 (value_free): Free `unavailable'.
5976 (value_copy): Copy `unavailable'.
5977 * valprint.h (val_print_unavailable): Declare.
5978 * valprint.c (valprint_check_validity): Rename `offset' parameter
5979 to `embedded_offset'. If printing a scalar, check whether the
5980 value chunk is available.
5981 (val_print_unavailable): New.
5982 (val_print_scalar_formatted): Check whether the value is
5984 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5985 pretty-printing unavailable values.
5987 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5989 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5990 * c-typeprint.c (c_type_print_args): Update the function comment. New
5991 variable param_type, initialize it. Remove const/volatile qualifiers
5992 for language_cplus and !show_artificial. Use param_type.
5994 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5996 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5997 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5998 * symtab.h (struct symtab) <next>: Comment extension.
6000 2011-02-12 Yao Qi <yao@codesourcery.com>
6002 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6004 2011-02-11 Yao Qi <yao@codesourcery.com>
6006 * common/Makefile.in: Add copyright header.
6008 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6010 * infrun.c (proceed): Move switching out and in of tfind mode from
6012 (fetch_inferior_event): ... to here.
6014 2011-02-11 Yao Qi <yao@codesourcery.com>
6016 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6018 * configure.ac: Add common to sub dir.
6019 * configure: Regenerate.
6021 2011-02-11 Yao Qi <yao@codesourcery.com>
6025 * common/Makefile.in: New.
6026 * common/configure.ac: New.
6027 * common/aclocal.m4: New.
6028 * common/configure: Generate.
6030 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6032 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6033 side of the parenthesis.
6036 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6037 * vec.h (VEC_block_remove): Fix comment.
6039 2011-02-08 Michael Snyder <msnyder@vmware.com>
6041 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6043 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6045 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6046 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6049 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6052 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6054 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6055 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6057 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6059 * dwarf2read.c (read_subroutine_type): Set special calling
6060 convention flag for functions compiled by IBM XL C for OpenCL.
6061 * ppc-sysv-tdep.c: Include "dwarf2.h"
6062 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6064 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6065 IBM OpenCL vector types calling convention.
6066 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6067 (ppc_sysv_abi_broken_return_value): Likewise.
6068 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6069 types calling convention.
6070 (ppc64_sysv_abi_return_value): Likewise.
6071 * spu-tdep.c: Include "dwarf2.h"
6072 (spu_return_value): Implement IBM OpenCL vector types calling
6075 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6077 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6078 correct ABI for AltiVec vector arguments.
6080 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6082 * valprint.c (val_print): Extend comment.
6083 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6084 interface explanation to val_print.
6085 (ada_val_print_array): Adjust comment to current interface.
6086 (print_field_values): Adjust comment to current interface.
6087 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6088 explanation to val_print.
6089 * f-valprint.c (f_val_print): Ditto.
6090 * jv-valprint.c (java_val_print): Ditto.
6091 * m2-valprint.c (m2_val_print): Ditto.
6092 * p-valprint.c (pascal_val_print): Ditto.
6094 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6096 * breakpoint.c (parse_breakpoint_sals): Fix description.
6098 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6099 Oguz Kayral <oguzkayral@gmail.com>
6101 * python/py-inferior.c (python_on_normal_stop): New function.
6102 (python_on_resume): New function.
6103 (python_inferior_exit): New function.
6104 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6105 inferior_exit observers.
6106 * python/py-evtregistry.c: New file.
6107 * python/py-threadevent.c : New file.
6108 * python/py-event.c: New file.
6109 * python/py-evts.c: New file.
6110 * python/py-continueevent.c: New file.
6111 * python/py-bpevent.c: New file.
6112 * python/py-signalevent.c: New file.
6113 * python/py-exetiedevent.c: New file.
6114 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6115 Move struct breakpoint_object from here...
6116 * python/python-internal.h: ... to here.
6117 * python/py-event.h: New file.
6118 * python/py-events.h: New file.
6119 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6120 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6121 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6122 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6123 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6124 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6125 Add build rules for all the above.
6127 2011-02-04 Tom Tromey <tromey@redhat.com>
6129 * dwarf2read.c (dwarf2_section_empty_p): New function.
6130 (dwarf2_read_section): Use dwarf2_section_empty_p.
6131 (dwarf2_section_size): New function.
6132 (dwarf2_get_section_info): Unconditionally read section.
6133 (dwarf2_read_index): Use dwarf2_section_empty_p.
6134 (partial_read_comp_unit_head): Use dwarf2_section_size.
6135 (dwarf2_symbol_mark_computed): Likewise.
6137 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6139 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6141 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6143 * mips-linux-tdep.c: Include xml-syscall.h.
6144 (mips_linux_get_syscall_number): New function.
6145 (mips_linux_init_abi): Add calls to
6146 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6147 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6148 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6149 * syscalls/mips-n32-linux.xml: New file.
6150 * syscalls/mips-n64-linux.xml: New file.
6151 * syscalls/mips-o32-linux.xml: New file.
6153 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6155 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6156 Complain about inverted range entries.
6157 (dwarf2_record_block_ranges): Likewise.
6159 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6162 * breakpoint.c (update_watchpoint): Fix name of the
6163 update_global_location_list function.
6164 (print_one_breakpoint): Fix typo.
6165 (_initialize_breakpoint): Remove extra space in hbreak help
6167 * breakpoint.h (struct bp_location) <length>: Fix field
6170 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6172 * regcache.c (registers_changed_ptid): Don't explictly always
6173 clear `current_regcache'. Only clear current_thread_ptid and
6174 current_thread_arch when PTID matches. Only reinit the frame
6175 cache if PTID matches the current inferior_ptid. Move alloca(0)
6177 (registers_changed): ... here.
6179 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6181 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6182 starts with __stack_chk_guard as stack guard symbol.
6184 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6186 * disasm.c (compare_lines): Handle the end of sequence markers
6187 within the line table to better support disassembling over
6188 compilation unit boundaries.
6190 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6192 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6193 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6194 implementation even if no symbols are available.
6195 (thumb_analyze_prologue): Update call to skip_prologue_function.
6196 (arm_analyze_prologue): Likewise.
6198 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6200 * arm-tdep.c: Include "observer.h".
6201 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6202 (arm_exidx_data_key): New static variable.
6203 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6204 (struct arm_exidx_data): Likewise.
6205 (arm_exidx_data_free): New function.
6206 (arm_compare_exidx_entries): Likewise.
6207 (arm_obj_section_from_vma): Likewise.
6208 (arm_exidx_new_objfile): Likewise.
6209 (arm_find_exidx_entry): Likewise.
6210 (arm_exidx_fill_cache): Likewise.
6211 (arm_exidx_unwind_sniffer): Likewise.
6212 (arm_exidx_unwind): New global variable.
6213 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6214 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6215 observer. Register arm_exidx_data_key as objfile data.
6217 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6219 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6220 due to accessing uninitialized variable. Fix indentation.
6222 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6224 * c-valprint.c (c_value_print): When doing virtual base pointer
6225 adjustment, create a new value with adjusted contents rather than
6226 changing the contents of the value being printed (and getting it
6229 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6231 * xml-support.c (xml_find_attribute): New.
6232 (xinclude_start_include): Use it.
6233 * xml-support.h (xml_find_attribute): Declare.
6234 * memory-map.c (memory_map_start_memory)
6235 (memory_map_start_property): Use xml_find_attribute.
6236 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6238 * remote.c (start_thread): Use xml_find_attribute.
6239 * solib-target.c (library_list_start_segment)
6240 (library_list_start_section, library_list_start_library)
6241 (library_list_start_list): Use xml_find_attribute.
6242 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6243 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6244 (tdesc_start_field): Use xml_find_attribute.
6246 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6248 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6249 (BUILD_OCL_VTYPES): Update.
6251 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6253 * configure.ac: Work around non-GNU sed limitation when computing
6254 python version number.
6255 * configure: Regenerate.
6257 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6259 Fix debug printing of TYPE_INSTANCE.
6260 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6261 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6263 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6265 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6266 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6267 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6268 * ada-operator.inc: Rename the file to ...
6269 * ada-operator.def: ... here, wrap all the entries by macro OP.
6270 * expprint.c (op_name_standard): Remove all the entries. Include
6271 "std-operator.def" instead.
6272 * expression.h (enum exp_opcode): Include "std-operator.def" and
6273 "ada-operator.def". Move all the entries ...
6274 * std-operator.def: ... here, wrap all the entries by macro OP.
6276 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6278 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6279 * breakpoint.c (remove_jit_event_breakpoints): New function.
6280 * jit.c (jit_descriptor_addr): Delete.
6281 (registering_code): Delete.
6282 (clear_int): Delete.
6283 (jit_inferior_data): New variable.
6284 (struct jit_inferior_data): New type.
6285 (get_jit_inferior_data): New function.
6286 (jit_inferior_data_cleanup): New function.
6287 (jit_read_descriptor): Adjust.
6288 (jit_register_code): Adjust.
6289 (jit_breakpoint_re_set_internal): New function; move code here ...
6290 (jit_inferior_init): ... from here.
6291 (jit_breakpoint_re_set): Adjust.
6292 (jit_reset_inferior_data_and_breakpoints): New function.
6293 (jit_inferior_created_observer): Adjust.
6294 (jit_inferior_exit_hook): Adjust.
6295 (jit_executable_changed_observer): New function.
6296 (jit_event_handler): Adjust.
6297 (_initialize_jit): Adjust.
6299 2011-01-31 Michael Snyder <msnyder@vmware.com>
6301 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6304 2011-01-31 Tom Tromey <tromey@redhat.com>
6307 * python/python.c (execute_gdb_command): Call
6308 prevent_dont_repeat.
6309 * top.c (suppress_dont_repeat): New global.
6310 (dont_repeat): Use it.
6311 (prevent_dont_repeat): New function.
6312 * command.h (prevent_dont_repeat): Declare.
6314 2011-01-31 Tom Tromey <tromey@redhat.com>
6316 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6317 * python/py-breakpoint.c (bppy_set_silent): Use
6318 breakpoint_set_silent.
6319 (bppy_set_thread): Use breakpoint_set_thread.
6320 (bppy_set_task): Use breakpoint_set_task.
6321 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6322 (breakpoint_set_task): Declare.
6323 (make_breakpoint_silent): Remove.
6324 * breakpoint.c (breakpoint_set_silent): New function.
6325 (breakpoint_set_thread): Likewise.
6326 (breakpoint_set_task): Likewise.
6327 (make_breakpoint_silent): Remove.
6329 2011-01-31 Tom Tromey <tromey@redhat.com>
6331 * breakpoint.h (user_breakpoint_p): Declare.
6332 * breakpoint.c (user_breakpoint_p): New function.
6333 (breakpoint_1): Use it.
6334 (save_breakpoints): Likewise.
6336 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6338 * configure.ac: Add handling of Python distribution on Windows.
6339 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6340 sysconfig variables are not defined, then do not use them.
6341 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6342 instead. On Windows, return all paths using forward-slashes
6343 rather than backslashes.
6345 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6347 * configure.ac: Remove fallback behavior for building
6348 against Python. Remove tweaking of Python include path.
6349 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6350 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6351 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6352 Always restore CPPFLAGS and LIBS after linking test.
6353 * configure: Regenerated.
6354 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6355 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6356 * python/python-internal.h: Adjust includes of Python .h files.
6358 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6360 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6363 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6365 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6368 2011-01-31 Yao Qi <yao@codesourcery.com>
6370 * arm-linux-nat.c: Update calls to regcache_register_status
6371 instead of regcache_valid_p.
6372 * aix-thread.c: Likewise.
6373 * i386gnu-nat.c: Likewise.
6375 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6378 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6379 touching TYPE_FIELD_ARTIFICIAL.
6381 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6383 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6386 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6388 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6389 selected, don't try iterating over the traceframe's blocks.
6390 (tfile_has_stack): If there's no traceframe selected, then there's
6392 (tfile_has_registers): If there's no traceframe selected, then
6393 there's no registers.
6395 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6397 * target.c (memory_xfer_partial): No need to restore shadows if we
6398 haven't read anything.
6400 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6402 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6403 and val_print_scalar_formatted.
6405 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6407 * tracepoint.c (tfile_read): New.
6408 (tfile_open): Use it.
6409 (tfile_get_traceframe_address): Use it.
6410 (tfile_trace_find): Use it.
6411 (walk_blocks_callback_func): New typedef.
6412 (match_blocktype): New function.
6413 (traceframe_walk_blocks): New function.
6414 (traceframe_find_block_type): New function.
6415 (tfile_fetch_registers, tfile_xfer_partial)
6416 (tfile_get_trace_state_variable_value): Use
6417 traceframe_find_block_type and tfile_read.
6419 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6421 * remote-mips.c: Add internationalization mark ups. Remove
6422 trailing \n from already marked up strings.
6424 2011-01-26 Tom Tromey <tromey@redhat.com>
6426 * python/py-prettyprint.c (print_string_repr): Clear
6427 'addressprint' option when calling val_print_string.
6428 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6429 option when calling val_print_string.
6431 2011-01-26 Tom Tromey <tromey@redhat.com>
6433 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6435 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6437 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6438 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6439 (gdb_py_long_as_ulongest): New defines.
6440 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6441 (gdb_py_int_as_long): Declare.
6442 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6443 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6444 (valpy_long): Add comment.
6445 * python/py-utils.c (get_addr_from_python): Use
6446 gdb_py_long_as_ulongest. Handle overflow properly.
6447 (gdb_py_object_from_longest): New function.
6448 (gdb_py_object_from_ulongest): Likewise.
6449 (gdb_py_int_as_long): Likewise.
6450 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6451 * python/py-symtab.c (salpy_get_pc): Use
6452 gdb_py_long_from_ulongest.
6453 (salpy_get_line): Use PyInt_FromLong.
6454 * python/py-param.c (set_parameter_value): Use
6456 * python/py-lazy-string.c (stpy_get_address): Use
6457 gdb_py_long_from_ulongest.
6458 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6459 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6460 * python/py-breakpoint.c (bppy_set_thread): Use
6462 (bppy_set_task): Likewise.
6463 (bppy_set_ignore_count): Likewise.
6464 (bppy_set_hit_count): Likewise.
6465 * python/py-block.c (blpy_get_start): Use
6466 gdb_py_object_from_ulongest.
6467 (blpy_get_end): Likewise.
6468 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6470 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6473 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6474 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6475 equality test for objfile, initialize addr_low if needed.
6477 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6479 * tui/tui-regs.c (tui_register_format): Remove dead code.
6481 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6483 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6484 instead of print_scalar_formatted.
6485 (print_scalar_formatted): Don't handle 's' format strings here,
6486 and add an assertion that we never see such format here.
6487 * valprint.h (val_print_scalar_formatted): Declare.
6488 * valprint.c (val_print_scalar_formatted): New.
6489 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6490 instead of print_scalar_formatted.
6491 * jv-valprint.c (java_val_print): Ditto.
6492 * p-valprint.c (pascal_val_print): Ditto.
6493 * ada-valprint.c (ada_val_print_1): Ditto.
6494 * f-valprint.c (f_val_print): Ditto.
6495 * infcmd.c (registers_info): Ditto.
6496 * m2-valprint.c (m2_val_print): Ditto.
6498 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6500 * m2-valprint.c (print_unbounded_array): Pass
6501 value_contents_for_printing rather than value_contents, to
6502 m2_print_array_contents. Also pass in the value.
6504 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6507 (save_gdb_index_command): Switch to .gdb_index version 4.
6509 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6511 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6512 than frame_register, and always pass a valid value to val_print.
6514 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6516 Centralize printing "<optimized out>".
6518 * valprint.h (val_print_optimized_out): Declare.
6519 * cp-valprint.c (cp_print_value_fields): Use
6520 val_print_optimized_out.
6521 * jv-valprint.c (java_print_value_fields): Ditto.
6522 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6523 * printcmd.c (print_formatted): Ditto.
6524 * valprint.c (valprint_check_validity): Ditto.
6525 (value_check_printable): Ditto.
6526 (val_print_optimized_out): New.
6528 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6530 * infcmd.c (default_print_registers_info): Allocate values so to
6531 never pass a NULL value to val_print.
6533 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6535 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6536 boolean. Make sure to always pass a value that matches the
6537 contents buffer to callees. Preserve `address' for following
6539 * value.c (value_contents_for_printing_const): New.
6540 (value_address): Constify value argument.
6541 * value.h (value_contents_for_printing_const): Declare.
6542 (value_address): Constify value argument.
6544 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6546 * regcache.c (struct regcache_descr): Rename
6547 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6548 and sizeof_cooked_register_valid_p to
6549 sizeof_cooked_register_status.
6550 (init_regcache_descr): Adjust.
6551 (struct regcache): Rename register_valid_p field to
6553 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6554 (do_cooked_read): Adjust.
6555 (regcache_valid_p): Rename to ...
6556 (regcache_register_status): ... this. Adjust.
6557 (regcache_invalidate): Adjust.
6558 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6560 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6561 as unavailable, not valid.
6562 (regcache_dump): Adjust.
6563 * regcache.h (enum register_status): New.
6564 (regcache_register_status): Declare.
6565 (regcache_invalidate): Delete declaration.
6566 * corelow.c (get_core_registers): Adjust.
6567 * tracepoint.c (tfile_fetch_registers): Adjust.
6568 * trad-frame.c (REG_VALUE): Rename to ...
6569 (TF_REG_VALUE): ... this.
6570 (REG_UNKNOWN): Rename to ...
6571 (TF_REG_UNKNOWN): ... this.
6572 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6573 * mi/mi-main.c (register_changed_p): Adjust.
6575 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6577 * regcache.c (struct regcache_descr): Remove outdated comment.
6578 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6580 (regcache_xmalloc): Rename to ...
6581 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6582 Allocate the regcache type accordingly.
6583 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6584 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6585 cooked registers, not raw.
6586 (regcache_dup_no_passthrough): Delete.
6587 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6588 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6589 mention obsolete write_register_bytes.
6590 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6592 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6594 Stop remote_read_bytes from handling partial reads itself.
6596 * remote-fileio.c: Include target.h.
6597 (remote_fileio_write_bytes): Delete.
6598 (remote_fileio_func_open, remote_fileio_func_write)
6599 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6601 (remote_fileio_func_stat): Use target_read_memory and
6602 target_write_memory.
6603 (remote_fileio_func_gettimeofday): Use target_write_memory.
6604 (remote_fileio_func_system): Use target_read_memory.
6605 * remote.c (remote_write_bytes): Make it static.
6606 (remote_read_bytes): Don't handle partial reads here.
6607 * remote.h (remote_read_bytes): Delete declaration.
6609 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6611 Simplify XML parsing a bit.
6613 * xml-support.h (gdb_xml_parse_quick): Declare.
6614 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6615 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6617 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6618 gdb_xml_create_parser_and_cleanup_1.
6619 (gdb_xml_parse_quick): New.
6620 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6621 * osdata.c (osdata_parse): Ditto.
6622 * remote.c (remote_threads_info): Ditto.
6623 * solib-target.c (solib_target_parse_libraries): Ditto.
6624 * xml-syscall.c (syscall_parse_xml): Ditto.
6625 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6627 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6629 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6630 with remote-mips.o added to gdb_target_obs.
6631 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6633 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6635 * ada-valprint.c (val_print_packed_array_elements): Pass the
6636 correct struct value to val_print.
6637 (ada_val_print_1): Ditto.
6639 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6641 Don't lose embedded_offset in printing routines throughout.
6643 * valprint.h (val_print_array_elements): Change prototype.
6644 * valprint.c (val_print_array_elements): Add `embedded_offset'
6645 parameter, and adjust to pass it down to val_print, while passing
6646 `valaddr' or `address' unmodified. Take embedded_offset into
6647 account when checking repetitions.
6648 * c-valprint.c (c_val_print): Pass embedded_offset to
6649 val_print_array_elements instead of adjusting `valaddr' and
6651 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6652 embedded_offset to val_print_array_elements instead of adjusting
6654 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6655 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6656 val_print_array_elements and pascal_object_print_value_fields
6657 instead of adjusting `valaddr'.
6658 (pascal_object_print_value_fields): Add `offset' parameter, and
6660 (pascal_object_print_value): Add `offset' parameter, and adjust to
6662 (pascal_object_print_static_field): Use
6663 value_contents_for_printing/value_embedded_offset, rather than
6665 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6666 parameter, and adjust to use it. Use
6667 value_contents_for_printing/value_embedded_offset, rather than
6669 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6670 (ada_val_print_array): Add `offset' parameter, and adjust to use
6672 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6673 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6674 Instead work with offsets. Use
6675 value_contents_for_printing/value_embedded_offset, rather than
6676 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6677 and use value_from_pointer to extract a target pointer, rather
6678 than value_from_longest.
6679 (print_variant_part): Add `offset' parameter. Replace
6680 `outer_valaddr' parameter by a new `outer_offset' parameter.
6681 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6682 (ada_value_print): Use
6683 value_contents_for_printing/value_embedded_offset, rather than
6685 (print_record): Add `offset' parameter, and adjust to pass it
6687 (print_field_values): Add `offset' parameter. Replace
6688 `outer_valaddr' parameter by a new `outer_offset' parameter.
6689 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6690 Use value_contents_for_printing/value_embedded_offset, rather than
6692 * d-valprint.c (dynamic_array_type): Use
6693 value_contents_for_printing/value_embedded_offset, rather than
6695 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6696 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6697 (java_print_value_fields): Take `offset' into account. Don't
6698 re-adjust `valaddr'. Instead pass down adjusted offsets.
6699 (java_val_print): Take `embedded_offset' into account. Pass it to
6700 java_print_value_fields.
6701 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6702 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6703 down adjusted offsets.
6704 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6705 (f_val_print): Take `embedded_offset' into account.
6707 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6709 * inflow.c: Include "gdbcmd.h".
6710 (interactive_mode): New static global, moved here from top.c.
6711 (show_interactive_mode): New function, moved here from top.c.
6712 use gdb_has_a_terminal instead of input_from_terminal_p to
6713 determine the current mode.
6714 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6716 (_initialize_inflow): Add the "set/show interactive-mode"
6717 commands. Moved here from top.c, after having adjusted slightly
6719 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6721 (input_from_terminal_p): Remove handling of "interactive-mode"
6722 setting, moved to infow.c.
6723 (init_main): Remove creation of the "set/show interactive-mode"
6724 commands, moved to inflow.c.
6726 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6728 * NEWS: Add entry for native ia64-hpux support.
6730 2011-01-19 Tom Tromey <tromey@redhat.com>
6733 * thread.c (free_thread): Free 'name'.
6734 (print_thread_info): Emit thread name. Change CLI output.
6735 (thread_name_command): New function.
6736 (do_captured_thread_select): Emit newline.
6737 (_initialize_thread): Register 'thread name' command.
6738 * target.h (struct target_ops) <to_thread_name>: New field.
6739 (target_thread_name): New macro.
6740 * target.c (update_current_target): Handle to_thread_name.
6741 * python/py-infthread.c (thpy_get_name): New function.
6742 (thpy_set_name): Likewise.
6743 (thread_object_getset): Add "name".
6744 * linux-nat.c (linux_nat_thread_name): New function.
6745 (linux_nat_add_target): Set to_thread_name.
6746 * gdbthread.h (struct thread_info) <name>: New field.
6748 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6750 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6751 (ada_val_print_1): Likewise.
6753 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6755 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6756 upper limit address is not greater than the function end address
6757 when the upper limit could not be computed using the debugging
6760 2011-01-17 Tom Tromey <tromey@redhat.com>
6762 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6764 * utils.c: Include gdb_regex.h.
6765 (do_regfree_cleanup): New function.
6766 (make_regfree_cleanup): Likewise.
6767 (get_regcomp_error): Likewise.
6768 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6770 2011-01-17 Tom Tromey <tromey@redhat.com>
6772 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6775 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6777 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6778 for internal variables.
6779 (last_was_structop): New static variable.
6780 (COMPLETE): New token.
6781 (field_exp): New rule to group all '.' suffix handling.
6782 Add mark_struct_expression calls when approriate to be able
6783 to correctly find fields for completion.
6784 (yylex): Adapt to handle field completion and set INTVAR when
6787 2011-01-14 Yao Qi <yao@codesourcery.com>
6789 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6790 save_reggroup, restore_reggroup and all_reggroup.
6792 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6794 * ada-valprint. (ada_printchar): Use the correct type length
6795 in call to ada_emit_char.
6796 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6798 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6800 * solib-som.h (hpux_major_release): Declare variable here.
6801 * solib-som.c: Remove <sys/utsname.h> header.
6802 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6803 (hpux_major_release): Make global, change default value to
6804 DEFAULT_HPUX_MAJOR_RELEASE.
6805 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6806 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6807 Add "solib-som.h" header.
6808 (set_hpux_major_release): New function.
6809 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6811 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6813 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6815 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6817 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6818 new-line at end of warning message.
6819 (ia64_hpux_store_register): Remove trailing new-line at end of
6821 * ia64-hpux-tdep.c: Rephrase comment.
6822 * solib-ia64-hpux.c (struct dld_info): Change type of field
6823 dld_flags from "long long" to ULONGEST.
6825 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6827 * target.h (deprecated_child_ops): Delete declaration.
6828 * target.c (deprecated_child_ops): Delete definition.
6830 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6832 * Makefile.in (hpux-thread.o): Delete rule.
6833 * configure.ac: Don't check for HPUX DCE threads support.
6834 * configure, config.in: Regenerate.
6835 * hppa-hpux-nat.c (child_suppress_run): Delete.
6836 (hppa_hpux_child_can_run): Delete.
6837 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6838 * hpux-thread.c: Delete.
6840 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6842 * hpux-thread.c (hpux_pid_to_str): Delete.
6844 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6846 * ada-valprint.c (ada_emit_char): Remove strange code.
6847 Check that c is <= UCHAR_MAX before passing it to isascii.
6848 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6850 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6852 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6853 to the case where instream is stdin.
6855 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6857 * ia64-tdep.h (struct regcache): Forward declare.
6858 (struct ia64_infcall_ops): New struct type.
6859 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6861 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6862 Renames ia64_find_global_pointer.
6863 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6864 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6865 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6867 (ia64_infcall_ops): New static global constant.
6868 (ia64_gdbarch_init): Set tdep->infcall_ops.
6869 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6870 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6871 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6872 (ia64_hpux_dummy_code): New static global constant.
6873 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6874 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6875 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6877 (ia64_hpux_infcall_ops): New static global constant.
6878 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6879 for inferior function calls to work properly on ia64-hpux.
6881 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6883 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6884 * ia64-tdep.h (struct frame_info): forward declaration.
6885 (struct gdbarch_tdep): Add field size_of_register_frame.
6886 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6887 to determine the size of the register frame.
6888 (ia64_size_of_register_frame): New function.
6889 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6890 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6891 (IA64_HPUX_UREG_REASON): New macro.
6892 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6894 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6895 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6896 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6899 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6901 Add support for ia64-hpux.
6902 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6903 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6905 * configure.host: Add handling for ia64-hpux hosts. Add associated
6907 * configure.tgt: Add handling for ia64-hpux targets.
6908 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6909 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6910 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6912 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6914 [ttrace] Compute thread list immediately after attach.
6915 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6917 (inf_ttrace_attach): Use it.
6919 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6921 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6922 if we could not determine the frame's function address. Instead,
6923 use the frame's PC, and then continue.
6925 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6927 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6928 not already defined.
6930 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6932 * ia64-tdep.c (ia64_struct_type_p): New function.
6933 (ia64_extract_return_value): Handle integral values that are
6934 less than 8 bytes long.
6935 (ia64_push_dummy_call): Likewise.
6937 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6939 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6940 floatformat_ia64_ext.
6941 (floatformat_ia64_ext_big): New static const.
6942 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6944 2011-01-12 Tom Tromey <tromey@redhat.com>
6946 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6948 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6949 (mi_cmd_thread_list_ids): Likewise.
6950 (mi_cmd_data_list_changed_registers): Likewise.
6951 (mi_cmd_data_list_register_values): Likewise.
6952 (mi_cmd_data_write_register_values): Likewise.
6953 (mi_cmd_data_evaluate_expression): Likewise.
6954 (mi_cmd_data_read_memory): Likewise.
6955 (mi_cmd_data_read_memory_bytes): Likewise.
6956 (mi_cmd_data_write_memory): Likewise.
6957 (mi_cmd_enable_timings): Likewise.
6958 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6959 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6960 (mi_cmd_var_delete): Likewise.
6961 (mi_cmd_var_set_format): Likewise.
6962 (mi_cmd_var_show_format): Likewise.
6963 (mi_cmd_var_info_num_children): Likewise.
6964 (mi_cmd_var_list_children): Likewise.
6965 (mi_cmd_var_info_type): Likewise.
6966 (mi_cmd_var_info_expression): Likewise.
6967 (mi_cmd_var_show_attributes): Likewise.
6968 (mi_cmd_var_assign): Likewise.
6969 (mi_cmd_var_update): Likewise.
6970 (mi_cmd_enable_pretty_printing): Likewise.
6971 (mi_cmd_var_set_update_range): Likewise.
6972 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6974 (mi_cmd_target_file_put): Likewise.
6975 (mi_cmd_target_file_delete): Likewise.
6976 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6978 (mi_cmd_stack_info_depth): Likewise.
6979 (mi_cmd_stack_list_locals): Likewise.
6980 (mi_cmd_stack_list_args): Likewise.
6981 (mi_cmd_stack_select_frame): Likewise.
6982 (mi_cmd_stack_select_frame): Likewise.
6983 (mi_cmd_stack_info_frame): Likewise.
6984 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6986 (mi_cmd_file_list_exec_source_files): Likewise.
6987 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6988 (mi_cmd_env_cd): Likewise.
6989 (mi_cmd_env_path): Likewise.
6990 (mi_cmd_env_dir): Likewise.
6991 (mi_cmd_inferior_tty_show): Likewise.
6992 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6993 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6994 (mi_cmd_break_watch): Likewise.
6996 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6998 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6999 (ppc_linux_insert_hw_breakpoint): Likewise.
7000 (ppc_linux_remove_hw_breakpoint): Likewise.
7001 (ppc_linux_insert_watchpoint): Likewise.
7003 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7004 Jan Kratochvil <jan.kratochvil@redhat.com>
7006 PR fortran/11104 and DWARF unbound arrays detection.
7007 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7008 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7009 unspecified upper bound.
7010 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7011 variables array_size_array, tmp_type and offset_item. New variable
7012 array. Remove call to f77_get_upperbound. New variables array_type
7013 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7014 the final call to deprecated_set_value_type.
7016 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7018 Make value allocations more lazy.
7019 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7020 instead of allocate_value and set_value_lazy when possible.
7021 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7022 instead of allocate_value and set_value_lazy.
7023 * findvar.c (value_of_register_lazy): Likewise.
7024 (read_var_value): Remove V preallocation, call just check_typedef in
7025 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7026 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7027 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7028 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7029 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7030 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7031 the end, remove set_value_lazy there.
7032 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7033 instead of allocate_value and set_value_lazy when possible.
7034 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7035 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7036 of allocate_value and set_value_lazy.
7037 (value_from_contents_and_address): Use allocate_value_lazy instead of
7038 allocate_value and set_value_lazy when possible.
7040 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7042 * disasm.c (dump_insns): Support dumping opcodes for MI.
7043 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7044 dumping of instruction opcodes.
7046 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7048 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7051 2011-01-11 Tom Tromey <tromey@redhat.com>
7053 * thread.c (do_captured_thread_select): Emit newline before
7056 2011-01-11 Michael Snyder <msnyder@vmware.com>
7058 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7059 * score-tdep.c: Ditto.
7060 * score-tdep.h: Ditto.
7061 * ser-base.c: Ditto.
7062 * ser-go32.c: Ditto.
7065 * ser-mingw.c: Ditto.
7066 * ser-pipe.c: Ditto.
7068 * ser-unix.c: Ditto.
7069 * sh64-tdep.c: Ditto.
7070 * shnbsd-nat.c: Ditto.
7074 * solib-darwin.c: Ditto.
7075 * solib-frv.c: Ditto.
7077 * solib-irix.c: Ditto.
7078 * solib-osf.c: Ditto.
7079 * solib-pa64.c: Ditto.
7080 * solib-som.c: Ditto.
7081 * solib-spu.c: Ditto.
7082 * solib-sunos.c: Ditto.
7083 * solib-svr4.c: Ditto.
7085 * sol-thread.c: Ditto.
7089 * sparc64-linux-tdep.c: Ditto.
7090 * sparc64-tdep.c: Ditto.
7091 * sparc-linux-nat.c: Ditto.
7092 * sparc-linux-tdep.c: Ditto.
7093 * sparc-sol2-nat.c: Ditto.
7094 * sparc-sol2-tdep.c: Ditto.
7095 * sparc-tdep.c: Ditto.
7096 * sparc-tdep.h: Ditto.
7097 * spu-tdep.c: Ditto.
7098 * stabsread.c: Ditto.
7099 * stabsread.h: Ditto.
7107 * target-descriptions.c: Ditto.
7108 * target-descriptions.h: Ditto.
7110 * target-memory.c: Ditto.
7111 * terminal.h: Ditto.
7114 * tracepoint.c: Ditto.
7115 * tracepoint.h: Ditto.
7116 * trad-frame.h: Ditto.
7117 * typeprint.c: Ditto.
7119 2011-01-11 Michael Snyder <msnyder@vmware.com>
7121 * ui-file.c: Comment cleanup, mostly periods and spaces.
7126 * v850-tdep.c: Ditto.
7127 * valarith.c: Ditto.
7129 * valprint.c: Ditto.
7130 * valprint.h: Ditto.
7135 * vax-tdep.c: Ditto.
7139 * windows-nat.c: Ditto.
7140 * windows-tdep.c: Ditto.
7141 * xcoffread.c: Ditto.
7142 * xcoffsolib.c: Ditto.
7143 * xml-support.c: Ditto.
7144 * xstormy16-tdep.c: Ditto.
7145 * xtensa-tdep.c: Ditto.
7146 * xtensa-tdep.h: Ditto.
7148 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7150 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7151 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7153 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7154 Thiago Jung Bauermann <bauerman@br.ibm.com>
7156 Implement support for PowerPC BookE ranged watchpoints.
7158 (struct breakpoint_ops) <resources_needed>: New method.
7159 Initialize to NULL in all existing breakpoint_ops instances.
7160 (struct breakpoint) <exact>: New field.
7161 (target_exact_watchpoints): Declare external global.
7162 * breakpoint.c (target_exact_watchpoints): New global flag.
7163 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7164 b->enable_state to bp_enabled before calling
7165 hw_watchpoint_used_count.
7166 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7167 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7169 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7170 if the watchpoint is exact.
7171 (resources_needed_watchpoint): New function.
7172 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7173 (watch_command_1): Set b->exact if the user asked for an exact
7174 watchpoint and one can be set.
7175 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7176 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7177 the user asks for an exact watchpoint and one can be set. Return
7178 number of needed debug registers to watch the expression.
7179 * gdbtypes.c (is_scalar_type): New function, based on
7180 valprint.c:scalar_type_p.
7181 (is_scalar_type_recursive): New function.
7182 * gdbtypes.h (is_scalar_type_recursive): Declare.
7183 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7184 handle regions when ranged watchpoints are available.
7185 (create_watchpoint_request): New function.
7186 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7187 create_watchpoint_request.
7188 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7189 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7190 `set powerpc' and `show powerpc' commands.
7191 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7192 Mention documentation comment in the target macro.
7193 (target_region_ok_for_hw_watchpoint): Document return value.
7195 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7197 * breakpoint.c (update_watchpoint): Decide on using a software or
7198 hardware watchpoint after the bp_locations are created.
7200 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7202 Convert hardware watchpoints to use breakpoint_ops.
7203 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7204 <insert_location>: ... this. Return int instead of void.
7205 Accept pointer to struct bp_location instead of pointer to
7206 struct breakpoint. Adapt all implementations.
7207 (breakpoint_ops) <remove>: Rename to...
7208 <remove_location>: ... this. Accept pointer to struct bp_location
7209 instead of pointer to struct breakpoint. Adapt all implementations.
7210 * breakpoint.c (insert_catchpoint): Delete function.
7211 (insert_bp_location): Call the watchpoint or catchpoint's
7212 breakpoint_ops.insert method.
7213 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7214 breakpoint_ops.remove method.
7215 (insert_watchpoint, remove_watchpoint): New functions.
7216 (watchpoint_breakpoint_ops): New structure.
7217 (watch_command_1): Initialize the OPS field.
7218 * inf-child.c (inf_child_insert_fork_catchpoint)
7219 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7220 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7221 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7223 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7224 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7225 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7226 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7227 * target.c (update_current_target): Change default implementation of
7228 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7229 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7230 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7231 to_set_syscall_catchpoint to return_one.
7232 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7233 (debug_to_insert_exec_catchpoint): Report return value.
7234 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7235 (to_insert_exec_catchpoint): Change declaration to return int instead
7238 2011-01-11 Michael Snyder <msnyder@vmware.com>
7240 * arm-tdep.c: Internationalization.
7243 * fork-child.c: Ditto.
7244 * nto-procfs.c: Ditto.
7245 * ppc-sysv-tdep.c: Ditto.
7247 * remote-mips.c: Ditto.
7249 * rs6000-nat.c: Ditto.
7250 * rs6000-tdep.c: Ditto.
7254 * xml-support.c: Ditto.
7255 * mi/mi-cmd-break.c: Ditto.
7256 * mi/mi-cmd-var.c: Ditto.
7257 * mi/mi-interp.c: Ditto.
7258 * mi/mi-main.c: Ditto.
7260 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7262 * remote-sim.c (gdbsim_store_register): Update API to
7263 sim_store_register to check more error conditions.
7265 2011-01-10 Michael Snyder <msnyder@vmware.com>
7267 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7268 * nto-tdep.c: Ditto.
7269 * nto-tdep.h: Ditto.
7270 * objc-exp.y: Ditto.
7271 * objc-lang.c: Ditto.
7272 * objfiles.c: Ditto.
7273 * objfiles.h: Ditto.
7274 * observer.c: Ditto.
7275 * opencl-lang.c: Ditto.
7278 * parser-defs.h: Ditto.
7281 * posix-hdep.c: Ditto.
7282 * ppcbug-rom.c: Ditto.
7283 * ppc-linux-nat.c: Ditto.
7284 * ppc-linux-tdep.c: Ditto.
7285 * ppc-linux-tdep.h: Ditto.
7286 * ppcnbsd-tdep.c: Ditto.
7287 * ppcobsd-tdep.c: Ditto.
7288 * ppcobsd-tdep.h: Ditto.
7289 * ppc-sysv-tdep.c: Ditto.
7290 * ppc-tdep.h: Ditto.
7291 * printcmd.c: Ditto.
7292 * proc-abi.c: Ditto.
7293 * proc-flags.c: Ditto.
7295 * proc-utils.h: Ditto.
7296 * progspace.h: Ditto.
7297 * prologue-value.c: Ditto.
7298 * prologue-value.h: Ditto.
7299 * psympriv.h: Ditto.
7301 * p-typeprint.c: Ditto.
7302 * p-valprint.c: Ditto.
7303 * ravenscar-sparc-thread.c: Ditto.
7304 * ravenscar-thread.c: Ditto.
7305 * ravenscar-thread.h: Ditto.
7307 * regcache.c: Ditto.
7308 * regcache.h: Ditto.
7310 * remote-fileio.c: Ditto.
7311 * remote-fileio.h: Ditto.
7313 * remote-m32r-sdi.c: Ditto.
7314 * remote-mips.c: Ditto.
7315 * remote-sim.c: Ditto.
7316 * rs6000-aix-tdep.c: Ditto.
7317 * rs6000-nat.c: Ditto.
7318 * rs6000-tdep.c: Ditto.
7320 2011-01-10 Michael Snyder <msnyder@vmware.com>
7322 * charset.c (validate): Internationalization.
7323 * coffread.c (read_one_sym): Ditto.
7324 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7325 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7326 * inflow.c (new_tty): Ditto.
7327 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7328 * m32c-tdep.c (m32c_return_value): Ditto.
7329 * mep-tdep.c (mep_store_return_value): Ditto.
7330 * score-tdep.c (score7_fetch_insn): Ditto.
7331 * ser-mingw.c (pipe_windows_open): Ditto.
7332 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7333 * spu-tdep.c (spu_register_type): Ditto.
7334 * tracepoint.c (trace_find_command): Ditto.
7335 * valarith.c (value_pos): Ditto.
7337 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7339 * ada-valprint.c (printstr): Minor comment reformatting.
7341 2011-01-08 Michael Snyder <msnyder@vmware.com>
7343 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7346 2011-01-08 Michael Snyder <msnyder@vmware.com>
7348 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7349 * hppa-hpux-tdep.c: Ditto.
7350 * hppa-linux-nat.c: Ditto.
7351 * hppa-linux-tdep.c: Ditto.
7352 * hppanbsd-tdep.c: Ditto.
7353 * hppa-tdep.c: Ditto.
7354 * hppa-tdep.h: Ditto.
7355 * hpux-thread.c: Ditto.
7356 * i386-cygwin-tdep.c: Ditto.
7357 * i386-darwin-nat.c: Ditto.
7358 * i386gnu-nat.c: Ditto.
7359 * i386-linux-nat.c: Ditto.
7360 * i386-linux-tdep.c: Ditto.
7361 * i386-nat.c: Ditto.
7362 * i386-nat.h: Ditto.
7363 * i386nbsd-tdep.c: Ditto.
7364 * i386-sol2-nat.c: Ditto.
7365 * i386-stub.c: Ditto.
7366 * i386-tdep.c: Ditto.
7367 * i386-tdep.h: Ditto.
7368 * i387-tdep.c: Ditto.
7369 * ia64-linux-nat.c: Ditto.
7370 * ia64-linux-tdep.c: Ditto.
7371 * ia64-tdep.c: Ditto.
7375 * inferior.c: Ditto.
7376 * inferior.h: Ditto.
7382 * iq2000-tdep.c: Ditto.
7383 * irix5-nat.c: Ditto.
7389 * jv-typeprint.c: Ditto.
7390 * jv-valprint.c: Ditto.
7391 * language.c: Ditto.
7392 * language.h: Ditto.
7393 * linespec.c: Ditto.
7394 * linux-fork.c: Ditto.
7395 * linux-nat.c: Ditto.
7396 * linux-thread-db.c: Ditto.
7397 * lm32-tdep.c: Ditto.
7399 2011-01-08 Michael Snyder <msnyder@vmware.com>
7401 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7403 * m2-typeprint.c: Ditto.
7404 * m2-valprint.c: Ditto.
7405 * m32c-tdep.c: Ditto.
7406 * m32r-linux-nat.c: Ditto.
7407 * m32r-rom.c: Ditto.
7408 * m32r-tdep.c: Ditto.
7409 * m32r-tdep.h: Ditto.
7410 * m68hc11-tdep.c: Ditto.
7411 * m58klinux-nat.c: Ditto.
7412 * m68k-tdep.c: Ditto.
7413 * m88k-tdep.c: Ditto.
7414 * m88k-tdep.h: Ditto.
7415 * machoread.c: Ditto.
7416 * macrocmd.c: Ditto.
7417 * macroexp.c: Ditto.
7418 * macrotab.c: Ditto.
7421 * mdebugread.c: Ditto.
7422 * mdebugread.h: Ditto.
7425 * memory-map.h: Ditto.
7426 * mep-tdep.c: Ditto.
7427 * microblaze-rom.c: Ditto.
7428 * microblaze-tdep.c: Ditto.
7430 * mips-irix-tdep.c: Ditto.
7431 * mips-linux-nat.c: Ditto.
7432 * mips-linux-tdep.c: Ditto.
7433 * mips-linux-tdep.h: Ditto.
7434 * mipsnbsd-nat.c: Ditto.
7435 * mipsnbsd-tdep.c: Ditto.
7436 * mipsread.c: Ditto.
7437 * mips-tdep.c: Ditto.
7438 * mips-tdep.h: Ditto.
7439 * mn10300-linux-tdep.c: Ditto.
7440 * mn10300-tdep.c: Ditto.
7441 * mn10300-tdep.h: Ditto.
7444 * moxie-tdep.c: Ditto.
7445 * moxie-tdep.h: Ditto.
7448 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7450 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7452 2011-01-08 Robert Millan <rmh@gnu.org>
7454 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7456 2011-01-07 Michael Snyder <msnyder@vmware.com>
7458 * charset.c (_initialize_charset): Fix typo in string.
7460 2011-01-07 Michael Snyder <msnyder@vmware.com>
7462 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7464 * tui/tui-layout.c (tui_set_layout_for_display_command):
7465 Split line so that operator goes to beginning of line.
7466 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7467 assignment out of if statement.
7469 2011-01-07 Michael Snyder <msnyder@vmware.com>
7471 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7472 * ada-lang.h: Ditto.
7473 * ada-tasks.c: Ditto.
7474 * ada-valprint.c: Ditto.
7475 * aix-threads.c: Ditto.
7476 * alpha-linux-nat.c: Ditto.
7477 * alpha-linux-tdep.c: Ditto.
7478 * alpha-mdebug-tdep.c: Ditto.
7479 * alpha-nat.c: Ditto.
7480 * alpha-osf1-tdep.c: Ditto.
7481 * alpha-tdep.c: Ditto.
7482 * alphabsd-nat.c: Ditto.
7483 * alphabsd-tdep.c: Ditto.
7484 * amd64-darwin-tdep.c: Ditto.
7485 * amd64-linux-nat.c: Ditto.
7486 * amd64-linux-tdep.c: Ditto.
7487 * amd64-sol2-tdep.c: Ditto.
7488 * amd64-tdep.c: Ditto.
7489 * amd64-fbsd-tdep.c: Ditto.
7490 * amd64-nbsd-tdep.c: Ditto.
7491 * amd64-obsd-tdep.c: Ditto.
7492 * amd64-linux-nat.c: Ditto.
7493 * amd64-linux-tdep.c: Ditto.
7494 * arm-tdep.c: Ditto.
7495 * arm-tdep.h: Ditto.
7496 * armnbsd-nat.c: Ditto.
7497 * avr-tdep.c: Ditto.
7498 * bfin-tdep.c: Ditto.
7500 * c-typeprintc: Ditto.
7501 * c-valprint.c: Ditto.
7502 * coff-pe-read.h: Ditto.
7503 * coffreead.c: Ditto.
7504 * cris-tdep.c: Ditto.
7506 * darwin-nat-info.c: Ditto.
7507 * darwin-nat.c: Ditto.
7508 * dbug-rom.c: Ditto.
7512 * dec-thread.c: Ditto.
7514 * demangle.c: Ditto.
7515 * dicos-tdep.c: Ditto.
7516 * dictionary.c: Ditto.
7517 * dictionary.h: Ditto.
7518 * dink32-rom.c: Ditto.
7520 * doublest.c: Ditto.
7522 * dummy-frame.c: Ditto.
7523 * dwarf2-frame.c: Ditto.
7524 * dwarf2expr.c: Ditto.
7525 * dwarf2loc.c: Ditto.
7526 * dwarf2read.c: Ditto.
7530 * event-top.h: Ditto.
7531 * exceptions.c: Ditto.
7532 * exceptions.h: Ditto.
7534 * expprint.c: Ditto.
7535 * expression.h: Ditto.
7539 * f-typeprint.c: Ditto.
7540 * f-valprint.c: Ditto.
7541 * fbsd-nat.c: Ditto.
7543 * fork-child.c: Ditto.
7546 * frv-linux-tdep.c: Ditto.
7547 * frv-tdep.c: Ditto.
7549 * gdb-stabs.h: Ditto.
7550 * gdb_assert.h: Ditto.
7551 * gdb_string.h: Ditto.
7552 * gdb_thread_db.h: Ditto.
7553 * gdb_wait.h: Ditto.
7554 * gdbarch.sh: Ditto.
7556 * gdbthread.h: Ditto.
7557 * gdbtypes.c: Ditto.
7558 * gdbtypes.h: Ditto.
7561 * gnu-v2-abi.c: Ditto.
7562 * gnu-v3-abi.c: Ditto.
7563 * go32-nat.c: Ditto.
7564 * gdbarch.c: Regenerate.
7565 * gdbarch.h: Regenerate.
7567 2011-01-07 Michael Snyder <msnyder@vmware.com>
7569 * ax-gdb.c: Adjust some long output strings.
7570 * breakpoint.c: Ditto.
7575 * linux-nat.c: Ditto.
7576 * solib-pa64.c: Ditto.
7577 * solib-som.c: Ditto.
7579 2011-01-06 Tom Tromey <tromey@redhat.com>
7583 * python/python.c (GdbMethods): Add "newest_frame" method.
7584 * python/python-internal.h (gdbpy_newest_frame): Declare.
7585 * python/py-frame.c (gdbpy_newest_frame): New function.
7587 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7589 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7590 * jit.c (jit_debug): New variable.
7591 (show_jit_debug): New function.
7592 (struct target_buffer): Use ULONGEST.
7593 (bfd_open_from_target_memory): Likewise.
7594 (jit_register_code, jit_inferior_init): Add debug output.
7595 (_initialize_jit): Register "debug jit" command.
7597 2011-01-06 Tom Tromey <tromey@redhat.com>
7599 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7600 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7603 2011-01-06 Tom Tromey <tromey@redhat.com>
7605 * python/py-frame.c (frapy_block): Use get_frame_block.
7607 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7609 Do not stop on SIGPRIO signals by default
7610 * infrun.c (_initialize_infrun): Unset signal_stop and
7611 signal_print for TARGET_SIGNAL_PRIO.
7613 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7615 * ada-tasks.c: Fix style violation in comment.
7617 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7619 * linespec.c (decode_compound, find_method): Remove trailing \n
7620 at end of error string.
7621 * solib-irix.c (irix_current_sos): Likewise.
7622 * varobj.c (uninstall_variable): Likewise.
7624 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7626 * copyright.py: New script.
7627 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7628 Launch emacs without exec'ing. Call copyright.py afterwards.
7630 2011-01-05 Michael Snyder <msnyder@vmware.com>
7632 * addrmap.c: Shorten lines of >= 80 columns.
7633 * arch-utils.c: Ditto.
7634 * arch-utils.h: Ditto.
7636 * ax-general.c: Ditto.
7638 * blockframe.c: Ditto.
7639 * breakpoint.c: Ditto.
7640 * buildsym.c: Ditto.
7642 * c-typeprint.c: Ditto.
7644 * coffread.c: Ditto.
7648 * cp-namespace.c: Ditto.
7649 * cp-support.c: Ditto.
7650 * dbug-rom.c: Ditto.
7655 * dictionary.c: Ditto.
7657 * doublest.c: Ditto.
7658 * dwarf2-frame.c: Ditto.
7659 * dwarf2expr.c: Ditto.
7660 * dwarf2loc.c: Ditto.
7661 * dwarf2read.c: Ditto.
7664 * event-loop.c: Ditto.
7665 * event-loop.h: Ditto.
7666 * exceptions.h: Ditto.
7668 * expprint.c: Ditto.
7669 * expression.h: Ditto.
7671 * f-valprint.c: Ditto.
7673 * frame-base.c: Ditto.
7674 * frame-unwind.c: Ditto.
7675 * frame-unwind.h: Ditto.
7679 * gdb-stabs.h: Ditto.
7680 * gdb_assert.h: Ditto.
7681 * gdb_dirent.h: Ditto.
7682 * gdb_obstack.h: Ditto.
7684 * gdbtypes.c: Ditto.
7685 * gdbtypes.h: Ditto.
7686 * inf-ttrace.c: Ditto.
7691 * inline-frame.h: Ditto.
7692 * language.c: Ditto.
7693 * language.h: Ditto.
7694 * libunwind-frame.c: Ditto.
7695 * libunwind-frame.h: Ditto.
7696 * linespec.c: Ditto.
7697 * linux-nat.c: Ditto.
7698 * linux-nat.h: Ditto.
7699 * linux-thread-db.c: Ditto.
7700 * machoread.c: Ditto.
7701 * macroexp.c: Ditto.
7702 * macrotab.c: Ditto.
7705 * mdebugread.c: Ditto.
7710 * objfiles.c: Ditto.
7711 * objfiles.h: Ditto.
7713 * p-typeprint.c: Ditto.
7714 * p-valprint.c: Ditto.
7716 * printcmd.c: Ditto.
7717 * proc-events.c: Ditto.
7719 * progspace.c: Ditto.
7720 * progspace.h: Ditto.
7721 * psympriv.h: Ditto.
7724 * regcache.c: Ditto.
7725 * regcache.h: Ditto.
7726 * remote-fileio.c: Ditto.
7728 * ser-mingw.c: Ditto.
7730 * ser-unix.c: Ditto.
7733 * solib-frv.c: Ditto.
7734 * solib-irix.c: Ditto.
7735 * solib-osf.c: Ditto.
7736 * solib-pa64.c: Ditto.
7737 * solib-som.c: Ditto.
7738 * solib-sunos.c: Ditto.
7739 * solib-svr4.c: Ditto.
7740 * solib-target.c: Ditto.
7744 * stabsread.c: Ditto.
7745 * stabsread.c: Ditto.
7748 * symfile-mem.c: Ditto.
7754 * target-descriptions.c: Ditto.
7755 * target-memory.c: Ditto.
7758 * terminal.h: Ditto.
7761 * tracepoint.c: Ditto.
7762 * tracepoint.h: Ditto.
7766 * user-regs.c: Ditto.
7767 * user-regs.h: Ditto.
7769 * valarith.c: Ditto.
7771 * valprint.c: Ditto.
7772 * valprint.h: Ditto.
7777 * xcoffread.c: Ditto.
7778 * xcoffsolib.c: Ditto.
7779 * xcoffsolib.h: Ditto.
7780 * xml-syscall.c: Ditto.
7781 * xml-tdesc.c: Ditto.
7783 2011-01-05 Michael Snyder <msnyder@vmware.com>
7785 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7786 * cli/cli-decode.c: Ditto.
7787 * cli/cli-dump.c: Ditto.
7788 * cli/cli-logging.c: Ditto.
7789 * cli/cli-script.c: Ditto.
7790 * cli/cli-setshow.c: Ditto.
7791 * common/signals.c: Ditto.
7792 * mi/mi-cmd-break.c: Ditto.
7793 * mi/mi-cmd-disas.c: Ditto.
7794 * mi/mi-cmd-stack.c: Ditto.
7795 * mi/mi-cmd-var.c: Ditto.
7796 * mi/mi-cmds.c: Ditto.
7797 * mi/mi-common.h: Ditto.
7798 * mi/mi-console.c: Ditto.
7799 * mi/mi-interp.c: Ditto.
7800 * mi/mi-main.c: Ditto.
7801 * osf-share/cma_attr.c: Ditto.
7802 * osf-share/cma_deb_core.h: Ditto.
7803 * osf-share/cma_debug_client.h: Ditto.
7804 * osf-share/cma_handle.h: Ditto.
7805 * osf-share/cma_mutex.h: Ditto.
7806 * osf-share/cma_stack_int.h: Ditto.
7807 * osf-share/cma_tcb_defs.h: Ditto.
7808 * python/py-auto-load.c: Ditto.
7809 * python/py-breakpoint.c: Ditto.
7810 * python/py-cmd.c: Ditto.
7811 * python/py-frame.c: Ditto.
7812 * python/py-objfile.c: Ditto.
7813 * python/py-param.c: Ditto.
7814 * python/py-progspace.c: Ditto.
7815 * python/py-symbol.c: Ditto.
7816 * python/py-value.c: Ditto.
7817 * python/python-internal.h: Ditto.
7818 * python/python.c: Ditto.
7819 * tui/tui-data.c: Ditto.
7820 * tui/tui-disasm.c: Ditto.
7821 * tui/tui-hooks.c: Ditto.
7822 * tui/tui-io.c: Ditto.
7823 * tui/tui-layout.c: Ditto.
7824 * tui/tui-regs.c: Ditto.
7825 * tui/tui-source.c: Ditto.
7826 * tui/tui-stack.c: Ditto.
7827 * tui/tui-win.c: Ditto.
7828 * tui/tui-windata.c: Ditto.
7829 * tui/tui-winsource.c: Ditto.
7831 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7833 * configure.ac, gdb.1: Copyright year update.
7835 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7837 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7838 this_pc_in_block, morestack_msym and morestack_name. Check for
7839 "__morestack" minimal symbol there.
7841 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7843 * symfile.c (find_sym_fns): Add call to dont_repeat.
7845 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7847 Copyright year update in most files (performed by copyright.sh).
7849 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7851 * top.c (print_gdb_version): Update copyright year in version output.
7853 For older changes see ChangeLog-2010.
7859 version-control: never