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