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