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