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