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