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