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