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