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