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