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