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