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