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