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