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