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