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