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