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