1 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
5 2011-07-22 Pedro Alves <pedro@codesourcery.com>
7 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
8 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
9 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
11 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
12 (struct i386_debug_reg_state): New.
13 (i386_init_dregs): New.
15 (i386_cleanup_dregs): Use i386_init_dregs.
16 (i386_show_dr): Add state parameter and adjust.
17 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
19 (i386_remove_aligned_watchpoint): Likewise.
20 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
21 (i386_update_inferior_debug_regs): New.
22 (i386_insert_watchpoint): Work on a local mirror of the debug
23 registers, and only update the inferior on success.
24 (i386_remove_watchpoint): Ditto.
25 (i386_region_ok_for_watchpoint): Adjust.
26 (i386_stopped_data_address): Adjust.
27 (i386_insert_hw_breakpoint): Adjust.
28 (i386_remove_hw_breakpoint): Adjust.
30 2011-07-22 Tom Tromey <tromey@redhat.com>
32 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
33 from amd64_pseudo_register_read. Change arguments. Call
34 mark_value_bytes_unavailable when needed.
35 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
36 set_gdbarch_pseudo_register_read.
37 * sentinel-frame.c (sentinel_frame_prev_register): Use
38 regcache_cooked_read_value.
39 * regcache.h (regcache_cooked_read_value): Declare.
40 * regcache.c (regcache_cooked_read_value): New function.
41 (regcache_cooked_read): Call
42 gdbarch_pseudo_register_read_value if available.
43 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
44 (i386_pseudo_register_read): Remove.
45 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
46 i386_pseudo_register_read. Change arguments. Call
47 mark_value_bytes_unavailable when needed.
48 (i386_pseudo_register_read_value): New function.
49 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
50 not set_gdbarch_pseudo_register_read.
51 * gdbarch.sh (pseudo_register_read_value): New method.
52 * gdbarch.c, gdbarch.h: Rebuild.
53 * findvar.c (value_from_register): Call get_frame_register_value.
55 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
57 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
59 (display_gdb_prompt): Likewise.
60 (change_annotation_level): Likewise.
61 (push_prompt): Likewise.
62 (pop_prompt): Likewise.
63 (handle_stop_sig): Use get_prompt with a level.
64 * top.c (command_loop): Use get_prompt with a level.
65 (set_async_annotation_level): Use set_prompt with a level.
66 (get_prefix): New function.
70 (get_prompt): Accept a level argument.
71 (set_prompt): Accept a level argument. Free old prompts. Set
72 new_async_prompt if level is 0.
73 (init_main): Use set_prompt with a level. Do not set
75 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
76 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
77 Modify set_prompt, get_prompt to account for levels.
78 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
80 * python/python.c (before_prompt_hook): Use set_prompt.
82 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
84 * defs.h: Add guard against inclusion in gdbserver.
85 (struct ptid, ptid_t): Move to common/ptid.h.
86 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
87 xsnprintf, internal_error): Move to common/common-utils.h.
89 * gdb_assert.h: Move into common/ sub-directory.
90 * gdb_locale.h: Ditto.
91 * gdb_dirent.h: Ditto.
92 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
93 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
94 Move into common/ptid.h.
95 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
96 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
97 Change nomem to malloc_failure.
98 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
99 * utils.c (nomem): Rename to malloc_failure.
100 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
101 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
102 (gdb_buildargv): Change nomem to malloc_failure.
103 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
104 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
105 ptid_is_pid): Move into common/ptid.c.
106 (initialize_infrun): Delete initialization of null_ptid and
108 * linux-nat.c (linux_nat_xfer_osdata): Defer to
109 linux_common_xfer_osdata.
110 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
111 common/ptid.c and common/buffer.c.
112 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
113 common/ptid.h, common/buffer.h and common/linux-osdata.h.
114 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
115 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
117 * common/gdb_assert.h: New.
118 * common/gdb_dirent.h: New.
119 * common/gdb_locale.h: New.
120 * common/buffer.c: New.
121 * common/buffer.h: New.
122 * common/ptid.c: New.
123 * common/ptid.h: New.
124 * common/xml-utils.c: New.
125 * common/xml-utils.h: New.
126 * common/common-utils.c: New.
127 * common/common-utils.h: New.
128 * common/linux-osdata.c: New.
129 * common/linux-osdata.h: New.
130 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
131 * config/arm/linux.mh (NATDEPFILES): Ditto.
132 * config/i386/linux.mh (NATDEPFILES): Ditto.
133 * config/i386/linux64.mh (NATDEPFILES): Ditto.
134 * config/ia64/linux.mh (NATDEPFILES): Ditto.
135 * config/m32r/linux.mh (NATDEPFILES): Ditto.
136 * config/m68k/linux.mh (NATDEPFILES): Ditto.
137 * config/mips/linux.mh (NATDEPFILES): Ditto.
138 * config/pa/linux.mh (NATDEPFILES): Ditto.
139 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
140 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
141 * config/s390/s390.mh (NATDEPFILES): Ditto.
142 * config/sparc/linux.mh (NATDEPFILES): Ditto.
143 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
144 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
146 2011-07-21 Matt Rice <ratmice@gmail.com>
148 * NEWS: Add info macros and info definitions commands.
150 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
152 * NEWS: Document Python prompt substitution hook.
154 2011-07-18 Matt Rice <ratmice@gmail.com>
157 * macrotab.h (macro_callback_fn): Add new arguments to callback.
158 * macrotab.c (foreach_macro): Ditto.
159 (foreach_macro_in_scope): Ditto.
160 * macrocmd.c (print_macro_callback): New function.
161 (info_macro_command): Move some code to print_macro_definition.
162 (print_macro_definition): New function.
163 (print_one_macro): Add new arguments to callback.
164 (info_definitions_command): New function.
165 (info_macros_command): Ditto.
166 (_initialize_macrocmd): Add info macros and info definitions commands.
167 * symtab.c (add_macro_name): Add new arguments to callback.
169 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
170 Tom Tromey <tromey@redhat.com>
172 * top.c (set_prompt): Rewrite to free previous prompt, free
173 asynch_new_prompt and set both on new prompts.
174 * event-top.c (display_gdb_prompt): Add prompt substitution
176 * python/python.c (before_prompt_hook): New function.
178 2011-07-20 Matt Rice <ratmice@gmail.com>
180 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
181 arguments to store_unsigned_integer.
183 2011-07-20 Tom Tromey <tromey@redhat.com>
185 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
186 in some declaration-only cases.
188 2011-07-18 Tom Tromey <tromey@redhat.com>
191 * dwarf2read.c (dwarf2_section_info_def): New typedef.
192 (struct dwarf2_per_objfile) <types>: Change to a VEC.
193 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
194 <debug_type_section>: New field.
195 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
196 (load_cu): Use appropriate section.
197 (create_signatured_type_table_from_index): Add 'section'
199 (dwarf2_read_index): Only allow a single .debug_types section.
200 (dw2_get_file_names): Use appropriate section.
201 (read_type_comp_unit_head): Add 'section' argument.
202 (create_debug_types_hash_table): Loop over all .debug_types
204 (init_cu_die_reader): Use appropriate section.
205 (process_psymtab_comp_unit, load_partial_comp_unit)
206 (load_full_comp_unit, read_die_and_children, find_partial_die)
207 (lookup_die_type, determine_prefix, follow_die_offset): Update.
208 (lookup_signatured_type_at_offset): Add 'section' argument.
209 (read_signatured_type_at_offset): Add 'sect' argument.
210 (read_signatured_type): Use appropriate section.
211 (set_die_type, get_die_type_at_offset): Update.
212 (dwarf2_per_objfile_free): Free all .debug_types sections, and
214 (write_psymtabs_to_index): Don't allow index with more than one
215 .debug_types section.
217 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
219 Fix crash if referenced CU is aged out.
220 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
222 (indirect_pieced_value): New variable back_to, use to for xfree of
224 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
226 * dwarf2read.c (dwarf2_find_base_address): New prototype.
227 (load_cu): New function from ...
228 (dw2_do_instantiate_symtab): ... the code here ...
229 (process_full_comp_unit): ... and here.
230 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
233 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
235 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
238 2011-07-19 Gary Benson <gbenson@redhat.com>
240 * infrun.c (struct execution_control_state): New member
242 (clear_stop_func, fill_in_stop_func): New functions.
243 (handle_inferior_event): Call clear_stop_func rather than
244 manipulating the execution control state directly.
245 Call fill_in_stop_func lazily as required rather than
246 directly calling find_pc_partial_function in all cases.
248 2011-07-18 Tom Tromey <tromey@redhat.com>
250 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
251 checking for variable-sized array.
253 2011-07-18 Jean-Charles Delay <delay@adacore.com>
255 * varobj.h (varobj_languages): Add vlang_ada definition to the list
256 of supported languages.
257 * varobj.c: Add top definitions and basic implementation of the
258 following callbacks: ada_number_of_children, ada_name_of_variable,
259 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
260 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
261 (languages): Register Ada-specific callbacks.
262 (variable_language): Add the Ada case in the language setter switch.
264 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
266 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
268 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
271 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
272 (execute_stack_op): Use dwarf2_frame_ctx_funcs
273 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
274 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
275 get_frame_cfa, get_tls_address and dwarf_call via funcs.
276 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
277 (struct dwarf_expr_context_funcs): New, move here methods from ...
278 (struct dwarf_expr_context): ... here. New fields funcs.
279 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
280 (dwarf_expr_ctx_funcs): New.
281 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
282 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
283 (needs_frame_ctx_funcs): New.
284 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
286 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
288 * MAINTAINERS (Write After Approval): Add myself to the list.
290 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
292 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
293 that CIE pointer of an FDE really points to a CIE .
295 2011-07-15 Hui Zhu <teawater@gmail.com>
297 * remote.c (remote_get_trace_status): Add comments.
299 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
301 Code cleanup - constify struct lval_funcs.
302 * dwarf2loc.c (pieced_value_funcs): Make it const.
303 * infrun.c (siginfo_value_funcs): Likewise.
304 * opencl-lang.c (opencl_value_funcs): Likewise.
305 * valops.c (value_assign, value_ind): Make the funcs variable const.
306 * value.c (struct value): Make location.computed.funcs target const.
307 Rearrange the comments.
308 (allocate_computed_value): Make the funcs parameter target const.
309 (value_computed_funcs): Return the funcs target const.
310 (value_free, value_copy, set_value_component_location): Make the funcs
312 * value.h (allocate_computed_value): Make the funcs parameter target
314 (value_computed_funcs): Return the funcs target const.
315 * windows-tdep.c (tlb_value_funcs): Make it const.
317 2011-07-14 Hui Zhu <teawater@gmail.com>
319 * remote.c (remote_get_trace_status): Initialize p.
321 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * remote.c (remote_get_trace_status): New variable ex. Put
325 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
327 2011-07-13 Tom Tromey <tromey@redhat.com>
329 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
330 value_from_contents for final conversion.
332 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
335 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
336 Indent prototypes so they do not get into tags.
338 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
340 Code cleanup making also optimized out values lazy.
341 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
342 allocate_optimized_out_value. Twice.
343 (loclist_read_variable) Use allocate_optimized_out_value. Once.
344 * findvar.c (read_var_value): Likewise.
345 * value.c (allocate_optimized_out_value): New function.
346 * value.h (allocate_optimized_out_value): New declaration.
348 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
350 Fix occasional crash of CTRL-C during DWARF read in.
351 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
353 2011-07-11 Tom Tromey <tromey@redhat.com>
355 * regcache.c (struct regcache_descr): Fix typo.
356 * i387-tdep.c (i387_supply_xsave): Fix typo.
358 2011-07-11 Tom Tromey <tromey@redhat.com>
360 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
361 (read_file_scope, read_type_unit_scope): Use it.
363 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
365 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
368 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
371 * python/python.c: Set gdbpy_should_print_stack default to off.
372 (set_python): Deprecate maint set python print-stack to
374 (_initialize_python): Deprecate maint set/show python print-stack.
375 Add new prefix command, python. Add new setting, print-backtrace.
376 * NEWS: Document set python print-stack. Document default change.
378 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
380 * python/py-inferior.c (infpy_dealloc): New function.
381 (inferior_to_inferior_object): Return a new object, or a
382 new reference to the existing object.
383 (find_thread_object): Cleanup references to inferior.
384 (delete_thread_object): Ditto.
385 * python/py-infthread.c (create_thread_object): Do not increment
386 inferior reference count.
388 2011-07-08 Tom Tromey <tromey@redhat.com>
390 * dwarf2loc.c (locexpr_regname): New function.
391 (locexpr_describe_location_piece): Use it.
392 (disassemble_dwarf_expression): Add per_cu argument. Use
394 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
395 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
397 (locexpr_describe_location_1): Add per_cu argument.
398 (locexpr_describe_location): Update.
399 (loclist_describe_location): Update.
401 2011-07-08 Tom Tromey <tromey@redhat.com>
403 * dwarf2expr.c (execute_stack_op): Add QUIT.
405 2011-07-07 Hui Zhu <teawater@gmail.com>
408 2011-07-06 Hui Zhu <teawater@gmail.com>
409 * remote.c (remote_start_remote): Add TRY_CATCH for
410 remote_get_trace_status.
411 * tracepoint.c (disconnect_tracing): Ditto.
413 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
415 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
416 variables as signed, not unsigned.
418 2011-07-06 Joel Brobecker <brobecker@adacore.com>
420 * jit.c (jit_inferior_init): Reformat forward declaration.
422 2011-07-06 Matt Rice <ratmice@gmail.com>
424 * MAINTAINERS (Write After Approval): Add myself to the list.
426 2011-07-06 Hui Zhu <teawater@gmail.com>
428 * remote.c (remote_start_remote): Add TRY_CATCH for
429 remote_get_trace_status.
430 * tracepoint.c (disconnect_tracing): Ditto.
432 2011-07-05 Tom Tromey <tromey@redhat.com>
434 * symtab.c (operator_chars): Now static.
435 * linespec.c (operator_chars): Don't declare.
437 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
439 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
441 2011-07-05 Tom Tromey <tromey@redhat.com>
443 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
444 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
445 (TYPE_CPLUS_REALLY_JAVA): New macro.
446 * dwarf2read.c (process_structure_scope): Set
447 TYPE_CPLUS_REALLY_JAVA.
449 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
451 * ada-lang.c: Fix typos.
452 * amd64-tdep.c: Likewise.
453 * breakpoint.c: Likewise.
454 * cli/cli-decode.c: Likewise.
455 * findcmd.c: Likewise.
456 * inline-frame.c: Likewise.
457 * mi/mi-main.c: Likewise.
458 * minsyms.c: Likewise.
459 * monitor.c: Likewise.
460 * monitor.h: Likewise.
461 * prologue-value.c: Likewise.
462 * reverse.c: Likewise.
463 * s390-tdep.c: Likewise.
465 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
467 * jit.c (jit_inferior_init): Forward declare.
468 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
470 2011-07-04 Joel Brobecker <brobecker@adacore.com>
472 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
474 2011-07-04 Tristan Gingold <gingold@adacore.com>
476 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
477 (tcb_fieldno): Add activation_link field.
478 (get_known_tasks_addr): Moved and rewritten.
479 (get_tcb_types_info): Set activation_link field.
480 (read_known_tasks_array): Add parameter. Rewritten.
481 (read_known_tasks_list): New function.
482 (read_known_tasks): New function.
483 (ada_build_task_list): Call read_known_tasks instead of
484 read_known_tasks_array.
485 * ravenscar-thread.c: Add first_task_name constant.
486 (has_ravenscar_runtime): Check for task list too.
488 2011-07-04 Tristan Gingold <gingold@adacore.com>
490 * ada-tasks.c: Renames fieldno to actb_fieldno.
491 (ada_get_task_number): Indentation.
492 (get_tcb_types_info): Remove all parameters. Write directly
494 (ptid_from_atcb_common): Adjust.
497 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
499 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
501 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
503 * ui-out.c (ui_out_field_core_addr): Mention that the function
504 description is in the header file.
505 * ui-out.h (ui_out_field_core_addr): Document function.
507 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
509 * ui-out.c (ui_out_get_field_separator): Remove unused function.
510 * ui-out.h (ui_out_get_field_separator): Remove prototype.
512 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
514 * symtab.c (expand_line_sal): Remove empty line.
516 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
518 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
519 same way as ELFOSABI_NONE.
520 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
522 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
524 * breakpoint.c: Fix typos in comments.
525 * linespec.c: Likewise.
526 * symtab.c: Likewise.
528 2011-07-04 Joel Brobecker <brobecker@adacore.com>
530 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
531 section in separate object files.
533 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
535 Fix false GCC warning.
536 * linespec.c (decode_line_1): Initialize values.
538 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
540 * linespec.c (find_method): Accept the function type automatically only
541 if it was specified with parameter types.
543 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
545 Stop on first linespec terminator instead of eating what we can.
546 * linespec.c (is_linespec_boundary): New function.
547 (name_end): Remove function.
548 (keep_name_info): New parameter on_boundary, replace the body.
549 (decode_line_1): Provide the parameter to keep_name_info.
550 (decode_compound): Likewise. Drop the trailing java return type
553 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
555 Fall back linespec to minimal symbols.
556 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
557 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
558 (find_method, symbol_found): Change error to cplusplus_error.
560 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
562 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
564 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
565 Tom Tromey <tromey@redhat.com>
567 * dwarf2read.c (check_physname): New variable.
568 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
569 (show_check_physname): New function.
570 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
572 2011-07-01 Joel Brobecker <brobecker@adacore.com>
574 * machoread.c (macho_symfile_read): Delete OBE comment.
576 2011-07-01 Joel Brobecker <brobecker@adacore.com>
578 * machoread.c (struct macho_oso_data): Delete.
579 (current_oso): Delete.
580 (macho_relocate_common_syms): New function, mostly extracted
582 (macho_add_oso_symfile): Call macho_relocate_common_syms.
583 Remove code that sets and unset current_oso.
584 (macho_symfile_relocate): Delete handling of common symbols,
585 now moved to macho_relocate_common_syms.
587 2011-07-01 Joel Brobecker <brobecker@adacore.com>
589 * darwin-nat.c (darwin_ptrace): Add documentation.
590 Set errno to zero before calling ptrace. If ptrace returns
591 -1 and errno is zero, then change then return zero.
592 (darwin_kill_inferior): Issue a warning instead of triggering
593 a failed assertion when the PT_KILL ptrace operations returned
596 2011-07-01 Joel Brobecker <brobecker@adacore.com>
598 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
599 only when inf->private->no_ptrace.
601 2011-07-01 Joel Brobecker <brobecker@adacore.com>
603 * ada-lang.c (print_it_exception): Print temporary catchpoints
604 as "Temporary catchpoint".
605 (print_mention_exception): Likewise.
607 2011-07-01 Tom Tromey <tromey@redhat.com>
609 * jv-lang.c (java_language_defn): Use java_printchar,
611 (java_get_encoding): New function.
612 (java_emit_char): Use generic_emit_char.
613 (java_printchar): New function.
614 (java_printstr): Likewise.
616 2011-07-01 Joel Brobecker <brobecker@adacore.com>
618 * ada-typeprint.c (print_record_type): If unable to decode
619 the name of the parent type, use the encoded name.
621 2011-07-01 Jean-Charles Delay <delay@adacore.com>
623 * ada-typeprint.c (ada_print_type): Fix both PAD type and
624 pointer to constrained packed array type output.
625 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
628 2011-07-01 Jean-Charles Delay <delay@adacore.com>
630 * ada-typeprint.c (print_array_type): removed if condition on show
631 being negative for bounds printing.
633 2011-07-01 Joel Brobecker <brobecker@adacore.com>
635 * ada-lang.c (ada_identical_enum_types_p): New function.
636 (symbols_are_identical_enums): New function.
637 (remove_extra_symbols): Do nothing if NSYMS < 2.
638 Use symbols_are_identical_enums.
640 2011-07-01 Joel Brobecker <brobecker@adacore.com>
642 * ada-valprint.c (ada_value_print): Handle typedefs.
644 2011-07-01 Joel Brobecker <brobecker@adacore.com>
646 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
648 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
650 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
651 (decode_constrained_packed_array): Likewise.
652 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
654 2011-07-01 Joel Brobecker <brobecker@adacore.com>
656 * ada-exp.y (convert_char_literal): Handle typedef types.
658 2011-07-01 Joel Brobecker <brobecker@adacore.com>
660 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
662 2011-06-30 Tom Tromey <tromey@redhat.com>
664 * varobj.c (varobj_create): Call do_cleanups on early exit path.
665 * valops.c (find_overload_match): Call do_cleanups on early exit
667 * solib.c (solib_find): Call do_cleanups on early exit path.
669 2011-06-30 Tom Tromey <tromey@redhat.com>
671 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
672 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
673 return paths. Defer final do_cleanups until last return.
674 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
677 2011-06-30 Tom Tromey <tromey@redhat.com>
679 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
681 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
683 * MAINTAINERS (Write After Approval): Add myself to the list.
685 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
687 Disable epilogue unwinders on recent GCCs.
688 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
689 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
690 * dwarf2read.c (process_full_comp_unit): Initialize
691 EPILOGUE_UNWIND_VALID.
692 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
693 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
694 * symtab.h (struct symtab): New field epilogue_unwind_valid.
696 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
698 Code cleanup - reformatting.
699 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
700 (producer_is_gcc_ge_4): ... here, change the return value.
701 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
704 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
706 Fix non-only rename list for Fortran modules import.
707 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
708 cp_add_using_directive caller.
709 (cp_add_using_directive): New parameter excludes, describe it. New
710 variables ix and param. Compare if also excludes match. Allocate NEW
711 with variable size, initialize EXCLUDES there.
712 (cp_lookup_symbol_imports): New variable excludep, test
713 current->EXCLUDES with it.
714 * cp-support.h: Include vec.h.
715 (struct using_direct): New field excludes, describe it.
716 (DEF_VEC_P (const_char_ptr)): New.
717 (cp_add_using_directive): New parameter excludes.
718 * defs.h (const_char_ptr): New typedef.
719 * dwarf2read.c (read_import_statement): New variables child_die,
720 excludes and cleanups, read in excludes.
721 (read_namespace): Adjust the cp_add_using_directive caller.
723 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
726 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
727 negative comparisons.
729 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
731 * mi/mi-main.c (mi_cmd_list_features): Emit
732 breakpoint-notifications.
734 2011-06-29 Tom Tromey <tromey@redhat.com>
737 * valprint.h (generic_emit_char, generic_printstr): Declare.
738 * valprint.c (wchar_printable, append_string_as_wide)
739 (print_wchar): Move from c-lang.c.
740 (generic_emit_char): New function; mostly taken from c_emit_char.
741 (generic_printstr): New function; mostly taken from c_printstr.
742 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
743 represented as arrays.
744 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
746 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
747 identically to TYPE_CODE_INT.
748 * f-lang.c (f_get_encoding): New function.
749 (f_emit_char): Use generic_emit_char.
750 (f_printchar): Replace comment.
751 (f_printstr): Use generic_printstr.
752 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
753 "character" types specially.
754 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
756 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
758 (c_emit_char): Call generic_emit_char.
759 (c_printstr): Call generic_printstr.
761 2011-06-29 Gary Benson <gbenson@redhat.com>
763 * breakpoint.c (bpstat_what): Removed duplicated case.
765 2011-06-28 Tom Tromey <tromey@redhat.com>
767 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
769 2011-06-27 Tom Tromey <tromey@redhat.com>
771 * valops.c (find_overload_match): Call do_cleanups before early
773 * top.c (execute_command): Call do_cleanups before early return.
774 (command_loop): Likewise.
775 * stack.c (backtrace_command): Make a null cleanup early. Don't
776 conditionally call do_cleanups.
777 * python/py-value.c (TRY_CATCH): Move cleanup handling into
779 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
780 so cleanups are always run.
781 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
782 * findcmd.c (parse_find_args): Call do_cleanups on early return
784 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
785 Don't conditionally call do_cleanups.
786 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
789 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
791 * MAINTAINERS (Write After Approval): Use default email address.
793 2011-06-27 Joel Brobecker <brobecker@adacore.com>
795 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
797 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
799 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
800 saved_regs_mask and copied_regs_mask fields.
801 (sparc_record_save_insn): New prototype.
802 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
803 (sparc_record_save_insn): New function.
804 (sparc_analyze_prologue): Add head comment. Recognize store insns
805 of call-saved registers. Use OFFSET consistently. Recognize flat
806 frames and cache their settings.
807 (sparc32_skip_prologue): Handle flat frames.
808 (sparc_frame_cache): Add frame_offset to the base address.
809 (sparc32_frame_cache): Adjust to new frame description.
810 (sparc32_frame_prev_register): Likewise.
811 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
812 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
813 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
814 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
815 frame by calling sparc_record_save_insn.
816 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
817 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
818 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
820 2011-06-27 Tristan Gingold <gingold@adacore.com>
822 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
823 field by map_addr and map_len.
824 (dwarf2_read_section): Adjust for the new bfd_mmap api.
825 (munmap_section_buffer): Likewise.
827 2011-06-24 Tom Tromey <tromey@redhat.com>
829 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
830 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
831 * python/python.c (gdbpy_parameter): Make 'arg' const.
832 (execute_gdb_command): Likewise.
833 (gdbpy_decode_line): Likewise. Copy it.
834 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
835 (gdbpy_write): Make 'arg' const.
836 * python/py-type.c (typy_lookup_typename): Make 'type_name'
838 (gdbpy_lookup_type): Likewise.
839 * python/py-prettyprint.c (print_children): Make 'name' const.
840 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
841 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
843 * python/py-function.c (fnpy_init): Make 'name' const.
844 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
845 (gdbpy_string_to_argv): Make 'input' const.
846 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
848 * gdbtypes.h (lookup_typename): Update.
849 * gdbtypes.c (lookup_typename): Make 'name' const.
850 (lookup_struct): Likewise.
851 (lookup_union): Likewise.
852 (lookup_enum): Likewise.
854 2011-06-24 Tom Tromey <tromey@redhat.com>
856 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
857 gdb_thread_db.h. Move all common/ entries to be together.
858 (TAGS): Don't depend on DEPFILES.
860 2011-06-23 Yao Qi <yao@codesourcery.com>
862 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
863 * remote.c (remote_start_remote): ... here.
864 * monitor.c (monitor_open): ... here.
866 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
868 * gdbtypes.c (append_composite_type_field_aligned): Fix
869 calculation of bit position based on alignment.
871 2011-06-22 Pedro Alves <pedro@codesourcery.com>
873 * breakpoint.c (bpstat_stop_status): Call the check_status
874 breakpoint_ops method.
875 (print_one_breakpoint_location): Also print the condition for Ada
876 exception catchpoints.
877 (allocate_bp_location): New, factored out from
878 allocate_bp_location.
879 (allocate_bp_location): Adjust. Call the owner breakpoint's
880 allocate_location method, if there is one.
881 (free_bp_location): Call the locations's dtor method, if there is
883 (init_raw_breakpoint_without_location): New breakpoint_ops
885 (set_raw_breakpoint_without_location): Adjust.
886 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
887 (set_raw_breakpoint): Adjust.
888 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
889 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
890 re_set and check_status methods.
891 (init_catchpoint): Don't memset, initialize thread, addr_string
892 and enable_state. Pass the ops down to init_raw_breakpoint.
893 (install_catchpoint): Rename to ...
894 (install_breakpoint): ... this, and make extern.
895 (create_fork_vfork_event_catchpoint): Adjust.
896 (catch_exec_breakpoint_ops): Install NULL allocate_location,
897 re_set and check_status methods.
898 (create_syscall_event_catchpoint): Adjust.
899 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
900 (masked_watchpoint_breakpoint_ops): Install NULL
901 allocate_location, re_set and check_status methods.
902 (catch_exec_command_1): Adjust.
903 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
904 re_set and check_status methods.
905 (create_ada_exception_breakpoint): Rename to ...
906 (init_ada_exception_breakpoint): ... this. Add a struct
907 breakpoint parameter, and delete the exp_string, cond_string and
908 cond parameters. Use init_raw_breakpoint, and don't install or
909 mention the breakpoint yet. Don't clear breakpoint fields that
910 init_raw_breakpoint already clears.
911 (re_set_breakpoint): Delete, split into ...
912 (breakpoint_re_set_default, prepare_re_set_context): ... these new
914 (breakpoint_re_set_one): Call the breakpoint's
915 breakpoint_ops->re_set implementation, if there's one. Adjust.
916 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
917 (struct bp_location_ops): New type.
918 (struct bp_location): New field `ops'.
919 (struct breakpoint_ops): New `allocate_location', `re_set' and
920 `check_status' fields. Make `breakpoint_hit''s description match
922 (init_bp_location): Declare.
923 (breakpoint_re_set_default): Declare.
924 (create_ada_exception_breakpoint): Rename to ...
925 (init_ada_exception_breakpoint): ... this. Add a struct
926 breakpoint parameter, and delete the exp_string, cond_string and
928 (install_breakpoint): Declare.
929 * ada-lang.c: Include exceptions.h.
930 <Ada exceptions description>: Update.
931 (struct ada_catchpoint_location): New type.
932 (ada_catchpoint_location_dtor): New function.
933 (ada_catchpoint_location_ops): New global.
934 (ada_catchpoint): New type.
935 (create_excep_cond_exprs): New function.
936 (dtor_exception, allocate_location_exception, re_set_exception)
937 (should_stop_exception, check_status_exception): New functions.
938 (print_one_exception, print_mention_exception)
939 (print_recreate_exception): Adjust.
940 (dtor_catch_exception, allocate_location_catch_exception)
941 (re_set_catch_exception, check_status_catch_exception): New
943 (catch_exception_breakpoint_ops): Install them.
944 (dtor_catch_exception_unhandled)
945 (allocate_location_catch_exception_unhandled)
946 (re_set_catch_exception_unhandled)
947 (check_status_catch_exception_unhandled): New functions.
948 (catch_exception_unhandled_breakpoint_ops): Install them.
949 (dtor_catch_assert, allocate_location_catch_assert)
950 (re_set_catch_assert, check_status_catch_assert): New functions.
951 (catch_assert_breakpoint_ops): Install them.
952 (ada_exception_catchpoint_p): Delete.
953 (catch_ada_exception_command_split)
954 (ada_exception_catchpoint_cond_string): Rename exp_string
955 parameter to excep_string. Adjust.
956 (ada_parse_catchpoint_condition): Delete.
957 (ada_exception_sal): Rename the exp_string parameter to
958 excep_string. Delete the cond_string and cond parameters.
960 (ada_decode_exception_location): Rename the exp_string parameter
961 to excep_string. Delete the cond_string and cond parameters.
963 (create_ada_exception_catchpoint): New function.
964 (catch_ada_exception_command, ada_decode_assert_location)
965 (catch_assert_command): Adjust.
966 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
968 2011-06-22 Pedro Alves <pedro@codesourcery.com>
970 * ada-lang.c: Include arch-utils.h.
971 (ada_decode_exception_location): Make static.
972 (catch_ada_exception_command): Moved here from breakpoint.c.
973 (ada_decode_assert_location): Make static.
974 (catch_assert_command): Moved here from breakpoint.c.
975 (_initialize_ada_lang): Install the exception and assert
976 catchpoint commands here.
977 * ada-lang.h (ada_decode_exception_location)
978 (ada_decode_assert_location): Delete declarations.
979 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
981 (create_ada_exception_breakpoint): Make extern.
982 (catch_ada_exception_command, catch_assert_command): Moved to
984 (add_catch_command): Make extern.
985 (_initilize_breakpoint): Don't install the exception and assert
986 catchpoint commands here.
987 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
989 (add_catch_command, create_ada_exception_breakpoint): Declare.
991 2011-06-22 Pedro Alves <pedro@codesourcery.com>
993 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
994 the breakpoint to the breakpoint chain here.
995 (set_raw_breakpoint_without_location): Add the breakpoint to the
996 breakpoint chain here.
997 (init_raw_breakpoint): Adjust comments.
998 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1000 (init_catchpoint): Don't set the catchpoint's breakpoint number
1002 (install_catchpoint): New function.
1003 (create_fork_vfork_event_catchpoint)
1004 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1005 use install_catchpoint.
1007 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1009 * breakpoint.c (create_catchpoint_without_mention)
1010 (create_catchpoint): Delete.
1012 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1014 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1015 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1016 reference to exec_pathname.
1017 (struct exec_catchpoint): New type.
1018 (dtor_catch_exec): New function.
1019 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1020 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1021 (catch_exec_command_1): Adjust to use init_catchpoint.
1022 (delete_breakpoint): Remove reference to exec_pathname.
1024 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1026 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1027 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1028 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1029 reference to syscalls_to_be_caught.
1030 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1032 (struct syscall_catchpoint): New type.
1033 (dtor_catch_syscall): New function.
1034 (insert_catch_syscall, remove_catch_syscall)
1035 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1036 (print_recreate_catch_syscall): Adjust.
1037 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1038 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1039 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1040 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1041 (masked_watchpoint_breakpoint_ops)
1042 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1043 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1044 there is one. Remove references to syscalls_to_be_caught.
1045 (catching_syscall_number): Adjust.
1046 * ada-lang.c (catch_exception_breakpoint_ops)
1047 (catch_exception_unhandled_breakpoint_ops)
1048 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1050 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1052 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1054 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1055 reference to forked_inferior_pid.
1056 (struct fork_catchpoint): New type.
1057 (breakpoint_hit_catch_fork, print_it_catch_fork)
1058 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1059 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1060 (create_fork_vfork_event_catchpoint): Adjust to use
1063 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1065 * breakpoint.c (add_to_breakpoint_chain)
1066 (init_raw_breakpoint_without_location): New functions, factored
1068 (set_raw_breakpoint_without_location): ... this one.
1069 (init_raw_breakpoint): New function, factored out from
1070 set_raw_breakpoint and adjusted to use
1071 init_raw_breakpoint_without_location.
1072 (set_raw_breakpoint): Adjust.
1073 (init_catchpoint): New function, factored out from
1074 create_catchpoint_without_mention and adjusted to use
1075 init_raw_breakpoint.
1076 (create_catchpoint_without_mention): Adjust.
1078 2011-06-22 Tom Tromey <tromey@redhat.com>
1080 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1081 argument of 0 specially.
1083 2011-06-22 Yao Qi <yao@codesourcery.com>
1085 * infrun.c (handle_inferior_event): Remove write-only local variable
1086 `sw_single_step_trap_p'.
1088 2011-06-20 Tom Tromey <tromey@redhat.com>
1090 * symtab.c (lookup_language_this): End loop if block is NULL.
1092 2011-06-17 Tom Tromey <tromey@redhat.com>
1094 * valops.c (value_of_this): Use lookup_language_this.
1095 * symtab.h (lookup_language_this): Declare.
1096 * symtab.c (lookup_language_this): New function.
1097 (lookup_symbol_aux): Use lookup_language_this.
1098 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1100 2011-06-17 Tom Tromey <tromey@redhat.com>
1102 * value.h (value_of_this): Update.
1103 (value_of_local): Remove.
1104 * valops.c (value_of_this): Rename from value_of_local. Change
1106 * p-exp.y (exp): Update.
1107 (variable): Likewise.
1108 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1110 2011-06-17 Tom Tromey <tromey@redhat.com>
1112 * valops.c (value_of_local): Complain if NAME is NULL.
1113 * std-operator.def (OP_OBJC_SELF): Remove.
1114 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1115 * objc-exp.y (name_not_typename): Use OP_THIS.
1116 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1118 <OP_OBJC_SELF>: Remove.
1119 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1121 2011-06-16 Tristan Gingold <gingold@adacore.com>
1123 * python/py-events.h (gdb_py_events): Make it extern.
1124 * python/py-evtregistry.c (gdb_py_events): Declare.
1126 2011-06-16 Hui Zhu <teawater@gmail.com>
1128 * remote.c (remote_trace_set_readonly_regions): Add check for
1129 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1132 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1134 * arm-linux-tdep.c: Include "auxv.h".
1136 (ARM_LINUX_SIZEOF_VFP): Define.
1137 (arm_linux_supply_vfp): New function.
1138 (arm_linux_collect_vfp): Likewise.
1139 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1140 (arm_linux_fpa_regset_sections): New variable.
1141 (arm_linux_vfp_regset_sections): Likewise.
1142 (arm_linux_core_read_description): New function.
1143 (arm_linux_init_abi): Install arm_linux_core_read_description and
1144 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1145 appropriate for the architecture.
1146 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1147 (tdesc_arm_with_m): Declare.
1148 (tdesc_arm_with_iwmmxt): Likewise.
1149 (tdesc_arm_with_vfpv2): Likewise.
1150 (tdesc_arm_with_vfpv3): Likewise.
1151 (tdesc_arm_with_neon): Likewise.
1152 * arm-linux-nat.c: Move features/*.c includes ...
1153 * arm-tdep.c: ... here.
1154 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1155 target description data structures ...
1156 * arm-tdep.c (_initialize_arm_tdep): ... here.
1157 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1158 HWCAP_VFPv3D16): Move definitions ...
1159 * arm-linux-tdep.h: ... here.
1161 2011-06-15 Hui Zhu <teawater@gmail.com>
1163 * remote.c (remote_trace_set_readonly_regions): Add a check for
1166 2011-06-14 Tom Tromey <tromey@redhat.com>
1168 * coffread.c (coffread_objfile): Rename from current_objfile.
1169 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1170 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1172 2011-06-14 Tom Tromey <tromey@redhat.com>
1174 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1175 (class_symtab): Remove.
1176 (jv_dynamics_progspace_key): New global.
1177 (jv_per_objfile_free): Reset program space data. Update assert.
1178 Don't clear globals.
1179 (get_dynamics_objfile): Use and set program space data.
1180 (get_java_class_symtab): Use get_dynamics_objfile.
1181 (add_class_symbol): Likewise.
1182 (java_link_class_type): Likewise.
1183 (java_object_type, jv_clear_object_type, set_java_object_type):
1185 (get_java_object_type): Update. Don't cache result.
1186 (is_object_type): Don't call set_java_object_type.
1187 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1188 initialize jv_dynamics_progspace_key.
1190 2011-06-14 Tom Tromey <tromey@redhat.com>
1192 * symtab.h (current_objfile): Don't declare.
1193 * objfiles.h (current_objfile): Don't declare.
1194 * objfiles.c (current_objfile): Remove.
1195 * mdebugread.c (current_objfile): New file-scope global.
1196 * dbxread.c (current_objfile): New file-scope global.
1197 * coffread.c (current_objfile): New file-scope global.
1199 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1201 * top.h (line): Rename to ...
1202 (saved_command_line): ... this.
1203 (linesize): Rename to ...
1204 (saved_command_line_size): ... this.
1205 * top.c (line): Rename to ...
1206 (saved_command_line): ... this.
1207 (linesize): Rename to ...
1208 (saved_command_line_size): ... this.
1209 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1210 * event-top.c (command_line_handler): Adjust.
1211 * main.c (captured_main): Adjust.
1213 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1215 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1216 get_frame_func instead of get_frame_pc to determine the code
1217 address used to construct the frame ID.
1218 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1219 (i386_epilogue_frame_this_id): Likewise.
1220 (i386_epilogue_frame_prev_register): New function.
1221 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1222 (i386_stack_tramp_frame_sniffer): Fix coding style.
1223 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1224 (i386_gdbarch_init): Fix comments.
1226 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1228 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1229 instruction when walking back through the instruction stream.
1231 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1234 fullname parameters order.
1236 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1239 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1241 * psymtab.c (map_symbol_filenames_psymtab)
1242 (map_partial_symbol_filenames): Likewise.
1243 * psymtab.h: Include symfile.h.
1244 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1245 * symfile.h (symbol_filename_ftype): New.
1246 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1247 map_symbol_filenames, clarify more the naming in comment.
1249 2011-06-07 Doug Evans <dje@google.com>
1251 * cc-with-index.sh: Fix typos in comment.
1252 Look for ../../gdb, for fullname.exp.
1254 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1255 Pedro Alves <pedro@codesourcery.com>
1257 * cli/cli-cmds.c (shell_escape): Use waitpid.
1258 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1260 2011-06-07 Tristan Gingold <gingold@adacore.com>
1262 * xcoffread.c (dwarf2_xcoff_names): New variable.
1263 (aix_process_linenos): Add a guard.
1264 (xcoff_symfile_finish): Free dwarf2.
1265 (xcoff_initial_scan): Add dwarf2 support.
1267 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1269 * infcall.c (run_inferior_call): Don't mask async. Instead force
1270 a synchronous wait, if the target can async.
1272 * target.h (struct target_ops): Delete to_async_mask.
1273 (target_async_mask): Delete.
1274 * target.c (update_current_target): Delete references to to_async_mask.
1275 * linux-nat.c (linux_nat_async_mask_value): Delete.
1276 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1277 to linux_nat_async_mask_value.
1278 (linux_nat_async_mask): Delete.
1279 (linux_nat_async, linux_nat_close): Remove references to
1280 linux_nat_async_mask_value.
1281 * record.c (record_async_mask_value): Delete.
1282 (record_async): Remove references to record_async_mask_value.
1283 (record_async_mask): Delete.
1284 (record_can_async_p, record_is_async_p): Remove references to
1285 record_async_mask_value.
1286 (init_record_ops, init_record_core_ops): Remove references to
1288 * remote.c (remote_async_mask_value): Delete.
1289 (init_remote_ops): Remove reference to remote_async_mask.
1290 (remote_can_async_p, remote_is_async_p): Remove references to
1291 remote_async_mask_value.
1292 (remote_async): Remove references to remote_async_mask_value.
1293 (remote_async_mask): Delete.
1295 * infrun.c (fetch_inferior_event): Don't claim registers changed
1296 if the current thread is already not executing.
1298 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1300 From Stephen Kitt <steve@sk2.org>
1301 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1302 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1304 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1306 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1307 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1309 2011-06-03 Tom Tromey <tromey@redhat.com>
1311 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1313 * python/py-exitedevent.c (create_exited_event_object): Change
1314 type of 'exit_code'. Optionally add exit_code attribute.
1315 (emit_exited_event): Change type of 'exit_code'.
1316 * python/py-event.h (emit_exited_event): Update.
1317 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1318 * infrun.c (handle_inferior_event): Set exit code fields on
1320 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1322 * inferior.c (exit_inferior_1): Initialize new fields.
1324 2011-06-03 Tom Tromey <tromey@redhat.com>
1326 * dwarf2expr.c (get_signed_type): New function.
1327 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1329 2011-06-02 Keith Seitz <keiths@redhat.com>
1331 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1333 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1335 * top.h (simplified_command_loop): Delete declaration.
1337 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1339 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1340 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1342 2011-06-01 Yao Qi <yao@codesourcery.com>
1344 * objfiles.h (obj_section_addr): Update reference to objfile from
1346 (obj_section_endaddr): Likewise.
1348 2011-06-01 Daniel Jacobowitz <drow@false.org>
1350 * MAINTAINERS: Update my email address and affiliation. Also
1351 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1353 2010-05-31 Keith Seitz <keiths@redhat.com>
1356 * linespec.c (get_search_block): New function.
1357 (find_methods): Add FILE_SYMTATB parameter and use it and
1358 get_search_block to pass an appropriate block to
1359 lookup_symbol_in_namespace.
1360 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1361 Check if *ARGPTR starts with a filename first.
1362 If it does, call locate_first_half again to locate the next
1363 "first half" of the linespec.
1364 Pass FILE_SYMTATB to decode_objc and decode_compound.
1365 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1366 (locate_first_half): Stop on the first colon seen.
1367 (decode_compound): Add FILE_SYMTAB parameter.
1368 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1369 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1370 get_search_block with lookup_symbol.
1371 (find_method): Add FILE_SYMTAB parameter and pass it to
1373 (decode_objc): Use get_search_block.
1375 2010-05-31 Keith Seitz <keiths@redhat.com>
1378 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1379 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1380 and CP_ANONYMOUS_NAMESPACE_LEN.
1381 (cp_is_anonymous): Likewise.
1382 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1383 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1384 * dwarf2read.c (namespace_name): Likewise.
1385 (fixup_partial_die): Likewise.
1386 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1387 seen in the input, keep it.
1389 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1391 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1392 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1393 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1394 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1395 * remote.c (_initialize_remote): Register
1396 async_remote_interrupt_twice directly as
1397 sigint_remote_twice_token event.
1399 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1401 * target.h (enum inferior_event_type): Delete INF_ERROR.
1402 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1404 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1406 * interps.c (interp_set): Don't cancel continuations.
1408 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1412 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1414 * continuations.h (continuation_ftype): Add `err' parameter.
1415 Document parameters.
1416 (do_all_continuations, do_all_continuations_thread)
1417 (do_all_intermediate_continuations)
1418 (do_all_intermediate_continuations_thread)
1419 (do_all_inferior_continuations): Add `err' parameter.
1420 * continuations.c (do_my_continuations_1, do_my_continuations)
1421 (do_all_inferior_continuations, do_all_continuations_ptid)
1422 (do_all_continuations_thread_callback)
1423 (do_all_continuations_thread, do_all_continuations)
1424 (do_all_intermediate_continuations_thread_callback)
1425 (do_all_intermediate_continuations_thread)
1426 (do_all_intermediate_continuations): Add `err' parameter, and pass
1427 it down all the way to the continuations proper.
1428 * inf-loop.c (inferior_event_handler): If fetching an inferior
1429 event throws an error, don't pop the target, and still call the
1430 continuations, but with `err' set. Adjust all other continuation
1432 * breakpoint.c (until_break_command_continuation): Add `err'
1434 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1435 issue another step if `err' is set.
1436 (struct until_next_continuation_args): New.
1437 (until_next_continuation): Add `err' parameter. Adjust.
1438 (until_next_command): Adjust.
1439 (struct finish_command_continuation_args): Add `thread' field.
1440 (finish_command_continuation): Add `err' parameter. Handle it.
1441 (finish_forward): Adjust.
1442 (attach_command_continuation): Add `err' parameter. Handle it.
1443 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1444 cancel the continuations.
1445 * interps.c (interp_set): Adjust to cancel the continuations.
1446 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1447 continuations rather than discarding.
1448 (free_thread): Don't clear thread inferior resources here.
1449 (delete_thread_1): Do it here instead. And do it before removing
1450 the thread from the threads list. Tag the thread as exited before
1451 clearing thread inferior resources.
1453 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1455 * infcall.c (call_function_by_hand): Rephrase error message.
1457 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1459 * defs.h (struct thread_info, struct inferior): Delete forward
1461 * breakpoint.h (struct thread_info): New forward declaration.
1462 * observer.sh (struct inferior): New forward declaration.
1463 * python/python-internal.h (struct inferior): New forward
1466 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1468 * defs.h (struct continuation, continuation_ftype)
1469 (continuation_free_arg_ftype, add_continuation)
1470 (do_all_continuations, do_all_continuations_thread)
1471 (discard_all_continuations, discard_all_continuations_thread)
1472 (add_intermediate_continuation, do_all_intermediate_continuations)
1473 (do_all_intermediate_continuations_thread)
1474 (discard_all_intermediate_continuations)
1475 (discard_all_intermediate_continuations_thread)
1476 (add_inferior_continuation, do_all_inferior_continuations)
1477 (discard_all_inferior_continuations): Move to ...
1478 * continuations.h: ... this new file.
1479 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1480 infcmd.c, inferior.c, infrun.c, interps.c: Include
1483 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1484 Doug Evans <dje@google.com>
1486 Fix PR 10970, PR 12702.
1487 * linux-nat.c (linux_lwp_is_zombie): New function.
1488 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1489 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1491 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1493 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1495 (add_continuation, add_intermediate_continuation)
1496 (add_inferior_continuation): Use them.
1497 * continuations.c (struct continuation): Use them.
1498 (make_continuation_ftype): Delete.
1499 (make_continuation, add_inferior_continuation, add_continuation)
1500 (add_intermediate_continuation): Use continuation_ftype and
1501 continuation_free_arg_ftype. Rename parameters to shorter names.
1503 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1505 * continuations.c (make_continuation): Make it return void.
1506 (do_my_continuations): Rename to ...
1507 (do_my_continuations_1): ... this. Remove old_chain parameter and
1509 (do_my_continuations): New.
1510 (discard_my_continuations): Rename to ...
1511 (discard_my_continuations_1): ... this. Remove old_chain
1512 parameter and adjust.
1513 (discard_my_continuations): New.
1514 (add_inferior_continuation): Simplify.
1515 (do_all_inferior_continuations): Reimplement on top
1516 do_my_continuations.
1517 (discard_all_inferior_continuations): Simplify.
1518 (add_continuation): Simplify.
1519 (do_all_continuations_ptid): Simplify.
1520 (discard_all_continuations_thread_callback): Simplify.
1521 (add_intermediate_continuation): Simplify.
1522 (discard_all_intermediate_continuations_thread_callback):
1525 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1527 * utils.c (struct continuation, add_continuation)
1528 (add_inferior_continuation)
1529 (do_all_inferior_continuations, discard_all_inferior_continuations)
1530 (restore_thread_cleanup, do_all_continuations_ptid)
1531 (do_all_continuations_thread_callback)
1532 (do_all_continuations_thread, do_all_continuations)
1533 (discard_all_continuations_thread_callback)
1534 (discard_all_continuations_thread, discard_all_continuations)
1535 (add_intermediate_continuation)
1536 (do_all_intermediate_continuations_thread_callback)
1537 (do_all_intermediate_continuations_thread)
1538 (do_all_intermediate_continuations)
1539 (discard_all_intermediate_continuations_thread_callback)
1540 (discard_all_intermediate_continuations_thread)
1541 (discard_all_intermediate_continuations): Move to ...
1542 * continuations.c: ... this new file, and adjust to no longer
1543 implement continuations on top of cleanups.
1544 * Makefile.in (SFILES): Add continuations.c.
1545 (COMMON_OBS): Add continuations.o.
1547 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1549 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1550 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1551 Internal error on invalid values.
1552 * reverse.c: Don't handle EXEC_ERROR.
1553 * mi/mi-main.c: Don't handle EXEC_ERROR.
1555 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1557 * record.c: Include event-loop.h, inf-loop.h.
1558 (record_beneath_to_async): New global.
1559 (tmp_to_async): New global.
1560 (record_async_inferior_event_token): New global.
1561 (record_open_1): Don't error out if async is enabled.
1562 (record_open): Handle to_async. Create an async event source in
1564 (record_close): Delete the async event source.
1565 (record_resumed): New global.
1566 (record_execution_dir): New global.
1567 (record_resume, record_core_resume): Set them. Register the
1568 target on the event loop.
1569 (record_wait): Rename to ...
1570 (record_wait_1): ... this. Add more debug output. Handle
1571 TARGET_WNOHANG, and the target beneath returning
1572 TARGET_WAITKIND_IGNORE.
1573 (record_wait): Reimplement on top of record_wait_1.
1574 (record_async_mask_value): New global.
1575 (record_async, record_async_mask, record_can_async_p)
1576 (record_is_async_p, record_execution_direction): New functions.
1577 (init_record_ops, init_record_core_ops): Install new methods.
1578 * infrun.c (fetch_inferior_event): Temporarily switch the global
1579 execution direction to the direction the target was going.
1580 (execution_direction): Change type to int.
1581 * target.c (default_execution_direction): New function.
1582 (update_current_target): Inherit and de_fault
1583 to_execution_direction.
1584 * target.h (struct target_ops) <to_execution_direction>: New
1586 (target_execution_direction): New macro.
1587 * inferior.h (execution_direction): Change type to int.
1589 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1591 * infcall.c (call_function_by_hand): Don't allow calling functions
1592 in reverse execution mode.
1594 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1596 * infcmd.c (finish_command): Allow async finish in reverse.
1598 2011-05-26 Yao Qi <yao@codesourcery.com>
1600 * gdb_thread_db.h: Delete. Move to ...
1601 * common/gdb_thread_db.h: ... here.
1603 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1605 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1606 function's entry point instead of a manually managed momentary
1607 breakpoint, and only ever issue one proceed call.
1608 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1609 doing a reverse-finish, switch to stepi mode, to do another step.
1610 (insert_step_resume_breakpoint_at_sal): Make public.
1611 (normal_stop): No need to save function value return registers if
1613 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1615 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1617 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1618 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1619 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1621 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1622 step-resume breakpoints.
1623 (print_it_typical): Handle bp_hp_step_resume.
1624 (bpstat_what): Ditto.
1625 (bptype_string): Ditto.
1626 (print_one_breakpoint_location): Ditto.
1627 (allocate_bp_location): Ditto.
1629 (breakpoint_re_set_one): Ditto.
1630 * infrun.c (handle_inferior_event): Adjust. Split
1631 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1632 BPSTAT_WHAT_HP_STEP_RESUME.
1633 (insert_step_resume_breakpoint_at_sal): Rename to ...
1634 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1635 parameter. Handle it.
1636 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1637 insert_step_resume_breakpoint_at_sal_1.
1638 (insert_step_resume_breakpoint_at_frame): Rename to ...
1639 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1640 set a high-priority step-resume breakpoint.
1641 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1642 (insert_step_resume_breakpoint_at_caller): Ditto.
1644 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1646 * breakpoint.c (iterate_over_related_breakpoints): New.
1647 (do_map_delete_breakpoint): New.
1648 (delete_command): Pass do_map_delete_breakpoint to
1649 map_breakpoint_numbers.
1650 (do_disable_breakpoint): New.
1651 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1653 (do_enable_breakpoint): Rename to ...
1654 (enable_breakpoint_disp): ... this.
1655 (enable_breakpoint): Adjust.
1656 (do_enable_breakpoint): New.
1657 (enable_once_breakpoint): Delete.
1658 (do_map_enable_breakpoint): New.
1659 (do_map_enable_once_breakpoint): New.
1660 (enable_once_command, enable_delete_command)
1661 (delete_trace_command): Iterate over the breakpoint's related
1664 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1666 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1667 for ALPHA_ZERO_REGNUM.
1668 (alpha_supply_int_regs): Explicitly supply zero as the value for
1669 ALPHA_ZERO_REGNUM in the register cache.
1670 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1672 2011-05-26 Yao Qi <yao@codesourcery.com>
1674 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1676 2011-05-26 Tristan Gingold <gingold@adacore.com>
1678 * symfile.h (struct dwarf2_section_names): New type.
1679 (struct dwarf2_debug_sections): New type.
1680 (dwarf2_has_info): Add parameter.
1681 * dwarf2read.c (dwarf2_elf_names): New variable.
1682 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1683 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1684 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1685 (dwarf2_has_info): Add names parameter. Pass names
1686 to dwarf2_locate_sections.
1687 (section_is_p): Rewrite using the names parameter.
1688 (dwarf2_locate_sections): Use section names from the names parameter.
1689 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1690 * elfread.c (read_psyms): Ditto.
1691 * machoread.c (macho_symfile_read): Ditto.
1693 2011-05-25 Andreas Schwab <schwab@redhat.com>
1696 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1698 2011-05-24 Keith Seitz <keiths@redhat.com>
1701 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1702 (decode_compound): Unconditionally call keep_name_info.
1704 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1706 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1707 scope, clear its command list.
1708 (map_breakpoint_numbers): Don't walk the related breakpoints list
1711 2011-05-24 Tom Tromey <tromey@redhat.com>
1713 * MAINTAINERS: Move Jim Blandy to past maintainers.
1715 2011-05-24 Tristan Gingold <gingold@adacore.com>
1717 * symfile.h (enum dwarf2_section_enum): New type.
1718 (dwarf2_get_section_info): New prototype.
1719 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1720 section_name by sect. Use a switch to select the info.
1721 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1722 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1724 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1726 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1727 shared library event breakpoint if there's no execution.
1729 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1731 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1732 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1734 2011-05-23 Tom Tromey <tromey@redhat.com>
1736 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1739 2011-05-23 Doug Evans <dje@google.com>
1741 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1742 entry for RuntimeError to doc string.
1744 2011-05-23 Jerome Guitton <guitton@adacore.com>
1746 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1747 sequence for probing loops.
1749 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1751 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1754 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1756 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1757 zero as the value for %g0 in the register cache.
1758 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1759 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1761 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1763 * infrun.c (proceed): Set previous_inferior_ptid here.
1764 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1765 inferior_ptid, not null_ptid.
1766 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1767 (fetch_inferior_event): Nor here.
1769 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1771 * inf-loop.c (inferior_event_handler): Only output a message if
1774 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1776 * MAINTAINERS: Update my e-mail address.
1778 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1780 * infrun.c (proceed): Switch the inferior event loop to
1781 INF_EXEC_COMPLETE if the target refused to resume from a
1784 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1786 * infcmd.c: Include "inf-loop.h".
1787 (step_once): When stepping into an inline subroutine, pretend the
1788 target has run. If the target can async, switch the inferior
1789 event loop to INF_EXEC_COMPLETE.
1790 * inferior.h (user_visible_resume_ptid): Declare.
1791 * infrun.c (user_visible_resume_ptid): New function, factored out
1794 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1795 that the current thread is running. Merge async and sync
1798 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1800 * infcmd.c (step_1): Simplify synchronous case.
1802 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1804 * tracepoint.c: Include exceptions.h.
1805 (TFILE_PID): Move higher in file.
1806 (tfile_open): Delay pushing the tfile target until we're assured
1807 the tfile header is present in the file. Wrap reading the initial
1808 newline-terminated lines in TRY_CATCH. Pop the target if the
1809 initial setup failed. Add the tfile's thread immediately
1810 aftwards, before any non-essential setup. Don't skip
1811 post_create_inferior if there are no traceframes present in the
1813 (tfile_close): Remove redundant check for null before xfree call.
1814 (tfile_thread_alive): New function.
1815 (init_tfile_ops): Register it as to_thread_alive callback.
1817 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1819 * tracepoint.c (tfile_open): Delete #if 0'd code.
1821 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1823 Fix -readnow for -gdwarf-4 unused type units.
1824 * dwarf2read.c (struct signatured_type): Remove the field offset.
1825 (create_signatured_type_table_from_index): Remove its initialization.
1826 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1827 instead. Add a complaint call.
1828 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1829 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1830 (lookup_signatured_type_at_offset, read_signatured_type)
1831 (write_one_signatured_type): Update the field for per_cu.
1833 2011-05-19 Tom Tromey <tromey@redhat.com>
1835 * python/py-inferior.c (python_inferior_exit): Use
1837 (python_on_resume): Likewise.
1839 2011-05-19 Matt Rice <ratmice@gmail.com>
1841 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1843 2011-05-19 Hui Zhu <teawater@gmail.com>
1845 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1847 2011-05-19 Hui Zhu <teawater@gmail.com>
1849 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1851 2011-05-18 Tom Tromey <tromey@redhat.com>
1853 * dwarf2read.c (dwarf2_add_field): Constify.
1854 * value.c (value_static_field): Constify.
1855 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1857 * ax-gdb.c (gen_static_field): Constify
1859 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1861 * linux-nat.c (kill_callback): Use SIGKILL first.
1863 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1865 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1867 2011-05-18 Tom Tromey <tromey@redhat.com>
1869 * value.c (value_fn_field): Constify.
1870 * symtab.c (gdb_mangle_name): Constify.
1871 * stabsread.c (update_method_name_from_physname): Make 'physname'
1873 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1874 const. Use explicit fputc_filtered loop.
1875 (pascal_type_print_base): Constify.
1876 * p-lang.h (pascal_type_print_method_args): Update.
1877 * linespec.c (add_matching_methods): Constify.
1878 (add_constructors): Likewise.
1879 * jv-typeprint.c (java_type_print_base): Constify.
1880 * gdbtypes.h (struct cplus_struct_type)
1881 <fn_fieldlist.fn_field.physname>: Now const.
1882 * dwarf2read.c (compute_delayed_physnames): Constify.
1883 (dwarf2_add_member_fn): Likewise.
1884 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1886 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1888 * infrun.c (resume): Mention which is the current thread, and its
1889 current PC in debug output.
1890 (prepare_to_proceed): Mention the thread switching in debug
1893 2011-05-18 Tom Tromey <tromey@redhat.com>
1895 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1896 path check. Use xmalloc and cleanups.
1897 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1899 2011-05-17 Tom Tromey <tromey@redhat.com>
1901 * cp-valprint.c (cp_print_value_fields): Catch errors from
1904 2011-05-17 Tom Tromey <tromey@redhat.com>
1906 * dwarf2read.c (dwarf2_get_die_type): Call
1907 get_die_type_at_offset.
1908 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1909 get_base_type function.
1911 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1913 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1916 2011-05-16 Doug Evans <dje@google.com>
1918 * python/py-auto-load.c (source_section_scripts): Mention objfile
1921 2011-05-15 Doug Evans <dje@google.com>
1923 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1924 (try_thread_db_load_from_pdir): Call it. If unable to find
1925 libthread_db in directory of libpthread, see if we're looking at
1926 the separate-debug-info copy.
1928 * python/py-autoload.c (print_script): Print "Missing" instead of
1929 "No" for missing scripts.
1930 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1932 2011-05-13 Doug Evans <dje@google.com>
1934 * ui-file.c (stdio_file_write_async_safe): Add comment.
1936 2011-05-14 Hui Zhu <teawater@gmail.com>
1938 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1940 2011-05-13 Doug Evans <dje@google.com>
1942 Support $pdir and $sdir in libthread-db-search-path.
1943 * NEWS: Mention $sdir,$pdir.
1944 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1945 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1946 (try_thread_db_load_from_sdir): New function.
1947 (try_thread_db_load_from_dir): New function.
1948 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1949 system directories if search of libthread-db-search-path fails,
1950 that is now done via $sdir.
1951 (has_libpthread): New function.
1952 (thread_db_load): Remove search for libthread_db in directory of
1953 libpthread, that is now done via $pdir.
1955 * NEWS: Mention "info auto-load-scripts".
1956 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1957 script_not_found_warning_printed.
1958 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1959 all callers updated. Initialize script_not_found_warning_printed.
1960 (get_auto_load_pspace_data_for_loading): New function.
1961 (maybe_add_script): New function.
1962 (source_section_scripts): Simplify. Only print one warning regardless
1963 of the number of auto-load scripts not found.
1964 (clear_section_scripts): Clear script_not_found_warning_printed.
1965 (auto_load_objfile_script): Record script in hash table.
1966 (count_matching_scripts): New function.
1967 (maybe_print_script): Renamed from maybe_print_section_script, all
1968 callers updated. Rewrite to use ui_out_*.
1969 (info_auto_load_scripts): Renamed from
1970 maintenance_print_section_scripts, all callers updated.
1971 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1972 renamed as "info auto-load-scripts".
1974 2011-05-13 Tom Tromey <tromey@redhat.com>
1976 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1977 (read_sleb128): Likewise.
1979 2011-05-13 Tom Tromey <tromey@redhat.com>
1981 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1984 2011-05-13 Doug Evans <dje@google.com>
1986 * linux-nat.c (debug_linux_nat_async): Delete.
1987 Replace all references to use debug_linux_nat instead.
1988 (show_debug_linux_nat_async): Delete.
1989 (sigchld_handler): Call ui_file_write_async_safe instead of
1991 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1992 * ui-file.c (struct ui_file): New member to_write_async_safe.
1993 (null_file_write_async_safe): New function.
1994 (ui_file_write_async_safe): New function.
1995 (set_ui_file_write_async_safe): New function.
1996 (ui_file_new): Initialize to_write_async_safe.
1997 (stdio_file_write_async_safe): New function.
1998 (struct stdio_file): New member fd.
1999 (stdio_file_new): Initialize to_write_async_safe, fd.
2000 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2002 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2003 (set_ui_file_write_async_safe): Declare.
2004 (ui_file_write_async_safe): Declare.
2006 2011-05-13 Tom Tromey <tromey@redhat.com>
2008 * utils.c (do_value_free): New function.
2009 (make_cleanup_value_free): Likewise.
2010 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2012 (dwarf2_loc_desc_needs_frame): Call
2013 make_cleanup_value_free_to_mark.
2014 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2015 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2017 (new_dwarf_expr_context): Don't call value_mark.
2018 * dwarf2-frame.c (execute_stack_op): Call
2019 make_cleanup_value_free_to_mark.
2020 * defs.h (make_cleanup_value_free): Declare.
2022 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2024 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2025 prepare_execute_command.
2026 * top.c (prepare_execute_command): Return cleanup.
2027 (execute_command): Use cleanup from prepare_execute_command.
2028 * top.h (prepare_execute_command): Change prototype to return
2030 * defs.h (struct value): Add opaque declaration.
2031 (make_cleanup_value_free_to_mark): Add prototype.
2032 * utils.c (do_value_free_to_mark): New function.
2033 (make_cleanup_value_free_to_mark): Likewise.
2035 2011-05-12 Tom Tromey <tromey@redhat.com>
2037 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2038 cast left-hand-side to unsigned.
2040 2011-05-12 Tom Tromey <tromey@redhat.com>
2043 * value.h (value_from_contents): Declare.
2044 * value.c (value_from_contents): New function.
2045 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2046 (dwarf2_get_die_type): New function.
2047 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2048 (allocate_piece_closure): Acquire reference to values.
2049 (read_pieced_value): Update for value-based expressions.
2050 (write_pieced_value): Likewise.
2051 (free_pieced_value_closure): Call value_free as needed.
2052 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2053 Update for value-based expressions.
2054 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2055 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2056 <get_base_type>: New field.
2057 (struct dwarf_expr_piece) <v.value>: Change type.
2058 <v.regno>: New field.
2059 (struct dwarf_expr_context) <mark>: New field.
2060 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2061 (dwarf_expr_pop, dwarf_expr_push): Remove.
2062 (dwarf_expr_push_address): Declare.
2063 * dwarf2expr.c (dwarf_arch_cookie): New global.
2064 (struct dwarf_gdbarch_types): New.
2065 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2067 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2069 (dwarf_expr_push_address): New function.
2070 (dwarf_expr_pop): Now static.
2071 (dwarf_expr_fetch): Change return type.
2072 (dwarf_require_integral): New function.
2073 (dwarf_expr_fetch): Simplify.
2074 (add_piece): Update.
2075 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2077 (execute_stack_op) <sign_ext>: Remove.
2078 Use values for DWARF stack.
2079 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2080 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2082 (_initialize_dwarf2expr): New function.
2083 (add_piece): Update.
2084 (new_dwarf_expr_context): Set new field.
2085 (free_dwarf_expr_context): Call value_free_to_mark.
2086 * dwarf2-frame.c (no_base_type): New function.
2087 (execute_stack_op): Set get_base_type field. Update.
2089 2011-05-12 Tom Tromey <tromey@redhat.com>
2091 * dwarf2read.c (read_common_block): Fix formatting.
2093 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2095 * breakpoint.c (disable_breakpoint): Disable all locations
2096 associated with a tracepoint on target if a trace experiment is
2098 (disable_command): Disable a specific tracepoint location on target if
2099 a trace experiment is running.
2100 (do_enable_breakpoint): Enable all locations associated with a
2101 tracepoint on target if a trace experiment is running.
2102 (enable_command) Enable a specific tracepoint location on target if a
2103 trace experiment is running.
2104 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2105 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2106 to_disable_tracepoint.
2107 * target.h: Add declaration of struct bp_location.
2108 (struct target_ops): Add new functions
2109 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2110 to_disable_tracepoint to target operations.
2111 (target_supports_enable_disable_tracepoint): New macro.
2112 (target_enable_tracepoint): New macro.
2113 (target_disable_tracepoint): New macro.
2114 * remote.c (struct remote_state): Add new field.
2115 (remote_enable_disable_tracepoint_feature): New.
2116 (remote_protocol_features): Add new entry.
2117 (remote_supports_enable_disable_tracepoint): New.
2118 (remote_enable_tracepoint): New.
2119 (remote_disable_tracepoint): New.
2120 (init_remote_ops): Add remote_enable_tracepoint,
2121 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2122 to remote operations.
2123 * tracepoint.c (start_tracing): Allow tracing to start without any
2124 tracepoints enabled with just a warning if they can be re-enabled
2126 * NEWS: Add news item for the new behaviour of the enable and disable
2127 GDB commands when applied to tracepoints.
2128 Add news items for the new remote packets QTEnable and QTDisable.
2130 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 * config.in: Regenerate.
2133 * configure: Regenerate.
2134 * configure.ac <--with-system-readline> (for readline_echoing_p):
2136 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2137 (tui_old_rl_echoing_p): ... here.
2138 (tui_setup_io): Rename extern declaration readline_echoing_p to
2139 _rl_echoing_p. Adjust assignments for the both renames.
2141 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2143 * symtab.c (lookup_symtab): Run cleanup before returning.
2145 2011-05-11 Tom Tromey <tromey@redhat.com>
2147 * dwarf2read.c (handle_data_member_location): New function.
2148 (dwarf2_add_field): Use it.
2149 (read_common_block): Likewise.
2151 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 Make addrs->SECTINDEX always defined.
2154 * symfile.c (relative_addr_info_to_section_offsets): Check for
2155 SECTINDEX -1, not for zero ADDR.
2156 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2157 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2158 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2161 2011-05-10 Doug Evans <dje@google.com>
2163 * linux-thread-db.c: Whitespace cleanup.
2164 (try_thread_db_load_1): Fix comment.
2166 * linux-thread-db.c (set_libthread_db_search_path): New function.
2167 (_initialize_thread_db): Add setter for libthread-db-search-path.
2169 2011-05-09 Doug Evans <dje@google.com>
2171 * NEWS: Mention --with-iconv-bin.
2172 * configure.ac: New option --with-iconv-bin.
2173 * configure: Regenerate.
2174 * config.in: Regenerate.
2175 * defs.h (relocate_gdb_directory): Declare.
2176 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2177 removed progname parameter, and exported. All callers updated.
2178 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2180 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2181 adding missing call to restore_child_signals_mask.
2183 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2185 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2187 * infrun.c (proceed, start_remote): Adjust.
2188 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2189 and adjust to not handle it.
2190 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2191 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2192 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2193 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2194 * windows-nat.c (do_initial_windows_stuff): Adjust.
2195 * infcmd.c (attach_command): Adjust.
2196 (notice_new_inferior): Adjust.
2198 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2200 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2201 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2202 * spu-tdep.c (op_selb): Use correct value.
2204 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2206 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2207 "parent" parameter to symbol_file_add_from_bfd call.
2209 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2210 Thiago Jung Bauermann <bauerman@br.ibm.com>
2212 Implement support for PowerPC BookE masked watchpoints.
2213 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2215 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2216 method. Initialize to NULL in all existing breakpoint_ops instances.
2217 (struct breakpoint) <hw_wp_mask>: New field.
2218 * breakpoint.c (is_masked_watchpoint): Add prototype.
2219 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2220 breakpoint's breakpoint_ops.works_in_software_mode if available.
2221 (watchpoints_triggered): Handle the case of a hardware masked
2223 (watchpoint_check): Likewise.
2224 (works_in_software_mode_watchpoint): New function.
2225 (insert_masked_watchpoint, remove_masked_watchpoint)
2226 (resources_needed_masked_watchpoint)
2227 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2228 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2229 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2231 (masked_watchpoint_breakpoint_ops): New structure.
2232 (watch_command_1): Check for the existence of the `mask' parameter.
2233 Set b->ops according to the type of hardware watchpoint being created.
2234 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2235 (ppc_linux_remove_mask_watchpoint)
2236 (ppc_linux_masked_watch_num_registers): New functions.
2237 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2238 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2239 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2240 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2241 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2242 (target_masked_watch_num_registers): New functions.
2243 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2244 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2246 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2247 (target_masked_watch_num_registers): Add prototypes.
2249 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2252 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2253 (producer_is_gcc_ge_4_0): New function.
2254 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2255 symtab->language code.
2256 (var_decode_location): Set cu->has_loclist.
2257 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2258 skip. Intialize force_skip from locations_valid. Move the prologue
2259 skipping code into two passes.
2260 * symtab.h (struct symtab): Make the primary field a bitfield. New
2261 field locations_valid.
2263 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2265 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2266 (classify_inner_name): Call cp_lookup_nested_type with
2268 * cp-namespace.c (cp_lookup_nested_type): New variable
2269 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2270 type_name_no_tag_or_error with saved_parent_type.
2271 * dwarf2read.c (load_partial_dies): Read in any children of
2272 DW_TAG_typedef with complaint in such case.
2273 * gdbtypes.c (type_name_no_tag_or_error): New function.
2274 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2275 * valops.c (destructor_name_p): New comment for parameter type. Remove
2276 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2277 * value.h (destructor_name_p): Remove type const.
2279 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2281 * symtab.c (compare_symbol_name): New function.
2282 (completion_list_add_name, expand_partial_symbol_name): Call it,
2283 remove the variable ncmp.
2284 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2287 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2289 Demote to sw watchpoint only in update_watchpoint.
2290 * breakpoint.c (update_watchpoint): Change between software and
2291 hardware watchpoint for all kinds of watchpoints, not just
2292 read/write ones. Determine b->exact value here instead of
2293 in watch_command_1. Error out if there are not enough resources
2294 for a read or access hardware watchpoint.
2295 (watch_command_1): Remove logic of checking whether there are
2296 enough resources available, since update_watchpoint will do that
2297 work now. Don't set b->exact here. Catch exceptions thrown by
2298 update_watchpoint and delete the watchpoint.
2299 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2300 Use target_exact_watchpoints instead.
2301 (delete_breakpoint): Notify observers only if deleted watchpoint
2302 has a breakpoint number assigned to it.
2304 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2306 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2308 2011-05-05 Jerome Guitton <guitton@adacore.com>
2310 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2312 (i386_stack_tramp_frame_unwind): New static global.
2313 (i386_match_pattern): New function, extracted from i386_match_insn.
2314 (i386_match_insn): Use i386_match_pattern.
2315 (i386_match_insn_block): New function.
2316 (i386_tramp_chain_in_reg_insns)
2317 (i386_tramp_chain_on_stack_insns): New static variables.
2318 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2321 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2323 * configure.host (xscale*): Don't handle target.
2324 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2327 2011-05-04 Yao Qi <yao@codesourcery.com>
2329 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2331 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2334 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2335 | * elfread.c (elf_symtab_read): Stop memory leak.
2337 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2339 * nto-tdep.c (nto_target): Replace deprecated call to
2340 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2342 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2344 Fix false GCC warning.
2345 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2347 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2349 * breakpoint.c (update_watchpoint): Move code to change
2350 the enable state of breakpoint from here ...
2351 (do_enable_breakpoint): ... to here.
2353 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2355 * valprint.c (val_print_array_elements): Fixed poor performance
2356 of printing very large arrays with repeat_count_threshold set
2357 to unlimited. New comment.
2359 2011-04-29 Tom Tromey <tromey@redhat.com>
2361 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2362 (mi_parse): Likewise.
2363 * breakpoint.c (break_range_command): Use sizeof char*, not
2365 (create_breakpoint): Likewise.
2366 (parse_breakpoint_sals): Likewise.
2368 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2370 * linux-nat.c (linux_child_remove_fork_catchpoint)
2371 (linux_child_remove_vfork_catchpoint)
2372 (linux_child_remove_exec_catchpoint): New functions.
2373 (linux_target_install_ops): Install them.
2375 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2379 * varobj.c (install_default_visualizer): Do not install a
2380 visualizer if the varobj is CPLUS_FAKE_CHILD.
2381 (construct_visualizer): Likewise.
2383 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2385 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2386 case insensitive comparison.
2388 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2390 * infrun.c (proceed): Revert previous change.
2391 (resume): Instead, handle the case of signal delivery while stepping
2392 off a breakpoint location here, and only if software single-stepping
2393 is used. Handle nested signals.
2395 2011-04-28 Yao Qi <yao@codesourcery.com>
2397 * arm-tdep.c (copy_unmodified): Rename to ...
2398 (arm_copy_unmodified): .. this. New.
2399 (copy_preload): Move common part to ...
2400 (install_preload): .. this. New.
2401 (arm_copy_preload): New.
2402 (copy_preload_reg): Move common part to ...
2403 (install_preload_reg): ... this. New.
2404 (arm_copy_preload_reg): New.
2405 (copy_b_bl_blx): Move common part to ...
2406 (install_b_bl_blx): .. this. New.
2407 (arm_copy_b_bl_blx): New.
2408 (copy_bx_blx_reg): Move common part to ...
2409 (install_bx_blx_reg): ... this. New.
2410 (arm_copy_bx_blx_reg): New.
2411 (copy_alu_reg): Move common part to ...
2412 (install_alu_reg): ... this. New.
2413 (arm_copy_alu_reg): New.
2414 (copy_alu_shifted_reg): Move common part to ...
2415 (install_alu_shifted_reg): ... this. New.
2416 (copy_ldr_str_ldrb_strb): Move common part to ...
2417 (install_ldr_str_ldrb_strb): ... this. New.
2418 (arm_copy_ldr_str_ldrb_strb): New.
2419 (copy_copro_load_store): Move some common part to ...
2420 (install_copy_copro_load_store): ... this. New.
2421 (arm_copy_copro_load_store): New.
2423 (arm_copy_svc): Renamed from copy_svc.
2424 (copy_undef): Delete.
2425 (arm_copy_undef): Renamed from copy_undef.
2426 (decode_ext_reg_ld_st): Delete.
2427 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2428 (decode_svc_copro): Delete.
2429 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2430 (copy_copro_load_store, copy_alu_imm): update callers.
2431 (copy_extra_ld_st, copy_block_xfer): Likewise.
2432 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2433 (decode_miscellaneous, decode_dp_misc): Likewise.
2434 (decode_ld_st_word_ubyte, decode_media): Likewise.
2435 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2436 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2437 (decode_unconditional, decode_miscellaneous): Likewise.
2438 (decode_media, decode_b_bl_ldmstm): Likewise.
2439 (arm_process_displaced_insn): Likewise..
2440 (decode_misc_memhint_neon): Delete.
2441 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2442 (decode_miscellaneous): Delete.
2443 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2444 (decode_dp_misc): Delete.
2445 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2446 (decode_ld_st_word_ubyte): Delete.
2447 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2448 (decode_media): Delete.
2449 (arm_decode_media): Renamed from decode_media.
2450 (decode_b_bl_ldmstm): Delete.
2451 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2452 (decode_ext_reg_ld_st): Delete.
2453 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2454 (decode_unconditional): Delete.
2455 (arm_decode_unconditional): Renamed from decode_unconditional.
2457 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 Case insensitive lookups implementation.
2460 * dwarf2read.c: Include ctype.h.
2461 (struct mapped_index): New field version.
2462 (mapped_index_string_hash): New parameter index_version. New comment
2463 for it. Call tolower appropriately.
2464 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2465 Choose the right index version for mapped_index_string_hash.
2466 (dwarf2_read_index): Support also the index version 5. Initialize the
2467 new struct mapped_index field version.
2468 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2469 (find_slot): Explain the version needs. Pass INT_MAX for the new
2471 (write_psymtabs_to_index): Produce version 5.
2472 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2473 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2474 * psymtab.c (lookup_partial_symbol): Find the
2475 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2477 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2479 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2480 (completion_list_add_name): New variable ncmp, initialize it, use it.
2481 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2482 * utils.c (strcmp_iw): Support case_sensitive_off.
2483 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2484 New function comment part. New variables saved_string1,
2485 saved_string2 and case_pass. Add a proper second pass.
2487 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 Replace re_comp/re_exec by regcomp/regexec.
2490 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2491 (search_symbols_name_matches): Use them, use regexec.
2492 (search_symbols): New variable retval_chain, adjust the use of
2493 old_chain against it. Replace re_comp by regcomp. Use the new struct
2494 search_symbols_data fields, use regexec instead of re_exec.
2496 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2498 Format the code for the next patch.
2499 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2500 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2501 New variables c1 and c2.
2503 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2505 * infrun.c (proceed): Do not single-step into signal delivery
2506 when stepping off a breakpoint location.
2507 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2508 (insert_step_resume_breakpoint_at_caller): Likewise.
2509 (insert_step_resume_breakpoint_at_sal): Likewise.
2510 (insert_longjmp_resume_breakpoint): Likewise.
2512 2011-04-27 Yao Qi <yao@codesourcery.com>
2514 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2516 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2518 * procfs.c (procfs_pass_signals): Fix advance declaration.
2520 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2522 * target.h (struct target_ops): Remove to_notice_signals;
2523 add to_pass_signals.
2524 (target_notice_signals): Remove.
2525 (target_pass_signals): Add prototype.
2526 * target.c (update_current_target): Remove to_notice_signals;
2527 mention to_pass_signals.
2528 (target_pass_signals): New function.
2529 (debug_to_notice_signals): Remove.
2530 (setup_target_debug): Do not install debug_to_notice_signals.
2532 * infrun.c (signal_pass): New global.
2533 (resume): Call target_pass_signals.
2534 (handle_inferior_event): Report all signals while stepping over
2535 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2536 are re-inserted when stepping over a signal handler.
2537 (signal_cache_update): New function.
2538 (signal_stop_update): Call it.
2539 (signal_print_update): Likewise.
2540 (signal_pass_update): Likewise.
2541 (handle_command): Call signal_cache_update and target_pass_signals
2542 instead of target_notice_signals.
2543 (_initialize_infrun): Initialize signal_pass.
2545 * linux-nat.c (pass_mask): New global.
2546 (linux_nat_pass_signals): New function.
2547 (linux_nat_create_inferior): Report all signals initially.
2548 (linux_nat_attach): Likewise.
2549 (linux_nat_resume): Use pass_mask to decide whether to directly
2550 handle an inferior signal.
2551 (linux_nat_wait_1): Likewise.
2552 (linux_nat_add_target): Install to_pass_signals callback.
2554 * nto-procfs.c (notice_signals): Remove.
2555 (procfs_resume): Do not call notice_signals.
2556 (procfs_notice_signals): Remove.
2557 (procfs_pass_signals): New function.
2558 (init_procfs_ops): Install to_pass_signals callback instead of
2559 to_notice_signals callback.
2560 (_initialize_procfs): Report all signals initially.
2562 * procfs.c (procfs_notice_signals): Remove.
2563 (procfs_pass_signals): New function.
2564 (procfs_target): Install to_pass_signals callback instead of
2565 to_notice_signals callback.
2566 (register_gdb_signals): Remove.
2567 (procfs_debug_inferior): Report all signals initially.
2568 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2570 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2571 parameters; use them instead of calling signal_..._state routines.
2572 (remote_notice_signals): Remove.
2573 (remote_start_remote): Report all signals initially.
2574 (remote_resume): Do not call remote_pass_signals.
2575 (_initialize_remote): Install to_pass_signals callback instead of
2576 to_notice_signals callback.
2578 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2580 * breakpoint.c (user_settable_breakpoint): Delete.
2581 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2582 (delete_command): Check user_breakpoint_p instead of looking at
2583 the breakpoint's type.
2584 (disable_command): Ditto.
2585 (enable_command): Ditto.
2586 (delete_trace_command): Use user_breakpoint_p instead of looking
2587 at the breakpoint number directly. When checking if there are
2588 user visible tracepoints, in order to know whether to ask the user
2589 for confirmation, check whether the breakpoint is actually a
2592 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2594 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2597 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2599 MI breakpoint notifications.
2601 * annotate.c (breakpoint_changed): Adjust parameter type.
2602 * breakpoint.c (set_breakpoint_condition): Adjust to change
2603 in breakpoint_modified type.
2604 (breakpoint_set_commands): Likewise.
2605 (do_map_commands_command): Likewise.
2606 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2607 changed after bumping hit count.
2608 (bpstat_stop_status): Likewise.
2609 (print_one_breakpoint_location): Don't wrap in tuple here.
2610 (print_one_breakpoint): Always print individual locations.
2611 For locations, use unnamed tuple.
2612 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2614 (create_catchpoint, create_syscall_event_catchpoint): Call
2615 breakpoint_created obsever.
2616 (mention): Don't call breakpoint_created observer.
2617 (create_breakpoint_sal): Call breakpoint_created observer.
2618 (create_breakpoint, watch_command_1): Likewise.
2619 (create_ada_exception_breakpoint): Likewise.
2620 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2621 (locations_are_equal): New.
2622 (update_breakpoint_locations): If locations were changed, notify.
2623 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2624 Call breakpoint_modified observer.
2626 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2627 (mi_cmd_break_insert): Don't set observers for modify and delete.
2628 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2629 (mi_breakpoint_created, mi_breakpoint_deleted)
2630 (mi_breakpoint_modified): New.
2631 (mi_interpreter_init): Hook the above.
2632 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2633 while -break-* commands are executing.
2634 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2635 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2637 (mi_ui_out_impl): Hook in mi_redirect.
2638 (mi_field_skip): True to the name, skip the field, don't output
2639 a field with an empty value.
2641 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2642 (gdbpy_breakpoint_deleted): Adjust.
2643 * tui/tui-hooks.c (tui_event_create_breakpoint)
2644 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2646 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2648 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2649 (procfs_remove_hw_watchpoint): Likewise.
2651 2011-04-26 Michael Walle <michael@walle.cc>
2653 * remote.c (remote_start_remote): Ack packet after sending the
2656 2011-04-26 Yao Qi <yao@codesourcery.com>
2658 * linux-nat.c: Move common macros to ...
2659 Include linux-ptrace.h.
2660 * common/linux-ptrace.h: ... here. New.
2662 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2665 !objfile_has_partial_symbols. New comment.
2666 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2667 SYM_READ_PSYMBOLS is not present. Extend the comment.
2668 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2670 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2672 * defs.h (ENUM_BITFIELD): Remove.
2674 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 Eli Zaretskii <eliz@gnu.org>
2677 * NEWS: Document the new gdbserver --once option.
2679 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2681 * MAINTAINERS: Update my email address.
2683 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2685 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2686 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2687 function call if __STDC_ISO_10646__ macro is defined.
2688 (intermediate_encoding): New prototype.
2689 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2690 to generate compile time error for unsupported gdb_wchar_t size.
2691 (ENDIAN_SUFFIX): New macro.
2692 (intermediate_encoding): New function.
2694 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2696 * ada-lang.c (struct add_partial_datum): Update the comment for
2697 expand_partial_symbol_name.
2698 (ada_add_partial_symbol_completions): Rename to ...
2699 (ada_expand_partial_symbol_name): ... here, change return type, update
2700 function comment, call symbol_completion_match instead of
2701 symbol_completion_add.
2702 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2703 and ada_expand_partial_symbol_name.
2704 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2706 (dw2_map_symbol_names): Remove.
2707 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2708 * psymtab.c (map_symbol_names_psymtab): Remove.
2709 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2710 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2712 (psym_functions): Unlist map_symbol_names_psymtab.
2713 (map_partial_symbol_names): Rename to ...
2714 (expand_partial_symbol_names): ... here, change the FUN type, call
2715 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2716 * psymtab.h (map_partial_symbol_names): Rename to ...
2717 (expand_partial_symbol_names): ... here, change the FUN type.
2718 * symfile.h (struct quick_symbol_functions): Update the description of
2719 expand_symtabs_matching. Remove map_symbol_names.
2720 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2721 (struct add_name_data): Update the comment for
2722 expand_partial_symbol_name.
2723 (add_partial_symbol_name): Rename to ...
2724 (expand_partial_symbol_name): ... here. Replace
2725 completion_list_add_name call by strncmp.
2726 (default_make_symbol_completion_list_break_on): Use now
2727 expand_partial_symbol_names and expand_partial_symbol_name.
2728 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2730 2011-04-20 Tom Tromey <tromey@redhat.com>
2732 * dwarf2read.c (save_gdb_index_command): Replace format
2733 documentation with a pointer to the manual.
2735 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2737 * regcache.c: Include remote.h.
2738 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2739 (regcache_dump): Handle regcache_dump_remote.
2740 (maintenance_print_remote_registers): New function.
2741 (_initialize_regcache): Install "maint print remote-registers"
2743 * remote.c (map_regcache_remote_table): New function, factored out
2745 (init_remote_state): ... here.
2746 (remote_register_number_and_offset): New.
2747 * remote.h (remote_register_number_and_offset): Declare.
2749 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2751 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2752 null_ptid, assume and allow a NULL address space, instead of
2753 asking the target for the ptid's address space.
2754 * infrun.c (ptid_is_pid): Remove assertion.
2756 2011-04-19 Tom Tromey <tromey@redhat.com>
2758 * windows-tdep.c (windows_xfer_shared_library):
2759 * windows-nat.c (get_module_name, windows_make_so):
2760 * v850-tdep.c (v850_handle_pushm):
2761 * utils.c (null_cleanup, gdb_realpath):
2762 * ui-out.c (get_next_header):
2763 * tracepoint.c (clear_traceframe_info):
2764 * symtab.c (lookup_symtab):
2765 * serial.h (struct serial_ops):
2766 * mipsread.c (read_alphacoff_dynamic_symtab):
2767 * infcmd.c (print_return_value):
2768 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2769 * f-exp.y (parse_number):
2770 * exceptions.c (catch_exceptions):
2771 * dummy-frame.c (dummy_frame_this_id):
2772 * defs.h (struct cleanup):
2773 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2774 * arm-tdep.c (arm_push_dummy_call):
2775 * amd64-tdep.h (amd64_collect_xsave):
2776 * amd64-tdep.c (amd64_collect_xsave):
2777 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2778 * README (typing): Remove duplicate words.
2779 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2780 * infrun.c (siginfo_value_read): Fix typo.
2781 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2782 * top.c (source_line_number): Add comma.
2784 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2786 * thread.c (any_live_thread_of_process): Prioritize threads
2787 that are not executing.
2788 * gdbthread.h (any_live_thread_of_process): Update comment
2789 as per above change.
2791 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2793 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2794 (scan_xcoff_symtab): Likewise.
2796 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2798 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2801 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2802 Pedro Alves <pedro@codesourcery.com>
2804 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2805 variables to simplify code and avoid == operator at end of
2806 line as this is against GNU coding standards.
2808 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2810 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2811 lm_name to name_lm to avoid conflict with lm_name function.
2813 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2815 ARI fixes: Use only lowercase function name for static functions.
2816 * nto-tdep.c (LM_ADDR): Rename to...
2817 (lm_addr): New function name.
2818 (nto_relocate_section_addresses): Adapt to change above.
2819 * solib-sunos.c (LM_ADDR): Rename to...
2820 (lm_addr): New function name.
2821 (LM_NEXT): Rename to...
2822 (lm_next): New function name.
2823 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2824 function name changes above.
2825 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2826 (lm_addr_from_link_map): New function name.
2827 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2828 (has_lm_dynamic_from_link_map): New function name.
2829 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2830 (lm_dynamic_from_link_map): New function name.
2831 (LM_ADDR_CHECK): Rename to...
2832 (lm_addr_check): New function name.
2833 (LM_NEXT): Rename to...
2834 (lm_next): New function name.
2835 (LM_PREV): Rename to...
2836 (lm_prev): New function name.
2837 (LM_NAME): Rename to...
2838 (lm_name): New function name.
2839 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2840 (ignore_first_link_map_entry): New function name.
2841 (svr4_keep_data_in_core): Adapt to function name changes above.
2842 (svr4_current_sos): Likewise.
2843 (enable_break): Likewise.
2844 (svr4_relocate_section_addresses): Likewise.
2846 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2849 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2850 sprintf. Simplify code and avoid loosing memory.
2851 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2852 (call0_frame_cache): Remove && operator from end of line.
2854 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2856 Fix libraries displacement if they change whether they were prelinked.
2857 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2858 does not match. Comment why.
2860 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * corelow.c: Include wrapper.h.
2863 (core_open): Call now gdb_target_find_new_threads.
2864 * wrapper.c: Include target.h.
2865 (gdb_target_find_new_threads): New.
2866 * wrapper.h (gdb_target_find_new_threads): New declaration.
2868 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2870 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2871 even if !TARGET_HAS_EXECUTION.
2873 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2875 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2876 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2877 bfd_get_synthetic_symtab.
2878 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2879 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2880 parameter parent, remove the call to add_separate_debug_objfile.
2881 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2882 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2883 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2884 parent, new comment for it, call add_separate_debug_objfile for it.
2885 (symbol_file_add_separate): Pass objfile as the parameter parent,
2886 remove the call to add_separate_debug_objfile.
2887 (symbol_file_add_from_bfd): New parameter parent, pass it.
2888 (symbol_file_add): Pass NULL to the new parameter parent.
2889 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2891 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2893 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2896 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2898 Fix Python access to inlined frames.
2899 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2900 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2902 2011-04-15 Tom Tromey <tromey@redhat.com>
2904 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2906 2011-04-15 Gary Benson <gbenson@redhat.com>
2908 * MAINTAINERS: Add myself to write-after-approval section.
2910 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2912 * remote-sim.c (sim_command_completer): New function.
2913 (_initialize_remote_sim): Set completer to sim_command_completer.
2915 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2917 * breakpoint.c (print_exception_catchpoint): Rename to ...
2918 (print_it_exception_catchpoint): ... this.
2919 (gnu_v3_exception_catchpoint_ops): Update with new name
2920 for print_it_exception_catchpoint.
2922 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2924 * MAINTAINERS: Add myself for write after approval privileges.
2926 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2928 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2930 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2932 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2934 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2936 * breakpoint.c (save_breakpoints): Verify whether
2937 breakpoint_ops.print_recreate is defined before calling it.
2939 2011-04-11 Gary Benson <gbenson@redhat.com>
2941 Fix failure with --enable-maintainer-mode.
2942 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2944 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 * symtab.c (search_symbols): Reorder the KIND description in the
2948 function comment. Remove the unused 4th element of types, types2,
2949 types3 and types4. New gdb_assert on KIND.
2950 (symtab_symbol_info): Remove the unused 4th element of classnames.
2951 New gdb_assert on KIND.
2952 * symtab.h (enum search_domain): New warning in the enum comment.
2953 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2956 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2958 Fix crash of gdb save-index on a STABS file.
2959 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2962 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2965 * dwarf2read.c: Include ctype.h.
2966 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2968 (dwarf2_add_field): Fix new_field->accessibility by calling
2969 dwarf2_default_access_attribute. Restructure setting accessibility
2971 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2972 is_private and is_protected by calling
2973 dwarf2_default_access_attribute.
2975 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2977 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2978 to the initialization.
2980 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2982 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2985 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2987 Remove support for old Cygwin 1.5 versions.
2988 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2989 function on old Cygwin version.
2990 * windows-nat.c: Remove cygwin version check and always define
2991 __USEWIDE for Cygwin compilation.
2993 2011-04-07 Yao Qi <yao@codesourcery.com>
2995 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2997 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2998 (arm_copy_svc): Remove parameters INSN and TO.
2999 (decode_svc_copro): Update caller.
3000 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3001 from function pointer `copy_svc_os'.
3003 2011-04-07 Yao Qi <yao@codesourcery.com>
3005 * arm-tdep.c (cleanup_branch): Set a correct return address in
3006 LR for ARM and Thumb.
3008 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3011 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3012 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3013 in the function comment, a new note on values compatibility.
3014 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3015 * symtab.h (SYMBOL_HASH_NEXT): New.
3017 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3019 * ppc-linux-nat.c (check_condition): Add len output parameter.
3020 Set it based on the memory region referenced in the condition
3021 expression. Update all callers.
3023 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 Fix crash regression on systems featuring .gdb_index.
3026 * objfiles.c (free_objfile): Move the
3027 forget_cached_source_info_for_objfile call earlier. Comment it.
3028 Extend the comment for objfile_free_data.
3030 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 Fix regression of displaying the debug format.
3033 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3036 2011-04-04 Tom Tromey <tromey@redhat.com>
3038 * cli/cli-interp.c (struct captured_execute_command_args):
3040 (do_captured_execute_command): Remove.
3041 (safe_execute_command): Use TRY_CATCH.
3042 * cli/cli-script.c (struct wrapped_read_command_file_args):
3044 (wrapped_read_command_file): Remove.
3045 (script_from_file): Use TRY_CATCH.
3046 * exceptions.c (catch_exception): Remove.
3047 * exceptions.h (catch_exception): Remove.
3048 (deprecated_throw_reason): Update comment.
3049 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3050 argument to 'context'.
3051 (mi_execute_command): Use TRY_CATCH.
3052 * remote.c (struct start_remote_args): Remove.
3053 (remote_start_remote): Update; change arguments.
3054 (remote_open_1): Use TRY_CATCH.
3056 2011-04-04 Tom Tromey <tromey@redhat.com>
3058 * tracepoint.c (scope_info): Update.
3059 * symtab.c (decode_line_spec): Update.
3060 * python/python.c (gdbpy_decode_line): Update.
3061 * linespec.h (decode_line_1): Update.
3062 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3063 (decode_compound, find_method, symtab_from_filename)
3064 (decode_variable): Likewise.
3065 * cli/cli-cmds.c (edit_command): Update.
3066 (list_command): Update.
3067 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3069 (create_breakpoint): Update.
3070 (until_break_command): Update.
3071 (addr_string_to_sals): Update.
3072 (decode_line_spec_1): Update.
3074 2011-04-04 Tom Tromey <tromey@redhat.com>
3076 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3077 (do_captured_parse_breakpoint): Remove.
3078 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3079 Use TRY_CATCH directly.
3081 2011-04-04 Tom Tromey <tromey@redhat.com>
3083 * symtab.h (free_symtab): Remove.
3084 (forget_cached_source_info_for_objfile): Declare.
3085 * symmisc.c (free_symtab): Remove.
3086 * source.c (forget_cached_source_info_for_objfile): New function.
3087 (forget_cached_source_info): Use it.
3088 * objfiles.c (free_objfile): Simplify check before calling
3089 clear_current_source_symtab_and_line. Call
3090 forget_cached_source_info_for_objfile.
3092 2011-04-04 Tom Tromey <tromey@redhat.com>
3094 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3095 (new_symtab): Don't set `free_code' on symtab.
3096 (new_linetable): Properly handle size==0.
3097 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3098 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3100 * jv-lang.c (struct jv_per_objfile_data): New.
3101 (jv_per_objfile_free): Free the data.
3102 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3103 (get_java_class_symtab): Set the `dict' field on the
3104 jv_per_objfile_data.
3105 (free_class_block): Remove.
3106 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3109 2011-04-04 Tom Tromey <tromey@redhat.com>
3111 * symfile.c (reread_symbols): Update.
3112 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3114 * objfiles.c (allocate_objfile): Update.
3115 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3117 * cp-namespace.c (lookup_symbol_file): Don't call
3118 lookup_possible_namespace_symbol.
3119 (initialize_namespace_symtab, get_possible_namespace_block)
3120 (free_namespace_block, cp_check_possible_namespace_symbols)
3121 (check_possible_namespace_symbols_loop)
3122 (check_one_possible_namespace_symbol)
3123 (lookup_possible_namespace_symbol): Remove.
3124 (maintenance_cplus_namespace): Replace with notice.
3125 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3127 2011-04-04 Tom Tromey <tromey@redhat.com>
3129 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3130 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3131 * symmisc.c (free_symtab): Don't free debugformat.
3132 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3133 (record_debugformat, record_producer): Document.
3134 * buildsym.c (end_symtab): Don't save debugformat and producer
3136 (end_symtab): Don't free debugformat and producer fields.
3137 (record_debugformat): Don't call xstrdup.
3138 (record_producer): Likewise.
3140 2011-04-04 Tom Tromey <tromey@redhat.com>
3142 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3143 (source_line_charpos, source_charpos_line): Remove.
3145 2011-04-04 Tom Tromey <tromey@redhat.com>
3147 * symtab.h (domain_enum): Split in two...
3148 (enum search_domain): New.
3149 (search_symbols): Update.
3150 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3151 redundant declarations.
3152 (search_symbols): Change 'kind' argument to search_domain.
3154 (print_symbol_info): Likewise.
3155 (symtab_symbol_info): Likewise.
3156 * symfile.h (struct quick_symbol_functions)
3157 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3158 <expand_symtabs_matching>: Likewise.
3159 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3160 (expand_symtabs_matching_via_partial): Update.
3161 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3162 (dw2_expand_symtabs_for_function): Update.
3163 * block.h: Moved anonymous enum...
3164 * defs.h (enum block_enum): ... here. Now named.
3166 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3168 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3169 * version.in: Bump version to 7.3.50.20110403-cvs.
3171 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3173 * NEWS: Create a new section for the next release branch.
3174 Rename the section of the current branch, now that it has
3177 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3179 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3180 for "fpscr" in target description.
3182 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3184 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3185 initialize it. Delay HASH initialization. Strip the part after open
3186 parenthesis for languages with qualifiers. Call do_cleanups.
3188 2011-04-01 Tom Tromey <tromey@redhat.com>
3190 * utils.c (report_command_stats): Don't print `-' for negative
3193 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3195 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3196 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3199 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3201 * breakpoint.h (bpdisp_text): Add declaration.
3202 * breakpoint.c (bpdisp_text): Make non-static.
3203 * ada-lang.c: #include "mi/mi-common.h".
3204 (print_it_exception): Rewrite to improve GDB/MI output.
3206 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3208 * arm-tdep.h (struct address_space): Add forward declaration.
3210 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3212 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3213 * arm-tdep.c (arm_override_mode): New global.
3214 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3215 execution mode heuristics.
3216 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3217 second single-step breakpoint if needed, using
3218 arm_insert_single_step_breakpoint.
3219 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3220 ARM execution mode, do not call thumb_get_next_pc_raw.
3221 (arm_get_next_pc): Encode execution mode in return value. Call
3222 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3223 (arm_insert_single_step_breakpoint): New function.
3224 (arm_software_single_step): Call it.
3225 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3226 argument to return execution mode of sigreturn target.
3227 (arm_linux_syscall_next_pc): Use it.
3228 (arm_linux_copy_svc): Update call.
3229 (arm_linux_software_single_step): Call
3230 arm_insert_single_step_breakpoint.
3232 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3237 2011-03-31 Tom Tromey <tromey@redhat.com>
3239 * varobj.c (update_dynamic_varobj_children): Properly handle
3240 errors from iterator.
3242 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3244 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3245 struct linkage name twice.
3247 2011-03-31 Tom Tromey <tromey@redhat.com>
3249 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3250 missing ">" to message.
3252 2011-03-31 Tom Tromey <tromey@redhat.com>
3254 * varobj.c (instantiate_pretty_printer): Remove duplicate
3257 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3259 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3260 if neither saved value nor register available (e.g. signal frame).
3262 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3264 * macroexp.c (expand): Avoid uninitialized variable
3267 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3269 * breakpoint.c (break_range_command): Fix typo in comment.
3271 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3272 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3274 Implement support for PowerPC BookE ranged breakpoints.
3275 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3276 * breakpoint.h (struct bp_target_info) <length>: New member
3278 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3279 instead of struct breakpoint as argument, and also add ASPACE
3280 and BP_ADDR arguments. Update all callers.
3281 (struct breakpoint_ops) <print_one_detail>: New method.
3282 (struct breakpoint) <addr_string_range_end>: New member variable.
3283 * breakpoint.c (breakpoint_location_address_match): Add function
3285 (insert_bp_location): Set bl->target_info.length.
3286 (breakpoint_here_p): Call breakpoint_location_address_match.
3287 (moribund_breakpoint_here_p): Likewise.
3288 (regular_breakpoint_inserted_here_p): Likewise.
3289 (breakpoint_thread_match): Likewise.
3290 (bpstat_stop_status): Likewise.
3291 (bpstat_check_location): Move call to
3292 breakpoint_ops.breakpoint_hit to the top.
3293 (print_one_breakpoint_location): Call
3294 breakpoint_ops.print_one_detail if available.
3295 (breakpoint_address_match_range): New function.
3296 (breakpoint_location_address_match): Likewise.
3297 (breakpoint_locations_match): Compare the length field of the
3299 (hw_breakpoint_used_count): Count resources used by all locations
3300 in a breakpoint, and use breakpoint_ops.resources_needed if
3302 (breakpoint_hit_ranged_breakpoint): New function.
3303 (resources_needed_ranged_breakpoint): Likewise.
3304 (print_it_ranged_breakpoint): Likewise.
3305 (print_one_ranged_breakpoint): Likewise.
3306 (print_one_detail_ranged_breakpoint): Likewise.
3307 (print_mention_ranged_breakpoint): Likewise.
3308 (print_recreate_ranged_breakpoint): Likewise.
3309 (ranged_breakpoint_ops): New structure.
3310 (find_breakpoint_range_end): New function.
3311 (break_range_command): Likewise.
3312 (delete_breakpoint): Free addr_string_range_end.
3313 (update_breakpoint_locations): Add SALS_END argument. Update
3314 all callers. Calculate breakpoint length if a non-zero SALS_END
3315 is given. Call breakpoint_locations_match instead of
3316 breakpoint_address_match.
3317 (reset_breakpoint): Find SaL of the end of the range if B is a
3319 (_initialize_breakpoint): Register break-range command.
3320 * defs.h (print_core_address): Add function prototype.
3321 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3323 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3324 (ppc_linux_remove_hw_breakpoint): Likewise.
3325 (_initialize_ppc_linux_nat): Initialize
3326 to_ranged_break_num_registers.
3327 * target.c (update_current_target): Add comment about
3328 to_ranged_break_num_registers.
3329 (target_ranged_break_num_registers): New function.
3330 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3332 (target_ranged_break_num_registers): Add function prototype.
3333 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3334 * utils.c (print_core_address): ... here.
3336 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3338 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3339 variable compiler warning.
3341 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3343 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3345 (re_set_breakpoint): ... to here ...
3346 (addr_string_to_sals): ... and here.
3348 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3350 * Makefile.in (SFILES): Add missing C sources.
3351 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3352 Add missing headers.
3354 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3356 * .gitignore: New file.
3358 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3360 * NEWS: Mention new cfi device simulation.
3362 2011-03-29 Tom Tromey <tromey@redhat.com>
3364 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3365 otherwise anonymous types.
3366 (dwarf2_name): Likewise.
3367 * valops.c (value_struct_elt_for_reference): Refine artificial
3368 type logic. Call error if j==-1.
3370 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3372 Fix false GCC warning.
3373 * infcall.c (find_function_addr): Initialize funaddr.
3375 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3377 Fix mingw compilation with --enable-targets=all.
3378 * remote-mips.c (gdb_usleep.h): Include header.
3379 (mips_enter_debug): Use gdb_usleep instead of sleep.
3381 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3383 Support resolution of STT_GNU_IFUNC via breakpoints.
3384 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3385 bp_gnu_ifunc_resolver_return.
3386 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3387 the loop. Support bp_gnu_ifunc_resolver and
3388 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3389 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3391 (bptype_string, print_one_breakpoint_location): Support
3392 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3393 (user_settable_breakpoint): Return true also for
3394 bp_gnu_ifunc_resolver.
3395 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3396 bp_gnu_ifunc_resolver_return.
3397 (set_breakpoint_location_function): New parameter explicit_loc,
3398 describe it. Call find_pc_partial_function_gnu_ifunc with new
3399 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3400 EXPLICIT_LOC is not set.
3401 (set_raw_breakpoint): Set EXPLICIT_LOC for
3402 set_breakpoint_location_function.
3403 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3404 set_breakpoint_location_function.
3405 (mention): Support bp_gnu_ifunc_resolver and
3406 bp_gnu_ifunc_resolver_return.
3407 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3408 set_breakpoint_location_function.
3409 (update_breakpoint_locations): Remove static.
3410 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3411 bp_gnu_ifunc_resolver_return.
3412 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3413 bp_gnu_ifunc_resolver_return.
3414 (update_breakpoint_locations): New declaration.
3415 * elfread.c: Include gdbthread.h and regcache.h.
3416 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3418 (elf_gnu_ifunc_fns): Install them.
3419 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3420 (stub_gnu_ifunc_resolver_return_stop): New functions.
3421 (stub_gnu_ifunc_fns): Install them.
3422 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3423 and gnu_ifunc_resolver_return_stop.
3424 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3426 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 STT_GNU_IFUNC reader implementation.
3429 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3430 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3431 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3432 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3433 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3434 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3435 (elf_gnu_ifunc_resolve_addr): New.
3436 (elf_symfile_read): Call elf_rel_plt_read.
3437 (elf_gnu_ifunc_fns): New.
3438 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3439 Install elf_gnu_ifunc_fns.
3440 * infcall.c (find_function_return_type): New function.
3441 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3442 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3443 (stub_gnu_ifunc_resolve_name): New functions.
3444 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3445 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3446 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3448 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3450 Code cleanup for later STT_GNU_IFUNC support.
3451 * infcall.c (find_function_addr): Remove variable code, use explicit
3452 dereferences for it. Move VALUE_TYPE initialization later.
3454 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3456 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3457 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3458 (clear_pc_function_cache): Clear it.
3459 (find_pc_partial_function): Rename to ...
3460 (find_pc_partial_function_gnu_ifunc): ... this function. New
3461 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3462 (find_pc_partial_function): New wrapper for this function.
3463 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3465 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3467 GDB internal type support for STT_GNU_IFUNC.
3468 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3469 (elf_symtab_read): Set mst_text_gnu_ifunc for
3470 BSF_GNU_INDIRECT_FUNCTION.
3471 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3472 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3473 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3474 nodebug_got_plt_symbol.
3475 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3476 (TYPE_GNU_IFUNC): New.
3477 (struct main_type): New field flag_gnu_ifunc.
3478 (struct builtin_type): New field builtin_func_func.
3479 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3480 nodebug_got_plt_symbol.
3481 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3482 (in_gnu_ifunc_stub): New.
3483 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3485 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3486 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3487 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3489 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3490 * symtab.c (search_symbols): Likewise.
3491 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3492 and mst_slot_got_plt.
3493 (in_gnu_ifunc_stub): New declaration.
3495 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3497 Support a ring of related breakpoints.
3498 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3499 other functions, add gdb_assert.
3500 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3501 watchpoint_del_at_next_stop.
3502 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3503 (bpstat_stop_status): Handle ring in related_breakpoint.
3504 (set_raw_breakpoint_without_location): Initialize ring in
3506 (delete_breakpoint): Handle ring in related_breakpoint, use
3507 watchpoint_del_at_next_stop.
3508 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3510 2011-03-28 Tom Tromey <tromey@redhat.com>
3513 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3514 with `language_minimal'.
3516 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3518 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3519 instead of checking for STT_ARM_TFUNC symbol type.
3521 2011-03-25 Tom Tromey <tromey@redhat.com>
3523 * linespec.c (symbol_found): Restore line-based result for
3524 non-LOC_LABEL symbols.
3526 2011-03-25 Kai Tietz <ktietz@redhat.com>
3528 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3529 instead of strcmp for comparison.
3530 (tui_source_is_displayed): Likewise.
3531 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3533 2011-03-24 Mark Wielaard <mjw@redhat.com>
3535 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3537 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3538 (find_partial_die_in_comp_unit): Likewise in comment.
3539 (read_attribute_value): Likewise.
3540 (lookup_die_type): Likewise.
3541 (dwarf_form_name): Likewise.
3542 (dump_die_shallow): Likewise.
3543 (follow_die_ref_or_sig): Likewise.
3545 2011-03-24 Tom Tromey <tromey@redhat.com>
3547 PR breakpoints/11816:
3548 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3549 (decode_compound): Update.
3550 (find_function_symbol): New function.
3551 (decode_dollar): Update.
3552 (decode_label): Add 'function_symbol' parameter. Handle
3553 function-relative labels.
3554 (decode_variable): Update.
3555 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3556 not its line. Set `special_display' and canonical name for
3559 2011-03-24 Tom Tromey <tromey@redhat.com>
3561 * linespec.h (struct linespec_result) <special_display>: New
3563 * breakpoint.h (struct breakpoint) <display_canonical>: New
3565 * breakpoint.c (print_breakpoint_location): Respect
3567 (create_breakpoint_sal): Add 'display_canonical' parameter.
3568 (create_breakpoints_sal): Update.
3569 (create_breakpoint): Update.
3571 2011-03-24 Tom Tromey <tromey@redhat.com>
3573 * symtab.c (decode_line_spec): Update.
3574 * linespec.c (build_canonical_line_spec): Change type of
3576 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3577 (find_method, decode_all_digits, decode_dollar, decode_label)
3578 (symbol_found): Likewise.
3579 (init_linespec_result): New function.
3580 * breakpoint.c (struct captured_parse_breakpoint_args)
3581 <canonical_p>: New field, replaces addr_string_p.
3582 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3584 (parse_breakpoint_sals): Likewise.
3585 (do_captured_parse_breakpoint): Update.
3586 (create_breakpoint): Use struct linespec_result.
3587 (until_break_command): Update.
3588 (breakpoint_re_set_one): Update.
3589 (decode_line_spec_1): Update.
3590 * linespec.h (struct linespec_result): New.
3591 (init_linespec_result): Declare.
3593 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3595 * regcache.c (regcache_raw_read): If the target didn't supply a
3596 given raw register, mark it as unavailable.
3598 2011-03-23 Kai Tietz <ktietz@redhat.com>
3600 * breakpoint.c (clear_command): Use filename_cmp
3601 instead of strcmp for comparison.
3602 * buildsym.c (watch_main_source_file_lossage): Likewise.
3603 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3604 checking just for slash.
3605 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3606 strrchr and filename_cmp instead of strcmp for filenames.
3607 (add_old_header_file): Use filename_cmp
3608 instead of strcmp for comparison.
3609 * exec.c (exec_set_section_address): Likewise.
3610 * macrotab.c (macro_lookup_inclusion): Likewise.
3611 (macro_lookup_inclusion): Likewise.
3612 * elfread.c (_initialize_elfread): Likewise.
3613 (elfstab_offset_sections): Likewise.
3614 (elfstab_offset_sections): Use lbasename instead of
3616 * mdebugread.c (parse_partial_symbols): Likewise.
3617 (arse_partial_symbols): Use filename_(n)cmp instead of
3618 str(n)cmp for comparison.
3619 * minsyms.c (lookup_minimal_symbol): Likewise.
3620 * psymtab.c (read_psymtabs_with_filename): Likewise.
3621 * solib.c (solib_read_symbols): Likewise.
3622 (reload_shared_libraries_1): Likewise.
3623 * symmisc.c (maintenance_print_symbols): Likewise.
3624 * symfile.c (separate_debug_file_exists): Likewise.
3625 (reread_symbols): Likewise.
3626 (find_separate_debug_file_by_debuglink): Likewise.
3627 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3628 * source.c (add_path): Likewise.
3629 * symtab.c (filename_seen): Likewise.
3630 (file_matches): Likewise.
3631 (print_symbol_info): Likewise.
3632 (maybe_add_partial_symtab_filename): Likewise.
3633 (make_source_files_completion_list): Likewise.
3634 * xml-syscall.c (init_sysinfo): Likewise.
3635 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3636 IS_DIR_SEPARATOR for checking for trailing path separator.
3638 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3640 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3641 label abort_expression.
3642 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3643 DWARF_VALUE_OPTIMIZED_OUT.
3645 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3649 to linkage_name. Invert its value. Update the function comment.
3650 (c_type_print_varspec_suffix): Invert it at the caller.
3651 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3653 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3655 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3656 errors when reading the `stop_pc'.
3657 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3660 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3662 * NEWS: Document gdb.Write stream keyword.
3664 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3669 (dwarf2_add_field): Fix new_field->accessibility for
3670 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3672 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3676 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3677 other error classes. Do not print stack trace.
3679 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3681 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3682 (dwarf2_add_field): Fix new_field->accessibility for
3683 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3685 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3687 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3688 encountering a load via a non-SP register.
3690 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3692 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3693 field in returned unwinder.
3695 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3699 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3701 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3704 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3706 * frame.c (frame_unwind_register): Throw an error if unwinding the
3708 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3709 an unwind stop reason.
3710 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3711 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3712 UNWIND_UNAVAILABLE>: New.
3713 * inline-frame.c (inline_frame_unwind): Install
3714 default_frame_unwind_stop_reason.
3715 * frame-unwind.c: Include "exceptions.h".
3716 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3717 (default_frame_unwind_stop_reason): New.
3718 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3719 (default_frame_unwind_stop_reason): Declare.
3720 (struct frame_unwind) <stop_reason>: New function pointer.
3722 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3723 * dwarf2-frame.c: Include exceptions.h.
3724 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3725 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3726 computing the CFA. If such an error was thrown, set
3727 unavailable_retaddr.
3728 (dwarf2_frame_unwind_stop_reason): New.
3729 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3731 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3732 (dwarf2_signal_frame_unwind): Ditto.
3734 * amd64-tdep.c: Include "exceptions.h".
3735 (struct amd64_frame_cache): New field "base_p".
3736 (amd64_init_frame_cache): Clear it.
3737 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3738 Avoid reading registers with functions that throw if the register
3739 is not necessary to compute the frame base.
3740 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3741 swallowing NOT_AVAILABLE_ERROR.
3742 (amd64_frame_unwind_stop_reason): New.
3743 (amd64_frame_this_id): Don't build a frame id if the frame base
3745 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3746 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3747 base_p if the frame base was computable.
3748 (amd64_sigtramp_frame_unwind_stop_reason): New.
3749 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3750 frame base was unavailable.
3751 (amd64_sigtramp_frame_unwind): Install
3752 amd64_sigtramp_frame_unwind_stop_reason.
3753 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3754 base_p if the frame base was computable.
3755 (amd64_epilogue_frame_unwind_stop_reason): New.
3756 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3757 frame base was unavailable.
3758 (amd64_epilogue_frame_unwind): Install
3759 amd64_epilogue_frame_unwind_stop_reason.
3760 * i386-tdep.c: Include "exceptions.h".
3761 (struct i386_frame_cache): New field "base_p".
3762 (i386_init_frame_cache): Clear it.
3763 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3764 Avoid reading registers with functions that throw if the register
3765 is not necessary to compute the frame base.
3766 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3767 swallowing NOT_AVAILABLE_ERROR.
3768 (i386_frame_unwind_stop_reason): New.
3769 (i386_frame_this_id): Don't build a frame id if the frame base was
3771 (i386_frame_prev_register): Handle unavailable SP.
3772 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3773 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3774 base_p if the frame base was computable.
3775 (i386_epilogue_frame_unwind_stop_reason): New.
3776 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3777 base was unavailable.
3778 (i386_epilogue_frame_unwind): Install
3779 i386_epilogue_frame_unwind_stop_reason.
3780 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3781 base_p if the frame base was computable.
3782 (i386_sigtramp_frame_unwind_stop_reason): New.
3783 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3784 base was unavailable.
3785 (i386_sigtramp_frame_unwind): Install
3786 i386_sigtramp_frame_unwind_stop_reason.
3787 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3788 type's size, not the register's.
3789 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3791 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3792 default_frame_unwind_stop_reason.
3793 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3794 (alpha_heuristic_frame_unwind): Ditto.
3795 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3796 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3797 * avr-tdep.c (avr_frame_unwind): Ditto.
3798 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3800 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3801 * frv-tdep.c (frv_frame_unwind): Ditto.
3802 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3803 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3804 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3805 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3806 (hppa_stub_frame_unwind): Ditto.
3807 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3808 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3809 (ia64_libunwind_frame_unwind)
3810 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3811 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3812 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3813 * m32c-tdep.c (m32c_unwind): Ditto.
3814 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3815 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3816 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3817 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3818 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3819 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3820 * mep-tdep.c (mep_frame_unwind): Ditto.
3821 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3822 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3823 (mips_stub_frame_unwind): Ditto.
3824 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3825 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3826 * mt-tdep.c (mt_frame_unwind): Ditto.
3827 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3828 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3829 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3830 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3831 (s390_sigtramp_frame_unwind): Ditto.
3832 * score-tdep.c (score_prologue_unwind): Ditto.
3833 * sh-tdep.c (sh_frame_unwind): Ditto.
3834 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3835 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3836 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3837 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3838 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3839 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3840 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3841 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3842 (sparc64obsd_trapframe_unwind): Ditto.
3843 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3844 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3845 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3846 * v850-tdep.c (v850_frame_unwind): Ditto.
3847 * vax-tdep.c (vax_frame_unwind): Ditto.
3848 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3849 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3850 * xtensa-tdep.c (xtensa_unwind): Ditto.
3852 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3854 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3855 there's always a frame. Use get_frame_pc_if_available instead of
3856 get_frame_pc, and if there's no PC available, don't look up a
3859 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3861 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3864 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3866 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3869 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3871 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3872 * frame.c (frame_unwind_caller_pc_if_available): New.
3873 * stack.c (frame_info): Handle unavailable PC.
3875 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3877 * frame.c (frame_unwind_pc): Rename to ...
3878 (frame_unwind_pc_if_available): ... this. New `pc' output
3879 parameter. Change return type to int. Gracefully handle
3880 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3881 happened, or 1 otherwise.
3882 (frame_unwind_pc): Reimplement on top of
3883 frame_unwind_pc_if_available.
3884 (get_frame_func): Rename to ...
3885 (get_frame_func_if_available): New `pc' output parameter. Change
3886 return type to int. Gracefully handle the PC not being available.
3887 (get_frame_func): Reimplement on top of
3888 get_frame_func_if_available.
3889 (select_frame): Handle the PC being unavailable.
3890 (get_prev_frame): Handle the PC being unavailable.
3891 (get_frame_pc_if_available): New.
3892 (get_frame_address_in_block_if_available): New.
3893 (find_frame_sal): Handle the frame PC not being available.
3894 * frame.h (get_frame_pc_if_available): Declare.
3895 (get_frame_address_in_block_if_available): Declare.
3896 (get_frame_func_if_available): Declare.
3897 * stack.c (print_frame_info): Handle the PC being unavailable.
3898 (find_frame_funname): Ditto.
3899 (print_frame): Handle the PC being unavailable.
3900 (get_frame_language): Ditto.
3901 * blockframe.c (get_frame_block): Ditto.
3902 * macroscope.c (default_macro_scope): Ditto.
3903 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3905 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3907 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3908 NOT_AVAILABLE_ERROR when evaluating the location expression.
3910 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3912 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3913 returning that the register piece is unavailable/optimized out.
3914 (write_pieced_value): Handle get_frame_register_bytes returning
3915 that the register piece is unavailable/optimized out when doing a
3916 read-modify write of a bitfield.
3917 * findvar.c (value_from_register): Handle get_frame_register_bytes
3918 returning that the register piece is unavailable/optimized out.
3919 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3920 and `unavailablep'. Throw error on bad debug info. Use
3921 frame_register instead of frame_register_read, to fill in the new
3923 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3925 * valops.c: (value_assign): Adjust, and handle
3926 get_frame_register_bytes failing.
3927 * spu-tdep.c: Include exceptions.h.
3928 (spu_software_single_step): Adjust, and handle
3929 get_frame_register_bytes failing.
3930 (spu_get_longjmp_target): Ditto.
3931 * gdbarch.sh (register_to_value): Change to return int. New
3932 parameters `optimizedp' and `unavailablep'.
3933 * gdbarch.h, gdbarch.c: Regenerate.
3934 * i386-tdep.c (i386_register_to_value): Adjust to new
3935 gdbarch_register_to_value interface.
3936 * i387-tdep.c (i387_register_to_value): Ditto.
3937 * i387-tdep.h (i387_register_to_value): Ditto.
3938 * alpha-tdep.c (alpha_register_to_value): Ditto.
3939 * ia64-tdep.c (ia64_register_to_value): Ditto.
3940 * m68k-tdep.c (m68k_register_to_value): Ditto.
3941 * mips-tdep.c (mips_register_to_value): Ditto.
3942 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3944 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3946 * findvar.c (value_of_register): Mark the value as unavailable, if
3947 the register is unavailable.
3948 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3949 (frame_register): New `unavailablep' parameter.
3950 (frame_register_read): Update comment.
3951 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3952 Set it if the register is unavailable. If the register is
3953 unavailable, clear the output buffer.
3954 (frame_register): New `unavailablep' parameter. Pass it down.
3955 (frame_unwind_register): Adjust.
3956 (put_frame_register): Adjust.
3957 (frame_register_read): Adjust. Also return false if the register
3959 (frame_register_unwind_location): Adjust.
3960 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3961 is unavailable, mark the value accordingly.
3962 * stack.c (frame_info): Handle unavailable registers.
3964 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3966 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3967 simplify, using regcache_cooked_read.
3969 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3971 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3972 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3973 (regcache_raw_read_unsigned, regcache_raw_read_part)
3974 (regcache_cooked_read, regcache_cooked_read_signed)
3975 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3976 (regcache_cooked_read_ftype): Change return to enum
3978 * regcache.c: Include exceptions.h
3979 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3980 (do_cooked_read): Change return to enum register_status. Always
3981 forward to regcache_cooked_read.
3982 (regcache_raw_read): Change return to enum register_status. If
3983 the register is not REG_VALID, memset the buffer. Return the
3985 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3986 return the register's status.
3987 (regcache_raw_read_unsigned): Ditto.
3988 (regcache_cooked_read): Change return to enum register_status.
3989 Assert that with read-only regcaches, the register's status must
3990 be known. If the regcache is read-only, and the register is not
3991 REG_VALID, memset the buffer. Return the register's status.
3992 (regcache_cooked_read_signed): Change return to enum
3993 register_status. Handle non-REG_VALID registers and return the
3995 (regcache_cooked_read_unsigned): Change return to enum
3996 register_status. Handle non-REG_VALID registers and return the
3998 (regcache_xfer_part, regcache_raw_read_part)
3999 (regcache_cooked_read_part): Change return to enum
4000 register_status. Return the register's status.
4001 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4003 (regcache_dump): Handle unavailable cooked registers.
4004 * frame.c (do_frame_register_read): Adjust interface to match
4005 regcache_cooked_read_ftype.
4006 * gdbarch.sh (pseudo_register_read): Change return to enum
4008 * gdbarch.h, gdbarch.c: Regenerate.
4010 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4012 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4013 register_status. If reading a raw register indicates the raw
4014 register is not valid, return the raw register's status,
4015 otherwise, return REG_VALID.
4016 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4017 register_status. Handle non-REG_VALID raw registers and return
4018 the register's status.
4019 * arm-tdep.c (arm_neon_quad_read)
4020 (arm_pseudo_read): Change return to enum register_status. Handle
4021 non-REG_VALID raw registers and return the register's status.
4022 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4023 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4024 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4025 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4026 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4028 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4029 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4030 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4031 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4032 (m32c_pseudo_register_read): Change return to enum
4033 register_status. Adjust.
4034 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4035 enum register_status. Return the register's status.
4036 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4037 register_status. Return the register's status.
4038 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4039 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4040 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4041 * rs6000-tdep.c (move_ev_register_func): New typedef.
4042 (e500_move_ev_register): Use it. Change return to enum
4043 register_status. Return the register's status.
4044 (do_regcache_raw_read): New function.
4045 (do_regcache_raw_write): New function.
4046 (e500_pseudo_register_read): Change return to enum
4047 register_status. Return the register's status. Use
4048 do_regcache_raw_read.
4049 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4050 (dfp_pseudo_register_read): Change return to enum register_status.
4051 Return the register's status.
4052 (vsx_pseudo_register_read): Ditto.
4053 (efpr_pseudo_register_read): Ditto.
4054 (rs6000_pseudo_register_read): Ditto.
4055 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4056 register_status. Return the register's status.
4057 * sh64-tdep.c (pseudo_register_read_portions): New function.
4058 (sh64_pseudo_register_read): Change return to enum
4059 register_status. Use pseudo_register_read_portions. Return the
4061 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4062 register_status. Return the register's status.
4063 * sh-tdep.c (pseudo_register_read_portions): New function.
4064 (sh_pseudo_register_read): Change return to enum register_status.
4065 Use pseudo_register_read_portions. Return the register's status.
4066 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4067 enum register_status. Return the register's status.
4068 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4069 * spu-tdep.c (spu_pseudo_register_read_spu)
4070 (spu_pseudo_register_read): Ditto.
4071 * xtensa-tdep.c (xtensa_register_read_masked)
4072 (xtensa_pseudo_register_read): Ditto.
4073 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4075 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4077 * python/py-value.c (valpy_getitem): Fix formatting of error function
4080 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4082 ARI fixes: Add missing internationalization markups throughout
4084 * darwin-nat-info.c: Ditto.
4087 * mi/mi-main.c: Ditto.
4089 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4091 ARI fixes: Add missing internationalization markups throughout
4094 * cp-name-parser.y: Ditto.
4097 * objc-exp.y: Ditto.
4100 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4102 ARI fixes: Messages should have no trailing new lines.
4103 * darwin-nat.c (mach_check_error): Remove trailing new line from
4104 warning function call message.
4105 * record.c (bfdcore_read): Idem for error call.
4107 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4109 * common/signals.c (target_signal_from_host): Add _ markup to error
4110 function call message.
4111 (target_signal_to_host): Add _ markup and remove trailing new line
4112 from warning call message.
4113 (target_signal_from_command): Add _ markup to error function call
4116 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4120 * python/python.c (gdbpy_write): Accept a stream argument and
4121 operate to the appropriate stream.
4122 (gdbpy_flush): Likewise.
4123 (_initialize_python): Add stream constants.
4124 (finish_python_initialization): Add GdbOutputErrorFile class.
4126 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4128 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4130 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4132 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4133 to store_signed_integer. Add debug message when relocating CALL
4134 instructions. Fix formatting of debug message.
4135 * i386-tdep.c (i386_relocate_instruction): Ditto.
4137 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4139 * target.h (struct target_ops): Remove to_lookup_symbol field.
4140 (target_lookup_symbol): Delete macro.
4141 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4142 (update_current_target, setup_target_debug): Remove handling
4143 of to_lookup_symbol target_ops field.
4144 * ada-tasks.c (get_known_tasks_addr): Remove use of
4145 target_lookup_symbol.
4146 * coffread.c (coff_symtab_read): Likewise.
4147 * dbxread.c (read_dbx_symtab): Ditto.
4149 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4152 * configure.ac: Add getthrds declaration check.
4153 * configure, config.in: Regenerate.
4154 * aix-thread.c (getthrds): Declare only if not already declared
4155 in procinfo.h. More declaration out of get_signaled_thread to
4158 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4160 * python/py-symtab.c: Populate symtab_object_methods,
4162 (stpy_is_valid): New function.
4163 (salpy_is_valid): Ditto.
4164 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4165 (sympy_is_valid): New function.
4166 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4167 (objfpy_is_valid): New function.
4168 * python/py-inferior.c: Populate inferior_object_methods.
4169 (infpy_is_valid): New function.
4170 * python/py-infthread.c: Populate thread_object_methods.
4171 (thpy_is_valid): New function.
4172 * python/py-block.c: Declare block_object_methods. Populate. Declare
4173 block_iterator_object_methods. Populate.
4174 (blpy_is_valid): New function.
4175 (blpy_iter_is_valid): Ditto.
4177 2011-03-16 Keith Seitz <keiths@redhat.com>
4179 * linespec.c (find_methods): Canonicalize NAME before looking
4181 (name_end): New function.
4182 (keep_name_info): New function.
4183 (decode_line_1): Use keep_name_info.
4184 (decode_compound): Likewise.
4185 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4186 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4189 * linespec.c (locate_first_half): Keep overload information, too.
4190 (decode_compound): Use a string to represent break characters
4192 If P points to a break character, do not increment it.
4193 For C++ and Java, keep overload information and relevant keywords.
4194 If we cannot find a symbol, search the minimal symbols.
4197 * linespec.c (decode_compound): Rename SAVED_ARG to
4199 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4201 Pass a valid block to lookup_symbol.
4202 (lookup_prefix_sym): Likewise.
4203 (find_method): Construct search name based on SYM_CLASS instead
4205 * psymtab.c (lookup_partial_symbol): Add language parameter.
4206 (lookup_symbol_aux_psymtabs): Likewise.
4207 Don't assume that the psymtab we found was the right one. Search
4208 for the desired symbol in the symtab to be certain.
4209 (psymtab_search_name): New function.
4210 (lookup_partial_symbol): Use psymtab_search_name.
4211 Add language parameter.
4212 (read_symtabs_for_function): Add language parameter and pass to
4213 lookup_partial_symbol.
4214 (find_symbol_file_from_partial): Likewise.
4216 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4219 * dwarf2read.c (noop_record_line): New function.
4220 (dwarf_decode_lines): Ignore line tables for GCd functions.
4222 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4224 Fix ARI warnings about new lines at the end of messages, which
4225 are unneeded as there is a new line added at the end of the message
4227 * darwin-nat.c (darwin_stop_inferior): Ditto.
4228 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4229 * dfp.c (decimal_to_number): Ditto.
4230 * exec.c (print_section_info): Ditto.
4231 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4232 * osdata.c (get_osdata): Ditto.
4233 * record.c (bfdcore_write): Ditto.
4234 * remote-mips.c (mips_readchar): Ditto.
4235 * remote.c (read_ptid): Ditto.
4236 * ser-mingw.c (ser_windows_raw): Ditto.
4237 * tracepoint.c (add_local_symbols): Ditto.
4238 * windows-nat.c (fake_create_process): Ditto.
4240 2011-03-16 Tom Tromey <tromey@redhat.com>
4242 * tracepoint.c (stop_tracing): Don't declare.
4243 * event-top.c (after_char_processing_hook): Add `(void)'.
4245 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4247 * NEWS: Add Parameter sub-classing description.
4249 2011-03-16 Kai Tietz <ktietz@redhat.com>
4251 * MAINTAINERS: Update my e-mail address.
4253 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4255 * MAINTAINERS: Add myself for write after approval privileges.
4257 2011-03-15 Michael Snyder <msnyder@vmware.com>
4259 * frame.c (find_frame_sal): Assert sym is not null.
4261 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4263 * objc-lang.c (selectors_info): Check strchr for null result.
4265 * stabsread.c (define_symbol): Guard against bad stabstring input.
4267 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4269 Remove trailing spaces and tabulations from pascal language
4274 p-valprint.c: Ditto.
4276 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4279 than LOW. Comment it.
4280 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4281 HIGHPC not strictly higher than LOWPC.
4283 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4285 Fix formatting of function declarations returning a pointer in
4287 * varobj.c (varobj_add_child): Ditto.
4288 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4289 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4291 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4293 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4294 for the "generic" vector ABI used with GCC 4.3 and later.
4295 (ppc64_sysv_abi_return_value): Likewise.
4297 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4299 * infcall.c (call_function_by_hand): Function return value is
4300 always a non_lval, even when using struct_return.
4302 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4304 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4305 (map_display_numbers): New.
4306 (do_delete_display): New.
4307 (undisplay_command): Use map_display_numbers.
4308 (do_enable_disable_display): New.
4309 (enable_disable_display_command): New function.
4310 (enable_display): Delete.
4311 (enable_display_command): New.
4312 (disable_display_command): Reimplement.
4313 (_initialize_printcmd): Adjust "enable display" command to use
4314 `enable_display_command' as callback.
4316 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4318 * NEWS: Add Python breakpoint 'stop' operation.
4320 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4322 * NEWS: Delete duplicate entry. Fix typo.
4324 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4326 Fix ARI warning about function names in first column.
4327 Put prototype declaration on same line as return type.
4328 * objc-exp.y: Ditto.
4330 * python/py-stopevent.h: Ditto.
4331 For long function names, split parameters to
4332 allow function name on same line as return type.
4333 * solib-pa64.c: Ditto.
4336 For long function declaration, use single line.
4337 * hppa-tdep.h: Ditto.
4338 * inferior.h: Ditto.
4340 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4342 * python/python.h: Declare gdbpy_should_stop and
4343 gdbpy_breakpoint_has_py_cond.
4344 * python/python.c: Add python.h to includes. Remove python.h from
4345 HAVE_PYTHON definition
4346 (gdbpy_should_stop): New dummy function.
4347 (gdbpy_breakpoint_has_py_cond): New dummy function.
4348 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4349 sub-classing capabilities.
4350 (gdbpy_should_stop): New function.
4351 (gdbpy_breakpoint_has_py_cond): New function.
4352 (local_setattro): New function.
4353 * breakpoint.c (condition_command): Add check for Python 'stop'
4355 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4356 operation function as part of stop/continue tests.
4358 2011-03-14 Tom Tromey <tromey@redhat.com>
4361 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4362 (needs_frame_dwarf_call): Likewise.
4364 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4366 Fix ARI warning about functions without parameters that do not
4368 * breakpoint.c (all_tracepoints): Replace () by (void).
4369 * f-exp.y (match_string_literal): Ditto.
4371 * m2-exp.y (yylex): Ditto.
4372 * mep-tdep.c (current_me_module): Ditto.
4373 (current_options): Ditto.
4374 (current_cop_data_bus_width): Ditto.
4375 (current_cr_names): Ditto.
4376 (current_cr_is_float): Ditto.
4377 (current_ccr_names): Ditto.
4378 * objc-exp.y (yylex): Ditto.
4379 * p-exp.y (yylex): Ditto.
4380 * remote.c (send_interrupt_sequence): Ditto.
4381 * tracepoint.c (current_trace_status): Ditto.
4382 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4383 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4385 2011-03-11 Michael Snyder <msnyder@vmware.com>
4387 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4388 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4389 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4390 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4391 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4393 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4394 (delete_async_event_handler): Ditto.
4396 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4398 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4400 * top.c (set_verbose): Assert showcmd was found.
4402 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4404 * xtensa-tdep.c (warning_once): Correct style issues.
4406 2011-03-11 Yao Qi <yao@codesourcery.com>
4408 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4410 2011-03-11 Andreas Schwab <schwab@redhat.com>
4412 * common/aclocal.m4: Remove.
4414 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4416 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4417 (xtensa_write_register, xtensa_read_register): Likewise.
4418 (xtensa_hextochar): Removed.
4419 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4421 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4423 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4424 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4425 (xtensa_alloc_frame_cache): Add initialization for new fields.
4426 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4427 (warning_once): New function.
4428 (xtensa_insn_kind): New item c0opc_and.
4429 (call0_classify_opcode): Add the case for AND instruction.
4430 (call0_track_op): Change arguments. New local variable litbase.
4431 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4432 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4434 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4435 (call0_analyze_prologue): Update the comments. Change arguments.
4436 Add the variety of updates to handle extended prologues, which now can
4437 conduct dynamic stack adjustments.
4438 (call0_frame_cache): Likewise.
4439 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4440 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4442 2011-03-10 Michael Snyder <msnyder@vmware.com>
4444 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4445 (cmd_qtframe): Ditto.
4446 (cmd_qtbuffer): Ditto.
4447 (cmd_bigqtbuffer): Ditto.
4449 2011-03-10 Tom Tromey <tromey@redhat.com>
4451 * tracepoint.c (trace_actions_command): Update.
4452 * thread.c (thread_apply_command): Update.
4453 * reverse.c (delete_bookmark_command): Update.
4454 (bookmarks_info): Update.
4455 * printcmd.c (undisplay_command): Update.
4456 * memattr.c (mem_enable_command): Update.
4457 (mem_disable_command): Update.
4458 (mem_delete_command): Update.
4459 * inferior.c (detach_inferior_command): Update.
4460 (kill_inferior_command): Update.
4461 (remove_inferior_command): Update.
4462 * cli/cli-utils.h (struct get_number_or_range_state): New.
4463 (init_number_or_range): Declare.
4464 (get_number_or_range): Update.
4465 * cli/cli-utils.c (init_number_or_range): New function.
4466 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4468 (number_is_in_list): Update.
4469 * breakpoint.h (get_tracepoint_by_number): Update.
4470 * breakpoint.c (map_breakpoint_numbers): Update for change to
4471 get_number_or_range.
4472 (find_location_by_number): Use get_number, not
4473 get_number_or_range.
4474 (trace_pass_set_count): New function.
4475 (trace_pass_command): Update for change to get_number_or_range.
4477 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4480 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4482 * python/py-param.c (add_setshow_generic): Add set/show callback
4483 parameters. Register Python object context.
4484 (get_show_value): New function.
4485 (get_set_value): New function.
4486 (call_doc_function): New function.
4487 (get_doc_string): Move behind get_show_value/get_set_value.
4489 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4491 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4493 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4495 * xtensa-tdep.c (xtensa_read_register): Add comment.
4496 (xtensa_write_register): Likewise.
4497 (xtensa_hextochar): Add comment and update to match coding conventions.
4498 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4499 (execute_l32e, execute_s32e, execute_code): Update comments.
4500 (xtensa_exception_handler_t): Update to match coding conventions.
4501 (xtensa_insn_kind): Likewise.
4503 2011-03-09 Michael Snyder <msnyder@vmware.com>
4505 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4507 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4509 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4511 2011-03-09 Tom Tromey <tromey@redhat.com>
4513 * thread.c (restore_selected_frame): Handle frame_level == -1.
4514 (make_cleanup_restore_current_thread): Use
4515 get_selected_frame_if_set.
4516 * frame.h (get_selected_frame_if_set): Declare.
4517 * frame.c (get_selected_frame_if_set): New function.
4519 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4521 * cli/cli-cmds.c (shell_escape): Use lbasename.
4522 * coffread.c (coff_start_symtab): Constify parameter.
4523 (complete_symtab): Constify `name' parameter.
4524 (coff_symtab_read): Constify `filestring' local.
4525 (coff_getfilename): Constify return and `result' local.
4527 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4528 * linux-fork.c (info_checkpoints_command): Use lbasename.
4529 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4530 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4531 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4532 * procfs.c (procfs_make_note_section): Use lbasename.
4533 * tui/tui-io.c (printable_part): Constity return and parameter.
4535 (print_filename): Constify parameters, and local `s'.
4536 (tui_rl_display_match_list): Constify local `temp'.
4538 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4541 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 Fix DWARF-3+ DW_AT_accessibility default assumption.
4543 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4544 cu->header.version >= 3.
4546 2011-03-09 Yao Qi <yao@codesourcery.com>
4548 * common/Makefile.in: Remove.
4549 * common/configure: Remove.
4550 * common/configure.ac: Remove.
4552 2011-03-09 Yao Qi <yao@codesourcery.com>
4555 2011-02-11 Yao Qi <yao@codesourcery.com>
4557 * common/Makefile.in: Add copyright header.
4559 2011-02-11 Yao Qi <yao@codesourcery.com>
4561 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4563 * configure.ac: Add common to sub dir.
4564 * configure: Regenerate.
4566 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4568 * xtensa-tdep.c (call0_ret): New function.
4569 (xtensa_skip_prologue): Speed up analysis.
4571 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4573 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4574 while executing MI command -data-list-changed-registers.
4576 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4578 * xtensa-tdep.c (xtensa_read_register): New function.
4579 (xtensa_write_register): New function.
4580 (xtensa_find_register_by_name): New function.
4581 (xtensa_windowed_frame_cache): Update comments in type description.
4582 (xtensa_frame_cache): Likewise.
4583 (xtensa_window_interrupt_insn): New function.
4584 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4585 (xtensa_insn_kind): Add new instructions.
4586 (rwx_special_register): New function.
4587 (call0_classify_opcode): Add new instructions to the analysis.
4588 (a0_saved, a7_saved, a11_saved): New variables.
4589 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4590 (execute_l32e): New function.
4591 (execute_s32e): New function.
4592 (xtensa_exception_handler_t): New type.
4593 (execute_code): New function.
4594 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4595 analysis for Xtensa Window Exception handlers.
4597 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4599 * xtensa-tdep.c (TX_PS): New.
4600 (windowing_enabled): Update to count for Call0 ABI.
4601 (xtensa_hextochar): New.
4602 (xtensa_init_reggroups): Make algorithm generic.
4603 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4605 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4607 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4609 2011-03-08 Michael Snyder <msnyder@vmware.com>
4611 * i386-tdep.c (i386_follow_jump): Check return value of
4613 (i386_analyze_struct_return): Ditto.
4614 (i386_skip_probe): Ditto.
4615 (i386_match_insn): Ditto.
4616 (i386_skip_noop): Ditto.
4617 (i386_analyze_frame_setup): Ditto.
4618 (i386_analyze_register_saves): Ditto.
4619 (i386_skip_prologue): Ditto.
4620 (i386_skip_main_prologue): Ditto.
4622 * target.c (read_whatever_is_readable): Fix memory leak.
4624 * i386-tdep.c (i386_process_record): Document fall through.
4626 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4628 Fix DWARF-3+ DW_AT_accessibility default assumption.
4629 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4630 cu->header.version >= 3.
4632 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4634 * remote.c (remote_check_symbols): Skip if the target has no
4637 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4639 * target.c (read_whatever_is_readable): Reformat comment,
4640 with a minor typo fix. Minor reformatting of the code.
4642 2011-03-08 Yao Qi <yao@codesourcery.com>
4644 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4645 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4646 Use cached result instead of calling displaced_in_arm_mode again.
4647 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4648 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4649 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4650 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4651 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4652 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4653 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4654 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4655 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4656 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4657 (arm_catch_kernel_helper_return): Likewise.
4658 * gdb/arm-tdep.h : Update function declarations.
4660 2011-03-07 Michael Snyder <msnyder@vmware.com>
4662 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4664 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4666 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4668 * elfread.c (elf_symtab_read): Stop memory leak.
4670 * main.c (captured_main): Fix memory leak.
4672 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4674 * ada-lang.c (compare_names): Call is_name_suffix with string1
4677 2011-03-07 Tom Tromey <tromey@redhat.com>
4679 * xcoffread.c (xcoff_sym_fns): Update.
4680 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4681 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4682 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4683 (symbol_file_add_with_addrs_or_offsets): Likewise.
4684 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4685 * somread.c (som_sym_fns): Update.
4686 * psymtab.h (require_partial_symbols): Declare.
4687 * psymtab.c (require_partial_symbols): New function.
4688 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4689 (ALL_OBJFILE_PSYMTABS): Undef.
4690 (ALL_PSYMTABS): Move from psympriv.h.
4691 (lookup_partial_symtab, find_pc_sect_psymtab)
4692 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4693 (find_last_source_symtab_from_partial)
4694 (forget_cached_source_info_partial)
4695 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4696 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4697 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4698 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4699 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4700 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4701 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4702 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4703 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4705 * mipsread.c (ecoff_sym_fns): Update.
4706 * machoread.c (macho_sym_fns): Update.
4707 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4708 (read_psyms): New function.
4709 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4710 (elf_sym_fns_lazy_psyms): New global.
4711 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4712 dwarf2_build_psymtabs.
4713 * dbxread.c (aout_sym_fns): Update.
4714 * coffread.c (coff_sym_fns): Update.
4716 2011-03-07 Tom Tromey <tromey@redhat.com>
4718 * infrun.c (print_exited_reason): Include inferior id and pid in
4721 2011-03-07 Tom Tromey <tromey@redhat.com>
4723 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4725 (target_has_execution_1): Update.
4726 (target_has_execution_current): Declare.
4727 (target_has_execution): Call target_has_execution_current.
4728 (default_child_has_execution): Update.
4729 * target.c (default_child_has_execution): Add 'the_ptid'
4731 (target_has_execution_1): Likewise.
4732 (target_has_execution_current): New function.
4733 (add_target): Update.
4734 (init_dummy_target): Update.
4735 * remote-m32r-sdi.c (m32r_has_execution): New function.
4736 (init_m32r_ops): Use it.
4737 * record.c (record_core_has_execution): Now static. Add
4738 'the_ptid' parameter.
4739 * inferior.c (have_live_inferiors): Don't save current thread.
4740 Use target_has_execution_1.
4742 2011-03-07 Yao Qi <yao@codesourcery.com>
4744 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4746 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4748 * elfread.c (elf_symtab_read): Minor reformatting.
4750 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4752 * objc-lang.c (selectors_info): Minor reformatting.
4754 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4756 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4758 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4759 Michael Snyder <msnyder@vmware.com>
4761 * ada-valprint.c (ada_val_print_array): Move the declaration of
4762 "byte_order" and "elttype" inside the block where these variables
4763 are actually used. Remove some special handling for the case
4764 where "elttype" and "eltlen" are null. Replace by a comment
4765 and a couple of assertion checks.
4767 2011-03-05 Michael Snyder <msnyder@vmware.com>
4769 * source.c (add_path): Replace semicolon at end of block.
4770 * dwarf2expr.c (execute_stack_op): Ditto.
4772 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4774 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4775 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4776 (bfin-*-*): Likewise.
4778 2011-03-05 Michael Snyder <msnyder@vmware.com>
4780 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4781 * mdebugread.c (parse_symbol): Ditto.
4782 * parse.c (parse_exp_in_context): Ditto.
4783 * source.c (add_path): Ditto.
4784 * utils.c (gnu_debuglink_crc32): Ditto.
4785 * varobj.c (variable_language): Ditto.
4787 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4789 2011-03-04 Michael Snyder <msnyder@vmware.com>
4791 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4793 * symfile.c (simple_overlay_update): Check for null return value
4794 from lookup_minimal_symbol.
4796 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4798 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4800 * eval.c (parse_and_eval_address_1): Remove function.
4801 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4802 instead of parse_and_eval_address_1.
4803 * value.h (parse_and_eval_address_1): Remove prototype.
4805 2011-03-04 Michael Snyder <msnyder@vmware.com>
4807 * remote.c (putpkt_binary): Document that case stmt falls through.
4809 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4811 * breakpointc (print_it_typical): Move NULL check from here...
4812 (print_bp_stop_message): ... to here.
4814 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4816 * breakpoint.c (enable_command): Use break instead of continue,
4817 and fill in a missing break.
4818 (disable_command): Ditto.
4820 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4822 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4823 (terminal_save_ours): Remove misleading comment.
4824 (inflow_inferior_data_cleanup): Free ttystate.
4825 (inflow_inferior_exit): Likewise.
4826 (copy_terminal_info): Copy ttystate.
4828 * serial.c (serial_copy_tty_state): New function.
4829 * serial.h (serial_copy_tty_state): Add prototype.
4830 (struct serial_ops): Add copy_tty_state callback.
4831 * ser-base.c (ser_base_copy_tty_state): New function.
4832 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4833 * ser-go32.c (dos_copy_tty_state): New function.
4834 (dos_ops): Install copy_tty_state callback.
4835 * ser-mingw.c (_initialize_ser_windows): Likewise.
4836 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4837 * ser-unix.c (hardwire_copy_tty_state): New function.
4838 (_initialize_ser_hardwire): Install it.
4840 2011-03-04 Michael Snyder <msnyder@vmware.com>
4842 * breakpoint.c (create_breakpoint): Add missing break statement.
4844 Reverting this patch:
4845 * infcall.c (call_function_by_hand): Add break statements for lint.
4847 Reverting this patch:
4848 * cli/cli-script.c (script_from_file): Add break for lint.
4850 2011-03-04 Michael Snyder <msnyder@vmware.com>
4852 * solib.c (reload_shared_libraries_1): Close memory leak.
4854 2011-03-03 Tom Tromey <tromey@redhat.com>
4857 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4860 2011-03-03 Michael Snyder <msnyder@vmware.com>
4862 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4863 fields of struct 'st' to zero.
4865 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4866 sal.pspace before calling set_current_source_symtab_and_line.
4868 2011-03-03 Yao Qi <yao@codesourcery.com>
4870 * Makefile.in (configure-common): Remove. Let Makefile
4871 in dir common to rebuild itself.
4872 (common/Makefile): Likewise.
4874 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4876 * utils.c (parse_escape): Add i18n markup in error message.
4878 2011-03-03 Yao Qi <yao@codesourcery.com>
4880 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4882 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4883 (displaced_write_reg, displaced_read_reg): Likewise.
4884 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4885 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4886 (cleanup_branch): Replace magic number 14 and 15 with
4887 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4889 2011-03-02 Michael Snyder <msnyder@vmware.com>
4891 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4893 * cli/cli-script.c (script_from_file): Add break for lint.
4895 * mdebugread.c (parse_partial_symbols): Fix indent.
4897 * target-descriptions.c (tdesc_gdb_type): No need to call
4898 xstrdup, callee saves a copy.
4900 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4902 * infcall.c (call_function_by_hand): Add break statements for lint.
4904 * utils.c (parse_escape): Escape the escape char.
4906 * python/py-inferior.c (build_inferior_list): Error out if
4907 PyList_Append fails.
4908 (gdbpy_inferiors): Error out if build_inferior_list fails.
4910 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4913 * record.c (record_restore): Move printf to before error return.
4915 2011-03-02 Yao Qi <yao@codesourcery.com>
4917 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4918 is_thumb and insn_size.
4919 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4920 on both ARM and Thumb mode.
4921 (arm_process_displaced_insn): Set is_thumb and insn_size.
4922 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4923 (arm_displaced_step_fixup): Likewise.
4925 2011-03-01 Michael Snyder <msnyder@vmware.com>
4927 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4929 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4931 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4933 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4935 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4938 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4939 which shadows function parameter.
4941 * tracepoint.c (create_tsv_from_upload): Superfluous call
4942 to xstrdup. Callee already calls xstrdup.
4944 * linespec.c (decode_line_1): Remove unnecessary null check.
4946 * tracepoint.c (scope_info): Fix mem leak, remove underused
4949 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4950 superfluous null check.
4952 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4953 (value_of_builtin_frame_fp_reg): Ditto.
4955 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4957 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4960 * linespec.c (decode_line_1): Check for null before dereference.
4962 * reverse.c (record_restore): Move null-check to before pointer
4965 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4967 * objc-lang.c (selectors_info): Add explanitory comment.
4968 (classes_info): Ditto.
4970 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4972 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4973 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4974 versions of the trampoline. Handle Thumb vs. ARM addresses.
4975 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4976 (arm_linux_init_abi): Install it.
4977 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4978 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4980 2011-02-28 Michael Snyder <msnyder@vmware.com>
4982 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4983 a little bigger, to avoid possibility of an overflow.
4985 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4986 buffers a little bigger, to avoid possibility of an overflow.
4988 * coffread.c (coff_getfilename): Add check to avoid overflow.
4990 * objc-lang.c (selectors_info): Add a small safety margin to
4992 (classes_info): Error out on too long REGEXP.
4994 * infrun.c (handle_inferior_event): Remove unused function call.
4996 * fork-child.c (fork_inferior): Remove ifdef'd code and
4999 * linux-thread-db.c (attach_thread): Discard unused value.
5001 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5003 * remote.c (remote_get_noisy_reply): Discard unused value.
5004 (remote_vcont_resume): Ditto.
5005 (remote_stop_ns): Ditto.
5007 * linespec.c (decode_objc): Delete unused variable.
5009 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5011 * dwarf2read.c (add_partial_symbol): Discard unused values.
5012 (read_base_type): Delete unused variable.
5014 * dbxread.c (read_dbx_symtab): Discard unused value.
5016 * eval.c (evaluate_subexp_standard): Delete unused variable,
5017 and discard unused values.
5019 * infcmd.c (_initialize_infcmd): Discard unused values.
5021 * stabsread.c (rs6000_builtin_type): Missing break statement.
5023 * dbxread.c (process_one_symbol): Discard unused value.
5025 * coffread.c (coff_end_symtab): Delete unused variable.
5027 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5028 (dwarf2_add_typedef): Delete unused variable.
5029 (read_namespace): Ditto.
5030 (dwarf_decode_macros): Ditto.
5032 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5034 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5036 * p-valprint.c (pascal_val_print): Discard unused value.
5038 * utils.c (nquery): Call va_end before return;
5042 * proc-service.c (ps_plog): Call va_end before return.
5044 2011-02-28 Tom Tromey <tromey@redhat.com>
5046 * python/python.c (gdbpy_value_cst): New global.
5047 (_initialize_python): Initialize it.
5048 * python/python-internal.h (gdbpy_value_cst): Declare.
5049 * python/py-value.c (convert_value_from_python): Use
5052 2011-02-28 Michael Snyder <msnyder@vmware.com>
5054 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5056 * breakpoint.c (catch_syscall_completer): Free malloced list.
5058 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5060 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5061 (lval_func_check_synthetic_pointer): Ditto.
5062 (lval_func_free_closure): Fix use-after-free.
5064 2011-02-28 Tom Tromey <tromey@redhat.com>
5066 * psymtab.c (expand_partial_symbol_tables): Use
5067 ALL_OBJFILE_PSYMTABS.
5069 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5071 * objc-lang.c (selectors_info): Error on too long REGEXP.
5073 2011-02-28 Michael Snyder <msnyder@vmware.com>
5075 * python/py-param.c (set_parameter_value): Add missing
5078 * linux-record.c (record_linux_system_call): Add missing
5081 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5083 * breakpoint.c (print_one_breakpoint_location): Remove unused
5084 argument PRINT_ADDRESS_BITS. Update callers.
5085 (print_one_breakpoint): Likewise.
5087 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5089 * breakpoint.c (wrap_indent_at_field): New function.
5090 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5091 Allocate ui_stream locally instead of using STB argument.
5092 (print_one_breakpoint_location): Update call.
5093 * ui-out.c (ui_out_query_field): New function.
5094 * ui-out.h (ui_out_query_field): Add prototype.
5096 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5098 From Michael Snyder <msnyder@vmware.com>
5099 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5101 2011-02-27 Michael Snyder <msnyder@vmware.com>
5103 * objc-lang.c (selectors_info): Prevent string overrun.
5105 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5108 * symtab.c (rbreak_command): Move variable 'file_name' to
5111 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5112 param with a local variable of the same name.
5114 2011-02-27 Michael Snyder <msnyder@vmware.com>
5116 * value.c (value_from_history_ref): New function.
5117 * value.h (value_from_history_ref): Export.
5118 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5119 to parse value history references.
5120 * cli/cli-utils.h (get_number_trailer): Update comment.
5122 2011-02-27 Michael Snyder <msnyder@vmware.com>
5124 * inferior.c (detach_inferior_command): Use get_number_or_range.
5125 (kill_inferior_command): Ditto.
5126 (remove_inferior_command): Ditto.
5127 (initialize_inferiors): Make command names plural.
5128 Update help strings.
5130 2011-02-27 Michael Snyder <msnyder@vmware.com>
5132 * darwin-nat-info.c: Fix comment typo.
5133 * dwarf2expr.h: Ditto.
5134 * fbsd-nat.c: Ditto.
5135 * fbsd-nat.h: Ditto.
5136 * frame-unwind.h: Ditto.
5138 * hppa-hpux-tdep.c: Ditto.
5139 * i386-linux-nat.c: Ditto.
5140 * linux-nat.c: Ditto.
5141 * nbsd-nat.c: Ditto.
5142 * nbsd-nat.h: Ditto.
5143 * ppc-linux-tdep.c: Ditto.
5146 * tui/tui-winsource.c: Ditto.
5148 2011-02-26 Michael Snyder <msnyder@vmware.com>
5150 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5152 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5154 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5155 with a local variable of the same name.
5157 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5158 param with a local variable of the same name.
5159 (i387_supply_xsave): Ditto.
5161 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5162 that it does not shadow a function parameter.
5164 * i386-nat.c (i386_length_and_rw_bits): Document that case
5165 statement is meant to fall through.
5167 * expprint.c (dump_subexp_body_standard): Document that case
5168 statement is meant to fall through.
5170 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5171 dead if statement. Condition can't be false.
5173 2011-02-25 Michael Snyder <msnyder@vmware.com>
5175 * arm-tdep.c: Fix typos in comments.
5176 * bsd-uthread.c: Ditto.
5177 * completer.c: Ditto.
5179 * cp-namespace.c: Ditto.
5180 * cp-support.c: Ditto.
5181 * cris-tdep.c: Ditto.
5183 * dwarf2read.c: Ditto.
5185 * gdbtypes.h: Ditto.
5186 * inferior.h: Ditto.
5187 * mdebugread.c: Ditto.
5188 * mips-tdep.c: Ditto.
5189 * ppc-linux-nat.c: Ditto.
5190 * ppc-linux-tdep.c: Ditto.
5191 * printcmd.c: Ditto.
5192 * sol-thread.c: Ditto.
5193 * solib-frv.c: Ditto.
5195 * sparc64-tdep.c: Ditto.
5196 * spu-tdep.c: Ditto.
5197 * stabsread.c: Ditto.
5202 * python/py-block.c: Ditto.
5203 * python/py-symbol.c: Ditto.
5204 * python/py-symtab.c: Ditto.
5205 * python/py-value.c: Ditto.
5206 * tui/tui-win.c: Ditto.
5208 2011-02-25 Michael Snyder <msnyder@vmware.com>
5210 * inferior.c (print_inferior): Accept a string instead of an int
5211 for requested_inferiors, and use get_number_or_range to parse it.
5212 (info_inferiors_command): Pass args string to print_inferior.
5213 (initialize_inferiors): Change help string for info inferiors.
5214 * inferior.h (print_inferior): Export prototype change.
5216 2011-02-25 Tom Tromey <tromey@redhat.com>
5218 * common/ax.def (invalid2): Set to 0x31.
5220 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5222 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5224 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5226 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5228 2011-02-24 Michael Snyder <msnyder@vmware.com>
5230 * Makefile.in (clean): Make clean should remove generated files
5231 observer.h and observer.inc.
5233 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5235 Revert the following patch (not approved yet):
5236 2011-02-21 Hui Zhu <teawater@gmail.com>
5237 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5238 * ax-gdb.c (gen_printf_expr_callback): New function.
5239 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5240 * ax-general.c (ax_memcpy): New function.
5241 (ax_print): Handle "printf".
5243 * ax.h (ax_memcpy): Forward declare.
5244 * common/ax.def (invalid2): Removed.
5245 (printf): New entry.
5246 * printcmd.c (printcmd.h): New include.
5247 (string_printf): New function.
5248 (ui_printf): Removed.
5249 (printf_command): Remove static. Call string_printf.
5250 (eval_command): Call string_printf.
5251 * printcmd.h: New file.
5252 * tracepoint.c (validate_actionline,
5253 encode_actions_1): handle printf_command.
5255 2011-02-23 Tom Tromey <tromey@redhat.com>
5257 * ax-general.c (ax_pick): Add missing newline.
5259 2011-02-23 Michael Snyder <msnyder@vmware.com>
5261 * breakpoint.c (breakpoint_1): Change first argument from an int
5262 to a char pointer, so that the function now accepts a list of
5263 breakpoints rather than just one. Use new function
5264 'number_is_in_list' to implement.
5265 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5266 (watchpoints_info): Ditto.
5267 (tracepoints_info): Ditto.
5268 (maintenance_info_breakpoints): Ditto.
5269 (_initialize_breakpoint): Update help strings to reflect the fact
5270 that these functions can now take more than one argument.
5271 * cli/cli-utils.c (number_is_in_list): New function.
5272 * cli/cli-utils.h (number_is_in_list): Export.
5274 2011-02-23 Michael Snyder <msnyder@vmware.com>
5276 * memattr.c (mem_enable_command): Use get_number_or_range.
5277 (mem_disable_command): Ditto.
5278 (mem_delete_command): Ditto.
5279 (_initialize_mem): Tweak usage message to reflect multiple
5282 2011-02-22 Doug Evans <dje@google.com>
5284 Add gdb.lookup_global_symbol python function.
5286 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5287 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5288 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5290 2011-02-22 Tom Tromey <tromey@redhat.com>
5292 * language.c (language_class_name_from_physname): Rename
5293 'curr_language' argument to 'lang'; use in body.
5295 2011-02-22 Michael Snyder <msnyder@vmware.com>
5297 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5299 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5301 * frame-unwind.h: Fix comment to mention the this frame, not the
5304 2011-02-22 Tom Tromey <tromey@redhat.com>
5306 * symfile.c (auto_solib_limit): Remove.
5307 * symfile.h (auto_solib_limit): Remove.
5309 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5311 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5313 2011-02-21 Michael Snyder <msnyder@vmware.com>
5315 * gdbthread.h (print_thread_info): Change prototype.
5316 * thread.c (print_thread_info): Accept char* instead of int for
5317 requested_threads argument. Use new function number_is_in_list
5318 to determine which threads to list.
5319 (info_threads_command): Pass char* to print_thread_info.
5320 * cli/cli-utils.c (number_is_in_list): New function.
5321 * cli/cli-utils.h (number_is_in_list): Export.
5322 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5324 (print_one_inferior): Ditto.
5325 (mi_cmd_list_thread_groups): Ditto.
5327 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5329 * common/Makefile.in (CFLAGS): New.
5330 (COMPILE): Add $(CFLAGS).
5332 2011-02-21 Tom Tromey <tromey@redhat.com>
5334 * breakpoint.c (catch_syscall_command_1): Fix typo.
5336 2011-02-21 Tom Tromey <tromey@redhat.com>
5338 * reverse.c: Include cli-utils.h.
5339 * printcmd.c: Include cli-utils.h.
5340 (string_printf): Use skip_spaces.
5341 * cli/cli-utils.h: New file.
5342 * cli/cli-utils.c: New file.
5343 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5344 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5345 * breakpoint.h (get_number, get_number_or_range): Move to
5347 * breakpoint.c: Include cli-utils.h.
5348 (get_number_trailer, get_number, get_number_or_range)
5349 (ep_skip_leading_whitespace): Move to cli-utils.c.
5350 (create_breakpoint_sal, find_condition_and_thread)
5351 (decode_static_tracepoint_spec, watch_command_1)
5352 (watch_maybe_just_location, ep_parse_optional_if_clause)
5353 (catch_fork_command_1, catch_exec_command_1)
5354 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5355 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5356 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5357 (HFILES_NO_SRCDIR): Add cli-utils.h.
5358 (cli-utils.o): New target.
5360 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5362 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5363 before calling discard_all_inferiors.
5365 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5367 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5368 (struct builtin_opencl_type): Remove.
5369 (builtin_opencl_type): Change return type to "struct type **".
5370 (lookup_opencl_vector_type): Update caller.
5371 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5372 (build_opencl_types): Install plain array of "struct type *"
5373 instead of "struct builtin_opencl_type".
5375 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5376 Ulrich Weigand <uweigand@de.ibm.com>
5378 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5379 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5380 (struct arm_linux_hwbp_cap): New type.
5381 (arm_linux_get_hwbp_cap): New function.
5382 (arm_linux_get_hw_breakpoint_count): Likewise.
5383 (arm_linux_get_hw_watchpoint_count): Likewise.
5384 (arm_linux_can_use_hw_breakpoint): Likewise.
5385 (arm_hwbp_type): New type.
5386 (arm_hwbp_control_t): Likewise.
5387 (struct arm_linux_hw_breakpoint): Likewise.
5388 (struct arm_linux_thread_points): Likewise.
5389 (arm_threads): New global variable.
5390 (arm_linux_find_breakpoints_by_tid): New function.
5391 (arm_hwbp_control_initialize): Likewise.
5392 (arm_hwbp_control_is_enabled): Likewise.
5393 (arm_hwbp_control_disable): Likewise.
5394 (arm_linux_hw_breakpoint_initialize): Likewise.
5395 (arm_linux_get_hwbp_type): Likewise.
5396 (arm_linux_hw_watchpoint_initialize): Likewise.
5397 (arm_linux_hw_breakpoint_equal): Likewise.
5398 (arm_linux_insert_hw_breakpoint1): Likewise.
5399 (arm_linux_remove_hw_breakpoint1): Likewise.
5400 (arm_linux_insert_hw_breakpoint): Likewise.
5401 (arm_linux_remove_hw_breakpoint): Likewise.
5402 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5403 (arm_linux_insert_watchpoint): Likewise.
5404 (arm_linux_remove_watchpoint): Likewise.
5405 (arm_linux_stopped_data_address): Likewise.
5406 (arm_linux_stopped_by_watchpoint): Likewise.
5407 (arm_linux_watchpoint_addr_within_range): Likewise.
5408 (arm_linux_new_thread): Likewise.
5409 (arm_linux_thread_exit): Likewise.
5410 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5411 related target callbacks. Register arm_linux_new_thread and
5412 arm_linux_thread_exit.
5413 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5414 * arm-tdep.c (arm_pc_is_thumb): Make global.
5415 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5417 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5419 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5420 per-frame locations while within a function epilogue.
5422 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5424 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5425 to GNU coding standards.
5427 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5429 Allow use of mingw native on Windows 95 OS.
5430 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5431 (ser_windows_close): Only call CancelIo if function exists.
5432 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5433 to check for existence of CancelIo function in kernel32 DLL.
5435 2011-02-21 Hui Zhu <teawater@gmail.com>
5437 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5438 * ax-gdb.c (gen_printf_expr_callback): New function.
5439 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5440 * ax-general.c (ax_memcpy): New function.
5441 (ax_print): Handle "printf".
5443 * ax.h (ax_memcpy): Forward declare.
5444 * common/ax.def (invalid2): Removed.
5445 (printf): New entry.
5446 * printcmd.c (printcmd.h): New include.
5447 (string_printf): New function.
5448 (ui_printf): Removed.
5449 (printf_command): Remove static. Call string_printf.
5450 (eval_command): Call string_printf.
5451 * printcmd.h: New file.
5452 * tracepoint.c (validate_actionline,
5453 encode_actions_1): handle printf_command.
5455 2011-02-19 Michael Snyder <msnyder@vmware.com>
5457 * reverse.c (delete_one_bookmark): Argument is now bookmark
5458 id rather than pointer to bookmark struct.
5459 (delete_bookmark_command): Use get_number_or_range.
5460 (goto_bookmark_command): Parse with get_number instead of strtoul.
5461 (bookmark_1): New function. Print info for one bookmark.
5462 (bookmarks_info): Use get_number_or_range and bookmark_1.
5464 2011-02-18 Michael Snyder <msnyder@vmware.com>
5466 * thread.c (info_threads_command): Re-implement using
5467 get_number_or_range.
5468 (thread_apply_command): Ditto.
5470 2011-02-18 Tom Tromey <tromey@redhat.com>
5472 * common/ax.def: New file.
5473 * ax.h (enum agent_op): Use ax.def.
5474 * ax-general.c (aop_map): Use ax.def.
5476 2011-02-18 Tom Tromey <tromey@redhat.com>
5478 * ax-general.c (aop_map): Add pick and rot.
5479 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5480 <DW_OP_rot>: Implement.
5481 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5483 * ax-general.c (ax_pick): New function.
5485 2011-02-18 Tom Tromey <tromey@redhat.com>
5487 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5489 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 Tom Tromey <tromey@redhat.com>
5492 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5493 make_symbol_overload_list_block with NULL BLOCK.
5494 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5496 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5498 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5499 * breakpoint.h (get_number_or_range): Declare.
5500 * printcmd.c (ALL_DISPLAYS): Declare.
5501 (delete_display): Reimplement taking a display pointer.
5502 (undisplay_command): Accept a range of displays to delete, using
5503 get_number_or_range.
5505 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5507 * c-valprint.c (c_val_print): Add embedded_offset to address
5508 for arrays of unspecified length.
5509 * p-valprint.c (pascal_val_print): Likewise.
5511 2011-02-18 Yao Qi <yao@codesourcery.com>
5513 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5514 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5515 (thumb_process_displaced_insn): New.
5516 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5517 call to arm_process_displaced_insn.
5518 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5520 2011-02-17 Tom Tromey <tromey@redhat.com>
5522 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5523 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5524 compile_dwarf_to_ax. No longer static. Call
5525 dwarf2_compile_cfa_to_ax.
5526 (locexpr_tracepoint_var_ref): Update.
5527 (loclist_tracepoint_var_ref): Update.
5528 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5529 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5530 argument; add 'gdbarch' and 'pc'.
5531 (dwarf2_compile_cfa_to_ax): New function.
5532 (dwarf2_frame_cache): Update.
5534 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5536 * ada-lang.c (ada_type_of_array): Fix the size of the array
5537 in the case of an unconstrained packed array.
5539 2011-02-17 Yao Qi <yao@codesourcery.com>
5541 * common/Makefile.in: Add more targets for make.
5543 2011-02-16 Tom Tromey <tromey@redhat.com>
5545 * dwarf2loc.c (unimplemented): Fix typo.
5547 2011-02-16 Tom Tromey <tromey@redhat.com>
5549 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5550 (compile_dwarf_to_ax) <default>: Use unimplemented.
5551 <DW_OP_deref>: Update.
5552 (disassemble_dwarf_expression): Update.
5553 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5554 (decode_locdesc): Update.
5555 * dwarf2expr.h (dwarf_stack_op_name): Update.
5557 2011-02-16 Tom Tromey <tromey@redhat.com>
5559 * ax.h (struct aop_map) <name>: Now const.
5561 2011-02-16 Tom Tromey <tromey@redhat.com>
5563 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5566 2011-02-16 Yao Qi <yao@codesourcery.com>
5568 * infrun.c (get_displaced_step_closure_by_addr): New.
5569 * inferior.h: Declare it.
5570 * arm-tdep.c: (arm_pc_is_thumb): Call
5571 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5574 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5575 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5580 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5581 Jan Kratochvil <jan.kratochvil@redhat.com>
5583 * value.c (value_contents_copy_raw): Extend describing comment.
5584 Assert that the destination contents we're overwriting are wholly
5586 (value_contents_copy): Extend describing comment.
5588 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5589 Jan Kratochvil <jan.kratochvil@redhat.com>
5591 * value.c (value_available_contents_eq): Remove redundant local
5592 variables. Fix available contents comparision.
5593 * value.h (value_available_contents_eq): Extend describing
5596 2011-02-16 Yao Qi <yao@codesourcery.com>
5598 * thread.c (info_threads_command): Add missing i18n markup and remove
5601 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5603 * breakpoint.c (longjmp_names): New variable.
5604 (struct breakpoint_objfile_data): New type.
5605 (breakpoint_objfile_key): New variable.
5606 (msym_not_found): New variable.
5607 (msym_not_found_p): New predicate.
5608 (get_breakpoint_objfile_data): New function.
5609 (create_overlay_event_breakpoint): Check per-objfile cache for
5611 (create_longjmp_master_breakpoint): Likewise.
5612 (create_std_terminate_master_breakpoint): Likewise.
5613 (create_exception_master_breakpoint): Likewise.
5614 (_initialize_breakpoint): Register per-objfile data key.
5616 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5618 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5620 (create_longjmp_master_breakpoint): Loop over longjmp names.
5621 (create_std_terminate_master_breakpoint): Const-propagate parameter
5623 (update_breakpoints_after_exec): Adjust.
5624 (breakpoint_re_set): Adjust.
5626 2011-02-15 Michael Snyder <msnyder@vmware.com>
5628 * thread.c (info_threads_command): Process arg as thread id,
5629 or list of thread ids.
5630 (thread_find_command): New command.
5631 (_initialize_thread): Document argument for info threads.
5632 Document 'thread find' command.
5633 * NEWS: Document new command "thread find".
5635 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5637 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5638 * aclocal.m4: Regenerated with aclocal-1.11.1.
5639 * common/configure: Regenerate with autoconf-2.64.
5641 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5643 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5644 bool data type to a size of one byte.
5646 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5647 Jan Kratochvil <jan.kratochvil@redhat.com>
5649 * target.c (memory_xfer_live_readonly_partial): Document where to
5650 look for interface description.
5652 2011-02-15 Yao Qi <yao@codesourcery.com>
5655 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5656 order to store PC value on stack instead of text section.
5658 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5660 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5661 the EFP register set size.
5662 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5663 data from the VMX register.
5664 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5665 and write data from/to the VMX register.
5667 2011-02-14 Michael Snyder <msnyder@vmware.com>
5669 * command.h (enum command_class): New class 'no_set_class', for
5670 "show" commands without a corresponding "set" command.
5671 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5672 * copying.c (_initialize_copying): Ditto for "show copying" and
5674 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5676 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5677 which there is no corresponding "set" command (eg. "show copying").
5679 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5680 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 * exec.c (section_table_available_memory): Change `len' parameter
5684 * exec.h (section_table_available_memory): Ditto.
5685 * value.h (read_value_memory): Rename the `offset' parameter to
5688 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5689 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 * memrange.c (compare_mem_ranges): Mention sort order in
5693 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5694 * tracepoint.c (traceframe_available_memory): Extend comment to
5695 mention what happens to RESULT when the target does not support
5698 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5699 Jan Kratochvil <jan.kratochvil@redhat.com>
5701 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5704 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5706 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5707 No longer handle NULL values.
5709 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5711 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5712 * value.c: Include "exceptions.h".
5713 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5715 * cp-abi.c: Include gdb_assert.h.
5716 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5717 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5719 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5720 parameters. No longer returns -1 on error.
5721 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5723 * cp-valprint.c: Include exceptions.h.
5724 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5725 the baseclass_offset. Handle unavailable base classes. Use
5726 val_print_invalid_address.
5727 * p-valprint.c: Include exceptions.h.
5728 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5729 when fetching the baseclass_offset. No longer expect
5730 baseclass_offset returning -1. Handle unavailable base classes.
5731 Use val_print_invalid_address.
5732 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5733 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5734 `embedded_offset' and `val' parameters. Adjust.
5735 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5736 parameter, and change its type to gdb_byte pointer. Add
5737 `embedded_offset' and `val' parameters. Adjust. No longer expect
5738 baseclass_offset returning -1.
5739 (value_dynamic_cast): Use value_contents_for_printing rather than
5740 value_contents. Adjust.
5741 (search_struct_field): No longer expect baseclass_offset returning
5743 (search_struct_method): If reading memory from the target is
5744 necessary, wrap it in a new value to pass to baseclass_offset. No
5745 longer expect baseclass_offset returning -1.
5746 (find_method_list): No longer expect baseclass_offset returning
5747 -1. Use value_contents_for_printing rather than value_contents.
5748 * valprint.c (val_print_invalid_address): New function.
5749 * valprint.h (val_print_invalid_address): Declare.
5750 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5751 and `val' parameters. No longer expect baseclass_offset returning
5753 * gnu-v2-abi.c: Include "exceptions.h".
5754 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5755 parameters. Handle unavailable memory. Recurse through
5756 gnuv2_baseclass_offset directly, rather than through
5757 baseclass_offset. No longer returns -1 on not found, instead
5759 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5760 `val' parameters. Adjust.
5762 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5764 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5765 almost but not quite adjacent.
5767 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5769 * value.h (value_entirely_available): Declare.
5770 * value.c (value_entirely_available): New function.
5771 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5772 real type if the pointer is unavailable.
5774 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5776 * valops.c (value_repeat): Use read_value_memory instead of
5779 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5781 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5782 * value.c (value_contents_copy_raw, value_contents_copy): New
5784 (value_primitive_field): Use value_contents_copy_raw instead of
5786 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5788 (value_array, value_slice): Ditto.
5789 * valarith.c (value_subscripted_rvalue): Use
5790 value_contents_copy_raw instead of memcpy.
5792 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5794 <unavailable> references.
5796 * valops.c (get_value_at): Use value_from_contents_and_address,
5797 avoiding read_memory.
5799 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5801 * c-valprint.c (c_val_print): Print a string with unavailable
5802 contents as an array.
5804 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5806 * value.h (unpack_bits_as_long): Delete declaration.
5807 (unpack_value_bits_as_long): Declare.
5808 (unpack_value_field_as_long): Declare.
5809 (value_field_bitfield): Declare.
5810 * value.c (unpack_bits_as_long): Rename to...
5811 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5812 value parameters. Return the extracted result in a new output
5813 parameter. If the value contents are unavailable, return false,
5814 otherwise return true.
5815 (unpack_value_bits_as_long): New.
5816 (unpack_field_as_long): Rename to...
5817 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5818 Add embedded_offset and value parameters. Return the extracted
5819 result in a new output parameter. If the value contents are
5820 unavailable, return false, otherwise return true.
5821 (unpack_value_field_as_long): New.
5822 (unpack_field_as_long_1): New.
5823 (unpack_field_as_long): Reimplement as wrapper around
5824 unpack_value_field_as_long_1.
5825 (value_field_bitfield): New function.
5826 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5827 unpack_value_bits_as_long. Mark the value as unavailable, if it
5829 * jv-valprint.c (java_print_value_fields): Use
5830 value_field_bitfield.
5831 * p-valprint.c (pascal_object_print_value_fields): Use
5832 value_field_bitfield.
5833 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5835 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5837 * value.c (get_internalvar_integer): Also return the int value of
5838 TYPE_CODE_INT INTERNALVAR_VALUE values.
5839 (set_internalvar): Don't special case TYPE_CODE_INT.
5841 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5843 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5844 INTERNALVAR_POINTER.
5846 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5847 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5848 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5850 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5852 * value.h (value_available_contents_eq): Declare.
5853 * value.c (find_first_range_overlap): New function.
5854 (value_available_contents_eq): New function.
5855 * valprint.c (val_print_array_elements): Use
5856 value_available_contents_eq.
5857 * ada-valprint.c (val_print_packed_array_elements): Use
5858 value_available_contents_eq.
5859 * jv-valprint.c (java_value_print): Use
5860 value_available_contents_eq.
5862 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5864 * target.c (target_read_live_memory): New function.
5865 (memory_xfer_live_readonly_partial): New.
5866 (memory_xfer_partial): If reading from a traceframe, fallback to
5867 reading unavailable read-only memory from read-only regions of
5869 * tracepoint.c (disconnect_tracing): Adjust.
5870 (set_current_traceframe): New, factored out from
5871 set_traceframe_number.
5872 (set_traceframe_number): Reimplement to only change the traceframe
5873 number on the GDB side.
5874 (do_restore_current_traceframe_cleanup): Adjust.
5875 (make_cleanup_restore_traceframe_number): New.
5876 (cur_traceframe_number): New global.
5877 (tfile_open): Set cur_traceframe_number to no traceframe.
5878 (set_tfile_traceframe): New function.
5879 (tfile_trace_find): If looking up a traceframe using any method
5880 other than by number, make sure the current tfile traceframe
5881 matches gdb's current traceframe. Update the current tfile
5882 traceframe if the lookup succeeded.
5883 (tfile_fetch_registers, tfile_xfer_partial)
5884 (tfile_get_trace_state_variable_value): Make sure the remote
5885 traceframe matches gdb's current traceframe.
5886 * remote.c (remote_traceframe_number): New global.
5887 (remote_open_1): Set it to -1.
5888 (set_remote_traceframe): New function.
5889 (remote_fetch_registers, remote_store_registers)
5890 (remote_xfer_memory, remote_xfer_partial)
5891 (remote_get_trace_state_variable_value): Make sure the remote
5892 traceframe matches gdb's current traceframe.
5893 (remote_trace_find): If looking up a traceframe using any method
5894 other than by number, make sure the current remote traceframe
5895 matches gdb's current traceframe. Update the current remote
5896 traceframe if the lookup succeeded.
5897 * infrun.c (fetch_inferior_event): Adjust.
5898 * tracepoint.h (set_current_traceframe): Declare.
5899 (get_traceframe_number, set_traceframe_number): Add describing
5902 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5904 Mark pieces of values as unavailable if the corresponding memory
5907 * valops.c: Include tracepoint.h.
5908 (value_fetch_lazy): Use read_value_memory.
5909 (read_value_memory): New.
5910 * value.h (read_value_memory): Declare.
5911 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5912 * exec.c (section_table_available_memory): New function.
5913 * exec.h (section_table_available_memory): Declare.
5915 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5917 * Makefile.in (SFILES): Add memrange.c.
5918 (HFILES_NO_SRCDIR): Add memrange.h.
5919 (COMMON_OBS): Add memrange.o.
5920 * memrange.c: New file.
5921 * memrange.h: New file.
5922 * tracepoint.c: Include memrange.h.
5923 (struct mem_range): Delete.
5924 (mem_range_s): Delete.
5925 (traceframe_available_memory): New function.
5926 * tracepoint.h (traceframe_available_memory): Declare.
5928 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5930 * target.h (struct traceframe_info): Forward declare.
5931 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5932 (struct target_ops) <to_traceframe_info>: New field.
5933 (target_traceframe_info): New.
5934 * target.c (update_current_target): Inherit and default
5936 * remote.c (PACKET_qXfer_traceframe_info): New.
5937 (remote_protocol_features): Register qXfer:traceframe-info:read.
5938 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5939 (remote_traceframe_info): New.
5940 (init_remote_ops): Install it.
5941 (_initialize_remote): Install "set/show remote traceframe-info"
5943 * tracepoint.h (parse_traceframe_info): Declare.
5944 * tracepoint.c (struct mem_range): New.
5945 (mem_range_s): New typedef.
5946 (struct traceframe_info): New.
5947 (traceframe_info): New global.
5948 (free_traceframe_info): New function.
5949 (clear_traceframe_info): New function.
5950 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5952 (build_traceframe_info): New function.
5953 (tfile_traceframe_info): New function.
5954 (init_tfile_ops): Install tfile_traceframe_info.
5955 (traceframe_info_start_memory, free_result): New functions.
5956 (memory_attributes, traceframe_info_elements): New globals.
5957 (parse_traceframe_info, get_traceframe_info): New functions.
5958 * features/traceframe-info.dtd: New file.
5959 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5961 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5963 Base support for <unavailable> value contents.
5965 * value.h (value_bytes_available): Declare.
5966 (mark_value_bytes_unavailable): Declare.
5967 * value.c (struct range): New struct.
5968 (range_s): New typedef.
5969 (ranges_overlap): New function.
5970 (range_lessthan): New function.
5971 (ranges_contain_p): New function.
5972 (struct value) <unavailable>: New field.
5973 (value_bytes_available): New function.
5974 (mark_value_bytes_unavailable): New function.
5975 (require_not_optimized_out): Constify parameter.
5976 (require_available): New function.
5977 (value_contents_all, value_contents): Require all bytes be
5979 (value_free): Free `unavailable'.
5980 (value_copy): Copy `unavailable'.
5981 * valprint.h (val_print_unavailable): Declare.
5982 * valprint.c (valprint_check_validity): Rename `offset' parameter
5983 to `embedded_offset'. If printing a scalar, check whether the
5984 value chunk is available.
5985 (val_print_unavailable): New.
5986 (val_print_scalar_formatted): Check whether the value is
5988 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5989 pretty-printing unavailable values.
5991 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5993 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5994 * c-typeprint.c (c_type_print_args): Update the function comment. New
5995 variable param_type, initialize it. Remove const/volatile qualifiers
5996 for language_cplus and !show_artificial. Use param_type.
5998 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6000 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6001 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6002 * symtab.h (struct symtab) <next>: Comment extension.
6004 2011-02-12 Yao Qi <yao@codesourcery.com>
6006 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6008 2011-02-11 Yao Qi <yao@codesourcery.com>
6010 * common/Makefile.in: Add copyright header.
6012 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6014 * infrun.c (proceed): Move switching out and in of tfind mode from
6016 (fetch_inferior_event): ... to here.
6018 2011-02-11 Yao Qi <yao@codesourcery.com>
6020 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6022 * configure.ac: Add common to sub dir.
6023 * configure: Regenerate.
6025 2011-02-11 Yao Qi <yao@codesourcery.com>
6029 * common/Makefile.in: New.
6030 * common/configure.ac: New.
6031 * common/aclocal.m4: New.
6032 * common/configure: Generate.
6034 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6036 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6037 side of the parenthesis.
6040 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6041 * vec.h (VEC_block_remove): Fix comment.
6043 2011-02-08 Michael Snyder <msnyder@vmware.com>
6045 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6047 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6049 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6050 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6053 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6056 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6058 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6059 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6061 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6063 * dwarf2read.c (read_subroutine_type): Set special calling
6064 convention flag for functions compiled by IBM XL C for OpenCL.
6065 * ppc-sysv-tdep.c: Include "dwarf2.h"
6066 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6068 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6069 IBM OpenCL vector types calling convention.
6070 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6071 (ppc_sysv_abi_broken_return_value): Likewise.
6072 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6073 types calling convention.
6074 (ppc64_sysv_abi_return_value): Likewise.
6075 * spu-tdep.c: Include "dwarf2.h"
6076 (spu_return_value): Implement IBM OpenCL vector types calling
6079 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6081 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6082 correct ABI for AltiVec vector arguments.
6084 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6086 * valprint.c (val_print): Extend comment.
6087 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6088 interface explanation to val_print.
6089 (ada_val_print_array): Adjust comment to current interface.
6090 (print_field_values): Adjust comment to current interface.
6091 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6092 explanation to val_print.
6093 * f-valprint.c (f_val_print): Ditto.
6094 * jv-valprint.c (java_val_print): Ditto.
6095 * m2-valprint.c (m2_val_print): Ditto.
6096 * p-valprint.c (pascal_val_print): Ditto.
6098 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6100 * breakpoint.c (parse_breakpoint_sals): Fix description.
6102 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6103 Oguz Kayral <oguzkayral@gmail.com>
6105 * python/py-inferior.c (python_on_normal_stop): New function.
6106 (python_on_resume): New function.
6107 (python_inferior_exit): New function.
6108 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6109 inferior_exit observers.
6110 * python/py-evtregistry.c: New file.
6111 * python/py-threadevent.c : New file.
6112 * python/py-event.c: New file.
6113 * python/py-evts.c: New file.
6114 * python/py-continueevent.c: New file.
6115 * python/py-bpevent.c: New file.
6116 * python/py-signalevent.c: New file.
6117 * python/py-exetiedevent.c: New file.
6118 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6119 Move struct breakpoint_object from here...
6120 * python/python-internal.h: ... to here.
6121 * python/py-event.h: New file.
6122 * python/py-events.h: New file.
6123 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6124 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6125 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6126 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6127 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6128 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6129 Add build rules for all the above.
6131 2011-02-04 Tom Tromey <tromey@redhat.com>
6133 * dwarf2read.c (dwarf2_section_empty_p): New function.
6134 (dwarf2_read_section): Use dwarf2_section_empty_p.
6135 (dwarf2_section_size): New function.
6136 (dwarf2_get_section_info): Unconditionally read section.
6137 (dwarf2_read_index): Use dwarf2_section_empty_p.
6138 (partial_read_comp_unit_head): Use dwarf2_section_size.
6139 (dwarf2_symbol_mark_computed): Likewise.
6141 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6143 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6145 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6147 * mips-linux-tdep.c: Include xml-syscall.h.
6148 (mips_linux_get_syscall_number): New function.
6149 (mips_linux_init_abi): Add calls to
6150 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6151 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6152 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6153 * syscalls/mips-n32-linux.xml: New file.
6154 * syscalls/mips-n64-linux.xml: New file.
6155 * syscalls/mips-o32-linux.xml: New file.
6157 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6159 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6160 Complain about inverted range entries.
6161 (dwarf2_record_block_ranges): Likewise.
6163 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6166 * breakpoint.c (update_watchpoint): Fix name of the
6167 update_global_location_list function.
6168 (print_one_breakpoint): Fix typo.
6169 (_initialize_breakpoint): Remove extra space in hbreak help
6171 * breakpoint.h (struct bp_location) <length>: Fix field
6174 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6176 * regcache.c (registers_changed_ptid): Don't explictly always
6177 clear `current_regcache'. Only clear current_thread_ptid and
6178 current_thread_arch when PTID matches. Only reinit the frame
6179 cache if PTID matches the current inferior_ptid. Move alloca(0)
6181 (registers_changed): ... here.
6183 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6185 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6186 starts with __stack_chk_guard as stack guard symbol.
6188 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6190 * disasm.c (compare_lines): Handle the end of sequence markers
6191 within the line table to better support disassembling over
6192 compilation unit boundaries.
6194 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6196 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6197 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6198 implementation even if no symbols are available.
6199 (thumb_analyze_prologue): Update call to skip_prologue_function.
6200 (arm_analyze_prologue): Likewise.
6202 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6204 * arm-tdep.c: Include "observer.h".
6205 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6206 (arm_exidx_data_key): New static variable.
6207 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6208 (struct arm_exidx_data): Likewise.
6209 (arm_exidx_data_free): New function.
6210 (arm_compare_exidx_entries): Likewise.
6211 (arm_obj_section_from_vma): Likewise.
6212 (arm_exidx_new_objfile): Likewise.
6213 (arm_find_exidx_entry): Likewise.
6214 (arm_exidx_fill_cache): Likewise.
6215 (arm_exidx_unwind_sniffer): Likewise.
6216 (arm_exidx_unwind): New global variable.
6217 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6218 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6219 observer. Register arm_exidx_data_key as objfile data.
6221 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6223 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6224 due to accessing uninitialized variable. Fix indentation.
6226 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6228 * c-valprint.c (c_value_print): When doing virtual base pointer
6229 adjustment, create a new value with adjusted contents rather than
6230 changing the contents of the value being printed (and getting it
6233 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6235 * xml-support.c (xml_find_attribute): New.
6236 (xinclude_start_include): Use it.
6237 * xml-support.h (xml_find_attribute): Declare.
6238 * memory-map.c (memory_map_start_memory)
6239 (memory_map_start_property): Use xml_find_attribute.
6240 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6242 * remote.c (start_thread): Use xml_find_attribute.
6243 * solib-target.c (library_list_start_segment)
6244 (library_list_start_section, library_list_start_library)
6245 (library_list_start_list): Use xml_find_attribute.
6246 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6247 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6248 (tdesc_start_field): Use xml_find_attribute.
6250 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6252 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6253 (BUILD_OCL_VTYPES): Update.
6255 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6257 * configure.ac: Work around non-GNU sed limitation when computing
6258 python version number.
6259 * configure: Regenerate.
6261 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6263 Fix debug printing of TYPE_INSTANCE.
6264 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6265 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6267 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6269 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6270 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6271 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6272 * ada-operator.inc: Rename the file to ...
6273 * ada-operator.def: ... here, wrap all the entries by macro OP.
6274 * expprint.c (op_name_standard): Remove all the entries. Include
6275 "std-operator.def" instead.
6276 * expression.h (enum exp_opcode): Include "std-operator.def" and
6277 "ada-operator.def". Move all the entries ...
6278 * std-operator.def: ... here, wrap all the entries by macro OP.
6280 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6282 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6283 * breakpoint.c (remove_jit_event_breakpoints): New function.
6284 * jit.c (jit_descriptor_addr): Delete.
6285 (registering_code): Delete.
6286 (clear_int): Delete.
6287 (jit_inferior_data): New variable.
6288 (struct jit_inferior_data): New type.
6289 (get_jit_inferior_data): New function.
6290 (jit_inferior_data_cleanup): New function.
6291 (jit_read_descriptor): Adjust.
6292 (jit_register_code): Adjust.
6293 (jit_breakpoint_re_set_internal): New function; move code here ...
6294 (jit_inferior_init): ... from here.
6295 (jit_breakpoint_re_set): Adjust.
6296 (jit_reset_inferior_data_and_breakpoints): New function.
6297 (jit_inferior_created_observer): Adjust.
6298 (jit_inferior_exit_hook): Adjust.
6299 (jit_executable_changed_observer): New function.
6300 (jit_event_handler): Adjust.
6301 (_initialize_jit): Adjust.
6303 2011-01-31 Michael Snyder <msnyder@vmware.com>
6305 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6308 2011-01-31 Tom Tromey <tromey@redhat.com>
6311 * python/python.c (execute_gdb_command): Call
6312 prevent_dont_repeat.
6313 * top.c (suppress_dont_repeat): New global.
6314 (dont_repeat): Use it.
6315 (prevent_dont_repeat): New function.
6316 * command.h (prevent_dont_repeat): Declare.
6318 2011-01-31 Tom Tromey <tromey@redhat.com>
6320 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6321 * python/py-breakpoint.c (bppy_set_silent): Use
6322 breakpoint_set_silent.
6323 (bppy_set_thread): Use breakpoint_set_thread.
6324 (bppy_set_task): Use breakpoint_set_task.
6325 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6326 (breakpoint_set_task): Declare.
6327 (make_breakpoint_silent): Remove.
6328 * breakpoint.c (breakpoint_set_silent): New function.
6329 (breakpoint_set_thread): Likewise.
6330 (breakpoint_set_task): Likewise.
6331 (make_breakpoint_silent): Remove.
6333 2011-01-31 Tom Tromey <tromey@redhat.com>
6335 * breakpoint.h (user_breakpoint_p): Declare.
6336 * breakpoint.c (user_breakpoint_p): New function.
6337 (breakpoint_1): Use it.
6338 (save_breakpoints): Likewise.
6340 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6342 * configure.ac: Add handling of Python distribution on Windows.
6343 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6344 sysconfig variables are not defined, then do not use them.
6345 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6346 instead. On Windows, return all paths using forward-slashes
6347 rather than backslashes.
6349 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6351 * configure.ac: Remove fallback behavior for building
6352 against Python. Remove tweaking of Python include path.
6353 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6354 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6355 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6356 Always restore CPPFLAGS and LIBS after linking test.
6357 * configure: Regenerated.
6358 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6359 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6360 * python/python-internal.h: Adjust includes of Python .h files.
6362 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6364 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6367 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6369 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6372 2011-01-31 Yao Qi <yao@codesourcery.com>
6374 * arm-linux-nat.c: Update calls to regcache_register_status
6375 instead of regcache_valid_p.
6376 * aix-thread.c: Likewise.
6377 * i386gnu-nat.c: Likewise.
6379 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6383 touching TYPE_FIELD_ARTIFICIAL.
6385 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6387 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6390 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6392 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6393 selected, don't try iterating over the traceframe's blocks.
6394 (tfile_has_stack): If there's no traceframe selected, then there's
6396 (tfile_has_registers): If there's no traceframe selected, then
6397 there's no registers.
6399 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6401 * target.c (memory_xfer_partial): No need to restore shadows if we
6402 haven't read anything.
6404 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6406 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6407 and val_print_scalar_formatted.
6409 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6411 * tracepoint.c (tfile_read): New.
6412 (tfile_open): Use it.
6413 (tfile_get_traceframe_address): Use it.
6414 (tfile_trace_find): Use it.
6415 (walk_blocks_callback_func): New typedef.
6416 (match_blocktype): New function.
6417 (traceframe_walk_blocks): New function.
6418 (traceframe_find_block_type): New function.
6419 (tfile_fetch_registers, tfile_xfer_partial)
6420 (tfile_get_trace_state_variable_value): Use
6421 traceframe_find_block_type and tfile_read.
6423 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6425 * remote-mips.c: Add internationalization mark ups. Remove
6426 trailing \n from already marked up strings.
6428 2011-01-26 Tom Tromey <tromey@redhat.com>
6430 * python/py-prettyprint.c (print_string_repr): Clear
6431 'addressprint' option when calling val_print_string.
6432 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6433 option when calling val_print_string.
6435 2011-01-26 Tom Tromey <tromey@redhat.com>
6437 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6439 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6441 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6442 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6443 (gdb_py_long_as_ulongest): New defines.
6444 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6445 (gdb_py_int_as_long): Declare.
6446 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6447 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6448 (valpy_long): Add comment.
6449 * python/py-utils.c (get_addr_from_python): Use
6450 gdb_py_long_as_ulongest. Handle overflow properly.
6451 (gdb_py_object_from_longest): New function.
6452 (gdb_py_object_from_ulongest): Likewise.
6453 (gdb_py_int_as_long): Likewise.
6454 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6455 * python/py-symtab.c (salpy_get_pc): Use
6456 gdb_py_long_from_ulongest.
6457 (salpy_get_line): Use PyInt_FromLong.
6458 * python/py-param.c (set_parameter_value): Use
6460 * python/py-lazy-string.c (stpy_get_address): Use
6461 gdb_py_long_from_ulongest.
6462 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6463 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6464 * python/py-breakpoint.c (bppy_set_thread): Use
6466 (bppy_set_task): Likewise.
6467 (bppy_set_ignore_count): Likewise.
6468 (bppy_set_hit_count): Likewise.
6469 * python/py-block.c (blpy_get_start): Use
6470 gdb_py_object_from_ulongest.
6471 (blpy_get_end): Likewise.
6472 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6474 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6477 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6478 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6479 equality test for objfile, initialize addr_low if needed.
6481 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6483 * tui/tui-regs.c (tui_register_format): Remove dead code.
6485 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6487 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6488 instead of print_scalar_formatted.
6489 (print_scalar_formatted): Don't handle 's' format strings here,
6490 and add an assertion that we never see such format here.
6491 * valprint.h (val_print_scalar_formatted): Declare.
6492 * valprint.c (val_print_scalar_formatted): New.
6493 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6494 instead of print_scalar_formatted.
6495 * jv-valprint.c (java_val_print): Ditto.
6496 * p-valprint.c (pascal_val_print): Ditto.
6497 * ada-valprint.c (ada_val_print_1): Ditto.
6498 * f-valprint.c (f_val_print): Ditto.
6499 * infcmd.c (registers_info): Ditto.
6500 * m2-valprint.c (m2_val_print): Ditto.
6502 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6504 * m2-valprint.c (print_unbounded_array): Pass
6505 value_contents_for_printing rather than value_contents, to
6506 m2_print_array_contents. Also pass in the value.
6508 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6510 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6511 (save_gdb_index_command): Switch to .gdb_index version 4.
6513 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6515 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6516 than frame_register, and always pass a valid value to val_print.
6518 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6520 Centralize printing "<optimized out>".
6522 * valprint.h (val_print_optimized_out): Declare.
6523 * cp-valprint.c (cp_print_value_fields): Use
6524 val_print_optimized_out.
6525 * jv-valprint.c (java_print_value_fields): Ditto.
6526 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6527 * printcmd.c (print_formatted): Ditto.
6528 * valprint.c (valprint_check_validity): Ditto.
6529 (value_check_printable): Ditto.
6530 (val_print_optimized_out): New.
6532 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6534 * infcmd.c (default_print_registers_info): Allocate values so to
6535 never pass a NULL value to val_print.
6537 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6539 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6540 boolean. Make sure to always pass a value that matches the
6541 contents buffer to callees. Preserve `address' for following
6543 * value.c (value_contents_for_printing_const): New.
6544 (value_address): Constify value argument.
6545 * value.h (value_contents_for_printing_const): Declare.
6546 (value_address): Constify value argument.
6548 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6550 * regcache.c (struct regcache_descr): Rename
6551 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6552 and sizeof_cooked_register_valid_p to
6553 sizeof_cooked_register_status.
6554 (init_regcache_descr): Adjust.
6555 (struct regcache): Rename register_valid_p field to
6557 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6558 (do_cooked_read): Adjust.
6559 (regcache_valid_p): Rename to ...
6560 (regcache_register_status): ... this. Adjust.
6561 (regcache_invalidate): Adjust.
6562 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6564 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6565 as unavailable, not valid.
6566 (regcache_dump): Adjust.
6567 * regcache.h (enum register_status): New.
6568 (regcache_register_status): Declare.
6569 (regcache_invalidate): Delete declaration.
6570 * corelow.c (get_core_registers): Adjust.
6571 * tracepoint.c (tfile_fetch_registers): Adjust.
6572 * trad-frame.c (REG_VALUE): Rename to ...
6573 (TF_REG_VALUE): ... this.
6574 (REG_UNKNOWN): Rename to ...
6575 (TF_REG_UNKNOWN): ... this.
6576 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6577 * mi/mi-main.c (register_changed_p): Adjust.
6579 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6581 * regcache.c (struct regcache_descr): Remove outdated comment.
6582 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6584 (regcache_xmalloc): Rename to ...
6585 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6586 Allocate the regcache type accordingly.
6587 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6588 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6589 cooked registers, not raw.
6590 (regcache_dup_no_passthrough): Delete.
6591 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6592 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6593 mention obsolete write_register_bytes.
6594 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6596 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6598 Stop remote_read_bytes from handling partial reads itself.
6600 * remote-fileio.c: Include target.h.
6601 (remote_fileio_write_bytes): Delete.
6602 (remote_fileio_func_open, remote_fileio_func_write)
6603 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6605 (remote_fileio_func_stat): Use target_read_memory and
6606 target_write_memory.
6607 (remote_fileio_func_gettimeofday): Use target_write_memory.
6608 (remote_fileio_func_system): Use target_read_memory.
6609 * remote.c (remote_write_bytes): Make it static.
6610 (remote_read_bytes): Don't handle partial reads here.
6611 * remote.h (remote_read_bytes): Delete declaration.
6613 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6615 Simplify XML parsing a bit.
6617 * xml-support.h (gdb_xml_parse_quick): Declare.
6618 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6619 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6621 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6622 gdb_xml_create_parser_and_cleanup_1.
6623 (gdb_xml_parse_quick): New.
6624 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6625 * osdata.c (osdata_parse): Ditto.
6626 * remote.c (remote_threads_info): Ditto.
6627 * solib-target.c (solib_target_parse_libraries): Ditto.
6628 * xml-syscall.c (syscall_parse_xml): Ditto.
6629 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6631 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6633 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6634 with remote-mips.o added to gdb_target_obs.
6635 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6637 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6639 * ada-valprint.c (val_print_packed_array_elements): Pass the
6640 correct struct value to val_print.
6641 (ada_val_print_1): Ditto.
6643 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6645 Don't lose embedded_offset in printing routines throughout.
6647 * valprint.h (val_print_array_elements): Change prototype.
6648 * valprint.c (val_print_array_elements): Add `embedded_offset'
6649 parameter, and adjust to pass it down to val_print, while passing
6650 `valaddr' or `address' unmodified. Take embedded_offset into
6651 account when checking repetitions.
6652 * c-valprint.c (c_val_print): Pass embedded_offset to
6653 val_print_array_elements instead of adjusting `valaddr' and
6655 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6656 embedded_offset to val_print_array_elements instead of adjusting
6658 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6659 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6660 val_print_array_elements and pascal_object_print_value_fields
6661 instead of adjusting `valaddr'.
6662 (pascal_object_print_value_fields): Add `offset' parameter, and
6664 (pascal_object_print_value): Add `offset' parameter, and adjust to
6666 (pascal_object_print_static_field): Use
6667 value_contents_for_printing/value_embedded_offset, rather than
6669 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6670 parameter, and adjust to use it. Use
6671 value_contents_for_printing/value_embedded_offset, rather than
6673 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6674 (ada_val_print_array): Add `offset' parameter, and adjust to use
6676 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6677 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6678 Instead work with offsets. Use
6679 value_contents_for_printing/value_embedded_offset, rather than
6680 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6681 and use value_from_pointer to extract a target pointer, rather
6682 than value_from_longest.
6683 (print_variant_part): Add `offset' parameter. Replace
6684 `outer_valaddr' parameter by a new `outer_offset' parameter.
6685 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6686 (ada_value_print): Use
6687 value_contents_for_printing/value_embedded_offset, rather than
6689 (print_record): Add `offset' parameter, and adjust to pass it
6691 (print_field_values): Add `offset' parameter. Replace
6692 `outer_valaddr' parameter by a new `outer_offset' parameter.
6693 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6694 Use value_contents_for_printing/value_embedded_offset, rather than
6696 * d-valprint.c (dynamic_array_type): Use
6697 value_contents_for_printing/value_embedded_offset, rather than
6699 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6700 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6701 (java_print_value_fields): Take `offset' into account. Don't
6702 re-adjust `valaddr'. Instead pass down adjusted offsets.
6703 (java_val_print): Take `embedded_offset' into account. Pass it to
6704 java_print_value_fields.
6705 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6706 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6707 down adjusted offsets.
6708 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6709 (f_val_print): Take `embedded_offset' into account.
6711 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6713 * inflow.c: Include "gdbcmd.h".
6714 (interactive_mode): New static global, moved here from top.c.
6715 (show_interactive_mode): New function, moved here from top.c.
6716 use gdb_has_a_terminal instead of input_from_terminal_p to
6717 determine the current mode.
6718 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6720 (_initialize_inflow): Add the "set/show interactive-mode"
6721 commands. Moved here from top.c, after having adjusted slightly
6723 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6725 (input_from_terminal_p): Remove handling of "interactive-mode"
6726 setting, moved to infow.c.
6727 (init_main): Remove creation of the "set/show interactive-mode"
6728 commands, moved to inflow.c.
6730 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6732 * NEWS: Add entry for native ia64-hpux support.
6734 2011-01-19 Tom Tromey <tromey@redhat.com>
6737 * thread.c (free_thread): Free 'name'.
6738 (print_thread_info): Emit thread name. Change CLI output.
6739 (thread_name_command): New function.
6740 (do_captured_thread_select): Emit newline.
6741 (_initialize_thread): Register 'thread name' command.
6742 * target.h (struct target_ops) <to_thread_name>: New field.
6743 (target_thread_name): New macro.
6744 * target.c (update_current_target): Handle to_thread_name.
6745 * python/py-infthread.c (thpy_get_name): New function.
6746 (thpy_set_name): Likewise.
6747 (thread_object_getset): Add "name".
6748 * linux-nat.c (linux_nat_thread_name): New function.
6749 (linux_nat_add_target): Set to_thread_name.
6750 * gdbthread.h (struct thread_info) <name>: New field.
6752 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6754 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6755 (ada_val_print_1): Likewise.
6757 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6759 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6760 upper limit address is not greater than the function end address
6761 when the upper limit could not be computed using the debugging
6764 2011-01-17 Tom Tromey <tromey@redhat.com>
6766 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6768 * utils.c: Include gdb_regex.h.
6769 (do_regfree_cleanup): New function.
6770 (make_regfree_cleanup): Likewise.
6771 (get_regcomp_error): Likewise.
6772 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6774 2011-01-17 Tom Tromey <tromey@redhat.com>
6776 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6779 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6781 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6782 for internal variables.
6783 (last_was_structop): New static variable.
6784 (COMPLETE): New token.
6785 (field_exp): New rule to group all '.' suffix handling.
6786 Add mark_struct_expression calls when approriate to be able
6787 to correctly find fields for completion.
6788 (yylex): Adapt to handle field completion and set INTVAR when
6791 2011-01-14 Yao Qi <yao@codesourcery.com>
6793 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6794 save_reggroup, restore_reggroup and all_reggroup.
6796 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6798 * ada-valprint. (ada_printchar): Use the correct type length
6799 in call to ada_emit_char.
6800 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6802 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6804 * solib-som.h (hpux_major_release): Declare variable here.
6805 * solib-som.c: Remove <sys/utsname.h> header.
6806 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6807 (hpux_major_release): Make global, change default value to
6808 DEFAULT_HPUX_MAJOR_RELEASE.
6809 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6810 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6811 Add "solib-som.h" header.
6812 (set_hpux_major_release): New function.
6813 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6815 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6817 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6819 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6821 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6822 new-line at end of warning message.
6823 (ia64_hpux_store_register): Remove trailing new-line at end of
6825 * ia64-hpux-tdep.c: Rephrase comment.
6826 * solib-ia64-hpux.c (struct dld_info): Change type of field
6827 dld_flags from "long long" to ULONGEST.
6829 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6831 * target.h (deprecated_child_ops): Delete declaration.
6832 * target.c (deprecated_child_ops): Delete definition.
6834 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6836 * Makefile.in (hpux-thread.o): Delete rule.
6837 * configure.ac: Don't check for HPUX DCE threads support.
6838 * configure, config.in: Regenerate.
6839 * hppa-hpux-nat.c (child_suppress_run): Delete.
6840 (hppa_hpux_child_can_run): Delete.
6841 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6842 * hpux-thread.c: Delete.
6844 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6846 * hpux-thread.c (hpux_pid_to_str): Delete.
6848 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6850 * ada-valprint.c (ada_emit_char): Remove strange code.
6851 Check that c is <= UCHAR_MAX before passing it to isascii.
6852 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6854 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6856 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6857 to the case where instream is stdin.
6859 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6861 * ia64-tdep.h (struct regcache): Forward declare.
6862 (struct ia64_infcall_ops): New struct type.
6863 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6865 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6866 Renames ia64_find_global_pointer.
6867 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6868 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6869 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6871 (ia64_infcall_ops): New static global constant.
6872 (ia64_gdbarch_init): Set tdep->infcall_ops.
6873 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6874 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6875 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6876 (ia64_hpux_dummy_code): New static global constant.
6877 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6878 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6879 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6881 (ia64_hpux_infcall_ops): New static global constant.
6882 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6883 for inferior function calls to work properly on ia64-hpux.
6885 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6887 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6888 * ia64-tdep.h (struct frame_info): forward declaration.
6889 (struct gdbarch_tdep): Add field size_of_register_frame.
6890 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6891 to determine the size of the register frame.
6892 (ia64_size_of_register_frame): New function.
6893 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6894 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6895 (IA64_HPUX_UREG_REASON): New macro.
6896 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6898 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6899 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6900 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6903 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6905 Add support for ia64-hpux.
6906 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6907 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6909 * configure.host: Add handling for ia64-hpux hosts. Add associated
6911 * configure.tgt: Add handling for ia64-hpux targets.
6912 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6913 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6914 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6916 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6918 [ttrace] Compute thread list immediately after attach.
6919 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6921 (inf_ttrace_attach): Use it.
6923 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6925 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6926 if we could not determine the frame's function address. Instead,
6927 use the frame's PC, and then continue.
6929 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6931 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6932 not already defined.
6934 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6936 * ia64-tdep.c (ia64_struct_type_p): New function.
6937 (ia64_extract_return_value): Handle integral values that are
6938 less than 8 bytes long.
6939 (ia64_push_dummy_call): Likewise.
6941 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6943 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6944 floatformat_ia64_ext.
6945 (floatformat_ia64_ext_big): New static const.
6946 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6948 2011-01-12 Tom Tromey <tromey@redhat.com>
6950 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6952 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6953 (mi_cmd_thread_list_ids): Likewise.
6954 (mi_cmd_data_list_changed_registers): Likewise.
6955 (mi_cmd_data_list_register_values): Likewise.
6956 (mi_cmd_data_write_register_values): Likewise.
6957 (mi_cmd_data_evaluate_expression): Likewise.
6958 (mi_cmd_data_read_memory): Likewise.
6959 (mi_cmd_data_read_memory_bytes): Likewise.
6960 (mi_cmd_data_write_memory): Likewise.
6961 (mi_cmd_enable_timings): Likewise.
6962 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6963 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6964 (mi_cmd_var_delete): Likewise.
6965 (mi_cmd_var_set_format): Likewise.
6966 (mi_cmd_var_show_format): Likewise.
6967 (mi_cmd_var_info_num_children): Likewise.
6968 (mi_cmd_var_list_children): Likewise.
6969 (mi_cmd_var_info_type): Likewise.
6970 (mi_cmd_var_info_expression): Likewise.
6971 (mi_cmd_var_show_attributes): Likewise.
6972 (mi_cmd_var_assign): Likewise.
6973 (mi_cmd_var_update): Likewise.
6974 (mi_cmd_enable_pretty_printing): Likewise.
6975 (mi_cmd_var_set_update_range): Likewise.
6976 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6978 (mi_cmd_target_file_put): Likewise.
6979 (mi_cmd_target_file_delete): Likewise.
6980 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6982 (mi_cmd_stack_info_depth): Likewise.
6983 (mi_cmd_stack_list_locals): Likewise.
6984 (mi_cmd_stack_list_args): Likewise.
6985 (mi_cmd_stack_select_frame): Likewise.
6986 (mi_cmd_stack_select_frame): Likewise.
6987 (mi_cmd_stack_info_frame): Likewise.
6988 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6990 (mi_cmd_file_list_exec_source_files): Likewise.
6991 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6992 (mi_cmd_env_cd): Likewise.
6993 (mi_cmd_env_path): Likewise.
6994 (mi_cmd_env_dir): Likewise.
6995 (mi_cmd_inferior_tty_show): Likewise.
6996 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6997 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6998 (mi_cmd_break_watch): Likewise.
7000 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7002 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7003 (ppc_linux_insert_hw_breakpoint): Likewise.
7004 (ppc_linux_remove_hw_breakpoint): Likewise.
7005 (ppc_linux_insert_watchpoint): Likewise.
7007 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7008 Jan Kratochvil <jan.kratochvil@redhat.com>
7010 PR fortran/11104 and DWARF unbound arrays detection.
7011 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7012 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7013 unspecified upper bound.
7014 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7015 variables array_size_array, tmp_type and offset_item. New variable
7016 array. Remove call to f77_get_upperbound. New variables array_type
7017 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7018 the final call to deprecated_set_value_type.
7020 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7022 Make value allocations more lazy.
7023 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7024 instead of allocate_value and set_value_lazy when possible.
7025 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7026 instead of allocate_value and set_value_lazy.
7027 * findvar.c (value_of_register_lazy): Likewise.
7028 (read_var_value): Remove V preallocation, call just check_typedef in
7029 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7030 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7031 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7032 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7033 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7034 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7035 the end, remove set_value_lazy there.
7036 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7037 instead of allocate_value and set_value_lazy when possible.
7038 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7039 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7040 of allocate_value and set_value_lazy.
7041 (value_from_contents_and_address): Use allocate_value_lazy instead of
7042 allocate_value and set_value_lazy when possible.
7044 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7046 * disasm.c (dump_insns): Support dumping opcodes for MI.
7047 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7048 dumping of instruction opcodes.
7050 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7052 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7055 2011-01-11 Tom Tromey <tromey@redhat.com>
7057 * thread.c (do_captured_thread_select): Emit newline before
7060 2011-01-11 Michael Snyder <msnyder@vmware.com>
7062 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7063 * score-tdep.c: Ditto.
7064 * score-tdep.h: Ditto.
7065 * ser-base.c: Ditto.
7066 * ser-go32.c: Ditto.
7069 * ser-mingw.c: Ditto.
7070 * ser-pipe.c: Ditto.
7072 * ser-unix.c: Ditto.
7073 * sh64-tdep.c: Ditto.
7074 * shnbsd-nat.c: Ditto.
7078 * solib-darwin.c: Ditto.
7079 * solib-frv.c: Ditto.
7081 * solib-irix.c: Ditto.
7082 * solib-osf.c: Ditto.
7083 * solib-pa64.c: Ditto.
7084 * solib-som.c: Ditto.
7085 * solib-spu.c: Ditto.
7086 * solib-sunos.c: Ditto.
7087 * solib-svr4.c: Ditto.
7089 * sol-thread.c: Ditto.
7093 * sparc64-linux-tdep.c: Ditto.
7094 * sparc64-tdep.c: Ditto.
7095 * sparc-linux-nat.c: Ditto.
7096 * sparc-linux-tdep.c: Ditto.
7097 * sparc-sol2-nat.c: Ditto.
7098 * sparc-sol2-tdep.c: Ditto.
7099 * sparc-tdep.c: Ditto.
7100 * sparc-tdep.h: Ditto.
7101 * spu-tdep.c: Ditto.
7102 * stabsread.c: Ditto.
7103 * stabsread.h: Ditto.
7111 * target-descriptions.c: Ditto.
7112 * target-descriptions.h: Ditto.
7114 * target-memory.c: Ditto.
7115 * terminal.h: Ditto.
7118 * tracepoint.c: Ditto.
7119 * tracepoint.h: Ditto.
7120 * trad-frame.h: Ditto.
7121 * typeprint.c: Ditto.
7123 2011-01-11 Michael Snyder <msnyder@vmware.com>
7125 * ui-file.c: Comment cleanup, mostly periods and spaces.
7130 * v850-tdep.c: Ditto.
7131 * valarith.c: Ditto.
7133 * valprint.c: Ditto.
7134 * valprint.h: Ditto.
7139 * vax-tdep.c: Ditto.
7143 * windows-nat.c: Ditto.
7144 * windows-tdep.c: Ditto.
7145 * xcoffread.c: Ditto.
7146 * xcoffsolib.c: Ditto.
7147 * xml-support.c: Ditto.
7148 * xstormy16-tdep.c: Ditto.
7149 * xtensa-tdep.c: Ditto.
7150 * xtensa-tdep.h: Ditto.
7152 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7154 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7155 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7157 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7158 Thiago Jung Bauermann <bauerman@br.ibm.com>
7160 Implement support for PowerPC BookE ranged watchpoints.
7162 (struct breakpoint_ops) <resources_needed>: New method.
7163 Initialize to NULL in all existing breakpoint_ops instances.
7164 (struct breakpoint) <exact>: New field.
7165 (target_exact_watchpoints): Declare external global.
7166 * breakpoint.c (target_exact_watchpoints): New global flag.
7167 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7168 b->enable_state to bp_enabled before calling
7169 hw_watchpoint_used_count.
7170 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7171 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7173 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7174 if the watchpoint is exact.
7175 (resources_needed_watchpoint): New function.
7176 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7177 (watch_command_1): Set b->exact if the user asked for an exact
7178 watchpoint and one can be set.
7179 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7180 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7181 the user asks for an exact watchpoint and one can be set. Return
7182 number of needed debug registers to watch the expression.
7183 * gdbtypes.c (is_scalar_type): New function, based on
7184 valprint.c:scalar_type_p.
7185 (is_scalar_type_recursive): New function.
7186 * gdbtypes.h (is_scalar_type_recursive): Declare.
7187 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7188 handle regions when ranged watchpoints are available.
7189 (create_watchpoint_request): New function.
7190 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7191 create_watchpoint_request.
7192 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7193 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7194 `set powerpc' and `show powerpc' commands.
7195 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7196 Mention documentation comment in the target macro.
7197 (target_region_ok_for_hw_watchpoint): Document return value.
7199 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7201 * breakpoint.c (update_watchpoint): Decide on using a software or
7202 hardware watchpoint after the bp_locations are created.
7204 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7206 Convert hardware watchpoints to use breakpoint_ops.
7207 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7208 <insert_location>: ... this. Return int instead of void.
7209 Accept pointer to struct bp_location instead of pointer to
7210 struct breakpoint. Adapt all implementations.
7211 (breakpoint_ops) <remove>: Rename to...
7212 <remove_location>: ... this. Accept pointer to struct bp_location
7213 instead of pointer to struct breakpoint. Adapt all implementations.
7214 * breakpoint.c (insert_catchpoint): Delete function.
7215 (insert_bp_location): Call the watchpoint or catchpoint's
7216 breakpoint_ops.insert method.
7217 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7218 breakpoint_ops.remove method.
7219 (insert_watchpoint, remove_watchpoint): New functions.
7220 (watchpoint_breakpoint_ops): New structure.
7221 (watch_command_1): Initialize the OPS field.
7222 * inf-child.c (inf_child_insert_fork_catchpoint)
7223 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7224 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7225 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7227 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7228 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7229 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7230 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7231 * target.c (update_current_target): Change default implementation of
7232 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7233 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7234 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7235 to_set_syscall_catchpoint to return_one.
7236 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7237 (debug_to_insert_exec_catchpoint): Report return value.
7238 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7239 (to_insert_exec_catchpoint): Change declaration to return int instead
7242 2011-01-11 Michael Snyder <msnyder@vmware.com>
7244 * arm-tdep.c: Internationalization.
7247 * fork-child.c: Ditto.
7248 * nto-procfs.c: Ditto.
7249 * ppc-sysv-tdep.c: Ditto.
7251 * remote-mips.c: Ditto.
7253 * rs6000-nat.c: Ditto.
7254 * rs6000-tdep.c: Ditto.
7258 * xml-support.c: Ditto.
7259 * mi/mi-cmd-break.c: Ditto.
7260 * mi/mi-cmd-var.c: Ditto.
7261 * mi/mi-interp.c: Ditto.
7262 * mi/mi-main.c: Ditto.
7264 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7266 * remote-sim.c (gdbsim_store_register): Update API to
7267 sim_store_register to check more error conditions.
7269 2011-01-10 Michael Snyder <msnyder@vmware.com>
7271 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7272 * nto-tdep.c: Ditto.
7273 * nto-tdep.h: Ditto.
7274 * objc-exp.y: Ditto.
7275 * objc-lang.c: Ditto.
7276 * objfiles.c: Ditto.
7277 * objfiles.h: Ditto.
7278 * observer.c: Ditto.
7279 * opencl-lang.c: Ditto.
7282 * parser-defs.h: Ditto.
7285 * posix-hdep.c: Ditto.
7286 * ppcbug-rom.c: Ditto.
7287 * ppc-linux-nat.c: Ditto.
7288 * ppc-linux-tdep.c: Ditto.
7289 * ppc-linux-tdep.h: Ditto.
7290 * ppcnbsd-tdep.c: Ditto.
7291 * ppcobsd-tdep.c: Ditto.
7292 * ppcobsd-tdep.h: Ditto.
7293 * ppc-sysv-tdep.c: Ditto.
7294 * ppc-tdep.h: Ditto.
7295 * printcmd.c: Ditto.
7296 * proc-abi.c: Ditto.
7297 * proc-flags.c: Ditto.
7299 * proc-utils.h: Ditto.
7300 * progspace.h: Ditto.
7301 * prologue-value.c: Ditto.
7302 * prologue-value.h: Ditto.
7303 * psympriv.h: Ditto.
7305 * p-typeprint.c: Ditto.
7306 * p-valprint.c: Ditto.
7307 * ravenscar-sparc-thread.c: Ditto.
7308 * ravenscar-thread.c: Ditto.
7309 * ravenscar-thread.h: Ditto.
7311 * regcache.c: Ditto.
7312 * regcache.h: Ditto.
7314 * remote-fileio.c: Ditto.
7315 * remote-fileio.h: Ditto.
7317 * remote-m32r-sdi.c: Ditto.
7318 * remote-mips.c: Ditto.
7319 * remote-sim.c: Ditto.
7320 * rs6000-aix-tdep.c: Ditto.
7321 * rs6000-nat.c: Ditto.
7322 * rs6000-tdep.c: Ditto.
7324 2011-01-10 Michael Snyder <msnyder@vmware.com>
7326 * charset.c (validate): Internationalization.
7327 * coffread.c (read_one_sym): Ditto.
7328 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7329 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7330 * inflow.c (new_tty): Ditto.
7331 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7332 * m32c-tdep.c (m32c_return_value): Ditto.
7333 * mep-tdep.c (mep_store_return_value): Ditto.
7334 * score-tdep.c (score7_fetch_insn): Ditto.
7335 * ser-mingw.c (pipe_windows_open): Ditto.
7336 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7337 * spu-tdep.c (spu_register_type): Ditto.
7338 * tracepoint.c (trace_find_command): Ditto.
7339 * valarith.c (value_pos): Ditto.
7341 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7343 * ada-valprint.c (printstr): Minor comment reformatting.
7345 2011-01-08 Michael Snyder <msnyder@vmware.com>
7347 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7350 2011-01-08 Michael Snyder <msnyder@vmware.com>
7352 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7353 * hppa-hpux-tdep.c: Ditto.
7354 * hppa-linux-nat.c: Ditto.
7355 * hppa-linux-tdep.c: Ditto.
7356 * hppanbsd-tdep.c: Ditto.
7357 * hppa-tdep.c: Ditto.
7358 * hppa-tdep.h: Ditto.
7359 * hpux-thread.c: Ditto.
7360 * i386-cygwin-tdep.c: Ditto.
7361 * i386-darwin-nat.c: Ditto.
7362 * i386gnu-nat.c: Ditto.
7363 * i386-linux-nat.c: Ditto.
7364 * i386-linux-tdep.c: Ditto.
7365 * i386-nat.c: Ditto.
7366 * i386-nat.h: Ditto.
7367 * i386nbsd-tdep.c: Ditto.
7368 * i386-sol2-nat.c: Ditto.
7369 * i386-stub.c: Ditto.
7370 * i386-tdep.c: Ditto.
7371 * i386-tdep.h: Ditto.
7372 * i387-tdep.c: Ditto.
7373 * ia64-linux-nat.c: Ditto.
7374 * ia64-linux-tdep.c: Ditto.
7375 * ia64-tdep.c: Ditto.
7379 * inferior.c: Ditto.
7380 * inferior.h: Ditto.
7386 * iq2000-tdep.c: Ditto.
7387 * irix5-nat.c: Ditto.
7393 * jv-typeprint.c: Ditto.
7394 * jv-valprint.c: Ditto.
7395 * language.c: Ditto.
7396 * language.h: Ditto.
7397 * linespec.c: Ditto.
7398 * linux-fork.c: Ditto.
7399 * linux-nat.c: Ditto.
7400 * linux-thread-db.c: Ditto.
7401 * lm32-tdep.c: Ditto.
7403 2011-01-08 Michael Snyder <msnyder@vmware.com>
7405 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7407 * m2-typeprint.c: Ditto.
7408 * m2-valprint.c: Ditto.
7409 * m32c-tdep.c: Ditto.
7410 * m32r-linux-nat.c: Ditto.
7411 * m32r-rom.c: Ditto.
7412 * m32r-tdep.c: Ditto.
7413 * m32r-tdep.h: Ditto.
7414 * m68hc11-tdep.c: Ditto.
7415 * m58klinux-nat.c: Ditto.
7416 * m68k-tdep.c: Ditto.
7417 * m88k-tdep.c: Ditto.
7418 * m88k-tdep.h: Ditto.
7419 * machoread.c: Ditto.
7420 * macrocmd.c: Ditto.
7421 * macroexp.c: Ditto.
7422 * macrotab.c: Ditto.
7425 * mdebugread.c: Ditto.
7426 * mdebugread.h: Ditto.
7429 * memory-map.h: Ditto.
7430 * mep-tdep.c: Ditto.
7431 * microblaze-rom.c: Ditto.
7432 * microblaze-tdep.c: Ditto.
7434 * mips-irix-tdep.c: Ditto.
7435 * mips-linux-nat.c: Ditto.
7436 * mips-linux-tdep.c: Ditto.
7437 * mips-linux-tdep.h: Ditto.
7438 * mipsnbsd-nat.c: Ditto.
7439 * mipsnbsd-tdep.c: Ditto.
7440 * mipsread.c: Ditto.
7441 * mips-tdep.c: Ditto.
7442 * mips-tdep.h: Ditto.
7443 * mn10300-linux-tdep.c: Ditto.
7444 * mn10300-tdep.c: Ditto.
7445 * mn10300-tdep.h: Ditto.
7448 * moxie-tdep.c: Ditto.
7449 * moxie-tdep.h: Ditto.
7452 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7454 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7456 2011-01-08 Robert Millan <rmh@gnu.org>
7458 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7460 2011-01-07 Michael Snyder <msnyder@vmware.com>
7462 * charset.c (_initialize_charset): Fix typo in string.
7464 2011-01-07 Michael Snyder <msnyder@vmware.com>
7466 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7468 * tui/tui-layout.c (tui_set_layout_for_display_command):
7469 Split line so that operator goes to beginning of line.
7470 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7471 assignment out of if statement.
7473 2011-01-07 Michael Snyder <msnyder@vmware.com>
7475 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7476 * ada-lang.h: Ditto.
7477 * ada-tasks.c: Ditto.
7478 * ada-valprint.c: Ditto.
7479 * aix-threads.c: Ditto.
7480 * alpha-linux-nat.c: Ditto.
7481 * alpha-linux-tdep.c: Ditto.
7482 * alpha-mdebug-tdep.c: Ditto.
7483 * alpha-nat.c: Ditto.
7484 * alpha-osf1-tdep.c: Ditto.
7485 * alpha-tdep.c: Ditto.
7486 * alphabsd-nat.c: Ditto.
7487 * alphabsd-tdep.c: Ditto.
7488 * amd64-darwin-tdep.c: Ditto.
7489 * amd64-linux-nat.c: Ditto.
7490 * amd64-linux-tdep.c: Ditto.
7491 * amd64-sol2-tdep.c: Ditto.
7492 * amd64-tdep.c: Ditto.
7493 * amd64-fbsd-tdep.c: Ditto.
7494 * amd64-nbsd-tdep.c: Ditto.
7495 * amd64-obsd-tdep.c: Ditto.
7496 * amd64-linux-nat.c: Ditto.
7497 * amd64-linux-tdep.c: Ditto.
7498 * arm-tdep.c: Ditto.
7499 * arm-tdep.h: Ditto.
7500 * armnbsd-nat.c: Ditto.
7501 * avr-tdep.c: Ditto.
7502 * bfin-tdep.c: Ditto.
7504 * c-typeprintc: Ditto.
7505 * c-valprint.c: Ditto.
7506 * coff-pe-read.h: Ditto.
7507 * coffreead.c: Ditto.
7508 * cris-tdep.c: Ditto.
7510 * darwin-nat-info.c: Ditto.
7511 * darwin-nat.c: Ditto.
7512 * dbug-rom.c: Ditto.
7516 * dec-thread.c: Ditto.
7518 * demangle.c: Ditto.
7519 * dicos-tdep.c: Ditto.
7520 * dictionary.c: Ditto.
7521 * dictionary.h: Ditto.
7522 * dink32-rom.c: Ditto.
7524 * doublest.c: Ditto.
7526 * dummy-frame.c: Ditto.
7527 * dwarf2-frame.c: Ditto.
7528 * dwarf2expr.c: Ditto.
7529 * dwarf2loc.c: Ditto.
7530 * dwarf2read.c: Ditto.
7534 * event-top.h: Ditto.
7535 * exceptions.c: Ditto.
7536 * exceptions.h: Ditto.
7538 * expprint.c: Ditto.
7539 * expression.h: Ditto.
7543 * f-typeprint.c: Ditto.
7544 * f-valprint.c: Ditto.
7545 * fbsd-nat.c: Ditto.
7547 * fork-child.c: Ditto.
7550 * frv-linux-tdep.c: Ditto.
7551 * frv-tdep.c: Ditto.
7553 * gdb-stabs.h: Ditto.
7554 * gdb_assert.h: Ditto.
7555 * gdb_string.h: Ditto.
7556 * gdb_thread_db.h: Ditto.
7557 * gdb_wait.h: Ditto.
7558 * gdbarch.sh: Ditto.
7560 * gdbthread.h: Ditto.
7561 * gdbtypes.c: Ditto.
7562 * gdbtypes.h: Ditto.
7565 * gnu-v2-abi.c: Ditto.
7566 * gnu-v3-abi.c: Ditto.
7567 * go32-nat.c: Ditto.
7568 * gdbarch.c: Regenerate.
7569 * gdbarch.h: Regenerate.
7571 2011-01-07 Michael Snyder <msnyder@vmware.com>
7573 * ax-gdb.c: Adjust some long output strings.
7574 * breakpoint.c: Ditto.
7579 * linux-nat.c: Ditto.
7580 * solib-pa64.c: Ditto.
7581 * solib-som.c: Ditto.
7583 2011-01-06 Tom Tromey <tromey@redhat.com>
7587 * python/python.c (GdbMethods): Add "newest_frame" method.
7588 * python/python-internal.h (gdbpy_newest_frame): Declare.
7589 * python/py-frame.c (gdbpy_newest_frame): New function.
7591 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7593 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7594 * jit.c (jit_debug): New variable.
7595 (show_jit_debug): New function.
7596 (struct target_buffer): Use ULONGEST.
7597 (bfd_open_from_target_memory): Likewise.
7598 (jit_register_code, jit_inferior_init): Add debug output.
7599 (_initialize_jit): Register "debug jit" command.
7601 2011-01-06 Tom Tromey <tromey@redhat.com>
7603 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7604 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7607 2011-01-06 Tom Tromey <tromey@redhat.com>
7609 * python/py-frame.c (frapy_block): Use get_frame_block.
7611 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7613 Do not stop on SIGPRIO signals by default
7614 * infrun.c (_initialize_infrun): Unset signal_stop and
7615 signal_print for TARGET_SIGNAL_PRIO.
7617 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7619 * ada-tasks.c: Fix style violation in comment.
7621 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7623 * linespec.c (decode_compound, find_method): Remove trailing \n
7624 at end of error string.
7625 * solib-irix.c (irix_current_sos): Likewise.
7626 * varobj.c (uninstall_variable): Likewise.
7628 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7630 * copyright.py: New script.
7631 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7632 Launch emacs without exec'ing. Call copyright.py afterwards.
7634 2011-01-05 Michael Snyder <msnyder@vmware.com>
7636 * addrmap.c: Shorten lines of >= 80 columns.
7637 * arch-utils.c: Ditto.
7638 * arch-utils.h: Ditto.
7640 * ax-general.c: Ditto.
7642 * blockframe.c: Ditto.
7643 * breakpoint.c: Ditto.
7644 * buildsym.c: Ditto.
7646 * c-typeprint.c: Ditto.
7648 * coffread.c: Ditto.
7652 * cp-namespace.c: Ditto.
7653 * cp-support.c: Ditto.
7654 * dbug-rom.c: Ditto.
7659 * dictionary.c: Ditto.
7661 * doublest.c: Ditto.
7662 * dwarf2-frame.c: Ditto.
7663 * dwarf2expr.c: Ditto.
7664 * dwarf2loc.c: Ditto.
7665 * dwarf2read.c: Ditto.
7668 * event-loop.c: Ditto.
7669 * event-loop.h: Ditto.
7670 * exceptions.h: Ditto.
7672 * expprint.c: Ditto.
7673 * expression.h: Ditto.
7675 * f-valprint.c: Ditto.
7677 * frame-base.c: Ditto.
7678 * frame-unwind.c: Ditto.
7679 * frame-unwind.h: Ditto.
7683 * gdb-stabs.h: Ditto.
7684 * gdb_assert.h: Ditto.
7685 * gdb_dirent.h: Ditto.
7686 * gdb_obstack.h: Ditto.
7688 * gdbtypes.c: Ditto.
7689 * gdbtypes.h: Ditto.
7690 * inf-ttrace.c: Ditto.
7695 * inline-frame.h: Ditto.
7696 * language.c: Ditto.
7697 * language.h: Ditto.
7698 * libunwind-frame.c: Ditto.
7699 * libunwind-frame.h: Ditto.
7700 * linespec.c: Ditto.
7701 * linux-nat.c: Ditto.
7702 * linux-nat.h: Ditto.
7703 * linux-thread-db.c: Ditto.
7704 * machoread.c: Ditto.
7705 * macroexp.c: Ditto.
7706 * macrotab.c: Ditto.
7709 * mdebugread.c: Ditto.
7714 * objfiles.c: Ditto.
7715 * objfiles.h: Ditto.
7717 * p-typeprint.c: Ditto.
7718 * p-valprint.c: Ditto.
7720 * printcmd.c: Ditto.
7721 * proc-events.c: Ditto.
7723 * progspace.c: Ditto.
7724 * progspace.h: Ditto.
7725 * psympriv.h: Ditto.
7728 * regcache.c: Ditto.
7729 * regcache.h: Ditto.
7730 * remote-fileio.c: Ditto.
7732 * ser-mingw.c: Ditto.
7734 * ser-unix.c: Ditto.
7737 * solib-frv.c: Ditto.
7738 * solib-irix.c: Ditto.
7739 * solib-osf.c: Ditto.
7740 * solib-pa64.c: Ditto.
7741 * solib-som.c: Ditto.
7742 * solib-sunos.c: Ditto.
7743 * solib-svr4.c: Ditto.
7744 * solib-target.c: Ditto.
7748 * stabsread.c: Ditto.
7749 * stabsread.c: Ditto.
7752 * symfile-mem.c: Ditto.
7758 * target-descriptions.c: Ditto.
7759 * target-memory.c: Ditto.
7762 * terminal.h: Ditto.
7765 * tracepoint.c: Ditto.
7766 * tracepoint.h: Ditto.
7770 * user-regs.c: Ditto.
7771 * user-regs.h: Ditto.
7773 * valarith.c: Ditto.
7775 * valprint.c: Ditto.
7776 * valprint.h: Ditto.
7781 * xcoffread.c: Ditto.
7782 * xcoffsolib.c: Ditto.
7783 * xcoffsolib.h: Ditto.
7784 * xml-syscall.c: Ditto.
7785 * xml-tdesc.c: Ditto.
7787 2011-01-05 Michael Snyder <msnyder@vmware.com>
7789 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7790 * cli/cli-decode.c: Ditto.
7791 * cli/cli-dump.c: Ditto.
7792 * cli/cli-logging.c: Ditto.
7793 * cli/cli-script.c: Ditto.
7794 * cli/cli-setshow.c: Ditto.
7795 * common/signals.c: Ditto.
7796 * mi/mi-cmd-break.c: Ditto.
7797 * mi/mi-cmd-disas.c: Ditto.
7798 * mi/mi-cmd-stack.c: Ditto.
7799 * mi/mi-cmd-var.c: Ditto.
7800 * mi/mi-cmds.c: Ditto.
7801 * mi/mi-common.h: Ditto.
7802 * mi/mi-console.c: Ditto.
7803 * mi/mi-interp.c: Ditto.
7804 * mi/mi-main.c: Ditto.
7805 * osf-share/cma_attr.c: Ditto.
7806 * osf-share/cma_deb_core.h: Ditto.
7807 * osf-share/cma_debug_client.h: Ditto.
7808 * osf-share/cma_handle.h: Ditto.
7809 * osf-share/cma_mutex.h: Ditto.
7810 * osf-share/cma_stack_int.h: Ditto.
7811 * osf-share/cma_tcb_defs.h: Ditto.
7812 * python/py-auto-load.c: Ditto.
7813 * python/py-breakpoint.c: Ditto.
7814 * python/py-cmd.c: Ditto.
7815 * python/py-frame.c: Ditto.
7816 * python/py-objfile.c: Ditto.
7817 * python/py-param.c: Ditto.
7818 * python/py-progspace.c: Ditto.
7819 * python/py-symbol.c: Ditto.
7820 * python/py-value.c: Ditto.
7821 * python/python-internal.h: Ditto.
7822 * python/python.c: Ditto.
7823 * tui/tui-data.c: Ditto.
7824 * tui/tui-disasm.c: Ditto.
7825 * tui/tui-hooks.c: Ditto.
7826 * tui/tui-io.c: Ditto.
7827 * tui/tui-layout.c: Ditto.
7828 * tui/tui-regs.c: Ditto.
7829 * tui/tui-source.c: Ditto.
7830 * tui/tui-stack.c: Ditto.
7831 * tui/tui-win.c: Ditto.
7832 * tui/tui-windata.c: Ditto.
7833 * tui/tui-winsource.c: Ditto.
7835 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7837 * configure.ac, gdb.1: Copyright year update.
7839 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7841 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7842 this_pc_in_block, morestack_msym and morestack_name. Check for
7843 "__morestack" minimal symbol there.
7845 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7847 * symfile.c (find_sym_fns): Add call to dont_repeat.
7849 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7851 Copyright year update in most files (performed by copyright.sh).
7853 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7855 * top.c (print_gdb_version): Update copyright year in version output.
7857 For older changes see ChangeLog-2010.
7863 version-control: never