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