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