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