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