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