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