2011-07-26 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
efa80663
PA
12011-07-26 Pedro Alves <pedro@codesourcery.com>
2
3 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4 true for software watchpoints.
5
dbdaa232 62011-07-26 Joel Brobecker <brobecker@adacore.com>
7
8 GDB 7.3 released.
9
cf2c3c16
TT
102011-07-26 Tom Tromey <tromey@redhat.com>
11
12 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
13 * dwarf2read.c (read_indirect_string_at_offset): New function.
14 (read_indirect_string): Use it.
15 (dwarf_decode_macro_bytes): New function, taken from
16 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
17 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
18 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
19 New functions.
20 (struct dwarf2_per_objfile) <macro>: New field.
21 (dwarf2_elf_names): Add .debug_macro.
22 (dwarf2_macros_too_long_complaint): Add 'section' argument.
23 (dwarf2_locate_sections): Handle new section.
24 (read_file_scope): Handle DW_AT_GNU_macros.
25 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
26
1a532630
PP
272011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
28
29 * NEWS: Mention dcache configuration.
30 * dcache.c (dcache_set_list, dcache_show_list): New variables.
31 (dcache_size, dcache_line_size): New variables.
32 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
33 (struct dcache_block): Make it expandable.
34 (struct dcache_struct): New field.
35 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
36 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
37 (dcache_poke_byte, dcache_print_line): Adjust.
38 (set_dcache_size, set_dcache_line_size): New functions.
39 (set_dcache_command, show_dcache_command): New functions.
40 (_initialize_dcache): Add new commands.
41
2eff07b3
PP
422011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
43
44 * progspace.h (struct program_space): Add solib_add_generation.
45 * infcmd.c (post_create_inferior): Only call solib_add if not
46 already done.
47 * solib.c (solib_add): Increment solib_add_generation.
48
543305c9
JK
492011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
50
51 Fix implicit pointer offsets.
52 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
53 ptr.OFFSET.
54
c0a91b2b
TT
552011-07-25 Tom Tromey <tromey@redhat.com>
56
57 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
58 const.
59 (ada_exception_sal): Make 'ops' const.
60 (ada_decode_exception_location): Likewise.
61 (ada_decode_assert_location): Likewise.
62 (catch_assert_command): Update.
63 (catch_ada_exception_command): Update.
64 (create_ada_exception_catchpoint): Make 'ops' const.
65 * breakpoint.c (set_raw_breakpoint_without_location)
66 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
67 const.
68 (create_internal_breakpoint): Update.
69 (init_raw_breakpoint_without_location): Make 'ops' const.
70 (init_raw_breakpoint, init_catchpoint)
71 (create_fork_vfork_event_catchpoint)
72 (create_syscall_event_catchpoint, init_breakpoint_sal)
73 (create_breakpoint_sal, create_breakpoints_sal)
74 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
75 * breakpoint.h (struct breakpoint) <ops>: Now const.
76 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
77 const.
78
6cb9b55b
PP
792011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
80
81 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
82
d9b3f62e
PA
832011-07-25 Pedro Alves <pedro@codesourcery.com>
84
85 * breakpoint.h (print_recreate_thread): Declare.
86 (struct breakpoint): Move step_count, pass_count,
87 number_on_target, static_trace_marker_id,
88 static_trace_marker_id_idx ...
89 (struct tracepoint): ... to this new struct.
90 (get_tracepoint, get_tracepoint_by_number_on_target)
91 (get_tracepoint_by_number): Change return type to struct
92 tracepoint pointer.
93 * breakpoint.c (is_tracepoint_type): New, factored out from
94 is_tracepoint.
95 (is_tracepoint): Adjust.
96 (print_one_breakpoint_location): Cast to struct tracepoint as
97 necessary, and adjust.
98 (print_recreate_catch_fork, print_recreate_catch_vfork)
99 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
100 print_recreate_thread.
101 (init_breakpoint_sal): New, factored out from
102 create_breakpoint_sal.
103 (create_breakpoint_sal): Reimplement.
104 (create_breakpoint): Allocate a struct tracecepoint if the caller
105 wanted a tracepoint. Use init_breakpoint_sal and
106 install_breakpoint.
107 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
108 (print_recreate_masked_watchpoint)
109 (print_recreate_exception_catchpoint): Call print_recreate_thread.
110 (tracepoint_print_one_detail): Adjust.
111 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
112 Dump the pass count here.
113 (update_static_tracepoint): Adjust.
114 (addr_string_to_sals): Adjust.
115 (create_tracepoint_from_upload): Adjust. Change return type to
116 struct tracepoint pointer.
117 (trace_pass_set_count): Change parameter type to struct tracepoint
118 pointer, and adjust.
119 (trace_pass_command): Adjust.
120 (get_tracepoint, get_tracepoint_by_number_on_target)
121 (get_tracepoint_by_number): Change return type to struct
122 tracepoint pointer, and adjust.
123 (print_recreate_thread): New, factored out from save_breakpoints.
124 (save_breakpoints): Don't print thread and task and passcount
125 recreation here.
126 * remote.c (remote_download_tracepoint): Adjust.
127 * tracepoint.c (trace_actions_command, validate_actionline)
128 (start_tracing, tfind_1, trace_find_tracepoint_command)
129 (trace_dump_command): Adjust.
130 (find_matching_tracepoint): Change return type to struct
131 tracepoint pointer, and adjust.
132 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
133 (tfile_trace_find, tfile_fetch_registers): Adjust.
134 * tracepoint.h (create_tracepoint_from_upload): Change return type
135 to struct tracepoint pointer.
136 * ada-lang.c (print_recreate_exception): Call
137 print_recreate_thread.
138 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
139
3a5c3e22
PA
1402011-07-25 Pedro Alves <pedro@codesourcery.com>
141
142 * breakpoint.h (struct breakpoint): Move ops as first field. Move
143 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
144 cond_exp_valid_block, val, val_valid, watchpoint_frame,
145 watchpoint_thread, watchpoint_triggered ...
146 (struct watchpoint): ... to this new struct.
147 (is_watchpoint): Declare.
148 (install_breakpoint): Add new `internal' parameter.
149 * breakpoint.c (is_watchpoint): Delete declaration.
150 (set_breakpoint_condition): Handle watchpoints.
151 (is_watchpoint): Make public.
152 (watchpoint_in_thread_scope): Change parameter type to struct
153 watchpoint.
154 (watchpoint_del_at_next_stop): Change parameter type to struct
155 watchpoint. Remove assertion. Adjust.
156 (update_watchpoint): Ditto.
157 (insert_breakpoints, breakpoint_init_inferior)
158 (watchpoints_triggered, watchpoint_check)
159 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
160 (bpstat_stop_status, print_one_breakpoint_location)
161 (print_one_breakpoint_location, watchpoint_locations_match): Cast
162 to struct watchpoint as necessary, and adjust.
163 (install_breakpoint): Add `internal' argument. If true, don't
164 mention the new breakpoint. Use set_breakpoint_number.
165 (create_fork_vfork_event_catchpoint)
166 (create_syscall_event_catchpoint): Adjust.
167 (dtor_watchpoint): New.
168 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
169 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
170 (print_it_watchpoint, print_mention_watchpoint)
171 (print_recreate_watchpoint, insert_masked_watchpoint)
172 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
173 (print_one_detail_masked_watchpoint)
174 (print_mention_masked_watchpoint)
175 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
176 necessary, and adjust.
177 (watch_command_1): Allocate and initialize a struct watchpoint
178 instead of a struct breakpoint. Use install_breakpoint.
179 (catch_exec_command_1): Adjust.
180 (base_breakpoint_dtor): Delete accesses to watchpoint specific
181 fields.
182 (delete_breakpoint, enable_breakpoint_disp)
183 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
184 as necessary, and adjust.
185 (initialize_breakpoint_ops): Install dtor_watchpoint as
186 watchpoints' dtor method.
187 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
188 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
189 to struct watchpoint as necessary, and adjust.
190
2060206e
PA
1912011-07-25 Pedro Alves <pedro@codesourcery.com>
192
193 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
194 the the base class ops table.
195 (catch_exception_breakpoint_ops)
196 (catch_exception_unhandled_breakpoint_ops)
197 (catch_assert_breakpoint_ops): Don't statically initialize.
198 (initialize_ada_catchpoint_ops): New.
199 (_initialize_ada_language): Call it.
200 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
201 (bkpt_breakpoint_ops): Forward declare.
202 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
203 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
204 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
205 (masked_watchpoint_breakpoint_ops)
206 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
207 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
208 base class ops table.
209 (null_re_set, null_check_status, null_works_in_software_mode)
210 (null_resources_needed, null_print_one_detail): Delete.
211 (bkpt_dtor): Rename to ...
212 (base_breakpoint_dtor): ... this. Make static.
213 (bkpt_allocate_location): Rename to ...
214 (base_breakpoint_allocate_location): ... this. Make static.
215 (base_breakpoint_re_set): New.
216 (internal_error_pure_virtual_called): New.
217 (base_breakpoint_insert_location, base_breakpoint_remove_location)
218 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
219 (base_breakpoint_works_in_software_mode)
220 (base_breakpoint_resources_needed, base_breakpoint_print_it)
221 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
222 (base_breakpoint_print_recreate): New functions.
223 (base_breakpoint_ops): New global.
224 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
225 (bkpt_breakpoint_hit): Make static.
226 (bkpt_check_status): Delete.
227 (bkpt_resources_needed): Make static.
228 (bkpt_works_in_software_mode): Delete.
229 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
230 static.
231 (bkpt_breakpoint_ops, internal_breakpoint_ops)
232 (momentary_breakpoint_ops): Don't statically initialize.
233 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
234 Delete.
235 (tracepoint_insert_location, tracepoint_remove_location)
236 (tracepoint_check_status, tracepoint_works_in_software_mode)
237 (tracepoint_print_it): Delete.
238 (tracepoint_breakpoint_ops): Don't statically initialize.
239 (initialize_breakpoint_ops): New.
240 (_initialize_breakpoint): Call it.
241 * breakpoint.h (null_re_set, null_works_in_software_mode)
242 (null_resources_needed, null_check_status, null_print_one_detail):
243 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
244 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
245 (bkpt_check_status, bkpt_resources_needed)
246 (bkpt_works_in_software_mode, bkpt_print_it)
247 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
248 Delete declarations.
249 (initialize_breakpoint_ops): Declare.
250
001c8c33
PA
2512011-07-25 Pedro Alves <pedro@codesourcery.com>
252
253 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
254 (momentary_bkpt_print_it): Simplify.
255
06edf0c0
PA
2562011-07-25 Pedro Alves <pedro@codesourcery.com>
257
258 Split internal, momentary and user breakpoints breakpoint_ops
259 tables.
260
261 * breakpoint.c (internal_breakpoint_ops)
262 (momentary_breakpoint_ops): Forward declare.
263 (create_internal_breakpoint): Add new breakpoint_ops parameter.
264 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
265 (create_overlay_event_breakpoint)
266 (create_std_terminate_master_breakpoint)
267 (create_exception_master_breakpoint): Create breakpoints with
268 internal_breakpoint_ops vtable.
269 (set_longjmp_breakpoint): Create momentary breakpoints with
270 momentary_breakpoint_ops vtable, using
271 momentary_breakpoint_from_master.
272 (create_thread_event_breakpoint, create_jit_event_breakpoint)
273 (create_solib_event_breakpoint): Create breakpoints with
274 internal_breakpoint_ops vtable.
275 (set_momentary_breakpoint): Create breakpoints with
276 momentary_breakpoint_ops vtable.
277 (momentary_breakpoint_from_master): New, factored out from
278 clone_momentary_breakpoint.
279 (clone_momentary_breakpoint): Adjust.
280 (watch_command_1): Create scope breakpoints with
281 momentary_breakpoint_ops vtable.
282 (bkpt_re_set): Remove handling of internal and momentary
283 breakpoints.
284 (bkpt_print_mention, bkpt_print_recreate): New.
285 (bkpt_breakpoint_ops): Adjust.
286 (internal_bkpt_re_set, internal_bkpt_check_status)
287 (internal_bkpt_print_it, internal_bkpt_print_mention)
288 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
289 (momentary_bkpt_re_set, momentary_bkpt_check_status)
290 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
291 (momentary_bkpt_print_recreate): New.
292 (momentary_breakpoint_ops): New.
293
348d480f
PA
2942011-07-25 Pedro Alves <pedro@codesourcery.com>
295
296 Implement most breakpoint_ops methods for all breakpoint types,
297 and move the default handlings to the proper callbacks.
298
299 * breakpoint.c (update_watchpoint): Always call the breakpoint's
300 works_in_software_mode method.
301 (insert_bp_location): Go through breakpoint_ops->insert_location
302 for software and hardware watchpoints.
303 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
304 breakpoint_ops.
305 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
306 for software and hardware watchpoints.
307 (print_it_typical): Delete.
308 (print_bp_stop_message): Always call the breakpoint_ops->print_it
309 method.
310 (watchpoint_check): Adjust comment.
311 (bpstat_check_location): Simply always call the breakpoint's
312 breakpoint_hit method.
313 (bpstat_stop_status): Always call the breakpoint's check_status
314 method. Remove special cases for watchpoints and internal event
315 breakpoints from here (moved to the check_status implementations).
316 (print_one_breakpoint_location): Assume b->ops is never NULL.
317 Remove static tracepoint marker id printing from here (moved to
318 the print_one_detail callback implementation of tracepoints).
319 (init_bp_location): Assert OPS is never NULL.
320 (allocate_bp_location): Always call the breakpoint's
321 allocate_location method, and remove the default code from here.
322 (free_bp_location): Always call the location's dtor method, and
323 remove the default code from here.
324 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
325 (set_raw_breakpoint_without_location): Add new breakpoint_ops
326 parameter. Pass it down.
327 (set_raw_breakpoint): Ditto.
328 (print_it_catch_fork): Adjust to take a bpstat as argument.
329 (catch_fork_breakpoint_ops): Install methods.
330 (print_it_catch_vfork): Adjust to take a bpstat as argument.
331 (catch_vfork_breakpoint_ops): Install methods.
332 (dtor_catch_syscall): Call the base dtor.
333 (print_it_catch_syscall): Adjust to take a bpstat as argument.
334 (catch_syscall_breakpoint_ops): Install methods.
335 (dtor_catch_exec): Call the base dtor.
336 (print_it_catch_exec): Adjust to take a bpstat as argument.
337 (catch_exec_breakpoint_ops): Install methods.
338 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
339 the breakpoint's resources_needed method, and remove the default
340 code from here.
341 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
342 breakpoint_ops.
343 (clone_momentary_breakpoint): Clone the original's ops.
344 (mention): Always call the breakpoint's print_mention method, and
345 remove the default code from here.
346 (create_breakpoint_sal): Adjust to pass the ops to
347 set_raw_breakpoint rather than setting it manually.
348 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
349 ops to set_raw_breakpoint_without_location rather than setting it
350 manually.
351 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
352 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
353 (ranged_breakpoint_ops): Install methods.
354 (break_range_command): Adjust to pass the ops to
355 set_raw_breakpoint rather than setting it manually.
356 (re_set_watchpoint, breakpoint_hit_watchpoint)
357 (check_status_watchpoint, resources_needed_watchpoint)
358 (works_in_software_mode_watchpoint, print_it_watchpoint)
359 (print_mention_watchpoint, print_recreate_watchpoint): New
360 functions.
361 (watchpoint_breakpoint_ops): Install new methods.
362 (print_it_masked_watchpoint): New function.
363 (masked_watchpoint_breakpoint_ops): Install new methods.
364 (watch_command_1): Adjust to pass the right breakpoint_ops to
365 set_raw_breakpoint_without_location rather than setting it
366 manually later. Record the current pspace.
367 (print_it_exception_catchpoint): Adjust to take a bpstat as
368 argument.
369 (gnu_v3_exception_catchpoint_ops): Install new methods.
370 (say_where): New function.
371 (null_re_set, null_check_status, null_works_in_software_mode)
372 (null_resources_needed, null_print_one_detail, bp_location_dtor):
373 New functions.
374 (bp_location_ops): New global.
375 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
376 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
377 (bkpt_check_status, bkpt_resources_needed)
378 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
379 (bkpt_print_recreate): New functions.
380 (bkpt_breakpoint_ops): New global.
381 (tracepoint_re_set, tracepoint_insert_location)
382 (tracepoint_remove_location, tracepoint_breakpoint_hit)
383 (tracepoint_check_status, tracepoint_works_in_software_mode)
384 (tracepoint_print_it, tracepoint_print_one_detail)
385 (tracepoint_print_mention, tracepoint_print_recreate): New
386 functions.
387 (tracepoint_breakpoint_ops): New global.
388 (delete_breakpoint): Always call the breakpoint's dtor method, and
389 remove the default handling from here.
390 (breakpoint_re_set_default): Make static.
391 (breakpoint_re_set_one): Always call the breakpoints re_set
392 method, and remove the default handling from here.
393 (trace_command, ftrace_command, strace_command)
394 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
395 to create_breakpoint.
396 (save_breakpoints): Always call the breakpoint's print_recreate
397 method, and remove the default handling from here.
398
399 * ada-lang.c (dtor_exception): Call the base dtor.
400 (re_set_exception): Call the base method.
401 (print_it_exception, print_it_catch_exception): Adjust to take a
402 bpstat as argument.
403 (catch_exception_breakpoint_ops): Install methods.
404 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
405 argument.
406 (catch_exception_unhandled_breakpoint_ops): Install methods.
407 (print_it_catch_assert): Adjust to take a bpstat as argument.
408 (catch_assert_breakpoint_ops): Install methods.
409
410 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
411 to take a bpstat as argument.
412 (enum print_stop_action): Add describing comments to each enum
413 value.
414 (breakpoint_re_set_default): Delete declaration.
415 (null_re_set, null_works_in_software_mode, null_resources_needed)
416 (null_check_status, null_print_one_detail): Declare.
417 (bkpt_breakpoint_ops): Declare.
418 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
419 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
420 (bkpt_check_status, bkpt_resources_needed)
421 (bkpt_works_in_software_mode, bkpt_print_it)
422 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
423 Declare.
424
425 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
426 bkpt_breakpoint_ops.
427 * python/py-breakpoint.c (bppy_init): Ditto.
428
be8f8133
PW
4292011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
430
431 * MAINTAINERS (Write After Approval): Add myself to the list.
432
3807f613
PP
4332011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
434
435 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
436
1ced966e
PA
4372011-07-22 Pedro Alves <pedro@codesourcery.com>
438
439 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
440 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
441 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
442 adjust.
443 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
444 (struct i386_debug_reg_state): New.
445 (i386_init_dregs): New.
446 (dr_mirror): New.
447 (i386_cleanup_dregs): Use i386_init_dregs.
448 (i386_show_dr): Add state parameter and adjust.
449 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
450 the inferior here.
451 (i386_remove_aligned_watchpoint): Likewise.
452 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
453 (i386_update_inferior_debug_regs): New.
454 (i386_insert_watchpoint): Work on a local mirror of the debug
455 registers, and only update the inferior on success.
456 (i386_remove_watchpoint): Ditto.
457 (i386_region_ok_for_watchpoint): Adjust.
458 (i386_stopped_data_address): Adjust.
459 (i386_insert_hw_breakpoint): Adjust.
460 (i386_remove_hw_breakpoint): Adjust.
461
3543a589
TT
4622011-07-22 Tom Tromey <tromey@redhat.com>
463
464 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
465 from amd64_pseudo_register_read. Change arguments. Call
466 mark_value_bytes_unavailable when needed.
467 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
468 set_gdbarch_pseudo_register_read.
469 * sentinel-frame.c (sentinel_frame_prev_register): Use
470 regcache_cooked_read_value.
471 * regcache.h (regcache_cooked_read_value): Declare.
472 * regcache.c (regcache_cooked_read_value): New function.
473 (regcache_cooked_read): Call
474 gdbarch_pseudo_register_read_value if available.
475 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
476 (i386_pseudo_register_read): Remove.
477 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
478 i386_pseudo_register_read. Change arguments. Call
479 mark_value_bytes_unavailable when needed.
480 (i386_pseudo_register_read_value): New function.
481 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
482 not set_gdbarch_pseudo_register_read.
483 * gdbarch.sh (pseudo_register_read_value): New method.
484 * gdbarch.c, gdbarch.h: Rebuild.
485 * findvar.c (value_from_register): Call get_frame_register_value.
486
95298e72
PM
4872011-07-22 Phil Muldoon <pmuldoon@redhat.com>
488
489 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
490 get_prefix.
491 (display_gdb_prompt): Likewise.
492 (change_annotation_level): Likewise.
493 (push_prompt): Likewise.
494 (pop_prompt): Likewise.
495 (handle_stop_sig): Use get_prompt with a level.
496 * top.c (command_loop): Use get_prompt with a level.
497 (set_async_annotation_level): Use set_prompt with a level.
498 (get_prefix): New function.
499 (set_prefix): Ditto.
500 (set_suffix): Ditto.
501 (get_suffix): Ditto.
502 (get_prompt): Accept a level argument.
503 (set_prompt): Accept a level argument. Free old prompts. Set
504 new_async_prompt if level is 0.
505 (init_main): Use set_prompt with a level. Do not set
506 new_async_prompt.
507 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
508 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
509 Modify set_prompt, get_prompt to account for levels.
510 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
511 level.
512 * python/python.c (before_prompt_hook): Use set_prompt.
513
d26e3629
KY
5142011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
515
516 * defs.h: Add guard against inclusion in gdbserver.
517 (struct ptid, ptid_t): Move to common/ptid.h.
518 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
519 xsnprintf, internal_error): Move to common/common-utils.h.
520 (nomem): Delete.
521 * gdb_assert.h: Move into common/ sub-directory.
522 * gdb_locale.h: Ditto.
523 * gdb_dirent.h: Ditto.
524 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
525 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
526 Move into common/ptid.h.
527 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
528 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
529 Change nomem to malloc_failure.
530 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
531 * utils.c (nomem): Rename to malloc_failure.
532 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
533 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
534 (gdb_buildargv): Change nomem to malloc_failure.
535 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
536 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
537 ptid_is_pid): Move into common/ptid.c.
538 (initialize_infrun): Delete initialization of null_ptid and
539 minus_one_ptid.
540 * linux-nat.c (linux_nat_xfer_osdata): Defer to
541 linux_common_xfer_osdata.
542 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
543 common/ptid.c and common/buffer.c.
544 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
545 common/ptid.h, common/buffer.h and common/linux-osdata.h.
546 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
547 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
548 rules.
549 * common/gdb_assert.h: New.
550 * common/gdb_dirent.h: New.
551 * common/gdb_locale.h: New.
552 * common/buffer.c: New.
553 * common/buffer.h: New.
554 * common/ptid.c: New.
555 * common/ptid.h: New.
556 * common/xml-utils.c: New.
557 * common/xml-utils.h: New.
558 * common/common-utils.c: New.
559 * common/common-utils.h: New.
560 * common/linux-osdata.c: New.
561 * common/linux-osdata.h: New.
562 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
563 * config/arm/linux.mh (NATDEPFILES): Ditto.
564 * config/i386/linux.mh (NATDEPFILES): Ditto.
565 * config/i386/linux64.mh (NATDEPFILES): Ditto.
566 * config/ia64/linux.mh (NATDEPFILES): Ditto.
567 * config/m32r/linux.mh (NATDEPFILES): Ditto.
568 * config/m68k/linux.mh (NATDEPFILES): Ditto.
569 * config/mips/linux.mh (NATDEPFILES): Ditto.
570 * config/pa/linux.mh (NATDEPFILES): Ditto.
571 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
572 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
573 * config/s390/s390.mh (NATDEPFILES): Ditto.
574 * config/sparc/linux.mh (NATDEPFILES): Ditto.
575 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
576 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
577
edc84990 5782011-07-21 Matt Rice <ratmice@gmail.com>
579
580 * NEWS: Add info macros and info definitions commands.
581
3a7bf607
PM
5822011-07-21 Phil Muldoon <pmuldoon@redhat.com>
583
584 * NEWS: Document Python prompt substitution hook.
585
9b158ba0 5862011-07-18 Matt Rice <ratmice@gmail.com>
587
588 PR macros/12999
589 * macrotab.h (macro_callback_fn): Add new arguments to callback.
590 * macrotab.c (foreach_macro): Ditto.
591 (foreach_macro_in_scope): Ditto.
592 * macrocmd.c (print_macro_callback): New function.
593 (info_macro_command): Move some code to print_macro_definition.
594 (print_macro_definition): New function.
595 (print_one_macro): Add new arguments to callback.
596 (info_definitions_command): New function.
597 (info_macros_command): Ditto.
598 (_initialize_macrocmd): Add info macros and info definitions commands.
599 * symtab.c (add_macro_name): Add new arguments to callback.
600
d17b6f81
PM
6012011-07-21 Phil Muldoon <pmuldoon@redhat.com>
602 Tom Tromey <tromey@redhat.com>
603
604 * top.c (set_prompt): Rewrite to free previous prompt, free
605 asynch_new_prompt and set both on new prompts.
606 * event-top.c (display_gdb_prompt): Add prompt substitution
607 logic.
608 * python/python.c (before_prompt_hook): New function.
609
1364323a 6102011-07-20 Matt Rice <ratmice@gmail.com>
611
612 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
613 arguments to store_unsigned_integer.
614
8b70b953
TT
6152011-07-20 Tom Tromey <tromey@redhat.com>
616
6c83ed52
TT
617 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
618 in some declaration-only cases.
619
6202011-07-18 Tom Tromey <tromey@redhat.com>
621
8b70b953
TT
622 PR symtab/12984:
623 * dwarf2read.c (dwarf2_section_info_def): New typedef.
624 (struct dwarf2_per_objfile) <types>: Change to a VEC.
625 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
626 <debug_type_section>: New field.
627 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
628 (load_cu): Use appropriate section.
629 (create_signatured_type_table_from_index): Add 'section'
630 argument.
631 (dwarf2_read_index): Only allow a single .debug_types section.
632 (dw2_get_file_names): Use appropriate section.
633 (read_type_comp_unit_head): Add 'section' argument.
634 (create_debug_types_hash_table): Loop over all .debug_types
635 sections.
636 (init_cu_die_reader): Use appropriate section.
637 (process_psymtab_comp_unit, load_partial_comp_unit)
638 (load_full_comp_unit, read_die_and_children, find_partial_die)
639 (lookup_die_type, determine_prefix, follow_die_offset): Update.
640 (lookup_signatured_type_at_offset): Add 'section' argument.
641 (read_signatured_type_at_offset): Add 'sect' argument.
642 (read_signatured_type): Use appropriate section.
643 (set_die_type, get_die_type_at_offset): Update.
644 (dwarf2_per_objfile_free): Free all .debug_types sections, and
645 VEC.
646 (write_psymtabs_to_index): Don't allow index with more than one
647 .debug_types section.
648
918dd910
JK
6492011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
650
651 Fix crash if referenced CU is aged out.
652 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
653 xfree of block.data.
654 (indirect_pieced_value): New variable back_to, use to for xfree of
655 baton.data.
656 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
657 block.data.
658 * dwarf2read.c (dwarf2_find_base_address): New prototype.
659 (load_cu): New function from ...
660 (dw2_do_instantiate_symtab): ... the code here ...
661 (process_full_comp_unit): ... and here.
662 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
663 retval.data.
664
0e37a63c
JK
6652011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
668 type.
669
7e324e48
GB
6702011-07-19 Gary Benson <gbenson@redhat.com>
671
672 * infrun.c (struct execution_control_state): New member
673 stop_func_filled_in.
674 (clear_stop_func, fill_in_stop_func): New functions.
675 (handle_inferior_event): Call clear_stop_func rather than
676 manipulating the execution control state directly.
677 Call fill_in_stop_func lazily as required rather than
678 directly calling find_pc_partial_function in all cases.
679
d48323d8
TT
6802011-07-18 Tom Tromey <tromey@redhat.com>
681
682 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
683 checking for variable-sized array.
684
40591b7d
JCD
6852011-07-18 Jean-Charles Delay <delay@adacore.com>
686
687 * varobj.h (varobj_languages): Add vlang_ada definition to the list
688 of supported languages.
689 * varobj.c: Add top definitions and basic implementation of the
690 following callbacks: ada_number_of_children, ada_name_of_variable,
691 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
692 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
693 (languages): Register Ada-specific callbacks.
694 (variable_language): Add the Ada case in the language setter switch.
695
2e424e08
JK
6962011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
697
698 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
699
9e8b7a03
JK
7002011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
701
702 Code cleanup.
703 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
704 (execute_stack_op): Use dwarf2_frame_ctx_funcs
705 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
706 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
707 get_frame_cfa, get_tls_address and dwarf_call via funcs.
708 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
709 (struct dwarf_expr_context_funcs): New, move here methods from ...
710 (struct dwarf_expr_context): ... here. New fields funcs.
711 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
712 (dwarf_expr_ctx_funcs): New.
713 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
714 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
715 (needs_frame_ctx_funcs): New.
716 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
717
2b1260ab
FM
7182011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
719
720 * MAINTAINERS (Write After Approval): Add myself to the list.
721
8bd90839
FM
7222011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
723
724 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
725 that CIE pointer of an FDE really points to a CIE .
726
953b98d1
HZ
7272011-07-15 Hui Zhu <teawater@gmail.com>
728
729 * remote.c (remote_get_trace_status): Add comments.
730
c8f2448a
JK
7312011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
732
733 Code cleanup - constify struct lval_funcs.
734 * dwarf2loc.c (pieced_value_funcs): Make it const.
735 * infrun.c (siginfo_value_funcs): Likewise.
736 * opencl-lang.c (opencl_value_funcs): Likewise.
737 * valops.c (value_assign, value_ind): Make the funcs variable const.
738 * value.c (struct value): Make location.computed.funcs target const.
739 Rearrange the comments.
740 (allocate_computed_value): Make the funcs parameter target const.
741 (value_computed_funcs): Return the funcs target const.
742 (value_free, value_copy, set_value_component_location): Make the funcs
743 variable const.
744 * value.h (allocate_computed_value): Make the funcs parameter target
745 const.
746 (value_computed_funcs): Return the funcs target const.
747 * windows-tdep.c (tlb_value_funcs): Make it const.
748
f652de6f
HZ
7492011-07-14 Hui Zhu <teawater@gmail.com>
750
751 * remote.c (remote_get_trace_status): Initialize p.
752
67f41397
JK
7532011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 Work around kgdb.
756 * remote.c (remote_get_trace_status): New variable ex. Put
757 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
758
d1b66e6d
TT
7592011-07-13 Tom Tromey <tromey@redhat.com>
760
761 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
762 value_from_contents for final conversion.
763
1632a688
JK
7642011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
765
766 Code cleanup.
767 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
768 Indent prototypes so they do not get into tags.
769
a7035dbb
JK
7702011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
771
772 Code cleanup making also optimized out values lazy.
773 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
774 allocate_optimized_out_value. Twice.
775 (loclist_read_variable) Use allocate_optimized_out_value. Once.
776 * findvar.c (read_var_value): Likewise.
777 * value.c (allocate_optimized_out_value): New function.
778 * value.h (allocate_optimized_out_value): New declaration.
779
d07ed419
JK
7802011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
781
782 Fix occasional crash of CTRL-C during DWARF read in.
783 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
784
86d31898
TT
7852011-07-11 Tom Tromey <tromey@redhat.com>
786
787 * regcache.c (struct regcache_descr): Fix typo.
788 * i387-tdep.c (i387_supply_xsave): Fix typo.
789
2ab95328
TT
7902011-07-11 Tom Tromey <tromey@redhat.com>
791
792 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
793 (read_file_scope, read_type_unit_scope): Use it.
794
04ad99e6
JK
7952011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
796
797 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
798 `int'.
799
713389e0
PM
8002011-07-11 Phil Muldoon <pmuldoon@redhat.com>
801
802 PR python/12438
803 * python/python.c: Set gdbpy_should_print_stack default to off.
804 (set_python): Deprecate maint set python print-stack to
805 class_deprecate.
806 (_initialize_python): Deprecate maint set/show python print-stack.
807 Add new prefix command, python. Add new setting, print-backtrace.
808 * NEWS: Document set python print-stack. Document default change.
809
754eadd1
PM
8102011-07-11 Phil Muldoon <pmuldoon@redhat.com>
811
812 * python/py-inferior.c (infpy_dealloc): New function.
813 (inferior_to_inferior_object): Return a new object, or a
814 new reference to the existing object.
815 (find_thread_object): Cleanup references to inferior.
816 (delete_thread_object): Ditto.
817 * python/py-infthread.c (create_thread_object): Do not increment
818 inferior reference count.
819
5e44ecb3
TT
8202011-07-08 Tom Tromey <tromey@redhat.com>
821
822 * dwarf2loc.c (locexpr_regname): New function.
823 (locexpr_describe_location_piece): Use it.
824 (disassemble_dwarf_expression): Add per_cu argument. Use
825 locexpr_regname.
826 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
827 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
828 New cases.
829 (locexpr_describe_location_1): Add per_cu argument.
830 (locexpr_describe_location): Update.
831 (loclist_describe_location): Update.
832
e0e9434c
TT
8332011-07-08 Tom Tromey <tromey@redhat.com>
834
835 * dwarf2expr.c (execute_stack_op): Add QUIT.
836
26afc0d7
HZ
8372011-07-07 Hui Zhu <teawater@gmail.com>
838
839 Revert:
840 2011-07-06 Hui Zhu <teawater@gmail.com>
841 * remote.c (remote_start_remote): Add TRY_CATCH for
842 remote_get_trace_status.
843 * tracepoint.c (disconnect_tracing): Ditto.
844
a40a111f
AB
8452011-07-07 Andrew Burgess <aburgess@broadcom.com>
846
847 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
848 variables as signed, not unsigned.
849
e2bd3b15
JB
8502011-07-06 Joel Brobecker <brobecker@adacore.com>
851
852 * jit.c (jit_inferior_init): Reformat forward declaration.
853
e3d961fe 8542011-07-06 Matt Rice <ratmice@gmail.com>
855
856 * MAINTAINERS (Write After Approval): Add myself to the list.
857
0f3428f0
HZ
8582011-07-06 Hui Zhu <teawater@gmail.com>
859
860 * remote.c (remote_start_remote): Add TRY_CATCH for
861 remote_get_trace_status.
862 * tracepoint.c (disconnect_tracing): Ditto.
863
fc9f3a69
TT
8642011-07-05 Tom Tromey <tromey@redhat.com>
865
866 * symtab.c (operator_chars): Now static.
867 * linespec.c (operator_chars): Don't declare.
868
26e519b9
TJB
8692011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
870
871 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
872
eb2a6f42
TT
8732011-07-05 Tom Tromey <tromey@redhat.com>
874
875 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
876 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
877 (TYPE_CPLUS_REALLY_JAVA): New macro.
878 * dwarf2read.c (process_structure_scope): Set
879 TYPE_CPLUS_REALLY_JAVA.
880
21083d0f 8812011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
882
883 * ada-lang.c: Fix typos.
884 * amd64-tdep.c: Likewise.
885 * breakpoint.c: Likewise.
886 * cli/cli-decode.c: Likewise.
887 * findcmd.c: Likewise.
888 * inline-frame.c: Likewise.
889 * mi/mi-main.c: Likewise.
890 * minsyms.c: Likewise.
891 * monitor.c: Likewise.
892 * monitor.h: Likewise.
893 * prologue-value.c: Likewise.
894 * reverse.c: Likewise.
895 * s390-tdep.c: Likewise.
896
3b2a0cf2
JB
8972011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
898
899 * jit.c (jit_inferior_init): Forward declare.
900 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
901
efae1d92
JB
9022011-07-04 Joel Brobecker <brobecker@adacore.com>
903
904 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
905
6040a59d
JB
9062011-07-04 Tristan Gingold <gingold@adacore.com>
907
908 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
909 (tcb_fieldno): Add activation_link field.
910 (get_known_tasks_addr): Moved and rewritten.
911 (get_tcb_types_info): Set activation_link field.
912 (read_known_tasks_array): Add parameter. Rewritten.
913 (read_known_tasks_list): New function.
914 (read_known_tasks): New function.
915 (ada_build_task_list): Call read_known_tasks instead of
916 read_known_tasks_array.
917 * ravenscar-thread.c: Add first_task_name constant.
918 (has_ravenscar_runtime): Check for task list too.
919
cb741e45
JB
9202011-07-04 Tristan Gingold <gingold@adacore.com>
921
922 * ada-tasks.c: Renames fieldno to actb_fieldno.
923 (ada_get_task_number): Indentation.
924 (get_tcb_types_info): Remove all parameters. Write directly
925 the globals.
926 (ptid_from_atcb_common): Adjust.
927 (read_atcb): Adjust.
928
7475b06c
TJB
9292011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
930
931 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
932
15230f37
TJB
9332011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
934
935 * ui-out.c (ui_out_field_core_addr): Mention that the function
936 description is in the header file.
937 * ui-out.h (ui_out_field_core_addr): Document function.
938
65743aba
TJB
9392011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
940
941 * ui-out.c (ui_out_get_field_separator): Remove unused function.
942 * ui-out.h (ui_out_get_field_separator): Remove prototype.
943
c37a5aab
TJB
9442011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
945
946 * symtab.c (expand_line_sal): Remove empty line.
947
59adf69e
TS
9482011-07-04 Thomas Schwinge <thomas@schwinge.name>
949
950 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
951 same way as ELFOSABI_NONE.
952 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
953
e5dd4106
TJB
9542011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
955
956 * breakpoint.c: Fix typos in comments.
957 * linespec.c: Likewise.
958 * symtab.c: Likewise.
959
d40102a1
JB
9602011-07-04 Joel Brobecker <brobecker@adacore.com>
961
962 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
963 section in separate object files.
964
2f741504
JK
9652011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 Fix false GCC warning.
968 * linespec.c (decode_line_1): Initialize values.
969
418c7cf7
JK
9702011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
971
972 * linespec.c (find_method): Accept the function type automatically only
973 if it was specified with parameter types.
974
3d50dd94
JK
9752011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
976
977 Stop on first linespec terminator instead of eating what we can.
978 * linespec.c (is_linespec_boundary): New function.
979 (name_end): Remove function.
980 (keep_name_info): New parameter on_boundary, replace the body.
981 (decode_line_1): Provide the parameter to keep_name_info.
982 (decode_compound): Likewise. Drop the trailing java return type
983 handling. Twice.
984
dcf9f4ab
JK
9852011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
986
987 Fall back linespec to minimal symbols.
988 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
989 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
990 (find_method, symbol_found): Change error to cplusplus_error.
991
3f542ed1
JK
9922011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
993
bc68c4e5 994 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 995
900e11f9
JK
9962011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
997 Tom Tromey <tromey@redhat.com>
998
999 * dwarf2read.c (check_physname): New variable.
1000 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1001 (show_check_physname): New function.
1002 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1003
2301925d
JB
10042011-07-01 Joel Brobecker <brobecker@adacore.com>
1005
1006 * machoread.c (macho_symfile_read): Delete OBE comment.
1007
38947cca
JB
10082011-07-01 Joel Brobecker <brobecker@adacore.com>
1009
1010 * machoread.c (struct macho_oso_data): Delete.
1011 (current_oso): Delete.
1012 (macho_relocate_common_syms): New function, mostly extracted
1013 out of
1014 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1015 Remove code that sets and unset current_oso.
1016 (macho_symfile_relocate): Delete handling of common symbols,
1017 now moved to macho_relocate_common_syms.
1018
a7aa0d73
JB
10192011-07-01 Joel Brobecker <brobecker@adacore.com>
1020
1021 * darwin-nat.c (darwin_ptrace): Add documentation.
1022 Set errno to zero before calling ptrace. If ptrace returns
1023 -1 and errno is zero, then change then return zero.
1024 (darwin_kill_inferior): Issue a warning instead of triggering
1025 a failed assertion when the PT_KILL ptrace operations returned
1026 nonzero.
1027
5e9bc145
JB
10282011-07-01 Joel Brobecker <brobecker@adacore.com>
1029
1030 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1031 only when inf->private->no_ptrace.
1032
00eb2c4a
JB
10332011-07-01 Joel Brobecker <brobecker@adacore.com>
1034
1035 * ada-lang.c (print_it_exception): Print temporary catchpoints
1036 as "Temporary catchpoint".
1037 (print_mention_exception): Likewise.
1038
127c81bc
TT
10392011-07-01 Tom Tromey <tromey@redhat.com>
1040
1041 * jv-lang.c (java_language_defn): Use java_printchar,
1042 java_printstr.
1043 (java_get_encoding): New function.
1044 (java_emit_char): Use generic_emit_char.
1045 (java_printchar): New function.
1046 (java_printstr): Likewise.
1047
25552254
JB
10482011-07-01 Joel Brobecker <brobecker@adacore.com>
1049
1050 * ada-typeprint.c (print_record_type): If unable to decode
1051 the name of the parent type, use the encoded name.
1052
d2d43431
JB
10532011-07-01 Jean-Charles Delay <delay@adacore.com>
1054
1055 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1056 pointer to constrained packed array type output.
1057 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1058 packed array output.
1059
54ae186f
JB
10602011-07-01 Jean-Charles Delay <delay@adacore.com>
1061
1062 * ada-typeprint.c (print_array_type): removed if condition on show
1063 being negative for bounds printing.
1064
8f17729f
JB
10652011-07-01 Joel Brobecker <brobecker@adacore.com>
1066
1067 * ada-lang.c (ada_identical_enum_types_p): New function.
1068 (symbols_are_identical_enums): New function.
1069 (remove_extra_symbols): Do nothing if NSYMS < 2.
1070 Use symbols_are_identical_enums.
1071
f5aa6869
JB
10722011-07-01 Joel Brobecker <brobecker@adacore.com>
1073
1074 * ada-valprint.c (ada_value_print): Handle typedefs.
1075
8f465ea7
JB
10762011-07-01 Joel Brobecker <brobecker@adacore.com>
1077
1078 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1079
828292f2
JB
10802011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1081
1082 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1083 (decode_constrained_packed_array): Likewise.
1084 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1085
18920c42
JB
10862011-07-01 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-exp.y (convert_char_literal): Handle typedef types.
1089
c90092fe
JB
10902011-07-01 Joel Brobecker <brobecker@adacore.com>
1091
1092 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1093
f748fb40
TT
10942011-06-30 Tom Tromey <tromey@redhat.com>
1095
1096 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1097 * valops.c (find_overload_match): Call do_cleanups on early exit
1098 path.
1099 * solib.c (solib_find): Call do_cleanups on early exit path.
1100
3bb47e8b
TT
11012011-06-30 Tom Tromey <tromey@redhat.com>
1102
1103 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1104 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1105 return paths. Defer final do_cleanups until last return.
1106 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1107 early return.
1108
4727bad3
TT
11092011-06-30 Tom Tromey <tromey@redhat.com>
1110
1111 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1112
bb361dbf
AB
11132011-06-30 Andrew Burgess <aburgess@broadcom.com>
1114
1115 * MAINTAINERS (Write After Approval): Add myself to the list.
1116
e0d00bc7
JK
11172011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1118
1119 Disable epilogue unwinders on recent GCCs.
1120 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1121 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1122 * dwarf2read.c (process_full_comp_unit): Initialize
1123 EPILOGUE_UNWIND_VALID.
1124 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1125 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1126 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1127
4632c0d0
JK
11282011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1129
1130 Code cleanup - reformatting.
1131 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1132 (producer_is_gcc_ge_4): ... here, change the return value.
1133 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1134 interpretation.
1135
32019081
JK
11362011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 Fix non-only rename list for Fortran modules import.
1139 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1140 cp_add_using_directive caller.
1141 (cp_add_using_directive): New parameter excludes, describe it. New
1142 variables ix and param. Compare if also excludes match. Allocate NEW
1143 with variable size, initialize EXCLUDES there.
1144 (cp_lookup_symbol_imports): New variable excludep, test
1145 current->EXCLUDES with it.
1146 * cp-support.h: Include vec.h.
1147 (struct using_direct): New field excludes, describe it.
1148 (DEF_VEC_P (const_char_ptr)): New.
1149 (cp_add_using_directive): New parameter excludes.
1150 * defs.h (const_char_ptr): New typedef.
1151 * dwarf2read.c (read_import_statement): New variables child_die,
1152 excludes and cleanups, read in excludes.
1153 (read_namespace): Adjust the cp_add_using_directive caller.
1154
70c622a3
JK
11552011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 Code cleanup.
1158 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1159 negative comparisons.
1160
39c4d40a
TT
11612011-06-29 André Pönitz <andre.poenitz@nokia.com>
1162
1163 * mi/mi-main.c (mi_cmd_list_features): Emit
1164 breakpoint-notifications.
1165
3b2b8fea
TT
11662011-06-29 Tom Tromey <tromey@redhat.com>
1167
1168 PR fortran/10036:
1169 * valprint.h (generic_emit_char, generic_printstr): Declare.
1170 * valprint.c (wchar_printable, append_string_as_wide)
1171 (print_wchar): Move from c-lang.c.
1172 (generic_emit_char): New function; mostly taken from c_emit_char.
1173 (generic_printstr): New function; mostly taken from c_printstr.
1174 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1175 represented as arrays.
1176 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1177 type.
1178 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1179 identically to TYPE_CODE_INT.
1180 * f-lang.c (f_get_encoding): New function.
1181 (f_emit_char): Use generic_emit_char.
1182 (f_printchar): Replace comment.
1183 (f_printstr): Use generic_printstr.
1184 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1185 "character" types specially.
1186 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1187 for Fortran.
1188 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1189 Move to valprint.c
1190 (c_emit_char): Call generic_emit_char.
1191 (c_printstr): Call generic_printstr.
1192
168e6d44
GB
11932011-06-29 Gary Benson <gbenson@redhat.com>
1194
1195 * breakpoint.c (bpstat_what): Removed duplicated case.
1196
1c033f8c
TT
11972011-06-28 Tom Tromey <tromey@redhat.com>
1198
1199 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1200
5fe41fbf
TT
12012011-06-27 Tom Tromey <tromey@redhat.com>
1202
1203 * valops.c (find_overload_match): Call do_cleanups before early
1204 return.
1205 * top.c (execute_command): Call do_cleanups before early return.
1206 (command_loop): Likewise.
1207 * stack.c (backtrace_command): Make a null cleanup early. Don't
1208 conditionally call do_cleanups.
1209 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1210 TRY_CATCH.
1211 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1212 so cleanups are always run.
1213 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1214 * findcmd.c (parse_find_args): Call do_cleanups on early return
1215 path.
1216 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1217 Don't conditionally call do_cleanups.
1218 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1219 later.
1220
e26bd57d
EB
12212011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1222
1223 * MAINTAINERS (Write After Approval): Use default email address.
1224
6c3097fc
JB
12252011-06-27 Joel Brobecker <brobecker@adacore.com>
1226
1227 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1228
369c397b
JB
12292011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1230
1231 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1232 saved_regs_mask and copied_regs_mask fields.
1233 (sparc_record_save_insn): New prototype.
1234 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1235 (sparc_record_save_insn): New function.
1236 (sparc_analyze_prologue): Add head comment. Recognize store insns
1237 of call-saved registers. Use OFFSET consistently. Recognize flat
1238 frames and cache their settings.
1239 (sparc32_skip_prologue): Handle flat frames.
1240 (sparc_frame_cache): Add frame_offset to the base address.
1241 (sparc32_frame_cache): Adjust to new frame description.
1242 (sparc32_frame_prev_register): Likewise.
1243 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1244 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1245 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1246 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1247 frame by calling sparc_record_save_insn.
1248 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1249 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1250 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1251
b315ab21
TG
12522011-06-27 Tristan Gingold <gingold@adacore.com>
1253
1254 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1255 field by map_addr and map_len.
1256 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1257 (munmap_section_buffer): Likewise.
1258
ddd49eee
TT
12592011-06-24 Tom Tromey <tromey@redhat.com>
1260
1261 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1262 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1263 * python/python.c (gdbpy_parameter): Make 'arg' const.
1264 (execute_gdb_command): Likewise.
1265 (gdbpy_decode_line): Likewise. Copy it.
1266 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1267 (gdbpy_write): Make 'arg' const.
1268 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1269 const.
1270 (gdbpy_lookup_type): Likewise.
1271 * python/py-prettyprint.c (print_children): Make 'name' const.
1272 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1273 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1274 Py_ssize_t.
1275 * python/py-function.c (fnpy_init): Make 'name' const.
1276 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1277 (gdbpy_string_to_argv): Make 'input' const.
1278 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1279 it.
1280 * gdbtypes.h (lookup_typename): Update.
1281 * gdbtypes.c (lookup_typename): Make 'name' const.
1282 (lookup_struct): Likewise.
1283 (lookup_union): Likewise.
1284 (lookup_enum): Likewise.
1285
5998129b
TT
12862011-06-24 Tom Tromey <tromey@redhat.com>
1287
1288 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1289 gdb_thread_db.h. Move all common/ entries to be together.
1290 (TAGS): Don't depend on DEPFILES.
1291
6e586cc5
YQ
12922011-06-23 Yao Qi <yao@codesourcery.com>
1293
1294 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1295 * remote.c (remote_start_remote): ... here.
1296 * monitor.c (monitor_open): ... here.
1297
86c3c1fc
AB
12982011-06-23 Andrew Burgess <aburgess@broadcom.com>
1299
1300 * gdbtypes.c (append_composite_type_field_aligned): Fix
1301 calculation of bit position based on alignment.
1302
28010a5d
PA
13032011-06-22 Pedro Alves <pedro@codesourcery.com>
1304
1305 * breakpoint.c (bpstat_stop_status): Call the check_status
1306 breakpoint_ops method.
1307 (print_one_breakpoint_location): Also print the condition for Ada
1308 exception catchpoints.
1309 (allocate_bp_location): New, factored out from
1310 allocate_bp_location.
1311 (allocate_bp_location): Adjust. Call the owner breakpoint's
1312 allocate_location method, if there is one.
1313 (free_bp_location): Call the locations's dtor method, if there is
1314 one.
1315 (init_raw_breakpoint_without_location): New breakpoint_ops
1316 parameter. Use it.
1317 (set_raw_breakpoint_without_location): Adjust.
1318 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1319 (set_raw_breakpoint): Adjust.
1320 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1321 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1322 re_set and check_status methods.
1323 (init_catchpoint): Don't memset, initialize thread, addr_string
1324 and enable_state. Pass the ops down to init_raw_breakpoint.
1325 (install_catchpoint): Rename to ...
1326 (install_breakpoint): ... this, and make extern.
1327 (create_fork_vfork_event_catchpoint): Adjust.
1328 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1329 re_set and check_status methods.
1330 (create_syscall_event_catchpoint): Adjust.
1331 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1332 (masked_watchpoint_breakpoint_ops): Install NULL
1333 allocate_location, re_set and check_status methods.
1334 (catch_exec_command_1): Adjust.
1335 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1336 re_set and check_status methods.
1337 (create_ada_exception_breakpoint): Rename to ...
1338 (init_ada_exception_breakpoint): ... this. Add a struct
1339 breakpoint parameter, and delete the exp_string, cond_string and
1340 cond parameters. Use init_raw_breakpoint, and don't install or
1341 mention the breakpoint yet. Don't clear breakpoint fields that
1342 init_raw_breakpoint already clears.
1343 (re_set_breakpoint): Delete, split into ...
1344 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1345 functions.
1346 (breakpoint_re_set_one): Call the breakpoint's
1347 breakpoint_ops->re_set implementation, if there's one. Adjust.
1348 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1349 (struct bp_location_ops): New type.
1350 (struct bp_location): New field `ops'.
1351 (struct breakpoint_ops): New `allocate_location', `re_set' and
1352 `check_status' fields. Make `breakpoint_hit''s description match
1353 reality.
1354 (init_bp_location): Declare.
1355 (breakpoint_re_set_default): Declare.
1356 (create_ada_exception_breakpoint): Rename to ...
1357 (init_ada_exception_breakpoint): ... this. Add a struct
1358 breakpoint parameter, and delete the exp_string, cond_string and
1359 cond parameters.
1360 (install_breakpoint): Declare.
1361 * ada-lang.c: Include exceptions.h.
1362 <Ada exceptions description>: Update.
1363 (struct ada_catchpoint_location): New type.
1364 (ada_catchpoint_location_dtor): New function.
1365 (ada_catchpoint_location_ops): New global.
1366 (ada_catchpoint): New type.
1367 (create_excep_cond_exprs): New function.
1368 (dtor_exception, allocate_location_exception, re_set_exception)
1369 (should_stop_exception, check_status_exception): New functions.
1370 (print_one_exception, print_mention_exception)
1371 (print_recreate_exception): Adjust.
1372 (dtor_catch_exception, allocate_location_catch_exception)
1373 (re_set_catch_exception, check_status_catch_exception): New
1374 functions.
1375 (catch_exception_breakpoint_ops): Install them.
1376 (dtor_catch_exception_unhandled)
1377 (allocate_location_catch_exception_unhandled)
1378 (re_set_catch_exception_unhandled)
1379 (check_status_catch_exception_unhandled): New functions.
1380 (catch_exception_unhandled_breakpoint_ops): Install them.
1381 (dtor_catch_assert, allocate_location_catch_assert)
1382 (re_set_catch_assert, check_status_catch_assert): New functions.
1383 (catch_assert_breakpoint_ops): Install them.
1384 (ada_exception_catchpoint_p): Delete.
1385 (catch_ada_exception_command_split)
1386 (ada_exception_catchpoint_cond_string): Rename exp_string
1387 parameter to excep_string. Adjust.
1388 (ada_parse_catchpoint_condition): Delete.
1389 (ada_exception_sal): Rename the exp_string parameter to
1390 excep_string. Delete the cond_string and cond parameters.
1391 Adjust.
1392 (ada_decode_exception_location): Rename the exp_string parameter
1393 to excep_string. Delete the cond_string and cond parameters.
1394 Adjust.
1395 (create_ada_exception_catchpoint): New function.
1396 (catch_ada_exception_command, ada_decode_assert_location)
1397 (catch_assert_command): Adjust.
1398 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1399
9ac4176b
PA
14002011-06-22 Pedro Alves <pedro@codesourcery.com>
1401
1402 * ada-lang.c: Include arch-utils.h.
1403 (ada_decode_exception_location): Make static.
1404 (catch_ada_exception_command): Moved here from breakpoint.c.
1405 (ada_decode_assert_location): Make static.
1406 (catch_assert_command): Moved here from breakpoint.c.
1407 (_initialize_ada_lang): Install the exception and assert
1408 catchpoint commands here.
1409 * ada-lang.h (ada_decode_exception_location)
1410 (ada_decode_assert_location): Delete declarations.
1411 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1412 breakpoint.h.
1413 (create_ada_exception_breakpoint): Make extern.
1414 (catch_ada_exception_command, catch_assert_command): Moved to
1415 ada-lang.c.
1416 (add_catch_command): Make extern.
1417 (_initilize_breakpoint): Don't install the exception and assert
1418 catchpoint commands here.
1419 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1420 breakpoint.c
1421 (add_catch_command, create_ada_exception_breakpoint): Declare.
1422
c56053d2
PA
14232011-06-22 Pedro Alves <pedro@codesourcery.com>
1424
1425 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1426 the breakpoint to the breakpoint chain here.
1427 (set_raw_breakpoint_without_location): Add the breakpoint to the
1428 breakpoint chain here.
1429 (init_raw_breakpoint): Adjust comments.
1430 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1431 here.
1432 (init_catchpoint): Don't set the catchpoint's breakpoint number
1433 here.
1434 (install_catchpoint): New function.
1435 (create_fork_vfork_event_catchpoint)
1436 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1437 use install_catchpoint.
1438
d2f3fc74
PA
14392011-06-22 Pedro Alves <pedro@codesourcery.com>
1440
1441 * breakpoint.c (create_catchpoint_without_mention)
1442 (create_catchpoint): Delete.
1443
b4d90040
PA
14442011-06-22 Pedro Alves <pedro@codesourcery.com>
1445
1446 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1447 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1448 reference to exec_pathname.
1449 (struct exec_catchpoint): New type.
1450 (dtor_catch_exec): New function.
1451 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1452 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1453 (catch_exec_command_1): Adjust to use init_catchpoint.
1454 (delete_breakpoint): Remove reference to exec_pathname.
1455
be5c67c1
PA
14562011-06-22 Pedro Alves <pedro@codesourcery.com>
1457
1458 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1459 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1460 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1461 reference to syscalls_to_be_caught.
1462 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1463 NULL `dtor'.
1464 (struct syscall_catchpoint): New type.
1465 (dtor_catch_syscall): New function.
1466 (insert_catch_syscall, remove_catch_syscall)
1467 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1468 (print_recreate_catch_syscall): Adjust.
1469 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1470 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1471 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1472 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1473 (masked_watchpoint_breakpoint_ops)
1474 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1475 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1476 there is one. Remove references to syscalls_to_be_caught.
1477 (catching_syscall_number): Adjust.
1478 * ada-lang.c (catch_exception_breakpoint_ops)
1479 (catch_exception_unhandled_breakpoint_ops)
1480 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1481
e29a4733
PA
14822011-06-22 Pedro Alves <pedro@codesourcery.com>
1483
1484 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1485 field.
1486 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1487 reference to forked_inferior_pid.
1488 (struct fork_catchpoint): New type.
1489 (breakpoint_hit_catch_fork, print_it_catch_fork)
1490 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1491 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1492 (create_fork_vfork_event_catchpoint): Adjust to use
1493 init_catchpoint.
1494
346774a9
PA
14952011-06-22 Pedro Alves <pedro@codesourcery.com>
1496
1497 * breakpoint.c (add_to_breakpoint_chain)
1498 (init_raw_breakpoint_without_location): New functions, factored
1499 out from ...
1500 (set_raw_breakpoint_without_location): ... this one.
1501 (init_raw_breakpoint): New function, factored out from
1502 set_raw_breakpoint and adjusted to use
1503 init_raw_breakpoint_without_location.
1504 (set_raw_breakpoint): Adjust.
1505 (init_catchpoint): New function, factored out from
1506 create_catchpoint_without_mention and adjusted to use
1507 init_raw_breakpoint.
1508 (create_catchpoint_without_mention): Adjust.
1509
c38c4bc5
TT
15102011-06-22 Tom Tromey <tromey@redhat.com>
1511
1512 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1513 argument of 0 specially.
1514
b138ce37
YQ
15152011-06-22 Yao Qi <yao@codesourcery.com>
1516
1517 * infrun.c (handle_inferior_event): Remove write-only local variable
1518 `sw_single_step_trap_p'.
1519
03de6823
TT
15202011-06-20 Tom Tromey <tromey@redhat.com>
1521
1522 * symtab.c (lookup_language_this): End loop if block is NULL.
1523
66a17cb6
TT
15242011-06-17 Tom Tromey <tromey@redhat.com>
1525
1526 * valops.c (value_of_this): Use lookup_language_this.
1527 * symtab.h (lookup_language_this): Declare.
1528 * symtab.c (lookup_language_this): New function.
1529 (lookup_symbol_aux): Use lookup_language_this.
1530 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1531
7518bff5
TT
15322011-06-17 Tom Tromey <tromey@redhat.com>
1533
1534 * value.h (value_of_this): Update.
1535 (value_of_local): Remove.
1536 * valops.c (value_of_this): Rename from value_of_local. Change
1537 parameters.
1538 * p-exp.y (exp): Update.
1539 (variable): Likewise.
1540 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1541
aee28ec6
TT
15422011-06-17 Tom Tromey <tromey@redhat.com>
1543
1544 * valops.c (value_of_local): Complain if NAME is NULL.
1545 * std-operator.def (OP_OBJC_SELF): Remove.
1546 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1547 * objc-exp.y (name_not_typename): Use OP_THIS.
1548 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1549 name for "this".
1550 <OP_OBJC_SELF>: Remove.
1551 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1552
eed8f803
TG
15532011-06-16 Tristan Gingold <gingold@adacore.com>
1554
1555 * python/py-events.h (gdb_py_events): Make it extern.
1556 * python/py-evtregistry.c (gdb_py_events): Declare.
1557
864ac8a7
HZ
15582011-06-16 Hui Zhu <teawater@gmail.com>
1559
1560 * remote.c (remote_trace_set_readonly_regions): Add check for
1561 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1562 output warning.
1563
ef7e8358
UW
15642011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1565
1566 * arm-linux-tdep.c: Include "auxv.h".
1567 (AT_HWCAP): Define.
1568 (ARM_LINUX_SIZEOF_VFP): Define.
1569 (arm_linux_supply_vfp): New function.
1570 (arm_linux_collect_vfp): Likewise.
1571 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1572 (arm_linux_fpa_regset_sections): New variable.
1573 (arm_linux_vfp_regset_sections): Likewise.
1574 (arm_linux_core_read_description): New function.
1575 (arm_linux_init_abi): Install arm_linux_core_read_description and
1576 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1577 appropriate for the architecture.
1578 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1579 (tdesc_arm_with_m): Declare.
1580 (tdesc_arm_with_iwmmxt): Likewise.
1581 (tdesc_arm_with_vfpv2): Likewise.
1582 (tdesc_arm_with_vfpv3): Likewise.
1583 (tdesc_arm_with_neon): Likewise.
1584 * arm-linux-nat.c: Move features/*.c includes ...
1585 * arm-tdep.c: ... here.
1586 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1587 target description data structures ...
1588 * arm-tdep.c (_initialize_arm_tdep): ... here.
1589 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1590 HWCAP_VFPv3D16): Move definitions ...
1591 * arm-linux-tdep.h: ... here.
1592
c2fa21f1
HZ
15932011-06-15 Hui Zhu <teawater@gmail.com>
1594
1595 * remote.c (remote_trace_set_readonly_regions): Add a check for
1596 target_buf_size.
1597
dd707e8e
TT
15982011-06-14 Tom Tromey <tromey@redhat.com>
1599
1600 * coffread.c (coffread_objfile): Rename from current_objfile.
1601 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1602 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1603
86cc0029
TT
16042011-06-14 Tom Tromey <tromey@redhat.com>
1605
1606 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1607 (class_symtab): Remove.
1608 (jv_dynamics_progspace_key): New global.
1609 (jv_per_objfile_free): Reset program space data. Update assert.
1610 Don't clear globals.
1611 (get_dynamics_objfile): Use and set program space data.
1612 (get_java_class_symtab): Use get_dynamics_objfile.
1613 (add_class_symbol): Likewise.
1614 (java_link_class_type): Likewise.
1615 (java_object_type, jv_clear_object_type, set_java_object_type):
1616 Remove.
1617 (get_java_object_type): Update. Don't cache result.
1618 (is_object_type): Don't call set_java_object_type.
1619 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1620 initialize jv_dynamics_progspace_key.
1621
91a81f69
TT
16222011-06-14 Tom Tromey <tromey@redhat.com>
1623
1624 * symtab.h (current_objfile): Don't declare.
1625 * objfiles.h (current_objfile): Don't declare.
1626 * objfiles.c (current_objfile): Remove.
1627 * mdebugread.c (current_objfile): New file-scope global.
1628 * dbxread.c (current_objfile): New file-scope global.
1629 * coffread.c (current_objfile): New file-scope global.
1630
dc7eb48e
PA
16312011-06-13 Pedro Alves <pedro@codesourcery.com>
1632
1633 * top.h (line): Rename to ...
1634 (saved_command_line): ... this.
1635 (linesize): Rename to ...
1636 (saved_command_line_size): ... this.
1637 * top.c (line): Rename to ...
1638 (saved_command_line): ... this.
1639 (linesize): Rename to ...
1640 (saved_command_line_size): ... this.
1641 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1642 * event-top.c (command_line_handler): Adjust.
1643 * main.c (captured_main): Adjust.
1644
0d6c2135
MK
16452011-06-12 Mark Kettenis <kettenis@gnu.org>
1646
1647 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1648 get_frame_func instead of get_frame_pc to determine the code
1649 address used to construct the frame ID.
1650 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1651 (i386_epilogue_frame_this_id): Likewise.
1652 (i386_epilogue_frame_prev_register): New function.
1653 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1654 (i386_stack_tramp_frame_sniffer): Fix coding style.
1655 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1656 (i386_gdbarch_init): Fix comments.
1657
8bbdd3f4
MK
16582011-06-12 Mark Kettenis <kettenis@gnu.org>
1659
1660 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1661 instruction when walking back through the instruction stream.
1662
533a737e
JK
16632011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1664
1665 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1666 fullname parameters order.
1667
44b13c5a
JK
16682011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1669
1670 Code cleanup.
1671 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1672 for fun.
1673 * psymtab.c (map_symbol_filenames_psymtab)
1674 (map_partial_symbol_filenames): Likewise.
1675 * psymtab.h: Include symfile.h.
1676 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1677 * symfile.h (symbol_filename_ftype): New.
1678 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1679 map_symbol_filenames, clarify more the naming in comment.
1680
0b5574da
DE
16812011-06-07 Doug Evans <dje@google.com>
1682
1683 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 1684 Look for ../../gdb, for fullname.exp.
0b5574da 1685
5be4dfca
JK
16862011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1687 Pedro Alves <pedro@codesourcery.com>
1688
1689 * cli/cli-cmds.c (shell_escape): Use waitpid.
1690 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1691
316a8b21
TG
16922011-06-07 Tristan Gingold <gingold@adacore.com>
1693
1694 * xcoffread.c (dwarf2_xcoff_names): New variable.
1695 (aix_process_linenos): Add a guard.
1696 (xcoff_symfile_finish): Free dwarf2.
1697 (xcoff_initial_scan): Add dwarf2 support.
1698
3dd5b83d
PA
16992011-06-06 Pedro Alves <pedro@codesourcery.com>
1700
1701 * infcall.c (run_inferior_call): Don't mask async. Instead force
1702 a synchronous wait, if the target can async.
1703
1704 * target.h (struct target_ops): Delete to_async_mask.
1705 (target_async_mask): Delete.
1706 * target.c (update_current_target): Delete references to to_async_mask.
1707 * linux-nat.c (linux_nat_async_mask_value): Delete.
1708 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1709 to linux_nat_async_mask_value.
1710 (linux_nat_async_mask): Delete.
1711 (linux_nat_async, linux_nat_close): Remove references to
1712 linux_nat_async_mask_value.
1713 * record.c (record_async_mask_value): Delete.
1714 (record_async): Remove references to record_async_mask_value.
1715 (record_async_mask): Delete.
1716 (record_can_async_p, record_is_async_p): Remove references to
1717 record_async_mask_value.
1718 (init_record_ops, init_record_core_ops): Remove references to
1719 record_async_mask.
1720 * remote.c (remote_async_mask_value): Delete.
1721 (init_remote_ops): Remove reference to remote_async_mask.
1722 (remote_can_async_p, remote_is_async_p): Remove references to
1723 remote_async_mask_value.
1724 (remote_async): Remove references to remote_async_mask_value.
1725 (remote_async_mask): Delete.
1726
1727 * infrun.c (fetch_inferior_event): Don't claim registers changed
1728 if the current thread is already not executing.
1729
64b9b334
JB
17302011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1731
1732 From Stephen Kitt <steve@sk2.org>
1733 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1734 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1735
325663dc
JB
17362011-06-03 Joel Brobecker <brobecker@adacore.com>
1737
1738 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1739 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1740
8cf64490
TT
17412011-06-03 Tom Tromey <tromey@redhat.com>
1742
1743 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1744 code fields.
1745 * python/py-exitedevent.c (create_exited_event_object): Change
1746 type of 'exit_code'. Optionally add exit_code attribute.
1747 (emit_exited_event): Change type of 'exit_code'.
1748 * python/py-event.h (emit_exited_event): Update.
1749 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1750 * infrun.c (handle_inferior_event): Set exit code fields on
1751 inferior.
1752 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1753 fields.
1754 * inferior.c (exit_inferior_1): Initialize new fields.
1755
8ddd9a20
TT
17562011-06-03 Tom Tromey <tromey@redhat.com>
1757
1758 * dwarf2expr.c (get_signed_type): New function.
1759 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1760
8dfd1e6d
KS
17612011-06-02 Keith Seitz <keiths@redhat.com>
1762
1763 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1764
65fdb766
PA
17652011-06-02 Pedro Alves <pedro@codesourcery.com>
1766
1767 * top.h (simplified_command_loop): Delete declaration.
1768
f4b8c29b
MF
17692011-06-01 Mike Frysinger <vapier@gentoo.org>
1770
1771 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1772 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1773
1706c199
YQ
17742011-06-01 Yao Qi <yao@codesourcery.com>
1775
1776 * objfiles.h (obj_section_addr): Update reference to objfile from
1777 `abfd' to `obfd'.
1778 (obj_section_endaddr): Likewise.
1779
d19cd713 17802011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
1781
1782 * MAINTAINERS: Update my email address and affiliation. Also
1783 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1784
e8eb7bc5
KS
17852010-05-31 Keith Seitz <keiths@redhat.com>
1786
1787 PR c++/12750
1788 * linespec.c (get_search_block): New function.
1789 (find_methods): Add FILE_SYMTATB parameter and use it and
1790 get_search_block to pass an appropriate block to
1791 lookup_symbol_in_namespace.
1792 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1793 Check if *ARGPTR starts with a filename first.
1794 If it does, call locate_first_half again to locate the next
1795 "first half" of the linespec.
1796 Pass FILE_SYMTATB to decode_objc and decode_compound.
1797 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1798 (locate_first_half): Stop on the first colon seen.
1799 (decode_compound): Add FILE_SYMTAB parameter.
1800 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1801 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1802 get_search_block with lookup_symbol.
1803 (find_method): Add FILE_SYMTAB parameter and pass it to
1804 find_methods.
1805 (decode_objc): Use get_search_block.
1806
2b1dbab0
KS
18072010-05-31 Keith Seitz <keiths@redhat.com>
1808
1809 PR symtab/12704
1810 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1811 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1812 and CP_ANONYMOUS_NAMESPACE_LEN.
1813 (cp_is_anonymous): Likewise.
1814 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1815 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1816 * dwarf2read.c (namespace_name): Likewise.
1817 (fixup_partial_die): Likewise.
1818 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1819 seen in the input, keep it.
1820
6d549500
PA
18212011-05-30 Pedro Alves <pedro@codesourcery.com>
1822
1823 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1824 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1825 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1826 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1827 * remote.c (_initialize_remote): Register
1828 async_remote_interrupt_twice directly as
1829 sigint_remote_twice_token event.
1830
395bff70
PA
18312011-05-30 Pedro Alves <pedro@codesourcery.com>
1832
1833 * target.h (enum inferior_event_type): Delete INF_ERROR.
1834 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1835
97224164
PA
18362011-05-30 Pedro Alves <pedro@codesourcery.com>
1837
1838 * interps.c (interp_set): Don't cancel continuations.
1839
07e78767
JK
18402011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1841
1842 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1843
fa4cd53f
PA
18442011-05-30 Pedro Alves <pedro@codesourcery.com>
1845
1846 * continuations.h (continuation_ftype): Add `err' parameter.
1847 Document parameters.
1848 (do_all_continuations, do_all_continuations_thread)
1849 (do_all_intermediate_continuations)
1850 (do_all_intermediate_continuations_thread)
1851 (do_all_inferior_continuations): Add `err' parameter.
1852 * continuations.c (do_my_continuations_1, do_my_continuations)
1853 (do_all_inferior_continuations, do_all_continuations_ptid)
1854 (do_all_continuations_thread_callback)
1855 (do_all_continuations_thread, do_all_continuations)
1856 (do_all_intermediate_continuations_thread_callback)
1857 (do_all_intermediate_continuations_thread)
1858 (do_all_intermediate_continuations): Add `err' parameter, and pass
1859 it down all the way to the continuations proper.
1860 * inf-loop.c (inferior_event_handler): If fetching an inferior
1861 event throws an error, don't pop the target, and still call the
1862 continuations, but with `err' set. Adjust all other continuation
1863 calls.
1864 * breakpoint.c (until_break_command_continuation): Add `err'
1865 parameter.
1866 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1867 issue another step if `err' is set.
1868 (struct until_next_continuation_args): New.
1869 (until_next_continuation): Add `err' parameter. Adjust.
1870 (until_next_command): Adjust.
1871 (struct finish_command_continuation_args): Add `thread' field.
1872 (finish_command_continuation): Add `err' parameter. Handle it.
1873 (finish_forward): Adjust.
1874 (attach_command_continuation): Add `err' parameter. Handle it.
1875 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1876 cancel the continuations.
1877 * interps.c (interp_set): Adjust to cancel the continuations.
1878 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1879 continuations rather than discarding.
1880 (free_thread): Don't clear thread inferior resources here.
1881 (delete_thread_1): Do it here instead. And do it before removing
1882 the thread from the threads list. Tag the thread as exited before
1883 clearing thread inferior resources.
1884
c2949be0
JB
18852011-05-30 Joel Brobecker <brobecker@adacore.com>
1886
1887 * infcall.c (call_function_by_hand): Rephrase error message.
1888
619cebe8
PA
18892011-05-27 Pedro Alves <pedro@codesourcery.com>
1890
1891 * defs.h (struct thread_info, struct inferior): Delete forward
1892 declarations.
1893 * breakpoint.h (struct thread_info): New forward declaration.
1894 * observer.sh (struct inferior): New forward declaration.
1895 * python/python-internal.h (struct inferior): New forward
1896 declaration.
1897
be34f849
PA
18982011-05-27 Pedro Alves <pedro@codesourcery.com>
1899
1900 * defs.h (struct continuation, continuation_ftype)
1901 (continuation_free_arg_ftype, add_continuation)
1902 (do_all_continuations, do_all_continuations_thread)
1903 (discard_all_continuations, discard_all_continuations_thread)
1904 (add_intermediate_continuation, do_all_intermediate_continuations)
1905 (do_all_intermediate_continuations_thread)
1906 (discard_all_intermediate_continuations)
1907 (discard_all_intermediate_continuations_thread)
1908 (add_inferior_continuation, do_all_inferior_continuations)
1909 (discard_all_inferior_continuations): Move to ...
1910 * continuations.h: ... this new file.
1911 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1912 infcmd.c, inferior.c, infrun.c, interps.c: Include
1913 continuations.h.
1914
432b4d03
JK
19152011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1916 Doug Evans <dje@google.com>
1917
1918 Fix PR 10970, PR 12702.
1919 * linux-nat.c (linux_lwp_is_zombie): New function.
1920 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1921 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1922
b0f260d6
PA
19232011-05-27 Pedro Alves <pedro@codesourcery.com>
1924
1925 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1926 typedefs.
1927 (add_continuation, add_intermediate_continuation)
1928 (add_inferior_continuation): Use them.
1929 * continuations.c (struct continuation): Use them.
1930 (make_continuation_ftype): Delete.
1931 (make_continuation, add_inferior_continuation, add_continuation)
1932 (add_intermediate_continuation): Use continuation_ftype and
1933 continuation_free_arg_ftype. Rename parameters to shorter names.
1934
af1e9a32
PA
19352011-05-27 Pedro Alves <pedro@codesourcery.com>
1936
1937 * continuations.c (make_continuation): Make it return void.
1938 (do_my_continuations): Rename to ...
1939 (do_my_continuations_1): ... this. Remove old_chain parameter and
1940 adjust.
1941 (do_my_continuations): New.
1942 (discard_my_continuations): Rename to ...
1943 (discard_my_continuations_1): ... this. Remove old_chain
1944 parameter and adjust.
1945 (discard_my_continuations): New.
1946 (add_inferior_continuation): Simplify.
1947 (do_all_inferior_continuations): Reimplement on top
1948 do_my_continuations.
1949 (discard_all_inferior_continuations): Simplify.
1950 (add_continuation): Simplify.
1951 (do_all_continuations_ptid): Simplify.
1952 (discard_all_continuations_thread_callback): Simplify.
1953 (add_intermediate_continuation): Simplify.
1954 (discard_all_intermediate_continuations_thread_callback):
1955 Simplify.
1956
50c0c017
PA
19572011-05-27 Pedro Alves <pedro@codesourcery.com>
1958
1959 * utils.c (struct continuation, add_continuation)
1960 (add_inferior_continuation)
1961 (do_all_inferior_continuations, discard_all_inferior_continuations)
1962 (restore_thread_cleanup, do_all_continuations_ptid)
1963 (do_all_continuations_thread_callback)
1964 (do_all_continuations_thread, do_all_continuations)
1965 (discard_all_continuations_thread_callback)
1966 (discard_all_continuations_thread, discard_all_continuations)
1967 (add_intermediate_continuation)
1968 (do_all_intermediate_continuations_thread_callback)
1969 (do_all_intermediate_continuations_thread)
1970 (do_all_intermediate_continuations)
1971 (discard_all_intermediate_continuations_thread_callback)
1972 (discard_all_intermediate_continuations_thread)
1973 (discard_all_intermediate_continuations): Move to ...
1974 * continuations.c: ... this new file, and adjust to no longer
1975 implement continuations on top of cleanups.
1976 * Makefile.in (SFILES): Add continuations.c.
1977 (COMMON_OBS): Add continuations.o.
1978
d8b34453
PA
19792011-05-26 Pedro Alves <pedro@codesourcery.com>
1980
1981 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1982 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1983 Internal error on invalid values.
1984 * reverse.c: Don't handle EXEC_ERROR.
1985 * mi/mi-main.c: Don't handle EXEC_ERROR.
1986
32231432
PA
19872011-05-26 Pedro Alves <pedro@codesourcery.com>
1988
1989 * record.c: Include event-loop.h, inf-loop.h.
1990 (record_beneath_to_async): New global.
1991 (tmp_to_async): New global.
1992 (record_async_inferior_event_token): New global.
1993 (record_open_1): Don't error out if async is enabled.
1994 (record_open): Handle to_async. Create an async event source in
1995 the event loop.
1996 (record_close): Delete the async event source.
1997 (record_resumed): New global.
1998 (record_execution_dir): New global.
1999 (record_resume, record_core_resume): Set them. Register the
2000 target on the event loop.
2001 (record_wait): Rename to ...
2002 (record_wait_1): ... this. Add more debug output. Handle
2003 TARGET_WNOHANG, and the target beneath returning
2004 TARGET_WAITKIND_IGNORE.
2005 (record_wait): Reimplement on top of record_wait_1.
2006 (record_async_mask_value): New global.
2007 (record_async, record_async_mask, record_can_async_p)
2008 (record_is_async_p, record_execution_direction): New functions.
2009 (init_record_ops, init_record_core_ops): Install new methods.
2010 * infrun.c (fetch_inferior_event): Temporarily switch the global
2011 execution direction to the direction the target was going.
2012 (execution_direction): Change type to int.
2013 * target.c (default_execution_direction): New function.
2014 (update_current_target): Inherit and de_fault
2015 to_execution_direction.
2016 * target.h (struct target_ops) <to_execution_direction>: New
2017 field.
2018 (target_execution_direction): New macro.
2019 * inferior.h (execution_direction): Change type to int.
2020
949dc678
PA
20212011-05-26 Pedro Alves <pedro@codesourcery.com>
2022
2023 * infcall.c (call_function_by_hand): Don't allow calling functions
2024 in reverse execution mode.
2025
c13bd2b5
PA
20262011-05-26 Pedro Alves <pedro@codesourcery.com>
2027
2028 * infcmd.c (finish_command): Allow async finish in reverse.
2029
6938fd34
YQ
20302011-05-26 Yao Qi <yao@codesourcery.com>
2031
2032 * gdb_thread_db.h: Delete. Move to ...
2033 * common/gdb_thread_db.h: ... here.
2034
9da8c2a0
PA
20352011-05-26 Pedro Alves <pedro@codesourcery.com>
2036
2037 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2038 function's entry point instead of a manually managed momentary
2039 breakpoint, and only ever issue one proceed call.
2040 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2041 doing a reverse-finish, switch to stepi mode, to do another step.
2042 (insert_step_resume_breakpoint_at_sal): Make public.
2043 (normal_stop): No need to save function value return registers if
2044 going reverse.
2045 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2046
2c03e5be
PA
20472011-05-26 Pedro Alves <pedro@codesourcery.com>
2048
2049 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2050 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2051 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2052 at the end.
2053 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2054 step-resume breakpoints.
2055 (print_it_typical): Handle bp_hp_step_resume.
2056 (bpstat_what): Ditto.
2057 (bptype_string): Ditto.
2058 (print_one_breakpoint_location): Ditto.
2059 (allocate_bp_location): Ditto.
2060 (mention): Ditto.
2061 (breakpoint_re_set_one): Ditto.
2062 * infrun.c (handle_inferior_event): Adjust. Split
2063 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2064 BPSTAT_WHAT_HP_STEP_RESUME.
2065 (insert_step_resume_breakpoint_at_sal): Rename to ...
2066 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2067 parameter. Handle it.
2068 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2069 insert_step_resume_breakpoint_at_sal_1.
2070 (insert_step_resume_breakpoint_at_frame): Rename to ...
2071 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2072 set a high-priority step-resume breakpoint.
2073 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2074 (insert_step_resume_breakpoint_at_caller): Ditto.
2075
51be5b68
PA
20762011-05-26 Pedro Alves <pedro@codesourcery.com>
2077
2078 * breakpoint.c (iterate_over_related_breakpoints): New.
2079 (do_map_delete_breakpoint): New.
2080 (delete_command): Pass do_map_delete_breakpoint to
2081 map_breakpoint_numbers.
2082 (do_disable_breakpoint): New.
2083 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2084 breakpoints.
2085 (do_enable_breakpoint): Rename to ...
2086 (enable_breakpoint_disp): ... this.
2087 (enable_breakpoint): Adjust.
2088 (do_enable_breakpoint): New.
2089 (enable_once_breakpoint): Delete.
2090 (do_map_enable_breakpoint): New.
2091 (do_map_enable_once_breakpoint): New.
2092 (enable_once_command, enable_delete_command)
2093 (delete_trace_command): Iterate over the breakpoint's related
2094 breakpoints.
2095
4a1be8d2
PA
20962011-05-26 Pedro Alves <pedro@codesourcery.com>
2097
2098 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2099 for ALPHA_ZERO_REGNUM.
2100 (alpha_supply_int_regs): Explicitly supply zero as the value for
2101 ALPHA_ZERO_REGNUM in the register cache.
2102 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2103
59d70315
YQ
21042011-05-26 Yao Qi <yao@codesourcery.com>
2105
2106 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2107
251d32d9
TG
21082011-05-26 Tristan Gingold <gingold@adacore.com>
2109
2110 * symfile.h (struct dwarf2_section_names): New type.
2111 (struct dwarf2_debug_sections): New type.
2112 (dwarf2_has_info): Add parameter.
2113 * dwarf2read.c (dwarf2_elf_names): New variable.
2114 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2115 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2116 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2117 (dwarf2_has_info): Add names parameter. Pass names
2118 to dwarf2_locate_sections.
2119 (section_is_p): Rewrite using the names parameter.
2120 (dwarf2_locate_sections): Use section names from the names parameter.
2121 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2122 * elfread.c (read_psyms): Ditto.
2123 * machoread.c (macho_symfile_read): Ditto.
2124
652c71b4
AS
21252011-05-25 Andreas Schwab <schwab@redhat.com>
2126
2127 PR gdb/8677
2128 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2129
f17170e5
KS
21302011-05-24 Keith Seitz <keiths@redhat.com>
2131
2132 PR breakpoint/12803
2133 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2134 (decode_compound): Unconditionally call keep_name_info.
2135
cdac0397
PA
21362011-05-24 Pedro Alves <pedro@codesourcery.com>
2137
2138 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2139 scope, clear its command list.
2140 (map_breakpoint_numbers): Don't walk the related breakpoints list
2141 of each breakpoint.
2142
91d4fe3f
TT
21432011-05-24 Tom Tromey <tromey@redhat.com>
2144
2145 * MAINTAINERS: Move Jim Blandy to past maintainers.
2146
3017a003
TG
21472011-05-24 Tristan Gingold <gingold@adacore.com>
2148
2149 * symfile.h (enum dwarf2_section_enum): New type.
2150 (dwarf2_get_section_info): New prototype.
2151 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2152 section_name by sect. Use a switch to select the info.
2153 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2154 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2155
c91c8c16
PA
21562011-05-24 Pedro Alves <pedro@codesourcery.com>
2157
2158 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2159 shared library event breakpoint if there's no execution.
2160
77bc418a
TJB
21612011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2162
2163 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2164 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2165
c50491a7
TT
21662011-05-23 Tom Tromey <tromey@redhat.com>
2167
2168 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2169 NULL.
2170
6d64e6d4
DE
21712011-05-23 Doug Evans <dje@google.com>
2172
2173 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2174 entry for RuntimeError to doc string.
2175
2067c8d4
JG
21762011-05-23 Jerome Guitton <guitton@adacore.com>
2177
2178 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2179 sequence for probing loops.
2180
b136cd05
PA
21812011-05-23 Pedro Alves <pedro@codesourcery.com>
2182
2183 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2184 comment.
2185
22e74ef9
MK
21862011-05-21 Mark Kettenis <kettenis@gnu.org>
2187
2188 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2189 zero as the value for %g0 in the register cache.
2190 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2191 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2192
842951eb
PA
21932011-05-20 Pedro Alves <pedro@codesourcery.com>
2194
2195 * infrun.c (proceed): Set previous_inferior_ptid here.
2196 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2197 inferior_ptid, not null_ptid.
2198 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2199 (fetch_inferior_event): Nor here.
2200
46cf51e6
PA
22012011-05-20 Pedro Alves <pedro@codesourcery.com>
2202
2203 * inf-loop.c (inferior_event_handler): Only output a message if
2204 verbose.
2205
29ef4c46
LM
22062011-05-20 Luis Machado <lgustavo@codesourcery.com>
2207
2208 * MAINTAINERS: Update my e-mail address.
2209
f148b27e
PA
22102011-05-20 Pedro Alves <pedro@codesourcery.com>
2211
2212 * infrun.c (proceed): Switch the inferior event loop to
2213 INF_EXEC_COMPLETE if the target refused to resume from a
2214 vfork/fork.
2215
09cee04b
PA
22162011-05-20 Pedro Alves <pedro@codesourcery.com>
2217
2218 * infcmd.c: Include "inf-loop.h".
2219 (step_once): When stepping into an inline subroutine, pretend the
2220 target has run. If the target can async, switch the inferior
2221 event loop to INF_EXEC_COMPLETE.
2222 * inferior.h (user_visible_resume_ptid): Declare.
2223 * infrun.c (user_visible_resume_ptid): New function, factored out
2224 from `resume'.
2225 (resume): Use it.
2226 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2227 that the current thread is running. Merge async and sync
2228 branches.
2229
751b8ce1
PA
22302011-05-20 Pedro Alves <pedro@codesourcery.com>
2231
2232 * infcmd.c (step_1): Simplify synchronous case.
2233
e93a69ed
PA
22342011-05-20 Pedro Alves <pedro@codesourcery.com>
2235
2236 * tracepoint.c: Include exceptions.h.
2237 (TFILE_PID): Move higher in file.
2238 (tfile_open): Delay pushing the tfile target until we're assured
2239 the tfile header is present in the file. Wrap reading the initial
2240 newline-terminated lines in TRY_CATCH. Pop the target if the
2241 initial setup failed. Add the tfile's thread immediately
2242 aftwards, before any non-essential setup. Don't skip
2243 post_create_inferior if there are no traceframes present in the
2244 file.
2245 (tfile_close): Remove redundant check for null before xfree call.
2246 (tfile_thread_alive): New function.
2247 (init_tfile_ops): Register it as to_thread_alive callback.
2248
6823e2b1
PA
22492011-05-20 Pedro Alves <pedro@codesourcery.com>
2250
2251 * tracepoint.c (tfile_open): Delete #if 0'd code.
2252
b3c8eb43
JK
22532011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2254
2255 Fix -readnow for -gdwarf-4 unused type units.
2256 * dwarf2read.c (struct signatured_type): Remove the field offset.
2257 (create_signatured_type_table_from_index): Remove its initialization.
2258 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2259 instead. Add a complaint call.
2260 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2261 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2262 (lookup_signatured_type_at_offset, read_signatured_type)
2263 (write_one_signatured_type): Update the field for per_cu.
2264
310afc76
TT
22652011-05-19 Tom Tromey <tromey@redhat.com>
2266
2267 * python/py-inferior.c (python_inferior_exit): Use
2268 target_gdbarch.
2269 (python_on_resume): Likewise.
2270
cf6c5ffb
TT
22712011-05-19 Matt Rice <ratmice@gmail.com>
2272
2273 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2274
fb80a3c5
HZ
22752011-05-19 Hui Zhu <teawater@gmail.com>
2276
2277 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2278
3672b1be
HZ
22792011-05-19 Hui Zhu <teawater@gmail.com>
2280
2281 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2282
ff355380
TT
22832011-05-18 Tom Tromey <tromey@redhat.com>
2284
2285 * dwarf2read.c (dwarf2_add_field): Constify.
2286 * value.c (value_static_field): Constify.
2287 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2288 Now const.
2289 * ax-gdb.c (gen_static_field): Constify
2290
ed731959
JK
22912011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2292
2293 * linux-nat.c (kill_callback): Use SIGKILL first.
2294
967cff16
JB
22952011-05-18 Joel Brobecker <brobecker@adacore.com>
2296
2297 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2298
1d06ead6
TT
22992011-05-18 Tom Tromey <tromey@redhat.com>
2300
2301 * value.c (value_fn_field): Constify.
2302 * symtab.c (gdb_mangle_name): Constify.
2303 * stabsread.c (update_method_name_from_physname): Make 'physname'
2304 argument const.
2305 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2306 const. Use explicit fputc_filtered loop.
2307 (pascal_type_print_base): Constify.
2308 * p-lang.h (pascal_type_print_method_args): Update.
2309 * linespec.c (add_matching_methods): Constify.
2310 (add_constructors): Likewise.
2311 * jv-typeprint.c (java_type_print_base): Constify.
2312 * gdbtypes.h (struct cplus_struct_type)
2313 <fn_fieldlist.fn_field.physname>: Now const.
2314 * dwarf2read.c (compute_delayed_physnames): Constify.
2315 (dwarf2_add_member_fn): Likewise.
2316 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2317
0d9a9a5f
PA
23182011-05-18 Pedro Alves <pedro@codesourcery.com>
2319
2320 * infrun.c (resume): Mention which is the current thread, and its
2321 current PC in debug output.
2322 (prepare_to_proceed): Mention the thread switching in debug
2323 output.
2324
05386e9e
TT
23252011-05-18 Tom Tromey <tromey@redhat.com>
2326
2327 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2328 path check. Use xmalloc and cleanups.
2329 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2330
ee86786c
TT
23312011-05-17 Tom Tromey <tromey@redhat.com>
2332
2333 * cp-valprint.c (cp_print_value_fields): Catch errors from
2334 value_static_field.
2335
9ff3b74f
TT
23362011-05-17 Tom Tromey <tromey@redhat.com>
2337
2338 * dwarf2read.c (dwarf2_get_die_type): Call
2339 get_die_type_at_offset.
2340 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2341 get_base_type function.
2342
cd3da28e
PA
23432011-05-17 Tomas Martinec <fyzmat@gmail.com>
2344
2345 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2346 trap_expected.
2347
fd20d931
DE
23482011-05-16 Doug Evans <dje@google.com>
2349
2350 * python/py-auto-load.c (source_section_scripts): Mention objfile
2351 name in warning.
2352
75fc9810
DE
23532011-05-15 Doug Evans <dje@google.com>
2354
290351b8
DE
2355 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2356 (try_thread_db_load_from_pdir): Call it. If unable to find
2357 libthread_db in directory of libpthread, see if we're looking at
2358 the separate-debug-info copy.
2359
75fc9810
DE
2360 * python/py-autoload.c (print_script): Print "Missing" instead of
2361 "No" for missing scripts.
2362 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2363
9f7bc587
DE
23642011-05-13 Doug Evans <dje@google.com>
2365
2366 * ui-file.c (stdio_file_write_async_safe): Add comment.
2367
093cee7d
HZ
23682011-05-14 Hui Zhu <teawater@gmail.com>
2369
2370 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2371
dbaefcf7
DE
23722011-05-13 Doug Evans <dje@google.com>
2373
98a5dd13
DE
2374 Support $pdir and $sdir in libthread-db-search-path.
2375 * NEWS: Mention $sdir,$pdir.
2376 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2377 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2378 (try_thread_db_load_from_sdir): New function.
2379 (try_thread_db_load_from_dir): New function.
2380 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2381 system directories if search of libthread-db-search-path fails,
2382 that is now done via $sdir.
2383 (has_libpthread): New function.
2384 (thread_db_load): Remove search for libthread_db in directory of
2385 libpthread, that is now done via $pdir.
2386
dbaefcf7
DE
2387 * NEWS: Mention "info auto-load-scripts".
2388 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2389 script_not_found_warning_printed.
2390 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2391 all callers updated. Initialize script_not_found_warning_printed.
2392 (get_auto_load_pspace_data_for_loading): New function.
2393 (maybe_add_script): New function.
2394 (source_section_scripts): Simplify. Only print one warning regardless
2395 of the number of auto-load scripts not found.
2396 (clear_section_scripts): Clear script_not_found_warning_printed.
2397 (auto_load_objfile_script): Record script in hash table.
2398 (count_matching_scripts): New function.
2399 (maybe_print_script): Renamed from maybe_print_section_script, all
2400 callers updated. Rewrite to use ui_out_*.
2401 (info_auto_load_scripts): Renamed from
2402 maintenance_print_section_scripts, all callers updated.
2403 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2404 renamed as "info auto-load-scripts".
2405
9930639c
TT
24062011-05-13 Tom Tromey <tromey@redhat.com>
2407
2408 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2409 (read_sleb128): Likewise.
2410
06826322
TT
24112011-05-13 Tom Tromey <tromey@redhat.com>
2412
2413 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2414 offset display.
2415
01124a23
DE
24162011-05-13 Doug Evans <dje@google.com>
2417
2418 * linux-nat.c (debug_linux_nat_async): Delete.
2419 Replace all references to use debug_linux_nat instead.
2420 (show_debug_linux_nat_async): Delete.
2421 (sigchld_handler): Call ui_file_write_async_safe instead of
2422 fprintf_unfiltered.
2423 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2424 * ui-file.c (struct ui_file): New member to_write_async_safe.
2425 (null_file_write_async_safe): New function.
2426 (ui_file_write_async_safe): New function.
2427 (set_ui_file_write_async_safe): New function.
2428 (ui_file_new): Initialize to_write_async_safe.
2429 (stdio_file_write_async_safe): New function.
2430 (struct stdio_file): New member fd.
2431 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
2432 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2433 fileno.
01124a23
DE
2434 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2435 (set_ui_file_write_async_safe): Declare.
2436 (ui_file_write_async_safe): Declare.
2437
72fc29ff
TT
24382011-05-13 Tom Tromey <tromey@redhat.com>
2439
2440 * utils.c (do_value_free): New function.
2441 (make_cleanup_value_free): Likewise.
2442 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2443 freeing correctly.
2444 (dwarf2_loc_desc_needs_frame): Call
2445 make_cleanup_value_free_to_mark.
2446 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2447 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2448 value_free_to_mark.
2449 (new_dwarf_expr_context): Don't call value_mark.
2450 * dwarf2-frame.c (execute_stack_op): Call
2451 make_cleanup_value_free_to_mark.
2452 * defs.h (make_cleanup_value_free): Declare.
2453
028d0ed5
TJB
24542011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2455
2456 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2457 prepare_execute_command.
2458 * top.c (prepare_execute_command): Return cleanup.
2459 (execute_command): Use cleanup from prepare_execute_command.
2460 * top.h (prepare_execute_command): Change prototype to return
2461 cleanup.
2462 * defs.h (struct value): Add opaque declaration.
2463 (make_cleanup_value_free_to_mark): Add prototype.
2464 * utils.c (do_value_free_to_mark): New function.
2465 (make_cleanup_value_free_to_mark): Likewise.
2466
b087e0ed
TT
24672011-05-12 Tom Tromey <tromey@redhat.com>
2468
2469 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2470 cast left-hand-side to unsigned.
2471
8a9b8146
TT
24722011-05-12 Tom Tromey <tromey@redhat.com>
2473
2474 PR gdb/12617:
2475 * value.h (value_from_contents): Declare.
2476 * value.c (value_from_contents): New function.
2477 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2478 (dwarf2_get_die_type): New function.
2479 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2480 (allocate_piece_closure): Acquire reference to values.
2481 (read_pieced_value): Update for value-based expressions.
2482 (write_pieced_value): Likewise.
2483 (free_pieced_value_closure): Call value_free as needed.
2484 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2485 Update for value-based expressions.
2486 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2487 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2488 <get_base_type>: New field.
2489 (struct dwarf_expr_piece) <v.value>: Change type.
2490 <v.regno>: New field.
2491 (struct dwarf_expr_context) <mark>: New field.
2492 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2493 (dwarf_expr_pop, dwarf_expr_push): Remove.
2494 (dwarf_expr_push_address): Declare.
2495 * dwarf2expr.c (dwarf_arch_cookie): New global.
2496 (struct dwarf_gdbarch_types): New.
2497 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2498 functions.
2499 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2500 static.
2501 (dwarf_expr_push_address): New function.
2502 (dwarf_expr_pop): Now static.
2503 (dwarf_expr_fetch): Change return type.
2504 (dwarf_require_integral): New function.
2505 (dwarf_expr_fetch): Simplify.
2506 (add_piece): Update.
2507 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2508 functions.
2509 (execute_stack_op) <sign_ext>: Remove.
2510 Use values for DWARF stack.
2511 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2512 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2513 New cases.
2514 (_initialize_dwarf2expr): New function.
2515 (add_piece): Update.
2516 (new_dwarf_expr_context): Set new field.
2517 (free_dwarf_expr_context): Call value_free_to_mark.
2518 * dwarf2-frame.c (no_base_type): New function.
2519 (execute_stack_op): Set get_base_type field. Update.
2520
e8d28ef4
TT
25212011-05-12 Tom Tromey <tromey@redhat.com>
2522
2523 * dwarf2read.c (read_common_block): Fix formatting.
2524
d248b706
KY
25252011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2526
2527 * breakpoint.c (disable_breakpoint): Disable all locations
2528 associated with a tracepoint on target if a trace experiment is
2529 running.
2530 (disable_command): Disable a specific tracepoint location on target if
2531 a trace experiment is running.
2532 (do_enable_breakpoint): Enable all locations associated with a
2533 tracepoint on target if a trace experiment is running.
2534 (enable_command) Enable a specific tracepoint location on target if a
2535 trace experiment is running.
2536 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2537 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2538 to_disable_tracepoint.
2539 * target.h: Add declaration of struct bp_location.
2540 (struct target_ops): Add new functions
2541 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2542 to_disable_tracepoint to target operations.
2543 (target_supports_enable_disable_tracepoint): New macro.
2544 (target_enable_tracepoint): New macro.
2545 (target_disable_tracepoint): New macro.
2546 * remote.c (struct remote_state): Add new field.
2547 (remote_enable_disable_tracepoint_feature): New.
2548 (remote_protocol_features): Add new entry.
2549 (remote_supports_enable_disable_tracepoint): New.
2550 (remote_enable_tracepoint): New.
2551 (remote_disable_tracepoint): New.
2552 (init_remote_ops): Add remote_enable_tracepoint,
2553 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2554 to remote operations.
2555 * tracepoint.c (start_tracing): Allow tracing to start without any
2556 tracepoints enabled with just a warning if they can be re-enabled
2557 later.
2558 * NEWS: Add news item for the new behaviour of the enable and disable
2559 GDB commands when applied to tracepoints.
2560 Add news items for the new remote packets QTEnable and QTDisable.
2561
cc88a640
JK
25622011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 * config.in: Regenerate.
2565 * configure: Regenerate.
2566 * configure.ac <--with-system-readline> (for readline_echoing_p):
2567 Remove the test.
2568 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2569 (tui_old_rl_echoing_p): ... here.
2570 (tui_setup_io): Rename extern declaration readline_echoing_p to
2571 _rl_echoing_p. Adjust assignments for the both renames.
2572
1f84b619
TJB
25732011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2574
2575 * symtab.c (lookup_symtab): Run cleanup before returning.
2576
74ac6d43
TT
25772011-05-11 Tom Tromey <tromey@redhat.com>
2578
2579 * dwarf2read.c (handle_data_member_location): New function.
2580 (dwarf2_add_field): Use it.
2581 (read_common_block): Likewise.
2582
5488dafb
JK
25832011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2584
2585 Make addrs->SECTINDEX always defined.
2586 * symfile.c (relative_addr_info_to_section_offsets): Check for
2587 SECTINDEX -1, not for zero ADDR.
2588 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2589 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2590 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2591 on its validity.
2592
84e578fb
DE
25932011-05-10 Doug Evans <dje@google.com>
2594
2471d008
DE
2595 * linux-thread-db.c: Whitespace cleanup.
2596 (try_thread_db_load_1): Fix comment.
2597
84e578fb
DE
2598 * linux-thread-db.c (set_libthread_db_search_path): New function.
2599 (_initialize_thread_db): Add setter for libthread-db-search-path.
2600
673c2bbe
DE
26012011-05-09 Doug Evans <dje@google.com>
2602
478aac75
DE
2603 * NEWS: Mention --with-iconv-bin.
2604 * configure.ac: New option --with-iconv-bin.
2605 * configure: Regenerate.
2606 * config.in: Regenerate.
2607 * defs.h (relocate_gdb_directory): Declare.
2608 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2609 removed progname parameter, and exported. All callers updated.
2610 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2611
673c2bbe
DE
2612 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2613 adding missing call to restore_child_signals_mask.
2614
e4c8541f
PA
26152011-05-09 Pedro Alves <pedro@codesourcery.com>
2616
2617 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2618 parameter.
2619 * infrun.c (proceed, start_remote): Adjust.
2620 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2621 and adjust to not handle it.
2622 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2623 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2624 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2625 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2626 * windows-nat.c (do_initial_windows_stuff): Adjust.
2627 * infcmd.c (attach_command): Adjust.
2628 (notice_new_inferior): Adjust.
2629
a536c6d7
UW
26302011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2631
2632 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2633 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2634 * spu-tdep.c (op_selb): Use correct value.
2635
7845b013
UW
26362011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2637
2638 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2639 "parent" parameter to symbol_file_add_from_bfd call.
2640
9c06b0b4
TJB
26412011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2642 Thiago Jung Bauermann <bauerman@br.ibm.com>
2643
2644 Implement support for PowerPC BookE masked watchpoints.
2645 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2646 section.
2647 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2648 method. Initialize to NULL in all existing breakpoint_ops instances.
2649 (struct breakpoint) <hw_wp_mask>: New field.
2650 * breakpoint.c (is_masked_watchpoint): Add prototype.
2651 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2652 breakpoint's breakpoint_ops.works_in_software_mode if available.
2653 (watchpoints_triggered): Handle the case of a hardware masked
2654 watchpoint trigger.
2655 (watchpoint_check): Likewise.
2656 (works_in_software_mode_watchpoint): New function.
2657 (insert_masked_watchpoint, remove_masked_watchpoint)
2658 (resources_needed_masked_watchpoint)
2659 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2660 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2661 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2662 functions.
2663 (masked_watchpoint_breakpoint_ops): New structure.
2664 (watch_command_1): Check for the existence of the `mask' parameter.
2665 Set b->ops according to the type of hardware watchpoint being created.
2666 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2667 (ppc_linux_remove_mask_watchpoint)
2668 (ppc_linux_masked_watch_num_registers): New functions.
2669 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2670 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2671 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2672 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2673 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2674 (target_masked_watch_num_registers): New functions.
2675 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2676 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2677 methods.
2678 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2679 (target_masked_watch_num_registers): Add prototypes.
2680
8be455d7
JK
26812011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2682
2683 PR 12573
2684 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2685 (producer_is_gcc_ge_4_0): New function.
2686 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2687 symtab->language code.
2688 (var_decode_location): Set cu->has_loclist.
2689 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2690 skip. Intialize force_skip from locations_valid. Move the prologue
2691 skipping code into two passes.
2692 * symtab.h (struct symtab): Make the primary field a bitfield. New
2693 field locations_valid.
2694
d8228535
JK
26952011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2696
2697 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2698 (classify_inner_name): Call cp_lookup_nested_type with
2699 yylval.tsym.type.
2700 * cp-namespace.c (cp_lookup_nested_type): New variable
2701 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2702 type_name_no_tag_or_error with saved_parent_type.
2703 * dwarf2read.c (load_partial_dies): Read in any children of
2704 DW_TAG_typedef with complaint in such case.
2705 * gdbtypes.c (type_name_no_tag_or_error): New function.
2706 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2707 * valops.c (destructor_name_p): New comment for parameter type. Remove
2708 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2709 * value.h (destructor_name_p): Remove type const.
2710
1976171a
JK
27112011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2712
2713 * symtab.c (compare_symbol_name): New function.
2714 (completion_list_add_name, expand_partial_symbol_name): Call it,
2715 remove the variable ncmp.
2716 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2717 gdb_assert it.
2718
a9634178
TJB
27192011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2720
2721 Demote to sw watchpoint only in update_watchpoint.
2722 * breakpoint.c (update_watchpoint): Change between software and
2723 hardware watchpoint for all kinds of watchpoints, not just
2724 read/write ones. Determine b->exact value here instead of
2725 in watch_command_1. Error out if there are not enough resources
2726 for a read or access hardware watchpoint.
2727 (watch_command_1): Remove logic of checking whether there are
2728 enough resources available, since update_watchpoint will do that
2729 work now. Don't set b->exact here. Catch exceptions thrown by
2730 update_watchpoint and delete the watchpoint.
2731 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2732 Use target_exact_watchpoints instead.
2733 (delete_breakpoint): Notify observers only if deleted watchpoint
2734 has a breakpoint number assigned to it.
2735
4c67c798
JJ
27362011-05-05 Janis Johnson <janisjo@codesourcery.com>
2737
2738 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2739
a3fcb948
JG
27402011-05-05 Jerome Guitton <guitton@adacore.com>
2741
2742 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2743 New functions.
2744 (i386_stack_tramp_frame_unwind): New static global.
2745 (i386_match_pattern): New function, extracted from i386_match_insn.
2746 (i386_match_insn): Use i386_match_pattern.
2747 (i386_match_insn_block): New function.
2748 (i386_tramp_chain_in_reg_insns)
2749 (i386_tramp_chain_on_stack_insns): New static variables.
2750 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2751 of unwinders.
2752
4d393d60
JM
27532011-05-04 Joseph Myers <joseph@codesourcery.com>
2754
2755 * configure.host (xscale*): Don't handle target.
2756 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2757 handle targets.
2758
f70bd40b
YQ
27592011-05-04 Yao Qi <yao@codesourcery.com>
2760
2761 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2762
dd3295ee
JB
27632011-05-03 Joel Brobecker <brobecker@adacore.com>
2764
2765 Revert:
2766 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2767 | * elfread.c (elf_symtab_read): Stop memory leak.
2768
90375a0e
PM
27692011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2770
2771 * nto-tdep.c (nto_target): Replace deprecated call to
2772 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2773
d07205c2
JK
27742011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 Fix false GCC warning.
2777 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2778
1e718ff1
TJB
27792011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2780
2781 * breakpoint.c (update_watchpoint): Move code to change
2782 the enable state of breakpoint from here ...
2783 (do_enable_breakpoint): ... to here.
2784
35bef4fd
TT
27852011-04-26 Andrew Gontarek <andrewg@cray.com>
2786
78290264
PP
2787 * valprint.c (val_print_array_elements): Fixed poor performance
2788 of printing very large arrays with repeat_count_threshold set
2789 to unlimited. New comment.
35bef4fd 2790
38a714bb
TT
27912011-04-29 Tom Tromey <tromey@redhat.com>
2792
2793 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2794 (mi_parse): Likewise.
2795 * breakpoint.c (break_range_command): Use sizeof char*, not
2796 char**.
2797 (create_breakpoint): Likewise.
2798 (parse_breakpoint_sals): Likewise.
2799
eb73ad13
PA
28002011-04-29 Pedro Alves <pedro@codesourcery.com>
2801
2802 * linux-nat.c (linux_child_remove_fork_catchpoint)
2803 (linux_child_remove_vfork_catchpoint)
2804 (linux_child_remove_exec_catchpoint): New functions.
2805 (linux_target_install_ops): Install them.
2806
d65aec65
PM
28072011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2808
2809 PR mi/12531
2810
2811 * varobj.c (install_default_visualizer): Do not install a
2812 visualizer if the varobj is CPLUS_FAKE_CHILD.
2813 (construct_visualizer): Likewise.
2814
165195f4
JK
28152011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2816
2817 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2818 case insensitive comparison.
2819
30852783
UW
28202011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2821
2822 * infrun.c (proceed): Revert previous change.
2823 (resume): Instead, handle the case of signal delivery while stepping
2824 off a breakpoint location here, and only if software single-stepping
2825 is used. Handle nested signals.
2826
7ff120b4
YQ
28272011-04-28 Yao Qi <yao@codesourcery.com>
2828
2829 * arm-tdep.c (copy_unmodified): Rename to ...
2830 (arm_copy_unmodified): .. this. New.
2831 (copy_preload): Move common part to ...
2832 (install_preload): .. this. New.
2833 (arm_copy_preload): New.
2834 (copy_preload_reg): Move common part to ...
2835 (install_preload_reg): ... this. New.
2836 (arm_copy_preload_reg): New.
2837 (copy_b_bl_blx): Move common part to ...
2838 (install_b_bl_blx): .. this. New.
2839 (arm_copy_b_bl_blx): New.
2840 (copy_bx_blx_reg): Move common part to ...
2841 (install_bx_blx_reg): ... this. New.
2842 (arm_copy_bx_blx_reg): New.
2843 (copy_alu_reg): Move common part to ...
2844 (install_alu_reg): ... this. New.
2845 (arm_copy_alu_reg): New.
2846 (copy_alu_shifted_reg): Move common part to ...
2847 (install_alu_shifted_reg): ... this. New.
2848 (copy_ldr_str_ldrb_strb): Move common part to ...
2849 (install_ldr_str_ldrb_strb): ... this. New.
2850 (arm_copy_ldr_str_ldrb_strb): New.
2851 (copy_copro_load_store): Move some common part to ...
2852 (install_copy_copro_load_store): ... this. New.
2853 (arm_copy_copro_load_store): New.
2854 (copy_svc): Delete.
2855 (arm_copy_svc): Renamed from copy_svc.
2856 (copy_undef): Delete.
2857 (arm_copy_undef): Renamed from copy_undef.
2858 (decode_ext_reg_ld_st): Delete.
2859 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2860 (decode_svc_copro): Delete.
2861 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2862 (copy_copro_load_store, copy_alu_imm): update callers.
2863 (copy_extra_ld_st, copy_block_xfer): Likewise.
2864 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2865 (decode_miscellaneous, decode_dp_misc): Likewise.
2866 (decode_ld_st_word_ubyte, decode_media): Likewise.
2867 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2868 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2869 (decode_unconditional, decode_miscellaneous): Likewise.
2870 (decode_media, decode_b_bl_ldmstm): Likewise.
2871 (arm_process_displaced_insn): Likewise..
2872 (decode_misc_memhint_neon): Delete.
2873 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2874 (decode_miscellaneous): Delete.
2875 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2876 (decode_dp_misc): Delete.
2877 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2878 (decode_ld_st_word_ubyte): Delete.
2879 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2880 (decode_media): Delete.
2881 (arm_decode_media): Renamed from decode_media.
2882 (decode_b_bl_ldmstm): Delete.
2883 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2884 (decode_ext_reg_ld_st): Delete.
2885 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2886 (decode_unconditional): Delete.
2887 (arm_decode_unconditional): Renamed from decode_unconditional.
2888
559a7a62
JK
28892011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2890
2891 Case insensitive lookups implementation.
2892 * dwarf2read.c: Include ctype.h.
2893 (struct mapped_index): New field version.
2894 (mapped_index_string_hash): New parameter index_version. New comment
2895 for it. Call tolower appropriately.
2896 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2897 Choose the right index version for mapped_index_string_hash.
2898 (dwarf2_read_index): Support also the index version 5. Initialize the
2899 new struct mapped_index field version.
2900 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2901 (find_slot): Explain the version needs. Pass INT_MAX for the new
2902 parameter.
2903 (write_psymtabs_to_index): Produce version 5.
2904 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2905 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2906 * psymtab.c (lookup_partial_symbol): Find the
2907 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2908 entries.
2909 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2910 NAME lowercasing.
2911 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2912 (completion_list_add_name): New variable ncmp, initialize it, use it.
2913 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2914 * utils.c (strcmp_iw): Support case_sensitive_off.
2915 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2916 New function comment part. New variables saved_string1,
2917 saved_string2 and case_pass. Add a proper second pass.
2918
681bf369
JK
29192011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2920
2921 Replace re_comp/re_exec by regcomp/regexec.
2922 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2923 (search_symbols_name_matches): Use them, use regexec.
2924 (search_symbols): New variable retval_chain, adjust the use of
2925 old_chain against it. Replace re_comp by regcomp. Use the new struct
2926 search_symbols_data fields, use regexec instead of re_exec.
2927
b11b1f88
JK
29282011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2929
2930 Format the code for the next patch.
2931 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2932 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2933 New variables c1 and c2.
2934
2484c66b
UW
29352011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2936
2937 * infrun.c (proceed): Do not single-step into signal delivery
2938 when stepping off a breakpoint location.
2939 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2940 (insert_step_resume_breakpoint_at_caller): Likewise.
2941 (insert_step_resume_breakpoint_at_sal): Likewise.
2942 (insert_longjmp_resume_breakpoint): Likewise.
2943
47423772
YQ
29442011-04-27 Yao Qi <yao@codesourcery.com>
2945
2946 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2947
13bdd2e7
JB
29482011-04-27 Joel Brobecker <brobecker@adacore.com>
2949
2950 * procfs.c (procfs_pass_signals): Fix advance declaration.
2951
2455069d
UW
29522011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2953
2954 * target.h (struct target_ops): Remove to_notice_signals;
2955 add to_pass_signals.
2956 (target_notice_signals): Remove.
2957 (target_pass_signals): Add prototype.
2958 * target.c (update_current_target): Remove to_notice_signals;
2959 mention to_pass_signals.
2960 (target_pass_signals): New function.
2961 (debug_to_notice_signals): Remove.
2962 (setup_target_debug): Do not install debug_to_notice_signals.
2963
2964 * infrun.c (signal_pass): New global.
2965 (resume): Call target_pass_signals.
2966 (handle_inferior_event): Report all signals while stepping over
2967 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2968 are re-inserted when stepping over a signal handler.
2969 (signal_cache_update): New function.
2970 (signal_stop_update): Call it.
2971 (signal_print_update): Likewise.
2972 (signal_pass_update): Likewise.
2973 (handle_command): Call signal_cache_update and target_pass_signals
2974 instead of target_notice_signals.
2975 (_initialize_infrun): Initialize signal_pass.
2976
2977 * linux-nat.c (pass_mask): New global.
2978 (linux_nat_pass_signals): New function.
2979 (linux_nat_create_inferior): Report all signals initially.
2980 (linux_nat_attach): Likewise.
2981 (linux_nat_resume): Use pass_mask to decide whether to directly
2982 handle an inferior signal.
2983 (linux_nat_wait_1): Likewise.
2984 (linux_nat_add_target): Install to_pass_signals callback.
2985
2986 * nto-procfs.c (notice_signals): Remove.
2987 (procfs_resume): Do not call notice_signals.
2988 (procfs_notice_signals): Remove.
2989 (procfs_pass_signals): New function.
2990 (init_procfs_ops): Install to_pass_signals callback instead of
2991 to_notice_signals callback.
2992 (_initialize_procfs): Report all signals initially.
2993
2994 * procfs.c (procfs_notice_signals): Remove.
2995 (procfs_pass_signals): New function.
2996 (procfs_target): Install to_pass_signals callback instead of
2997 to_notice_signals callback.
2998 (register_gdb_signals): Remove.
2999 (procfs_debug_inferior): Report all signals initially.
3000 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3001
3002 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3003 parameters; use them instead of calling signal_..._state routines.
3004 (remote_notice_signals): Remove.
3005 (remote_start_remote): Report all signals initially.
3006 (remote_resume): Do not call remote_pass_signals.
3007 (_initialize_remote): Install to_pass_signals callback instead of
3008 to_notice_signals callback.
3009
46c6471b
PA
30102011-04-27 Pedro Alves <pedro@codesourcery.com>
3011
3012 * breakpoint.c (user_settable_breakpoint): Delete.
3013 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3014 (delete_command): Check user_breakpoint_p instead of looking at
3015 the breakpoint's type.
3016 (disable_command): Ditto.
3017 (enable_command): Ditto.
3018 (delete_trace_command): Use user_breakpoint_p instead of looking
3019 at the breakpoint number directly. When checking if there are
3020 user visible tracepoints, in order to know whether to ask the user
3021 for confirmation, check whether the breakpoint is actually a
3022 tracepoint.
3023
f6d90398
VP
30242011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3025
3026 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3027 compilation.
3028
8d3788bd
VP
30292011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3030
3031 MI breakpoint notifications.
3032
f33edef8
PP
3033 * annotate.c (breakpoint_changed): Adjust parameter type.
3034 * breakpoint.c (set_breakpoint_condition): Adjust to change
3035 in breakpoint_modified type.
3036 (breakpoint_set_commands): Likewise.
3037 (do_map_commands_command): Likewise.
3038 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3039 changed after bumping hit count.
3040 (bpstat_stop_status): Likewise.
3041 (print_one_breakpoint_location): Don't wrap in tuple here.
3042 (print_one_breakpoint): Always print individual locations.
3043 For locations, use unnamed tuple.
3044 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3045 has changed.
3046 (create_catchpoint, create_syscall_event_catchpoint): Call
3047 breakpoint_created obsever.
3048 (mention): Don't call breakpoint_created observer.
3049 (create_breakpoint_sal): Call breakpoint_created observer.
3050 (create_breakpoint, watch_command_1): Likewise.
3051 (create_ada_exception_breakpoint): Likewise.
3052 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3053 (locations_are_equal): New.
3054 (update_breakpoint_locations): If locations were changed, notify.
3055 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3056 Call breakpoint_modified observer.
3057
3058 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3059 (mi_cmd_break_insert): Don't set observers for modify and delete.
3060 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3061 (mi_breakpoint_created, mi_breakpoint_deleted)
3062 (mi_breakpoint_modified): New.
3063 (mi_interpreter_init): Hook the above.
3064 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3065 while -break-* commands are executing.
3066 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3067 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3068 (mi_redirect): New.
3069 (mi_ui_out_impl): Hook in mi_redirect.
3070 (mi_field_skip): True to the name, skip the field, don't output
3071 a field with an empty value.
3072
3073 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3074 (gdbpy_breakpoint_deleted): Adjust.
3075 * tui/tui-hooks.c (tui_event_create_breakpoint)
3076 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 3077
a8f42b45
UW
30782011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3079
3080 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3081 (procfs_remove_hw_watchpoint): Likewise.
3082
57e12211
TT
30832011-04-26 Michael Walle <michael@walle.cc>
3084
3085 * remote.c (remote_start_remote): Ack packet after sending the
3086 interrupt sequence.
3087
af96c192
YQ
30882011-04-26 Yao Qi <yao@codesourcery.com>
3089
f33edef8
PP
3090 * linux-nat.c: Move common macros to ...
3091 Include linux-ptrace.h.
3092 * common/linux-ptrace.h: ... here. New.
af96c192 3093
3e03848b
JK
30942011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3095
3096 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3097 !objfile_has_partial_symbols. New comment.
3098 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3099 SYM_READ_PSYMBOLS is not present. Extend the comment.
3100 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3101
1ae0d051
JK
31022011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3103
3104 * defs.h (ENUM_BITFIELD): Remove.
3105
03f2bd59
JK
31062011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3107 Eli Zaretskii <eliz@gnu.org>
3108
3109 * NEWS: Document the new gdbserver --once option.
3110
4161fbb0
JZ
31112011-04-21 Jie Zhang <jzhang918@gmail.com>
3112
3113 * MAINTAINERS: Update my email address.
3114
bcb28afc
PM
31152011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3116
3117 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3118 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3119 function call if __STDC_ISO_10646__ macro is defined.
3120 (intermediate_encoding): New prototype.
3121 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3122 to generate compile time error for unsupported gdb_wchar_t size.
3123 (ENDIAN_SUFFIX): New macro.
3124 (intermediate_encoding): New function.
3125
7b08b9eb
JK
31262011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3127
3128 * ada-lang.c (struct add_partial_datum): Update the comment for
3129 expand_partial_symbol_name.
3130 (ada_add_partial_symbol_completions): Rename to ...
3131 (ada_expand_partial_symbol_name): ... here, change return type, update
3132 function comment, call symbol_completion_match instead of
3133 symbol_completion_add.
3134 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3135 and ada_expand_partial_symbol_name.
3136 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3137 FILE_MATCHER.
3138 (dw2_map_symbol_names): Remove.
3139 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3140 * psymtab.c (map_symbol_names_psymtab): Remove.
3141 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3142 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3143 order.
3144 (psym_functions): Unlist map_symbol_names_psymtab.
3145 (map_partial_symbol_names): Rename to ...
3146 (expand_partial_symbol_names): ... here, change the FUN type, call
3147 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3148 * psymtab.h (map_partial_symbol_names): Rename to ...
3149 (expand_partial_symbol_names): ... here, change the FUN type.
3150 * symfile.h (struct quick_symbol_functions): Update the description of
3151 expand_symtabs_matching. Remove map_symbol_names.
3152 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3153 (struct add_name_data): Update the comment for
3154 expand_partial_symbol_name.
3155 (add_partial_symbol_name): Rename to ...
3156 (expand_partial_symbol_name): ... here. Replace
3157 completion_list_add_name call by strncmp.
3158 (default_make_symbol_completion_list_break_on): Use now
3159 expand_partial_symbol_names and expand_partial_symbol_name.
3160 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3161
90476074
TT
31622011-04-20 Tom Tromey <tromey@redhat.com>
3163
3164 * dwarf2read.c (save_gdb_index_command): Replace format
3165 documentation with a pointer to the manual.
3166
c21236dc
PA
31672011-04-20 Pedro Alves <pedro@codesourcery.com>
3168
3169 * regcache.c: Include remote.h.
3170 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3171 (regcache_dump): Handle regcache_dump_remote.
3172 (maintenance_print_remote_registers): New function.
3173 (_initialize_regcache): Install "maint print remote-registers"
3174 command.
3175 * remote.c (map_regcache_remote_table): New function, factored out
3176 from ...
3177 (init_remote_state): ... here.
3178 (remote_register_number_and_offset): New.
3179 * remote.h (remote_register_number_and_offset): Declare.
3180
b78974c3
PA
31812011-04-20 Pedro Alves <pedro@codesourcery.com>
3182
3183 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3184 null_ptid, assume and allow a NULL address space, instead of
3185 asking the target for the ptid's address space.
3186 * infrun.c (ptid_is_pid): Remove assertion.
3187
7a9dd1b2
TT
31882011-04-19 Tom Tromey <tromey@redhat.com>
3189
3190 * windows-tdep.c (windows_xfer_shared_library):
3191 * windows-nat.c (get_module_name, windows_make_so):
3192 * v850-tdep.c (v850_handle_pushm):
3193 * utils.c (null_cleanup, gdb_realpath):
3194 * ui-out.c (get_next_header):
3195 * tracepoint.c (clear_traceframe_info):
3196 * symtab.c (lookup_symtab):
3197 * serial.h (struct serial_ops):
3198 * mipsread.c (read_alphacoff_dynamic_symtab):
3199 * infcmd.c (print_return_value):
3200 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3201 * f-exp.y (parse_number):
3202 * exceptions.c (catch_exceptions):
3203 * dummy-frame.c (dummy_frame_this_id):
3204 * defs.h (struct cleanup):
3205 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3206 * arm-tdep.c (arm_push_dummy_call):
3207 * amd64-tdep.h (amd64_collect_xsave):
3208 * amd64-tdep.c (amd64_collect_xsave):
3209 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3210 * README (typing): Remove duplicate words.
3211 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3212 * infrun.c (siginfo_value_read): Fix typo.
3213 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3214 * top.c (source_line_number): Add comma.
3215
9941e0c5
MK
32162011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3217
3218 * thread.c (any_live_thread_of_process): Prioritize threads
3219 that are not executing.
3220 * gdbthread.h (any_live_thread_of_process): Update comment
3221 as per above change.
3222
ed4b0e6a
AS
32232011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3224
3225 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3226 (scan_xcoff_symtab): Likewise.
3227
9b13a2db
PM
32282011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3229
3230 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3231 inside if clause.
3232
1c6e1b0d
PM
32332011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3234 Pedro Alves <pedro@codesourcery.com>
3235
3236 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3237 variables to simplify code and avoid == operator at end of
3238 line as this is against GNU coding standards.
3239
74de0234
PM
32402011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3241
3242 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3243 lm_name to name_lm to avoid conflict with lm_name function.
3244
b23518f0
PM
32452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3246
3247 ARI fixes: Use only lowercase function name for static functions.
3248 * nto-tdep.c (LM_ADDR): Rename to...
3249 (lm_addr): New function name.
3250 (nto_relocate_section_addresses): Adapt to change above.
3251 * solib-sunos.c (LM_ADDR): Rename to...
3252 (lm_addr): New function name.
3253 (LM_NEXT): Rename to...
3254 (lm_next): New function name.
3255 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3256 function name changes above.
3257 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3258 (lm_addr_from_link_map): New function name.
3259 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3260 (has_lm_dynamic_from_link_map): New function name.
3261 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3262 (lm_dynamic_from_link_map): New function name.
3263 (LM_ADDR_CHECK): Rename to...
3264 (lm_addr_check): New function name.
3265 (LM_NEXT): Rename to...
3266 (lm_next): New function name.
3267 (LM_PREV): Rename to...
3268 (lm_prev): New function name.
3269 (LM_NAME): Rename to...
3270 (lm_name): New function name.
3271 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3272 (ignore_first_link_map_entry): New function name.
3273 (svr4_keep_data_in_core): Adapt to function name changes above.
3274 (svr4_current_sos): Likewise.
3275 (enable_break): Likewise.
3276 (svr4_relocate_section_addresses): Likewise.
3277
1448a0a2
PM
32782011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3279
3280 ARI cleanup.
3281 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3282 sprintf. Simplify code and avoid loosing memory.
3283 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3284 (call0_frame_cache): Remove && operator from end of line.
3285
02835898
JK
32862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3287
3288 Fix libraries displacement if they change whether they were prelinked.
3289 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3290 does not match. Comment why.
3291
9a845ea2
JK
32922011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3293
3294 * corelow.c: Include wrapper.h.
3295 (core_open): Call now gdb_target_find_new_threads.
3296 * wrapper.c: Include target.h.
3297 (gdb_target_find_new_threads): New.
3298 * wrapper.h (gdb_target_find_new_threads): New declaration.
3299
254f582e
JK
33002011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3301
3302 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3303 even if !TARGET_HAS_EXECUTION.
3304
63524580
JK
33052011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3306
3307 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3308 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3309 bfd_get_synthetic_symtab.
3310 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3311 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3312 parameter parent, remove the call to add_separate_debug_objfile.
3313 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3314 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3315 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3316 parent, new comment for it, call add_separate_debug_objfile for it.
3317 (symbol_file_add_separate): Pass objfile as the parameter parent,
3318 remove the call to add_separate_debug_objfile.
3319 (symbol_file_add_from_bfd): New parameter parent, pass it.
3320 (symbol_file_add): Pass NULL to the new parameter parent.
3321 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3322
90359a16
JK
33232011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3324
3325 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3326 BSF_SYNTHETIC.
3327
626e7282
JK
33282011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3329
3330 Fix Python access to inlined frames.
3331 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3332 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3333
cf31e6f9
TT
33342011-04-15 Tom Tromey <tromey@redhat.com>
3335
3336 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3337
c8d895f1
GB
33382011-04-15 Gary Benson <gbenson@redhat.com>
3339
3340 * MAINTAINERS: Add myself to write-after-approval section.
3341
56a9aa1d
MF
33422011-04-14 Mike Frysinger <vapier@gentoo.org>
3343
3344 * remote-sim.c (sim_command_completer): New function.
3345 (_initialize_remote_sim): Set completer to sim_command_completer.
3346
ba770c9c
TJB
33472011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3348
3349 * breakpoint.c (print_exception_catchpoint): Rename to ...
3350 (print_it_exception_catchpoint): ... this.
3351 (gnu_v3_exception_catchpoint_ops): Update with new name
3352 for print_it_exception_catchpoint.
3353
51bf2553
EBM
33542011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3355
3356 * MAINTAINERS: Add myself for write after approval privileges.
3357
d242658c
MP
33582011-04-13 Marek Polacek <mpolacek@redhat.com>
3359
3360 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3361
4a4106ca
TJB
33622011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3363
3364 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3365
26063d49
TJB
33662011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3367
3368 * breakpoint.c (save_breakpoints): Verify whether
3369 breakpoint_ops.print_recreate is defined before calling it.
3370
7782b183
GB
33712011-04-11 Gary Benson <gbenson@redhat.com>
3372
3373 Fix failure with --enable-maintainer-mode.
3374 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3375
e8930875
JK
33762011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3377
3378 Code cleanup.
3379 * symtab.c (search_symbols): Reorder the KIND description in the
3380 function comment. Remove the unused 4th element of types, types2,
3381 types3 and types4. New gdb_assert on KIND.
3382 (symtab_symbol_info): Remove the unused 4th element of classnames.
3383 New gdb_assert on KIND.
3384 * symtab.h (enum search_domain): New warning in the enum comment.
3385 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3386 TYPES_DOMAIN.
3387
b4f2f049
JK
33882011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3389
3390 Fix crash of gdb save-index on a STABS file.
3391 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3392 PSYMTABS_ADDRMAP.
3393
60d5a603
JK
33942011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3397 * dwarf2read.c: Include ctype.h.
3398 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3399 functions.
3400 (dwarf2_add_field): Fix new_field->accessibility by calling
3401 dwarf2_default_access_attribute. Restructure setting accessibility
3402 vs. virtuality.
3403 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3404 is_private and is_protected by calling
3405 dwarf2_default_access_attribute.
3406
e0f68161
KB
34072011-04-08 Kevin Buettner <kevinb@redhat.com>
3408
3409 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3410 to the initialization.
3411
2e1aae43
SE
34122011-04-08 Steve Ellcey <sje@cup.hp.com>
3413
3414 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3415 initalization.
3416
c6ca3dab
PM
34172011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3418
3419 Remove support for old Cygwin 1.5 versions.
3420 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3421 function on old Cygwin version.
3422 * windows-nat.c: Remove cygwin version check and always define
3423 __USEWIDE for Cygwin compilation.
3424
bd18283a
YQ
34252011-04-07 Yao Qi <yao@codesourcery.com>
3426
3427 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3428 and TO.
3429 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3430 (arm_copy_svc): Remove parameters INSN and TO.
3431 (decode_svc_copro): Update caller.
3432 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3433 from function pointer `copy_svc_os'.
3434
8c8dba6d
YQ
34352011-04-07 Yao Qi <yao@codesourcery.com>
3436
3437 * arm-tdep.c (cleanup_branch): Set a correct return address in
3438 LR for ARM and Thumb.
3439
59d7bcaf
JK
34402011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3441
3442 Code cleanup.
3443 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3444 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3445 in the function comment, a new note on values compatibility.
3446 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3447 * symtab.h (SYMBOL_HASH_NEXT): New.
3448
e7db58ea
TJB
34492011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3450
3451 * ppc-linux-nat.c (check_condition): Add len output parameter.
3452 Set it based on the memory region referenced in the condition
3453 expression. Update all callers.
3454
9f743ef6
JK
34552011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 Fix crash regression on systems featuring .gdb_index.
3458 * objfiles.c (free_objfile): Move the
3459 forget_cached_source_info_for_objfile call earlier. Comment it.
3460 Extend the comment for objfile_free_data.
3461
9182c5bc
JK
34622011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3463
3464 Fix regression of displaying the debug format.
3465 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3466 subfile.
3467
04bd08de
TT
34682011-04-04 Tom Tromey <tromey@redhat.com>
3469
3470 * cli/cli-interp.c (struct captured_execute_command_args):
3471 Remove.
3472 (do_captured_execute_command): Remove.
3473 (safe_execute_command): Use TRY_CATCH.
3474 * cli/cli-script.c (struct wrapped_read_command_file_args):
3475 Remove.
3476 (wrapped_read_command_file): Remove.
3477 (script_from_file): Use TRY_CATCH.
3478 * exceptions.c (catch_exception): Remove.
3479 * exceptions.h (catch_exception): Remove.
3480 (deprecated_throw_reason): Update comment.
3481 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3482 argument to 'context'.
3483 (mi_execute_command): Use TRY_CATCH.
3484 * remote.c (struct start_remote_args): Remove.
3485 (remote_start_remote): Update; change arguments.
3486 (remote_open_1): Use TRY_CATCH.
3487
58438ac1
TT
34882011-04-04 Tom Tromey <tromey@redhat.com>
3489
3490 * tracepoint.c (scope_info): Update.
3491 * symtab.c (decode_line_spec): Update.
3492 * python/python.c (gdbpy_decode_line): Update.
3493 * linespec.h (decode_line_1): Update.
3494 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3495 (decode_compound, find_method, symtab_from_filename)
3496 (decode_variable): Likewise.
3497 * cli/cli-cmds.c (edit_command): Update.
3498 (list_command): Update.
3499 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3500 argument.
3501 (create_breakpoint): Update.
3502 (until_break_command): Update.
3503 (addr_string_to_sals): Update.
3504 (decode_line_spec_1): Update.
3505
b78a6381
TT
35062011-04-04 Tom Tromey <tromey@redhat.com>
3507
3508 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3509 (do_captured_parse_breakpoint): Remove.
3510 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3511 Use TRY_CATCH directly.
3512
00174a86
TT
35132011-04-04 Tom Tromey <tromey@redhat.com>
3514
3515 * symtab.h (free_symtab): Remove.
3516 (forget_cached_source_info_for_objfile): Declare.
3517 * symmisc.c (free_symtab): Remove.
3518 * source.c (forget_cached_source_info_for_objfile): New function.
3519 (forget_cached_source_info): Use it.
3520 * objfiles.c (free_objfile): Simplify check before calling
3521 clear_current_source_symtab_and_line. Call
3522 forget_cached_source_info_for_objfile.
3523
30cc903e
TT
35242011-04-04 Tom Tromey <tromey@redhat.com>
3525
3526 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3527 (new_symtab): Don't set `free_code' on symtab.
3528 (new_linetable): Properly handle size==0.
3529 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3530 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3531 free_func.
3532 * jv-lang.c (struct jv_per_objfile_data): New.
3533 (jv_per_objfile_free): Free the data.
3534 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3535 (get_java_class_symtab): Set the `dict' field on the
3536 jv_per_objfile_data.
3537 (free_class_block): Remove.
3538 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3539 the symtab.
3540
0c2e6019
TT
35412011-04-04 Tom Tromey <tromey@redhat.com>
3542
3543 * symfile.c (reread_symbols): Update.
3544 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3545 field.
3546 * objfiles.c (allocate_objfile): Update.
3547 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3548 declare.
3549 * cp-namespace.c (lookup_symbol_file): Don't call
3550 lookup_possible_namespace_symbol.
3551 (initialize_namespace_symtab, get_possible_namespace_block)
3552 (free_namespace_block, cp_check_possible_namespace_symbols)
3553 (check_possible_namespace_symbols_loop)
3554 (check_one_possible_namespace_symbol)
3555 (lookup_possible_namespace_symbol): Remove.
3556 (maintenance_cplus_namespace): Replace with notice.
3557 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3558
554d387d
TT
35592011-04-04 Tom Tromey <tromey@redhat.com>
3560
3561 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3562 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3563 * symmisc.c (free_symtab): Don't free debugformat.
3564 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3565 (record_debugformat, record_producer): Document.
3566 * buildsym.c (end_symtab): Don't save debugformat and producer
3567 names on obstack.
3568 (end_symtab): Don't free debugformat and producer fields.
3569 (record_debugformat): Don't call xstrdup.
3570 (record_producer): Likewise.
3571
d4d4db8a
TT
35722011-04-04 Tom Tromey <tromey@redhat.com>
3573
3574 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3575 (source_line_charpos, source_charpos_line): Remove.
3576
8903c50d
TT
35772011-04-04 Tom Tromey <tromey@redhat.com>
3578
3579 * symtab.h (domain_enum): Split in two...
3580 (enum search_domain): New.
3581 (search_symbols): Update.
3582 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3583 redundant declarations.
3584 (search_symbols): Change 'kind' argument to search_domain.
3585 Update.
3586 (print_symbol_info): Likewise.
3587 (symtab_symbol_info): Likewise.
3588 * symfile.h (struct quick_symbol_functions)
3589 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3590 <expand_symtabs_matching>: Likewise.
3591 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3592 (expand_symtabs_matching_via_partial): Update.
3593 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3594 (dw2_expand_symtabs_for_function): Update.
3595 * block.h: Moved anonymous enum...
3596 * defs.h (enum block_enum): ... here. Now named.
3597
d9351f5f 35982011-04-03 Joel Brobecker <brobecker@adacore.com>
3599
3600 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3601 * version.in: Bump version to 7.3.50.20110403-cvs.
3602
d6e00af6
JB
36032011-04-03 Joel Brobecker <brobecker@adacore.com>
3604
3605 * NEWS: Create a new section for the next release branch.
3606 Rename the section of the current branch, now that it has
3607 been cut.
3608
2b9e5ea6
UW
36092011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3610
3611 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3612 for "fpscr" in target description.
3613
0cf03b49
JK
36142011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3615
3616 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3617 initialize it. Delay HASH initialization. Strip the part after open
3618 parenthesis for languages with qualifiers. Call do_cleanups.
3619
5d901a73
TT
36202011-04-01 Tom Tromey <tromey@redhat.com>
3621
3622 * utils.c (report_command_stats): Don't print `-' for negative
3623 number.
3624
b0dd7688
JB
36252011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3626
3627 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3628 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3629 typedefs.
3630
956a9fb9
JB
36312011-04-01 Joel Brobecker <brobecker@adacore.com>
3632
3633 * breakpoint.h (bpdisp_text): Add declaration.
3634 * breakpoint.c (bpdisp_text): Make non-static.
3635 * ada-lang.c: #include "mi/mi-common.h".
3636 (print_it_exception): Rewrite to improve GDB/MI output.
3637
3352110b
PA
36382011-04-01 Pedro Alves <pedro@codesourcery.com>
3639
3640 * arm-tdep.h (struct address_space): Add forward declaration.
3641
18819fa6
UW
36422011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3643
3644 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3645 * arm-tdep.c (arm_override_mode): New global.
3646 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3647 execution mode heuristics.
3648 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3649 second single-step breakpoint if needed, using
3650 arm_insert_single_step_breakpoint.
3651 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3652 ARM execution mode, do not call thumb_get_next_pc_raw.
3653 (arm_get_next_pc): Encode execution mode in return value. Call
3654 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3655 (arm_insert_single_step_breakpoint): New function.
3656 (arm_software_single_step): Call it.
3657 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3658 argument to return execution mode of sigreturn target.
3659 (arm_linux_syscall_next_pc): Use it.
3660 (arm_linux_copy_svc): Update call.
3661 (arm_linux_software_single_step): Call
3662 arm_insert_single_step_breakpoint.
3663
a6e293d1
JK
36642011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3665
3666 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3667 the comment.
3668
a4c8e806
TT
36692011-03-31 Tom Tromey <tromey@redhat.com>
3670
3671 * varobj.c (update_dynamic_varobj_children): Properly handle
3672 errors from iterator.
3673
df5c6c50
JK
36742011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3677 struct linkage name twice.
3678
1dae3efc
TT
36792011-03-31 Tom Tromey <tromey@redhat.com>
3680
3681 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3682 missing ">" to message.
3683
f4f7ab05
TT
36842011-03-31 Tom Tromey <tromey@redhat.com>
3685
3686 * varobj.c (instantiate_pretty_printer): Remove duplicate
3687 'return'.
3688
fcf250e2
UW
36892011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3690
3691 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3692 if neither saved value nor register available (e.g. signal frame).
3693
ee6436e3
TJB
36942011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3695
3696 * macroexp.c (expand): Avoid uninitialized variable
3697 compiler warning.
3698
423f41a5
TJB
36992011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3700
3701 * breakpoint.c (break_range_command): Fix typo in comment.
3702
f1310107
TJB
37032011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3704 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3705
3706 Implement support for PowerPC BookE ranged breakpoints.
3707 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3708 * breakpoint.h (struct bp_target_info) <length>: New member
3709 variable.
3710 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3711 instead of struct breakpoint as argument, and also add ASPACE
3712 and BP_ADDR arguments. Update all callers.
3713 (struct breakpoint_ops) <print_one_detail>: New method.
3714 (struct breakpoint) <addr_string_range_end>: New member variable.
3715 * breakpoint.c (breakpoint_location_address_match): Add function
3716 prototype.
3717 (insert_bp_location): Set bl->target_info.length.
3718 (breakpoint_here_p): Call breakpoint_location_address_match.
3719 (moribund_breakpoint_here_p): Likewise.
3720 (regular_breakpoint_inserted_here_p): Likewise.
3721 (breakpoint_thread_match): Likewise.
3722 (bpstat_stop_status): Likewise.
3723 (bpstat_check_location): Move call to
3724 breakpoint_ops.breakpoint_hit to the top.
3725 (print_one_breakpoint_location): Call
3726 breakpoint_ops.print_one_detail if available.
3727 (breakpoint_address_match_range): New function.
3728 (breakpoint_location_address_match): Likewise.
3729 (breakpoint_locations_match): Compare the length field of the
3730 locations too.
3731 (hw_breakpoint_used_count): Count resources used by all locations
3732 in a breakpoint, and use breakpoint_ops.resources_needed if
3733 available.
3734 (breakpoint_hit_ranged_breakpoint): New function.
3735 (resources_needed_ranged_breakpoint): Likewise.
3736 (print_it_ranged_breakpoint): Likewise.
3737 (print_one_ranged_breakpoint): Likewise.
3738 (print_one_detail_ranged_breakpoint): Likewise.
3739 (print_mention_ranged_breakpoint): Likewise.
3740 (print_recreate_ranged_breakpoint): Likewise.
3741 (ranged_breakpoint_ops): New structure.
3742 (find_breakpoint_range_end): New function.
3743 (break_range_command): Likewise.
3744 (delete_breakpoint): Free addr_string_range_end.
3745 (update_breakpoint_locations): Add SALS_END argument. Update
3746 all callers. Calculate breakpoint length if a non-zero SALS_END
3747 is given. Call breakpoint_locations_match instead of
3748 breakpoint_address_match.
3749 (reset_breakpoint): Find SaL of the end of the range if B is a
3750 ranged breakpoint.
3751 (_initialize_breakpoint): Register break-range command.
3752 * defs.h (print_core_address): Add function prototype.
3753 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3754 function.
3755 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3756 (ppc_linux_remove_hw_breakpoint): Likewise.
3757 (_initialize_ppc_linux_nat): Initialize
3758 to_ranged_break_num_registers.
3759 * target.c (update_current_target): Add comment about
3760 to_ranged_break_num_registers.
3761 (target_ranged_break_num_registers): New function.
3762 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3763 New method.
3764 (target_ranged_break_num_registers): Add function prototype.
3765 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3766 * utils.c (print_core_address): ... here.
3767
02d20e4a
UW
37682011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3769
3770 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3771 variable compiler warning.
3772
ef23e705
TJB
37732011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3774
3775 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3776 code from here ...
3777 (re_set_breakpoint): ... to here ...
3778 (addr_string_to_sals): ... and here.
3779
311e6ab3
PM
37802011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3781
3782 * Makefile.in (SFILES): Add missing C sources.
3783 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3784 Add missing headers.
3785
acd1d99c
MF
37862011-03-29 Mike Frysinger <vapier@gentoo.org>
3787
3788 * .gitignore: New file.
3789
66ee2731
MF
37902011-03-29 Mike Frysinger <vapier@gentoo.org>
3791
3792 * NEWS: Mention new cfi device simulation.
3793
53832f31
TT
37942011-03-29 Tom Tromey <tromey@redhat.com>
3795
3796 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3797 otherwise anonymous types.
3798 (dwarf2_name): Likewise.
3799 * valops.c (value_struct_elt_for_reference): Refine artificial
3800 type logic. Call error if j==-1.
3801
09b58708
JK
38022011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3803
3804 Fix false GCC warning.
3805 * infcall.c (find_function_addr): Initialize funaddr.
3806
6023c606
PM
38072011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3808
3809 Fix mingw compilation with --enable-targets=all.
3810 * remote-mips.c (gdb_usleep.h): Include header.
3811 (mips_enter_debug): Use gdb_usleep instead of sleep.
3812
0e30163f
JK
38132011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3814
3815 Support resolution of STT_GNU_IFUNC via breakpoints.
3816 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3817 bp_gnu_ifunc_resolver_return.
3818 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3819 the loop. Support bp_gnu_ifunc_resolver and
3820 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3821 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3822 breakpoints.
3823 (bptype_string, print_one_breakpoint_location): Support
3824 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3825 (user_settable_breakpoint): Return true also for
3826 bp_gnu_ifunc_resolver.
3827 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3828 bp_gnu_ifunc_resolver_return.
3829 (set_breakpoint_location_function): New parameter explicit_loc,
3830 describe it. Call find_pc_partial_function_gnu_ifunc with new
3831 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3832 EXPLICIT_LOC is not set.
3833 (set_raw_breakpoint): Set EXPLICIT_LOC for
3834 set_breakpoint_location_function.
3835 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3836 set_breakpoint_location_function.
3837 (mention): Support bp_gnu_ifunc_resolver and
3838 bp_gnu_ifunc_resolver_return.
3839 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3840 set_breakpoint_location_function.
3841 (update_breakpoint_locations): Remove static.
3842 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3843 bp_gnu_ifunc_resolver_return.
3844 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3845 bp_gnu_ifunc_resolver_return.
3846 (update_breakpoint_locations): New declaration.
3847 * elfread.c: Include gdbthread.h and regcache.h.
3848 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3849 functions.
3850 (elf_gnu_ifunc_fns): Install them.
3851 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3852 (stub_gnu_ifunc_resolver_return_stop): New functions.
3853 (stub_gnu_ifunc_fns): Install them.
3854 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3855 and gnu_ifunc_resolver_return_stop.
3856 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3857
07be84bf
JK
38582011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 STT_GNU_IFUNC reader implementation.
3861 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3862 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3863 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3864 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3865 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3866 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3867 (elf_gnu_ifunc_resolve_addr): New.
3868 (elf_symfile_read): Call elf_rel_plt_read.
3869 (elf_gnu_ifunc_fns): New.
3870 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3871 Install elf_gnu_ifunc_fns.
3872 * infcall.c (find_function_return_type): New function.
3873 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3874 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3875 (stub_gnu_ifunc_resolve_name): New functions.
3876 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3877 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3878 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3879
300f8e10
JK
38802011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3881
3882 Code cleanup for later STT_GNU_IFUNC support.
3883 * infcall.c (find_function_addr): Remove variable code, use explicit
3884 dereferences for it. Move VALUE_TYPE initialization later.
3885
11c81455
JK
38862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3887
3888 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3889 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3890 (clear_pc_function_cache): Clear it.
3891 (find_pc_partial_function): Rename to ...
3892 (find_pc_partial_function_gnu_ifunc): ... this function. New
3893 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3894 (find_pc_partial_function): New wrapper for this function.
3895 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3896
0875794a
JK
38972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3898
3899 GDB internal type support for STT_GNU_IFUNC.
3900 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3901 (elf_symtab_read): Set mst_text_gnu_ifunc for
3902 BSF_GNU_INDIRECT_FUNCTION.
3903 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3904 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3905 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3906 nodebug_got_plt_symbol.
3907 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3908 (TYPE_GNU_IFUNC): New.
3909 (struct main_type): New field flag_gnu_ifunc.
3910 (struct builtin_type): New field builtin_func_func.
3911 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3912 nodebug_got_plt_symbol.
3913 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3914 (in_gnu_ifunc_stub): New.
3915 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3916 mst_text_gnu_ifunc.
3917 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3918 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3919 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3920 in_gnu_ifunc_stub.
3921 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3922 * symtab.c (search_symbols): Likewise.
3923 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3924 and mst_slot_got_plt.
3925 (in_gnu_ifunc_stub): New declaration.
3926
d0fb5eae
JK
39272011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3928
3929 Support a ring of related breakpoints.
3930 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3931 other functions, add gdb_assert.
3932 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3933 watchpoint_del_at_next_stop.
3934 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3935 (bpstat_stop_status): Handle ring in related_breakpoint.
3936 (set_raw_breakpoint_without_location): Initialize ring in
3937 related_breakpoint.
3938 (delete_breakpoint): Handle ring in related_breakpoint, use
3939 watchpoint_del_at_next_stop.
3940 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3941
9cded63f
TT
39422011-03-28 Tom Tromey <tromey@redhat.com>
3943
3944 PR symtab/12441:
3945 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3946 with `language_minimal'.
3947
467d42c4
UW
39482011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3949
3950 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3951 instead of checking for STT_ARM_TFUNC symbol type.
3952
62853458
TT
39532011-03-25 Tom Tromey <tromey@redhat.com>
3954
3955 * linespec.c (symbol_found): Restore line-based result for
3956 non-LOC_LABEL symbols.
3957
a7417d46
KT
39582011-03-25 Kai Tietz <ktietz@redhat.com>
3959
3960 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3961 instead of strcmp for comparison.
3962 (tui_source_is_displayed): Likewise.
3963 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3964
55f1336d
TT
39652011-03-24 Mark Wielaard <mjw@redhat.com>
3966
f33edef8
PP
3967 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3968 complaint.
3969 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3970 (find_partial_die_in_comp_unit): Likewise in comment.
3971 (read_attribute_value): Likewise.
3972 (lookup_die_type): Likewise.
3973 (dwarf_form_name): Likewise.
3974 (dump_die_shallow): Likewise.
3975 (follow_die_ref_or_sig): Likewise.
55f1336d 3976
9ef07c8c
TT
39772011-03-24 Tom Tromey <tromey@redhat.com>
3978
3979 PR breakpoints/11816:
3980 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3981 (decode_compound): Update.
3982 (find_function_symbol): New function.
3983 (decode_dollar): Update.
3984 (decode_label): Add 'function_symbol' parameter. Handle
3985 function-relative labels.
3986 (decode_variable): Update.
3987 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3988 not its line. Set `special_display' and canonical name for
3989 labels.
3990
56435ebe
TT
39912011-03-24 Tom Tromey <tromey@redhat.com>
3992
3993 * linespec.h (struct linespec_result) <special_display>: New
3994 field.
3995 * breakpoint.h (struct breakpoint) <display_canonical>: New
3996 field.
3997 * breakpoint.c (print_breakpoint_location): Respect
3998 display_canonical.
3999 (create_breakpoint_sal): Add 'display_canonical' parameter.
4000 (create_breakpoints_sal): Update.
4001 (create_breakpoint): Update.
4002
7efd8fc2
TT
40032011-03-24 Tom Tromey <tromey@redhat.com>
4004
4005 * symtab.c (decode_line_spec): Update.
4006 * linespec.c (build_canonical_line_spec): Change type of
4007 'canonical'.
4008 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4009 (find_method, decode_all_digits, decode_dollar, decode_label)
4010 (symbol_found): Likewise.
4011 (init_linespec_result): New function.
4012 * breakpoint.c (struct captured_parse_breakpoint_args)
4013 <canonical_p>: New field, replaces addr_string_p.
4014 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4015 'addr_string'.
4016 (parse_breakpoint_sals): Likewise.
4017 (do_captured_parse_breakpoint): Update.
4018 (create_breakpoint): Use struct linespec_result.
4019 (until_break_command): Update.
4020 (breakpoint_re_set_one): Update.
4021 (decode_line_spec_1): Update.
4022 * linespec.h (struct linespec_result): New.
4023 (init_linespec_result): Declare.
4024
788c8b10
PA
40252011-03-23 Pedro Alves <pedro@codesourcery.com>
4026
4027 * regcache.c (regcache_raw_read): If the target didn't supply a
4028 given raw register, mark it as unavailable.
4029
0ba1096a
KT
40302011-03-23 Kai Tietz <ktietz@redhat.com>
4031
4032 * breakpoint.c (clear_command): Use filename_cmp
4033 instead of strcmp for comparison.
4034 * buildsym.c (watch_main_source_file_lossage): Likewise.
4035 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4036 checking just for slash.
4037 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4038 strrchr and filename_cmp instead of strcmp for filenames.
4039 (add_old_header_file): Use filename_cmp
4040 instead of strcmp for comparison.
4041 * exec.c (exec_set_section_address): Likewise.
4042 * macrotab.c (macro_lookup_inclusion): Likewise.
4043 (macro_lookup_inclusion): Likewise.
4044 * elfread.c (_initialize_elfread): Likewise.
4045 (elfstab_offset_sections): Likewise.
4046 (elfstab_offset_sections): Use lbasename instead of
4047 strrchr.
4048 * mdebugread.c (parse_partial_symbols): Likewise.
4049 (arse_partial_symbols): Use filename_(n)cmp instead of
4050 str(n)cmp for comparison.
4051 * minsyms.c (lookup_minimal_symbol): Likewise.
4052 * psymtab.c (read_psymtabs_with_filename): Likewise.
4053 * solib.c (solib_read_symbols): Likewise.
4054 (reload_shared_libraries_1): Likewise.
4055 * symmisc.c (maintenance_print_symbols): Likewise.
4056 * symfile.c (separate_debug_file_exists): Likewise.
4057 (reread_symbols): Likewise.
4058 (find_separate_debug_file_by_debuglink): Likewise.
4059 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4060 * source.c (add_path): Likewise.
4061 * symtab.c (filename_seen): Likewise.
4062 (file_matches): Likewise.
4063 (print_symbol_info): Likewise.
4064 (maybe_add_partial_symtab_filename): Likewise.
4065 (make_source_files_completion_list): Likewise.
4066 * xml-syscall.c (init_sysinfo): Likewise.
4067 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4068 IS_DIR_SEPARATOR for checking for trailing path separator.
4069
dd90784c
JK
40702011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4071
4072 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4073 label abort_expression.
4074 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4075 DWARF_VALUE_OPTIMIZED_OUT.
4076
3167638f
JK
40772011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4078
4079 Code cleanup.
4080 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4081 to linkage_name. Invert its value. Update the function comment.
4082 (c_type_print_varspec_suffix): Invert it at the caller.
4083 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4084
ce406537
PA
40852011-03-22 Pedro Alves <pedro@codesourcery.com>
4086
4087 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4088 errors when reading the `stop_pc'.
4089 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4090 get_frame_pc.
4091
da5d4055
PM
40922011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4093
4094 * NEWS: Document gdb.Write stream keyword.
4095
29e0eb9c
JK
40962011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4097
4098 Revert:
4099 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4101 (dwarf2_add_field): Fix new_field->accessibility for
4102 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4103
05775840
PM
41042011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4105
f33edef8 4106 PR python/12183
05775840
PM
4107
4108 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4109 other error classes. Do not print stack trace.
4110
a0cb7835
JK
41112011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4112
4113 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4114 (dwarf2_add_field): Fix new_field->accessibility for
4115 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4116
d19f7eee
UW
41172011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4118
4119 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4120 encountering a load via a non-SP register.
4121
4a2fbb50
UW
41222011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4123
4124 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4125 field in returned unwinder.
4126
3489610d
JB
41272012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4128
4129 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4130
8c1a34e7
JB
41312012-03-21 Joel Brobecker <brobecker@adacore.com>
4132
4133 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4134 of xmalloc.
4135
8fbca658
PA
41362012-03-18 Pedro Alves <pedro@codesourcery.com>
4137
4138 * frame.c (frame_unwind_register): Throw an error if unwinding the
4139 register failed.
4140 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4141 an unwind stop reason.
4142 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4143 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4144 UNWIND_UNAVAILABLE>: New.
4145 * inline-frame.c (inline_frame_unwind): Install
4146 default_frame_unwind_stop_reason.
4147 * frame-unwind.c: Include "exceptions.h".
4148 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4149 (default_frame_unwind_stop_reason): New.
4150 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4151 (default_frame_unwind_stop_reason): Declare.
4152 (struct frame_unwind) <stop_reason>: New function pointer.
4153
4154 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4155 * dwarf2-frame.c: Include exceptions.h.
4156 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4157 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4158 computing the CFA. If such an error was thrown, set
4159 unavailable_retaddr.
4160 (dwarf2_frame_unwind_stop_reason): New.
4161 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4162 unavailable.
4163 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4164 (dwarf2_signal_frame_unwind): Ditto.
4165
4166 * amd64-tdep.c: Include "exceptions.h".
4167 (struct amd64_frame_cache): New field "base_p".
4168 (amd64_init_frame_cache): Clear it.
4169 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4170 Avoid reading registers with functions that throw if the register
4171 is not necessary to compute the frame base.
4172 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4173 swallowing NOT_AVAILABLE_ERROR.
4174 (amd64_frame_unwind_stop_reason): New.
4175 (amd64_frame_this_id): Don't build a frame id if the frame base
4176 was unavailable.
4177 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4178 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4179 base_p if the frame base was computable.
4180 (amd64_sigtramp_frame_unwind_stop_reason): New.
4181 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4182 frame base was unavailable.
4183 (amd64_sigtramp_frame_unwind): Install
4184 amd64_sigtramp_frame_unwind_stop_reason.
4185 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4186 base_p if the frame base was computable.
4187 (amd64_epilogue_frame_unwind_stop_reason): New.
4188 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4189 frame base was unavailable.
4190 (amd64_epilogue_frame_unwind): Install
4191 amd64_epilogue_frame_unwind_stop_reason.
4192 * i386-tdep.c: Include "exceptions.h".
4193 (struct i386_frame_cache): New field "base_p".
4194 (i386_init_frame_cache): Clear it.
4195 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4196 Avoid reading registers with functions that throw if the register
4197 is not necessary to compute the frame base.
4198 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4199 swallowing NOT_AVAILABLE_ERROR.
4200 (i386_frame_unwind_stop_reason): New.
4201 (i386_frame_this_id): Don't build a frame id if the frame base was
4202 unavailable.
4203 (i386_frame_prev_register): Handle unavailable SP.
4204 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4205 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4206 base_p if the frame base was computable.
4207 (i386_epilogue_frame_unwind_stop_reason): New.
4208 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4209 base was unavailable.
4210 (i386_epilogue_frame_unwind): Install
4211 i386_epilogue_frame_unwind_stop_reason.
4212 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4213 base_p if the frame base was computable.
4214 (i386_sigtramp_frame_unwind_stop_reason): New.
4215 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4216 base was unavailable.
4217 (i386_sigtramp_frame_unwind): Install
4218 i386_sigtramp_frame_unwind_stop_reason.
4219 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4220 type's size, not the register's.
4221 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4222
4223 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4224 default_frame_unwind_stop_reason.
4225 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4226 (alpha_heuristic_frame_unwind): Ditto.
4227 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4228 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4229 * avr-tdep.c (avr_frame_unwind): Ditto.
4230 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4231 Ditto.
4232 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4233 * frv-tdep.c (frv_frame_unwind): Ditto.
4234 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4235 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4236 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4237 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4238 (hppa_stub_frame_unwind): Ditto.
4239 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4240 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4241 (ia64_libunwind_frame_unwind)
4242 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4243 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4244 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4245 * m32c-tdep.c (m32c_unwind): Ditto.
4246 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4247 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4248 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4249 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4250 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4251 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4252 * mep-tdep.c (mep_frame_unwind): Ditto.
4253 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4254 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4255 (mips_stub_frame_unwind): Ditto.
4256 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4257 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4258 * mt-tdep.c (mt_frame_unwind): Ditto.
4259 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4260 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4261 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4262 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4263 (s390_sigtramp_frame_unwind): Ditto.
4264 * score-tdep.c (score_prologue_unwind): Ditto.
4265 * sh-tdep.c (sh_frame_unwind): Ditto.
4266 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4267 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4268 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4269 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4270 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4271 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4272 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4273 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4274 (sparc64obsd_trapframe_unwind): Ditto.
4275 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4276 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4277 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4278 * v850-tdep.c (v850_frame_unwind): Ditto.
4279 * vax-tdep.c (vax_frame_unwind): Ditto.
4280 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4281 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4282 * xtensa-tdep.c (xtensa_unwind): Ditto.
4283
f23d1b92
PA
42842011-03-18 Pedro Alves <pedro@codesourcery.com>
4285
4286 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4287 there's always a frame. Use get_frame_pc_if_available instead of
4288 get_frame_pc, and if there's no PC available, don't look up a
4289 symtab.
4290
1d4f5741
PA
42912011-03-18 Pedro Alves <pedro@codesourcery.com>
4292
4293 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4294 unavailable PC.
4295
dba09041
PA
42962011-03-18 Pedro Alves <pedro@codesourcery.com>
4297
4298 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4299 gracefully.
4300
9a26e44c
PA
43012011-03-18 Pedro Alves <pedro@codesourcery.com>
4302
4303 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4304 * frame.c (frame_unwind_caller_pc_if_available): New.
4305 * stack.c (frame_info): Handle unavailable PC.
4306
43072011-03-18 Pedro Alves <pedro@codesourcery.com>
4308
4309 * frame.c (frame_unwind_pc): Rename to ...
4310 (frame_unwind_pc_if_available): ... this. New `pc' output
4311 parameter. Change return type to int. Gracefully handle
4312 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4313 happened, or 1 otherwise.
4314 (frame_unwind_pc): Reimplement on top of
4315 frame_unwind_pc_if_available.
4316 (get_frame_func): Rename to ...
4317 (get_frame_func_if_available): New `pc' output parameter. Change
4318 return type to int. Gracefully handle the PC not being available.
4319 (get_frame_func): Reimplement on top of
4320 get_frame_func_if_available.
4321 (select_frame): Handle the PC being unavailable.
4322 (get_prev_frame): Handle the PC being unavailable.
4323 (get_frame_pc_if_available): New.
4324 (get_frame_address_in_block_if_available): New.
4325 (find_frame_sal): Handle the frame PC not being available.
4326 * frame.h (get_frame_pc_if_available): Declare.
4327 (get_frame_address_in_block_if_available): Declare.
4328 (get_frame_func_if_available): Declare.
4329 * stack.c (print_frame_info): Handle the PC being unavailable.
4330 (find_frame_funname): Ditto.
4331 (print_frame): Handle the PC being unavailable.
4332 (get_frame_language): Ditto.
4333 * blockframe.c (get_frame_block): Ditto.
4334 * macroscope.c (default_macro_scope): Ditto.
4335 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4336
43372011-03-18 Pedro Alves <pedro@codesourcery.com>
4338
4339 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4340 NOT_AVAILABLE_ERROR when evaluating the location expression.
4341
43422011-03-18 Pedro Alves <pedro@codesourcery.com>
4343
4344 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4345 returning that the register piece is unavailable/optimized out.
4346 (write_pieced_value): Handle get_frame_register_bytes returning
4347 that the register piece is unavailable/optimized out when doing a
4348 read-modify write of a bitfield.
4349 * findvar.c (value_from_register): Handle get_frame_register_bytes
4350 returning that the register piece is unavailable/optimized out.
4351 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4352 and `unavailablep'. Throw error on bad debug info. Use
4353 frame_register instead of frame_register_read, to fill in the new
4354 arguments.
4355 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4356 and `unavailablep'.
4357 * valops.c: (value_assign): Adjust, and handle
4358 get_frame_register_bytes failing.
4359 * spu-tdep.c: Include exceptions.h.
4360 (spu_software_single_step): Adjust, and handle
4361 get_frame_register_bytes failing.
4362 (spu_get_longjmp_target): Ditto.
4363 * gdbarch.sh (register_to_value): Change to return int. New
4364 parameters `optimizedp' and `unavailablep'.
4365 * gdbarch.h, gdbarch.c: Regenerate.
4366 * i386-tdep.c (i386_register_to_value): Adjust to new
4367 gdbarch_register_to_value interface.
4368 * i387-tdep.c (i387_register_to_value): Ditto.
4369 * i387-tdep.h (i387_register_to_value): Ditto.
4370 * alpha-tdep.c (alpha_register_to_value): Ditto.
4371 * ia64-tdep.c (ia64_register_to_value): Ditto.
4372 * m68k-tdep.c (m68k_register_to_value): Ditto.
4373 * mips-tdep.c (mips_register_to_value): Ditto.
4374 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4375
0fdb4f18
PA
43762011-03-18 Pedro Alves <pedro@codesourcery.com>
4377
4378 * findvar.c (value_of_register): Mark the value as unavailable, if
4379 the register is unavailable.
4380 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4381 (frame_register): New `unavailablep' parameter.
4382 (frame_register_read): Update comment.
4383 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4384 Set it if the register is unavailable. If the register is
4385 unavailable, clear the output buffer.
4386 (frame_register): New `unavailablep' parameter. Pass it down.
4387 (frame_unwind_register): Adjust.
4388 (put_frame_register): Adjust.
4389 (frame_register_read): Adjust. Also return false if the register
4390 is not available.
4391 (frame_register_unwind_location): Adjust.
4392 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4393 is unavailable, mark the value accordingly.
4394 * stack.c (frame_info): Handle unavailable registers.
4395
e69aa73e
PA
43962011-03-18 Pedro Alves <pedro@codesourcery.com>
4397
4398 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4399 simplify, using regcache_cooked_read.
4400
05d1431c
PA
44012011-03-18 Pedro Alves <pedro@codesourcery.com>
4402
4403 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4404 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4405 (regcache_raw_read_unsigned, regcache_raw_read_part)
4406 (regcache_cooked_read, regcache_cooked_read_signed)
4407 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4408 (regcache_cooked_read_ftype): Change return to enum
4409 register_status.
4410 * regcache.c: Include exceptions.h
4411 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4412 (do_cooked_read): Change return to enum register_status. Always
4413 forward to regcache_cooked_read.
4414 (regcache_raw_read): Change return to enum register_status. If
4415 the register is not REG_VALID, memset the buffer. Return the
4416 register's status.
4417 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4418 return the register's status.
4419 (regcache_raw_read_unsigned): Ditto.
4420 (regcache_cooked_read): Change return to enum register_status.
4421 Assert that with read-only regcaches, the register's status must
4422 be known. If the regcache is read-only, and the register is not
4423 REG_VALID, memset the buffer. Return the register's status.
4424 (regcache_cooked_read_signed): Change return to enum
4425 register_status. Handle non-REG_VALID registers and return the
4426 register's status.
4427 (regcache_cooked_read_unsigned): Change return to enum
4428 register_status. Handle non-REG_VALID registers and return the
4429 register's status.
4430 (regcache_xfer_part, regcache_raw_read_part)
4431 (regcache_cooked_read_part): Change return to enum
4432 register_status. Return the register's status.
4433 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4434 unavailable.
4435 (regcache_dump): Handle unavailable cooked registers.
4436 * frame.c (do_frame_register_read): Adjust interface to match
4437 regcache_cooked_read_ftype.
4438 * gdbarch.sh (pseudo_register_read): Change return to enum
4439 register_status.
4440 * gdbarch.h, gdbarch.c: Regenerate.
4441
4442 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4443 register_status.
4444 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4445 register_status. If reading a raw register indicates the raw
4446 register is not valid, return the raw register's status,
4447 otherwise, return REG_VALID.
4448 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4449 register_status. Handle non-REG_VALID raw registers and return
4450 the register's status.
4451 * arm-tdep.c (arm_neon_quad_read)
4452 (arm_pseudo_read): Change return to enum register_status. Handle
4453 non-REG_VALID raw registers and return the register's status.
4454 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4455 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4456 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4457 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4458 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4459 register_status.
4460 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4461 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4462 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4463 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4464 (m32c_pseudo_register_read): Change return to enum
4465 register_status. Adjust.
4466 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4467 enum register_status. Return the register's status.
4468 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4469 register_status. Return the register's status.
4470 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4471 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4472 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4473 * rs6000-tdep.c (move_ev_register_func): New typedef.
4474 (e500_move_ev_register): Use it. Change return to enum
4475 register_status. Return the register's status.
4476 (do_regcache_raw_read): New function.
4477 (do_regcache_raw_write): New function.
4478 (e500_pseudo_register_read): Change return to enum
4479 register_status. Return the register's status. Use
4480 do_regcache_raw_read.
4481 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4482 (dfp_pseudo_register_read): Change return to enum register_status.
4483 Return the register's status.
4484 (vsx_pseudo_register_read): Ditto.
4485 (efpr_pseudo_register_read): Ditto.
4486 (rs6000_pseudo_register_read): Ditto.
4487 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4488 register_status. Return the register's status.
4489 * sh64-tdep.c (pseudo_register_read_portions): New function.
4490 (sh64_pseudo_register_read): Change return to enum
4491 register_status. Use pseudo_register_read_portions. Return the
4492 register's status.
4493 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4494 register_status. Return the register's status.
4495 * sh-tdep.c (pseudo_register_read_portions): New function.
4496 (sh_pseudo_register_read): Change return to enum register_status.
4497 Use pseudo_register_read_portions. Return the register's status.
4498 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4499 enum register_status. Return the register's status.
4500 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4501 * spu-tdep.c (spu_pseudo_register_read_spu)
4502 (spu_pseudo_register_read): Ditto.
4503 * xtensa-tdep.c (xtensa_register_read_masked)
4504 (xtensa_pseudo_register_read): Ditto.
4505 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4506
e10abd8f
PM
45072011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4508
4509 * python/py-value.c (valpy_getitem): Fix formatting of error function
4510 call.
4511
7ea6d463
PM
45122011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4513
4514 ARI fixes: Add missing internationalization markups throughout
4515 C source files.
4516 * darwin-nat-info.c: Ditto.
4517 * record.c: Ditto.
4518 * remote.c: Ditto.
4519 * mi/mi-main.c: Ditto.
4520
001083c6
PM
45212011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4522
4523 ARI fixes: Add missing internationalization markups throughout
4524 yacc files.
4525 * c-exp.y: Ditto.
4526 * cp-name-parser.y: Ditto.
4527 * f-exp.y: Ditto.
4528 * m2-exp.y: Ditto.
4529 * objc-exp.y: Ditto.
4530 * p-exp.y: Ditto.
4531
4f1cdeec
PM
45322011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4533
4534 ARI fixes: Messages should have no trailing new lines.
4535 * darwin-nat.c (mach_check_error): Remove trailing new line from
4536 warning function call message.
4537 * record.c (bfdcore_read): Idem for error call.
4538
28e698f1
PM
45392011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4540
4541 * common/signals.c (target_signal_from_host): Add _ markup to error
4542 function call message.
4543 (target_signal_to_host): Add _ markup and remove trailing new line
4544 from warning call message.
4545 (target_signal_from_command): Add _ markup to error function call
4546 message.
4547
99c3dc11
PM
45482011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4549
f33edef8 4550 PR python/12149
99c3dc11
PM
4551
4552 * python/python.c (gdbpy_write): Accept a stream argument and
4553 operate to the appropriate stream.
4554 (gdbpy_flush): Likewise.
4555 (_initialize_python): Add stream constants.
4556 (finish_python_initialization): Add GdbOutputErrorFile class.
4557
c20800be
KY
45582011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4559
4560 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4561
f4a1794a
KY
45622011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4563
4564 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
4565 to store_signed_integer. Add debug message when relocating CALL
4566 instructions. Fix formatting of debug message.
4567 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 4568
d4862372
JB
45692011-03-17 Joel Brobecker <brobecker@gnat.com>
4570
4571 * target.h (struct target_ops): Remove to_lookup_symbol field.
4572 (target_lookup_symbol): Delete macro.
4573 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4574 (update_current_target, setup_target_debug): Remove handling
4575 of to_lookup_symbol target_ops field.
4576 * ada-tasks.c (get_known_tasks_addr): Remove use of
4577 target_lookup_symbol.
4578 * coffread.c (coff_symtab_read): Likewise.
4579 * dbxread.c (read_dbx_symtab): Ditto.
4580
d645e32e
JB
45812011-03-17 Joel Brobecker <brobecker@gnat.com>
4582
4583 PR gdb/12116:
4584 * configure.ac: Add getthrds declaration check.
4585 * configure, config.in: Regenerate.
4586 * aix-thread.c (getthrds): Declare only if not already declared
4587 in procinfo.h. More declaration out of get_signaled_thread to
4588 global scope.
4589
29703da4
PM
45902011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4591
4592 * python/py-symtab.c: Populate symtab_object_methods,
4593 sal_object_methods.
4594 (stpy_is_valid): New function.
4595 (salpy_is_valid): Ditto.
4596 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4597 (sympy_is_valid): New function.
4598 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4599 (objfpy_is_valid): New function.
4600 * python/py-inferior.c: Populate inferior_object_methods.
4601 (infpy_is_valid): New function.
4602 * python/py-infthread.c: Populate thread_object_methods.
4603 (thpy_is_valid): New function.
4604 * python/py-block.c: Declare block_object_methods. Populate. Declare
4605 block_iterator_object_methods. Populate.
4606 (blpy_is_valid): New function.
4607 (blpy_iter_is_valid): Ditto.
4608
c00f8484
KS
46092011-03-16 Keith Seitz <keiths@redhat.com>
4610
4611 * linespec.c (find_methods): Canonicalize NAME before looking
4612 up the symbol.
4613 (name_end): New function.
4614 (keep_name_info): New function.
4615 (decode_line_1): Use keep_name_info.
4616 (decode_compound): Likewise.
4617 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4618 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4619
4620 PR c++/12273
4621 * linespec.c (locate_first_half): Keep overload information, too.
4622 (decode_compound): Use a string to represent break characters
4623 to escape the loop.
4624 If P points to a break character, do not increment it.
4625 For C++ and Java, keep overload information and relevant keywords.
4626 If we cannot find a symbol, search the minimal symbols.
4627
4628 PR c++/11734
4629 * linespec.c (decode_compound): Rename SAVED_ARG to
4630 THE_REAL_SAVED_ARG.
4631 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4632 single-quotes.
4633 Pass a valid block to lookup_symbol.
4634 (lookup_prefix_sym): Likewise.
4635 (find_method): Construct search name based on SYM_CLASS instead
4636 of SAVED_ARG.
4637 * psymtab.c (lookup_partial_symbol): Add language parameter.
4638 (lookup_symbol_aux_psymtabs): Likewise.
4639 Don't assume that the psymtab we found was the right one. Search
4640 for the desired symbol in the symtab to be certain.
4641 (psymtab_search_name): New function.
4642 (lookup_partial_symbol): Use psymtab_search_name.
4643 Add language parameter.
4644 (read_symtabs_for_function): Add language parameter and pass to
4645 lookup_partial_symbol.
4646 (find_symbol_file_from_partial): Likewise.
4647
c91513d8
PP
46482011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4649
4650 PR gdb/12528
4651 * dwarf2read.c (noop_record_line): New function.
4652 (dwarf_decode_lines): Ignore line tables for GCd functions.
4653
b37520b6
PM
46542011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4655
4656 Fix ARI warnings about new lines at the end of messages, which
4657 are unneeded as there is a new line added at the end of the message
4658 automatically.
4659 * darwin-nat.c (darwin_stop_inferior): Ditto.
4660 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4661 * dfp.c (decimal_to_number): Ditto.
4662 * exec.c (print_section_info): Ditto.
4663 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4664 * osdata.c (get_osdata): Ditto.
4665 * record.c (bfdcore_write): Ditto.
4666 * remote-mips.c (mips_readchar): Ditto.
4667 * remote.c (read_ptid): Ditto.
4668 * ser-mingw.c (ser_windows_raw): Ditto.
4669 * tracepoint.c (add_local_symbols): Ditto.
4670 * windows-nat.c (fake_create_process): Ditto.
4671
b08ee6a2
TT
46722011-03-16 Tom Tromey <tromey@redhat.com>
4673
4674 * tracepoint.c (stop_tracing): Don't declare.
4675 * event-top.c (after_char_processing_hook): Add `(void)'.
4676
9a6f1302
PM
46772011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4678
4679 * NEWS: Add Parameter sub-classing description.
4680
7ceb86b1
KT
46812011-03-16 Kai Tietz <ktietz@redhat.com>
4682
4683 * MAINTAINERS: Update my e-mail address.
4684
efeff6cf
AT
46852011-03-15 Andreas Tobler <andreast@fgznet.ch>
4686
4687 * MAINTAINERS: Add myself for write after approval privileges.
4688
681c238c
MS
46892011-03-15 Michael Snyder <msnyder@vmware.com>
4690
f3df5b08
MS
4691 * frame.c (find_frame_sal): Assert sym is not null.
4692
13f6513c
MS
4693 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4694
50412521
MS
4695 * objc-lang.c (selectors_info): Check strchr for null result.
4696
681c238c
MS
4697 * stabsread.c (define_symbol): Guard against bad stabstring input.
4698
6ced1581
PM
46992011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4700
4701 Remove trailing spaces and tabulations from pascal language
4702 support sources.
4703 p-exp.y: Ditto.
4704 p-lang.c: Ditto.
4705 p-lang.h: Ditto.
4706 p-valprint.c: Ditto.
4707
9373cf26
JK
47082011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4709
4710 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4711 than LOW. Comment it.
4712 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4713 HIGHPC not strictly higher than LOWPC.
4714
9a1edae6
PM
47152011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4716
4717 Fix formatting of function declarations returning a pointer in
4718 previous commit.
4719 * varobj.c (varobj_add_child): Ditto.
4720 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4721 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4722
24e9cda0
UW
47232011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4724
4725 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4726 for the "generic" vector ABI used with GCC 4.3 and later.
4727 (ppc64_sysv_abi_return_value): Likewise.
4728
47292011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
4730
4731 * infcall.c (call_function_by_hand): Function return value is
4732 always a non_lval, even when using struct_return.
4733
c9174737
PA
47342011-03-15 Pedro Alves <pedro@codesourcery.com>
4735
4736 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4737 (map_display_numbers): New.
4738 (do_delete_display): New.
4739 (undisplay_command): Use map_display_numbers.
4740 (do_enable_disable_display): New.
4741 (enable_disable_display_command): New function.
4742 (enable_display): Delete.
4743 (enable_display_command): New.
4744 (disable_display_command): Reimplement.
4745 (_initialize_printcmd): Adjust "enable display" command to use
4746 `enable_display_command' as callback.
4747
350c6c65
PM
47482011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4749
4750 * NEWS: Add Python breakpoint 'stop' operation.
4751
824446ad
PM
47522011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4753
4754 * NEWS: Delete duplicate entry. Fix typo.
4755
2021ad3a
PM
47562011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4757
4758 Fix ARI warning about function names in first column.
4759 Put prototype declaration on same line as return type.
4760 * objc-exp.y: Ditto.
4761 * p-exp.y: Ditto.
4762 * python/py-stopevent.h: Ditto.
4763 For long function names, split parameters to
4764 allow function name on same line as return type.
4765 * solib-pa64.c: Ditto.
4766 * varobj.c: Ditto.
4767 * varobj.h: Ditto.
4768 For long function declaration, use single line.
4769 * hppa-tdep.h: Ditto.
4770 * inferior.h: Ditto.
4771
7371cf6d
PM
47722011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4773
4774 * python/python.h: Declare gdbpy_should_stop and
4775 gdbpy_breakpoint_has_py_cond.
4776 * python/python.c: Add python.h to includes. Remove python.h from
4777 HAVE_PYTHON definition
4778 (gdbpy_should_stop): New dummy function.
4779 (gdbpy_breakpoint_has_py_cond): New dummy function.
4780 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4781 sub-classing capabilities.
4782 (gdbpy_should_stop): New function.
4783 (gdbpy_breakpoint_has_py_cond): New function.
4784 (local_setattro): New function.
4785 * breakpoint.c (condition_command): Add check for Python 'stop'
4786 operation.
4787 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4788 operation function as part of stop/continue tests.
4789
37b50a69
TT
47902011-03-14 Tom Tromey <tromey@redhat.com>
4791
4792 PR gdb/12576:
4793 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4794 (needs_frame_dwarf_call): Likewise.
4795
eeae04df
PM
47962011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4797
4798 Fix ARI warning about functions without parameters that do not
4799 use (void).
4800 * breakpoint.c (all_tracepoints): Replace () by (void).
4801 * f-exp.y (match_string_literal): Ditto.
4802 (yylex): Ditto.
4803 * m2-exp.y (yylex): Ditto.
4804 * mep-tdep.c (current_me_module): Ditto.
4805 (current_options): Ditto.
4806 (current_cop_data_bus_width): Ditto.
4807 (current_cr_names): Ditto.
4808 (current_cr_is_float): Ditto.
4809 (current_ccr_names): Ditto.
4810 * objc-exp.y (yylex): Ditto.
4811 * p-exp.y (yylex): Ditto.
4812 * remote.c (send_interrupt_sequence): Ditto.
4813 * tracepoint.c (current_trace_status): Ditto.
4814 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4815 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4816
6dc3565d
MS
48172011-03-11 Michael Snyder <msnyder@vmware.com>
4818
1427fe5e
MS
4819 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4820 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4821 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4822 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4823 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4824
60bc018f
MS
4825 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4826 (delete_async_event_handler): Ditto.
4827
f3be5b64
MS
4828 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4829
4c2d5724
MS
4830 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4831
6dc3565d
MS
4832 * top.c (set_verbose): Assert showcmd was found.
4833
4e6ca6d5
MG
48342011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4835
4836 * xtensa-tdep.c (warning_once): Correct style issues.
4837
815a83e4
YQ
48382011-03-11 Yao Qi <yao@codesourcery.com>
4839
4840 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4841
f2eb0bc8
AS
48422011-03-11 Andreas Schwab <schwab@redhat.com>
4843
4844 * common/aclocal.m4: Remove.
4845
b801de47
MG
48462011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4847
4848 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4849 (xtensa_write_register, xtensa_read_register): Likewise.
4850 (xtensa_hextochar): Removed.
4851 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4852
dbab50de
MG
48532011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4854
4855 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 4856 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
4857 (xtensa_alloc_frame_cache): Add initialization for new fields.
4858 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4859 (warning_once): New function.
4860 (xtensa_insn_kind): New item c0opc_and.
4861 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
4862 (call0_track_op): Change arguments. New local variable litbase.
4863 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4864 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4865 in the prologue.
dbab50de 4866 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 4867 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
4868 Add the variety of updates to handle extended prologues, which now can
4869 conduct dynamic stack adjustments.
4870 (call0_frame_cache): Likewise.
4871 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4872 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4873
b2c04452
MS
48742011-03-10 Michael Snyder <msnyder@vmware.com>
4875
f8f67713
MS
4876 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4877 (cmd_qtframe): Ditto.
4878 (cmd_qtbuffer): Ditto.
4879 (cmd_bigqtbuffer): Ditto.
4880
197f0a60
TT
48812011-03-10 Tom Tromey <tromey@redhat.com>
4882
4883 * tracepoint.c (trace_actions_command): Update.
4884 * thread.c (thread_apply_command): Update.
4885 * reverse.c (delete_bookmark_command): Update.
4886 (bookmarks_info): Update.
4887 * printcmd.c (undisplay_command): Update.
4888 * memattr.c (mem_enable_command): Update.
4889 (mem_disable_command): Update.
4890 (mem_delete_command): Update.
4891 * inferior.c (detach_inferior_command): Update.
4892 (kill_inferior_command): Update.
4893 (remove_inferior_command): Update.
4894 * cli/cli-utils.h (struct get_number_or_range_state): New.
4895 (init_number_or_range): Declare.
4896 (get_number_or_range): Update.
4897 * cli/cli-utils.c (init_number_or_range): New function.
4898 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4899 static variables.
4900 (number_is_in_list): Update.
4901 * breakpoint.h (get_tracepoint_by_number): Update.
4902 * breakpoint.c (map_breakpoint_numbers): Update for change to
4903 get_number_or_range.
4904 (find_location_by_number): Use get_number, not
4905 get_number_or_range.
4906 (trace_pass_set_count): New function.
4907 (trace_pass_command): Update for change to get_number_or_range.
4908 Rework loop logic.
4909 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4910 'state' parameter.
4911
ecec24e6
PM
49122011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4913
4914 * python/py-param.c (add_setshow_generic): Add set/show callback
4915 parameters. Register Python object context.
4916 (get_show_value): New function.
4917 (get_set_value): New function.
4918 (call_doc_function): New function.
4919 (get_doc_string): Move behind get_show_value/get_set_value.
4920
6d6c6b1f
JK
49212011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4922
4923 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4924
68d6df83
MG
49252011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4926
dbab50de 4927 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
4928 (xtensa_write_register): Likewise.
4929 (xtensa_hextochar): Add comment and update to match coding conventions.
4930 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4931 (execute_l32e, execute_s32e, execute_code): Update comments.
4932 (xtensa_exception_handler_t): Update to match coding conventions.
4933 (xtensa_insn_kind): Likewise.
4934
85c9d6a6
MS
49352011-03-09 Michael Snyder <msnyder@vmware.com>
4936
4937 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4938
91495617
PA
49392011-03-09 Pedro Alves <pedro@codesourcery.com>
4940
4941 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4942
eb8c0621
TT
49432011-03-09 Tom Tromey <tromey@redhat.com>
4944
4945 * thread.c (restore_selected_frame): Handle frame_level == -1.
4946 (make_cleanup_restore_current_thread): Use
4947 get_selected_frame_if_set.
4948 * frame.h (get_selected_frame_if_set): Declare.
4949 * frame.c (get_selected_frame_if_set): New function.
4950
9f37bbcc
PA
49512011-03-09 Pedro Alves <pedro@codesourcery.com>
4952
4953 * cli/cli-cmds.c (shell_escape): Use lbasename.
4954 * coffread.c (coff_start_symtab): Constify parameter.
4955 (complete_symtab): Constify `name' parameter.
4956 (coff_symtab_read): Constify `filestring' local.
4957 (coff_getfilename): Constify return and `result' local.
4958 Use lbasename.
4959 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4960 * linux-fork.c (info_checkpoints_command): Use lbasename.
4961 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4962 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4963 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4964 * procfs.c (procfs_make_note_section): Use lbasename.
4965 * tui/tui-io.c (printable_part): Constity return and parameter.
4966 Use lbasename.
4967 (print_filename): Constify parameters, and local `s'.
4968 (tui_rl_display_match_list): Constify local `temp'.
4969
f8de3c55
JK
49702011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4971
4972 Revert:
4973 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 Fix DWARF-3+ DW_AT_accessibility default assumption.
4975 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4976 cu->header.version >= 3.
4977
d9837b00
YQ
49782011-03-09 Yao Qi <yao@codesourcery.com>
4979
4980 * common/Makefile.in: Remove.
4981 * common/configure: Remove.
4982 * common/configure.ac: Remove.
4983
e637a4f5
YQ
49842011-03-09 Yao Qi <yao@codesourcery.com>
4985
4986 Revert:
4987 2011-02-11 Yao Qi <yao@codesourcery.com>
4988
4989 * common/Makefile.in: Add copyright header.
4990
4991 2011-02-11 Yao Qi <yao@codesourcery.com>
4992
4993 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4994 libcommon.a.
4995 * configure.ac: Add common to sub dir.
4996 * configure: Regenerate.
4997
f976a05d
MG
49982011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4999
5000 * xtensa-tdep.c (call0_ret): New function.
5001 (xtensa_skip_prologue): Speed up analysis.
5002
57041825
MG
50032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5004
5005 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5006 while executing MI command -data-list-changed-registers.
5007
08b9c608
MG
50082011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5009
5010 * xtensa-tdep.c (xtensa_read_register): New function.
5011 (xtensa_write_register): New function.
5012 (xtensa_find_register_by_name): New function.
5013 (xtensa_windowed_frame_cache): Update comments in type description.
5014 (xtensa_frame_cache): Likewise.
5015 (xtensa_window_interrupt_insn): New function.
5016 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5017 (xtensa_insn_kind): Add new instructions.
5018 (rwx_special_register): New function.
5019 (call0_classify_opcode): Add new instructions to the analysis.
5020 (a0_saved, a7_saved, a11_saved): New variables.
5021 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5022 (execute_l32e): New function.
5023 (execute_s32e): New function.
5024 (xtensa_exception_handler_t): New type.
5025 (execute_code): New function.
5026 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5027 analysis for Xtensa Window Exception handlers.
5028
4d1acb11
MG
50292011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5030
98689b25
MG
5031 * xtensa-tdep.c (TX_PS): New.
5032 (windowing_enabled): Update to count for Call0 ABI.
5033 (xtensa_hextochar): New.
5034 (xtensa_init_reggroups): Make algorithm generic.
5035 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5036
50372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5038
5039 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 5040
d3f323f3
MS
50412011-03-08 Michael Snyder <msnyder@vmware.com>
5042
3dcabaa8
MS
5043 * i386-tdep.c (i386_follow_jump): Check return value of
5044 target_read_memory.
5045 (i386_analyze_struct_return): Ditto.
5046 (i386_skip_probe): Ditto.
5047 (i386_match_insn): Ditto.
5048 (i386_skip_noop): Ditto.
5049 (i386_analyze_frame_setup): Ditto.
5050 (i386_analyze_register_saves): Ditto.
5051 (i386_skip_prologue): Ditto.
5052 (i386_skip_main_prologue): Ditto.
5053
13b3fd9b
MS
5054 * target.c (read_whatever_is_readable): Fix memory leak.
5055
d3f323f3
MS
5056 * i386-tdep.c (i386_process_record): Document fall through.
5057
421d5c74
JK
50582011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5059
5060 Fix DWARF-3+ DW_AT_accessibility default assumption.
5061 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5062 cu->header.version >= 3.
5063
63154eca
PA
50642011-03-08 Pedro Alves <pedro@codesourcery.com>
5065
5066 * remote.c (remote_check_symbols): Skip if the target has no
5067 execution.
5068
f1a507a1
JB
50692011-03-08 Joel Brobecker <brobecker@adacore.com>
5070
5071 * target.c (read_whatever_is_readable): Reformat comment,
5072 with a minor typo fix. Minor reformatting of the code.
5073
36073a92
YQ
50742011-03-08 Yao Qi <yao@codesourcery.com>
5075
5076 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5077 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5078 Use cached result instead of calling displaced_in_arm_mode again.
5079 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5080 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5081 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5082 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5083 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5084 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5085 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5086 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5087 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5088 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5089 (arm_catch_kernel_helper_return): Likewise.
5090 * gdb/arm-tdep.h : Update function declarations.
5091
d3f323f3 50922011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 5093
e0e40094
MS
5094 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5095
0b2381f5
MS
5096 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5097
0350914a
MS
5098 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5099
69feea6f
MS
5100 * elfread.c (elf_symtab_read): Stop memory leak.
5101
e6040cbd
MS
5102 * main.c (captured_main): Fix memory leak.
5103
052874e8
AS
51042011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5105
5106 * ada-lang.c (compare_names): Call is_name_suffix with string1
5107 instead of string2.
5108
b11896a5
TT
51092011-03-07 Tom Tromey <tromey@redhat.com>
5110
5111 * xcoffread.c (xcoff_sym_fns): Update.
5112 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5113 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5114 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5115 (symbol_file_add_with_addrs_or_offsets): Likewise.
5116 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5117 * somread.c (som_sym_fns): Update.
5118 * psymtab.h (require_partial_symbols): Declare.
5119 * psymtab.c (require_partial_symbols): New function.
5120 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5121 (ALL_OBJFILE_PSYMTABS): Undef.
5122 (ALL_PSYMTABS): Move from psympriv.h.
5123 (lookup_partial_symtab, find_pc_sect_psymtab)
5124 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5125 (find_last_source_symtab_from_partial)
5126 (forget_cached_source_info_partial)
5127 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5128 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5129 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5130 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5131 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5132 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5133 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5134 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5135 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5136 psymtabs.
5137 * mipsread.c (ecoff_sym_fns): Update.
5138 * machoread.c (macho_sym_fns): Update.
5139 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5140 (read_psyms): New function.
5141 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5142 (elf_sym_fns_lazy_psyms): New global.
5143 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5144 dwarf2_build_psymtabs.
5145 * dbxread.c (aout_sym_fns): Update.
5146 * coffread.c (coff_sym_fns): Update.
5147
fda326dd
TT
51482011-03-07 Tom Tromey <tromey@redhat.com>
5149
5150 * infrun.c (print_exited_reason): Include inferior id and pid in
5151 message.
5152
aeaec162
TT
51532011-03-07 Tom Tromey <tromey@redhat.com>
5154
5155 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5156 parameter.
5157 (target_has_execution_1): Update.
5158 (target_has_execution_current): Declare.
5159 (target_has_execution): Call target_has_execution_current.
5160 (default_child_has_execution): Update.
5161 * target.c (default_child_has_execution): Add 'the_ptid'
5162 parameter.
5163 (target_has_execution_1): Likewise.
5164 (target_has_execution_current): New function.
5165 (add_target): Update.
5166 (init_dummy_target): Update.
5167 * remote-m32r-sdi.c (m32r_has_execution): New function.
5168 (init_m32r_ops): Use it.
5169 * record.c (record_core_has_execution): Now static. Add
5170 'the_ptid' parameter.
5171 * inferior.c (have_live_inferiors): Don't save current thread.
5172 Use target_has_execution_1.
5173
08e14083
YQ
51742011-03-07 Yao Qi <yao@codesourcery.com>
5175
5176 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5177
c05d19c5
JB
51782011-03-07 Joel Brobecker <brobecker@adacore.com>
5179
5180 * elfread.c (elf_symtab_read): Minor reformatting.
5181
3e6ef9e4
JB
51822011-03-07 Joel Brobecker <brobecker@adacore.com>
5183
5184 * objc-lang.c (selectors_info): Minor reformatting.
5185
dbb8534f
JB
51862011-03-07 Joel Brobecker <brobecker@adacore.com>
5187
5188 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5189
dd70cc93
JB
51902011-03-07 Joel Brobecker <brobecker@adacore.com>
5191 Michael Snyder <msnyder@vmware.com>
5192
5193 * ada-valprint.c (ada_val_print_array): Move the declaration of
5194 "byte_order" and "elttype" inside the block where these variables
5195 are actually used. Remove some special handling for the case
5196 where "elttype" and "eltlen" are null. Replace by a comment
5197 and a couple of assertion checks.
5198
b27cf2b3
MS
51992011-03-05 Michael Snyder <msnyder@vmware.com>
5200
5201 * source.c (add_path): Replace semicolon at end of block.
5202 * dwarf2expr.c (execute_stack_op): Ditto.
5203
5387a0c6
MF
52042011-03-05 Mike Frysinger <vapier@gentoo.org>
5205
5206 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5207 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5208 (bfin-*-*): Likewise.
5209
e3aa49af
MS
52102011-03-05 Michael Snyder <msnyder@vmware.com>
5211
82ae4854
MS
5212 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5213 * mdebugread.c (parse_symbol): Ditto.
5214 * parse.c (parse_exp_in_context): Ditto.
5215 * source.c (add_path): Ditto.
5216 * utils.c (gnu_debuglink_crc32): Ditto.
5217 * varobj.c (variable_language): Ditto.
5218
e3aa49af
MS
5219 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5220
154f592e
MS
52212011-03-04 Michael Snyder <msnyder@vmware.com>
5222
da3ecdc6
MS
5223 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5224
9cc89665
MS
5225 * symfile.c (simple_overlay_update): Check for null return value
5226 from lookup_minimal_symbol.
5227
154f592e
MS
5228 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5229
63ffa6ee
TJB
52302011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5231
5232 * eval.c (parse_and_eval_address_1): Remove function.
5233 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5234 instead of parse_and_eval_address_1.
5235 * value.h (parse_and_eval_address_1): Remove prototype.
5236
a17d146e
MS
52372011-03-04 Michael Snyder <msnyder@vmware.com>
5238
5239 * remote.c (putpkt_binary): Document that case stmt falls through.
5240
1a6a67de
TJB
52412011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5242
5243 * breakpointc (print_it_typical): Move NULL check from here...
5244 (print_bp_stop_message): ... to here.
5245
488919c4
MS
52462011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5247
5248 * breakpoint.c (enable_command): Use break instead of continue,
5249 and fill in a missing break.
5250 (disable_command): Ditto.
5251
1e182ce8
UW
52522011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5253
5254 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5255 (terminal_save_ours): Remove misleading comment.
5256 (inflow_inferior_data_cleanup): Free ttystate.
5257 (inflow_inferior_exit): Likewise.
5258 (copy_terminal_info): Copy ttystate.
5259
5260 * serial.c (serial_copy_tty_state): New function.
5261 * serial.h (serial_copy_tty_state): Add prototype.
5262 (struct serial_ops): Add copy_tty_state callback.
5263 * ser-base.c (ser_base_copy_tty_state): New function.
5264 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5265 * ser-go32.c (dos_copy_tty_state): New function.
5266 (dos_ops): Install copy_tty_state callback.
5267 * ser-mingw.c (_initialize_ser_windows): Likewise.
5268 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5269 * ser-unix.c (hardwire_copy_tty_state): New function.
5270 (_initialize_ser_hardwire): Install it.
5271
b2c5f112
MS
52722011-03-04 Michael Snyder <msnyder@vmware.com>
5273
2abae994
MS
5274 * breakpoint.c (create_breakpoint): Add missing break statement.
5275
7f5936f9
MS
5276 Reverting this patch:
5277 * infcall.c (call_function_by_hand): Add break statements for lint.
5278
b2c5f112
MS
5279 Reverting this patch:
5280 * cli/cli-script.c (script_from_file): Add break for lint.
5281
42b1321c
MS
52822011-03-04 Michael Snyder <msnyder@vmware.com>
5283
5284 * solib.c (reload_shared_libraries_1): Close memory leak.
5285
3e2a0cee
TT
52862011-03-03 Tom Tromey <tromey@redhat.com>
5287
5288 PR gdb/12538:
5289 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5290 DW_STRING is NULL.
5291
58397cb7
MS
52922011-03-03 Michael Snyder <msnyder@vmware.com>
5293
2e3fd767
MS
5294 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5295 fields of struct 'st' to zero.
5296
58397cb7
MS
5297 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5298 sal.pspace before calling set_current_source_symtab_and_line.
5299
ced54c8f
YQ
53002011-03-03 Yao Qi <yao@codesourcery.com>
5301
5302 * Makefile.in (configure-common): Remove. Let Makefile
5303 in dir common to rebuild itself.
5304 (common/Makefile): Likewise.
5305
3351ea09
JB
53062011-03-03 Joel Brobecker <brobecker@adacore.com>
5307
5308 * utils.c (parse_escape): Add i18n markup in error message.
5309
bf9f652a
YQ
53102011-03-03 Yao Qi <yao@codesourcery.com>
5311
5312 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5313 ARM_PC_REGNUM.
5314 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5315 (displaced_write_reg, displaced_read_reg): Likewise.
5316 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5317 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5318 (cleanup_branch): Replace magic number 14 and 15 with
5319 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5320
d42de051
MS
53212011-03-02 Michael Snyder <msnyder@vmware.com>
5322
240f9570
MS
5323 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5324
10dd8b54
MS
5325 * cli/cli-script.c (script_from_file): Add break for lint.
5326
b98bd911
MS
5327 * mdebugread.c (parse_partial_symbols): Fix indent.
5328
3494b66d
MS
5329 * target-descriptions.c (tdesc_gdb_type): No need to call
5330 xstrdup, callee saves a copy.
5331
daac021a
MS
5332 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5333
c38d16a7
MS
5334 * infcall.c (call_function_by_hand): Add break statements for lint.
5335
905b671b
MS
5336 * utils.c (parse_escape): Escape the escape char.
5337
f2eb0bc8 5338 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
5339 PyList_Append fails.
5340 (gdbpy_inferiors): Error out if build_inferior_list fails.
5341
8c6a60d1
MS
5342 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5343 a function call.
5344
d42de051
MS
5345 * record.c (record_restore): Move printf to before error return.
5346
4db71c0b
YQ
53472011-03-02 Yao Qi <yao@codesourcery.com>
5348
5349 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5350 is_thumb and insn_size.
5351 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5352 on both ARM and Thumb mode.
5353 (arm_process_displaced_insn): Set is_thumb and insn_size.
5354 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5355 (arm_displaced_step_fixup): Likewise.
5356
a9dc8dcc
MS
53572011-03-01 Michael Snyder <msnyder@vmware.com>
5358
53624a93
MS
5359 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5360
77766669
MS
5361 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5362
62d5b8da
MS
5363 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5364
5e9e105f
MS
5365 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5366
dc19db01
MS
5367 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5368 with xmalloc.
5369
5ce64950
MS
5370 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5371 which shadows function parameter.
5372
a0aa2878
MS
5373 * tracepoint.c (create_tsv_from_upload): Superfluous call
5374 to xstrdup. Callee already calls xstrdup.
5375
e325fb69
MS
5376 * linespec.c (decode_line_1): Remove unnecessary null check.
5377
21cbba77
MS
5378 * tracepoint.c (scope_info): Fix mem leak, remove underused
5379 variable.
5380
63360adc
MS
5381 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5382 superfluous null check.
5383
18ea20ac 5384 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 5385 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 5386
d014929c
MS
5387 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5388
6e9130cf
MS
5389 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5390 be null.
5391
5f01dbc0
MS
5392 * linespec.c (decode_line_1): Check for null before dereference.
5393
d684ab85
MS
5394 * reverse.c (record_restore): Move null-check to before pointer
5395 dereference.
5396
bfffb7e3
MS
5397 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5398
a9dc8dcc
MS
5399 * objc-lang.c (selectors_info): Add explanitory comment.
5400 (classes_info): Ditto.
5401
478fd957
UW
54022011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5403
5404 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5405 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5406 versions of the trampoline. Handle Thumb vs. ARM addresses.
5407 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5408 (arm_linux_init_abi): Install it.
5409 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5410 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5411
0480cefa
MS
54122011-02-28 Michael Snyder <msnyder@vmware.com>
5413
ac50ab3b
MS
5414 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5415 a little bigger, to avoid possibility of an overflow.
5416
f63fbe86
MS
5417 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5418 buffers a little bigger, to avoid possibility of an overflow.
5419
9e91a352
MS
5420 * coffread.c (coff_getfilename): Add check to avoid overflow.
5421
f2eb0bc8 5422 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
5423 avoid overflow.
5424 (classes_info): Error out on too long REGEXP.
5425
098ab512
MS
5426 * infrun.c (handle_inferior_event): Remove unused function call.
5427
bcbd1de9
MS
5428 * fork-child.c (fork_inferior): Remove ifdef'd code and
5429 unused variable.
5430
2e456570
MS
5431 * linux-thread-db.c (attach_thread): Discard unused value.
5432
14571dad
MS
5433 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5434
a9cbf802
MS
5435 * remote.c (remote_get_noisy_reply): Discard unused value.
5436 (remote_vcont_resume): Ditto.
5437 (remote_stop_ns): Ditto.
5438
5715d26e
MS
5439 * linespec.c (decode_objc): Delete unused variable.
5440
4a9bca80
MS
5441 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5442
f47fb265
MS
5443 * dwarf2read.c (add_partial_symbol): Discard unused values.
5444 (read_base_type): Delete unused variable.
5445
e81cff30
MS
5446 * dbxread.c (read_dbx_symtab): Discard unused value.
5447
262acaeb
MS
5448 * eval.c (evaluate_subexp_standard): Delete unused variable,
5449 and discard unused values.
5450
df983543
MS
5451 * infcmd.c (_initialize_infcmd): Discard unused values.
5452
89acf84d
MS
5453 * stabsread.c (rs6000_builtin_type): Missing break statement.
5454
ab8b8aca
MS
5455 * dbxread.c (process_one_symbol): Discard unused value.
5456
6b4511ab
MS
5457 * coffread.c (coff_end_symtab): Delete unused variable.
5458
e8e80198
MS
5459 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5460 (dwarf2_add_typedef): Delete unused variable.
5461 (read_namespace): Ditto.
5462 (dwarf_decode_macros): Ditto.
5463
976aa66e
MS
5464 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5465
5b92b49f
MS
5466 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5467
91e8df85
MS
5468 * p-valprint.c (pascal_val_print): Discard unused value.
5469
899500d6
MS
5470 * utils.c (nquery): Call va_end before return;
5471 (yquery): Ditto.
5472 (query): Ditto.
5473
0480cefa
MS
5474 * proc-service.c (ps_plog): Call va_end before return.
5475
fb6a3ed3
TT
54762011-02-28 Tom Tromey <tromey@redhat.com>
5477
5478 * python/python.c (gdbpy_value_cst): New global.
5479 (_initialize_python): Initialize it.
5480 * python/python-internal.h (gdbpy_value_cst): Declare.
5481 * python/py-value.c (convert_value_from_python): Use
5482 gdbpy_value_cst.
5483
c05202a1
MS
54842011-02-28 Michael Snyder <msnyder@vmware.com>
5485
e463f587
MS
5486 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5487
c38eea1a
MS
5488 * breakpoint.c (catch_syscall_completer): Free malloced list.
5489
3ef09ab5
MS
5490 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5491
8f9a01ee
MS
5492 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5493 (lval_func_check_synthetic_pointer): Ditto.
5494 (lval_func_free_closure): Fix use-after-free.
c05202a1 5495
477d0d57
TT
54962011-02-28 Tom Tromey <tromey@redhat.com>
5497
5498 * psymtab.c (expand_partial_symbol_tables): Use
5499 ALL_OBJFILE_PSYMTABS.
5500
20937029
JK
55012011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5502
5503 * objc-lang.c (selectors_info): Error on too long REGEXP.
5504
907b7f4f
MS
55052011-02-28 Michael Snyder <msnyder@vmware.com>
5506
92e96192
MS
5507 * python/py-param.c (set_parameter_value): Add missing
5508 break statement.
5509
907b7f4f
MS
5510 * linux-record.c (record_linux_system_call): Add missing
5511 break statement.
5512
12c5a436
UW
55132011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5514
5515 * breakpoint.c (print_one_breakpoint_location): Remove unused
5516 argument PRINT_ADDRESS_BITS. Update callers.
5517 (print_one_breakpoint): Likewise.
5518
170b53b2
UW
55192011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5520
5521 * breakpoint.c (wrap_indent_at_field): New function.
5522 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5523 Allocate ui_stream locally instead of using STB argument.
5524 (print_one_breakpoint_location): Update call.
5525 * ui-out.c (ui_out_query_field): New function.
5526 * ui-out.h (ui_out_query_field): Add prototype.
5527
8ab1f94d
JB
55282011-02-28 Joel Brobecker <brobecker@adacore.com>
5529
5530 From Michael Snyder <msnyder@vmware.com>
5531 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5532
7d488639
MS
55332011-02-27 Michael Snyder <msnyder@vmware.com>
5534
ae179fba
MS
5535 * objc-lang.c (selectors_info): Prevent string overrun.
5536
086dbf66
MS
5537 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5538 error in strncpy.
5539
f2eb0bc8 5540 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
5541 outer scope.
5542
7d488639
MS
5543 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5544 param with a local variable of the same name.
5545
3bd0f5ef
MS
55462011-02-27 Michael Snyder <msnyder@vmware.com>
5547
5548 * value.c (value_from_history_ref): New function.
5549 * value.h (value_from_history_ref): Export.
5550 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5551 to parse value history references.
5552 * cli/cli-utils.h (get_number_trailer): Update comment.
5553
55542011-02-27 Michael Snyder <msnyder@vmware.com>
5555
5556 * inferior.c (detach_inferior_command): Use get_number_or_range.
5557 (kill_inferior_command): Ditto.
5558 (remove_inferior_command): Ditto.
5559 (initialize_inferiors): Make command names plural.
5560 Update help strings.
5561
766062f6
MS
55622011-02-27 Michael Snyder <msnyder@vmware.com>
5563
5564 * darwin-nat-info.c: Fix comment typo.
5565 * dwarf2expr.h: Ditto.
5566 * fbsd-nat.c: Ditto.
5567 * fbsd-nat.h: Ditto.
5568 * frame-unwind.h: Ditto.
5569 * frame.h: Ditto.
5570 * hppa-hpux-tdep.c: Ditto.
5571 * i386-linux-nat.c: Ditto.
5572 * linux-nat.c: Ditto.
5573 * nbsd-nat.c: Ditto.
5574 * nbsd-nat.h: Ditto.
5575 * ppc-linux-tdep.c: Ditto.
5576 * serial.c: Ditto.
5577 * ui-file.h: Ditto.
5578 * tui/tui-winsource.c: Ditto.
5579
f2c4ead5
MS
55802011-02-26 Michael Snyder <msnyder@vmware.com>
5581
86b887df
MS
5582 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5583
66fd3b1e
MS
5584 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5585
8c814cdd
MS
5586 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5587 with a local variable of the same name.
5588
6d5e094a 5589 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 5590 param with a local variable of the same name.
6d5e094a 5591 (i387_supply_xsave): Ditto.
e5b3d7d6 5592
5eee517d
MS
5593 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5594 that it does not shadow a function parameter.
5595
8fbf6b93
MS
5596 * i386-nat.c (i386_length_and_rw_bits): Document that case
5597 statement is meant to fall through.
5598
cb969d61
MS
5599 * expprint.c (dump_subexp_body_standard): Document that case
5600 statement is meant to fall through.
5601
f2c4ead5
MS
5602 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5603 dead if statement. Condition can't be false.
5604
b021a221
MS
56052011-02-25 Michael Snyder <msnyder@vmware.com>
5606
5607 * arm-tdep.c: Fix typos in comments.
5608 * bsd-uthread.c: Ditto.
5609 * completer.c: Ditto.
5610 * corelow.c: Ditto.
5611 * cp-namespace.c: Ditto.
5612 * cp-support.c: Ditto.
5613 * cris-tdep.c: Ditto.
5614 * dbxread.c: Ditto.
5615 * dwarf2read.c: Ditto.
5616 * frame.h: Ditto.
5617 * gdbtypes.h: Ditto.
5618 * inferior.h: Ditto.
5619 * mdebugread.c: Ditto.
5620 * mips-tdep.c: Ditto.
5621 * ppc-linux-nat.c: Ditto.
5622 * ppc-linux-tdep.c: Ditto.
5623 * printcmd.c: Ditto.
5624 * sol-thread.c: Ditto.
5625 * solib-frv.c: Ditto.
5626 * solist.h: Ditto.
5627 * sparc64-tdep.c: Ditto.
5628 * spu-tdep.c: Ditto.
5629 * stabsread.c: Ditto.
5630 * symfile.c: Ditto.
5631 * valops.c: Ditto.
5632 * varobj.c: Ditto.
5633 * vax-nat.c: Ditto.
5634 * python/py-block.c: Ditto.
5635 * python/py-symbol.c: Ditto.
5636 * python/py-symtab.c: Ditto.
5637 * python/py-value.c: Ditto.
5638 * tui/tui-win.c: Ditto.
5639
c82c0b55
MS
56402011-02-25 Michael Snyder <msnyder@vmware.com>
5641
5642 * inferior.c (print_inferior): Accept a string instead of an int
5643 for requested_inferiors, and use get_number_or_range to parse it.
5644 (info_inferiors_command): Pass args string to print_inferior.
5645 (initialize_inferiors): Change help string for info inferiors.
5646 * inferior.h (print_inferior): Export prototype change.
5647
ee00cd23
TT
56482011-02-25 Tom Tromey <tromey@redhat.com>
5649
5650 * common/ax.def (invalid2): Set to 0x31.
5651
0502ed8c
JK
56522011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5653
5654 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5655 L and plongest.
5656 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5657 use L and plongest.
5658 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5659
2c9de912
MS
56602011-02-24 Michael Snyder <msnyder@vmware.com>
5661
5662 * Makefile.in (clean): Make clean should remove generated files
5663 observer.h and observer.inc.
5664
a04b0428
JB
56652011-02-24 Joel Brobecker <brobecker@adacore.com>
5666
5667 Revert the following patch (not approved yet):
5668 2011-02-21 Hui Zhu <teawater@gmail.com>
5669 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5670 * ax-gdb.c (gen_printf_expr_callback): New function.
5671 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5672 * ax-general.c (ax_memcpy): New function.
5673 (ax_print): Handle "printf".
5674 (ax_reqs): Ditto.
5675 * ax.h (ax_memcpy): Forward declare.
5676 * common/ax.def (invalid2): Removed.
5677 (printf): New entry.
5678 * printcmd.c (printcmd.h): New include.
5679 (string_printf): New function.
5680 (ui_printf): Removed.
5681 (printf_command): Remove static. Call string_printf.
5682 (eval_command): Call string_printf.
5683 * printcmd.h: New file.
5684 * tracepoint.c (validate_actionline,
5685 encode_actions_1): handle printf_command.
5686
2b52013f
TT
56872011-02-23 Tom Tromey <tromey@redhat.com>
5688
5689 * ax-general.c (ax_pick): Add missing newline.
5690
e5a67952
MS
56912011-02-23 Michael Snyder <msnyder@vmware.com>
5692
5693 * breakpoint.c (breakpoint_1): Change first argument from an int
5694 to a char pointer, so that the function now accepts a list of
f2eb0bc8 5695 breakpoints rather than just one. Use new function
e5a67952
MS
5696 'number_is_in_list' to implement.
5697 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5698 (watchpoints_info): Ditto.
5699 (tracepoints_info): Ditto.
5700 (maintenance_info_breakpoints): Ditto.
5701 (_initialize_breakpoint): Update help strings to reflect the fact
5702 that these functions can now take more than one argument.
5703 * cli/cli-utils.c (number_is_in_list): New function.
5704 * cli/cli-utils.h (number_is_in_list): Export.
5705
57062011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
5707
5708 * memattr.c (mem_enable_command): Use get_number_or_range.
5709 (mem_disable_command): Ditto.
5710 (mem_delete_command): Ditto.
5711 (_initialize_mem): Tweak usage message to reflect multiple
5712 arguments.
5713
6e6fbe60
DE
57142011-02-22 Doug Evans <dje@google.com>
5715
5716 Add gdb.lookup_global_symbol python function.
5717 * NEWS: Add entry.
5718 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5719 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5720 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5721
79b97fa8
TT
57222011-02-22 Tom Tromey <tromey@redhat.com>
5723
5724 * language.c (language_class_name_from_physname): Rename
5725 'curr_language' argument to 'lang'; use in body.
5726
298f437a
MS
57272011-02-22 Michael Snyder <msnyder@vmware.com>
5728
5729 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5730
b7ea3126
PA
57312011-02-22 Pedro Alves <pedro@codesourcery.com>
5732
5733 * frame-unwind.h: Fix comment to mention the this frame, not the
5734 next.
5735
58ee6d60
TT
57362011-02-22 Tom Tromey <tromey@redhat.com>
5737
5738 * symfile.c (auto_solib_limit): Remove.
5739 * symfile.h (auto_solib_limit): Remove.
5740
36238dbc
JB
57412011-02-22 Joel Brobecker <brobecker@adacore.com>
5742
5743 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5744
aea5b279
MS
57452011-02-21 Michael Snyder <msnyder@vmware.com>
5746
5747 * gdbthread.h (print_thread_info): Change prototype.
5748 * thread.c (print_thread_info): Accept char* instead of int for
5749 requested_threads argument. Use new function number_is_in_list
5750 to determine which threads to list.
5751 (info_threads_command): Pass char* to print_thread_info.
5752 * cli/cli-utils.c (number_is_in_list): New function.
5753 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 5754 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
5755 print_thread_info.
5756 (print_one_inferior): Ditto.
5757 (mi_cmd_list_thread_groups): Ditto.
5758
8caa75ee
JK
57592011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 * common/Makefile.in (CFLAGS): New.
5762 (COMPILE): Add $(CFLAGS).
5763
ea666128
TT
57642011-02-21 Tom Tromey <tromey@redhat.com>
5765
5766 * breakpoint.c (catch_syscall_command_1): Fix typo.
5767
e9cafbcc
TT
57682011-02-21 Tom Tromey <tromey@redhat.com>
5769
5770 * reverse.c: Include cli-utils.h.
5771 * printcmd.c: Include cli-utils.h.
5772 (string_printf): Use skip_spaces.
5773 * cli/cli-utils.h: New file.
5774 * cli/cli-utils.c: New file.
5775 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5776 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5777 * breakpoint.h (get_number, get_number_or_range): Move to
5778 cli-utils.h.
5779 * breakpoint.c: Include cli-utils.h.
5780 (get_number_trailer, get_number, get_number_or_range)
5781 (ep_skip_leading_whitespace): Move to cli-utils.c.
5782 (create_breakpoint_sal, find_condition_and_thread)
5783 (decode_static_tracepoint_spec, watch_command_1)
5784 (watch_maybe_just_location, ep_parse_optional_if_clause)
5785 (catch_fork_command_1, catch_exec_command_1)
5786 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5787 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5788 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5789 (HFILES_NO_SRCDIR): Add cli-utils.h.
5790 (cli-utils.o): New target.
5791
f67fd822
PM
57922011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5793
5794 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5795 before calling discard_all_inferiors.
5796
c9def01d
UW
57972011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5798
5799 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5800 (struct builtin_opencl_type): Remove.
5801 (builtin_opencl_type): Change return type to "struct type **".
5802 (lookup_opencl_vector_type): Update caller.
5803 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5804 (build_opencl_types): Install plain array of "struct type *"
5805 instead of "struct builtin_opencl_type".
5806
e3039479
UW
58072011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5808 Ulrich Weigand <uweigand@de.ibm.com>
5809
5810 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5811 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5812 (struct arm_linux_hwbp_cap): New type.
5813 (arm_linux_get_hwbp_cap): New function.
5814 (arm_linux_get_hw_breakpoint_count): Likewise.
5815 (arm_linux_get_hw_watchpoint_count): Likewise.
5816 (arm_linux_can_use_hw_breakpoint): Likewise.
5817 (arm_hwbp_type): New type.
5818 (arm_hwbp_control_t): Likewise.
5819 (struct arm_linux_hw_breakpoint): Likewise.
5820 (struct arm_linux_thread_points): Likewise.
5821 (arm_threads): New global variable.
5822 (arm_linux_find_breakpoints_by_tid): New function.
5823 (arm_hwbp_control_initialize): Likewise.
5824 (arm_hwbp_control_is_enabled): Likewise.
5825 (arm_hwbp_control_disable): Likewise.
5826 (arm_linux_hw_breakpoint_initialize): Likewise.
5827 (arm_linux_get_hwbp_type): Likewise.
5828 (arm_linux_hw_watchpoint_initialize): Likewise.
5829 (arm_linux_hw_breakpoint_equal): Likewise.
5830 (arm_linux_insert_hw_breakpoint1): Likewise.
5831 (arm_linux_remove_hw_breakpoint1): Likewise.
5832 (arm_linux_insert_hw_breakpoint): Likewise.
5833 (arm_linux_remove_hw_breakpoint): Likewise.
5834 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5835 (arm_linux_insert_watchpoint): Likewise.
5836 (arm_linux_remove_watchpoint): Likewise.
5837 (arm_linux_stopped_data_address): Likewise.
5838 (arm_linux_stopped_by_watchpoint): Likewise.
5839 (arm_linux_watchpoint_addr_within_range): Likewise.
5840 (arm_linux_new_thread): Likewise.
5841 (arm_linux_thread_exit): Likewise.
5842 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5843 related target callbacks. Register arm_linux_new_thread and
5844 arm_linux_thread_exit.
5845 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5846 * arm-tdep.c (arm_pc_is_thumb): Make global.
5847 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5848
b5db5dfc
UW
58492011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5850
5851 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5852 per-frame locations while within a function epilogue.
5853
e25b2cfa
PM
58542011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5855
5856 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5857 to GNU coding standards.
5858
4af53f97
PM
58592011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5860
5861 Allow use of mingw native on Windows 95 OS.
e25b2cfa 5862 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
5863 (ser_windows_close): Only call CancelIo if function exists.
5864 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5865 to check for existence of CancelIo function in kernel32 DLL.
5866
d0e92d82
HZ
58672011-02-21 Hui Zhu <teawater@gmail.com>
5868
5869 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5870 * ax-gdb.c (gen_printf_expr_callback): New function.
5871 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5872 * ax-general.c (ax_memcpy): New function.
5873 (ax_print): Handle "printf".
5874 (ax_reqs): Ditto.
5875 * ax.h (ax_memcpy): Forward declare.
5876 * common/ax.def (invalid2): Removed.
5877 (printf): New entry.
5878 * printcmd.c (printcmd.h): New include.
5879 (string_printf): New function.
5880 (ui_printf): Removed.
5881 (printf_command): Remove static. Call string_printf.
5882 (eval_command): Call string_printf.
5883 * printcmd.h: New file.
5884 * tracepoint.c (validate_actionline,
5885 encode_actions_1): handle printf_command.
5886
7d357efd
MS
58872011-02-19 Michael Snyder <msnyder@vmware.com>
5888
5889 * reverse.c (delete_one_bookmark): Argument is now bookmark
5890 id rather than pointer to bookmark struct.
5891 (delete_bookmark_command): Use get_number_or_range.
5892 (goto_bookmark_command): Parse with get_number instead of strtoul.
5893 (bookmark_1): New function. Print info for one bookmark.
5894 (bookmarks_info): Use get_number_or_range and bookmark_1.
5895
7a45ebd7
MS
58962011-02-18 Michael Snyder <msnyder@vmware.com>
5897
f2eb0bc8 5898 * thread.c (info_threads_command): Re-implement using
7a45ebd7 5899 get_number_or_range.
65ebfb52 5900 (thread_apply_command): Ditto.
7a45ebd7 5901
94d5e490
TT
59022011-02-18 Tom Tromey <tromey@redhat.com>
5903
5904 * common/ax.def: New file.
5905 * ax.h (enum agent_op): Use ax.def.
5906 * ax-general.c (aop_map): Use ax.def.
5907
c7f96d2b
TT
59082011-02-18 Tom Tromey <tromey@redhat.com>
5909
5910 * ax-general.c (aop_map): Add pick and rot.
5911 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5912 <DW_OP_rot>: Implement.
5913 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5914 (ax_pick): Declare.
5915 * ax-general.c (ax_pick): New function.
5916
66694b75
TT
59172011-02-18 Tom Tromey <tromey@redhat.com>
5918
5919 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5920
eeaafae2
JK
59212011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5922 Tom Tromey <tromey@redhat.com>
5923
5924 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5925 make_symbol_overload_list_block with NULL BLOCK.
5926 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5927
3c3fe74c
PA
59282011-02-18 Pedro Alves <pedro@codesourcery.com>
5929
5930 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5931 * breakpoint.h (get_number_or_range): Declare.
5932 * printcmd.c (ALL_DISPLAYS): Declare.
5933 (delete_display): Reimplement taking a display pointer.
5934 (undisplay_command): Accept a range of displays to delete, using
5935 get_number_or_range.
5936
13163d80
PM
59372011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5938
5939 * c-valprint.c (c_val_print): Add embedded_offset to address
5940 for arrays of unspecified length.
5941 * p-valprint.c (pascal_val_print): Likewise.
5942
b434a28f
YQ
59432011-02-18 Yao Qi <yao@codesourcery.com>
5944
5945 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5946 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5947 (thumb_process_displaced_insn): New.
5948 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5949 call to arm_process_displaced_insn.
5950 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5951
9f6f94ff
TT
59522011-02-17 Tom Tromey <tromey@redhat.com>
5953
5954 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5955 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5956 compile_dwarf_to_ax. No longer static. Call
5957 dwarf2_compile_cfa_to_ax.
5958 (locexpr_tracepoint_var_ref): Update.
5959 (loclist_tracepoint_var_ref): Update.
5960 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5961 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5962 argument; add 'gdbarch' and 'pc'.
5963 (dwarf2_compile_cfa_to_ax): New function.
5964 (dwarf2_frame_cache): Update.
5965
e67ad678
JB
59662011-02-17 Joel Brobecker <brobecker@adacore.com>
5967
5968 * ada-lang.c (ada_type_of_array): Fix the size of the array
5969 in the case of an unconstrained packed array.
5970
946ebb0d
YQ
59712011-02-17 Yao Qi <yao@codesourcery.com>
5972
5973 * common/Makefile.in: Add more targets for make.
5974
1ba1b353
TT
59752011-02-16 Tom Tromey <tromey@redhat.com>
5976
5977 * dwarf2loc.c (unimplemented): Fix typo.
5978
b1bfef65
TT
59792011-02-16 Tom Tromey <tromey@redhat.com>
5980
5981 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5982 (compile_dwarf_to_ax) <default>: Use unimplemented.
5983 <DW_OP_deref>: Update.
5984 (disassemble_dwarf_expression): Update.
5985 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5986 (decode_locdesc): Update.
5987 * dwarf2expr.h (dwarf_stack_op_name): Update.
5988
5f1e6f19
TT
59892011-02-16 Tom Tromey <tromey@redhat.com>
5990
5991 * ax.h (struct aop_map) <name>: Now const.
5992
a0c78a73
PA
59932011-02-16 Tom Tromey <tromey@redhat.com>
5994
5995 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5996 than axs_rvalue.
5997
946ebb0d 59982011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
5999
6000 * infrun.c (get_displaced_step_closure_by_addr): New.
6001 * inferior.h: Declare it.
6002 * arm-tdep.c: (arm_pc_is_thumb): Call
6003 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6004 returns non-NULL.
6005
08807d5a
PA
60062011-02-16 Pedro Alves <pedro@codesourcery.com>
6007 Jan Kratochvil <jan.kratochvil@redhat.com>
6008
6009 gdb/
6010 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6011
29976f3f
PA
60122011-02-16 Pedro Alves <pedro@codesourcery.com>
6013 Jan Kratochvil <jan.kratochvil@redhat.com>
6014
6015 * value.c (value_contents_copy_raw): Extend describing comment.
6016 Assert that the destination contents we're overwriting are wholly
6017 available.
fb68ae73 6018 (value_contents_copy): Extend describing comment.
29976f3f 6019
cd24cfaa
PA
60202011-02-16 Pedro Alves <pedro@codesourcery.com>
6021 Jan Kratochvil <jan.kratochvil@redhat.com>
6022
6023 * value.c (value_available_contents_eq): Remove redundant local
6024 variables. Fix available contents comparision.
6025 * value.h (value_available_contents_eq): Extend describing
6026 comment.
6027
60bbf338
YQ
60282011-02-16 Yao Qi <yao@codesourcery.com>
6029
6030 * thread.c (info_threads_command): Add missing i18n markup and remove
6031 trailing newline.
6032
17450429
PP
60332011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6034
6035 * breakpoint.c (longjmp_names): New variable.
6036 (struct breakpoint_objfile_data): New type.
6037 (breakpoint_objfile_key): New variable.
6038 (msym_not_found): New variable.
6039 (msym_not_found_p): New predicate.
6040 (get_breakpoint_objfile_data): New function.
6041 (create_overlay_event_breakpoint): Check per-objfile cache for
6042 symbols first.
6043 (create_longjmp_master_breakpoint): Likewise.
6044 (create_std_terminate_master_breakpoint): Likewise.
6045 (create_exception_master_breakpoint): Likewise.
6046 (_initialize_breakpoint): Register per-objfile data key.
6047
af02033e
PP
60482011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6049
6050 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6051 parameter value.
6052 (create_longjmp_master_breakpoint): Loop over longjmp names.
6053 (create_std_terminate_master_breakpoint): Const-propagate parameter
6054 value.
6055 (update_breakpoints_after_exec): Adjust.
6056 (breakpoint_re_set): Adjust.
6057
60f98dde
MS
60582011-02-15 Michael Snyder <msnyder@vmware.com>
6059
cdf99611
MS
6060 * thread.c (info_threads_command): Process arg as thread id,
6061 or list of thread ids.
6062 (thread_find_command): New command.
6063 (_initialize_thread): Document argument for info threads.
6064 Document 'thread find' command.
6065 * NEWS: Document new command "thread find".
60f98dde 6066
0feedb2c
JK
60672011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6070 * aclocal.m4: Regenerated with aclocal-1.11.1.
6071 * common/configure: Regenerate with autoconf-2.64.
6072
648cd113
KW
60732011-02-15 Ken Werner <ken.werner@de.ibm.com>
6074
6075 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6076 bool data type to a size of one byte.
6077
5657161f
PA
60782011-02-15 Pedro Alves <pedro@codesourcery.com>
6079 Jan Kratochvil <jan.kratochvil@redhat.com>
6080
6081 * target.c (memory_xfer_live_readonly_partial): Document where to
6082 look for interface description.
6083
494e194e
YQ
60842011-02-15 Yao Qi <yao@codesourcery.com>
6085
6086 PR tdep/12352
6087 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6088 order to store PC value on stack instead of text section.
6089
d9492458
TJB
60902011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6091
6092 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6093 the EFP register set size.
6094 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6095 data from the VMX register.
6096 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6097 and write data from/to the VMX register.
6098
cdf99611
MS
60992011-02-14 Michael Snyder <msnyder@vmware.com>
6100
6101 * command.h (enum command_class): New class 'no_set_class', for
6102 "show" commands without a corresponding "set" command.
6103 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6104 * copying.c (_initialize_copying): Ditto for "show copying" and
6105 "show warranty".
6106 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6107 "show version".
6108 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6109 which there is no corresponding "set" command (eg. "show copying").
6110
424447ee
PA
61112011-02-14 Pedro Alves <pedro@codesourcery.com>
6112 Jan Kratochvil <jan.kratochvil@redhat.com>
6113
6114 * exec.c (section_table_available_memory): Change `len' parameter
6115 type to ULONGEST.
6116 * exec.h (section_table_available_memory): Ditto.
6117 * value.h (read_value_memory): Rename the `offset' parameter to
6118 `embedded_offset'.
6119
c0f61f9c 61202011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 6121 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
6122
6123 * memrange.c (compare_mem_ranges): Mention sort order in
6124 describing comment.
6125 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6126 * tracepoint.c (traceframe_available_memory): Extend comment to
6127 mention what happens to RESULT when the target does not support
6128 the query.
6129
6bfc80c7
PA
61302011-02-14 Pedro Alves <pedro@codesourcery.com>
6131 Jan Kratochvil <jan.kratochvil@redhat.com>
6132
6133 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6134 range.
6135
e7303042
PA
61362011-02-14 Pedro Alves <pedro@codesourcery.com>
6137
6138 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6139 No longer handle NULL values.
6140
8af8e3bc
PA
61412011-02-14 Pedro Alves <pedro@codesourcery.com>
6142
6143 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6144 * value.c: Include "exceptions.h".
6145 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6146 generic error.
6147 * cp-abi.c: Include gdb_assert.h.
6148 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6149 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6150 errors.
6151 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6152 parameters. No longer returns -1 on error.
6153 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6154 `val' parameters.
6155 * cp-valprint.c: Include exceptions.h.
6156 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6157 the baseclass_offset. Handle unavailable base classes. Use
6158 val_print_invalid_address.
6159 * p-valprint.c: Include exceptions.h.
6160 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6161 when fetching the baseclass_offset. No longer expect
6162 baseclass_offset returning -1. Handle unavailable base classes.
6163 Use val_print_invalid_address.
6164 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6165 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6166 `embedded_offset' and `val' parameters. Adjust.
6167 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6168 parameter, and change its type to gdb_byte pointer. Add
6169 `embedded_offset' and `val' parameters. Adjust. No longer expect
6170 baseclass_offset returning -1.
6171 (value_dynamic_cast): Use value_contents_for_printing rather than
6172 value_contents. Adjust.
6173 (search_struct_field): No longer expect baseclass_offset returning
6174 -1.
6175 (search_struct_method): If reading memory from the target is
6176 necessary, wrap it in a new value to pass to baseclass_offset. No
6177 longer expect baseclass_offset returning -1.
6178 (find_method_list): No longer expect baseclass_offset returning
6179 -1. Use value_contents_for_printing rather than value_contents.
6180 * valprint.c (val_print_invalid_address): New function.
6181 * valprint.h (val_print_invalid_address): Declare.
6182 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6183 and `val' parameters. No longer expect baseclass_offset returning
6184 -1. Adjust.
6185 * gnu-v2-abi.c: Include "exceptions.h".
6186 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6187 parameters. Handle unavailable memory. Recurse through
6188 gnuv2_baseclass_offset directly, rather than through
6189 baseclass_offset. No longer returns -1 on not found, instead
6190 throw an error.
6191 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6192 `val' parameters. Adjust.
6193
1b28d0b3
PA
61942011-02-14 Pedro Alves <pedro@codesourcery.com>
6195
6196 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6197 almost but not quite adjacent.
6198
ec0a52e1
PA
61992011-02-14 Pedro Alves <pedro@codesourcery.com>
6200
6201 * value.h (value_entirely_available): Declare.
6202 * value.c (value_entirely_available): New function.
6203 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6204 real type if the pointer is unavailable.
6205
24e6bcee
PA
62062011-02-14 Pedro Alves <pedro@codesourcery.com>
6207
6208 * valops.c (value_repeat): Use read_value_memory instead of
6209 read_memory.
6210
39d37385
PA
62112011-02-14 Pedro Alves <pedro@codesourcery.com>
6212
6213 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6214 * value.c (value_contents_copy_raw, value_contents_copy): New
6215 functions.
6216 (value_primitive_field): Use value_contents_copy_raw instead of
6217 memcpy.
6218 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6219 memcpy.
6220 (value_array, value_slice): Ditto.
6221 * valarith.c (value_subscripted_rvalue): Use
6222 value_contents_copy_raw instead of memcpy.
6223
a3d34bf4
PA
62242011-02-14 Pedro Alves <pedro@codesourcery.com>
6225
6226 <unavailable> references.
6227
6228 * valops.c (get_value_at): Use value_from_contents_and_address,
6229 avoiding read_memory.
6230
9fc6d940
PA
62312011-02-14 Pedro Alves <pedro@codesourcery.com>
6232
6233 * c-valprint.c (c_val_print): Print a string with unavailable
6234 contents as an array.
6235
5467c6c8
PA
62362011-02-14 Pedro Alves <pedro@codesourcery.com>
6237
6238 * value.h (unpack_bits_as_long): Delete declaration.
6239 (unpack_value_bits_as_long): Declare.
6240 (unpack_value_field_as_long): Declare.
6241 (value_field_bitfield): Declare.
6242 * value.c (unpack_bits_as_long): Rename to...
6243 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6244 value parameters. Return the extracted result in a new output
6245 parameter. If the value contents are unavailable, return false,
6246 otherwise return true.
6247 (unpack_value_bits_as_long): New.
6248 (unpack_field_as_long): Rename to...
6249 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6250 Add embedded_offset and value parameters. Return the extracted
6251 result in a new output parameter. If the value contents are
6252 unavailable, return false, otherwise return true.
6253 (unpack_value_field_as_long): New.
6254 (unpack_field_as_long_1): New.
6255 (unpack_field_as_long): Reimplement as wrapper around
6256 unpack_value_field_as_long_1.
6257 (value_field_bitfield): New function.
6258 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6259 unpack_value_bits_as_long. Mark the value as unavailable, if it
6260 is unavailable.
6261 * jv-valprint.c (java_print_value_fields): Use
6262 value_field_bitfield.
6263 * p-valprint.c (pascal_object_print_value_fields): Use
6264 value_field_bitfield.
6265 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6266
3158c6ed
PA
62672011-02-14 Pedro Alves <pedro@codesourcery.com>
6268
6269 * value.c (get_internalvar_integer): Also return the int value of
6270 TYPE_CODE_INT INTERNALVAR_VALUE values.
6271 (set_internalvar): Don't special case TYPE_CODE_INT.
6272
9fbdca0d
PA
62732011-02-14 Pedro Alves <pedro@codesourcery.com>
6274
6275 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6276 INTERNALVAR_POINTER.
6277 <pointer>: Delete.
6278 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6279 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6280 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6281
c8c1c22f
PA
62822011-02-14 Pedro Alves <pedro@codesourcery.com>
6283
6284 * value.h (value_available_contents_eq): Declare.
6285 * value.c (find_first_range_overlap): New function.
6286 (value_available_contents_eq): New function.
6287 * valprint.c (val_print_array_elements): Use
6288 value_available_contents_eq.
6289 * ada-valprint.c (val_print_packed_array_elements): Use
6290 value_available_contents_eq.
6291 * jv-valprint.c (java_value_print): Use
6292 value_available_contents_eq.
6293
e6e4e701
PA
62942011-02-14 Pedro Alves <pedro@codesourcery.com>
6295
6296 * target.c (target_read_live_memory): New function.
6297 (memory_xfer_live_readonly_partial): New.
6298 (memory_xfer_partial): If reading from a traceframe, fallback to
6299 reading unavailable read-only memory from read-only regions of
6300 live target memory.
6301 * tracepoint.c (disconnect_tracing): Adjust.
6302 (set_current_traceframe): New, factored out from
6303 set_traceframe_number.
6304 (set_traceframe_number): Reimplement to only change the traceframe
6305 number on the GDB side.
6306 (do_restore_current_traceframe_cleanup): Adjust.
6307 (make_cleanup_restore_traceframe_number): New.
6308 (cur_traceframe_number): New global.
6309 (tfile_open): Set cur_traceframe_number to no traceframe.
6310 (set_tfile_traceframe): New function.
6311 (tfile_trace_find): If looking up a traceframe using any method
6312 other than by number, make sure the current tfile traceframe
6313 matches gdb's current traceframe. Update the current tfile
6314 traceframe if the lookup succeeded.
6315 (tfile_fetch_registers, tfile_xfer_partial)
6316 (tfile_get_trace_state_variable_value): Make sure the remote
6317 traceframe matches gdb's current traceframe.
6318 * remote.c (remote_traceframe_number): New global.
6319 (remote_open_1): Set it to -1.
6320 (set_remote_traceframe): New function.
6321 (remote_fetch_registers, remote_store_registers)
6322 (remote_xfer_memory, remote_xfer_partial)
6323 (remote_get_trace_state_variable_value): Make sure the remote
6324 traceframe matches gdb's current traceframe.
6325 (remote_trace_find): If looking up a traceframe using any method
6326 other than by number, make sure the current remote traceframe
6327 matches gdb's current traceframe. Update the current remote
6328 traceframe if the lookup succeeded.
6329 * infrun.c (fetch_inferior_event): Adjust.
6330 * tracepoint.h (set_current_traceframe): Declare.
6331 (get_traceframe_number, set_traceframe_number): Add describing
6332 comments.
6333
e6ca34fc
PA
63342011-02-14 Pedro Alves <pedro@codesourcery.com>
6335
6336 Mark pieces of values as unavailable if the corresponding memory
6337 is unavailable.
6338
6339 * valops.c: Include tracepoint.h.
6340 (value_fetch_lazy): Use read_value_memory.
6341 (read_value_memory): New.
6342 * value.h (read_value_memory): Declare.
6343 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6344 * exec.c (section_table_available_memory): New function.
6345 * exec.h (section_table_available_memory): Declare.
6346
2a7498d8
PA
63472011-02-14 Pedro Alves <pedro@codesourcery.com>
6348
6349 * Makefile.in (SFILES): Add memrange.c.
6350 (HFILES_NO_SRCDIR): Add memrange.h.
6351 (COMMON_OBS): Add memrange.o.
6352 * memrange.c: New file.
6353 * memrange.h: New file.
6354 * tracepoint.c: Include memrange.h.
6355 (struct mem_range): Delete.
6356 (mem_range_s): Delete.
6357 (traceframe_available_memory): New function.
6358 * tracepoint.h (traceframe_available_memory): Declare.
6359
b3b9301e
PA
63602011-02-14 Pedro Alves <pedro@codesourcery.com>
6361
6362 * target.h (struct traceframe_info): Forward declare.
6363 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6364 (struct target_ops) <to_traceframe_info>: New field.
6365 (target_traceframe_info): New.
6366 * target.c (update_current_target): Inherit and default
6367 to_traceframe_info.
6368 * remote.c (PACKET_qXfer_traceframe_info): New.
6369 (remote_protocol_features): Register qXfer:traceframe-info:read.
6370 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6371 (remote_traceframe_info): New.
6372 (init_remote_ops): Install it.
6373 (_initialize_remote): Install "set/show remote traceframe-info"
6374 commands.
6375 * tracepoint.h (parse_traceframe_info): Declare.
6376 * tracepoint.c (struct mem_range): New.
6377 (mem_range_s): New typedef.
6378 (struct traceframe_info): New.
6379 (traceframe_info): New global.
6380 (free_traceframe_info): New function.
6381 (clear_traceframe_info): New function.
6382 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6383 info.
6384 (build_traceframe_info): New function.
6385 (tfile_traceframe_info): New function.
6386 (init_tfile_ops): Install tfile_traceframe_info.
6387 (traceframe_info_start_memory, free_result): New functions.
6388 (memory_attributes, traceframe_info_elements): New globals.
6389 (parse_traceframe_info, get_traceframe_info): New functions.
6390 * features/traceframe-info.dtd: New file.
6391 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6392
4e07d55f
PA
63932011-02-14 Pedro Alves <pedro@codesourcery.com>
6394
6395 Base support for <unavailable> value contents.
6396
4e07d55f
PA
6397 * value.h (value_bytes_available): Declare.
6398 (mark_value_bytes_unavailable): Declare.
6399 * value.c (struct range): New struct.
6400 (range_s): New typedef.
6401 (ranges_overlap): New function.
6402 (range_lessthan): New function.
6403 (ranges_contain_p): New function.
6404 (struct value) <unavailable>: New field.
6405 (value_bytes_available): New function.
6406 (mark_value_bytes_unavailable): New function.
6407 (require_not_optimized_out): Constify parameter.
6408 (require_available): New function.
6409 (value_contents_all, value_contents): Require all bytes be
6410 available.
6411 (value_free): Free `unavailable'.
6412 (value_copy): Copy `unavailable'.
6413 * valprint.h (val_print_unavailable): Declare.
6414 * valprint.c (valprint_check_validity): Rename `offset' parameter
6415 to `embedded_offset'. If printing a scalar, check whether the
6416 value chunk is available.
6417 (val_print_unavailable): New.
6418 (val_print_scalar_formatted): Check whether the value is
6419 available.
6420 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6421 pretty-printing unavailable values.
6422
bc9a5551
JK
64232011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6424
6425 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6426 * c-typeprint.c (c_type_print_args): Update the function comment. New
6427 variable param_type, initialize it. Remove const/volatile qualifiers
6428 for language_cplus and !show_artificial. Use param_type.
6429
93b55aa1
JK
64302011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6431
6432 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6433 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6434 * symtab.h (struct symtab) <next>: Comment extension.
6435
181d9476
YQ
64362011-02-12 Yao Qi <yao@codesourcery.com>
6437
6438 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6439
b708a5c7
JK
64402011-02-11 Yao Qi <yao@codesourcery.com>
6441
6442 * common/Makefile.in: Add copyright header.
6443
c5187ac6
PA
64442011-02-11 Pedro Alves <pedro@codesourcery.com>
6445
6446 * infrun.c (proceed): Move switching out and in of tfind mode from
6447 here ...
6448 (fetch_inferior_event): ... to here.
6449
4f3e6fb7
YQ
64502011-02-11 Yao Qi <yao@codesourcery.com>
6451
6452 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6453 libcommon.a.
6454 * configure.ac: Add common to sub dir.
6455 * configure: Regenerate.
6456
b708a5c7
JK
64572011-02-11 Yao Qi <yao@codesourcery.com>
6458
6459 Build libcommon.a.
6460
6461 * common/Makefile.in: New.
6462 * common/configure.ac: New.
6463 * common/aclocal.m4: New.
6464 * common/configure: Generate.
6465
2287cc7e
PA
64662011-02-10 Pedro Alves <pedro@codesourcery.com>
6467
6468 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6469 side of the parenthesis.
6470
6471 Merge from GCC:
6472 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 6473 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 6474
fd62cb89
MS
64752011-02-08 Michael Snyder <msnyder@vmware.com>
6476
6477 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6478
56d2815c
JK
64792011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6482 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6483 psubd and paddd.
6484
4f7d61a8
JK
64852011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6486
6487 PR 12361.
6488 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6489 phsubsw.
6490 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6491 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6492
54fcddd0
UW
64932011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6494
6495 * dwarf2read.c (read_subroutine_type): Set special calling
6496 convention flag for functions compiled by IBM XL C for OpenCL.
6497 * ppc-sysv-tdep.c: Include "dwarf2.h"
6498 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6499 calling convention.
6500 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6501 IBM OpenCL vector types calling convention.
6502 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6503 (ppc_sysv_abi_broken_return_value): Likewise.
6504 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6505 types calling convention.
6506 (ppc64_sysv_abi_return_value): Likewise.
6507 * spu-tdep.c: Include "dwarf2.h"
6508 (spu_return_value): Implement IBM OpenCL vector types calling
6509 convention.
6510
d6dafb7c
UW
65112011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6512
6513 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6514 correct ABI for AltiVec vector arguments.
6515
32b72a42
PA
65162011-02-07 Pedro Alves <pedro@codesourcery.com>
6517
6518 * valprint.c (val_print): Extend comment.
6519 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6520 interface explanation to val_print.
6521 (ada_val_print_array): Adjust comment to current interface.
6522 (print_field_values): Adjust comment to current interface.
6523 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6524 explanation to val_print.
6525 * f-valprint.c (f_val_print): Ditto.
6526 * jv-valprint.c (java_val_print): Ditto.
6527 * m2-valprint.c (m2_val_print): Ditto.
6528 * p-valprint.c (pascal_val_print): Ditto.
6529
9998af43
TJB
65302011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6531
6532 * breakpoint.c (parse_breakpoint_sals): Fix description.
6533
505500db 65342011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 6535 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
6536
6537 * python/py-inferior.c (python_on_normal_stop): New function.
6538 (python_on_resume): New function.
6539 (python_inferior_exit): New function.
6540 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6541 inferior_exit observers.
6542 * python/py-evtregistry.c: New file.
6543 * python/py-threadevent.c : New file.
6544 * python/py-event.c: New file.
6545 * python/py-evts.c: New file.
6546 * python/py-continueevent.c: New file.
6547 * python/py-bpevent.c: New file.
6548 * python/py-signalevent.c: New file.
6549 * python/py-exetiedevent.c: New file.
6550 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6551 Move struct breakpoint_object from here...
6552 * python/python-internal.h: ... to here.
6553 * python/py-event.h: New file.
6554 * python/py-events.h: New file.
6555 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6556 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6557 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6558 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6559 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6560 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6561 Add build rules for all the above.
6562
9e0ac564
TT
65632011-02-04 Tom Tromey <tromey@redhat.com>
6564
6565 * dwarf2read.c (dwarf2_section_empty_p): New function.
6566 (dwarf2_read_section): Use dwarf2_section_empty_p.
6567 (dwarf2_section_size): New function.
6568 (dwarf2_get_section_info): Unconditionally read section.
6569 (dwarf2_read_index): Use dwarf2_section_empty_p.
6570 (partial_read_comp_unit_head): Use dwarf2_section_size.
6571 (dwarf2_symbol_mark_computed): Likewise.
6572
eee5b35e
DD
65732011-02-04 David Daney <ddaney@caviumnetworks.com>
6574
6575 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6576
385203ed
DD
65772011-02-04 David Daney <ddaney@caviumnetworks.com>
6578
6579 * mips-linux-tdep.c: Include xml-syscall.h.
6580 (mips_linux_get_syscall_number): New function.
6581 (mips_linux_init_abi): Add calls to
6582 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6583 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6584 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6585 * syscalls/mips-n32-linux.xml: New file.
6586 * syscalls/mips-n64-linux.xml: New file.
6587 * syscalls/mips-o32-linux.xml: New file.
6588
9277c30c
UW
65892011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6590
6591 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6592 Complain about inverted range entries.
6593 (dwarf2_record_block_ranges): Likewise.
6594
a3be7890
TJB
65952011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6596
6597 Fix some typos.
6598 * breakpoint.c (update_watchpoint): Fix name of the
6599 update_global_location_list function.
6600 (print_one_breakpoint): Fix typo.
6601 (_initialize_breakpoint): Remove extra space in hbreak help
6602 string.
6603 * breakpoint.h (struct bp_location) <length>: Fix field
6604 description.
6605
041274d8
PA
66062011-02-04 Pedro Alves <pedro@codesourcery.com>
6607
6608 * regcache.c (registers_changed_ptid): Don't explictly always
6609 clear `current_regcache'. Only clear current_thread_ptid and
6610 current_thread_arch when PTID matches. Only reinit the frame
6611 cache if PTID matches the current inferior_ptid. Move alloca(0)
6612 call to ...
6613 (registers_changed): ... here.
6614
c1c2ab58
UW
66152011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6616
6617 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6618 starts with __stack_chk_guard as stack guard symbol.
6619
9011945e
AB
66202011-02-03 Andrew Burgess <aburgess@broadcom.com>
6621
6622 * disasm.c (compare_lines): Handle the end of sequence markers
6623 within the line table to better support disassembling over
6624 compilation unit boundaries.
6625
e0634ccf
UW
66262011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6627
6628 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6629 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6630 implementation even if no symbols are available.
6631 (thumb_analyze_prologue): Update call to skip_prologue_function.
6632 (arm_analyze_prologue): Likewise.
6633
0e9e9abd
UW
66342011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6635
6636 * arm-tdep.c: Include "observer.h".
6637 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6638 (arm_exidx_data_key): New static variable.
6639 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6640 (struct arm_exidx_data): Likewise.
6641 (arm_exidx_data_free): New function.
6642 (arm_compare_exidx_entries): Likewise.
6643 (arm_obj_section_from_vma): Likewise.
6644 (arm_exidx_new_objfile): Likewise.
6645 (arm_find_exidx_entry): Likewise.
6646 (arm_exidx_fill_cache): Likewise.
6647 (arm_exidx_unwind_sniffer): Likewise.
6648 (arm_exidx_unwind): New global variable.
6649 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6650 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6651 observer. Register arm_exidx_data_key as objfile data.
6652
2e9e421f
UW
66532011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6654
6655 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6656 due to accessing uninitialized variable. Fix indentation.
6657
580688f3
PA
66582011-02-02 Pedro Alves <pedro@codesourcery.com>
6659
6660 * c-valprint.c (c_value_print): When doing virtual base pointer
6661 adjustment, create a new value with adjusted contents rather than
6662 changing the contents of the value being printed (and getting it
6663 wrong).
6664
3d2c1d41
PA
66652011-02-02 Pedro Alves <pedro@codesourcery.com>
6666
6667 * xml-support.c (xml_find_attribute): New.
6668 (xinclude_start_include): Use it.
6669 * xml-support.h (xml_find_attribute): Declare.
6670 * memory-map.c (memory_map_start_memory)
6671 (memory_map_start_property): Use xml_find_attribute.
6672 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6673 xml_find_attribute.
6674 * remote.c (start_thread): Use xml_find_attribute.
6675 * solib-target.c (library_list_start_segment)
6676 (library_list_start_section, library_list_start_library)
6677 (library_list_start_list): Use xml_find_attribute.
6678 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6679 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6680 (tdesc_start_field): Use xml_find_attribute.
6681
0af3e2db
UW
66822011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6683
6684 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6685 (BUILD_OCL_VTYPES): Update.
6686
c1039e3c
JB
66872011-02-02 Joel Brobecker <brobecker@adacore.com>
6688
6689 * configure.ac: Work around non-GNU sed limitation when computing
6690 python version number.
6691 * configure: Regenerate.
6692
600ea1be
JK
66932011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6694
6695 Fix debug printing of TYPE_INSTANCE.
6696 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6697 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6698
56c12414
JK
66992011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6702 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6703 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6704 * ada-operator.inc: Rename the file to ...
6705 * ada-operator.def: ... here, wrap all the entries by macro OP.
6706 * expprint.c (op_name_standard): Remove all the entries. Include
6707 "std-operator.def" instead.
6708 * expression.h (enum exp_opcode): Include "std-operator.def" and
6709 "ada-operator.def". Move all the entries ...
6710 * std-operator.def: ... here, wrap all the entries by macro OP.
6711
c52b559d
PP
67122011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6713
6714 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6715 * breakpoint.c (remove_jit_event_breakpoints): New function.
6716 * jit.c (jit_descriptor_addr): Delete.
6717 (registering_code): Delete.
6718 (clear_int): Delete.
6719 (jit_inferior_data): New variable.
6720 (struct jit_inferior_data): New type.
6721 (get_jit_inferior_data): New function.
6722 (jit_inferior_data_cleanup): New function.
6723 (jit_read_descriptor): Adjust.
6724 (jit_register_code): Adjust.
6725 (jit_breakpoint_re_set_internal): New function; move code here ...
6726 (jit_inferior_init): ... from here.
6727 (jit_breakpoint_re_set): Adjust.
6728 (jit_reset_inferior_data_and_breakpoints): New function.
6729 (jit_inferior_created_observer): Adjust.
6730 (jit_inferior_exit_hook): Adjust.
6731 (jit_executable_changed_observer): New function.
6732 (jit_event_handler): Adjust.
6733 (_initialize_jit): Adjust.
6734
e839132d
MS
67352011-01-31 Michael Snyder <msnyder@vmware.com>
6736
6737 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6738 line.
6739
47a80e90
TT
67402011-01-31 Tom Tromey <tromey@redhat.com>
6741
6742 PR python/12216:
6743 * python/python.c (execute_gdb_command): Call
6744 prevent_dont_repeat.
6745 * top.c (suppress_dont_repeat): New global.
6746 (dont_repeat): Use it.
6747 (prevent_dont_repeat): New function.
6748 * command.h (prevent_dont_repeat): Declare.
6749
45a43567
TT
67502011-01-31 Tom Tromey <tromey@redhat.com>
6751
6752 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6753 * python/py-breakpoint.c (bppy_set_silent): Use
6754 breakpoint_set_silent.
6755 (bppy_set_thread): Use breakpoint_set_thread.
6756 (bppy_set_task): Use breakpoint_set_task.
6757 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6758 (breakpoint_set_task): Declare.
6759 (make_breakpoint_silent): Remove.
6760 * breakpoint.c (breakpoint_set_silent): New function.
6761 (breakpoint_set_thread): Likewise.
6762 (breakpoint_set_task): Likewise.
6763 (make_breakpoint_silent): Remove.
6764
09d682a4
TT
67652011-01-31 Tom Tromey <tromey@redhat.com>
6766
6767 * breakpoint.h (user_breakpoint_p): Declare.
6768 * breakpoint.c (user_breakpoint_p): New function.
6769 (breakpoint_1): Use it.
6770 (save_breakpoints): Likewise.
6771
9c4ea6c5
JB
67722011-01-31 Joel Brobecker <brobecker@adacore.com>
6773
6774 * configure.ac: Add handling of Python distribution on Windows.
6775 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6776 sysconfig variables are not defined, then do not use them.
6777 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6778 instead. On Windows, return all paths using forward-slashes
6779 rather than backslashes.
6780
ac534cba
JB
67812011-01-31 Joel Brobecker <brobecker@adacore.com>
6782
6783 * configure.ac: Remove fallback behavior for building
6784 against Python. Remove tweaking of Python include path.
6785 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6786 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6787 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6788 Always restore CPPFLAGS and LIBS after linking test.
6789 * configure: Regenerated.
6790 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6791 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6792 * python/python-internal.h: Adjust includes of Python .h files.
6793
c2f0d045
JB
67942011-01-31 Joel Brobecker <brobecker@adacore.com>
6795
6796 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6797 in error message.
6798
6b0c4c1f
JB
67992011-01-31 Joel Brobecker <brobecker@adacore.com>
6800
6801 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6802 value test.
6803
672c9795
YQ
68042011-01-31 Yao Qi <yao@codesourcery.com>
6805
6806 * arm-linux-nat.c: Update calls to regcache_register_status
6807 instead of regcache_valid_p.
6808 * aix-thread.c: Likewise.
6809 * i386gnu-nat.c: Likewise.
6810
80b23b6a
JK
68112011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6812
6813 Fix crash.
6814 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6815 touching TYPE_FIELD_ARTIFICIAL.
6816
4cd712bd
RE
68172011-01-28 Richard Earnshaw <rearnsha@arm.com>
6818
6819 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6820 Committers.
6821
ffd5ec24
PA
68222011-01-28 Pedro Alves <pedro@codesourcery.com>
6823
6824 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6825 selected, don't try iterating over the traceframe's blocks.
6826 (tfile_has_stack): If there's no traceframe selected, then there's
6827 no stack.
6828 (tfile_has_registers): If there's no traceframe selected, then
6829 there's no registers.
6830
e8c9e0a1
PA
68312011-01-28 Pedro Alves <pedro@codesourcery.com>
6832
6833 * target.c (memory_xfer_partial): No need to restore shadows if we
6834 haven't read anything.
6835
de15c4ab
PA
68362011-01-28 Pedro Alves <pedro@codesourcery.com>
6837
6838 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6839 and val_print_scalar_formatted.
6840
9f41c731
PA
68412011-01-27 Pedro Alves <pedro@codesourcery.com>
6842
6843 * tracepoint.c (tfile_read): New.
6844 (tfile_open): Use it.
6845 (tfile_get_traceframe_address): Use it.
6846 (tfile_trace_find): Use it.
6847 (walk_blocks_callback_func): New typedef.
6848 (match_blocktype): New function.
6849 (traceframe_walk_blocks): New function.
6850 (traceframe_find_block_type): New function.
6851 (tfile_fetch_registers, tfile_xfer_partial)
6852 (tfile_get_trace_state_variable_value): Use
6853 traceframe_find_block_type and tfile_read.
6854
cdefc55d
KB
68552011-01-26 Kevin Buettner <kevinb@redhat.com>
6856
6857 * remote-mips.c: Add internationalization mark ups. Remove
6858 trailing \n from already marked up strings.
6859
a81766d8
TT
68602011-01-26 Tom Tromey <tromey@redhat.com>
6861
6862 * python/py-prettyprint.c (print_string_repr): Clear
6863 'addressprint' option when calling val_print_string.
6864 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6865 option when calling val_print_string.
6866
74aedc46
TT
68672011-01-26 Tom Tromey <tromey@redhat.com>
6868
6869 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6870 GDB_PY_LL_ARG.
6871 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6872 macros.
6873 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6874 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6875 (gdb_py_long_as_ulongest): New defines.
6876 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6877 (gdb_py_int_as_long): Declare.
6878 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6879 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6880 (valpy_long): Add comment.
6881 * python/py-utils.c (get_addr_from_python): Use
6882 gdb_py_long_as_ulongest. Handle overflow properly.
6883 (gdb_py_object_from_longest): New function.
6884 (gdb_py_object_from_ulongest): Likewise.
6885 (gdb_py_int_as_long): Likewise.
6886 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6887 * python/py-symtab.c (salpy_get_pc): Use
6888 gdb_py_long_from_ulongest.
6889 (salpy_get_line): Use PyInt_FromLong.
6890 * python/py-param.c (set_parameter_value): Use
6891 gdb_py_int_as_long.
6892 * python/py-lazy-string.c (stpy_get_address): Use
6893 gdb_py_long_from_ulongest.
6894 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6895 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6896 * python/py-breakpoint.c (bppy_set_thread): Use
6897 gdb_py_int_as_long.
6898 (bppy_set_task): Likewise.
6899 (bppy_set_ignore_count): Likewise.
6900 (bppy_set_hit_count): Likewise.
6901 * python/py-block.c (blpy_get_start): Use
6902 gdb_py_object_from_ulongest.
6903 (blpy_get_end): Likewise.
6904 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6905
e4f6d2ec
TJB
69062011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6907
6908 PR/symtab 11766:
6909 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6910 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6911 equality test for objfile, initialize addr_low if needed.
6912
b30aa278
PA
69132011-01-25 Pedro Alves <pedro@codesourcery.com>
6914
6915 * tui/tui-regs.c (tui_register_format): Remove dead code.
6916
ab2188aa
PA
69172011-01-25 Pedro Alves <pedro@codesourcery.com>
6918
6919 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6920 instead of print_scalar_formatted.
6921 (print_scalar_formatted): Don't handle 's' format strings here,
6922 and add an assertion that we never see such format here.
6923 * valprint.h (val_print_scalar_formatted): Declare.
6924 * valprint.c (val_print_scalar_formatted): New.
6925 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6926 instead of print_scalar_formatted.
6927 * jv-valprint.c (java_val_print): Ditto.
6928 * p-valprint.c (pascal_val_print): Ditto.
6929 * ada-valprint.c (ada_val_print_1): Ditto.
6930 * f-valprint.c (f_val_print): Ditto.
6931 * infcmd.c (registers_info): Ditto.
6932 * m2-valprint.c (m2_val_print): Ditto.
6933
66d61a4c
PA
69342011-01-25 Pedro Alves <pedro@codesourcery.com>
6935
6936 * m2-valprint.c (print_unbounded_array): Pass
6937 value_contents_for_printing rather than value_contents, to
6938 m2_print_array_contents. Also pass in the value.
6939
831adc1f
JK
69402011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6941
6942 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6943 (save_gdb_index_command): Switch to .gdb_index version 4.
6944
20622269
PA
69452011-01-25 Pedro Alves <pedro@codesourcery.com>
6946
6947 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6948 than frame_register, and always pass a valid value to val_print.
6949
585fdaa1
PA
69502011-01-25 Pedro Alves <pedro@codesourcery.com>
6951
6952 Centralize printing "<optimized out>".
6953
6954 * valprint.h (val_print_optimized_out): Declare.
6955 * cp-valprint.c (cp_print_value_fields): Use
6956 val_print_optimized_out.
6957 * jv-valprint.c (java_print_value_fields): Ditto.
6958 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6959 * printcmd.c (print_formatted): Ditto.
6960 * valprint.c (valprint_check_validity): Ditto.
6961 (value_check_printable): Ditto.
6962 (val_print_optimized_out): New.
6963
29ec5263
PA
69642011-01-25 Pedro Alves <pedro@codesourcery.com>
6965
6966 * infcmd.c (default_print_registers_info): Allocate values so to
6967 never pass a NULL value to val_print.
6968
de4127a3
PA
69692011-01-25 Pedro Alves <pedro@codesourcery.com>
6970
6971 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6972 boolean. Make sure to always pass a value that matches the
6973 contents buffer to callees. Preserve `address' for following
6974 iterations.
6975 * value.c (value_contents_for_printing_const): New.
6976 (value_address): Constify value argument.
6977 * value.h (value_contents_for_printing_const): Declare.
6978 (value_address): Constify value argument.
6979
ee99023e
PA
69802011-01-25 Pedro Alves <pedro@codesourcery.com>
6981
6982 * regcache.c (struct regcache_descr): Rename
6983 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6984 and sizeof_cooked_register_valid_p to
6985 sizeof_cooked_register_status.
6986 (init_regcache_descr): Adjust.
6987 (struct regcache): Rename register_valid_p field to
6988 register_status.
6989 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6990 (do_cooked_read): Adjust.
6991 (regcache_valid_p): Rename to ...
6992 (regcache_register_status): ... this. Adjust.
6993 (regcache_invalidate): Adjust.
6994 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6995 Adjust.
6996 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6997 as unavailable, not valid.
6998 (regcache_dump): Adjust.
6999 * regcache.h (enum register_status): New.
7000 (regcache_register_status): Declare.
7001 (regcache_invalidate): Delete declaration.
7002 * corelow.c (get_core_registers): Adjust.
7003 * tracepoint.c (tfile_fetch_registers): Adjust.
7004 * trad-frame.c (REG_VALUE): Rename to ...
7005 (TF_REG_VALUE): ... this.
7006 (REG_UNKNOWN): Rename to ...
7007 (TF_REG_UNKNOWN): ... this.
7008 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7009 * mi/mi-main.c (register_changed_p): Adjust.
7010
99e42fd8
PA
70112011-01-25 Pedro Alves <pedro@codesourcery.com>
7012
7013 * regcache.c (struct regcache_descr): Remove outdated comment.
7014 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7015 overallocate hack.
7016 (regcache_xmalloc): Rename to ...
7017 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7018 Allocate the regcache type accordingly.
7019 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7020 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7021 cooked registers, not raw.
7022 (regcache_dup_no_passthrough): Delete.
7023 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7024 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7025 mention obsolete write_register_bytes.
7026 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7027
f7605bc2
PA
70282011-01-25 Pedro Alves <pedro@codesourcery.com>
7029
7030 Stop remote_read_bytes from handling partial reads itself.
7031
7032 * remote-fileio.c: Include target.h.
7033 (remote_fileio_write_bytes): Delete.
7034 (remote_fileio_func_open, remote_fileio_func_write)
7035 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7036 target_read_memory.
7037 (remote_fileio_func_stat): Use target_read_memory and
7038 target_write_memory.
7039 (remote_fileio_func_gettimeofday): Use target_write_memory.
7040 (remote_fileio_func_system): Use target_read_memory.
7041 * remote.c (remote_write_bytes): Make it static.
7042 (remote_read_bytes): Don't handle partial reads here.
7043 * remote.h (remote_read_bytes): Delete declaration.
7044
efc0eabd
PA
70452011-01-25 Pedro Alves <pedro@codesourcery.com>
7046
7047 Simplify XML parsing a bit.
7048
7049 * xml-support.h (gdb_xml_parse_quick): Declare.
7050 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7051 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7052 parameter.
7053 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7054 gdb_xml_create_parser_and_cleanup_1.
7055 (gdb_xml_parse_quick): New.
7056 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7057 * osdata.c (osdata_parse): Ditto.
7058 * remote.c (remote_threads_info): Ditto.
7059 * solib-target.c (solib_target_parse_libraries): Ditto.
7060 * xml-syscall.c (syscall_parse_xml): Ditto.
7061 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7062
314d366a
KB
70632011-01-24 Kevin Buettner <kevinb@redhat.com>
7064
7065 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7066 with remote-mips.o added to gdb_target_obs.
7067 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7068
a491d753
PA
70692011-01-24 Pedro Alves <pedro@codesourcery.com>
7070
7071 * ada-valprint.c (val_print_packed_array_elements): Pass the
7072 correct struct value to val_print.
7073 (ada_val_print_1): Ditto.
7074
490f124f
PA
70752011-01-24 Pedro Alves <pedro@codesourcery.com>
7076
7077 Don't lose embedded_offset in printing routines throughout.
7078
7079 * valprint.h (val_print_array_elements): Change prototype.
7080 * valprint.c (val_print_array_elements): Add `embedded_offset'
7081 parameter, and adjust to pass it down to val_print, while passing
7082 `valaddr' or `address' unmodified. Take embedded_offset into
7083 account when checking repetitions.
7084 * c-valprint.c (c_val_print): Pass embedded_offset to
7085 val_print_array_elements instead of adjusting `valaddr' and
7086 `address'.
7087 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7088 embedded_offset to val_print_array_elements instead of adjusting
7089 `valaddr'.
7090 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7091 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7092 val_print_array_elements and pascal_object_print_value_fields
7093 instead of adjusting `valaddr'.
7094 (pascal_object_print_value_fields): Add `offset' parameter, and
7095 adjust to use it.
7096 (pascal_object_print_value): Add `offset' parameter, and adjust to
7097 use it.
7098 (pascal_object_print_static_field): Use
7099 value_contents_for_printing/value_embedded_offset, rather than
7100 value_contents.
7101 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7102 parameter, and adjust to use it. Use
7103 value_contents_for_printing/value_embedded_offset, rather than
7104 value_contents.
7105 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7106 (ada_val_print_array): Add `offset' parameter, and adjust to use
7107 it.
7108 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7109 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7110 Instead work with offsets. Use
7111 value_contents_for_printing/value_embedded_offset, rather than
7112 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7113 and use value_from_pointer to extract a target pointer, rather
7114 than value_from_longest.
7115 (print_variant_part): Add `offset' parameter. Replace
7116 `outer_valaddr' parameter by a new `outer_offset' parameter.
7117 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7118 (ada_value_print): Use
7119 value_contents_for_printing/value_embedded_offset, rather than
7120 value_contents.
7121 (print_record): Add `offset' parameter, and adjust to pass it
7122 down.
7123 (print_field_values): Add `offset' parameter. Replace
7124 `outer_valaddr' parameter by a new `outer_offset' parameter.
7125 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7126 Use value_contents_for_printing/value_embedded_offset, rather than
7127 value_contents.
7128 * d-valprint.c (dynamic_array_type): Use
7129 value_contents_for_printing/value_embedded_offset, rather than
7130 value_contents.
7131 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7132 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7133 (java_print_value_fields): Take `offset' into account. Don't
7134 re-adjust `valaddr'. Instead pass down adjusted offsets.
7135 (java_val_print): Take `embedded_offset' into account. Pass it to
7136 java_print_value_fields.
7137 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7138 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7139 down adjusted offsets.
7140 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7141 (f_val_print): Take `embedded_offset' into account.
7142
7bfc9434
JB
71432011-01-21 Joel Brobecker <brobecker@adacore.com>
7144
7145 * inflow.c: Include "gdbcmd.h".
7146 (interactive_mode): New static global, moved here from top.c.
7147 (show_interactive_mode): New function, moved here from top.c.
7148 use gdb_has_a_terminal instead of input_from_terminal_p to
7149 determine the current mode.
7150 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7151 setting.
7152 (_initialize_inflow): Add the "set/show interactive-mode"
7153 commands. Moved here from top.c, after having adjusted slightly
7154 the help text.
7155 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7156 to inflow.c.
7157 (input_from_terminal_p): Remove handling of "interactive-mode"
7158 setting, moved to infow.c.
7159 (init_main): Remove creation of the "set/show interactive-mode"
7160 commands, moved to inflow.c.
7161
44603653
JB
71622011-01-19 Joel Brobecker <brobecker@adacore.com>
7163
7164 * NEWS: Add entry for native ia64-hpux support.
7165
4694da01
TT
71662011-01-19 Tom Tromey <tromey@redhat.com>
7167
7168 PR mi/8618:
7169 * thread.c (free_thread): Free 'name'.
7170 (print_thread_info): Emit thread name. Change CLI output.
7171 (thread_name_command): New function.
7172 (do_captured_thread_select): Emit newline.
7173 (_initialize_thread): Register 'thread name' command.
7174 * target.h (struct target_ops) <to_thread_name>: New field.
7175 (target_thread_name): New macro.
7176 * target.c (update_current_target): Handle to_thread_name.
7177 * python/py-infthread.c (thpy_get_name): New function.
7178 (thpy_set_name): Likewise.
7179 (thread_object_getset): Add "name".
7180 * linux-nat.c (linux_nat_thread_name): New function.
7181 (linux_nat_add_target): Set to_thread_name.
7182 * gdbthread.h (struct thread_info) <name>: New field.
7183
10d44370
JB
71842011-01-18 Joel Brobecker <brobecker@adacore.com>
7185
7186 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7187 (ada_val_print_1): Likewise.
7188
e3acb115
JB
71892011-01-18 Joel Brobecker <brobecker@adacore.com>
7190
7191 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7192 upper limit address is not greater than the function end address
7193 when the upper limit could not be computed using the debugging
7194 info.
7195
dc92e161
TT
71962011-01-17 Tom Tromey <tromey@redhat.com>
7197
7198 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7199 get_regcomp_error.
7200 * utils.c: Include gdb_regex.h.
7201 (do_regfree_cleanup): New function.
7202 (make_regfree_cleanup): Likewise.
7203 (get_regcomp_error): Likewise.
7204 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7205
f55af66d
TT
72062011-01-17 Tom Tromey <tromey@redhat.com>
7207
7208 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7209 re_compile_fastmap.
7210
a5a44b53
PM
72112011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7212
7213 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7214 for internal variables.
7215 (last_was_structop): New static variable.
7216 (COMPLETE): New token.
7217 (field_exp): New rule to group all '.' suffix handling.
7218 Add mark_struct_expression calls when approriate to be able
7219 to correctly find fields for completion.
7220 (yylex): Adapt to handle field completion and set INTVAR when
7221 required.
7222
2c291032
YQ
72232011-01-14 Yao Qi <yao@codesourcery.com>
7224
7225 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7226 save_reggroup, restore_reggroup and all_reggroup.
7227
447b483c
JB
72282011-01-14 Joel Brobecker <brobecker@adacore.com>
7229
7230 * ada-valprint. (ada_printchar): Use the correct type length
7231 in call to ada_emit_char.
7232 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7233
7b64a93b
PM
72342011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7235
7236 * solib-som.h (hpux_major_release): Declare variable here.
7237 * solib-som.c: Remove <sys/utsname.h> header.
7238 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7239 (hpux_major_release): Make global, change default value to
7240 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 7241 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
7242 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7243 Add "solib-som.h" header.
7244 (set_hpux_major_release): New function.
7245 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7246
4e18c053
MF
72472011-01-14 Mike Frysinger <vapier@gentoo.org>
7248
7249 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7250
a9df6b22
JB
72512011-01-14 Joel Brobecker <brobecker@adacore.com>
7252
7253 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7254 new-line at end of warning message.
7255 (ia64_hpux_store_register): Remove trailing new-line at end of
7256 error message.
7257 * ia64-hpux-tdep.c: Rephrase comment.
7258 * solib-ia64-hpux.c (struct dld_info): Change type of field
7259 dld_flags from "long long" to ULONGEST.
7260
ecb956dd
PA
72612011-01-14 Pedro Alves <pedro@codesourcery.com>
7262
7263 * target.h (deprecated_child_ops): Delete declaration.
7264 * target.c (deprecated_child_ops): Delete definition.
7265
76adfcae
PA
72662011-01-14 Pedro Alves <pedro@codesourcery.com>
7267
7268 * Makefile.in (hpux-thread.o): Delete rule.
7269 * configure.ac: Don't check for HPUX DCE threads support.
7270 * configure, config.in: Regenerate.
7271 * hppa-hpux-nat.c (child_suppress_run): Delete.
7272 (hppa_hpux_child_can_run): Delete.
7273 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7274 * hpux-thread.c: Delete.
7275
042e866e
JB
72762011-01-13 Joel Brobecker <brobecker@adacore.com>
7277
7278 * hpux-thread.c (hpux_pid_to_str): Delete.
7279
4ffa5a33
JB
72802011-01-13 Joel Brobecker <brobecker@adacore.com>
7281
7282 * ada-valprint.c (ada_emit_char): Remove strange code.
7283 Check that c is <= UCHAR_MAX before passing it to isascii.
7284 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7285
de8fa76c
JB
72862011-01-13 Joel Brobecker <brobecker@adacore.com>
7287
7288 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7289 to the case where instream is stdin.
7290
c4de7027
JB
72912011-01-13 Joel Brobecker <brobecker@adacore.com>
7292
7293 * ia64-tdep.h (struct regcache): Forward declare.
7294 (struct ia64_infcall_ops): New struct type.
7295 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7296 and "infcall_ops".
7297 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7298 Renames ia64_find_global_pointer.
7299 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7300 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7301 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7302 methods.
7303 (ia64_infcall_ops): New static global constant.
7304 (ia64_gdbarch_init): Set tdep->infcall_ops.
7305 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7306 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7307 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7308 (ia64_hpux_dummy_code): New static global constant.
7309 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7310 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7311 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7312 New function.
7313 (ia64_hpux_infcall_ops): New static global constant.
7314 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7315 for inferior function calls to work properly on ia64-hpux.
7316
77ca787b
JB
73172011-01-13 Joel Brobecker <brobecker@adacore.com>
7318
7319 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7320 * ia64-tdep.h (struct frame_info): forward declaration.
7321 (struct gdbarch_tdep): Add field size_of_register_frame.
7322 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7323 to determine the size of the register frame.
7324 (ia64_size_of_register_frame): New function.
7325 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7326 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7327 (IA64_HPUX_UREG_REASON): New macro.
7328 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7329 New functions.
7330 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7331 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7332 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7333 objects.
7334
92c9a463
JB
73352011-01-13 Joel Brobecker <brobecker@adacore.com>
7336
7337 Add support for ia64-hpux.
7338 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7339 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7340
7341 * configure.host: Add handling for ia64-hpux hosts. Add associated
7342 floatformats.
7343 * configure.tgt: Add handling for ia64-hpux targets.
7344 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7345 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7346 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7347
f688d93f
JB
73482011-01-13 Joel Brobecker <brobecker@adacore.com>
7349
7350 [ttrace] Compute thread list immediately after attach.
7351 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7352 New subprogram.
7353 (inf_ttrace_attach): Use it.
7354
1b89e62f
JB
73552011-01-13 Joel Brobecker <brobecker@adacore.com>
7356
7357 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7358 if we could not determine the frame's function address. Instead,
7359 use the frame's PC, and then continue.
7360
3e5e6e2a
JB
73612011-01-13 Joel Brobecker <brobecker@adacore.com>
7362
7363 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7364 not already defined.
7365
825d6d8a
JB
73662011-01-13 Joel Brobecker <brobecker@adacore.com>
7367
7368 * ia64-tdep.c (ia64_struct_type_p): New function.
7369 (ia64_extract_return_value): Handle integral values that are
7370 less than 8 bytes long.
7371 (ia64_push_dummy_call): Likewise.
7372
7458e667
JB
73732011-01-13 Joel Brobecker <brobecker@adacore.com>
7374
7375 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7376 floatformat_ia64_ext.
7377 (floatformat_ia64_ext_big): New static const.
7378 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7379
1b05df00
TT
73802011-01-12 Tom Tromey <tromey@redhat.com>
7381
7382 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7383 messages.
7384 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7385 (mi_cmd_thread_list_ids): Likewise.
7386 (mi_cmd_data_list_changed_registers): Likewise.
7387 (mi_cmd_data_list_register_values): Likewise.
7388 (mi_cmd_data_write_register_values): Likewise.
7389 (mi_cmd_data_evaluate_expression): Likewise.
7390 (mi_cmd_data_read_memory): Likewise.
7391 (mi_cmd_data_read_memory_bytes): Likewise.
7392 (mi_cmd_data_write_memory): Likewise.
7393 (mi_cmd_enable_timings): Likewise.
7394 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7395 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7396 (mi_cmd_var_delete): Likewise.
7397 (mi_cmd_var_set_format): Likewise.
7398 (mi_cmd_var_show_format): Likewise.
7399 (mi_cmd_var_info_num_children): Likewise.
7400 (mi_cmd_var_list_children): Likewise.
7401 (mi_cmd_var_info_type): Likewise.
7402 (mi_cmd_var_info_expression): Likewise.
7403 (mi_cmd_var_show_attributes): Likewise.
7404 (mi_cmd_var_assign): Likewise.
7405 (mi_cmd_var_update): Likewise.
7406 (mi_cmd_enable_pretty_printing): Likewise.
7407 (mi_cmd_var_set_update_range): Likewise.
7408 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7409 messages.
7410 (mi_cmd_target_file_put): Likewise.
7411 (mi_cmd_target_file_delete): Likewise.
7412 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7413 messages.
7414 (mi_cmd_stack_info_depth): Likewise.
7415 (mi_cmd_stack_list_locals): Likewise.
7416 (mi_cmd_stack_list_args): Likewise.
7417 (mi_cmd_stack_select_frame): Likewise.
7418 (mi_cmd_stack_select_frame): Likewise.
7419 (mi_cmd_stack_info_frame): Likewise.
7420 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7421 messages.
7422 (mi_cmd_file_list_exec_source_files): Likewise.
7423 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7424 (mi_cmd_env_cd): Likewise.
7425 (mi_cmd_env_path): Likewise.
7426 (mi_cmd_env_dir): Likewise.
7427 (mi_cmd_inferior_tty_show): Likewise.
7428 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7429 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7430 (mi_cmd_break_watch): Likewise.
7431
ad422571
TJB
74322011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7433
7434 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7435 (ppc_linux_insert_hw_breakpoint): Likewise.
7436 (ppc_linux_remove_hw_breakpoint): Likewise.
7437 (ppc_linux_insert_watchpoint): Likewise.
7438
c2ff108b
JK
74392011-01-12 Andrew Burgess <aburgess@broadcom.com>
7440 Jan Kratochvil <jan.kratochvil@redhat.com>
7441
7442 PR fortran/11104 and DWARF unbound arrays detection.
7443 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7444 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7445 unspecified upper bound.
7446 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7447 variables array_size_array, tmp_type and offset_item. New variable
7448 array. Remove call to f77_get_upperbound. New variables array_type
7449 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7450 the final call to deprecated_set_value_type.
7451
41e8491f
JK
74522011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7453
7454 Make value allocations more lazy.
7455 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7456 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 7457 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
7458 instead of allocate_value and set_value_lazy.
7459 * findvar.c (value_of_register_lazy): Likewise.
7460 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 7461 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
7462 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7463 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7464 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7465 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7466 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7467 the end, remove set_value_lazy there.
7468 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7469 instead of allocate_value and set_value_lazy when possible.
7470 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7471 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7472 of allocate_value and set_value_lazy.
7473 (value_from_contents_and_address): Use allocate_value_lazy instead of
7474 allocate_value and set_value_lazy when possible.
7475
b716877b
AB
74762011-01-12 Andrew Burgess <aburgess@broadcom.com>
7477
7478 * disasm.c (dump_insns): Support dumping opcodes for MI.
7479 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7480 dumping of instruction opcodes.
7481
d5ae309f
JB
74822011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7483
7484 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7485 appropiately.
7486
98871305
TT
74872011-01-11 Tom Tromey <tromey@redhat.com>
7488
7489 * thread.c (do_captured_thread_select): Emit newline before
7490 printing frame.
7491
c378eb4e
MS
74922011-01-11 Michael Snyder <msnyder@vmware.com>
7493
7494 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7495 * score-tdep.c: Ditto.
7496 * score-tdep.h: Ditto.
7497 * ser-base.c: Ditto.
7498 * ser-go32.c: Ditto.
7499 * serial.c: Ditto.
7500 * serial.h: Ditto.
7501 * ser-mingw.c: Ditto.
7502 * ser-pipe.c: Ditto.
7503 * ser-tcp.c: Ditto.
7504 * ser-unix.c: Ditto.
7505 * sh64-tdep.c: Ditto.
7506 * shnbsd-nat.c: Ditto.
7507 * sh-tdep.c: Ditto.
7508 * sh-tdep.h: Ditto.
7509 * solib.c: Ditto.
7510 * solib-darwin.c: Ditto.
7511 * solib-frv.c: Ditto.
7512 * solib.h: Ditto.
7513 * solib-irix.c: Ditto.
7514 * solib-osf.c: Ditto.
7515 * solib-pa64.c: Ditto.
7516 * solib-som.c: Ditto.
7517 * solib-spu.c: Ditto.
7518 * solib-sunos.c: Ditto.
7519 * solib-svr4.c: Ditto.
7520 * solist.h: Ditto.
7521 * sol-thread.c: Ditto.
7522 * somread.c: Ditto.
7523 * source.c: Ditto.
7524 * source.h: Ditto.
7525 * sparc64-linux-tdep.c: Ditto.
7526 * sparc64-tdep.c: Ditto.
7527 * sparc-linux-nat.c: Ditto.
7528 * sparc-linux-tdep.c: Ditto.
7529 * sparc-sol2-nat.c: Ditto.
7530 * sparc-sol2-tdep.c: Ditto.
7531 * sparc-tdep.c: Ditto.
7532 * sparc-tdep.h: Ditto.
7533 * spu-tdep.c: Ditto.
7534 * stabsread.c: Ditto.
7535 * stabsread.h: Ditto.
7536 * stack.c: Ditto.
7537 * symfile.c: Ditto.
7538 * symfile.h: Ditto.
7539 * symmisc.c: Ditto.
7540 * symtab.c: Ditto.
7541 * symtab.h: Ditto.
7542 * target.c: Ditto.
7543 * target-descriptions.c: Ditto.
7544 * target-descriptions.h: Ditto.
7545 * target.h: Ditto.
7546 * target-memory.c: Ditto.
7547 * terminal.h: Ditto.
7548 * thread.c: Ditto.
7549 * top.c: Ditto.
7550 * tracepoint.c: Ditto.
7551 * tracepoint.h: Ditto.
7552 * trad-frame.h: Ditto.
7553 * typeprint.c: Ditto.
7554
581e13c1
MS
75552011-01-11 Michael Snyder <msnyder@vmware.com>
7556
7557 * ui-file.c: Comment cleanup, mostly periods and spaces.
7558 * ui-file.h: Ditto.
7559 * ui-out.c: Ditto.
7560 * ui-out.h: Ditto.
7561 * utils.c: Ditto.
7562 * v850-tdep.c: Ditto.
7563 * valarith.c: Ditto.
7564 * valops.c: Ditto.
7565 * valprint.c: Ditto.
7566 * valprint.h: Ditto.
7567 * value.c: Ditto.
7568 * value.h: Ditto.
7569 * varobj.c: Ditto.
7570 * varobj.h: Ditto.
7571 * vax-tdep.c: Ditto.
7572 * vec.c: Ditto.
7573 * vec.h: Ditto.
7574 * version.h: Ditto.
7575 * windows-nat.c: Ditto.
7576 * windows-tdep.c: Ditto.
7577 * xcoffread.c: Ditto.
7578 * xcoffsolib.c: Ditto.
7579 * xml-support.c: Ditto.
7580 * xstormy16-tdep.c: Ditto.
7581 * xtensa-tdep.c: Ditto.
7582 * xtensa-tdep.h: Ditto.
7583
90e4670f
TJB
75842011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7585
7586 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7587 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7588
e09342b5
TJB
75892011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7590 Thiago Jung Bauermann <bauerman@br.ibm.com>
7591
7592 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 7593 * breakpoint.h
e09342b5
TJB
7594 (struct breakpoint_ops) <resources_needed>: New method.
7595 Initialize to NULL in all existing breakpoint_ops instances.
7596 (struct breakpoint) <exact>: New field.
7597 (target_exact_watchpoints): Declare external global.
7598 * breakpoint.c (target_exact_watchpoints): New global flag.
7599 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7600 b->enable_state to bp_enabled before calling
7601 hw_watchpoint_used_count.
7602 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7603 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7604 if available.
7605 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7606 if the watchpoint is exact.
7607 (resources_needed_watchpoint): New function.
7608 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7609 (watch_command_1): Set b->exact if the user asked for an exact
7610 watchpoint and one can be set.
7611 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7612 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7613 the user asks for an exact watchpoint and one can be set. Return
7614 number of needed debug registers to watch the expression.
7615 * gdbtypes.c (is_scalar_type): New function, based on
7616 valprint.c:scalar_type_p.
7617 (is_scalar_type_recursive): New function.
7618 * gdbtypes.h (is_scalar_type_recursive): Declare.
7619 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7620 handle regions when ranged watchpoints are available.
7621 (create_watchpoint_request): New function.
7622 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7623 create_watchpoint_request.
7624 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7625 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7626 `set powerpc' and `show powerpc' commands.
7627 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7628 Mention documentation comment in the target macro.
7629 (target_region_ok_for_hw_watchpoint): Document return value.
7630
9fa40276
TJB
76312011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7632
7633 * breakpoint.c (update_watchpoint): Decide on using a software or
7634 hardware watchpoint after the bp_locations are created.
7635
77b06cd7
TJB
76362010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7637
7638 Convert hardware watchpoints to use breakpoint_ops.
7639 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7640 <insert_location>: ... this. Return int instead of void.
7641 Accept pointer to struct bp_location instead of pointer to
7642 struct breakpoint. Adapt all implementations.
f2eb0bc8 7643 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
7644 <remove_location>: ... this. Accept pointer to struct bp_location
7645 instead of pointer to struct breakpoint. Adapt all implementations.
7646 * breakpoint.c (insert_catchpoint): Delete function.
7647 (insert_bp_location): Call the watchpoint or catchpoint's
7648 breakpoint_ops.insert method.
7649 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7650 breakpoint_ops.remove method.
7651 (insert_watchpoint, remove_watchpoint): New functions.
7652 (watchpoint_breakpoint_ops): New structure.
7653 (watch_command_1): Initialize the OPS field.
7654 * inf-child.c (inf_child_insert_fork_catchpoint)
7655 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7656 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7657 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7658 Delete functions.
7659 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7660 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7661 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7662 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7663 * target.c (update_current_target): Change default implementation of
7664 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7665 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7666 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7667 to_set_syscall_catchpoint to return_one.
7668 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7669 (debug_to_insert_exec_catchpoint): Report return value.
7670 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7671 (to_insert_exec_catchpoint): Change declaration to return int instead
7672 of void.
7673
9b20d036
MS
76742011-01-11 Michael Snyder <msnyder@vmware.com>
7675
7676 * arm-tdep.c: Internationalization.
7677 * c-lang.c: Ditto.
7678 * charset.c: Ditto.
7679 * fork-child.c: Ditto.
7680 * nto-procfs.c: Ditto.
7681 * ppc-sysv-tdep.c: Ditto.
7682 * procfs.c: Ditto.
7683 * remote-mips.c: Ditto.
7684 * remote.c: Ditto.
7685 * rs6000-nat.c: Ditto.
7686 * rs6000-tdep.c: Ditto.
7687 * target.c: Ditto.
7688 * valops.c: Ditto.
7689 * value.c: Ditto.
7690 * xml-support.c: Ditto.
7691 * mi/mi-cmd-break.c: Ditto.
7692 * mi/mi-cmd-var.c: Ditto.
7693 * mi/mi-interp.c: Ditto.
7694 * mi/mi-main.c: Ditto.
7695
dae477fe
AB
76962011-01-11 Andrew Burgess <aburgess@broadcom.com>
7697
7698 * remote-sim.c (gdbsim_store_register): Update API to
7699 sim_store_register to check more error conditions.
7700
0df8b418
MS
77012011-01-10 Michael Snyder <msnyder@vmware.com>
7702
7703 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7704 * nto-tdep.c: Ditto.
7705 * nto-tdep.h: Ditto.
7706 * objc-exp.y: Ditto.
7707 * objc-lang.c: Ditto.
7708 * objfiles.c: Ditto.
7709 * objfiles.h: Ditto.
7710 * observer.c: Ditto.
7711 * opencl-lang.c: Ditto.
7712 * osabi.c: Ditto.
7713 * parse.c: Ditto.
7714 * parser-defs.h: Ditto.
7715 * p-exp.y: Ditto.
7716 * p-lang.c: Ditto.
7717 * posix-hdep.c: Ditto.
7718 * ppcbug-rom.c: Ditto.
7719 * ppc-linux-nat.c: Ditto.
7720 * ppc-linux-tdep.c: Ditto.
7721 * ppc-linux-tdep.h: Ditto.
7722 * ppcnbsd-tdep.c: Ditto.
7723 * ppcobsd-tdep.c: Ditto.
7724 * ppcobsd-tdep.h: Ditto.
7725 * ppc-sysv-tdep.c: Ditto.
7726 * ppc-tdep.h: Ditto.
7727 * printcmd.c: Ditto.
7728 * proc-abi.c: Ditto.
7729 * proc-flags.c: Ditto.
7730 * procfs.c: Ditto.
7731 * proc-utils.h: Ditto.
7732 * progspace.h: Ditto.
7733 * prologue-value.c: Ditto.
7734 * prologue-value.h: Ditto.
7735 * psympriv.h: Ditto.
7736 * psymtab.c: Ditto.
7737 * p-typeprint.c: Ditto.
7738 * p-valprint.c: Ditto.
7739 * ravenscar-sparc-thread.c: Ditto.
7740 * ravenscar-thread.c: Ditto.
7741 * ravenscar-thread.h: Ditto.
7742 * record.c: Ditto.
7743 * regcache.c: Ditto.
7744 * regcache.h: Ditto.
7745 * remote.c: Ditto.
7746 * remote-fileio.c: Ditto.
7747 * remote-fileio.h: Ditto.
7748 * remote.h: Ditto.
7749 * remote-m32r-sdi.c: Ditto.
7750 * remote-mips.c: Ditto.
7751 * remote-sim.c: Ditto.
7752 * rs6000-aix-tdep.c: Ditto.
7753 * rs6000-nat.c: Ditto.
7754 * rs6000-tdep.c: Ditto.
7755
0d7a18f7
MS
77562011-01-10 Michael Snyder <msnyder@vmware.com>
7757
7758 * charset.c (validate): Internationalization.
7759 * coffread.c (read_one_sym): Ditto.
7760 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7761 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7762 * inflow.c (new_tty): Ditto.
7763 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7764 * m32c-tdep.c (m32c_return_value): Ditto.
7765 * mep-tdep.c (mep_store_return_value): Ditto.
7766 * score-tdep.c (score7_fetch_insn): Ditto.
7767 * ser-mingw.c (pipe_windows_open): Ditto.
7768 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7769 * spu-tdep.c (spu_register_type): Ditto.
7770 * tracepoint.c (trace_find_command): Ditto.
7771 * valarith.c (value_pos): Ditto.
7772
9a153e0b
JB
77732011-01-10 Joel Brobecker <brobecker@adacore.com>
7774
7775 * ada-valprint.c (printstr): Minor comment reformatting.
7776
35ecd2d6
MS
77772011-01-08 Michael Snyder <msnyder@vmware.com>
7778
7779 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7780 markup.
7781
1777feb0
MS
77822011-01-08 Michael Snyder <msnyder@vmware.com>
7783
7784 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7785 * hppa-hpux-tdep.c: Ditto.
7786 * hppa-linux-nat.c: Ditto.
7787 * hppa-linux-tdep.c: Ditto.
7788 * hppanbsd-tdep.c: Ditto.
7789 * hppa-tdep.c: Ditto.
7790 * hppa-tdep.h: Ditto.
7791 * hpux-thread.c: Ditto.
7792 * i386-cygwin-tdep.c: Ditto.
7793 * i386-darwin-nat.c: Ditto.
7794 * i386gnu-nat.c: Ditto.
7795 * i386-linux-nat.c: Ditto.
7796 * i386-linux-tdep.c: Ditto.
7797 * i386-nat.c: Ditto.
7798 * i386-nat.h: Ditto.
7799 * i386nbsd-tdep.c: Ditto.
7800 * i386-sol2-nat.c: Ditto.
7801 * i386-stub.c: Ditto.
7802 * i386-tdep.c: Ditto.
7803 * i386-tdep.h: Ditto.
7804 * i387-tdep.c: Ditto.
7805 * ia64-linux-nat.c: Ditto.
7806 * ia64-linux-tdep.c: Ditto.
7807 * ia64-tdep.c: Ditto.
7808 * infcall.c: Ditto.
7809 * infcall.h: Ditto.
7810 * infcmd.c: Ditto.
7811 * inferior.c: Ditto.
7812 * inferior.h: Ditto.
7813 * infloop.c: Ditto.
7814 * inflow.c: Ditto.
7815 * infrun.c: Ditto.
7816 * interps.c: Ditto.
7817 * interps.h: Ditto.
7818 * iq2000-tdep.c: Ditto.
7819 * irix5-nat.c: Ditto.
7820 * jit.c: Ditto.
7821 * jit.h: Ditto.
7822 * jv-exp.y: Ditto.
7823 * jv-lang.c: Ditto.
7824 * jv-lang.h: Ditto.
7825 * jv-typeprint.c: Ditto.
7826 * jv-valprint.c: Ditto.
7827 * language.c: Ditto.
7828 * language.h: Ditto.
7829 * linespec.c: Ditto.
7830 * linux-fork.c: Ditto.
7831 * linux-nat.c: Ditto.
7832 * linux-thread-db.c: Ditto.
7833 * lm32-tdep.c: Ditto.
7834
025bb325
MS
78352011-01-08 Michael Snyder <msnyder@vmware.com>
7836
7837 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7838 * m2-lang.c: Ditto.
7839 * m2-typeprint.c: Ditto.
7840 * m2-valprint.c: Ditto.
7841 * m32c-tdep.c: Ditto.
7842 * m32r-linux-nat.c: Ditto.
7843 * m32r-rom.c: Ditto.
7844 * m32r-tdep.c: Ditto.
7845 * m32r-tdep.h: Ditto.
7846 * m68hc11-tdep.c: Ditto.
7847 * m58klinux-nat.c: Ditto.
7848 * m68k-tdep.c: Ditto.
7849 * m88k-tdep.c: Ditto.
7850 * m88k-tdep.h: Ditto.
7851 * machoread.c: Ditto.
7852 * macrocmd.c: Ditto.
7853 * macroexp.c: Ditto.
7854 * macrotab.c: Ditto.
7855 * main.c: Ditto.
7856 * maint.c: Ditto.
7857 * mdebugread.c: Ditto.
7858 * mdebugread.h: Ditto.
7859 * memattr.c: Ditto.
7860 * memattr.h: Ditto.
7861 * memory-map.h: Ditto.
7862 * mep-tdep.c: Ditto.
7863 * microblaze-rom.c: Ditto.
7864 * microblaze-tdep.c: Ditto.
7865 * minsyms.c: Ditto.
7866 * mips-irix-tdep.c: Ditto.
7867 * mips-linux-nat.c: Ditto.
7868 * mips-linux-tdep.c: Ditto.
7869 * mips-linux-tdep.h: Ditto.
7870 * mipsnbsd-nat.c: Ditto.
7871 * mipsnbsd-tdep.c: Ditto.
7872 * mipsread.c: Ditto.
7873 * mips-tdep.c: Ditto.
7874 * mips-tdep.h: Ditto.
7875 * mn10300-linux-tdep.c: Ditto.
7876 * mn10300-tdep.c: Ditto.
7877 * mn10300-tdep.h: Ditto.
7878 * monitor.c: Ditto.
7879 * monitor.h: Ditto.
7880 * moxie-tdep.c: Ditto.
7881 * moxie-tdep.h: Ditto.
7882 * mt-tdep.c: Ditto.
7883
1642781b
MF
78842011-01-08 Mike Frysinger <vapier@gentoo.org>
7885
7886 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7887
394b0adb
JB
78882011-01-08 Robert Millan <rmh@gnu.org>
7889
7890 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7891
b670013c
MS
78922011-01-07 Michael Snyder <msnyder@vmware.com>
7893
7894 * charset.c (_initialize_charset): Fix typo in string.
7895
a743e542
MS
78962011-01-07 Michael Snyder <msnyder@vmware.com>
7897
7898 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7899 for i18n.
f2eb0bc8 7900 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
7901 Split line so that operator goes to beginning of line.
7902 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7903 assignment out of if statement.
7904
0963b4bd
MS
79052011-01-07 Michael Snyder <msnyder@vmware.com>
7906
7907 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7908 * ada-lang.h: Ditto.
7909 * ada-tasks.c: Ditto.
7910 * ada-valprint.c: Ditto.
7911 * aix-threads.c: Ditto.
7912 * alpha-linux-nat.c: Ditto.
7913 * alpha-linux-tdep.c: Ditto.
7914 * alpha-mdebug-tdep.c: Ditto.
7915 * alpha-nat.c: Ditto.
7916 * alpha-osf1-tdep.c: Ditto.
7917 * alpha-tdep.c: Ditto.
7918 * alphabsd-nat.c: Ditto.
7919 * alphabsd-tdep.c: Ditto.
7920 * amd64-darwin-tdep.c: Ditto.
7921 * amd64-linux-nat.c: Ditto.
7922 * amd64-linux-tdep.c: Ditto.
7923 * amd64-sol2-tdep.c: Ditto.
7924 * amd64-tdep.c: Ditto.
7925 * amd64-fbsd-tdep.c: Ditto.
7926 * amd64-nbsd-tdep.c: Ditto.
7927 * amd64-obsd-tdep.c: Ditto.
7928 * amd64-linux-nat.c: Ditto.
7929 * amd64-linux-tdep.c: Ditto.
7930 * arm-tdep.c: Ditto.
7931 * arm-tdep.h: Ditto.
7932 * armnbsd-nat.c: Ditto.
7933 * avr-tdep.c: Ditto.
7934 * bfin-tdep.c: Ditto.
7935 * bsd-kvm.c: Ditto.
7936 * c-typeprintc: Ditto.
7937 * c-valprint.c: Ditto.
7938 * coff-pe-read.h: Ditto.
7939 * coffreead.c: Ditto.
7940 * cris-tdep.c: Ditto.
7941 * d-lang.c: Ditto.
7942 * darwin-nat-info.c: Ditto.
7943 * darwin-nat.c: Ditto.
7944 * dbug-rom.c: Ditto.
7945 * dbxread.c: Ditto.
7946 * dcache.c: Ditto.
7947 * dcache.h: Ditto.
7948 * dec-thread.c: Ditto.
7949 * defs.h: Ditto.
7950 * demangle.c: Ditto.
7951 * dicos-tdep.c: Ditto.
7952 * dictionary.c: Ditto.
7953 * dictionary.h: Ditto.
7954 * dink32-rom.c: Ditto.
7955 * disasm.c: Ditto.
7956 * doublest.c: Ditto.
7957 * dsrec.c: Ditto.
7958 * dummy-frame.c: Ditto.
7959 * dwarf2-frame.c: Ditto.
7960 * dwarf2expr.c: Ditto.
7961 * dwarf2loc.c: Ditto.
7962 * dwarf2read.c: Ditto.
7963 * elfread.c: Ditto.
7964 * environ.c: Ditto.
7965 * eval.c: Ditto.
7966 * event-top.h: Ditto.
7967 * exceptions.c: Ditto.
7968 * exceptions.h: Ditto.
7969 * exec.c: Ditto.
7970 * expprint.c: Ditto.
7971 * expression.h: Ditto.
7972 * f-exp.y: Ditto.
7973 * f-lang.c: Ditto.
7974 * f-lang.h: Ditto.
7975 * f-typeprint.c: Ditto.
7976 * f-valprint.c: Ditto.
7977 * fbsd-nat.c: Ditto.
7978 * findvar.c: Ditto.
7979 * fork-child.c: Ditto.
7980 * frame.c: Ditto.
7981 * frame.h: Ditto.
7982 * frv-linux-tdep.c: Ditto.
7983 * frv-tdep.c: Ditto.
7984 * gcore.c: Ditto.
7985 * gdb-stabs.h: Ditto.
7986 * gdb_assert.h: Ditto.
7987 * gdb_string.h: Ditto.
7988 * gdb_thread_db.h: Ditto.
7989 * gdb_wait.h: Ditto.
7990 * gdbarch.sh: Ditto.
7991 * gdbcore.h: Ditto.
7992 * gdbthread.h: Ditto.
7993 * gdbtypes.c: Ditto.
7994 * gdbtypes.h: Ditto.
7995 * gnu-nat.c: Ditto.
7996 * gnu-nat.h: Ditto.
7997 * gnu-v2-abi.c: Ditto.
7998 * gnu-v3-abi.c: Ditto.
7999 * go32-nat.c: Ditto.
8000 * gdbarch.c: Regenerate.
8001 * gdbarch.h: Regenerate.
8002
ac74f770
MS
80032011-01-07 Michael Snyder <msnyder@vmware.com>
8004
8005 * ax-gdb.c: Adjust some long output strings.
8006 * breakpoint.c: Ditto.
8007 * charset.c: Ditto.
8008 * cp-abi.c: Ditto.
8009 * infcall.c: Ditto.
8010 * infrun.c: Ditto.
8011 * linux-nat.c: Ditto.
8012 * solib-pa64.c: Ditto.
8013 * solib-som.c: Ditto.
8014
d8e22779
TT
80152011-01-06 Tom Tromey <tromey@redhat.com>
8016
8017 PR python/12367:
8018 * NEWS: Add item.
8019 * python/python.c (GdbMethods): Add "newest_frame" method.
8020 * python/python-internal.h (gdbpy_newest_frame): Declare.
8021 * python/py-frame.c (gdbpy_newest_frame): New function.
8022
a255712f
PP
80232010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8024
8025 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8026 * jit.c (jit_debug): New variable.
8027 (show_jit_debug): New function.
8028 (struct target_buffer): Use ULONGEST.
8029 (bfd_open_from_target_memory): Likewise.
8030 (jit_register_code, jit_inferior_init): Add debug output.
8031 (_initialize_jit): Register "debug jit" command.
8032
ccfc3d6e
TT
80332011-01-06 Tom Tromey <tromey@redhat.com>
8034
8035 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8036 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8037 and ARCH_FRAME.
8038
57126e4a
TT
80392011-01-06 Tom Tromey <tromey@redhat.com>
8040
8041 * python/py-frame.c (frapy_block): Use get_frame_block.
8042
16dfc9ce
JB
80432011-01-06 Joel Brobecker <brobecker@adacore.com>
8044
8045 Do not stop on SIGPRIO signals by default
8046 * infrun.c (_initialize_infrun): Unset signal_stop and
8047 signal_print for TARGET_SIGNAL_PRIO.
8048
b1ce2347
JB
80492011-01-06 Joel Brobecker <brobecker@adacore.com>
8050
8051 * ada-tasks.c: Fix style violation in comment.
8052
8f7e195f
JB
80532011-01-06 Joel Brobecker <brobecker@adacore.com>
8054
8055 * linespec.c (decode_compound, find_method): Remove trailing \n
8056 at end of error string.
8057 * solib-irix.c (irix_current_sos): Likewise.
8058 * varobj.c (uninstall_variable): Likewise.
8059
e9bdf92c
JB
80602011-01-06 Joel Brobecker <brobecker@adacore.com>
8061
8062 * copyright.py: New script.
8063 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8064 Launch emacs without exec'ing. Call copyright.py afterwards.
8065
3e43a32a
MS
80662011-01-05 Michael Snyder <msnyder@vmware.com>
8067
8068 * addrmap.c: Shorten lines of >= 80 columns.
8069 * arch-utils.c: Ditto.
8070 * arch-utils.h: Ditto.
8071 * ax-gdb.c: Ditto.
8072 * ax-general.c: Ditto.
8073 * bcache.c: Ditto.
8074 * blockframe.c: Ditto.
8075 * breakpoint.c: Ditto.
8076 * buildsym.c: Ditto.
8077 * c-lang.c: Ditto.
8078 * c-typeprint.c: Ditto.
8079 * charset.c: Ditto.
8080 * coffread.c: Ditto.
8081 * command.h: Ditto.
8082 * corelow.c: Ditto.
8083 * cp-abi.c: Ditto.
8084 * cp-namespace.c: Ditto.
8085 * cp-support.c: Ditto.
8086 * dbug-rom.c: Ditto.
8087 * dbxread.c: Ditto.
8088 * defs.h: Ditto.
8089 * dfp.c: Ditto.
8090 * dfp.h: Ditto.
8091 * dictionary.c: Ditto.
8092 * disasm.c: Ditto.
8093 * doublest.c: Ditto.
8094 * dwarf2-frame.c: Ditto.
8095 * dwarf2expr.c: Ditto.
8096 * dwarf2loc.c: Ditto.
8097 * dwarf2read.c: Ditto.
8098 * elfread.c: Ditto.
8099 * eval.c: Ditto.
8100 * event-loop.c: Ditto.
8101 * event-loop.h: Ditto.
8102 * exceptions.h: Ditto.
8103 * exec.c: Ditto.
8104 * expprint.c: Ditto.
8105 * expression.h: Ditto.
8106 * f-lang.c: Ditto.
8107 * f-valprint.c: Ditto.
8108 * findcmd.c: Ditto.
8109 * frame-base.c: Ditto.
8110 * frame-unwind.c: Ditto.
8111 * frame-unwind.h: Ditto.
8112 * frame.c: Ditto.
8113 * frame.h: Ditto.
8114 * gcore.c: Ditto.
8115 * gdb-stabs.h: Ditto.
8116 * gdb_assert.h: Ditto.
8117 * gdb_dirent.h: Ditto.
8118 * gdb_obstack.h: Ditto.
8119 * gdbcore.h: Ditto.
8120 * gdbtypes.c: Ditto.
8121 * gdbtypes.h: Ditto.
8122 * inf-ttrace.c: Ditto.
8123 * infcall.c: Ditto.
8124 * infcmd.c: Ditto.
8125 * inflow.c: Ditto.
8126 * infrun.c: Ditto.
8127 * inline-frame.h: Ditto.
8128 * language.c: Ditto.
8129 * language.h: Ditto.
8130 * libunwind-frame.c: Ditto.
8131 * libunwind-frame.h: Ditto.
8132 * linespec.c: Ditto.
8133 * linux-nat.c: Ditto.
8134 * linux-nat.h: Ditto.
8135 * linux-thread-db.c: Ditto.
8136 * machoread.c: Ditto.
8137 * macroexp.c: Ditto.
8138 * macrotab.c: Ditto.
8139 * main.c: Ditto.
8140 * maint.c: Ditto.
8141 * mdebugread.c: Ditto.
8142 * memattr.c: Ditto.
8143 * minsyms.c: Ditto.
8144 * monitor.c: Ditto.
8145 * monitor.h: Ditto.
8146 * objfiles.c: Ditto.
8147 * objfiles.h: Ditto.
8148 * osabi.c: Ditto.
8149 * p-typeprint.c: Ditto.
8150 * p-valprint.c: Ditto.
8151 * parse.c: Ditto.
8152 * printcmd.c: Ditto.
8153 * proc-events.c: Ditto.
8154 * procfs.c: Ditto.
8155 * progspace.c: Ditto.
8156 * progspace.h: Ditto.
8157 * psympriv.h: Ditto.
8158 * psymtab.c: Ditto.
8159 * record.c: Ditto.
8160 * regcache.c: Ditto.
8161 * regcache.h: Ditto.
8162 * remote-fileio.c: Ditto.
8163 * remote.c: Ditto.
8164 * ser-mingw.c: Ditto.
8165 * ser-tcp.c: Ditto.
8166 * ser-unix.c: Ditto.
8167 * serial.c: Ditto.
8168 * serial.h: Ditto.
8169 * solib-frv.c: Ditto.
8170 * solib-irix.c: Ditto.
8171 * solib-osf.c: Ditto.
8172 * solib-pa64.c: Ditto.
8173 * solib-som.c: Ditto.
8174 * solib-sunos.c: Ditto.
8175 * solib-svr4.c: Ditto.
8176 * solib-target.c: Ditto.
8177 * solib.c: Ditto.
8178 * somread.c: Ditto.
8179 * source.c: Ditto.
8180 * stabsread.c: Ditto.
8181 * stabsread.c: Ditto.
8182 * stack.c: Ditto.
8183 * stack.h: Ditto.
8184 * symfile-mem.c: Ditto.
8185 * symfile.c: Ditto.
8186 * symfile.h: Ditto.
8187 * symmisc.c: Ditto.
8188 * symtab.c: Ditto.
8189 * symtab.h: Ditto.
8190 * target-descriptions.c: Ditto.
8191 * target-memory.c: Ditto.
8192 * target.c: Ditto.
8193 * target.h: Ditto.
8194 * terminal.h: Ditto.
8195 * thread.c: Ditto.
8196 * top.c: Ditto.
8197 * tracepoint.c: Ditto.
8198 * tracepoint.h: Ditto.
8199 * ui-file.c: Ditto.
8200 * ui-file.h: Ditto.
8201 * ui-out.h: Ditto.
8202 * user-regs.c: Ditto.
8203 * user-regs.h: Ditto.
8204 * utils.c: Ditto.
8205 * valarith.c: Ditto.
8206 * valops.c: Ditto.
8207 * valprint.c: Ditto.
8208 * valprint.h: Ditto.
8209 * value.c: Ditto.
8210 * varobj.c: Ditto.
8211 * varobj.h: Ditto.
8212 * vec.h: Ditto.
8213 * xcoffread.c: Ditto.
8214 * xcoffsolib.c: Ditto.
8215 * xcoffsolib.h: Ditto.
8216 * xml-syscall.c: Ditto.
8217 * xml-tdesc.c: Ditto.
8218
9a2b4c1b
MS
82192011-01-05 Michael Snyder <msnyder@vmware.com>
8220
8221 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8222 * cli/cli-decode.c: Ditto.
8223 * cli/cli-dump.c: Ditto.
8224 * cli/cli-logging.c: Ditto.
8225 * cli/cli-script.c: Ditto.
8226 * cli/cli-setshow.c: Ditto.
8227 * common/signals.c: Ditto.
8228 * mi/mi-cmd-break.c: Ditto.
8229 * mi/mi-cmd-disas.c: Ditto.
8230 * mi/mi-cmd-stack.c: Ditto.
8231 * mi/mi-cmd-var.c: Ditto.
8232 * mi/mi-cmds.c: Ditto.
8233 * mi/mi-common.h: Ditto.
8234 * mi/mi-console.c: Ditto.
8235 * mi/mi-interp.c: Ditto.
8236 * mi/mi-main.c: Ditto.
8237 * osf-share/cma_attr.c: Ditto.
8238 * osf-share/cma_deb_core.h: Ditto.
8239 * osf-share/cma_debug_client.h: Ditto.
8240 * osf-share/cma_handle.h: Ditto.
8241 * osf-share/cma_mutex.h: Ditto.
8242 * osf-share/cma_stack_int.h: Ditto.
8243 * osf-share/cma_tcb_defs.h: Ditto.
8244 * python/py-auto-load.c: Ditto.
8245 * python/py-breakpoint.c: Ditto.
8246 * python/py-cmd.c: Ditto.
8247 * python/py-frame.c: Ditto.
8248 * python/py-objfile.c: Ditto.
8249 * python/py-param.c: Ditto.
8250 * python/py-progspace.c: Ditto.
8251 * python/py-symbol.c: Ditto.
8252 * python/py-value.c: Ditto.
8253 * python/python-internal.h: Ditto.
8254 * python/python.c: Ditto.
8255 * tui/tui-data.c: Ditto.
8256 * tui/tui-disasm.c: Ditto.
8257 * tui/tui-hooks.c: Ditto.
8258 * tui/tui-io.c: Ditto.
8259 * tui/tui-layout.c: Ditto.
8260 * tui/tui-regs.c: Ditto.
8261 * tui/tui-source.c: Ditto.
8262 * tui/tui-stack.c: Ditto.
8263 * tui/tui-win.c: Ditto.
8264 * tui/tui-windata.c: Ditto.
8265 * tui/tui-winsource.c: Ditto.
8266
44944448
JB
82672011-01-05 Joel Brobecker <brobecker@adacore.com>
8268
8269 * configure.ac, gdb.1: Copyright year update.
8270
ebedcab5
JK
82712011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8272
8273 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8274 this_pc_in_block, morestack_msym and morestack_name. Check for
8275 "__morestack" minimal symbol there.
8276
e5cc9f32
JB
82772011-01-03 Joel Brobecker <brobecker@adacore.com>
8278
8279 * symfile.c (find_sym_fns): Add call to dont_repeat.
8280
7b6bb8da
JB
82812011-01-01 Joel Brobecker <brobecker@adacore.com>
8282
8283 Copyright year update in most files (performed by copyright.sh).
8284
71ce852c
JB
82852011-01-01 Joel Brobecker <brobecker@adacore.com>
8286
8287 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 8288
c3c1ebe8 8289For older changes see ChangeLog-2010.
c906108c
SS
8290\f
8291Local Variables:
8292mode: change-log
8293left-margin: 8
8294fill-column: 74
8295version-control: never
57da7796 8296coding: utf-8
c906108c 8297End:
This page took 1.972738 seconds and 4 git commands to generate.