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