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