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