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