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