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