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