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