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