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