Add new "alias" command.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-10-09 Doug Evans <dje@google.com>
2
3 Add new "alias" command.
4 * NEWS: Mention new command.
5 * command.h (valid_user_defined_cmd_name_p): Declare.
6 * defs.h (make_cleanup_dyn_string_delete): Declare.
7 * utils.c: #include "dyn-string.h".
8 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
9 * cli/cli-cmds.c: #include "dyn-string.h".
10 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
11 (init_cli_cmds): Add new command.
12 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
13
14 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 Fix compatibility with older GCCs.
17 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
18 * stack.c (read_frame_arg): Initialize val_deref.
19
20 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 Entry values NEWS entries, DWARF disassembly support.
23 * NEWS: New entry values entry.
24 (set print entry-values, show print entry-values)
25 (set debug entry-values, show debug entry-values): New entries.
26 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
27 indent. Remove variable start. Move header printing out. Respect
28 INDENT. Support DW_OP_GNU_entry_value.
29 (locexpr_describe_location_1): Move the header printing here, extend
30 the disassemble_dwarf_expression passed parameters.
31
32 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
33
34 Display @entry parameter values even for references.
35 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
36 coerce_ref_if_computed.
37 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
38 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
39 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
40 existing push_dwarf_reg_entry_value call. Add new detection calling
41 dwarf_block_to_dwarf_reg_deref. Update the error message.
42 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
43 * dwarf2expr.h
44 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
45 parameter deref_size, describe it in the comment.
46 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
47 (dwarf_block_to_dwarf_reg_deref): New declaration.
48 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
49 deref_size, describe it in the function comment. New variables
50 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
51 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
52 describe it in the function comment. Fetch the alternative block
53 accoring to DEREF_SIZE.
54 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
55 (entry_data_value_free_closure, entry_data_value_funcs): New.
56 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
57 outer_val, target_val, val and addr. Try to fetch and create also
58 referenced value content.
59 (pieced_value_funcs): NULL value for coerce_ref.
60 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
61 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
62 coerce_ref_if_computed.
63 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
64 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
65 * stack.c (read_frame_arg): Compare also dereferenced values.
66 * value.c (value_computed_funcs): Make the parameter v const, use
67 value_lval_const for it.
68 (value_lval_const, coerce_ref_if_computed): New function.
69 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
70 * value.h (struct lval_funcs): New field coerce_ref.
71 (value_computed_funcs): Make the parameter v const.
72 (value_lval_const, coerce_ref_if_computed): New declarations.
73
74 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
75
76 Support @entry in input expressions.
77 * c-exp.y (ENTRY, unknown_cpp_name): New.
78 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
79 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
80 (variable: name_not_typename '@' ENTRY, name: ENTRY)
81 (name_not_typename: ENTRY): New.
82 (yylex): Recognize ENTRY.
83 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
84 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
85 Likewise.
86 * parse.c (operator_length_standard): Likewise.
87 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
88
89 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
90
91 Display referenced values in backtraces.
92 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
93 * stack.c (print_frame_arg): Likewise.
94
95 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
96
97 Make some lval_funcs methods to default on NULL.
98 * valops.c (value_fetch_lazy): Check if lval_computed read method is
99 NULL.
100 (value_assign): Check if lval_computed write method is NULL.
101 * value.h (struct lval_funcs): Comment NULL values for read and write
102 methods.
103
104 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
105
106 Display @entry parameter values (without references).
107 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
108 New functions.
109 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
110 New declarations.
111 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
112 entry record.
113 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
114 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
115 functions.
116 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
117 (loclist_read_variable_at_entry): New function.
118 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
119 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
120 DW_AT_location, call dwarf_block_to_sp_offset for it.
121 * frame.h (print_entry_values_no, print_entry_values_only)
122 (print_entry_values_preferred, print_entry_values_if_needed)
123 (print_entry_values_both, print_entry_values_compact)
124 (print_entry_values_default, print_entry_values): New declarations.
125 (struct frame_arg): New field entry_kind.
126 (read_frame_arg): New parameter entryargp.
127 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
128 arg->entry_kind. Optionally print the `@entry' suffix.
129 (list_args_or_locals): New variable entryarg, initialize it.
130 Initialize also entry_kind of arg and entryarg. Conditionalize
131 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
132 xfree for entryarg.error.
133 * stack.c (print_entry_values_no, print_entry_values_only)
134 (print_entry_values_preferred, print_entry_values_if_needed)
135 (print_entry_values_both, print_entry_values_compact)
136 (print_entry_values_default, print_entry_values_choices)
137 (print_entry_values): New variables.
138 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
139 print the `@entry' suffix, possibly in combination for
140 print_entry_values_compact.
141 (read_frame_arg): New parameter entryargp, new variables entryval,
142 entryval_error and val_equal. Read in also entryargp, respect
143 print_entry_values, compare the values using val_equal, fill in also
144 argp->entry_kind (together with entryargp->entry_kind).
145 (print_frame_args): New variable entryarg, initialize it.
146 Conditionalize print_frame_arg for arg, add print_frame_arg for
147 entryarg. Call xfree for entryarg.error.
148 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
149 * symtab.h (struct symbol_computed_ops): New field
150 read_variable_at_entry.
151
152 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
153
154 Code reshuffle.
155 * frame.h (struct frame_arg): New definition.
156 (read_frame_arg): New declaration.
157 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
158 (list_args_or_locals): ... the code here. New variable arg, call
159 read_frame_arg and list_arg_or_local with it. Unify the
160 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
161 arg.error.
162 * stack.c (print_frame_arg): New functiom from the code of
163 print_frame_args.
164 (read_frame_arg): New function.
165 (print_frame_args): Remove variable val. New variable arg, call
166 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
167
168 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
169
170 Protect entry values against self tail calls.
171 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
172 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
173
174 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 Recognize virtual tail call frames.
177 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
178 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
179 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
180 * dwarf2-frame-tailcall.c: New file.
181 * dwarf2-frame-tailcall.h: New file.
182 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
183 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
184 REGS.PREV only after CIE execution.
185 (struct dwarf2_frame_cache): New field tailcall_cache.
186 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
187 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
188 parts, try to find entry_cfa_sp_offset. Call
189 dwarf2_tailcall_sniffer_first.
190 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
191 when appropriate.
192 (dwarf2_frame_dealloc_cache): New function.
193 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
194 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
195 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
196 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
197 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
198 * dwarf2loc.c (func_addr_to_tail_call_list)
199 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
200 (call_site_find_chain_1, call_site_find_chain): New.
201 * dwarf2loc.h (struct call_site_chain): New.
202 (call_site_find_chain): New declaration.
203 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
204 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
205 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
206 * stack.c (frame_info): Support also TAILCALL_FRAME.
207
208 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
209
210 Tail call sites reader implementation.
211 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
212 fill in TYPE_TAIL_CALL_LIST.
213 * gdbtypes.h (struct func_type): New field tail_call_list.
214 (struct call_site): New field tail_call_next.
215 (TYPE_TAIL_CALL_LIST): New definition.
216
217 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 Implement basic support for DW_TAG_GNU_call_site.
220 * block.c: Include gdbtypes.h and exceptions.h.
221 (call_site_for_pc): New function.
222 * block.h (call_site_for_pc): New declaration.
223 * defs.h: Include hashtab.h.
224 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
225 declarations.
226 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
227 ctx_no_push_dwarf_reg_entry_value.
228 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
229 (dwarf_block_to_dwarf_reg): New function.
230 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
231 (ctx_no_push_dwarf_reg_entry_value): New function.
232 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
233 push_dwarf_reg_entry_value.
234 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
235 declarations.
236 * dwarf2loc.c: Include gdbcmd.h.
237 (dwarf_expr_ctx_funcs): New forward declaration.
238 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
239 (dwarf_expr_reg_to_entry_parameter)
240 (dwarf_expr_push_dwarf_reg_entry_value): New.
241 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
242 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
243 (needs_dwarf_reg_entry_value): New function.
244 (needs_frame_ctx_funcs): Install it.
245 (_initialize_dwarf2loc): New function.
246 * dwarf2loc.h (entry_values_debug): New declaration.
247 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
248 (read_call_site_scope): New forward declaration.
249 (process_full_comp_unit): Copy call_site_htab.
250 (process_die): Support DW_TAG_GNU_call_site.
251 (read_call_site_scope): New function.
252 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
253 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
254 (cleanup_htab): Delete.
255 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
256 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
257 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
258 FIELD_LOC_KIND_DWARF_BLOCK.
259 * gdbtypes.h (enum field_loc_kind): New entry
260 FIELD_LOC_KIND_DWARF_BLOCK.
261 (struct main_type): New loc entry dwarf_block.
262 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
263 (TYPE_FIELD_DWARF_BLOCK): New.
264 * python/py-type.c: Include dwarf2loc.h.
265 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
266 internal_error call on unknown FIELD_LOC_KIND.
267 * symtab.h (struct symtab): New field call_site_htab.
268 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
269 (core_addr_hash, core_addr_eq): New functions.
270
271 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
272
273 Code reshuffle.
274 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
275 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
276 calling_convention under func_stuff there.
277 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
278 (init_type) <TYPE_CODE_FUNC>: Likewise.
279 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
280 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
281 * gdbtypes.h (enum type_specific_kind): Change
282 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
283 (struct main_type) <type_specific>: Change calling_convention to
284 func_stuff. Move calling_convention to ...
285 (struct func_type): ... this new struct.
286 (INIT_FUNC_SPECIFIC): New #define.
287 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
288
289 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
290
291 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
292 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
293 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
294 ctx->ref_addr_size. Handle its invalid value.
295 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
296 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
297 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
298 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
299 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
300 (dwarf2_per_cu_ref_addr_size): New function.
301
302 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
303
304 Code cleanup.
305 * dwarf2read.c (per_cu_header_read_in): New function.
306 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
307 variables cu_header_local and cu_headerp.
308
309 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
310
311 Fix initial language detection with -readnow.
312 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
313 * symfile.h (struct quick_symbol_functions): State find_symbol_file
314 searches only for global symbols.
315
316 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
317
318 Fix printed anonymous struct name.
319 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
320 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
321 (anonymous_struct_prefix): New function.
322 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
323 (dwarf2_name): Strip for anonymous structs any prefixes.
324
325 2011-10-07 Doug Evans <dje@google.com>
326
327 * python/lib/gdb/printing.py (register_pretty_printer): New argument
328 `replace'.
329
330 * python/lib/gdb/printing.py: Whitespace cleanup.
331
332 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
333 warning.
334
335 2011-10-07 Pedro Alves <pedro@codesourcery.com>
336
337 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
338 * amd64-linux-nat.c (amd64_linux_dr_set_control)
339 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
340 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
341 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
342 (arm_linux_remove_watchpoint): Adjust.
343 * i386-linux-nat.c (i386_linux_dr_set_control)
344 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
345 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
346 (ia64_linux_remove_watchpoint): Adjust.
347 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
348 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
349 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
350 (ppc_linux_insert_mask_watchpoint)
351 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
352 (ppc_linux_remove_watchpoint): Adjust.
353 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
354 Adjust.
355
356 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
357
358 * windows-nat.c: Include wchar.h to avoid compiler warnings.
359 (clear_win32_environment): New function for Cygwin to clear out
360 Win32 environment.
361 (windows_create_inferior): Prepare new environment from in_env
362 for Cygwin, too.
363
364 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
365
366 PR python/13264
367 * python/py-value.c (valpy_call): Check that arguments are
368 a tuple.
369 (is_intlike): Remove call to CHECK_TYPEDEF.
370 (valpy_nonzero): Catch GDB exceptions.
371 (valpy_absolute): Ditto.
372 (valpy_lazy_string): Ditto.
373 (valpy_call): Ditto.
374 (valpy_get_is_optimized_out): Ditto.
375 (valpy_long): Ditto.
376 (valpy_float): Ditto.
377 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
378 (valpy_richcompare): Ditto.
379
380 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
381
382 * inferior.h (disable_randomization): Declare.
383 * infrun.c (disable_randomization): New global variable.
384 (show_disable_randomization): New function.
385 (set_disable_randomization): Likewise.
386 (_initialize_infrun): Install set/show disable-randomization
387 commands.
388 * linux-nat.c (disable_randomization): Remove.
389 (show_disable_randomization): Likewise.
390 (set_disable_randomization): Likewise.
391 (_initialize_linux_nat): No longer install set/show
392 disable-randomization commands here.
393 (linux_nat_supports_disable_randomization): New function.
394 (linux_nat_add_target): Install it.
395 * remote.c (PACKET_QDisableRandomization): New enum value.
396 (remote_protocol_packets): Support QDisableRandomization.
397 (_initialize_remote): Likewise.
398 (remote_supports_disable_randomization): New function.
399 (init_remote_ops): Install it.
400 (extended_remote_supports_disable_randomization): New function.
401 (init_extended_remote_ops): Install it.
402 (extended_remote_disable_randomization): New function.
403 (extended_remote_create_inferior_1): Call it.
404 * target.h (struct target_ops): Add to_supports_disable_randomization.
405 (target_supports_disable_randomization): Add prototype.
406 * target.c (target_supports_disable_randomization): New function.
407 (find_default_supports_disable_randomization): Likewise.
408 (init_dummy_target): Install it.
409
410 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
411
412 Allow Python notification of new object-file loadings.
413 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
414 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
415 Add build rule for this file.
416 * python/py-event.h (emit_new_objfile_event): New prototype.
417 (newobjfile): New Python event emitter.
418 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
419 Python event registry.
420 * python/py-inferior.c: Include objfiles.h
421 (python_new_objfile): New function.
422 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
423 observers.
424 * python/py-newobjfileevent.c: New file.
425 * python-internal.h (gdbpy_initialize_new_objfile_event): New
426 prototype.
427 * python/python.c (_initialize_python): Add
428 gdbpy_initialize_new_objfile_event call.
429 * NEWS: Add item for new Python event "gdb.newobjfile"
430
431 2011-10-05 Tristan Gingold <gingold@adacore.com>
432
433 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
434 Extract the ravenscar task name from the symbol for the atcb.
435
436 2011-10-04 Paul Koning <paul_koning@dell.com>
437
438 * python/py-type.c (typy_make_iter): Add forward declaration.
439 (typy_fields_items): Use the gdb.Type iterator.
440
441 2011-10-04 Paul Koning <paul_koning@dell.com>
442
443 * NEWS: Add entry for Python gdb.Type mapping methods.
444
445 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
446
447 PR python/12691: Add the inferior to Python exited event
448 * python/py-exitedevent.c (create_exited_event_object): Add inferior
449 to exited_event.
450 * python/py-event.h (emit_exited_event): Likewise
451 * python/-inferior.c (python_inferior_exit): Likewise
452
453 2011-10-03 Joel Brobecker <brobecker@adacore.com>
454
455 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
456 in output of -ada-task-info GDB/MI command.
457
458 2011-10-03 Joel Brobecker <brobecker@adacore.com>
459
460 * ada-lang.h (struct inferior): Declare.
461 (print_ada_task_info): Add declaration.
462 * ada-tasks.c (print_ada_task_info): Make non-static.
463 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
464 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
465 * mi/mi-main.c: #include "ada-lang.h".
466 (mi_cmd_list_features): Add "ada-task-info" to the list
467 of supported features.
468 (mi_cmd_ada_task_info): New function.
469
470 2011-10-03 Joel Brobecker <brobecker@adacore.com>
471
472 * python/python.c (python_run_simple_file): New function.
473 (source_python_script, source_python_script_for_objfile):
474 Replace call to PyRun_SimpleFile by call to
475 python_run_simple_file.
476
477 2011-10-03 Paul Koning <paul_koning@dell.com>
478
479 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
480 (value_to_value_object): Fetch value if it was lazy.
481
482 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
483
484 Code cleanup.
485 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
486 Rearrange the code for it.
487
488 2011-10-02 Joel Brobecker <brobecker@adacore.com>
489
490 * breakpoint.c (bkpt_print_recreate): Add call to
491 print_recreate_thread.
492
493 2011-09-29 Mike Frysinger <vapier@gentoo.org>
494
495 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
496 PTRACE_GETFDPIC_INTERP): Define.
497
498 2011-09-28 Yao Qi <yao@codesourcery.com>
499
500 * symfile.c (add_symbol_file_command): Update message on usage.
501
502 2011-09-28 Paul Koning <paul_koning@dell.com>
503
504 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
505 (typy_length, typy_get, typy_has_key, typy_make_iter)
506 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
507 (typy_iterator_iter, typy_iterator_iternext)
508 (typy_iterator_dealloc): New functions to implement standard
509 Python mapping methods on gdb.Type object.
510 (gdb.TypeIterator): New Python type.
511 * python/python-internal.h (gdbpy_iter_kind): New enum.
512
513 2011-09-28 David S. Miller <davem@davemloft.net>
514
515 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
516 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
517 * sparc-tdep.c (sparc_complex_floating_p): New function.
518 (sparc32_store_arguments): Handle complex floats.
519 (sparc32_extract_return_value): Likewise.
520 (sparc32_store_return_value): Likewise.
521 (sparc32_stabs_argument_has_addr): Likewise.
522 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
523 (sparc64_store_floating_fields): Handle complex floats.
524 (sparc64_store_arguments): Likewise.
525 (sparc64_store_return_value): Likewise.
526
527 2011-09-28 Eli Zaretskii <eliz@gnu.org>
528
529 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
530 before the change on 2006-12-09.
531 (windows_create_inferior) [!__CYGWIN__]: Restore code that
532 generates the environment block for CreateProcessA, modulo the
533 Cygwin-specific parts that are not needed here.
534
535 2011-09-27 Tristan Gingold <gingold@adacore.com>
536
537 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
538 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
539 (darwin_solib_get_all_image_info_addr_at_init): New function.
540 (darwin_solib_read_all_image_info_addr): Likewise.
541 (darwin_solib_create_inferior_hook): Use the above two functions.
542 * darwin-nat.c (darwin_execvp): Renames retval to res.
543 (darwin_read_write_inferior): Update comment.
544 (darwin_read_dyld_info): New function.
545 (darwin_xfer_partial): Handle DYLD_INFO.
546
547 2011-09-27 Stan Shebs <stan@codesourcery.com>
548
549 Add return address collection for tracepoints.
550 * tracepoint.c (encode_actions_1): Add case for $_ret.
551 (validate_actionline): Check for $_ret.
552 (trace_dump_actions): Ditto.
553 * ax-gdb.h (gen_trace_for_return_address): Declare.
554 * ax-gdb.c: Include arch-utils.h.
555 (gen_trace_for_return_address): New function.
556 (agent_command): Add return address special case.
557 * amd64-tdep.c: Include ax.h and ax-gdb.h.
558 (amd64_gen_return_address): New function.
559 (amd64_init_abi): Call it.
560 * i386-tdep.c: Include ax.h and ax-gdb.h.
561 (i386_gen_return_address): New function.
562 (i386_init_abi): Call it.
563 * arch-utils.h (default_gen_return_address): Declare.
564 * arch-utils.c (default_gen_return_address): New function.
565 * gdbarch.sh (gen_return_address): New method.
566 * gdbarch.h, gdbarch.c: Regenerate.
567
568 2011-09-23 Joseph Myers <joseph@codesourcery.com>
569
570 PR gdb/13079
571 * i386-tdep.c (i386_frame_align): New.
572 (i386_gdbarch_init): Use i386_frame_align.
573
574 2011-09-23 Yao Qi <yao@codesourcery.com>
575
576 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
577 to get address.
578
579 2011-09-22 Tristan Gingold <gingold@adacore.com>
580
581 * fork-child.c (fork_inferior): Add exec_fun parameter.
582 Call exec_fun or execvp.
583 * inferior.h: Adjust prototype.
584 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
585 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
586 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
587 * procfs.c (procfs_create_inferior): Ditto.
588 * darwin-nat.c (darwin_execvp): New function.
589 (darwin_create_inferior): Use it.
590
591 2011-09-22 Yao Qi <yao@codesourcery.com>
592
593 * infrun.c (context_switch): Print debug message when switching to
594 a different thread.
595
596 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
597
598 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
599 complex and vector types.
600 (s390_return_value_convention): Likewise.
601
602 (s390_value_from_register): Call check_typedef.
603 (extend_simple_arg): Likewise.
604 (alignment_of): Likewise.
605 (s390_push_dummy_call): Likewise.
606 (s390_return_value): Likewise.
607
608 2011-09-21 Joseph Myers <joseph@codesourcery.com>
609
610 * event-top.c (async_disconnect): If an exception is thrown from
611 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
612 catch_errors.
613 * top.c (quit_cover): Return void and take no arguments.
614 * top.h (quit_cover): Update prototype.
615
616 2011-09-20 Joseph Myers <joseph@codesourcery.com>
617
618 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
619 current_uiout, not uiout.
620
621 2011-09-19 Doug Evans <dje@google.com>
622
623 * python/py-auto-load.c (source_section_scripts): Fix file
624 descriptor leak.
625 * python/python.c (source_python_script_for_objfile): Tweak comments.
626
627 2011-09-18 Yao Qi <yao@codesourcery.com>
628 Ulrich Weigand <ulrich.weigand@linaro.org>
629
630 Support displaced stepping for Thumb 16-bit insns.
631 * arm-tdep.c (THUMB_NOP) Define.
632 (thumb_copy_unmodified_16bit): New.
633 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
634 (thumb_copy_alu_reg): New.
635 (arm_copy_svc): Move some common code to ...
636 (install_svc): ... here. New.
637 (thumb_copy_svc): New.
638 (install_pc_relative): New.
639 (thumb_copy_pc_relative_16bit): New.
640 (thumb_decode_pc_relative_16bit): New.
641 (thumb_copy_16bit_ldr_literal): New.
642 (thumb_copy_cbnz_cbz): New.
643 (cleanup_pop_pc_16bit_all): New.
644 (thumb_copy_pop_pc_16bit): New.
645 (thumb_process_displaced_16bit_insn): New.
646 (thumb_process_displaced_32bit_insn): New.
647 (thumb_process_displaced_insn): process thumb instruction.
648
649 Support displaced stepping for Thumb 32-bit insns.
650 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
651 (thumb2_copy_preload): New.
652 (thumb2_copy_copro_load_store): New.
653 (thumb2_copy_b_bl_blx): New.
654 (thumb2_copy_alu_imm): New.
655 (thumb2_copy_load_reg_imm): New.
656 (thumb2_copy_load_literal): New
657 (thumb2_copy_block_xfer): New.
658 (thumb_32bit_copy_undef): New.
659 (thumb_32bit_copy_unpred): New.
660 (thumb2_decode_ext_reg_ld_st): New.
661 (thumb2_decode_svc_copro): New.
662 (decode_thumb_32bit_store_single_data_item): New.
663 (thumb_copy_pc_relative_32bit): New.
664 (thumb_decode_pc_relative_32bit): New.
665 (decode_thumb_32bit_ld_mem_hints): New.
666 (thumb2_copy_table_branch): New
667 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
668 instructions.
669
670 2011-09-18 Yao Qi <yao@codesourcery.com>
671
672 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
673 (install_b_bl_blx): Likewise.
674
675 2011-09-17 Yao Qi <yao@codesourcery.com>
676
677 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
678 (install_load_store): ... this. New.
679 Change parameter BYTE to SIZE.
680 (arm_copy_ldr_str_ldrb_strb): Update caller.
681 (arm_decode_ld_st_word_ubyte): Update caller.
682
683 2011-09-17 Yao Qi <yao@codesourcery.com>
684
685 * infrun.c (displaced_step_fixup): Move some code ...
686 (displaced_step_restore): ... here. New function.
687 (handle_inferior_event): Cleanup displaced stepping state for both
688 child and parent when get forked or vforked event.
689 * regcache.c (get_thread_arch_aspace_regcache): New function.
690 get_thread_arch_regcache (): Call it.
691
692 2011-09-16 Joel Brobecker <brobecker@adacore.com>
693
694 * ada-tasks.c (print_ada_task_info): New function, merging
695 short_task_info and info_tasks together. Reimplement using
696 ui-out instead of printing to stdout directly. Move the code
697 building and checking the task list here, instead of leaving it
698 in info_tasks_command.
699 (info_task): Move the code building and checking the task
700 list here, instead of leaving it in info_tasks_command.
701 (info_tasks_command): Delete code building and checking
702 the task list - moved elsewhere. Update calls to info_tasks
703 and info_task.
704
705 2011-09-16 Joel Brobecker <brobecker@adacore.com>
706
707 * ada-tasks.c (info_task): Delete parameter `from_tty'.
708
709 2011-09-16 Joel Brobecker <brobecker@adacore.com>
710
711 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
712
713 2011-09-16 Joel Brobecker <brobecker@adacore.com>
714
715 * ada-lang.h (ada_build_task_list): Remove parameter
716 `warn_if_null'.
717 * ada-tasks.c (ada_build_task_list): Remove parameter
718 `warn_if_null'. Adjust implementation and documentation.
719 (valid_task_id, ada_get_environment_task)
720 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
721 (info_tasks_command): Adjust implementation.
722 (task_command): Likewise.
723 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
724 to ada_build_task_list.
725
726 2011-09-16 Joel Brobecker <brobecker@adacore.com>
727
728 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
729 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
730 (ada_tasks_inferior_data_handle): New static global.
731 (get_ada_tasks_inferior_data): New function.
732 (ada_get_task_number, get_task_number_from_id, valid_task_id)
733 (ada_get_environment_task, iterate_over_live_ada_tasks)
734 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
735 Adjust.
736 (ada_set_current_inferior_known_tasks_addr): New function.
737 (read_known_tasks, ada_build_task_list, short_task_info)
738 (info_tasks, info_task, info_tasks_command, task_command_1)
739 (task_command, ada_task_list_changed): Adjust.
740 (ada_tasks_invalidate_inferior_data): New function.
741 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
742 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
743 * ada-lang.h (struct inferior): Add declaration.
744 (ada_task_list_changed): Update profile.
745 * remote-wtx-pd.c: #include "inferior.h".
746 (switch_to_pd_internal): Update call to ada_task_list_changed.
747
748 2011-09-16 Joel Brobecker <brobecker@adacore.com>
749
750 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
751 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
752 (atcb_fieldno): Delete these static globals.
753 (struct ada_tasks_pspace_data): New struct.
754 (ada_tasks_pspace_data_handle): New static global.
755 (get_ada_tasks_pspace_data): New function.
756 (ada_tasks_invalidate_pspace_data): New function.
757 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
758 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
759 (_initialize_tasks): Create this module's per-progspace
760 data handle.
761
762 2011-09-16 Joel Brobecker <brobecker@adacore.com>
763
764 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
765
766 2011-09-16 Tristan Gingold <gingold@adacore.com>
767
768 * fork-child.c (fork_inferior): Update comment. Use alloca
769 instead of xmalloc for argv. Move len and shell_command
770 declarations in the block where they are used.
771 Only call execvp. Factorize failure code.
772
773 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
774
775 Code cleanup.
776 * parse.c (write_exp_elt): Change argument to pass a pointer of union
777 `exp_element' instead of an element of the same and make the function
778 static.
779 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
780 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
781 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
782 Change argument of `write_exp_elt' function call.
783 Remove extra spaces from comments.
784 * parser-defs.h (write_exp_elt): Remove prototype.
785
786 2011-09-15 Paul Koning <paul_koning@dell.com>
787
788 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
789 count of item appended to list.
790 * python/py-type.c (typy_fields): Likewise.
791
792 2011-09-15 Paul Koning <paul_koning@dell.com>
793
794 * MAINTAINERS (Write After Approval): Add myself to the list.
795
796 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
797
798 PR threads/12628
799 * linux-fork.c (checkpoint_command): Disallow checkpointing of
800 processes with multiple threads.
801 (inf_has_multiple_thread_cb): New function.
802 (inf_has_multiple_threads): New function.
803
804 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
805
806 PR Python/12692 Add gdb.selected_inferior() to Python interface.
807 * python/py-inferior.c (GdbMethods): New Python method definition.
808
809 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
810
811 Handle multiple breakpoint hits in Python interface:
812 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
813 variable to breakpoints.
814 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
815 bps instead of single breakpoint. Fix some space typos.
816 * python/py-stopevent.c (create_breakpoint_event_object): Rename
817 variable to breakpoints.
818
819 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
820
821 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
822 note if the breakpoint is internal.
823
824 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
825
826 * MAINTAINERS (Write After Approval): Add myself to the list
827
828 2011-09-14 Pedro Alves <pedro@codesourcery.com>
829
830 * infrun.c (prepare_for_detach, wait_for_inferior)
831 (fetch_inferior_event): Don't flush the register cache.
832 * remote.c (struct stop_reply) <regcache>: Add comment.
833
834 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 Remove excessive DWARF expressions memory duplication.
837 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
838 for block.data.
839 (indirect_pieced_value): Remove variable result. Remove variable
840 back_to and its use for baton.data.
841 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
842 block.data.
843 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
844 Update the function comment.
845
846 2011-09-13 Pedro Alves <pedro@codesourcery.com>
847
848 * inferior.h (ALL_INFERIORS): New.
849 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
850 for a stopped thread.
851 (thread_db_find_new_threads): Look for threads in all inferiors.
852
853 2011-09-13 Pedro Alves <pedro@codesourcery.com>
854
855 * breakpoint.c (update_watchpoint): Handle the case of the
856 watchpoint to update not being in the breakpoint list yet.
857 (hw_watchpoint_use_count): New, factored out from
858 hw_watchpoint_used_count.
859 (hw_watchpoint_used_count): Rename to ...
860 (hw_watchpoint_used_count_others): ... this. Add `except'
861 parameter. Don't count resources of `except'. Use
862 hw_watchpoint_use_count.
863
864 2011-09-13 Pedro Alves <pedro@codesourcery.com>
865
866 * gdbthread.h (enum thread_state): Moved here.
867 (struct thread_info): Rename `executing_' field to `executing' and
868 `state_' to `state'.
869 * thread.c (enum thread_state): Moved to gdbthread.h.
870 (new_thread, add_thread_silent, delete_thread_1)
871 (any_live_thread_of_process, thread_alive, set_running)
872 (set_running, is_thread_state, any_running, is_executing)
873 (set_executing, finish_thread_state, print_thread_info)
874 (do_captured_thread_select): Adjust.
875
876 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
877
878 Fix compatibility with gcc < 4.3 and non-gcc compilers.
879 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
880
881 2011-09-12 Pedro Alves <pedro@codesourcery.com>
882 Matt Rice <ratmice@gmail.com>
883
884 PR gdb/13175
885
886 * interps.c (struct interp) <interpreter_out>: Delete field.
887 (interp_new): Remove the data and uiout parameters and adjust.
888 (interp_set): Only set the current_uiout from the interpreter's
889 uiout after initializing the interpreter. Adjust call to
890 init_proc.
891 (interp_ui_out): Adjust to call procs->ui_out_proc.
892 (interp_data, interp_name): New.
893 * interps.h (interp_init_ftype): Add `self' parameter.
894 (interp_ui_out_ftype): New typedef.
895 (struct interp_procs) <ui_out_proc>: New method pointer.
896 (interp_new): Remove the data and uiout parameters.
897 (interp_data, interp_name): Declare.
898 * tui/tui-interp.c (tui_init): Adjust prototype.
899 (tui_ui_out): New.
900 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
901 tui_out here. Adjust call to interp_new.
902 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
903 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
904 (cli_ui_out): New.
905 (_initialize_cli_interp): Install it. Adjust call to interp_new.
906 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
907 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
908 Initialize mi->uiout depending on the mi_version as extracted from
909 the interpreter's name.
910 (mi_ui_out): New.
911 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
912 interp_new. Don't allocate the ui_out's of the interpreters here.
913
914 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
915
916 * solib.c (solib_used): New function.
917 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
918 by another so_list object before freeing it.
919
920 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
921
922 Code cleanup.
923 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
924 values.
925
926 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
927
928 Code cleanup.
929 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
930 (amd64_skip_xmm_prologue): ... this new function. Describe its
931 parameters. No longer use amd64_prologue_line_bug.
932 * defs.h (producer_is_gcc_ge_4): New declaration.
933 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
934 (process_full_comp_unit): Update its caller. Remove
935 amd64_prologue_line_bug initialization.
936 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
937 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
938
939 2011-09-09 Pedro Alves <pedro@codesourcery.com>
940
941 * linux-nat.h (enum resume_kind): New.
942 (struct lwp_info) <last_resume_kind>: New field.
943 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
944 resume_stop on the new lwp.
945 (add_lwp): Set last_resume_kind as resume_continue by default.
946 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
947 (resume_lwp): New, factored out from resume_callback. Also check
948 for pending status in lp->waitstatus.
949 (resume_callback): Reimplement.
950 (resume_clear_callback): Set last_resume_kind as resume_stop.
951 (resume_set_callback): Set last_resume_kind as resume_continue.
952 (linux_nat_resume, linux_handle_extended_wait): Set
953 last_resume_kind.
954 (running_callback): Also check lp->waitstatus for pending events.
955 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
956 is resume_step.
957 (stop_and_resume_callback): Don't re-resume if the core wanted the
958 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
959 using an invalidated pointer.
960 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
961 SIGSTOPs if the core wanted the LWP to stop.
962 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
963 wanted the lwp to stop. If the core wanted the lwp to stop, and
964 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
965 of TARGET_SIGNAL_STOP.
966 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
967 here. Instead, signal the lwp, and set the last_resume_kind to
968 resume_stop.
969
970 2011-09-09 Pedro Alves <pedro@codesourcery.com>
971
972 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
973 -1 (error), if the lwp exits right after attaching.
974
975 2011-09-08 Doug Evans <dje@google.com>
976
977 * py-cmd.c: Some minor formatting fixes.
978 (gdbpy_parse_command_name): Rename text arg to name, make const.
979 All callers updated.
980 * python-internal.h (gdbpy_parse_command_name): Update.
981
982 * cli/cli-decode.c (add_cmd): Add comment.
983
984 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
985
986 PR breakpoints/12435
987 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
988 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
989 * dwarf2read.c (process_full_comp_unit): Initialize
990 amd64_prologue_line_bug.
991 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
992
993 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
994
995 Fix TUI screen corruption.
996 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
997 batch_flag.
998
999 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1000
1001 * findvar.c (read_var_value): Never return NULL, throw an error
1002 instead. Update the function comment. State symbol name in the error
1003 messages.
1004 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1005 read_var_value.
1006 * stack.c (print_frame_args): Likewise.
1007 * valops.c (value_of_variable): Likewise.
1008
1009 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1010
1011 * stack.c (print_frame_args): New variable except. Wrap
1012 read_var_value and common_val_print into TRY_CATCH.
1013
1014 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1015
1016 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1017 caller to value_of_this.
1018 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1019 Twice.
1020 * valops.c (value_of_this): Remove parameter complain and variable ret.
1021 Update function comment. Never return NULL by this code.
1022 (value_of_this_silent): New function.
1023 * value.h (value_of_this): Remove parameter complain.
1024 (value_of_this_silent): New declaration.
1025
1026 2011-09-07 Yao Qi <yao@codesourcery.com>
1027
1028 * gdbthread.h (struct thread_info): Remove fields
1029 `stepping_through_solib_after_catch' and
1030 `stepping_through_solib_catchpoints'.
1031 * infrun.c (init_thread_stepping_state): Update.
1032 (process_event_stop_test, currently_stepping): Update.
1033 (currently_stepping_or_nexting_callback): Update.
1034
1035 2011-09-07 Yao Qi <yao@codesourcery.com>
1036
1037 * gdbthread.h (struct thread_info): Comment on field
1038 `step_after_step_resume_breakpoint'.
1039
1040 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1041
1042 * remote.c (remote_console_output): Reindent.
1043
1044 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
1045
1046 * frame.c (has_stack_frames): Check for currently selected
1047 traceframe.
1048
1049 2011-09-06 Pedro Alves <pedro@codesourcery.com>
1050
1051 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1052 (set_async_annotation_level, set_async_prompt, pop_prompt)
1053 (push_prompt, new_async_prompt): Delete declarations.
1054 * top.h (get_prompt, set_prompt): Change prototype.
1055 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1056 declarations.
1057 * top.c (command_loop):
1058 (top_prompt): New global.
1059 (get_prefix, set_prefix, get_suffix, ): Delete.
1060 (get_prompt, set_prompt): Rewrite.
1061 (show_new_async_prompt): Rename to ...
1062 (show_prompt): ... this.
1063 (init_main): Adjust. Don't handle --annotate=2 here.
1064 * event-top.c (new_async_prompt): Delete.
1065 (the_prompts): Delete.
1066 (more_to_come): Make static.
1067 (display_gdb_prompt): Use top_level_prompt() to compute the top
1068 level prompt, and don't notify the before_prompt observers
1069 directly here. Always trick readline into not trying to display
1070 the prompt if sync_execution and displaying the primary prompt.
1071 If displaying a local/secondary prompt, always show it, even if
1072 sync_execution is set.
1073 (change_annotation_level): Delete.
1074 (top_level_prompt): New, based on change_annotation_level.
1075 (push_prompt, pop_prompt): Delete.
1076 (async_disable_stdin): No longer pushes prompt.
1077 (command_line_handler): No longer pushes or pops prompt. If more
1078 input is expected, call display_gdb_prompt with an explicit empty
1079 prompt.
1080 (async_stop_sig): Adjust.
1081 (set_async_annotation_level, set_async_prompt): Delete.
1082 * python/python.c (before_prompt_hook): Adjust.
1083
1084 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1085
1086 PR cli/13110
1087
1088 * infrun.c (fetch_inferior_event): Check if there's a selected
1089 thread before checking if the selected thread is executing.
1090
1091 2011-09-05 Pedro Alves <pedro@codesourcery.com>
1092
1093 * inf-loop.c (execute_command): Don't check if the current thread
1094 if running before synchronously waiting for command completion.
1095 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1096 here.
1097 (normal_stop): Call async_enable_stdin here.
1098 * inf-loop.c (inferior_event_handler): Don't call
1099 async_enable_stdin, nor handle "set exec-done-display" here.
1100
1101 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1102
1103 GDB 7.3.1 released.
1104
1105 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1106
1107 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1108
1109 2011-09-04 Joel Brobecker <brobecker@adacore.com>
1110
1111 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1112
1113 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1114
1115 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1116
1117 2011-09-02 Matt Rice <ratmice@gmail.com>
1118
1119 PR gdb/10720
1120 * event-top.c (cli_command_loop): Replace readline setup with
1121 direct call to display_gdb_prompt.
1122 (display_gdb_prompt): Do not call observer mechanism during
1123 synchronous execution.
1124
1125 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1126
1127 * linux-nat.c (in_pid_list_p): New.
1128 (linux_record_stopped_pid): Delete.
1129 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1130 already attached to the LWP. Return an indication if so.
1131 (linux_nat_filter_event): Adjust.
1132 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1133 returning an indication to ignore this thread.
1134
1135 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1136
1137 * top.c: Include interps.h.
1138 (execute_command): If the target can async, but the interpreter is
1139 in sync mode, synchronously wait for the command to finish before
1140 returning.
1141 (execute_command_to_string): Force the interpreter to sync mode.
1142 * infrun.c: Include interps.h.
1143 (fetch_inferior_event): Don't restore the prompt yet if the
1144 interpreter is in sync mode.
1145 * interps.c (interpreter_async): New global.
1146 * interps.h (interpreter_async): Declare.
1147 * inf-loop.c: Include interps.h.
1148 (inferior_event_handler): Don't print the language change or run
1149 breakpoint commands yet if the interpreter in is sync mode.
1150 * main.c (captured_command_loop): Flip the interpreter to async
1151 mode.
1152 * cli/cli-script.c: Include interps.h.
1153 (execute_user_command, while_command, if_command): Force the
1154 interpreter to sync mode.
1155 * python/python.c: Include interps.h.
1156 (python_command, execute_gdb_command): Force the interpreter to
1157 sync mode.
1158
1159 2011-09-02 Pedro Alves <pedro@codesourcery.com>
1160
1161 * value.c (show_convenience): Catch errors thrown while printing
1162 each internal variable.
1163 * infrun.c (validate_siginfo_access): New function.
1164 (siginfo_value_read, siginfo_value_write): Call it.
1165
1166 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 Revert:
1169 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1170 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1171 attribute.
1172
1173 2011-08-29 Yao Qi <yao@codesourcery.com>
1174
1175 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1176 (cmp_name): New.
1177 (enable_break2): Update caller.
1178 * solib-frv.c (bfd_lookup_symbol): Removed.
1179 (cmp_name): New.
1180 (enable_break2): Update caller.
1181 * solib-pa64.c (bfd_lookup_symbol): Removed.
1182 (cmp_name): New.
1183 * solib-svr4.c (bfd_lookup_symbol): Removed.
1184 (cmp_name_and_sec_flags): New.
1185 (enable_break): Update caller.
1186 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1187 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1188 (gdb_bfd_lookup_symbol): New.
1189 * solib.h: Functions declarations.
1190
1191 2011-08-29 Yao Qi <yao@codesourcery.com>
1192
1193 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1194 and solib-dsbt.o.
1195
1196 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1197
1198 Fix TUI stepi on code without symbols.
1199 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1200 current PC instead.
1201
1202 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1203
1204 Code cleanup.
1205 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1206 and the static keyword.
1207 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1208 Make prefix an array.
1209 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1210 * mi/mi-main.c (get_register): Remove stb initialization and the static
1211 keyword.
1212
1213 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1214
1215 Code cleanup - make mi_opt const.
1216 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1217 opts const.
1218 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1219 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1220 (mi_cmd_env_dir): Likewise.
1221 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1222 (mi_cmd_target_file_put): Likewise.
1223 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1224 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1225 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1226 (mi_valid_noargs): Make opts const.
1227 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1228 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1229 (mi_cmd_data_read_memory): Likewise.
1230 (mi_cmd_data_read_memory_bytes): Likewise.
1231 (mi_cmd_data_write_memory): Likewise.
1232
1233 2011-08-26 Matt Rice <ratmice@gmail.com>
1234
1235 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1236 bcache_xmalloc, replace bcache_xmalloc with call to
1237 psymbol_bcache_init for psymbol_cache.
1238 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1239
1240 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 * inf-loop.c (inferior_event_handler): Add exception_print in
1243 INF_EXEC_COMPLETE.
1244
1245 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1246
1247 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1248 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1249 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1250 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1251 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1252 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1253 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1254 * infrun.c (fetch_inferior_event): Call
1255 make_bpstat_clear_actions_cleanup.
1256 * top.c (execute_command): New variable cleanup_if_error, call
1257 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1258 * utils.c (do_bpstat_clear_actions_cleanup)
1259 (make_bpstat_clear_actions_cleanup): New functions.
1260
1261 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1262
1263 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1264 either the parent or the child forks. Rename a couple locals.
1265
1266 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1267
1268 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1269 library call. Avoid reading the `status' local if all waitpid
1270 calls failed.
1271
1272 2011-08-26 Pedro Alves <pedro@codesourcery.com>
1273
1274 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1275 opening /proc/PID/task always succeeds.
1276
1277 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1278
1279 * linespec.c (symtab_from_filename): Check for the end of string.
1280
1281 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1282
1283 PR mi/11912
1284 * varobj.c (cplus_describe_child): Add the keyword
1285 'class' to the output of the method when dealing
1286 with a cast to a base class.
1287
1288 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1289
1290 No functionality change.
1291 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1292 function comment a reference, new variables tp and bs, move here code
1293 from throw_exception.
1294 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1295 describe it in the comment.
1296 * exceptions.c (throw_exception): Remove variable tp, move the code for
1297 bpstat_clear_actions to bpstat_clear_actions.
1298
1299 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
1300
1301 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1302 * linux-nat.c: Include linux-procfs.h.
1303 (linux_proc_get_tgid): Move to ...
1304 * common/linux-procfs.c: ... here. New file.
1305 * common/linux-procfs.h: New file.
1306 * linux-thread-db.c: Include linux-procfs.h.
1307 * Makefile.in: Update dependencies.
1308 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1309 * config/arm/linux.mh: Likewise.
1310 * config/i386/linux.mh: Likewise.
1311 * config/i386/linux64.mh: Likewise.
1312 * config/ia64/linux.mh: Likewise.
1313 * config/m32r/linux.mh: Likewise.
1314 * config/m68k/linux.mh: Likewise.
1315 * config/mips/linux.mh: Likewise.
1316 * config/pa/linux.mh: Likewise.
1317 * config/pa/linux.mh: Likewise.
1318 * config/powerpc/linux.mh: Likewise.
1319 * config/powerpc/ppc64-linux.mh: Likewise.
1320 * config/powerpc/spu-linux.mh: Likewise.
1321 * config/sparc/linux.mh: Likewise.
1322 * config/sparc/linux64.mh: Likewise.
1323 * config/xtensa/linux.mh: Likewise.
1324
1325 2011-08-24 Hui Zhu <teawater@gmail.com>
1326
1327 * tracepoint.c (cond_string_is_same): New function.
1328 (find_matching_tracepoint): Add condition check
1329 by cond_string_is_same.
1330
1331 2011-08-23 Josh Matthews <josh@joshmatthews.net>
1332
1333 Fix build error in Darwin port.
1334 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
1335
1336 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1337
1338 Code cleanup.
1339 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
1340 (command_line_is_silent): New function.
1341 (bpstat_do_actions_1): No longer use commands_left, use
1342 command_line_is_silent for commands.
1343 (bpstat_alloc): Remove clearing of commands_left.
1344 (bpstat_stop_status): Remove initialization of commands_left, use
1345 command_line_is_silent.
1346 * breakpoint.h (struct bpstats): Remove commands_left.
1347
1348 2011-08-18 Keith Seitz <keiths@redhat.com>
1349
1350 PR c++/12266
1351 * cp-name-parser.y (struct demangle_info): Remove unused
1352 member PREV.
1353 (d_grab): Likewise.
1354 (allocate_info): Change return type to struct demangle_info *.
1355 Always allocate a new demangle_info.
1356 Remove unused PREV pointer.
1357 (cp_new_demangle_parse_info): New function.
1358 (cp_demangled_name_parse_free): New function.
1359 (do_demangled_name_parse_free_cleanup): New function.
1360 (make_cleanup_cp_demangled_name_parse_free): New function.
1361 (cp_demangled_name_to_comp): Change return type to
1362 struct demangle_parse_info *.
1363 Allocate a new storage for each call.
1364 (main): Update usage for cp_demangled_name_to_comp
1365 API change.
1366 * cp-support.h (struct demangle_parse_info): New structure.
1367 (cp_demangled_name_to_comp): Update API change for
1368 return type.
1369 (cp_new_demangle_parse_info): Declare.
1370 (make_cleanup_cp_demangled_name_parse_free): New declaration.
1371 (cp_demangled_name_parse_free): Declare.
1372 * cp-support.c (cp_canonicalize_string): Update API
1373 change for cp_demangled_name_to_comp.
1374 (mangled_name_to_comp): Likewise.
1375 Return struct demangle_parse_info, too.
1376 (cp_class_name_from_physname): Update mangled_name_to_comp
1377 API change.
1378 (method_name_from_physname): Likewise.
1379 (cp_func_name): Update API change for cp_demangled_name_to_comp.
1380 (cp_remove_params): Likewise.
1381 * python/py-type.c (typy_legacy_template_argument): Likewise.
1382
1383 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
1384 (cp_merge_demangle_parse_infos): Declare.
1385 * cp-support.c (ignore_typedefs): New file global.
1386 (copy_string_to_obstack): New function.
1387 (inspect_type): New function.
1388 (replace_typedefs): New function.
1389 (replace_typedefs_qualified_name): New function.
1390 (cp_canonicalize_string_no_typedefs): New function.
1391 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
1392 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
1393 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
1394 instead of cp_canonicalize_string.
1395 (find_method): Likewise.
1396 (decode_compound): Before looking up the name, call
1397 cp_canonicalize_string_no_typedefs.
1398 (decode_variable): Likewise.
1399
1400 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
1401 Tom Tromey <tromey@redhat.com>
1402 Matt Rice <ratmice@gmail.com>
1403
1404 * python/lib/gdb/prompt.py: New file.
1405 * python/lib/gdb/command/prompt.py: New file.
1406 * NEWS: Document set extended-prompt and gdb.prompt library
1407
1408 2011-08-16 Yao Qi <yao@codesourcery.com>
1409
1410 * tic6x-linux-tdep.c: Move const arrays definition from here...
1411 * tic6x-tdep.c: to here ...
1412
1413 2011-08-14 Yao Qi <yao@codesourcery.com>
1414
1415 * NEWS: New port to Texas Instruments TMS320C6x.
1416
1417 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
1418 Bernd Schmidt <bernds@codesourcery.com>
1419 Yao Qi <yao@codesourcery.com>
1420
1421 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
1422 * solib-dsbt.c: New file. Support DSBT shared object.
1423 * tic6x-linux-tdep.c: New file.
1424 * tic6x-tdep.c: New file.
1425 * tic6x-tdep.h: New file.
1426
1427 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
1428 Yao Qi <yao@codesourcery.com>
1429
1430 * remote.c (PACKET_qXfer_fdpic): New enum value.
1431 (remote_protocol_features): Add qXfer:fdpic:read packet.
1432 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
1433 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
1434 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
1435
1436 2011-08-14 Yao Qi <yao@codesourcery.com>
1437
1438 Target description for tic6x.
1439 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
1440 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
1441 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
1442 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
1443 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
1444 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
1445 * features/tic6x-c64xp-linux.xml: New.
1446 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
1447 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
1448 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
1449 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
1450 * regformats/tic6x-c64xp.dat,
1451 regformats/tic6x-c62x-linux.dat: Generated.
1452 * regformats/tic6x-c64x-linux.dat,
1453 regformats/tic6x-c64xp-linux.dat: Generated.
1454 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
1455 features/tic6x-*.c files.
1456 Add regformats/tic6x-*.dat files.
1457
1458 2011-08-12 Doug Evans <dje@google.com>
1459
1460 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
1461 * python/py-symbol.c (sympy_get_type): New function.
1462 (symbol_object_getset): Add "type".
1463
1464 2011-08-12 Pedro Alves <pedro@codesourcery.com>
1465
1466 PR tui/13073
1467
1468 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
1469 empty name.
1470 (tui_show_register_group): Don't store a byte buffer in the data
1471 element's value.
1472 (tui_register_format): Skip registers with an empty name.
1473 (tui_get_register): Store a struct value in the data element's
1474 value field instead of a byte buffer holding the raw register
1475 contents. Account for optimized-out and unavailable registers
1476 when comparing register contents.
1477
1478 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1479
1480 * printcmd.c (current_display_number): Update comment.
1481 (disable_current_display_cleanup): Delete.
1482 (do_one_display): Use make_cleanup_restore_integer. Gracefully
1483 catch errors thrown while evaluating and printing the display.
1484
1485 2011-08-09 Tom Tromey <tromey@redhat.com>
1486
1487 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
1488
1489 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1490
1491 * elfread.c (elf_symtab_read): Rework comments.
1492 * maint.c (maintenance_command): Ditto.
1493 * somread.c (som_symtab_read): Ditto.
1494 * solib.c (solib_find, solib_map_sections, update_solib_list)
1495 (solib_add, info_sharedlibrary_command, solib_name_from_address)
1496 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1497 (sharedlibrary_command, no_shared_libraries): Ditto.
1498 * solib-irix.c (locate_base, disable_break, enable_break)
1499 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1500 (irix_current_sos, irix_open_symbol_file_object)
1501 (irix_special_symbol_handling): Ditto.
1502 * solib-sunos.c (locate_base, first_link_map_member)
1503 (sunos_current_sos, disable_break, enable_break)
1504 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1505 Ditto.
1506 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1507 (open_symbol_file_object, svr4_current_sos, enable_break)
1508 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1509 Ditto.
1510 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1511 (frv_current_sos, enable_break, frv_special_symbol_handling)
1512 (frv_solib_create_inferior_hook): Ditto.
1513 * solist.h (struct target_so_ops): Extend the comments of the
1514 special_symbol_handling, current_sos and open_symbol_file_object
1515 methods.
1516
1517 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
1518
1519 * python/lib/gdb/__init__.py: Auto-load files in command and
1520 function directories.
1521 * python/python.c (finish_python_initialization): Use
1522 os.path.join.
1523 * python/lib/gdb/command/pretty_printers.py: Self register
1524 command.
1525 * NEWS: Document auto-loading.
1526
1527 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1530 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1531 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
1532
1533 2011-08-08 Tom Tromey <tromey@redhat.com>
1534
1535 * breakpoint.c (clean_up_filters): Remove.
1536 (catch_syscall_split_args): Use VEC_cleanup.
1537
1538 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1539
1540 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1541 (main): Uncomment "Demangling error\n".
1542
1543 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1544
1545 * solib-target.c (segment_attributes): Make them static.
1546 (section_attributes, library_children, library_attributes): Likewise.
1547 (library_list_children, library_list_attributes): Likesise.
1548 (library_list_elements): Likewise.
1549
1550 2011-08-05 Pedro Alves <pedro@codesourcery.com>
1551
1552 * exceptions.c (throw_exception): Don't disable the current
1553 display.
1554 * printcmd.c (disable_current_display_cleanup): New function.
1555 (do_one_display): Install a cleanup to disable the current display
1556 if doing the display throws.
1557
1558 2011-08-05 Eli Zaretskii <eliz@gnu.org>
1559
1560 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1561 initialization of the tp_new member to the corresponding
1562 gdbpy_initialize_* function.
1563 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1564 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1565 * python/py-function.c (gdbpy_initialize_functions): Likewise.
1566 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1567 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1568
1569 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1572 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1573 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1574 references to current_uiout.
1575
1576 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1577
1578 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1579 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1580 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1581 * top.c (gdb_readline_wrapper): Adjust.
1582 * tui/tui-interp.c (tui_command_loop):
1583 (_initialize_tui_interp): Don't install it.
1584
1585 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1586
1587 * ui-out.h (uiout): Rename to ...
1588 (current_uiout): ... this.
1589 * ui-out.c (uiout): Rename to ...
1590 (current_uiout): ... this.
1591 * ada-lang.c (print_it_exception, print_one_exception)
1592 (print_mention_exception): Adjust.
1593 * breakpoint.c (watchpoint_check): Adjust.
1594 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1595 (default_collect_info, watchpoints_info, print_one_catch_fork)
1596 (print_one_catch_vfork, print_one_catch_syscall)
1597 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1598 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1599 (print_it_watchpoint, print_mention_watchpoint)
1600 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1601 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1602 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1603 (bkpt_print_mention, momentary_bkpt_print_it)
1604 (tracepoint_print_mention, update_static_tracepoint)
1605 (tracepoints_info, save_breakpoints): Adjust.
1606 * cli-out.c (field_separator): Adjust.
1607 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1608 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1609 * frame.c (get_current_frame): Adjust.
1610 * infcmd.c (run_command_1, print_return_value): Adjust.
1611 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1612 * infrun.c (print_end_stepping_range_reason): Adjust.
1613 (print_signal_exited_reason, print_exited_reason): Adjust.
1614 (print_signal_received_reason, print_no_history_reason): Adjust.
1615 * interps.c (interp_set): Adjust.
1616 * osdata.c (info_osdata_command): Adjust.
1617 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1618 * remote-fileio.c (remote_fileio_request): Adjust.
1619 * remote.c (show_remote_cmd): Adjust.
1620 * solib.c (info_sharedlibrary_command): Adjust.
1621 * source.c (print_source_lines_base): Adjust.
1622 * stack.c (print_stack_frame): Adjust.
1623 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1624 * symfile-mem.c (add_vsyscall_page): Adjust.
1625 * symfile.c (load_progress, generic_load)
1626 (print_transfer_performance): Adjust.
1627 * thread.c (info_threads_command, restore_selected_frame)
1628 (thread_command): Adjust.
1629 * top.c (make_cleanup_restore_ui_file): Adjust.
1630 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1631 (print_one_static_tracepoint_marker): Adjust.
1632 * cli/cli-cmds.c (print_disassembly): Adjust.
1633 * cli/cli-decode.c (print_doc_line): Adjust.
1634 * cli/cli-interp.c (safe_execute_command): Adjust.
1635 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1636 (handle_redirections): Adjust.
1637 * cli/cli-script.c (show_user_1): Adjust.
1638 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1639 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1640 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1641 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1642 (mi_cmd_env_dir): Adjust.
1643 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1644 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1646 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1647 (list_args_or_locals): Adjust.
1648 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1649 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1650 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1651 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1652 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1653 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1654 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1655 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1656 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1657 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1658 (list_available_thread_groups, mi_cmd_list_thread_groups)
1659 (mi_cmd_data_list_register_names)
1660 (mi_cmd_data_list_changed_registers)
1661 (mi_cmd_data_list_register_values, get_register)
1662 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1663 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1664 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1665 (mi_execute_command, mi_load_progress): Adjust.
1666 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1667 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1668 Adjust.
1669 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1670 * tui/tui-interp.c (tui_command_loop): Adjust.
1671 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1672
1673 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1674
1675 * exceptions.c (struct catcher): Remove saved_uiout field.
1676 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1677 no longer save/resvore the global ui_out builder.
1678 (catch_exceptions_with_msg): Save/override/restore the global
1679 ui_out builder manually instead of relying on TRY_CATCH to do it.
1680 (catch_errors): Save/restore the global ui_out builder manually
1681 instead of relying on TRY_CATCH to do it.
1682 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1683 parameter.
1684 (TRY_CATCH): Adjust.
1685 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1686 the global ui_out builder manually instead of relying on TRY_CATCH
1687 to do it.
1688
1689 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1690
1691 * breakpoint.c (update_global_location_list): Ensure
1692 invariant 'first loc marked not duplicated and inserted,
1693 following locs marked duplicated/not inserted' is respected
1694 for multiple locations at the same address.
1695 (unduplicated_should_be_inserted) New function.
1696 (swap_insertion) New function.
1697
1698 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1699
1700 * stack.c (print_frame_arguments_choices): Comment typo fix.
1701
1702 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1703
1704 Revert:
1705 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1706 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1707 argument. Update callers.
1708
1709 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1710
1711 PR gdb/13045
1712 * doublest.c (convert_doublest_to_floatformat): Pass correct
1713 mantissa length to put_field.
1714
1715 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1718 exception_print code path.
1719 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1720 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1721 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1722
1723 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1724
1725 Code cleanup.
1726 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1727 Remove, merge them into ...
1728 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1729 variable args and its initialization.
1730 (struct print_args_args, print_args_stub): Remove, merge them into
1731 print_frame.
1732 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1733 them into ...
1734 (do_gdb_disassembly): ... here. Remove variable args and its
1735 initialization.
1736 (print_frame): Remove variable args and its initialization, new
1737 variable gdbarch and numargs (from print_args_stub), inline here
1738 print_args_stub with a TRY_CATCH.
1739 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1740 them into ...
1741 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1742 New variable e, remove variable btargs and its initialization.
1743
1744 2011-08-01 Tristan Gingold <gingold@adacore.com>
1745
1746 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1747
1748 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1749
1750 * breakpoint.c (insert_bp_location): Document return value.
1751 (insert_breakpoint_locations): Fix documentation.
1752 (remove_breakpoints): Add documentation.
1753
1754 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1755
1756 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1757 argument. Update callers.
1758
1759 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1760
1761 * stack.c (print_frame_info): Comment typo fix.
1762
1763 2011-07-29 Sterling Augustine <saugustine@google.com>
1764
1765 * MAINTAINERS (Write After Approval): Add myself to the list.
1766
1767 2011-07-29 Tom Tromey <tromey@redhat.com>
1768
1769 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1770 (library_list_start_segment): Update.
1771 (library_list_start_section): Update.
1772
1773 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1774
1775 * varobj.c (value_get_print_value): Move hint check later into the
1776 function. Comment function. Free thevalue before reusing it.
1777
1778 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 Pedro Alves <pedro@codesourcery.com>
1780
1781 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1782 value_one.
1783 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1784 Assert the result kind.
1785 * value.h (value_one): Remove parameter lv.
1786
1787 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1788
1789 Fix crash on lval_computed values.
1790 * valops.c (value_zero): Use not_lval for lval_computed.
1791
1792 2011-07-27 Tom Tromey <tromey@redhat.com>
1793
1794 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1795 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1796
1797 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1800 "ptype" by their typedefs difference.
1801
1802 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 * dwarf2expr.c (ctx_no_read_reg): New function.
1805 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1806 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1807 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1808 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1809
1810 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1811
1812 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1813 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1814 file.
1815 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1816 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1817 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1818 (ctx_no_get_base_type): Move the functions here.
1819 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1820 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1821 (ctx_no_get_base_type): New declarations.
1822
1823 2011-07-27 Tom Tromey <tromey@redhat.com>
1824
1825 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1826 entries.
1827 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1828 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1829
1830 2011-07-26 Sterling Augustine <saugustine@google.com>
1831
1832 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1833 ULONGEST.
1834 (dump_bfd_file): Likewise.
1835
1836 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1837
1838 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1839 (remote_hw_watchpoint_length_limit): New variable.
1840 (_initialize_remote) add set,show cmds for this new variable.
1841 * gdb.texinfo: document these new commands.
1842 * NEWS: Mention these new commands.
1843
1844 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1845
1846 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1847 true for software watchpoints.
1848
1849 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1850
1851 GDB 7.3 released.
1852
1853 2011-07-26 Tom Tromey <tromey@redhat.com>
1854
1855 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1856 * dwarf2read.c (read_indirect_string_at_offset): New function.
1857 (read_indirect_string): Use it.
1858 (dwarf_decode_macro_bytes): New function, taken from
1859 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1860 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1861 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1862 New functions.
1863 (struct dwarf2_per_objfile) <macro>: New field.
1864 (dwarf2_elf_names): Add .debug_macro.
1865 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1866 (dwarf2_locate_sections): Handle new section.
1867 (read_file_scope): Handle DW_AT_GNU_macros.
1868 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1869
1870 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1871
1872 * NEWS: Mention dcache configuration.
1873 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1874 (dcache_size, dcache_line_size): New variables.
1875 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1876 (struct dcache_block): Make it expandable.
1877 (struct dcache_struct): New field.
1878 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1879 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1880 (dcache_poke_byte, dcache_print_line): Adjust.
1881 (set_dcache_size, set_dcache_line_size): New functions.
1882 (set_dcache_command, show_dcache_command): New functions.
1883 (_initialize_dcache): Add new commands.
1884
1885 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1886
1887 * progspace.h (struct program_space): Add solib_add_generation.
1888 * infcmd.c (post_create_inferior): Only call solib_add if not
1889 already done.
1890 * solib.c (solib_add): Increment solib_add_generation.
1891
1892 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1893
1894 Fix implicit pointer offsets.
1895 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1896 ptr.OFFSET.
1897
1898 2011-07-25 Tom Tromey <tromey@redhat.com>
1899
1900 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1901 const.
1902 (ada_exception_sal): Make 'ops' const.
1903 (ada_decode_exception_location): Likewise.
1904 (ada_decode_assert_location): Likewise.
1905 (catch_assert_command): Update.
1906 (catch_ada_exception_command): Update.
1907 (create_ada_exception_catchpoint): Make 'ops' const.
1908 * breakpoint.c (set_raw_breakpoint_without_location)
1909 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1910 const.
1911 (create_internal_breakpoint): Update.
1912 (init_raw_breakpoint_without_location): Make 'ops' const.
1913 (init_raw_breakpoint, init_catchpoint)
1914 (create_fork_vfork_event_catchpoint)
1915 (create_syscall_event_catchpoint, init_breakpoint_sal)
1916 (create_breakpoint_sal, create_breakpoints_sal)
1917 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1918 * breakpoint.h (struct breakpoint) <ops>: Now const.
1919 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1920 const.
1921
1922 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1923
1924 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1925
1926 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1927
1928 * breakpoint.h (print_recreate_thread): Declare.
1929 (struct breakpoint): Move step_count, pass_count,
1930 number_on_target, static_trace_marker_id,
1931 static_trace_marker_id_idx ...
1932 (struct tracepoint): ... to this new struct.
1933 (get_tracepoint, get_tracepoint_by_number_on_target)
1934 (get_tracepoint_by_number): Change return type to struct
1935 tracepoint pointer.
1936 * breakpoint.c (is_tracepoint_type): New, factored out from
1937 is_tracepoint.
1938 (is_tracepoint): Adjust.
1939 (print_one_breakpoint_location): Cast to struct tracepoint as
1940 necessary, and adjust.
1941 (print_recreate_catch_fork, print_recreate_catch_vfork)
1942 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1943 print_recreate_thread.
1944 (init_breakpoint_sal): New, factored out from
1945 create_breakpoint_sal.
1946 (create_breakpoint_sal): Reimplement.
1947 (create_breakpoint): Allocate a struct tracecepoint if the caller
1948 wanted a tracepoint. Use init_breakpoint_sal and
1949 install_breakpoint.
1950 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1951 (print_recreate_masked_watchpoint)
1952 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1953 (tracepoint_print_one_detail): Adjust.
1954 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1955 Dump the pass count here.
1956 (update_static_tracepoint): Adjust.
1957 (addr_string_to_sals): Adjust.
1958 (create_tracepoint_from_upload): Adjust. Change return type to
1959 struct tracepoint pointer.
1960 (trace_pass_set_count): Change parameter type to struct tracepoint
1961 pointer, and adjust.
1962 (trace_pass_command): Adjust.
1963 (get_tracepoint, get_tracepoint_by_number_on_target)
1964 (get_tracepoint_by_number): Change return type to struct
1965 tracepoint pointer, and adjust.
1966 (print_recreate_thread): New, factored out from save_breakpoints.
1967 (save_breakpoints): Don't print thread and task and passcount
1968 recreation here.
1969 * remote.c (remote_download_tracepoint): Adjust.
1970 * tracepoint.c (trace_actions_command, validate_actionline)
1971 (start_tracing, tfind_1, trace_find_tracepoint_command)
1972 (trace_dump_command): Adjust.
1973 (find_matching_tracepoint): Change return type to struct
1974 tracepoint pointer, and adjust.
1975 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1976 (tfile_trace_find, tfile_fetch_registers): Adjust.
1977 * tracepoint.h (create_tracepoint_from_upload): Change return type
1978 to struct tracepoint pointer.
1979 * ada-lang.c (print_recreate_exception): Call
1980 print_recreate_thread.
1981 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1982
1983 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1984
1985 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1986 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1987 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1988 watchpoint_thread, watchpoint_triggered ...
1989 (struct watchpoint): ... to this new struct.
1990 (is_watchpoint): Declare.
1991 (install_breakpoint): Add new `internal' parameter.
1992 * breakpoint.c (is_watchpoint): Delete declaration.
1993 (set_breakpoint_condition): Handle watchpoints.
1994 (is_watchpoint): Make public.
1995 (watchpoint_in_thread_scope): Change parameter type to struct
1996 watchpoint.
1997 (watchpoint_del_at_next_stop): Change parameter type to struct
1998 watchpoint. Remove assertion. Adjust.
1999 (update_watchpoint): Ditto.
2000 (insert_breakpoints, breakpoint_init_inferior)
2001 (watchpoints_triggered, watchpoint_check)
2002 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2003 (bpstat_stop_status, print_one_breakpoint_location)
2004 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2005 to struct watchpoint as necessary, and adjust.
2006 (install_breakpoint): Add `internal' argument. If true, don't
2007 mention the new breakpoint. Use set_breakpoint_number.
2008 (create_fork_vfork_event_catchpoint)
2009 (create_syscall_event_catchpoint): Adjust.
2010 (dtor_watchpoint): New.
2011 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2012 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2013 (print_it_watchpoint, print_mention_watchpoint)
2014 (print_recreate_watchpoint, insert_masked_watchpoint)
2015 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2016 (print_one_detail_masked_watchpoint)
2017 (print_mention_masked_watchpoint)
2018 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2019 necessary, and adjust.
2020 (watch_command_1): Allocate and initialize a struct watchpoint
2021 instead of a struct breakpoint. Use install_breakpoint.
2022 (catch_exec_command_1): Adjust.
2023 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2024 fields.
2025 (delete_breakpoint, enable_breakpoint_disp)
2026 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2027 as necessary, and adjust.
2028 (initialize_breakpoint_ops): Install dtor_watchpoint as
2029 watchpoints' dtor method.
2030 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2031 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2032 to struct watchpoint as necessary, and adjust.
2033
2034 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2035
2036 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2037 the the base class ops table.
2038 (catch_exception_breakpoint_ops)
2039 (catch_exception_unhandled_breakpoint_ops)
2040 (catch_assert_breakpoint_ops): Don't statically initialize.
2041 (initialize_ada_catchpoint_ops): New.
2042 (_initialize_ada_language): Call it.
2043 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2044 (bkpt_breakpoint_ops): Forward declare.
2045 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2046 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2047 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2048 (masked_watchpoint_breakpoint_ops)
2049 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2050 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2051 base class ops table.
2052 (null_re_set, null_check_status, null_works_in_software_mode)
2053 (null_resources_needed, null_print_one_detail): Delete.
2054 (bkpt_dtor): Rename to ...
2055 (base_breakpoint_dtor): ... this. Make static.
2056 (bkpt_allocate_location): Rename to ...
2057 (base_breakpoint_allocate_location): ... this. Make static.
2058 (base_breakpoint_re_set): New.
2059 (internal_error_pure_virtual_called): New.
2060 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2061 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2062 (base_breakpoint_works_in_software_mode)
2063 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2064 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2065 (base_breakpoint_print_recreate): New functions.
2066 (base_breakpoint_ops): New global.
2067 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2068 (bkpt_breakpoint_hit): Make static.
2069 (bkpt_check_status): Delete.
2070 (bkpt_resources_needed): Make static.
2071 (bkpt_works_in_software_mode): Delete.
2072 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2073 static.
2074 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2075 (momentary_breakpoint_ops): Don't statically initialize.
2076 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2077 Delete.
2078 (tracepoint_insert_location, tracepoint_remove_location)
2079 (tracepoint_check_status, tracepoint_works_in_software_mode)
2080 (tracepoint_print_it): Delete.
2081 (tracepoint_breakpoint_ops): Don't statically initialize.
2082 (initialize_breakpoint_ops): New.
2083 (_initialize_breakpoint): Call it.
2084 * breakpoint.h (null_re_set, null_works_in_software_mode)
2085 (null_resources_needed, null_check_status, null_print_one_detail):
2086 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2087 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2088 (bkpt_check_status, bkpt_resources_needed)
2089 (bkpt_works_in_software_mode, bkpt_print_it)
2090 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2091 Delete declarations.
2092 (initialize_breakpoint_ops): Declare.
2093
2094 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2095
2096 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2097 (momentary_bkpt_print_it): Simplify.
2098
2099 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2100
2101 Split internal, momentary and user breakpoints breakpoint_ops
2102 tables.
2103
2104 * breakpoint.c (internal_breakpoint_ops)
2105 (momentary_breakpoint_ops): Forward declare.
2106 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2107 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2108 (create_overlay_event_breakpoint)
2109 (create_std_terminate_master_breakpoint)
2110 (create_exception_master_breakpoint): Create breakpoints with
2111 internal_breakpoint_ops vtable.
2112 (set_longjmp_breakpoint): Create momentary breakpoints with
2113 momentary_breakpoint_ops vtable, using
2114 momentary_breakpoint_from_master.
2115 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2116 (create_solib_event_breakpoint): Create breakpoints with
2117 internal_breakpoint_ops vtable.
2118 (set_momentary_breakpoint): Create breakpoints with
2119 momentary_breakpoint_ops vtable.
2120 (momentary_breakpoint_from_master): New, factored out from
2121 clone_momentary_breakpoint.
2122 (clone_momentary_breakpoint): Adjust.
2123 (watch_command_1): Create scope breakpoints with
2124 momentary_breakpoint_ops vtable.
2125 (bkpt_re_set): Remove handling of internal and momentary
2126 breakpoints.
2127 (bkpt_print_mention, bkpt_print_recreate): New.
2128 (bkpt_breakpoint_ops): Adjust.
2129 (internal_bkpt_re_set, internal_bkpt_check_status)
2130 (internal_bkpt_print_it, internal_bkpt_print_mention)
2131 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2132 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2133 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2134 (momentary_bkpt_print_recreate): New.
2135 (momentary_breakpoint_ops): New.
2136
2137 2011-07-25 Pedro Alves <pedro@codesourcery.com>
2138
2139 Implement most breakpoint_ops methods for all breakpoint types,
2140 and move the default handlings to the proper callbacks.
2141
2142 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2143 works_in_software_mode method.
2144 (insert_bp_location): Go through breakpoint_ops->insert_location
2145 for software and hardware watchpoints.
2146 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2147 breakpoint_ops.
2148 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2149 for software and hardware watchpoints.
2150 (print_it_typical): Delete.
2151 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2152 method.
2153 (watchpoint_check): Adjust comment.
2154 (bpstat_check_location): Simply always call the breakpoint's
2155 breakpoint_hit method.
2156 (bpstat_stop_status): Always call the breakpoint's check_status
2157 method. Remove special cases for watchpoints and internal event
2158 breakpoints from here (moved to the check_status implementations).
2159 (print_one_breakpoint_location): Assume b->ops is never NULL.
2160 Remove static tracepoint marker id printing from here (moved to
2161 the print_one_detail callback implementation of tracepoints).
2162 (init_bp_location): Assert OPS is never NULL.
2163 (allocate_bp_location): Always call the breakpoint's
2164 allocate_location method, and remove the default code from here.
2165 (free_bp_location): Always call the location's dtor method, and
2166 remove the default code from here.
2167 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2168 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2169 parameter. Pass it down.
2170 (set_raw_breakpoint): Ditto.
2171 (print_it_catch_fork): Adjust to take a bpstat as argument.
2172 (catch_fork_breakpoint_ops): Install methods.
2173 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2174 (catch_vfork_breakpoint_ops): Install methods.
2175 (dtor_catch_syscall): Call the base dtor.
2176 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2177 (catch_syscall_breakpoint_ops): Install methods.
2178 (dtor_catch_exec): Call the base dtor.
2179 (print_it_catch_exec): Adjust to take a bpstat as argument.
2180 (catch_exec_breakpoint_ops): Install methods.
2181 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2182 the breakpoint's resources_needed method, and remove the default
2183 code from here.
2184 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2185 breakpoint_ops.
2186 (clone_momentary_breakpoint): Clone the original's ops.
2187 (mention): Always call the breakpoint's print_mention method, and
2188 remove the default code from here.
2189 (create_breakpoint_sal): Adjust to pass the ops to
2190 set_raw_breakpoint rather than setting it manually.
2191 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2192 ops to set_raw_breakpoint_without_location rather than setting it
2193 manually.
2194 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2195 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2196 (ranged_breakpoint_ops): Install methods.
2197 (break_range_command): Adjust to pass the ops to
2198 set_raw_breakpoint rather than setting it manually.
2199 (re_set_watchpoint, breakpoint_hit_watchpoint)
2200 (check_status_watchpoint, resources_needed_watchpoint)
2201 (works_in_software_mode_watchpoint, print_it_watchpoint)
2202 (print_mention_watchpoint, print_recreate_watchpoint): New
2203 functions.
2204 (watchpoint_breakpoint_ops): Install new methods.
2205 (print_it_masked_watchpoint): New function.
2206 (masked_watchpoint_breakpoint_ops): Install new methods.
2207 (watch_command_1): Adjust to pass the right breakpoint_ops to
2208 set_raw_breakpoint_without_location rather than setting it
2209 manually later. Record the current pspace.
2210 (print_it_exception_catchpoint): Adjust to take a bpstat as
2211 argument.
2212 (gnu_v3_exception_catchpoint_ops): Install new methods.
2213 (say_where): New function.
2214 (null_re_set, null_check_status, null_works_in_software_mode)
2215 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2216 New functions.
2217 (bp_location_ops): New global.
2218 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2219 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2220 (bkpt_check_status, bkpt_resources_needed)
2221 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2222 (bkpt_print_recreate): New functions.
2223 (bkpt_breakpoint_ops): New global.
2224 (tracepoint_re_set, tracepoint_insert_location)
2225 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2226 (tracepoint_check_status, tracepoint_works_in_software_mode)
2227 (tracepoint_print_it, tracepoint_print_one_detail)
2228 (tracepoint_print_mention, tracepoint_print_recreate): New
2229 functions.
2230 (tracepoint_breakpoint_ops): New global.
2231 (delete_breakpoint): Always call the breakpoint's dtor method, and
2232 remove the default handling from here.
2233 (breakpoint_re_set_default): Make static.
2234 (breakpoint_re_set_one): Always call the breakpoints re_set
2235 method, and remove the default handling from here.
2236 (trace_command, ftrace_command, strace_command)
2237 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2238 to create_breakpoint.
2239 (save_breakpoints): Always call the breakpoint's print_recreate
2240 method, and remove the default handling from here.
2241
2242 * ada-lang.c (dtor_exception): Call the base dtor.
2243 (re_set_exception): Call the base method.
2244 (print_it_exception, print_it_catch_exception): Adjust to take a
2245 bpstat as argument.
2246 (catch_exception_breakpoint_ops): Install methods.
2247 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2248 argument.
2249 (catch_exception_unhandled_breakpoint_ops): Install methods.
2250 (print_it_catch_assert): Adjust to take a bpstat as argument.
2251 (catch_assert_breakpoint_ops): Install methods.
2252
2253 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2254 to take a bpstat as argument.
2255 (enum print_stop_action): Add describing comments to each enum
2256 value.
2257 (breakpoint_re_set_default): Delete declaration.
2258 (null_re_set, null_works_in_software_mode, null_resources_needed)
2259 (null_check_status, null_print_one_detail): Declare.
2260 (bkpt_breakpoint_ops): Declare.
2261 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2262 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2263 (bkpt_check_status, bkpt_resources_needed)
2264 (bkpt_works_in_software_mode, bkpt_print_it)
2265 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2266 Declare.
2267
2268 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2269 bkpt_breakpoint_ops.
2270 * python/py-breakpoint.c (bppy_init): Ditto.
2271
2272 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2273
2274 * MAINTAINERS (Write After Approval): Add myself to the list.
2275
2276 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2277
2278 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2279
2280 2011-07-22 Pedro Alves <pedro@codesourcery.com>
2281
2282 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2283 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2284 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2285 adjust.
2286 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2287 (struct i386_debug_reg_state): New.
2288 (i386_init_dregs): New.
2289 (dr_mirror): New.
2290 (i386_cleanup_dregs): Use i386_init_dregs.
2291 (i386_show_dr): Add state parameter and adjust.
2292 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2293 the inferior here.
2294 (i386_remove_aligned_watchpoint): Likewise.
2295 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2296 (i386_update_inferior_debug_regs): New.
2297 (i386_insert_watchpoint): Work on a local mirror of the debug
2298 registers, and only update the inferior on success.
2299 (i386_remove_watchpoint): Ditto.
2300 (i386_region_ok_for_watchpoint): Adjust.
2301 (i386_stopped_data_address): Adjust.
2302 (i386_insert_hw_breakpoint): Adjust.
2303 (i386_remove_hw_breakpoint): Adjust.
2304
2305 2011-07-22 Tom Tromey <tromey@redhat.com>
2306
2307 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2308 from amd64_pseudo_register_read. Change arguments. Call
2309 mark_value_bytes_unavailable when needed.
2310 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2311 set_gdbarch_pseudo_register_read.
2312 * sentinel-frame.c (sentinel_frame_prev_register): Use
2313 regcache_cooked_read_value.
2314 * regcache.h (regcache_cooked_read_value): Declare.
2315 * regcache.c (regcache_cooked_read_value): New function.
2316 (regcache_cooked_read): Call
2317 gdbarch_pseudo_register_read_value if available.
2318 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2319 (i386_pseudo_register_read): Remove.
2320 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
2321 i386_pseudo_register_read. Change arguments. Call
2322 mark_value_bytes_unavailable when needed.
2323 (i386_pseudo_register_read_value): New function.
2324 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
2325 not set_gdbarch_pseudo_register_read.
2326 * gdbarch.sh (pseudo_register_read_value): New method.
2327 * gdbarch.c, gdbarch.h: Rebuild.
2328 * findvar.c (value_from_register): Call get_frame_register_value.
2329
2330 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
2331
2332 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
2333 get_prefix.
2334 (display_gdb_prompt): Likewise.
2335 (change_annotation_level): Likewise.
2336 (push_prompt): Likewise.
2337 (pop_prompt): Likewise.
2338 (handle_stop_sig): Use get_prompt with a level.
2339 * top.c (command_loop): Use get_prompt with a level.
2340 (set_async_annotation_level): Use set_prompt with a level.
2341 (get_prefix): New function.
2342 (set_prefix): Ditto.
2343 (set_suffix): Ditto.
2344 (get_suffix): Ditto.
2345 (get_prompt): Accept a level argument.
2346 (set_prompt): Accept a level argument. Free old prompts. Set
2347 new_async_prompt if level is 0.
2348 (init_main): Use set_prompt with a level. Do not set
2349 new_async_prompt.
2350 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
2351 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
2352 Modify set_prompt, get_prompt to account for levels.
2353 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
2354 level.
2355 * python/python.c (before_prompt_hook): Use set_prompt.
2356
2357 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
2358
2359 * defs.h: Add guard against inclusion in gdbserver.
2360 (struct ptid, ptid_t): Move to common/ptid.h.
2361 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
2362 xsnprintf, internal_error): Move to common/common-utils.h.
2363 (nomem): Delete.
2364 * gdb_assert.h: Move into common/ sub-directory.
2365 * gdb_locale.h: Ditto.
2366 * gdb_dirent.h: Ditto.
2367 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
2368 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
2369 Move into common/ptid.h.
2370 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
2371 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
2372 Change nomem to malloc_failure.
2373 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
2374 * utils.c (nomem): Rename to malloc_failure.
2375 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
2376 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
2377 (gdb_buildargv): Change nomem to malloc_failure.
2378 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
2379 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2380 ptid_is_pid): Move into common/ptid.c.
2381 (initialize_infrun): Delete initialization of null_ptid and
2382 minus_one_ptid.
2383 * linux-nat.c (linux_nat_xfer_osdata): Defer to
2384 linux_common_xfer_osdata.
2385 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
2386 common/ptid.c and common/buffer.c.
2387 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
2388 common/ptid.h, common/buffer.h and common/linux-osdata.h.
2389 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
2390 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
2391 rules.
2392 * common/gdb_assert.h: New.
2393 * common/gdb_dirent.h: New.
2394 * common/gdb_locale.h: New.
2395 * common/buffer.c: New.
2396 * common/buffer.h: New.
2397 * common/ptid.c: New.
2398 * common/ptid.h: New.
2399 * common/xml-utils.c: New.
2400 * common/xml-utils.h: New.
2401 * common/common-utils.c: New.
2402 * common/common-utils.h: New.
2403 * common/linux-osdata.c: New.
2404 * common/linux-osdata.h: New.
2405 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
2406 * config/arm/linux.mh (NATDEPFILES): Ditto.
2407 * config/i386/linux.mh (NATDEPFILES): Ditto.
2408 * config/i386/linux64.mh (NATDEPFILES): Ditto.
2409 * config/ia64/linux.mh (NATDEPFILES): Ditto.
2410 * config/m32r/linux.mh (NATDEPFILES): Ditto.
2411 * config/m68k/linux.mh (NATDEPFILES): Ditto.
2412 * config/mips/linux.mh (NATDEPFILES): Ditto.
2413 * config/pa/linux.mh (NATDEPFILES): Ditto.
2414 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
2415 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
2416 * config/s390/s390.mh (NATDEPFILES): Ditto.
2417 * config/sparc/linux.mh (NATDEPFILES): Ditto.
2418 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
2419 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
2420
2421 2011-07-21 Matt Rice <ratmice@gmail.com>
2422
2423 * NEWS: Add info macros and info definitions commands.
2424
2425 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2426
2427 * NEWS: Document Python prompt substitution hook.
2428
2429 2011-07-18 Matt Rice <ratmice@gmail.com>
2430
2431 PR macros/12999
2432 * macrotab.h (macro_callback_fn): Add new arguments to callback.
2433 * macrotab.c (foreach_macro): Ditto.
2434 (foreach_macro_in_scope): Ditto.
2435 * macrocmd.c (print_macro_callback): New function.
2436 (info_macro_command): Move some code to print_macro_definition.
2437 (print_macro_definition): New function.
2438 (print_one_macro): Add new arguments to callback.
2439 (info_definitions_command): New function.
2440 (info_macros_command): Ditto.
2441 (_initialize_macrocmd): Add info macros and info definitions commands.
2442 * symtab.c (add_macro_name): Add new arguments to callback.
2443
2444 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
2445 Tom Tromey <tromey@redhat.com>
2446
2447 * top.c (set_prompt): Rewrite to free previous prompt, free
2448 asynch_new_prompt and set both on new prompts.
2449 * event-top.c (display_gdb_prompt): Add prompt substitution
2450 logic.
2451 * python/python.c (before_prompt_hook): New function.
2452
2453 2011-07-20 Matt Rice <ratmice@gmail.com>
2454
2455 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
2456 arguments to store_unsigned_integer.
2457
2458 2011-07-20 Tom Tromey <tromey@redhat.com>
2459
2460 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
2461 in some declaration-only cases.
2462
2463 2011-07-18 Tom Tromey <tromey@redhat.com>
2464
2465 PR symtab/12984:
2466 * dwarf2read.c (dwarf2_section_info_def): New typedef.
2467 (struct dwarf2_per_objfile) <types>: Change to a VEC.
2468 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
2469 <debug_type_section>: New field.
2470 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
2471 (load_cu): Use appropriate section.
2472 (create_signatured_type_table_from_index): Add 'section'
2473 argument.
2474 (dwarf2_read_index): Only allow a single .debug_types section.
2475 (dw2_get_file_names): Use appropriate section.
2476 (read_type_comp_unit_head): Add 'section' argument.
2477 (create_debug_types_hash_table): Loop over all .debug_types
2478 sections.
2479 (init_cu_die_reader): Use appropriate section.
2480 (process_psymtab_comp_unit, load_partial_comp_unit)
2481 (load_full_comp_unit, read_die_and_children, find_partial_die)
2482 (lookup_die_type, determine_prefix, follow_die_offset): Update.
2483 (lookup_signatured_type_at_offset): Add 'section' argument.
2484 (read_signatured_type_at_offset): Add 'sect' argument.
2485 (read_signatured_type): Use appropriate section.
2486 (set_die_type, get_die_type_at_offset): Update.
2487 (dwarf2_per_objfile_free): Free all .debug_types sections, and
2488 VEC.
2489 (write_psymtabs_to_index): Don't allow index with more than one
2490 .debug_types section.
2491
2492 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2493
2494 Fix crash if referenced CU is aged out.
2495 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2496 xfree of block.data.
2497 (indirect_pieced_value): New variable back_to, use to for xfree of
2498 baton.data.
2499 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2500 block.data.
2501 * dwarf2read.c (dwarf2_find_base_address): New prototype.
2502 (load_cu): New function from ...
2503 (dw2_do_instantiate_symtab): ... the code here ...
2504 (process_full_comp_unit): ... and here.
2505 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
2506 retval.data.
2507
2508 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2511 type.
2512
2513 2011-07-19 Gary Benson <gbenson@redhat.com>
2514
2515 * infrun.c (struct execution_control_state): New member
2516 stop_func_filled_in.
2517 (clear_stop_func, fill_in_stop_func): New functions.
2518 (handle_inferior_event): Call clear_stop_func rather than
2519 manipulating the execution control state directly.
2520 Call fill_in_stop_func lazily as required rather than
2521 directly calling find_pc_partial_function in all cases.
2522
2523 2011-07-18 Tom Tromey <tromey@redhat.com>
2524
2525 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2526 checking for variable-sized array.
2527
2528 2011-07-18 Jean-Charles Delay <delay@adacore.com>
2529
2530 * varobj.h (varobj_languages): Add vlang_ada definition to the list
2531 of supported languages.
2532 * varobj.c: Add top definitions and basic implementation of the
2533 following callbacks: ada_number_of_children, ada_name_of_variable,
2534 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2535 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2536 (languages): Register Ada-specific callbacks.
2537 (variable_language): Add the Ada case in the language setter switch.
2538
2539 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2540
2541 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2542
2543 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 Code cleanup.
2546 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2547 (execute_stack_op): Use dwarf2_frame_ctx_funcs
2548 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2549 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2550 get_frame_cfa, get_tls_address and dwarf_call via funcs.
2551 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2552 (struct dwarf_expr_context_funcs): New, move here methods from ...
2553 (struct dwarf_expr_context): ... here. New fields funcs.
2554 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2555 (dwarf_expr_ctx_funcs): New.
2556 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2557 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2558 (needs_frame_ctx_funcs): New.
2559 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2560
2561 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2562
2563 * MAINTAINERS (Write After Approval): Add myself to the list.
2564
2565 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2566
2567 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2568 that CIE pointer of an FDE really points to a CIE .
2569
2570 2011-07-15 Hui Zhu <teawater@gmail.com>
2571
2572 * remote.c (remote_get_trace_status): Add comments.
2573
2574 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 Code cleanup - constify struct lval_funcs.
2577 * dwarf2loc.c (pieced_value_funcs): Make it const.
2578 * infrun.c (siginfo_value_funcs): Likewise.
2579 * opencl-lang.c (opencl_value_funcs): Likewise.
2580 * valops.c (value_assign, value_ind): Make the funcs variable const.
2581 * value.c (struct value): Make location.computed.funcs target const.
2582 Rearrange the comments.
2583 (allocate_computed_value): Make the funcs parameter target const.
2584 (value_computed_funcs): Return the funcs target const.
2585 (value_free, value_copy, set_value_component_location): Make the funcs
2586 variable const.
2587 * value.h (allocate_computed_value): Make the funcs parameter target
2588 const.
2589 (value_computed_funcs): Return the funcs target const.
2590 * windows-tdep.c (tlb_value_funcs): Make it const.
2591
2592 2011-07-14 Hui Zhu <teawater@gmail.com>
2593
2594 * remote.c (remote_get_trace_status): Initialize p.
2595
2596 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2597
2598 Work around kgdb.
2599 * remote.c (remote_get_trace_status): New variable ex. Put
2600 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2601
2602 2011-07-13 Tom Tromey <tromey@redhat.com>
2603
2604 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2605 value_from_contents for final conversion.
2606
2607 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2608
2609 Code cleanup.
2610 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2611 Indent prototypes so they do not get into tags.
2612
2613 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 Code cleanup making also optimized out values lazy.
2616 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2617 allocate_optimized_out_value. Twice.
2618 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2619 * findvar.c (read_var_value): Likewise.
2620 * value.c (allocate_optimized_out_value): New function.
2621 * value.h (allocate_optimized_out_value): New declaration.
2622
2623 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 Fix occasional crash of CTRL-C during DWARF read in.
2626 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2627
2628 2011-07-11 Tom Tromey <tromey@redhat.com>
2629
2630 * regcache.c (struct regcache_descr): Fix typo.
2631 * i387-tdep.c (i387_supply_xsave): Fix typo.
2632
2633 2011-07-11 Tom Tromey <tromey@redhat.com>
2634
2635 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2636 (read_file_scope, read_type_unit_scope): Use it.
2637
2638 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2639
2640 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2641 `int'.
2642
2643 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2644
2645 PR python/12438
2646 * python/python.c: Set gdbpy_should_print_stack default to off.
2647 (set_python): Deprecate maint set python print-stack to
2648 class_deprecate.
2649 (_initialize_python): Deprecate maint set/show python print-stack.
2650 Add new prefix command, python. Add new setting, print-backtrace.
2651 * NEWS: Document set python print-stack. Document default change.
2652
2653 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2654
2655 * python/py-inferior.c (infpy_dealloc): New function.
2656 (inferior_to_inferior_object): Return a new object, or a
2657 new reference to the existing object.
2658 (find_thread_object): Cleanup references to inferior.
2659 (delete_thread_object): Ditto.
2660 * python/py-infthread.c (create_thread_object): Do not increment
2661 inferior reference count.
2662
2663 2011-07-08 Tom Tromey <tromey@redhat.com>
2664
2665 * dwarf2loc.c (locexpr_regname): New function.
2666 (locexpr_describe_location_piece): Use it.
2667 (disassemble_dwarf_expression): Add per_cu argument. Use
2668 locexpr_regname.
2669 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2670 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2671 New cases.
2672 (locexpr_describe_location_1): Add per_cu argument.
2673 (locexpr_describe_location): Update.
2674 (loclist_describe_location): Update.
2675
2676 2011-07-08 Tom Tromey <tromey@redhat.com>
2677
2678 * dwarf2expr.c (execute_stack_op): Add QUIT.
2679
2680 2011-07-07 Hui Zhu <teawater@gmail.com>
2681
2682 Revert:
2683 2011-07-06 Hui Zhu <teawater@gmail.com>
2684 * remote.c (remote_start_remote): Add TRY_CATCH for
2685 remote_get_trace_status.
2686 * tracepoint.c (disconnect_tracing): Ditto.
2687
2688 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2689
2690 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2691 variables as signed, not unsigned.
2692
2693 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2694
2695 * jit.c (jit_inferior_init): Reformat forward declaration.
2696
2697 2011-07-06 Matt Rice <ratmice@gmail.com>
2698
2699 * MAINTAINERS (Write After Approval): Add myself to the list.
2700
2701 2011-07-06 Hui Zhu <teawater@gmail.com>
2702
2703 * remote.c (remote_start_remote): Add TRY_CATCH for
2704 remote_get_trace_status.
2705 * tracepoint.c (disconnect_tracing): Ditto.
2706
2707 2011-07-05 Tom Tromey <tromey@redhat.com>
2708
2709 * symtab.c (operator_chars): Now static.
2710 * linespec.c (operator_chars): Don't declare.
2711
2712 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2713
2714 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2715
2716 2011-07-05 Tom Tromey <tromey@redhat.com>
2717
2718 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2719 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2720 (TYPE_CPLUS_REALLY_JAVA): New macro.
2721 * dwarf2read.c (process_structure_scope): Set
2722 TYPE_CPLUS_REALLY_JAVA.
2723
2724 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2725
2726 * ada-lang.c: Fix typos.
2727 * amd64-tdep.c: Likewise.
2728 * breakpoint.c: Likewise.
2729 * cli/cli-decode.c: Likewise.
2730 * findcmd.c: Likewise.
2731 * inline-frame.c: Likewise.
2732 * mi/mi-main.c: Likewise.
2733 * minsyms.c: Likewise.
2734 * monitor.c: Likewise.
2735 * monitor.h: Likewise.
2736 * prologue-value.c: Likewise.
2737 * reverse.c: Likewise.
2738 * s390-tdep.c: Likewise.
2739
2740 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2741
2742 * jit.c (jit_inferior_init): Forward declare.
2743 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2744
2745 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2746
2747 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2748
2749 2011-07-04 Tristan Gingold <gingold@adacore.com>
2750
2751 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2752 (tcb_fieldno): Add activation_link field.
2753 (get_known_tasks_addr): Moved and rewritten.
2754 (get_tcb_types_info): Set activation_link field.
2755 (read_known_tasks_array): Add parameter. Rewritten.
2756 (read_known_tasks_list): New function.
2757 (read_known_tasks): New function.
2758 (ada_build_task_list): Call read_known_tasks instead of
2759 read_known_tasks_array.
2760 * ravenscar-thread.c: Add first_task_name constant.
2761 (has_ravenscar_runtime): Check for task list too.
2762
2763 2011-07-04 Tristan Gingold <gingold@adacore.com>
2764
2765 * ada-tasks.c: Renames fieldno to actb_fieldno.
2766 (ada_get_task_number): Indentation.
2767 (get_tcb_types_info): Remove all parameters. Write directly
2768 the globals.
2769 (ptid_from_atcb_common): Adjust.
2770 (read_atcb): Adjust.
2771
2772 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2773
2774 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2775
2776 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2777
2778 * ui-out.c (ui_out_field_core_addr): Mention that the function
2779 description is in the header file.
2780 * ui-out.h (ui_out_field_core_addr): Document function.
2781
2782 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2783
2784 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2785 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2786
2787 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2788
2789 * symtab.c (expand_line_sal): Remove empty line.
2790
2791 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2792
2793 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2794 same way as ELFOSABI_NONE.
2795 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2796
2797 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2798
2799 * breakpoint.c: Fix typos in comments.
2800 * linespec.c: Likewise.
2801 * symtab.c: Likewise.
2802
2803 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2804
2805 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2806 section in separate object files.
2807
2808 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2809
2810 Fix false GCC warning.
2811 * linespec.c (decode_line_1): Initialize values.
2812
2813 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2814
2815 * linespec.c (find_method): Accept the function type automatically only
2816 if it was specified with parameter types.
2817
2818 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 Stop on first linespec terminator instead of eating what we can.
2821 * linespec.c (is_linespec_boundary): New function.
2822 (name_end): Remove function.
2823 (keep_name_info): New parameter on_boundary, replace the body.
2824 (decode_line_1): Provide the parameter to keep_name_info.
2825 (decode_compound): Likewise. Drop the trailing java return type
2826 handling. Twice.
2827
2828 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2829
2830 Fall back linespec to minimal symbols.
2831 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2832 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2833 (find_method, symbol_found): Change error to cplusplus_error.
2834
2835 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2836
2837 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2838
2839 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2840 Tom Tromey <tromey@redhat.com>
2841
2842 * dwarf2read.c (check_physname): New variable.
2843 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2844 (show_check_physname): New function.
2845 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2846
2847 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2848
2849 * machoread.c (macho_symfile_read): Delete OBE comment.
2850
2851 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2852
2853 * machoread.c (struct macho_oso_data): Delete.
2854 (current_oso): Delete.
2855 (macho_relocate_common_syms): New function, mostly extracted
2856 out of
2857 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2858 Remove code that sets and unset current_oso.
2859 (macho_symfile_relocate): Delete handling of common symbols,
2860 now moved to macho_relocate_common_syms.
2861
2862 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2863
2864 * darwin-nat.c (darwin_ptrace): Add documentation.
2865 Set errno to zero before calling ptrace. If ptrace returns
2866 -1 and errno is zero, then change then return zero.
2867 (darwin_kill_inferior): Issue a warning instead of triggering
2868 a failed assertion when the PT_KILL ptrace operations returned
2869 nonzero.
2870
2871 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2872
2873 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2874 only when inf->private->no_ptrace.
2875
2876 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2877
2878 * ada-lang.c (print_it_exception): Print temporary catchpoints
2879 as "Temporary catchpoint".
2880 (print_mention_exception): Likewise.
2881
2882 2011-07-01 Tom Tromey <tromey@redhat.com>
2883
2884 * jv-lang.c (java_language_defn): Use java_printchar,
2885 java_printstr.
2886 (java_get_encoding): New function.
2887 (java_emit_char): Use generic_emit_char.
2888 (java_printchar): New function.
2889 (java_printstr): Likewise.
2890
2891 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2892
2893 * ada-typeprint.c (print_record_type): If unable to decode
2894 the name of the parent type, use the encoded name.
2895
2896 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2897
2898 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2899 pointer to constrained packed array type output.
2900 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2901 packed array output.
2902
2903 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2904
2905 * ada-typeprint.c (print_array_type): removed if condition on show
2906 being negative for bounds printing.
2907
2908 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2909
2910 * ada-lang.c (ada_identical_enum_types_p): New function.
2911 (symbols_are_identical_enums): New function.
2912 (remove_extra_symbols): Do nothing if NSYMS < 2.
2913 Use symbols_are_identical_enums.
2914
2915 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2916
2917 * ada-valprint.c (ada_value_print): Handle typedefs.
2918
2919 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2920
2921 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2922
2923 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2924
2925 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2926 (decode_constrained_packed_array): Likewise.
2927 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2928
2929 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2930
2931 * ada-exp.y (convert_char_literal): Handle typedef types.
2932
2933 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2934
2935 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2936
2937 2011-06-30 Tom Tromey <tromey@redhat.com>
2938
2939 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2940 * valops.c (find_overload_match): Call do_cleanups on early exit
2941 path.
2942 * solib.c (solib_find): Call do_cleanups on early exit path.
2943
2944 2011-06-30 Tom Tromey <tromey@redhat.com>
2945
2946 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2947 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2948 return paths. Defer final do_cleanups until last return.
2949 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2950 early return.
2951
2952 2011-06-30 Tom Tromey <tromey@redhat.com>
2953
2954 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2955
2956 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2957
2958 * MAINTAINERS (Write After Approval): Add myself to the list.
2959
2960 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 Disable epilogue unwinders on recent GCCs.
2963 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2964 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2965 * dwarf2read.c (process_full_comp_unit): Initialize
2966 EPILOGUE_UNWIND_VALID.
2967 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2968 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2969 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2970
2971 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2972
2973 Code cleanup - reformatting.
2974 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2975 (producer_is_gcc_ge_4): ... here, change the return value.
2976 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2977 interpretation.
2978
2979 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2980
2981 Fix non-only rename list for Fortran modules import.
2982 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2983 cp_add_using_directive caller.
2984 (cp_add_using_directive): New parameter excludes, describe it. New
2985 variables ix and param. Compare if also excludes match. Allocate NEW
2986 with variable size, initialize EXCLUDES there.
2987 (cp_lookup_symbol_imports): New variable excludep, test
2988 current->EXCLUDES with it.
2989 * cp-support.h: Include vec.h.
2990 (struct using_direct): New field excludes, describe it.
2991 (DEF_VEC_P (const_char_ptr)): New.
2992 (cp_add_using_directive): New parameter excludes.
2993 * defs.h (const_char_ptr): New typedef.
2994 * dwarf2read.c (read_import_statement): New variables child_die,
2995 excludes and cleanups, read in excludes.
2996 (read_namespace): Adjust the cp_add_using_directive caller.
2997
2998 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2999
3000 Code cleanup.
3001 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3002 negative comparisons.
3003
3004 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
3005
3006 * mi/mi-main.c (mi_cmd_list_features): Emit
3007 breakpoint-notifications.
3008
3009 2011-06-29 Tom Tromey <tromey@redhat.com>
3010
3011 PR fortran/10036:
3012 * valprint.h (generic_emit_char, generic_printstr): Declare.
3013 * valprint.c (wchar_printable, append_string_as_wide)
3014 (print_wchar): Move from c-lang.c.
3015 (generic_emit_char): New function; mostly taken from c_emit_char.
3016 (generic_printstr): New function; mostly taken from c_printstr.
3017 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3018 represented as arrays.
3019 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3020 type.
3021 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3022 identically to TYPE_CODE_INT.
3023 * f-lang.c (f_get_encoding): New function.
3024 (f_emit_char): Use generic_emit_char.
3025 (f_printchar): Replace comment.
3026 (f_printstr): Use generic_printstr.
3027 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3028 "character" types specially.
3029 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3030 for Fortran.
3031 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3032 Move to valprint.c
3033 (c_emit_char): Call generic_emit_char.
3034 (c_printstr): Call generic_printstr.
3035
3036 2011-06-29 Gary Benson <gbenson@redhat.com>
3037
3038 * breakpoint.c (bpstat_what): Removed duplicated case.
3039
3040 2011-06-28 Tom Tromey <tromey@redhat.com>
3041
3042 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3043
3044 2011-06-27 Tom Tromey <tromey@redhat.com>
3045
3046 * valops.c (find_overload_match): Call do_cleanups before early
3047 return.
3048 * top.c (execute_command): Call do_cleanups before early return.
3049 (command_loop): Likewise.
3050 * stack.c (backtrace_command): Make a null cleanup early. Don't
3051 conditionally call do_cleanups.
3052 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3053 TRY_CATCH.
3054 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3055 so cleanups are always run.
3056 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3057 * findcmd.c (parse_find_args): Call do_cleanups on early return
3058 path.
3059 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3060 Don't conditionally call do_cleanups.
3061 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3062 later.
3063
3064 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3065
3066 * MAINTAINERS (Write After Approval): Use default email address.
3067
3068 2011-06-27 Joel Brobecker <brobecker@adacore.com>
3069
3070 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3071
3072 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3073
3074 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3075 saved_regs_mask and copied_regs_mask fields.
3076 (sparc_record_save_insn): New prototype.
3077 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3078 (sparc_record_save_insn): New function.
3079 (sparc_analyze_prologue): Add head comment. Recognize store insns
3080 of call-saved registers. Use OFFSET consistently. Recognize flat
3081 frames and cache their settings.
3082 (sparc32_skip_prologue): Handle flat frames.
3083 (sparc_frame_cache): Add frame_offset to the base address.
3084 (sparc32_frame_cache): Adjust to new frame description.
3085 (sparc32_frame_prev_register): Likewise.
3086 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3087 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3088 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3089 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3090 frame by calling sparc_record_save_insn.
3091 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3092 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3093 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3094
3095 2011-06-27 Tristan Gingold <gingold@adacore.com>
3096
3097 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3098 field by map_addr and map_len.
3099 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3100 (munmap_section_buffer): Likewise.
3101
3102 2011-06-24 Tom Tromey <tromey@redhat.com>
3103
3104 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3105 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3106 * python/python.c (gdbpy_parameter): Make 'arg' const.
3107 (execute_gdb_command): Likewise.
3108 (gdbpy_decode_line): Likewise. Copy it.
3109 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3110 (gdbpy_write): Make 'arg' const.
3111 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3112 const.
3113 (gdbpy_lookup_type): Likewise.
3114 * python/py-prettyprint.c (print_children): Make 'name' const.
3115 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3116 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3117 Py_ssize_t.
3118 * python/py-function.c (fnpy_init): Make 'name' const.
3119 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3120 (gdbpy_string_to_argv): Make 'input' const.
3121 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3122 it.
3123 * gdbtypes.h (lookup_typename): Update.
3124 * gdbtypes.c (lookup_typename): Make 'name' const.
3125 (lookup_struct): Likewise.
3126 (lookup_union): Likewise.
3127 (lookup_enum): Likewise.
3128
3129 2011-06-24 Tom Tromey <tromey@redhat.com>
3130
3131 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3132 gdb_thread_db.h. Move all common/ entries to be together.
3133 (TAGS): Don't depend on DEPFILES.
3134
3135 2011-06-23 Yao Qi <yao@codesourcery.com>
3136
3137 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3138 * remote.c (remote_start_remote): ... here.
3139 * monitor.c (monitor_open): ... here.
3140
3141 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
3142
3143 * gdbtypes.c (append_composite_type_field_aligned): Fix
3144 calculation of bit position based on alignment.
3145
3146 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3147
3148 * breakpoint.c (bpstat_stop_status): Call the check_status
3149 breakpoint_ops method.
3150 (print_one_breakpoint_location): Also print the condition for Ada
3151 exception catchpoints.
3152 (allocate_bp_location): New, factored out from
3153 allocate_bp_location.
3154 (allocate_bp_location): Adjust. Call the owner breakpoint's
3155 allocate_location method, if there is one.
3156 (free_bp_location): Call the locations's dtor method, if there is
3157 one.
3158 (init_raw_breakpoint_without_location): New breakpoint_ops
3159 parameter. Use it.
3160 (set_raw_breakpoint_without_location): Adjust.
3161 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3162 (set_raw_breakpoint): Adjust.
3163 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3164 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3165 re_set and check_status methods.
3166 (init_catchpoint): Don't memset, initialize thread, addr_string
3167 and enable_state. Pass the ops down to init_raw_breakpoint.
3168 (install_catchpoint): Rename to ...
3169 (install_breakpoint): ... this, and make extern.
3170 (create_fork_vfork_event_catchpoint): Adjust.
3171 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3172 re_set and check_status methods.
3173 (create_syscall_event_catchpoint): Adjust.
3174 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3175 (masked_watchpoint_breakpoint_ops): Install NULL
3176 allocate_location, re_set and check_status methods.
3177 (catch_exec_command_1): Adjust.
3178 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3179 re_set and check_status methods.
3180 (create_ada_exception_breakpoint): Rename to ...
3181 (init_ada_exception_breakpoint): ... this. Add a struct
3182 breakpoint parameter, and delete the exp_string, cond_string and
3183 cond parameters. Use init_raw_breakpoint, and don't install or
3184 mention the breakpoint yet. Don't clear breakpoint fields that
3185 init_raw_breakpoint already clears.
3186 (re_set_breakpoint): Delete, split into ...
3187 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3188 functions.
3189 (breakpoint_re_set_one): Call the breakpoint's
3190 breakpoint_ops->re_set implementation, if there's one. Adjust.
3191 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3192 (struct bp_location_ops): New type.
3193 (struct bp_location): New field `ops'.
3194 (struct breakpoint_ops): New `allocate_location', `re_set' and
3195 `check_status' fields. Make `breakpoint_hit''s description match
3196 reality.
3197 (init_bp_location): Declare.
3198 (breakpoint_re_set_default): Declare.
3199 (create_ada_exception_breakpoint): Rename to ...
3200 (init_ada_exception_breakpoint): ... this. Add a struct
3201 breakpoint parameter, and delete the exp_string, cond_string and
3202 cond parameters.
3203 (install_breakpoint): Declare.
3204 * ada-lang.c: Include exceptions.h.
3205 <Ada exceptions description>: Update.
3206 (struct ada_catchpoint_location): New type.
3207 (ada_catchpoint_location_dtor): New function.
3208 (ada_catchpoint_location_ops): New global.
3209 (ada_catchpoint): New type.
3210 (create_excep_cond_exprs): New function.
3211 (dtor_exception, allocate_location_exception, re_set_exception)
3212 (should_stop_exception, check_status_exception): New functions.
3213 (print_one_exception, print_mention_exception)
3214 (print_recreate_exception): Adjust.
3215 (dtor_catch_exception, allocate_location_catch_exception)
3216 (re_set_catch_exception, check_status_catch_exception): New
3217 functions.
3218 (catch_exception_breakpoint_ops): Install them.
3219 (dtor_catch_exception_unhandled)
3220 (allocate_location_catch_exception_unhandled)
3221 (re_set_catch_exception_unhandled)
3222 (check_status_catch_exception_unhandled): New functions.
3223 (catch_exception_unhandled_breakpoint_ops): Install them.
3224 (dtor_catch_assert, allocate_location_catch_assert)
3225 (re_set_catch_assert, check_status_catch_assert): New functions.
3226 (catch_assert_breakpoint_ops): Install them.
3227 (ada_exception_catchpoint_p): Delete.
3228 (catch_ada_exception_command_split)
3229 (ada_exception_catchpoint_cond_string): Rename exp_string
3230 parameter to excep_string. Adjust.
3231 (ada_parse_catchpoint_condition): Delete.
3232 (ada_exception_sal): Rename the exp_string parameter to
3233 excep_string. Delete the cond_string and cond parameters.
3234 Adjust.
3235 (ada_decode_exception_location): Rename the exp_string parameter
3236 to excep_string. Delete the cond_string and cond parameters.
3237 Adjust.
3238 (create_ada_exception_catchpoint): New function.
3239 (catch_ada_exception_command, ada_decode_assert_location)
3240 (catch_assert_command): Adjust.
3241 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3242
3243 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3244
3245 * ada-lang.c: Include arch-utils.h.
3246 (ada_decode_exception_location): Make static.
3247 (catch_ada_exception_command): Moved here from breakpoint.c.
3248 (ada_decode_assert_location): Make static.
3249 (catch_assert_command): Moved here from breakpoint.c.
3250 (_initialize_ada_lang): Install the exception and assert
3251 catchpoint commands here.
3252 * ada-lang.h (ada_decode_exception_location)
3253 (ada_decode_assert_location): Delete declarations.
3254 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3255 breakpoint.h.
3256 (create_ada_exception_breakpoint): Make extern.
3257 (catch_ada_exception_command, catch_assert_command): Moved to
3258 ada-lang.c.
3259 (add_catch_command): Make extern.
3260 (_initilize_breakpoint): Don't install the exception and assert
3261 catchpoint commands here.
3262 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3263 breakpoint.c
3264 (add_catch_command, create_ada_exception_breakpoint): Declare.
3265
3266 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3267
3268 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3269 the breakpoint to the breakpoint chain here.
3270 (set_raw_breakpoint_without_location): Add the breakpoint to the
3271 breakpoint chain here.
3272 (init_raw_breakpoint): Adjust comments.
3273 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3274 here.
3275 (init_catchpoint): Don't set the catchpoint's breakpoint number
3276 here.
3277 (install_catchpoint): New function.
3278 (create_fork_vfork_event_catchpoint)
3279 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3280 use install_catchpoint.
3281
3282 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3283
3284 * breakpoint.c (create_catchpoint_without_mention)
3285 (create_catchpoint): Delete.
3286
3287 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3288
3289 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3290 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3291 reference to exec_pathname.
3292 (struct exec_catchpoint): New type.
3293 (dtor_catch_exec): New function.
3294 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3295 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3296 (catch_exec_command_1): Adjust to use init_catchpoint.
3297 (delete_breakpoint): Remove reference to exec_pathname.
3298
3299 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3300
3301 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3302 (struct breakpoint): Delete field `syscalls_to_be_caught'.
3303 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3304 reference to syscalls_to_be_caught.
3305 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3306 NULL `dtor'.
3307 (struct syscall_catchpoint): New type.
3308 (dtor_catch_syscall): New function.
3309 (insert_catch_syscall, remove_catch_syscall)
3310 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3311 (print_recreate_catch_syscall): Adjust.
3312 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3313 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3314 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3315 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3316 (masked_watchpoint_breakpoint_ops)
3317 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3318 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3319 there is one. Remove references to syscalls_to_be_caught.
3320 (catching_syscall_number): Adjust.
3321 * ada-lang.c (catch_exception_breakpoint_ops)
3322 (catch_exception_unhandled_breakpoint_ops)
3323 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
3324
3325 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3326
3327 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
3328 field.
3329 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3330 reference to forked_inferior_pid.
3331 (struct fork_catchpoint): New type.
3332 (breakpoint_hit_catch_fork, print_it_catch_fork)
3333 (print_one_catch_fork, breakpoint_hit_catch_vfork)
3334 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
3335 (create_fork_vfork_event_catchpoint): Adjust to use
3336 init_catchpoint.
3337
3338 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3339
3340 * breakpoint.c (add_to_breakpoint_chain)
3341 (init_raw_breakpoint_without_location): New functions, factored
3342 out from ...
3343 (set_raw_breakpoint_without_location): ... this one.
3344 (init_raw_breakpoint): New function, factored out from
3345 set_raw_breakpoint and adjusted to use
3346 init_raw_breakpoint_without_location.
3347 (set_raw_breakpoint): Adjust.
3348 (init_catchpoint): New function, factored out from
3349 create_catchpoint_without_mention and adjusted to use
3350 init_raw_breakpoint.
3351 (create_catchpoint_without_mention): Adjust.
3352
3353 2011-06-22 Tom Tromey <tromey@redhat.com>
3354
3355 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
3356 argument of 0 specially.
3357
3358 2011-06-22 Yao Qi <yao@codesourcery.com>
3359
3360 * infrun.c (handle_inferior_event): Remove write-only local variable
3361 `sw_single_step_trap_p'.
3362
3363 2011-06-20 Tom Tromey <tromey@redhat.com>
3364
3365 * symtab.c (lookup_language_this): End loop if block is NULL.
3366
3367 2011-06-17 Tom Tromey <tromey@redhat.com>
3368
3369 * valops.c (value_of_this): Use lookup_language_this.
3370 * symtab.h (lookup_language_this): Declare.
3371 * symtab.c (lookup_language_this): New function.
3372 (lookup_symbol_aux): Use lookup_language_this.
3373 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
3374
3375 2011-06-17 Tom Tromey <tromey@redhat.com>
3376
3377 * value.h (value_of_this): Update.
3378 (value_of_local): Remove.
3379 * valops.c (value_of_this): Rename from value_of_local. Change
3380 parameters.
3381 * p-exp.y (exp): Update.
3382 (variable): Likewise.
3383 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
3384
3385 2011-06-17 Tom Tromey <tromey@redhat.com>
3386
3387 * valops.c (value_of_local): Complain if NAME is NULL.
3388 * std-operator.def (OP_OBJC_SELF): Remove.
3389 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
3390 * objc-exp.y (name_not_typename): Use OP_THIS.
3391 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
3392 name for "this".
3393 <OP_OBJC_SELF>: Remove.
3394 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
3395
3396 2011-06-16 Tristan Gingold <gingold@adacore.com>
3397
3398 * python/py-events.h (gdb_py_events): Make it extern.
3399 * python/py-evtregistry.c (gdb_py_events): Declare.
3400
3401 2011-06-16 Hui Zhu <teawater@gmail.com>
3402
3403 * remote.c (remote_trace_set_readonly_regions): Add check for
3404 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
3405 output warning.
3406
3407 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3408
3409 * arm-linux-tdep.c: Include "auxv.h".
3410 (AT_HWCAP): Define.
3411 (ARM_LINUX_SIZEOF_VFP): Define.
3412 (arm_linux_supply_vfp): New function.
3413 (arm_linux_collect_vfp): Likewise.
3414 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
3415 (arm_linux_fpa_regset_sections): New variable.
3416 (arm_linux_vfp_regset_sections): Likewise.
3417 (arm_linux_core_read_description): New function.
3418 (arm_linux_init_abi): Install arm_linux_core_read_description and
3419 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
3420 appropriate for the architecture.
3421 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
3422 (tdesc_arm_with_m): Declare.
3423 (tdesc_arm_with_iwmmxt): Likewise.
3424 (tdesc_arm_with_vfpv2): Likewise.
3425 (tdesc_arm_with_vfpv3): Likewise.
3426 (tdesc_arm_with_neon): Likewise.
3427 * arm-linux-nat.c: Move features/*.c includes ...
3428 * arm-tdep.c: ... here.
3429 * arm-linux-nat.c (arm_linux_read_description): Move initializing
3430 target description data structures ...
3431 * arm-tdep.c (_initialize_arm_tdep): ... here.
3432 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
3433 HWCAP_VFPv3D16): Move definitions ...
3434 * arm-linux-tdep.h: ... here.
3435
3436 2011-06-15 Hui Zhu <teawater@gmail.com>
3437
3438 * remote.c (remote_trace_set_readonly_regions): Add a check for
3439 target_buf_size.
3440
3441 2011-06-14 Tom Tromey <tromey@redhat.com>
3442
3443 * coffread.c (coffread_objfile): Rename from current_objfile.
3444 * dbxread.c (dbxread_objfile): Rename from current_objfile.
3445 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
3446
3447 2011-06-14 Tom Tromey <tromey@redhat.com>
3448
3449 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
3450 (class_symtab): Remove.
3451 (jv_dynamics_progspace_key): New global.
3452 (jv_per_objfile_free): Reset program space data. Update assert.
3453 Don't clear globals.
3454 (get_dynamics_objfile): Use and set program space data.
3455 (get_java_class_symtab): Use get_dynamics_objfile.
3456 (add_class_symbol): Likewise.
3457 (java_link_class_type): Likewise.
3458 (java_object_type, jv_clear_object_type, set_java_object_type):
3459 Remove.
3460 (get_java_object_type): Update. Don't cache result.
3461 (is_object_type): Don't call set_java_object_type.
3462 (_initialize_java_language): Don't set jv_type_objfile_data_key;
3463 initialize jv_dynamics_progspace_key.
3464
3465 2011-06-14 Tom Tromey <tromey@redhat.com>
3466
3467 * symtab.h (current_objfile): Don't declare.
3468 * objfiles.h (current_objfile): Don't declare.
3469 * objfiles.c (current_objfile): Remove.
3470 * mdebugread.c (current_objfile): New file-scope global.
3471 * dbxread.c (current_objfile): New file-scope global.
3472 * coffread.c (current_objfile): New file-scope global.
3473
3474 2011-06-13 Pedro Alves <pedro@codesourcery.com>
3475
3476 * top.h (line): Rename to ...
3477 (saved_command_line): ... this.
3478 (linesize): Rename to ...
3479 (saved_command_line_size): ... this.
3480 * top.c (line): Rename to ...
3481 (saved_command_line): ... this.
3482 (linesize): Rename to ...
3483 (saved_command_line_size): ... this.
3484 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
3485 * event-top.c (command_line_handler): Adjust.
3486 * main.c (captured_main): Adjust.
3487
3488 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3489
3490 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
3491 get_frame_func instead of get_frame_pc to determine the code
3492 address used to construct the frame ID.
3493 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
3494 (i386_epilogue_frame_this_id): Likewise.
3495 (i386_epilogue_frame_prev_register): New function.
3496 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3497 (i386_stack_tramp_frame_sniffer): Fix coding style.
3498 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3499 (i386_gdbarch_init): Fix comments.
3500
3501 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3502
3503 * i386-tdep.c (i386_match_insn_block): Use length of the proper
3504 instruction when walking back through the instruction stream.
3505
3506 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 * symtab.c (output_partial_symbol_filename): Exchange the filename and
3509 fullname parameters order.
3510
3511 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 Code cleanup.
3514 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3515 for fun.
3516 * psymtab.c (map_symbol_filenames_psymtab)
3517 (map_partial_symbol_filenames): Likewise.
3518 * psymtab.h: Include symfile.h.
3519 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3520 * symfile.h (symbol_filename_ftype): New.
3521 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3522 map_symbol_filenames, clarify more the naming in comment.
3523
3524 2011-06-07 Doug Evans <dje@google.com>
3525
3526 * cc-with-index.sh: Fix typos in comment.
3527 Look for ../../gdb, for fullname.exp.
3528
3529 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3530 Pedro Alves <pedro@codesourcery.com>
3531
3532 * cli/cli-cmds.c (shell_escape): Use waitpid.
3533 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3534
3535 2011-06-07 Tristan Gingold <gingold@adacore.com>
3536
3537 * xcoffread.c (dwarf2_xcoff_names): New variable.
3538 (aix_process_linenos): Add a guard.
3539 (xcoff_symfile_finish): Free dwarf2.
3540 (xcoff_initial_scan): Add dwarf2 support.
3541
3542 2011-06-06 Pedro Alves <pedro@codesourcery.com>
3543
3544 * infcall.c (run_inferior_call): Don't mask async. Instead force
3545 a synchronous wait, if the target can async.
3546
3547 * target.h (struct target_ops): Delete to_async_mask.
3548 (target_async_mask): Delete.
3549 * target.c (update_current_target): Delete references to to_async_mask.
3550 * linux-nat.c (linux_nat_async_mask_value): Delete.
3551 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3552 to linux_nat_async_mask_value.
3553 (linux_nat_async_mask): Delete.
3554 (linux_nat_async, linux_nat_close): Remove references to
3555 linux_nat_async_mask_value.
3556 * record.c (record_async_mask_value): Delete.
3557 (record_async): Remove references to record_async_mask_value.
3558 (record_async_mask): Delete.
3559 (record_can_async_p, record_is_async_p): Remove references to
3560 record_async_mask_value.
3561 (init_record_ops, init_record_core_ops): Remove references to
3562 record_async_mask.
3563 * remote.c (remote_async_mask_value): Delete.
3564 (init_remote_ops): Remove reference to remote_async_mask.
3565 (remote_can_async_p, remote_is_async_p): Remove references to
3566 remote_async_mask_value.
3567 (remote_async): Remove references to remote_async_mask_value.
3568 (remote_async_mask): Delete.
3569
3570 * infrun.c (fetch_inferior_event): Don't claim registers changed
3571 if the current thread is already not executing.
3572
3573 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3574
3575 From Stephen Kitt <steve@sk2.org>
3576 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3577 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3578
3579 2011-06-03 Joel Brobecker <brobecker@adacore.com>
3580
3581 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3582 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3583
3584 2011-06-03 Tom Tromey <tromey@redhat.com>
3585
3586 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3587 code fields.
3588 * python/py-exitedevent.c (create_exited_event_object): Change
3589 type of 'exit_code'. Optionally add exit_code attribute.
3590 (emit_exited_event): Change type of 'exit_code'.
3591 * python/py-event.h (emit_exited_event): Update.
3592 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3593 * infrun.c (handle_inferior_event): Set exit code fields on
3594 inferior.
3595 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3596 fields.
3597 * inferior.c (exit_inferior_1): Initialize new fields.
3598
3599 2011-06-03 Tom Tromey <tromey@redhat.com>
3600
3601 * dwarf2expr.c (get_signed_type): New function.
3602 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3603
3604 2011-06-02 Keith Seitz <keiths@redhat.com>
3605
3606 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3607
3608 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3609
3610 * top.h (simplified_command_loop): Delete declaration.
3611
3612 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3613
3614 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3615 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3616
3617 2011-06-01 Yao Qi <yao@codesourcery.com>
3618
3619 * objfiles.h (obj_section_addr): Update reference to objfile from
3620 `abfd' to `obfd'.
3621 (obj_section_endaddr): Likewise.
3622
3623 2011-06-01 Daniel Jacobowitz <drow@false.org>
3624
3625 * MAINTAINERS: Update my email address and affiliation. Also
3626 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3627
3628 2010-05-31 Keith Seitz <keiths@redhat.com>
3629
3630 PR c++/12750
3631 * linespec.c (get_search_block): New function.
3632 (find_methods): Add FILE_SYMTATB parameter and use it and
3633 get_search_block to pass an appropriate block to
3634 lookup_symbol_in_namespace.
3635 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3636 Check if *ARGPTR starts with a filename first.
3637 If it does, call locate_first_half again to locate the next
3638 "first half" of the linespec.
3639 Pass FILE_SYMTATB to decode_objc and decode_compound.
3640 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3641 (locate_first_half): Stop on the first colon seen.
3642 (decode_compound): Add FILE_SYMTAB parameter.
3643 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3644 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3645 get_search_block with lookup_symbol.
3646 (find_method): Add FILE_SYMTAB parameter and pass it to
3647 find_methods.
3648 (decode_objc): Use get_search_block.
3649
3650 2010-05-31 Keith Seitz <keiths@redhat.com>
3651
3652 PR symtab/12704
3653 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3654 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3655 and CP_ANONYMOUS_NAMESPACE_LEN.
3656 (cp_is_anonymous): Likewise.
3657 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3658 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3659 * dwarf2read.c (namespace_name): Likewise.
3660 (fixup_partial_die): Likewise.
3661 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3662 seen in the input, keep it.
3663
3664 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3665
3666 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3667 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3668 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3669 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3670 * remote.c (_initialize_remote): Register
3671 async_remote_interrupt_twice directly as
3672 sigint_remote_twice_token event.
3673
3674 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3675
3676 * target.h (enum inferior_event_type): Delete INF_ERROR.
3677 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3678
3679 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3680
3681 * interps.c (interp_set): Don't cancel continuations.
3682
3683 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3686
3687 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3688
3689 * continuations.h (continuation_ftype): Add `err' parameter.
3690 Document parameters.
3691 (do_all_continuations, do_all_continuations_thread)
3692 (do_all_intermediate_continuations)
3693 (do_all_intermediate_continuations_thread)
3694 (do_all_inferior_continuations): Add `err' parameter.
3695 * continuations.c (do_my_continuations_1, do_my_continuations)
3696 (do_all_inferior_continuations, do_all_continuations_ptid)
3697 (do_all_continuations_thread_callback)
3698 (do_all_continuations_thread, do_all_continuations)
3699 (do_all_intermediate_continuations_thread_callback)
3700 (do_all_intermediate_continuations_thread)
3701 (do_all_intermediate_continuations): Add `err' parameter, and pass
3702 it down all the way to the continuations proper.
3703 * inf-loop.c (inferior_event_handler): If fetching an inferior
3704 event throws an error, don't pop the target, and still call the
3705 continuations, but with `err' set. Adjust all other continuation
3706 calls.
3707 * breakpoint.c (until_break_command_continuation): Add `err'
3708 parameter.
3709 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3710 issue another step if `err' is set.
3711 (struct until_next_continuation_args): New.
3712 (until_next_continuation): Add `err' parameter. Adjust.
3713 (until_next_command): Adjust.
3714 (struct finish_command_continuation_args): Add `thread' field.
3715 (finish_command_continuation): Add `err' parameter. Handle it.
3716 (finish_forward): Adjust.
3717 (attach_command_continuation): Add `err' parameter. Handle it.
3718 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3719 cancel the continuations.
3720 * interps.c (interp_set): Adjust to cancel the continuations.
3721 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3722 continuations rather than discarding.
3723 (free_thread): Don't clear thread inferior resources here.
3724 (delete_thread_1): Do it here instead. And do it before removing
3725 the thread from the threads list. Tag the thread as exited before
3726 clearing thread inferior resources.
3727
3728 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3729
3730 * infcall.c (call_function_by_hand): Rephrase error message.
3731
3732 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3733
3734 * defs.h (struct thread_info, struct inferior): Delete forward
3735 declarations.
3736 * breakpoint.h (struct thread_info): New forward declaration.
3737 * observer.sh (struct inferior): New forward declaration.
3738 * python/python-internal.h (struct inferior): New forward
3739 declaration.
3740
3741 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3742
3743 * defs.h (struct continuation, continuation_ftype)
3744 (continuation_free_arg_ftype, add_continuation)
3745 (do_all_continuations, do_all_continuations_thread)
3746 (discard_all_continuations, discard_all_continuations_thread)
3747 (add_intermediate_continuation, do_all_intermediate_continuations)
3748 (do_all_intermediate_continuations_thread)
3749 (discard_all_intermediate_continuations)
3750 (discard_all_intermediate_continuations_thread)
3751 (add_inferior_continuation, do_all_inferior_continuations)
3752 (discard_all_inferior_continuations): Move to ...
3753 * continuations.h: ... this new file.
3754 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3755 infcmd.c, inferior.c, infrun.c, interps.c: Include
3756 continuations.h.
3757
3758 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3759 Doug Evans <dje@google.com>
3760
3761 Fix PR 10970, PR 12702.
3762 * linux-nat.c (linux_lwp_is_zombie): New function.
3763 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3764 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3765
3766 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3767
3768 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3769 typedefs.
3770 (add_continuation, add_intermediate_continuation)
3771 (add_inferior_continuation): Use them.
3772 * continuations.c (struct continuation): Use them.
3773 (make_continuation_ftype): Delete.
3774 (make_continuation, add_inferior_continuation, add_continuation)
3775 (add_intermediate_continuation): Use continuation_ftype and
3776 continuation_free_arg_ftype. Rename parameters to shorter names.
3777
3778 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3779
3780 * continuations.c (make_continuation): Make it return void.
3781 (do_my_continuations): Rename to ...
3782 (do_my_continuations_1): ... this. Remove old_chain parameter and
3783 adjust.
3784 (do_my_continuations): New.
3785 (discard_my_continuations): Rename to ...
3786 (discard_my_continuations_1): ... this. Remove old_chain
3787 parameter and adjust.
3788 (discard_my_continuations): New.
3789 (add_inferior_continuation): Simplify.
3790 (do_all_inferior_continuations): Reimplement on top
3791 do_my_continuations.
3792 (discard_all_inferior_continuations): Simplify.
3793 (add_continuation): Simplify.
3794 (do_all_continuations_ptid): Simplify.
3795 (discard_all_continuations_thread_callback): Simplify.
3796 (add_intermediate_continuation): Simplify.
3797 (discard_all_intermediate_continuations_thread_callback):
3798 Simplify.
3799
3800 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3801
3802 * utils.c (struct continuation, add_continuation)
3803 (add_inferior_continuation)
3804 (do_all_inferior_continuations, discard_all_inferior_continuations)
3805 (restore_thread_cleanup, do_all_continuations_ptid)
3806 (do_all_continuations_thread_callback)
3807 (do_all_continuations_thread, do_all_continuations)
3808 (discard_all_continuations_thread_callback)
3809 (discard_all_continuations_thread, discard_all_continuations)
3810 (add_intermediate_continuation)
3811 (do_all_intermediate_continuations_thread_callback)
3812 (do_all_intermediate_continuations_thread)
3813 (do_all_intermediate_continuations)
3814 (discard_all_intermediate_continuations_thread_callback)
3815 (discard_all_intermediate_continuations_thread)
3816 (discard_all_intermediate_continuations): Move to ...
3817 * continuations.c: ... this new file, and adjust to no longer
3818 implement continuations on top of cleanups.
3819 * Makefile.in (SFILES): Add continuations.c.
3820 (COMMON_OBS): Add continuations.o.
3821
3822 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3823
3824 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3825 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3826 Internal error on invalid values.
3827 * reverse.c: Don't handle EXEC_ERROR.
3828 * mi/mi-main.c: Don't handle EXEC_ERROR.
3829
3830 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3831
3832 * record.c: Include event-loop.h, inf-loop.h.
3833 (record_beneath_to_async): New global.
3834 (tmp_to_async): New global.
3835 (record_async_inferior_event_token): New global.
3836 (record_open_1): Don't error out if async is enabled.
3837 (record_open): Handle to_async. Create an async event source in
3838 the event loop.
3839 (record_close): Delete the async event source.
3840 (record_resumed): New global.
3841 (record_execution_dir): New global.
3842 (record_resume, record_core_resume): Set them. Register the
3843 target on the event loop.
3844 (record_wait): Rename to ...
3845 (record_wait_1): ... this. Add more debug output. Handle
3846 TARGET_WNOHANG, and the target beneath returning
3847 TARGET_WAITKIND_IGNORE.
3848 (record_wait): Reimplement on top of record_wait_1.
3849 (record_async_mask_value): New global.
3850 (record_async, record_async_mask, record_can_async_p)
3851 (record_is_async_p, record_execution_direction): New functions.
3852 (init_record_ops, init_record_core_ops): Install new methods.
3853 * infrun.c (fetch_inferior_event): Temporarily switch the global
3854 execution direction to the direction the target was going.
3855 (execution_direction): Change type to int.
3856 * target.c (default_execution_direction): New function.
3857 (update_current_target): Inherit and de_fault
3858 to_execution_direction.
3859 * target.h (struct target_ops) <to_execution_direction>: New
3860 field.
3861 (target_execution_direction): New macro.
3862 * inferior.h (execution_direction): Change type to int.
3863
3864 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3865
3866 * infcall.c (call_function_by_hand): Don't allow calling functions
3867 in reverse execution mode.
3868
3869 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3870
3871 * infcmd.c (finish_command): Allow async finish in reverse.
3872
3873 2011-05-26 Yao Qi <yao@codesourcery.com>
3874
3875 * gdb_thread_db.h: Delete. Move to ...
3876 * common/gdb_thread_db.h: ... here.
3877
3878 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3879
3880 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3881 function's entry point instead of a manually managed momentary
3882 breakpoint, and only ever issue one proceed call.
3883 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3884 doing a reverse-finish, switch to stepi mode, to do another step.
3885 (insert_step_resume_breakpoint_at_sal): Make public.
3886 (normal_stop): No need to save function value return registers if
3887 going reverse.
3888 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3889
3890 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3891
3892 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3893 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3894 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3895 at the end.
3896 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3897 step-resume breakpoints.
3898 (print_it_typical): Handle bp_hp_step_resume.
3899 (bpstat_what): Ditto.
3900 (bptype_string): Ditto.
3901 (print_one_breakpoint_location): Ditto.
3902 (allocate_bp_location): Ditto.
3903 (mention): Ditto.
3904 (breakpoint_re_set_one): Ditto.
3905 * infrun.c (handle_inferior_event): Adjust. Split
3906 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3907 BPSTAT_WHAT_HP_STEP_RESUME.
3908 (insert_step_resume_breakpoint_at_sal): Rename to ...
3909 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3910 parameter. Handle it.
3911 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3912 insert_step_resume_breakpoint_at_sal_1.
3913 (insert_step_resume_breakpoint_at_frame): Rename to ...
3914 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3915 set a high-priority step-resume breakpoint.
3916 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3917 (insert_step_resume_breakpoint_at_caller): Ditto.
3918
3919 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3920
3921 * breakpoint.c (iterate_over_related_breakpoints): New.
3922 (do_map_delete_breakpoint): New.
3923 (delete_command): Pass do_map_delete_breakpoint to
3924 map_breakpoint_numbers.
3925 (do_disable_breakpoint): New.
3926 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3927 breakpoints.
3928 (do_enable_breakpoint): Rename to ...
3929 (enable_breakpoint_disp): ... this.
3930 (enable_breakpoint): Adjust.
3931 (do_enable_breakpoint): New.
3932 (enable_once_breakpoint): Delete.
3933 (do_map_enable_breakpoint): New.
3934 (do_map_enable_once_breakpoint): New.
3935 (enable_once_command, enable_delete_command)
3936 (delete_trace_command): Iterate over the breakpoint's related
3937 breakpoints.
3938
3939 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3940
3941 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3942 for ALPHA_ZERO_REGNUM.
3943 (alpha_supply_int_regs): Explicitly supply zero as the value for
3944 ALPHA_ZERO_REGNUM in the register cache.
3945 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3946
3947 2011-05-26 Yao Qi <yao@codesourcery.com>
3948
3949 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3950
3951 2011-05-26 Tristan Gingold <gingold@adacore.com>
3952
3953 * symfile.h (struct dwarf2_section_names): New type.
3954 (struct dwarf2_debug_sections): New type.
3955 (dwarf2_has_info): Add parameter.
3956 * dwarf2read.c (dwarf2_elf_names): New variable.
3957 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3958 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3959 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3960 (dwarf2_has_info): Add names parameter. Pass names
3961 to dwarf2_locate_sections.
3962 (section_is_p): Rewrite using the names parameter.
3963 (dwarf2_locate_sections): Use section names from the names parameter.
3964 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3965 * elfread.c (read_psyms): Ditto.
3966 * machoread.c (macho_symfile_read): Ditto.
3967
3968 2011-05-25 Andreas Schwab <schwab@redhat.com>
3969
3970 PR gdb/8677
3971 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3972
3973 2011-05-24 Keith Seitz <keiths@redhat.com>
3974
3975 PR breakpoint/12803
3976 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3977 (decode_compound): Unconditionally call keep_name_info.
3978
3979 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3980
3981 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3982 scope, clear its command list.
3983 (map_breakpoint_numbers): Don't walk the related breakpoints list
3984 of each breakpoint.
3985
3986 2011-05-24 Tom Tromey <tromey@redhat.com>
3987
3988 * MAINTAINERS: Move Jim Blandy to past maintainers.
3989
3990 2011-05-24 Tristan Gingold <gingold@adacore.com>
3991
3992 * symfile.h (enum dwarf2_section_enum): New type.
3993 (dwarf2_get_section_info): New prototype.
3994 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3995 section_name by sect. Use a switch to select the info.
3996 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3997 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3998
3999 2011-05-24 Pedro Alves <pedro@codesourcery.com>
4000
4001 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4002 shared library event breakpoint if there's no execution.
4003
4004 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4005
4006 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4007 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4008
4009 2011-05-23 Tom Tromey <tromey@redhat.com>
4010
4011 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4012 NULL.
4013
4014 2011-05-23 Doug Evans <dje@google.com>
4015
4016 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4017 entry for RuntimeError to doc string.
4018
4019 2011-05-23 Jerome Guitton <guitton@adacore.com>
4020
4021 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4022 sequence for probing loops.
4023
4024 2011-05-23 Pedro Alves <pedro@codesourcery.com>
4025
4026 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4027 comment.
4028
4029 2011-05-21 Mark Kettenis <kettenis@gnu.org>
4030
4031 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4032 zero as the value for %g0 in the register cache.
4033 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4034 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4035
4036 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4037
4038 * infrun.c (proceed): Set previous_inferior_ptid here.
4039 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4040 inferior_ptid, not null_ptid.
4041 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4042 (fetch_inferior_event): Nor here.
4043
4044 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4045
4046 * inf-loop.c (inferior_event_handler): Only output a message if
4047 verbose.
4048
4049 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
4050
4051 * MAINTAINERS: Update my e-mail address.
4052
4053 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4054
4055 * infrun.c (proceed): Switch the inferior event loop to
4056 INF_EXEC_COMPLETE if the target refused to resume from a
4057 vfork/fork.
4058
4059 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4060
4061 * infcmd.c: Include "inf-loop.h".
4062 (step_once): When stepping into an inline subroutine, pretend the
4063 target has run. If the target can async, switch the inferior
4064 event loop to INF_EXEC_COMPLETE.
4065 * inferior.h (user_visible_resume_ptid): Declare.
4066 * infrun.c (user_visible_resume_ptid): New function, factored out
4067 from `resume'.
4068 (resume): Use it.
4069 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4070 that the current thread is running. Merge async and sync
4071 branches.
4072
4073 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4074
4075 * infcmd.c (step_1): Simplify synchronous case.
4076
4077 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4078
4079 * tracepoint.c: Include exceptions.h.
4080 (TFILE_PID): Move higher in file.
4081 (tfile_open): Delay pushing the tfile target until we're assured
4082 the tfile header is present in the file. Wrap reading the initial
4083 newline-terminated lines in TRY_CATCH. Pop the target if the
4084 initial setup failed. Add the tfile's thread immediately
4085 aftwards, before any non-essential setup. Don't skip
4086 post_create_inferior if there are no traceframes present in the
4087 file.
4088 (tfile_close): Remove redundant check for null before xfree call.
4089 (tfile_thread_alive): New function.
4090 (init_tfile_ops): Register it as to_thread_alive callback.
4091
4092 2011-05-20 Pedro Alves <pedro@codesourcery.com>
4093
4094 * tracepoint.c (tfile_open): Delete #if 0'd code.
4095
4096 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4097
4098 Fix -readnow for -gdwarf-4 unused type units.
4099 * dwarf2read.c (struct signatured_type): Remove the field offset.
4100 (create_signatured_type_table_from_index): Remove its initialization.
4101 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4102 instead. Add a complaint call.
4103 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4104 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4105 (lookup_signatured_type_at_offset, read_signatured_type)
4106 (write_one_signatured_type): Update the field for per_cu.
4107
4108 2011-05-19 Tom Tromey <tromey@redhat.com>
4109
4110 * python/py-inferior.c (python_inferior_exit): Use
4111 target_gdbarch.
4112 (python_on_resume): Likewise.
4113
4114 2011-05-19 Matt Rice <ratmice@gmail.com>
4115
4116 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4117
4118 2011-05-19 Hui Zhu <teawater@gmail.com>
4119
4120 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4121
4122 2011-05-19 Hui Zhu <teawater@gmail.com>
4123
4124 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4125
4126 2011-05-18 Tom Tromey <tromey@redhat.com>
4127
4128 * dwarf2read.c (dwarf2_add_field): Constify.
4129 * value.c (value_static_field): Constify.
4130 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4131 Now const.
4132 * ax-gdb.c (gen_static_field): Constify
4133
4134 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 * linux-nat.c (kill_callback): Use SIGKILL first.
4137
4138 2011-05-18 Joel Brobecker <brobecker@adacore.com>
4139
4140 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4141
4142 2011-05-18 Tom Tromey <tromey@redhat.com>
4143
4144 * value.c (value_fn_field): Constify.
4145 * symtab.c (gdb_mangle_name): Constify.
4146 * stabsread.c (update_method_name_from_physname): Make 'physname'
4147 argument const.
4148 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4149 const. Use explicit fputc_filtered loop.
4150 (pascal_type_print_base): Constify.
4151 * p-lang.h (pascal_type_print_method_args): Update.
4152 * linespec.c (add_matching_methods): Constify.
4153 (add_constructors): Likewise.
4154 * jv-typeprint.c (java_type_print_base): Constify.
4155 * gdbtypes.h (struct cplus_struct_type)
4156 <fn_fieldlist.fn_field.physname>: Now const.
4157 * dwarf2read.c (compute_delayed_physnames): Constify.
4158 (dwarf2_add_member_fn): Likewise.
4159 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4160
4161 2011-05-18 Pedro Alves <pedro@codesourcery.com>
4162
4163 * infrun.c (resume): Mention which is the current thread, and its
4164 current PC in debug output.
4165 (prepare_to_proceed): Mention the thread switching in debug
4166 output.
4167
4168 2011-05-18 Tom Tromey <tromey@redhat.com>
4169
4170 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4171 path check. Use xmalloc and cleanups.
4172 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4173
4174 2011-05-17 Tom Tromey <tromey@redhat.com>
4175
4176 * cp-valprint.c (cp_print_value_fields): Catch errors from
4177 value_static_field.
4178
4179 2011-05-17 Tom Tromey <tromey@redhat.com>
4180
4181 * dwarf2read.c (dwarf2_get_die_type): Call
4182 get_die_type_at_offset.
4183 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4184 get_base_type function.
4185
4186 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
4187
4188 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4189 trap_expected.
4190
4191 2011-05-16 Doug Evans <dje@google.com>
4192
4193 * python/py-auto-load.c (source_section_scripts): Mention objfile
4194 name in warning.
4195
4196 2011-05-15 Doug Evans <dje@google.com>
4197
4198 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4199 (try_thread_db_load_from_pdir): Call it. If unable to find
4200 libthread_db in directory of libpthread, see if we're looking at
4201 the separate-debug-info copy.
4202
4203 * python/py-autoload.c (print_script): Print "Missing" instead of
4204 "No" for missing scripts.
4205 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4206
4207 2011-05-13 Doug Evans <dje@google.com>
4208
4209 * ui-file.c (stdio_file_write_async_safe): Add comment.
4210
4211 2011-05-14 Hui Zhu <teawater@gmail.com>
4212
4213 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4214
4215 2011-05-13 Doug Evans <dje@google.com>
4216
4217 Support $pdir and $sdir in libthread-db-search-path.
4218 * NEWS: Mention $sdir,$pdir.
4219 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4220 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4221 (try_thread_db_load_from_sdir): New function.
4222 (try_thread_db_load_from_dir): New function.
4223 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4224 system directories if search of libthread-db-search-path fails,
4225 that is now done via $sdir.
4226 (has_libpthread): New function.
4227 (thread_db_load): Remove search for libthread_db in directory of
4228 libpthread, that is now done via $pdir.
4229
4230 * NEWS: Mention "info auto-load-scripts".
4231 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4232 script_not_found_warning_printed.
4233 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4234 all callers updated. Initialize script_not_found_warning_printed.
4235 (get_auto_load_pspace_data_for_loading): New function.
4236 (maybe_add_script): New function.
4237 (source_section_scripts): Simplify. Only print one warning regardless
4238 of the number of auto-load scripts not found.
4239 (clear_section_scripts): Clear script_not_found_warning_printed.
4240 (auto_load_objfile_script): Record script in hash table.
4241 (count_matching_scripts): New function.
4242 (maybe_print_script): Renamed from maybe_print_section_script, all
4243 callers updated. Rewrite to use ui_out_*.
4244 (info_auto_load_scripts): Renamed from
4245 maintenance_print_section_scripts, all callers updated.
4246 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4247 renamed as "info auto-load-scripts".
4248
4249 2011-05-13 Tom Tromey <tromey@redhat.com>
4250
4251 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4252 (read_sleb128): Likewise.
4253
4254 2011-05-13 Tom Tromey <tromey@redhat.com>
4255
4256 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4257 offset display.
4258
4259 2011-05-13 Doug Evans <dje@google.com>
4260
4261 * linux-nat.c (debug_linux_nat_async): Delete.
4262 Replace all references to use debug_linux_nat instead.
4263 (show_debug_linux_nat_async): Delete.
4264 (sigchld_handler): Call ui_file_write_async_safe instead of
4265 fprintf_unfiltered.
4266 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4267 * ui-file.c (struct ui_file): New member to_write_async_safe.
4268 (null_file_write_async_safe): New function.
4269 (ui_file_write_async_safe): New function.
4270 (set_ui_file_write_async_safe): New function.
4271 (ui_file_new): Initialize to_write_async_safe.
4272 (stdio_file_write_async_safe): New function.
4273 (struct stdio_file): New member fd.
4274 (stdio_file_new): Initialize to_write_async_safe, fd.
4275 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4276 fileno.
4277 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4278 (set_ui_file_write_async_safe): Declare.
4279 (ui_file_write_async_safe): Declare.
4280
4281 2011-05-13 Tom Tromey <tromey@redhat.com>
4282
4283 * utils.c (do_value_free): New function.
4284 (make_cleanup_value_free): Likewise.
4285 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4286 freeing correctly.
4287 (dwarf2_loc_desc_needs_frame): Call
4288 make_cleanup_value_free_to_mark.
4289 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4290 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4291 value_free_to_mark.
4292 (new_dwarf_expr_context): Don't call value_mark.
4293 * dwarf2-frame.c (execute_stack_op): Call
4294 make_cleanup_value_free_to_mark.
4295 * defs.h (make_cleanup_value_free): Declare.
4296
4297 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4298
4299 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4300 prepare_execute_command.
4301 * top.c (prepare_execute_command): Return cleanup.
4302 (execute_command): Use cleanup from prepare_execute_command.
4303 * top.h (prepare_execute_command): Change prototype to return
4304 cleanup.
4305 * defs.h (struct value): Add opaque declaration.
4306 (make_cleanup_value_free_to_mark): Add prototype.
4307 * utils.c (do_value_free_to_mark): New function.
4308 (make_cleanup_value_free_to_mark): Likewise.
4309
4310 2011-05-12 Tom Tromey <tromey@redhat.com>
4311
4312 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4313 cast left-hand-side to unsigned.
4314
4315 2011-05-12 Tom Tromey <tromey@redhat.com>
4316
4317 PR gdb/12617:
4318 * value.h (value_from_contents): Declare.
4319 * value.c (value_from_contents): New function.
4320 * dwarf2read.c (dwarf_stack_op_name): Add new values.
4321 (dwarf2_get_die_type): New function.
4322 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
4323 (allocate_piece_closure): Acquire reference to values.
4324 (read_pieced_value): Update for value-based expressions.
4325 (write_pieced_value): Likewise.
4326 (free_pieced_value_closure): Call value_free as needed.
4327 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
4328 Update for value-based expressions.
4329 * dwarf2loc.h (dwarf2_get_die_type): Declare.
4330 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
4331 <get_base_type>: New field.
4332 (struct dwarf_expr_piece) <v.value>: Change type.
4333 <v.regno>: New field.
4334 (struct dwarf_expr_context) <mark>: New field.
4335 (dwarf_expr_piece, dwarf_expr_fetch): Update.
4336 (dwarf_expr_pop, dwarf_expr_push): Remove.
4337 (dwarf_expr_push_address): Declare.
4338 * dwarf2expr.c (dwarf_arch_cookie): New global.
4339 (struct dwarf_gdbarch_types): New.
4340 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
4341 functions.
4342 (dwarf_expr_push): Change type of 'value' argument. Update. Now
4343 static.
4344 (dwarf_expr_push_address): New function.
4345 (dwarf_expr_pop): Now static.
4346 (dwarf_expr_fetch): Change return type.
4347 (dwarf_require_integral): New function.
4348 (dwarf_expr_fetch): Simplify.
4349 (add_piece): Update.
4350 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
4351 functions.
4352 (execute_stack_op) <sign_ext>: Remove.
4353 Use values for DWARF stack.
4354 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
4355 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4356 New cases.
4357 (_initialize_dwarf2expr): New function.
4358 (add_piece): Update.
4359 (new_dwarf_expr_context): Set new field.
4360 (free_dwarf_expr_context): Call value_free_to_mark.
4361 * dwarf2-frame.c (no_base_type): New function.
4362 (execute_stack_op): Set get_base_type field. Update.
4363
4364 2011-05-12 Tom Tromey <tromey@redhat.com>
4365
4366 * dwarf2read.c (read_common_block): Fix formatting.
4367
4368 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
4369
4370 * breakpoint.c (disable_breakpoint): Disable all locations
4371 associated with a tracepoint on target if a trace experiment is
4372 running.
4373 (disable_command): Disable a specific tracepoint location on target if
4374 a trace experiment is running.
4375 (do_enable_breakpoint): Enable all locations associated with a
4376 tracepoint on target if a trace experiment is running.
4377 (enable_command) Enable a specific tracepoint location on target if a
4378 trace experiment is running.
4379 * target.c (update_current_target): Add INHERIT and de_fault clauses for
4380 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4381 to_disable_tracepoint.
4382 * target.h: Add declaration of struct bp_location.
4383 (struct target_ops): Add new functions
4384 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4385 to_disable_tracepoint to target operations.
4386 (target_supports_enable_disable_tracepoint): New macro.
4387 (target_enable_tracepoint): New macro.
4388 (target_disable_tracepoint): New macro.
4389 * remote.c (struct remote_state): Add new field.
4390 (remote_enable_disable_tracepoint_feature): New.
4391 (remote_protocol_features): Add new entry.
4392 (remote_supports_enable_disable_tracepoint): New.
4393 (remote_enable_tracepoint): New.
4394 (remote_disable_tracepoint): New.
4395 (init_remote_ops): Add remote_enable_tracepoint,
4396 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
4397 to remote operations.
4398 * tracepoint.c (start_tracing): Allow tracing to start without any
4399 tracepoints enabled with just a warning if they can be re-enabled
4400 later.
4401 * NEWS: Add news item for the new behaviour of the enable and disable
4402 GDB commands when applied to tracepoints.
4403 Add news items for the new remote packets QTEnable and QTDisable.
4404
4405 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4406
4407 * config.in: Regenerate.
4408 * configure: Regenerate.
4409 * configure.ac <--with-system-readline> (for readline_echoing_p):
4410 Remove the test.
4411 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
4412 (tui_old_rl_echoing_p): ... here.
4413 (tui_setup_io): Rename extern declaration readline_echoing_p to
4414 _rl_echoing_p. Adjust assignments for the both renames.
4415
4416 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4417
4418 * symtab.c (lookup_symtab): Run cleanup before returning.
4419
4420 2011-05-11 Tom Tromey <tromey@redhat.com>
4421
4422 * dwarf2read.c (handle_data_member_location): New function.
4423 (dwarf2_add_field): Use it.
4424 (read_common_block): Likewise.
4425
4426 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4427
4428 Make addrs->SECTINDEX always defined.
4429 * symfile.c (relative_addr_info_to_section_offsets): Check for
4430 SECTINDEX -1, not for zero ADDR.
4431 (addrs_section_compar): Remove checking for invalid SECTINDEX.
4432 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
4433 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
4434 on its validity.
4435
4436 2011-05-10 Doug Evans <dje@google.com>
4437
4438 * linux-thread-db.c: Whitespace cleanup.
4439 (try_thread_db_load_1): Fix comment.
4440
4441 * linux-thread-db.c (set_libthread_db_search_path): New function.
4442 (_initialize_thread_db): Add setter for libthread-db-search-path.
4443
4444 2011-05-09 Doug Evans <dje@google.com>
4445
4446 * NEWS: Mention --with-iconv-bin.
4447 * configure.ac: New option --with-iconv-bin.
4448 * configure: Regenerate.
4449 * config.in: Regenerate.
4450 * defs.h (relocate_gdb_directory): Declare.
4451 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
4452 removed progname parameter, and exported. All callers updated.
4453 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
4454
4455 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
4456 adding missing call to restore_child_signals_mask.
4457
4458 2011-05-09 Pedro Alves <pedro@codesourcery.com>
4459
4460 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
4461 parameter.
4462 * infrun.c (proceed, start_remote): Adjust.
4463 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
4464 and adjust to not handle it.
4465 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
4466 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
4467 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
4468 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
4469 * windows-nat.c (do_initial_windows_stuff): Adjust.
4470 * infcmd.c (attach_command): Adjust.
4471 (notice_new_inferior): Adjust.
4472
4473 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4474
4475 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
4476 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
4477 * spu-tdep.c (op_selb): Use correct value.
4478
4479 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4480
4481 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
4482 "parent" parameter to symbol_file_add_from_bfd call.
4483
4484 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4485 Thiago Jung Bauermann <bauerman@br.ibm.com>
4486
4487 Implement support for PowerPC BookE masked watchpoints.
4488 * NEWS: Mention masked watchpoint support. Create "Changed commands"
4489 section.
4490 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
4491 method. Initialize to NULL in all existing breakpoint_ops instances.
4492 (struct breakpoint) <hw_wp_mask>: New field.
4493 * breakpoint.c (is_masked_watchpoint): Add prototype.
4494 (update_watchpoint): Don't set b->val for masked watchpoints. Call
4495 breakpoint's breakpoint_ops.works_in_software_mode if available.
4496 (watchpoints_triggered): Handle the case of a hardware masked
4497 watchpoint trigger.
4498 (watchpoint_check): Likewise.
4499 (works_in_software_mode_watchpoint): New function.
4500 (insert_masked_watchpoint, remove_masked_watchpoint)
4501 (resources_needed_masked_watchpoint)
4502 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4503 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4504 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4505 functions.
4506 (masked_watchpoint_breakpoint_ops): New structure.
4507 (watch_command_1): Check for the existence of the `mask' parameter.
4508 Set b->ops according to the type of hardware watchpoint being created.
4509 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4510 (ppc_linux_remove_mask_watchpoint)
4511 (ppc_linux_masked_watch_num_registers): New functions.
4512 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4513 to_remove_mask_watchpoint and to_masked_watch_num_registers.
4514 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4515 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4516 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4517 (target_masked_watch_num_registers): New functions.
4518 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4519 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4520 methods.
4521 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4522 (target_masked_watch_num_registers): Add prototypes.
4523
4524 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4525
4526 PR 12573
4527 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4528 (producer_is_gcc_ge_4_0): New function.
4529 (process_full_comp_unit): Set also symtab->locations_valid. Move the
4530 symtab->language code.
4531 (var_decode_location): Set cu->has_loclist.
4532 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4533 skip. Intialize force_skip from locations_valid. Move the prologue
4534 skipping code into two passes.
4535 * symtab.h (struct symtab): Make the primary field a bitfield. New
4536 field locations_valid.
4537
4538 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4539
4540 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4541 (classify_inner_name): Call cp_lookup_nested_type with
4542 yylval.tsym.type.
4543 * cp-namespace.c (cp_lookup_nested_type): New variable
4544 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
4545 type_name_no_tag_or_error with saved_parent_type.
4546 * dwarf2read.c (load_partial_dies): Read in any children of
4547 DW_TAG_typedef with complaint in such case.
4548 * gdbtypes.c (type_name_no_tag_or_error): New function.
4549 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4550 * valops.c (destructor_name_p): New comment for parameter type. Remove
4551 type const. Make dname and cp const. Call type_name_no_tag_or_error.
4552 * value.h (destructor_name_p): Remove type const.
4553
4554 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4555
4556 * symtab.c (compare_symbol_name): New function.
4557 (completion_list_add_name, expand_partial_symbol_name): Call it,
4558 remove the variable ncmp.
4559 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4560 gdb_assert it.
4561
4562 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4563
4564 Demote to sw watchpoint only in update_watchpoint.
4565 * breakpoint.c (update_watchpoint): Change between software and
4566 hardware watchpoint for all kinds of watchpoints, not just
4567 read/write ones. Determine b->exact value here instead of
4568 in watch_command_1. Error out if there are not enough resources
4569 for a read or access hardware watchpoint.
4570 (watch_command_1): Remove logic of checking whether there are
4571 enough resources available, since update_watchpoint will do that
4572 work now. Don't set b->exact here. Catch exceptions thrown by
4573 update_watchpoint and delete the watchpoint.
4574 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4575 Use target_exact_watchpoints instead.
4576 (delete_breakpoint): Notify observers only if deleted watchpoint
4577 has a breakpoint number assigned to it.
4578
4579 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
4580
4581 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4582
4583 2011-05-05 Jerome Guitton <guitton@adacore.com>
4584
4585 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4586 New functions.
4587 (i386_stack_tramp_frame_unwind): New static global.
4588 (i386_match_pattern): New function, extracted from i386_match_insn.
4589 (i386_match_insn): Use i386_match_pattern.
4590 (i386_match_insn_block): New function.
4591 (i386_tramp_chain_in_reg_insns)
4592 (i386_tramp_chain_on_stack_insns): New static variables.
4593 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4594 of unwinders.
4595
4596 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4597
4598 * configure.host (xscale*): Don't handle target.
4599 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4600 handle targets.
4601
4602 2011-05-04 Yao Qi <yao@codesourcery.com>
4603
4604 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4605
4606 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4607
4608 Revert:
4609 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4610 | * elfread.c (elf_symtab_read): Stop memory leak.
4611
4612 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4613
4614 * nto-tdep.c (nto_target): Replace deprecated call to
4615 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4616
4617 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4618
4619 Fix false GCC warning.
4620 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4621
4622 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4623
4624 * breakpoint.c (update_watchpoint): Move code to change
4625 the enable state of breakpoint from here ...
4626 (do_enable_breakpoint): ... to here.
4627
4628 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4629
4630 * valprint.c (val_print_array_elements): Fixed poor performance
4631 of printing very large arrays with repeat_count_threshold set
4632 to unlimited. New comment.
4633
4634 2011-04-29 Tom Tromey <tromey@redhat.com>
4635
4636 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4637 (mi_parse): Likewise.
4638 * breakpoint.c (break_range_command): Use sizeof char*, not
4639 char**.
4640 (create_breakpoint): Likewise.
4641 (parse_breakpoint_sals): Likewise.
4642
4643 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4644
4645 * linux-nat.c (linux_child_remove_fork_catchpoint)
4646 (linux_child_remove_vfork_catchpoint)
4647 (linux_child_remove_exec_catchpoint): New functions.
4648 (linux_target_install_ops): Install them.
4649
4650 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4651
4652 PR mi/12531
4653
4654 * varobj.c (install_default_visualizer): Do not install a
4655 visualizer if the varobj is CPLUS_FAKE_CHILD.
4656 (construct_visualizer): Likewise.
4657
4658 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4659
4660 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4661 case insensitive comparison.
4662
4663 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4664
4665 * infrun.c (proceed): Revert previous change.
4666 (resume): Instead, handle the case of signal delivery while stepping
4667 off a breakpoint location here, and only if software single-stepping
4668 is used. Handle nested signals.
4669
4670 2011-04-28 Yao Qi <yao@codesourcery.com>
4671
4672 * arm-tdep.c (copy_unmodified): Rename to ...
4673 (arm_copy_unmodified): .. this. New.
4674 (copy_preload): Move common part to ...
4675 (install_preload): .. this. New.
4676 (arm_copy_preload): New.
4677 (copy_preload_reg): Move common part to ...
4678 (install_preload_reg): ... this. New.
4679 (arm_copy_preload_reg): New.
4680 (copy_b_bl_blx): Move common part to ...
4681 (install_b_bl_blx): .. this. New.
4682 (arm_copy_b_bl_blx): New.
4683 (copy_bx_blx_reg): Move common part to ...
4684 (install_bx_blx_reg): ... this. New.
4685 (arm_copy_bx_blx_reg): New.
4686 (copy_alu_reg): Move common part to ...
4687 (install_alu_reg): ... this. New.
4688 (arm_copy_alu_reg): New.
4689 (copy_alu_shifted_reg): Move common part to ...
4690 (install_alu_shifted_reg): ... this. New.
4691 (copy_ldr_str_ldrb_strb): Move common part to ...
4692 (install_ldr_str_ldrb_strb): ... this. New.
4693 (arm_copy_ldr_str_ldrb_strb): New.
4694 (copy_copro_load_store): Move some common part to ...
4695 (install_copy_copro_load_store): ... this. New.
4696 (arm_copy_copro_load_store): New.
4697 (copy_svc): Delete.
4698 (arm_copy_svc): Renamed from copy_svc.
4699 (copy_undef): Delete.
4700 (arm_copy_undef): Renamed from copy_undef.
4701 (decode_ext_reg_ld_st): Delete.
4702 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4703 (decode_svc_copro): Delete.
4704 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4705 (copy_copro_load_store, copy_alu_imm): update callers.
4706 (copy_extra_ld_st, copy_block_xfer): Likewise.
4707 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4708 (decode_miscellaneous, decode_dp_misc): Likewise.
4709 (decode_ld_st_word_ubyte, decode_media): Likewise.
4710 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4711 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4712 (decode_unconditional, decode_miscellaneous): Likewise.
4713 (decode_media, decode_b_bl_ldmstm): Likewise.
4714 (arm_process_displaced_insn): Likewise..
4715 (decode_misc_memhint_neon): Delete.
4716 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4717 (decode_miscellaneous): Delete.
4718 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4719 (decode_dp_misc): Delete.
4720 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4721 (decode_ld_st_word_ubyte): Delete.
4722 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4723 (decode_media): Delete.
4724 (arm_decode_media): Renamed from decode_media.
4725 (decode_b_bl_ldmstm): Delete.
4726 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4727 (decode_ext_reg_ld_st): Delete.
4728 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4729 (decode_unconditional): Delete.
4730 (arm_decode_unconditional): Renamed from decode_unconditional.
4731
4732 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4733
4734 Case insensitive lookups implementation.
4735 * dwarf2read.c: Include ctype.h.
4736 (struct mapped_index): New field version.
4737 (mapped_index_string_hash): New parameter index_version. New comment
4738 for it. Call tolower appropriately.
4739 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4740 Choose the right index version for mapped_index_string_hash.
4741 (dwarf2_read_index): Support also the index version 5. Initialize the
4742 new struct mapped_index field version.
4743 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4744 (find_slot): Explain the version needs. Pass INT_MAX for the new
4745 parameter.
4746 (write_psymtabs_to_index): Produce version 5.
4747 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4748 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4749 * psymtab.c (lookup_partial_symbol): Find the
4750 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4751 entries.
4752 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4753 NAME lowercasing.
4754 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4755 (completion_list_add_name): New variable ncmp, initialize it, use it.
4756 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4757 * utils.c (strcmp_iw): Support case_sensitive_off.
4758 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4759 New function comment part. New variables saved_string1,
4760 saved_string2 and case_pass. Add a proper second pass.
4761
4762 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4763
4764 Replace re_comp/re_exec by regcomp/regexec.
4765 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4766 (search_symbols_name_matches): Use them, use regexec.
4767 (search_symbols): New variable retval_chain, adjust the use of
4768 old_chain against it. Replace re_comp by regcomp. Use the new struct
4769 search_symbols_data fields, use regexec instead of re_exec.
4770
4771 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4772
4773 Format the code for the next patch.
4774 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4775 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4776 New variables c1 and c2.
4777
4778 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4779
4780 * infrun.c (proceed): Do not single-step into signal delivery
4781 when stepping off a breakpoint location.
4782 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4783 (insert_step_resume_breakpoint_at_caller): Likewise.
4784 (insert_step_resume_breakpoint_at_sal): Likewise.
4785 (insert_longjmp_resume_breakpoint): Likewise.
4786
4787 2011-04-27 Yao Qi <yao@codesourcery.com>
4788
4789 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4790
4791 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4792
4793 * procfs.c (procfs_pass_signals): Fix advance declaration.
4794
4795 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4796
4797 * target.h (struct target_ops): Remove to_notice_signals;
4798 add to_pass_signals.
4799 (target_notice_signals): Remove.
4800 (target_pass_signals): Add prototype.
4801 * target.c (update_current_target): Remove to_notice_signals;
4802 mention to_pass_signals.
4803 (target_pass_signals): New function.
4804 (debug_to_notice_signals): Remove.
4805 (setup_target_debug): Do not install debug_to_notice_signals.
4806
4807 * infrun.c (signal_pass): New global.
4808 (resume): Call target_pass_signals.
4809 (handle_inferior_event): Report all signals while stepping over
4810 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4811 are re-inserted when stepping over a signal handler.
4812 (signal_cache_update): New function.
4813 (signal_stop_update): Call it.
4814 (signal_print_update): Likewise.
4815 (signal_pass_update): Likewise.
4816 (handle_command): Call signal_cache_update and target_pass_signals
4817 instead of target_notice_signals.
4818 (_initialize_infrun): Initialize signal_pass.
4819
4820 * linux-nat.c (pass_mask): New global.
4821 (linux_nat_pass_signals): New function.
4822 (linux_nat_create_inferior): Report all signals initially.
4823 (linux_nat_attach): Likewise.
4824 (linux_nat_resume): Use pass_mask to decide whether to directly
4825 handle an inferior signal.
4826 (linux_nat_wait_1): Likewise.
4827 (linux_nat_add_target): Install to_pass_signals callback.
4828
4829 * nto-procfs.c (notice_signals): Remove.
4830 (procfs_resume): Do not call notice_signals.
4831 (procfs_notice_signals): Remove.
4832 (procfs_pass_signals): New function.
4833 (init_procfs_ops): Install to_pass_signals callback instead of
4834 to_notice_signals callback.
4835 (_initialize_procfs): Report all signals initially.
4836
4837 * procfs.c (procfs_notice_signals): Remove.
4838 (procfs_pass_signals): New function.
4839 (procfs_target): Install to_pass_signals callback instead of
4840 to_notice_signals callback.
4841 (register_gdb_signals): Remove.
4842 (procfs_debug_inferior): Report all signals initially.
4843 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4844
4845 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4846 parameters; use them instead of calling signal_..._state routines.
4847 (remote_notice_signals): Remove.
4848 (remote_start_remote): Report all signals initially.
4849 (remote_resume): Do not call remote_pass_signals.
4850 (_initialize_remote): Install to_pass_signals callback instead of
4851 to_notice_signals callback.
4852
4853 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4854
4855 * breakpoint.c (user_settable_breakpoint): Delete.
4856 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4857 (delete_command): Check user_breakpoint_p instead of looking at
4858 the breakpoint's type.
4859 (disable_command): Ditto.
4860 (enable_command): Ditto.
4861 (delete_trace_command): Use user_breakpoint_p instead of looking
4862 at the breakpoint number directly. When checking if there are
4863 user visible tracepoints, in order to know whether to ask the user
4864 for confirmation, check whether the breakpoint is actually a
4865 tracepoint.
4866
4867 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4868
4869 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4870 compilation.
4871
4872 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4873
4874 MI breakpoint notifications.
4875
4876 * annotate.c (breakpoint_changed): Adjust parameter type.
4877 * breakpoint.c (set_breakpoint_condition): Adjust to change
4878 in breakpoint_modified type.
4879 (breakpoint_set_commands): Likewise.
4880 (do_map_commands_command): Likewise.
4881 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4882 changed after bumping hit count.
4883 (bpstat_stop_status): Likewise.
4884 (print_one_breakpoint_location): Don't wrap in tuple here.
4885 (print_one_breakpoint): Always print individual locations.
4886 For locations, use unnamed tuple.
4887 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4888 has changed.
4889 (create_catchpoint, create_syscall_event_catchpoint): Call
4890 breakpoint_created obsever.
4891 (mention): Don't call breakpoint_created observer.
4892 (create_breakpoint_sal): Call breakpoint_created observer.
4893 (create_breakpoint, watch_command_1): Likewise.
4894 (create_ada_exception_breakpoint): Likewise.
4895 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4896 (locations_are_equal): New.
4897 (update_breakpoint_locations): If locations were changed, notify.
4898 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4899 Call breakpoint_modified observer.
4900
4901 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4902 (mi_cmd_break_insert): Don't set observers for modify and delete.
4903 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4904 (mi_breakpoint_created, mi_breakpoint_deleted)
4905 (mi_breakpoint_modified): New.
4906 (mi_interpreter_init): Hook the above.
4907 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4908 while -break-* commands are executing.
4909 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4910 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4911 (mi_redirect): New.
4912 (mi_ui_out_impl): Hook in mi_redirect.
4913 (mi_field_skip): True to the name, skip the field, don't output
4914 a field with an empty value.
4915
4916 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4917 (gdbpy_breakpoint_deleted): Adjust.
4918 * tui/tui-hooks.c (tui_event_create_breakpoint)
4919 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4920
4921 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4922
4923 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4924 (procfs_remove_hw_watchpoint): Likewise.
4925
4926 2011-04-26 Michael Walle <michael@walle.cc>
4927
4928 * remote.c (remote_start_remote): Ack packet after sending the
4929 interrupt sequence.
4930
4931 2011-04-26 Yao Qi <yao@codesourcery.com>
4932
4933 * linux-nat.c: Move common macros to ...
4934 Include linux-ptrace.h.
4935 * common/linux-ptrace.h: ... here. New.
4936
4937 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4938
4939 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4940 !objfile_has_partial_symbols. New comment.
4941 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4942 SYM_READ_PSYMBOLS is not present. Extend the comment.
4943 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4944
4945 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4946
4947 * defs.h (ENUM_BITFIELD): Remove.
4948
4949 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4950 Eli Zaretskii <eliz@gnu.org>
4951
4952 * NEWS: Document the new gdbserver --once option.
4953
4954 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4955
4956 * MAINTAINERS: Update my email address.
4957
4958 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4959
4960 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4961 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4962 function call if __STDC_ISO_10646__ macro is defined.
4963 (intermediate_encoding): New prototype.
4964 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4965 to generate compile time error for unsupported gdb_wchar_t size.
4966 (ENDIAN_SUFFIX): New macro.
4967 (intermediate_encoding): New function.
4968
4969 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4970
4971 * ada-lang.c (struct add_partial_datum): Update the comment for
4972 expand_partial_symbol_name.
4973 (ada_add_partial_symbol_completions): Rename to ...
4974 (ada_expand_partial_symbol_name): ... here, change return type, update
4975 function comment, call symbol_completion_match instead of
4976 symbol_completion_add.
4977 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4978 and ada_expand_partial_symbol_name.
4979 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4980 FILE_MATCHER.
4981 (dw2_map_symbol_names): Remove.
4982 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4983 * psymtab.c (map_symbol_names_psymtab): Remove.
4984 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4985 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4986 order.
4987 (psym_functions): Unlist map_symbol_names_psymtab.
4988 (map_partial_symbol_names): Rename to ...
4989 (expand_partial_symbol_names): ... here, change the FUN type, call
4990 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4991 * psymtab.h (map_partial_symbol_names): Rename to ...
4992 (expand_partial_symbol_names): ... here, change the FUN type.
4993 * symfile.h (struct quick_symbol_functions): Update the description of
4994 expand_symtabs_matching. Remove map_symbol_names.
4995 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4996 (struct add_name_data): Update the comment for
4997 expand_partial_symbol_name.
4998 (add_partial_symbol_name): Rename to ...
4999 (expand_partial_symbol_name): ... here. Replace
5000 completion_list_add_name call by strncmp.
5001 (default_make_symbol_completion_list_break_on): Use now
5002 expand_partial_symbol_names and expand_partial_symbol_name.
5003 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5004
5005 2011-04-20 Tom Tromey <tromey@redhat.com>
5006
5007 * dwarf2read.c (save_gdb_index_command): Replace format
5008 documentation with a pointer to the manual.
5009
5010 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5011
5012 * regcache.c: Include remote.h.
5013 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5014 (regcache_dump): Handle regcache_dump_remote.
5015 (maintenance_print_remote_registers): New function.
5016 (_initialize_regcache): Install "maint print remote-registers"
5017 command.
5018 * remote.c (map_regcache_remote_table): New function, factored out
5019 from ...
5020 (init_remote_state): ... here.
5021 (remote_register_number_and_offset): New.
5022 * remote.h (remote_register_number_and_offset): Declare.
5023
5024 2011-04-20 Pedro Alves <pedro@codesourcery.com>
5025
5026 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5027 null_ptid, assume and allow a NULL address space, instead of
5028 asking the target for the ptid's address space.
5029 * infrun.c (ptid_is_pid): Remove assertion.
5030
5031 2011-04-19 Tom Tromey <tromey@redhat.com>
5032
5033 * windows-tdep.c (windows_xfer_shared_library):
5034 * windows-nat.c (get_module_name, windows_make_so):
5035 * v850-tdep.c (v850_handle_pushm):
5036 * utils.c (null_cleanup, gdb_realpath):
5037 * ui-out.c (get_next_header):
5038 * tracepoint.c (clear_traceframe_info):
5039 * symtab.c (lookup_symtab):
5040 * serial.h (struct serial_ops):
5041 * mipsread.c (read_alphacoff_dynamic_symtab):
5042 * infcmd.c (print_return_value):
5043 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5044 * f-exp.y (parse_number):
5045 * exceptions.c (catch_exceptions):
5046 * dummy-frame.c (dummy_frame_this_id):
5047 * defs.h (struct cleanup):
5048 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5049 * arm-tdep.c (arm_push_dummy_call):
5050 * amd64-tdep.h (amd64_collect_xsave):
5051 * amd64-tdep.c (amd64_collect_xsave):
5052 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5053 * README (typing): Remove duplicate words.
5054 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5055 * infrun.c (siginfo_value_read): Fix typo.
5056 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5057 * top.c (source_line_number): Add comma.
5058
5059 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5060
5061 * thread.c (any_live_thread_of_process): Prioritize threads
5062 that are not executing.
5063 * gdbthread.h (any_live_thread_of_process): Update comment
5064 as per above change.
5065
5066 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5067
5068 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5069 (scan_xcoff_symtab): Likewise.
5070
5071 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5072
5073 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5074 inside if clause.
5075
5076 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5077 Pedro Alves <pedro@codesourcery.com>
5078
5079 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5080 variables to simplify code and avoid == operator at end of
5081 line as this is against GNU coding standards.
5082
5083 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5084
5085 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5086 lm_name to name_lm to avoid conflict with lm_name function.
5087
5088 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5089
5090 ARI fixes: Use only lowercase function name for static functions.
5091 * nto-tdep.c (LM_ADDR): Rename to...
5092 (lm_addr): New function name.
5093 (nto_relocate_section_addresses): Adapt to change above.
5094 * solib-sunos.c (LM_ADDR): Rename to...
5095 (lm_addr): New function name.
5096 (LM_NEXT): Rename to...
5097 (lm_next): New function name.
5098 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5099 function name changes above.
5100 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5101 (lm_addr_from_link_map): New function name.
5102 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5103 (has_lm_dynamic_from_link_map): New function name.
5104 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5105 (lm_dynamic_from_link_map): New function name.
5106 (LM_ADDR_CHECK): Rename to...
5107 (lm_addr_check): New function name.
5108 (LM_NEXT): Rename to...
5109 (lm_next): New function name.
5110 (LM_PREV): Rename to...
5111 (lm_prev): New function name.
5112 (LM_NAME): Rename to...
5113 (lm_name): New function name.
5114 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5115 (ignore_first_link_map_entry): New function name.
5116 (svr4_keep_data_in_core): Adapt to function name changes above.
5117 (svr4_current_sos): Likewise.
5118 (enable_break): Likewise.
5119 (svr4_relocate_section_addresses): Likewise.
5120
5121 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5122
5123 ARI cleanup.
5124 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5125 sprintf. Simplify code and avoid loosing memory.
5126 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5127 (call0_frame_cache): Remove && operator from end of line.
5128
5129 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5130
5131 Fix libraries displacement if they change whether they were prelinked.
5132 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5133 does not match. Comment why.
5134
5135 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5136
5137 * corelow.c: Include wrapper.h.
5138 (core_open): Call now gdb_target_find_new_threads.
5139 * wrapper.c: Include target.h.
5140 (gdb_target_find_new_threads): New.
5141 * wrapper.h (gdb_target_find_new_threads): New declaration.
5142
5143 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5144
5145 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5146 even if !TARGET_HAS_EXECUTION.
5147
5148 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5149
5150 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5151 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5152 bfd_get_synthetic_symtab.
5153 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5154 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5155 parameter parent, remove the call to add_separate_debug_objfile.
5156 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5157 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5158 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5159 parent, new comment for it, call add_separate_debug_objfile for it.
5160 (symbol_file_add_separate): Pass objfile as the parameter parent,
5161 remove the call to add_separate_debug_objfile.
5162 (symbol_file_add_from_bfd): New parameter parent, pass it.
5163 (symbol_file_add): Pass NULL to the new parameter parent.
5164 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5165
5166 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5167
5168 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5169 BSF_SYNTHETIC.
5170
5171 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5172
5173 Fix Python access to inlined frames.
5174 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5175 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5176
5177 2011-04-15 Tom Tromey <tromey@redhat.com>
5178
5179 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5180
5181 2011-04-15 Gary Benson <gbenson@redhat.com>
5182
5183 * MAINTAINERS: Add myself to write-after-approval section.
5184
5185 2011-04-14 Mike Frysinger <vapier@gentoo.org>
5186
5187 * remote-sim.c (sim_command_completer): New function.
5188 (_initialize_remote_sim): Set completer to sim_command_completer.
5189
5190 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5191
5192 * breakpoint.c (print_exception_catchpoint): Rename to ...
5193 (print_it_exception_catchpoint): ... this.
5194 (gnu_v3_exception_catchpoint_ops): Update with new name
5195 for print_it_exception_catchpoint.
5196
5197 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5198
5199 * MAINTAINERS: Add myself for write after approval privileges.
5200
5201 2011-04-13 Marek Polacek <mpolacek@redhat.com>
5202
5203 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5204
5205 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5206
5207 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5208
5209 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5210
5211 * breakpoint.c (save_breakpoints): Verify whether
5212 breakpoint_ops.print_recreate is defined before calling it.
5213
5214 2011-04-11 Gary Benson <gbenson@redhat.com>
5215
5216 Fix failure with --enable-maintainer-mode.
5217 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5218
5219 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5220
5221 Code cleanup.
5222 * symtab.c (search_symbols): Reorder the KIND description in the
5223 function comment. Remove the unused 4th element of types, types2,
5224 types3 and types4. New gdb_assert on KIND.
5225 (symtab_symbol_info): Remove the unused 4th element of classnames.
5226 New gdb_assert on KIND.
5227 * symtab.h (enum search_domain): New warning in the enum comment.
5228 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5229 TYPES_DOMAIN.
5230
5231 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5232
5233 Fix crash of gdb save-index on a STABS file.
5234 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5235 PSYMTABS_ADDRMAP.
5236
5237 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5238
5239 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5240 * dwarf2read.c: Include ctype.h.
5241 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5242 functions.
5243 (dwarf2_add_field): Fix new_field->accessibility by calling
5244 dwarf2_default_access_attribute. Restructure setting accessibility
5245 vs. virtuality.
5246 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5247 is_private and is_protected by calling
5248 dwarf2_default_access_attribute.
5249
5250 2011-04-08 Kevin Buettner <kevinb@redhat.com>
5251
5252 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5253 to the initialization.
5254
5255 2011-04-08 Steve Ellcey <sje@cup.hp.com>
5256
5257 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5258 initalization.
5259
5260 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5261
5262 Remove support for old Cygwin 1.5 versions.
5263 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5264 function on old Cygwin version.
5265 * windows-nat.c: Remove cygwin version check and always define
5266 __USEWIDE for Cygwin compilation.
5267
5268 2011-04-07 Yao Qi <yao@codesourcery.com>
5269
5270 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5271 and TO.
5272 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5273 (arm_copy_svc): Remove parameters INSN and TO.
5274 (decode_svc_copro): Update caller.
5275 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5276 from function pointer `copy_svc_os'.
5277
5278 2011-04-07 Yao Qi <yao@codesourcery.com>
5279
5280 * arm-tdep.c (cleanup_branch): Set a correct return address in
5281 LR for ARM and Thumb.
5282
5283 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 Code cleanup.
5286 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5287 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5288 in the function comment, a new note on values compatibility.
5289 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5290 * symtab.h (SYMBOL_HASH_NEXT): New.
5291
5292 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5293
5294 * ppc-linux-nat.c (check_condition): Add len output parameter.
5295 Set it based on the memory region referenced in the condition
5296 expression. Update all callers.
5297
5298 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5299
5300 Fix crash regression on systems featuring .gdb_index.
5301 * objfiles.c (free_objfile): Move the
5302 forget_cached_source_info_for_objfile call earlier. Comment it.
5303 Extend the comment for objfile_free_data.
5304
5305 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5306
5307 Fix regression of displaying the debug format.
5308 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5309 subfile.
5310
5311 2011-04-04 Tom Tromey <tromey@redhat.com>
5312
5313 * cli/cli-interp.c (struct captured_execute_command_args):
5314 Remove.
5315 (do_captured_execute_command): Remove.
5316 (safe_execute_command): Use TRY_CATCH.
5317 * cli/cli-script.c (struct wrapped_read_command_file_args):
5318 Remove.
5319 (wrapped_read_command_file): Remove.
5320 (script_from_file): Use TRY_CATCH.
5321 * exceptions.c (catch_exception): Remove.
5322 * exceptions.h (catch_exception): Remove.
5323 (deprecated_throw_reason): Update comment.
5324 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
5325 argument to 'context'.
5326 (mi_execute_command): Use TRY_CATCH.
5327 * remote.c (struct start_remote_args): Remove.
5328 (remote_start_remote): Update; change arguments.
5329 (remote_open_1): Use TRY_CATCH.
5330
5331 2011-04-04 Tom Tromey <tromey@redhat.com>
5332
5333 * tracepoint.c (scope_info): Update.
5334 * symtab.c (decode_line_spec): Update.
5335 * python/python.c (gdbpy_decode_line): Update.
5336 * linespec.h (decode_line_1): Update.
5337 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
5338 (decode_compound, find_method, symtab_from_filename)
5339 (decode_variable): Likewise.
5340 * cli/cli-cmds.c (edit_command): Update.
5341 (list_command): Update.
5342 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
5343 argument.
5344 (create_breakpoint): Update.
5345 (until_break_command): Update.
5346 (addr_string_to_sals): Update.
5347 (decode_line_spec_1): Update.
5348
5349 2011-04-04 Tom Tromey <tromey@redhat.com>
5350
5351 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
5352 (do_captured_parse_breakpoint): Remove.
5353 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
5354 Use TRY_CATCH directly.
5355
5356 2011-04-04 Tom Tromey <tromey@redhat.com>
5357
5358 * symtab.h (free_symtab): Remove.
5359 (forget_cached_source_info_for_objfile): Declare.
5360 * symmisc.c (free_symtab): Remove.
5361 * source.c (forget_cached_source_info_for_objfile): New function.
5362 (forget_cached_source_info): Use it.
5363 * objfiles.c (free_objfile): Simplify check before calling
5364 clear_current_source_symtab_and_line. Call
5365 forget_cached_source_info_for_objfile.
5366
5367 2011-04-04 Tom Tromey <tromey@redhat.com>
5368
5369 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
5370 (new_symtab): Don't set `free_code' on symtab.
5371 (new_linetable): Properly handle size==0.
5372 * symtab.h (struct symtab) <free_code, free_func>: Remove.
5373 * symmisc.c (free_symtab): Don't free the linetable. Don't call
5374 free_func.
5375 * jv-lang.c (struct jv_per_objfile_data): New.
5376 (jv_per_objfile_free): Free the data.
5377 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
5378 (get_java_class_symtab): Set the `dict' field on the
5379 jv_per_objfile_data.
5380 (free_class_block): Remove.
5381 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
5382 the symtab.
5383
5384 2011-04-04 Tom Tromey <tromey@redhat.com>
5385
5386 * symfile.c (reread_symbols): Update.
5387 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
5388 field.
5389 * objfiles.c (allocate_objfile): Update.
5390 * cp-support.h (cp_check_possible_namespace_symbols): Don't
5391 declare.
5392 * cp-namespace.c (lookup_symbol_file): Don't call
5393 lookup_possible_namespace_symbol.
5394 (initialize_namespace_symtab, get_possible_namespace_block)
5395 (free_namespace_block, cp_check_possible_namespace_symbols)
5396 (check_possible_namespace_symbols_loop)
5397 (check_one_possible_namespace_symbol)
5398 (lookup_possible_namespace_symbol): Remove.
5399 (maintenance_cplus_namespace): Replace with notice.
5400 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
5401
5402 2011-04-04 Tom Tromey <tromey@redhat.com>
5403
5404 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
5405 * symtab.h (struct symtab) <producer, debugformat>: Now const.
5406 * symmisc.c (free_symtab): Don't free debugformat.
5407 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
5408 (record_debugformat, record_producer): Document.
5409 * buildsym.c (end_symtab): Don't save debugformat and producer
5410 names on obstack.
5411 (end_symtab): Don't free debugformat and producer fields.
5412 (record_debugformat): Don't call xstrdup.
5413 (record_producer): Likewise.
5414
5415 2011-04-04 Tom Tromey <tromey@redhat.com>
5416
5417 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
5418 (source_line_charpos, source_charpos_line): Remove.
5419
5420 2011-04-04 Tom Tromey <tromey@redhat.com>
5421
5422 * symtab.h (domain_enum): Split in two...
5423 (enum search_domain): New.
5424 (search_symbols): Update.
5425 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
5426 redundant declarations.
5427 (search_symbols): Change 'kind' argument to search_domain.
5428 Update.
5429 (print_symbol_info): Likewise.
5430 (symtab_symbol_info): Likewise.
5431 * symfile.h (struct quick_symbol_functions)
5432 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
5433 <expand_symtabs_matching>: Likewise.
5434 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
5435 (expand_symtabs_matching_via_partial): Update.
5436 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
5437 (dw2_expand_symtabs_for_function): Update.
5438 * block.h: Moved anonymous enum...
5439 * defs.h (enum block_enum): ... here. Now named.
5440
5441 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5442
5443 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
5444 * version.in: Bump version to 7.3.50.20110403-cvs.
5445
5446 2011-04-03 Joel Brobecker <brobecker@adacore.com>
5447
5448 * NEWS: Create a new section for the next release branch.
5449 Rename the section of the current branch, now that it has
5450 been cut.
5451
5452 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5453
5454 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
5455 for "fpscr" in target description.
5456
5457 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5458
5459 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
5460 initialize it. Delay HASH initialization. Strip the part after open
5461 parenthesis for languages with qualifiers. Call do_cleanups.
5462
5463 2011-04-01 Tom Tromey <tromey@redhat.com>
5464
5465 * utils.c (report_command_stats): Don't print `-' for negative
5466 number.
5467
5468 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
5469
5470 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
5471 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
5472 typedefs.
5473
5474 2011-04-01 Joel Brobecker <brobecker@adacore.com>
5475
5476 * breakpoint.h (bpdisp_text): Add declaration.
5477 * breakpoint.c (bpdisp_text): Make non-static.
5478 * ada-lang.c: #include "mi/mi-common.h".
5479 (print_it_exception): Rewrite to improve GDB/MI output.
5480
5481 2011-04-01 Pedro Alves <pedro@codesourcery.com>
5482
5483 * arm-tdep.h (struct address_space): Add forward declaration.
5484
5485 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5486
5487 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
5488 * arm-tdep.c (arm_override_mode): New global.
5489 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
5490 execution mode heuristics.
5491 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
5492 second single-step breakpoint if needed, using
5493 arm_insert_single_step_breakpoint.
5494 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
5495 ARM execution mode, do not call thumb_get_next_pc_raw.
5496 (arm_get_next_pc): Encode execution mode in return value. Call
5497 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5498 (arm_insert_single_step_breakpoint): New function.
5499 (arm_software_single_step): Call it.
5500 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5501 argument to return execution mode of sigreturn target.
5502 (arm_linux_syscall_next_pc): Use it.
5503 (arm_linux_copy_svc): Update call.
5504 (arm_linux_software_single_step): Call
5505 arm_insert_single_step_breakpoint.
5506
5507 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5508
5509 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5510 the comment.
5511
5512 2011-03-31 Tom Tromey <tromey@redhat.com>
5513
5514 * varobj.c (update_dynamic_varobj_children): Properly handle
5515 errors from iterator.
5516
5517 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5518
5519 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
5520 struct linkage name twice.
5521
5522 2011-03-31 Tom Tromey <tromey@redhat.com>
5523
5524 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5525 missing ">" to message.
5526
5527 2011-03-31 Tom Tromey <tromey@redhat.com>
5528
5529 * varobj.c (instantiate_pretty_printer): Remove duplicate
5530 'return'.
5531
5532 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
5533
5534 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5535 if neither saved value nor register available (e.g. signal frame).
5536
5537 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5538
5539 * macroexp.c (expand): Avoid uninitialized variable
5540 compiler warning.
5541
5542 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5543
5544 * breakpoint.c (break_range_command): Fix typo in comment.
5545
5546 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5547 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5548
5549 Implement support for PowerPC BookE ranged breakpoints.
5550 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5551 * breakpoint.h (struct bp_target_info) <length>: New member
5552 variable.
5553 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5554 instead of struct breakpoint as argument, and also add ASPACE
5555 and BP_ADDR arguments. Update all callers.
5556 (struct breakpoint_ops) <print_one_detail>: New method.
5557 (struct breakpoint) <addr_string_range_end>: New member variable.
5558 * breakpoint.c (breakpoint_location_address_match): Add function
5559 prototype.
5560 (insert_bp_location): Set bl->target_info.length.
5561 (breakpoint_here_p): Call breakpoint_location_address_match.
5562 (moribund_breakpoint_here_p): Likewise.
5563 (regular_breakpoint_inserted_here_p): Likewise.
5564 (breakpoint_thread_match): Likewise.
5565 (bpstat_stop_status): Likewise.
5566 (bpstat_check_location): Move call to
5567 breakpoint_ops.breakpoint_hit to the top.
5568 (print_one_breakpoint_location): Call
5569 breakpoint_ops.print_one_detail if available.
5570 (breakpoint_address_match_range): New function.
5571 (breakpoint_location_address_match): Likewise.
5572 (breakpoint_locations_match): Compare the length field of the
5573 locations too.
5574 (hw_breakpoint_used_count): Count resources used by all locations
5575 in a breakpoint, and use breakpoint_ops.resources_needed if
5576 available.
5577 (breakpoint_hit_ranged_breakpoint): New function.
5578 (resources_needed_ranged_breakpoint): Likewise.
5579 (print_it_ranged_breakpoint): Likewise.
5580 (print_one_ranged_breakpoint): Likewise.
5581 (print_one_detail_ranged_breakpoint): Likewise.
5582 (print_mention_ranged_breakpoint): Likewise.
5583 (print_recreate_ranged_breakpoint): Likewise.
5584 (ranged_breakpoint_ops): New structure.
5585 (find_breakpoint_range_end): New function.
5586 (break_range_command): Likewise.
5587 (delete_breakpoint): Free addr_string_range_end.
5588 (update_breakpoint_locations): Add SALS_END argument. Update
5589 all callers. Calculate breakpoint length if a non-zero SALS_END
5590 is given. Call breakpoint_locations_match instead of
5591 breakpoint_address_match.
5592 (reset_breakpoint): Find SaL of the end of the range if B is a
5593 ranged breakpoint.
5594 (_initialize_breakpoint): Register break-range command.
5595 * defs.h (print_core_address): Add function prototype.
5596 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5597 function.
5598 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5599 (ppc_linux_remove_hw_breakpoint): Likewise.
5600 (_initialize_ppc_linux_nat): Initialize
5601 to_ranged_break_num_registers.
5602 * target.c (update_current_target): Add comment about
5603 to_ranged_break_num_registers.
5604 (target_ranged_break_num_registers): New function.
5605 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5606 New method.
5607 (target_ranged_break_num_registers): Add function prototype.
5608 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5609 * utils.c (print_core_address): ... here.
5610
5611 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5612
5613 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5614 variable compiler warning.
5615
5616 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5617
5618 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5619 code from here ...
5620 (re_set_breakpoint): ... to here ...
5621 (addr_string_to_sals): ... and here.
5622
5623 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5624
5625 * Makefile.in (SFILES): Add missing C sources.
5626 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5627 Add missing headers.
5628
5629 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5630
5631 * .gitignore: New file.
5632
5633 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5634
5635 * NEWS: Mention new cfi device simulation.
5636
5637 2011-03-29 Tom Tromey <tromey@redhat.com>
5638
5639 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5640 otherwise anonymous types.
5641 (dwarf2_name): Likewise.
5642 * valops.c (value_struct_elt_for_reference): Refine artificial
5643 type logic. Call error if j==-1.
5644
5645 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5646
5647 Fix false GCC warning.
5648 * infcall.c (find_function_addr): Initialize funaddr.
5649
5650 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5651
5652 Fix mingw compilation with --enable-targets=all.
5653 * remote-mips.c (gdb_usleep.h): Include header.
5654 (mips_enter_debug): Use gdb_usleep instead of sleep.
5655
5656 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5657
5658 Support resolution of STT_GNU_IFUNC via breakpoints.
5659 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5660 bp_gnu_ifunc_resolver_return.
5661 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5662 the loop. Support bp_gnu_ifunc_resolver and
5663 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5664 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5665 breakpoints.
5666 (bptype_string, print_one_breakpoint_location): Support
5667 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5668 (user_settable_breakpoint): Return true also for
5669 bp_gnu_ifunc_resolver.
5670 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5671 bp_gnu_ifunc_resolver_return.
5672 (set_breakpoint_location_function): New parameter explicit_loc,
5673 describe it. Call find_pc_partial_function_gnu_ifunc with new
5674 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5675 EXPLICIT_LOC is not set.
5676 (set_raw_breakpoint): Set EXPLICIT_LOC for
5677 set_breakpoint_location_function.
5678 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5679 set_breakpoint_location_function.
5680 (mention): Support bp_gnu_ifunc_resolver and
5681 bp_gnu_ifunc_resolver_return.
5682 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5683 set_breakpoint_location_function.
5684 (update_breakpoint_locations): Remove static.
5685 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5686 bp_gnu_ifunc_resolver_return.
5687 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5688 bp_gnu_ifunc_resolver_return.
5689 (update_breakpoint_locations): New declaration.
5690 * elfread.c: Include gdbthread.h and regcache.h.
5691 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5692 functions.
5693 (elf_gnu_ifunc_fns): Install them.
5694 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5695 (stub_gnu_ifunc_resolver_return_stop): New functions.
5696 (stub_gnu_ifunc_fns): Install them.
5697 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5698 and gnu_ifunc_resolver_return_stop.
5699 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5700
5701 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5702
5703 STT_GNU_IFUNC reader implementation.
5704 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5705 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5706 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5707 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5708 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5709 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5710 (elf_gnu_ifunc_resolve_addr): New.
5711 (elf_symfile_read): Call elf_rel_plt_read.
5712 (elf_gnu_ifunc_fns): New.
5713 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5714 Install elf_gnu_ifunc_fns.
5715 * infcall.c (find_function_return_type): New function.
5716 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5717 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5718 (stub_gnu_ifunc_resolve_name): New functions.
5719 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5720 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5721 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5722
5723 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5724
5725 Code cleanup for later STT_GNU_IFUNC support.
5726 * infcall.c (find_function_addr): Remove variable code, use explicit
5727 dereferences for it. Move VALUE_TYPE initialization later.
5728
5729 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5730
5731 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5732 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5733 (clear_pc_function_cache): Clear it.
5734 (find_pc_partial_function): Rename to ...
5735 (find_pc_partial_function_gnu_ifunc): ... this function. New
5736 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5737 (find_pc_partial_function): New wrapper for this function.
5738 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5739
5740 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5741
5742 GDB internal type support for STT_GNU_IFUNC.
5743 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5744 (elf_symtab_read): Set mst_text_gnu_ifunc for
5745 BSF_GNU_INDIRECT_FUNCTION.
5746 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5747 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5748 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5749 nodebug_got_plt_symbol.
5750 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5751 (TYPE_GNU_IFUNC): New.
5752 (struct main_type): New field flag_gnu_ifunc.
5753 (struct builtin_type): New field builtin_func_func.
5754 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5755 nodebug_got_plt_symbol.
5756 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5757 (in_gnu_ifunc_stub): New.
5758 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5759 mst_text_gnu_ifunc.
5760 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5761 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5762 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5763 in_gnu_ifunc_stub.
5764 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5765 * symtab.c (search_symbols): Likewise.
5766 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5767 and mst_slot_got_plt.
5768 (in_gnu_ifunc_stub): New declaration.
5769
5770 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5771
5772 Support a ring of related breakpoints.
5773 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5774 other functions, add gdb_assert.
5775 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5776 watchpoint_del_at_next_stop.
5777 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5778 (bpstat_stop_status): Handle ring in related_breakpoint.
5779 (set_raw_breakpoint_without_location): Initialize ring in
5780 related_breakpoint.
5781 (delete_breakpoint): Handle ring in related_breakpoint, use
5782 watchpoint_del_at_next_stop.
5783 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5784
5785 2011-03-28 Tom Tromey <tromey@redhat.com>
5786
5787 PR symtab/12441:
5788 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5789 with `language_minimal'.
5790
5791 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5792
5793 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5794 instead of checking for STT_ARM_TFUNC symbol type.
5795
5796 2011-03-25 Tom Tromey <tromey@redhat.com>
5797
5798 * linespec.c (symbol_found): Restore line-based result for
5799 non-LOC_LABEL symbols.
5800
5801 2011-03-25 Kai Tietz <ktietz@redhat.com>
5802
5803 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5804 instead of strcmp for comparison.
5805 (tui_source_is_displayed): Likewise.
5806 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5807
5808 2011-03-24 Mark Wielaard <mjw@redhat.com>
5809
5810 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5811 complaint.
5812 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5813 (find_partial_die_in_comp_unit): Likewise in comment.
5814 (read_attribute_value): Likewise.
5815 (lookup_die_type): Likewise.
5816 (dwarf_form_name): Likewise.
5817 (dump_die_shallow): Likewise.
5818 (follow_die_ref_or_sig): Likewise.
5819
5820 2011-03-24 Tom Tromey <tromey@redhat.com>
5821
5822 PR breakpoints/11816:
5823 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5824 (decode_compound): Update.
5825 (find_function_symbol): New function.
5826 (decode_dollar): Update.
5827 (decode_label): Add 'function_symbol' parameter. Handle
5828 function-relative labels.
5829 (decode_variable): Update.
5830 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5831 not its line. Set `special_display' and canonical name for
5832 labels.
5833
5834 2011-03-24 Tom Tromey <tromey@redhat.com>
5835
5836 * linespec.h (struct linespec_result) <special_display>: New
5837 field.
5838 * breakpoint.h (struct breakpoint) <display_canonical>: New
5839 field.
5840 * breakpoint.c (print_breakpoint_location): Respect
5841 display_canonical.
5842 (create_breakpoint_sal): Add 'display_canonical' parameter.
5843 (create_breakpoints_sal): Update.
5844 (create_breakpoint): Update.
5845
5846 2011-03-24 Tom Tromey <tromey@redhat.com>
5847
5848 * symtab.c (decode_line_spec): Update.
5849 * linespec.c (build_canonical_line_spec): Change type of
5850 'canonical'.
5851 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5852 (find_method, decode_all_digits, decode_dollar, decode_label)
5853 (symbol_found): Likewise.
5854 (init_linespec_result): New function.
5855 * breakpoint.c (struct captured_parse_breakpoint_args)
5856 <canonical_p>: New field, replaces addr_string_p.
5857 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5858 'addr_string'.
5859 (parse_breakpoint_sals): Likewise.
5860 (do_captured_parse_breakpoint): Update.
5861 (create_breakpoint): Use struct linespec_result.
5862 (until_break_command): Update.
5863 (breakpoint_re_set_one): Update.
5864 (decode_line_spec_1): Update.
5865 * linespec.h (struct linespec_result): New.
5866 (init_linespec_result): Declare.
5867
5868 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5869
5870 * regcache.c (regcache_raw_read): If the target didn't supply a
5871 given raw register, mark it as unavailable.
5872
5873 2011-03-23 Kai Tietz <ktietz@redhat.com>
5874
5875 * breakpoint.c (clear_command): Use filename_cmp
5876 instead of strcmp for comparison.
5877 * buildsym.c (watch_main_source_file_lossage): Likewise.
5878 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5879 checking just for slash.
5880 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5881 strrchr and filename_cmp instead of strcmp for filenames.
5882 (add_old_header_file): Use filename_cmp
5883 instead of strcmp for comparison.
5884 * exec.c (exec_set_section_address): Likewise.
5885 * macrotab.c (macro_lookup_inclusion): Likewise.
5886 (macro_lookup_inclusion): Likewise.
5887 * elfread.c (_initialize_elfread): Likewise.
5888 (elfstab_offset_sections): Likewise.
5889 (elfstab_offset_sections): Use lbasename instead of
5890 strrchr.
5891 * mdebugread.c (parse_partial_symbols): Likewise.
5892 (arse_partial_symbols): Use filename_(n)cmp instead of
5893 str(n)cmp for comparison.
5894 * minsyms.c (lookup_minimal_symbol): Likewise.
5895 * psymtab.c (read_psymtabs_with_filename): Likewise.
5896 * solib.c (solib_read_symbols): Likewise.
5897 (reload_shared_libraries_1): Likewise.
5898 * symmisc.c (maintenance_print_symbols): Likewise.
5899 * symfile.c (separate_debug_file_exists): Likewise.
5900 (reread_symbols): Likewise.
5901 (find_separate_debug_file_by_debuglink): Likewise.
5902 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5903 * source.c (add_path): Likewise.
5904 * symtab.c (filename_seen): Likewise.
5905 (file_matches): Likewise.
5906 (print_symbol_info): Likewise.
5907 (maybe_add_partial_symtab_filename): Likewise.
5908 (make_source_files_completion_list): Likewise.
5909 * xml-syscall.c (init_sysinfo): Likewise.
5910 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5911 IS_DIR_SEPARATOR for checking for trailing path separator.
5912
5913 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5914
5915 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5916 label abort_expression.
5917 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5918 DWARF_VALUE_OPTIMIZED_OUT.
5919
5920 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 Code cleanup.
5923 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5924 to linkage_name. Invert its value. Update the function comment.
5925 (c_type_print_varspec_suffix): Invert it at the caller.
5926 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5927
5928 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5929
5930 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5931 errors when reading the `stop_pc'.
5932 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5933 get_frame_pc.
5934
5935 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5936
5937 * NEWS: Document gdb.Write stream keyword.
5938
5939 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5940
5941 Revert:
5942 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5943 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5944 (dwarf2_add_field): Fix new_field->accessibility for
5945 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5946
5947 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5948
5949 PR python/12183
5950
5951 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5952 other error classes. Do not print stack trace.
5953
5954 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5957 (dwarf2_add_field): Fix new_field->accessibility for
5958 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5959
5960 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5961
5962 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5963 encountering a load via a non-SP register.
5964
5965 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5966
5967 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5968 field in returned unwinder.
5969
5970 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5971
5972 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5973
5974 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5975
5976 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5977 of xmalloc.
5978
5979 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5980
5981 * frame.c (frame_unwind_register): Throw an error if unwinding the
5982 register failed.
5983 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5984 an unwind stop reason.
5985 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5986 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5987 UNWIND_UNAVAILABLE>: New.
5988 * inline-frame.c (inline_frame_unwind): Install
5989 default_frame_unwind_stop_reason.
5990 * frame-unwind.c: Include "exceptions.h".
5991 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5992 (default_frame_unwind_stop_reason): New.
5993 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5994 (default_frame_unwind_stop_reason): Declare.
5995 (struct frame_unwind) <stop_reason>: New function pointer.
5996
5997 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5998 * dwarf2-frame.c: Include exceptions.h.
5999 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6000 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6001 computing the CFA. If such an error was thrown, set
6002 unavailable_retaddr.
6003 (dwarf2_frame_unwind_stop_reason): New.
6004 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6005 unavailable.
6006 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6007 (dwarf2_signal_frame_unwind): Ditto.
6008
6009 * amd64-tdep.c: Include "exceptions.h".
6010 (struct amd64_frame_cache): New field "base_p".
6011 (amd64_init_frame_cache): Clear it.
6012 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6013 Avoid reading registers with functions that throw if the register
6014 is not necessary to compute the frame base.
6015 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6016 swallowing NOT_AVAILABLE_ERROR.
6017 (amd64_frame_unwind_stop_reason): New.
6018 (amd64_frame_this_id): Don't build a frame id if the frame base
6019 was unavailable.
6020 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6021 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6022 base_p if the frame base was computable.
6023 (amd64_sigtramp_frame_unwind_stop_reason): New.
6024 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6025 frame base was unavailable.
6026 (amd64_sigtramp_frame_unwind): Install
6027 amd64_sigtramp_frame_unwind_stop_reason.
6028 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6029 base_p if the frame base was computable.
6030 (amd64_epilogue_frame_unwind_stop_reason): New.
6031 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6032 frame base was unavailable.
6033 (amd64_epilogue_frame_unwind): Install
6034 amd64_epilogue_frame_unwind_stop_reason.
6035 * i386-tdep.c: Include "exceptions.h".
6036 (struct i386_frame_cache): New field "base_p".
6037 (i386_init_frame_cache): Clear it.
6038 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6039 Avoid reading registers with functions that throw if the register
6040 is not necessary to compute the frame base.
6041 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6042 swallowing NOT_AVAILABLE_ERROR.
6043 (i386_frame_unwind_stop_reason): New.
6044 (i386_frame_this_id): Don't build a frame id if the frame base was
6045 unavailable.
6046 (i386_frame_prev_register): Handle unavailable SP.
6047 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6048 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6049 base_p if the frame base was computable.
6050 (i386_epilogue_frame_unwind_stop_reason): New.
6051 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6052 base was unavailable.
6053 (i386_epilogue_frame_unwind): Install
6054 i386_epilogue_frame_unwind_stop_reason.
6055 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6056 base_p if the frame base was computable.
6057 (i386_sigtramp_frame_unwind_stop_reason): New.
6058 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6059 base was unavailable.
6060 (i386_sigtramp_frame_unwind): Install
6061 i386_sigtramp_frame_unwind_stop_reason.
6062 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6063 type's size, not the register's.
6064 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6065
6066 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6067 default_frame_unwind_stop_reason.
6068 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6069 (alpha_heuristic_frame_unwind): Ditto.
6070 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6071 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6072 * avr-tdep.c (avr_frame_unwind): Ditto.
6073 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6074 Ditto.
6075 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6076 * frv-tdep.c (frv_frame_unwind): Ditto.
6077 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6078 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6079 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6080 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6081 (hppa_stub_frame_unwind): Ditto.
6082 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6083 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6084 (ia64_libunwind_frame_unwind)
6085 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6086 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6087 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6088 * m32c-tdep.c (m32c_unwind): Ditto.
6089 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6090 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6091 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6092 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6093 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6094 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6095 * mep-tdep.c (mep_frame_unwind): Ditto.
6096 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6097 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6098 (mips_stub_frame_unwind): Ditto.
6099 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6100 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6101 * mt-tdep.c (mt_frame_unwind): Ditto.
6102 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6103 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6104 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6105 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6106 (s390_sigtramp_frame_unwind): Ditto.
6107 * score-tdep.c (score_prologue_unwind): Ditto.
6108 * sh-tdep.c (sh_frame_unwind): Ditto.
6109 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6110 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6111 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6112 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6113 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6114 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6115 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6116 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6117 (sparc64obsd_trapframe_unwind): Ditto.
6118 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6119 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6120 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6121 * v850-tdep.c (v850_frame_unwind): Ditto.
6122 * vax-tdep.c (vax_frame_unwind): Ditto.
6123 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6124 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6125 * xtensa-tdep.c (xtensa_unwind): Ditto.
6126
6127 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6128
6129 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6130 there's always a frame. Use get_frame_pc_if_available instead of
6131 get_frame_pc, and if there's no PC available, don't look up a
6132 symtab.
6133
6134 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6135
6136 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6137 unavailable PC.
6138
6139 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6140
6141 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6142 gracefully.
6143
6144 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6145
6146 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6147 * frame.c (frame_unwind_caller_pc_if_available): New.
6148 * stack.c (frame_info): Handle unavailable PC.
6149
6150 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6151
6152 * frame.c (frame_unwind_pc): Rename to ...
6153 (frame_unwind_pc_if_available): ... this. New `pc' output
6154 parameter. Change return type to int. Gracefully handle
6155 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6156 happened, or 1 otherwise.
6157 (frame_unwind_pc): Reimplement on top of
6158 frame_unwind_pc_if_available.
6159 (get_frame_func): Rename to ...
6160 (get_frame_func_if_available): New `pc' output parameter. Change
6161 return type to int. Gracefully handle the PC not being available.
6162 (get_frame_func): Reimplement on top of
6163 get_frame_func_if_available.
6164 (select_frame): Handle the PC being unavailable.
6165 (get_prev_frame): Handle the PC being unavailable.
6166 (get_frame_pc_if_available): New.
6167 (get_frame_address_in_block_if_available): New.
6168 (find_frame_sal): Handle the frame PC not being available.
6169 * frame.h (get_frame_pc_if_available): Declare.
6170 (get_frame_address_in_block_if_available): Declare.
6171 (get_frame_func_if_available): Declare.
6172 * stack.c (print_frame_info): Handle the PC being unavailable.
6173 (find_frame_funname): Ditto.
6174 (print_frame): Handle the PC being unavailable.
6175 (get_frame_language): Ditto.
6176 * blockframe.c (get_frame_block): Ditto.
6177 * macroscope.c (default_macro_scope): Ditto.
6178 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6179
6180 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6181
6182 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6183 NOT_AVAILABLE_ERROR when evaluating the location expression.
6184
6185 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6186
6187 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6188 returning that the register piece is unavailable/optimized out.
6189 (write_pieced_value): Handle get_frame_register_bytes returning
6190 that the register piece is unavailable/optimized out when doing a
6191 read-modify write of a bitfield.
6192 * findvar.c (value_from_register): Handle get_frame_register_bytes
6193 returning that the register piece is unavailable/optimized out.
6194 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6195 and `unavailablep'. Throw error on bad debug info. Use
6196 frame_register instead of frame_register_read, to fill in the new
6197 arguments.
6198 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6199 and `unavailablep'.
6200 * valops.c: (value_assign): Adjust, and handle
6201 get_frame_register_bytes failing.
6202 * spu-tdep.c: Include exceptions.h.
6203 (spu_software_single_step): Adjust, and handle
6204 get_frame_register_bytes failing.
6205 (spu_get_longjmp_target): Ditto.
6206 * gdbarch.sh (register_to_value): Change to return int. New
6207 parameters `optimizedp' and `unavailablep'.
6208 * gdbarch.h, gdbarch.c: Regenerate.
6209 * i386-tdep.c (i386_register_to_value): Adjust to new
6210 gdbarch_register_to_value interface.
6211 * i387-tdep.c (i387_register_to_value): Ditto.
6212 * i387-tdep.h (i387_register_to_value): Ditto.
6213 * alpha-tdep.c (alpha_register_to_value): Ditto.
6214 * ia64-tdep.c (ia64_register_to_value): Ditto.
6215 * m68k-tdep.c (m68k_register_to_value): Ditto.
6216 * mips-tdep.c (mips_register_to_value): Ditto.
6217 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6218
6219 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6220
6221 * findvar.c (value_of_register): Mark the value as unavailable, if
6222 the register is unavailable.
6223 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6224 (frame_register): New `unavailablep' parameter.
6225 (frame_register_read): Update comment.
6226 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6227 Set it if the register is unavailable. If the register is
6228 unavailable, clear the output buffer.
6229 (frame_register): New `unavailablep' parameter. Pass it down.
6230 (frame_unwind_register): Adjust.
6231 (put_frame_register): Adjust.
6232 (frame_register_read): Adjust. Also return false if the register
6233 is not available.
6234 (frame_register_unwind_location): Adjust.
6235 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6236 is unavailable, mark the value accordingly.
6237 * stack.c (frame_info): Handle unavailable registers.
6238
6239 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6240
6241 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6242 simplify, using regcache_cooked_read.
6243
6244 2011-03-18 Pedro Alves <pedro@codesourcery.com>
6245
6246 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6247 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6248 (regcache_raw_read_unsigned, regcache_raw_read_part)
6249 (regcache_cooked_read, regcache_cooked_read_signed)
6250 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6251 (regcache_cooked_read_ftype): Change return to enum
6252 register_status.
6253 * regcache.c: Include exceptions.h
6254 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6255 (do_cooked_read): Change return to enum register_status. Always
6256 forward to regcache_cooked_read.
6257 (regcache_raw_read): Change return to enum register_status. If
6258 the register is not REG_VALID, memset the buffer. Return the
6259 register's status.
6260 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6261 return the register's status.
6262 (regcache_raw_read_unsigned): Ditto.
6263 (regcache_cooked_read): Change return to enum register_status.
6264 Assert that with read-only regcaches, the register's status must
6265 be known. If the regcache is read-only, and the register is not
6266 REG_VALID, memset the buffer. Return the register's status.
6267 (regcache_cooked_read_signed): Change return to enum
6268 register_status. Handle non-REG_VALID registers and return the
6269 register's status.
6270 (regcache_cooked_read_unsigned): Change return to enum
6271 register_status. Handle non-REG_VALID registers and return the
6272 register's status.
6273 (regcache_xfer_part, regcache_raw_read_part)
6274 (regcache_cooked_read_part): Change return to enum
6275 register_status. Return the register's status.
6276 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6277 unavailable.
6278 (regcache_dump): Handle unavailable cooked registers.
6279 * frame.c (do_frame_register_read): Adjust interface to match
6280 regcache_cooked_read_ftype.
6281 * gdbarch.sh (pseudo_register_read): Change return to enum
6282 register_status.
6283 * gdbarch.h, gdbarch.c: Regenerate.
6284
6285 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6286 register_status.
6287 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6288 register_status. If reading a raw register indicates the raw
6289 register is not valid, return the raw register's status,
6290 otherwise, return REG_VALID.
6291 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6292 register_status. Handle non-REG_VALID raw registers and return
6293 the register's status.
6294 * arm-tdep.c (arm_neon_quad_read)
6295 (arm_pseudo_read): Change return to enum register_status. Handle
6296 non-REG_VALID raw registers and return the register's status.
6297 * avr-tdep.c (avr_pseudo_register_read): Ditto.
6298 * frv-tdep.c (frv_pseudo_register_read): Ditto.
6299 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6300 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6301 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6302 register_status.
6303 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6304 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6305 (m32c_part_write, m32c_cat_read, m32c_cat_write)
6306 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6307 (m32c_pseudo_register_read): Change return to enum
6308 register_status. Adjust.
6309 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6310 enum register_status. Return the register's status.
6311 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6312 register_status. Return the register's status.
6313 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6314 * mips-tdep.c (mips_pseudo_register_read): Ditto.
6315 * mt-tdep.c (mt_pseudo_register_read): Ditto.
6316 * rs6000-tdep.c (move_ev_register_func): New typedef.
6317 (e500_move_ev_register): Use it. Change return to enum
6318 register_status. Return the register's status.
6319 (do_regcache_raw_read): New function.
6320 (do_regcache_raw_write): New function.
6321 (e500_pseudo_register_read): Change return to enum
6322 register_status. Return the register's status. Use
6323 do_regcache_raw_read.
6324 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
6325 (dfp_pseudo_register_read): Change return to enum register_status.
6326 Return the register's status.
6327 (vsx_pseudo_register_read): Ditto.
6328 (efpr_pseudo_register_read): Ditto.
6329 (rs6000_pseudo_register_read): Ditto.
6330 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
6331 register_status. Return the register's status.
6332 * sh64-tdep.c (pseudo_register_read_portions): New function.
6333 (sh64_pseudo_register_read): Change return to enum
6334 register_status. Use pseudo_register_read_portions. Return the
6335 register's status.
6336 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
6337 register_status. Return the register's status.
6338 * sh-tdep.c (pseudo_register_read_portions): New function.
6339 (sh_pseudo_register_read): Change return to enum register_status.
6340 Use pseudo_register_read_portions. Return the register's status.
6341 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
6342 enum register_status. Return the register's status.
6343 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
6344 * spu-tdep.c (spu_pseudo_register_read_spu)
6345 (spu_pseudo_register_read): Ditto.
6346 * xtensa-tdep.c (xtensa_register_read_masked)
6347 (xtensa_pseudo_register_read): Ditto.
6348 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
6349
6350 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6351
6352 * python/py-value.c (valpy_getitem): Fix formatting of error function
6353 call.
6354
6355 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6356
6357 ARI fixes: Add missing internationalization markups throughout
6358 C source files.
6359 * darwin-nat-info.c: Ditto.
6360 * record.c: Ditto.
6361 * remote.c: Ditto.
6362 * mi/mi-main.c: Ditto.
6363
6364 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6365
6366 ARI fixes: Add missing internationalization markups throughout
6367 yacc files.
6368 * c-exp.y: Ditto.
6369 * cp-name-parser.y: Ditto.
6370 * f-exp.y: Ditto.
6371 * m2-exp.y: Ditto.
6372 * objc-exp.y: Ditto.
6373 * p-exp.y: Ditto.
6374
6375 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6376
6377 ARI fixes: Messages should have no trailing new lines.
6378 * darwin-nat.c (mach_check_error): Remove trailing new line from
6379 warning function call message.
6380 * record.c (bfdcore_read): Idem for error call.
6381
6382 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
6383
6384 * common/signals.c (target_signal_from_host): Add _ markup to error
6385 function call message.
6386 (target_signal_to_host): Add _ markup and remove trailing new line
6387 from warning call message.
6388 (target_signal_from_command): Add _ markup to error function call
6389 message.
6390
6391 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
6392
6393 PR python/12149
6394
6395 * python/python.c (gdbpy_write): Accept a stream argument and
6396 operate to the appropriate stream.
6397 (gdbpy_flush): Likewise.
6398 (_initialize_python): Add stream constants.
6399 (finish_python_initialization): Add GdbOutputErrorFile class.
6400
6401 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6402
6403 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6404
6405 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6406
6407 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
6408 to store_signed_integer. Add debug message when relocating CALL
6409 instructions. Fix formatting of debug message.
6410 * i386-tdep.c (i386_relocate_instruction): Ditto.
6411
6412 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6413
6414 * target.h (struct target_ops): Remove to_lookup_symbol field.
6415 (target_lookup_symbol): Delete macro.
6416 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
6417 (update_current_target, setup_target_debug): Remove handling
6418 of to_lookup_symbol target_ops field.
6419 * ada-tasks.c (get_known_tasks_addr): Remove use of
6420 target_lookup_symbol.
6421 * coffread.c (coff_symtab_read): Likewise.
6422 * dbxread.c (read_dbx_symtab): Ditto.
6423
6424 2011-03-17 Joel Brobecker <brobecker@gnat.com>
6425
6426 PR gdb/12116:
6427 * configure.ac: Add getthrds declaration check.
6428 * configure, config.in: Regenerate.
6429 * aix-thread.c (getthrds): Declare only if not already declared
6430 in procinfo.h. More declaration out of get_signaled_thread to
6431 global scope.
6432
6433 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
6434
6435 * python/py-symtab.c: Populate symtab_object_methods,
6436 sal_object_methods.
6437 (stpy_is_valid): New function.
6438 (salpy_is_valid): Ditto.
6439 * python/py-symbol.c: Declare symbol_object_methods. Populate.
6440 (sympy_is_valid): New function.
6441 * python/py-objfile.c: Declare objfile_object_methods. Populate.
6442 (objfpy_is_valid): New function.
6443 * python/py-inferior.c: Populate inferior_object_methods.
6444 (infpy_is_valid): New function.
6445 * python/py-infthread.c: Populate thread_object_methods.
6446 (thpy_is_valid): New function.
6447 * python/py-block.c: Declare block_object_methods. Populate. Declare
6448 block_iterator_object_methods. Populate.
6449 (blpy_is_valid): New function.
6450 (blpy_iter_is_valid): Ditto.
6451
6452 2011-03-16 Keith Seitz <keiths@redhat.com>
6453
6454 * linespec.c (find_methods): Canonicalize NAME before looking
6455 up the symbol.
6456 (name_end): New function.
6457 (keep_name_info): New function.
6458 (decode_line_1): Use keep_name_info.
6459 (decode_compound): Likewise.
6460 * cli/cli-utils.h (remove_trailing_whitespace): New function.
6461 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
6462
6463 PR c++/12273
6464 * linespec.c (locate_first_half): Keep overload information, too.
6465 (decode_compound): Use a string to represent break characters
6466 to escape the loop.
6467 If P points to a break character, do not increment it.
6468 For C++ and Java, keep overload information and relevant keywords.
6469 If we cannot find a symbol, search the minimal symbols.
6470
6471 PR c++/11734
6472 * linespec.c (decode_compound): Rename SAVED_ARG to
6473 THE_REAL_SAVED_ARG.
6474 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
6475 single-quotes.
6476 Pass a valid block to lookup_symbol.
6477 (lookup_prefix_sym): Likewise.
6478 (find_method): Construct search name based on SYM_CLASS instead
6479 of SAVED_ARG.
6480 * psymtab.c (lookup_partial_symbol): Add language parameter.
6481 (lookup_symbol_aux_psymtabs): Likewise.
6482 Don't assume that the psymtab we found was the right one. Search
6483 for the desired symbol in the symtab to be certain.
6484 (psymtab_search_name): New function.
6485 (lookup_partial_symbol): Use psymtab_search_name.
6486 Add language parameter.
6487 (read_symtabs_for_function): Add language parameter and pass to
6488 lookup_partial_symbol.
6489 (find_symbol_file_from_partial): Likewise.
6490
6491 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
6492
6493 PR gdb/12528
6494 * dwarf2read.c (noop_record_line): New function.
6495 (dwarf_decode_lines): Ignore line tables for GCd functions.
6496
6497 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6498
6499 Fix ARI warnings about new lines at the end of messages, which
6500 are unneeded as there is a new line added at the end of the message
6501 automatically.
6502 * darwin-nat.c (darwin_stop_inferior): Ditto.
6503 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6504 * dfp.c (decimal_to_number): Ditto.
6505 * exec.c (print_section_info): Ditto.
6506 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6507 * osdata.c (get_osdata): Ditto.
6508 * record.c (bfdcore_write): Ditto.
6509 * remote-mips.c (mips_readchar): Ditto.
6510 * remote.c (read_ptid): Ditto.
6511 * ser-mingw.c (ser_windows_raw): Ditto.
6512 * tracepoint.c (add_local_symbols): Ditto.
6513 * windows-nat.c (fake_create_process): Ditto.
6514
6515 2011-03-16 Tom Tromey <tromey@redhat.com>
6516
6517 * tracepoint.c (stop_tracing): Don't declare.
6518 * event-top.c (after_char_processing_hook): Add `(void)'.
6519
6520 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
6521
6522 * NEWS: Add Parameter sub-classing description.
6523
6524 2011-03-16 Kai Tietz <ktietz@redhat.com>
6525
6526 * MAINTAINERS: Update my e-mail address.
6527
6528 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
6529
6530 * MAINTAINERS: Add myself for write after approval privileges.
6531
6532 2011-03-15 Michael Snyder <msnyder@vmware.com>
6533
6534 * frame.c (find_frame_sal): Assert sym is not null.
6535
6536 * dbxread.c (process_one_symbol): Assert 'name' is not null.
6537
6538 * objc-lang.c (selectors_info): Check strchr for null result.
6539
6540 * stabsread.c (define_symbol): Guard against bad stabstring input.
6541
6542 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6543
6544 Remove trailing spaces and tabulations from pascal language
6545 support sources.
6546 p-exp.y: Ditto.
6547 p-lang.c: Ditto.
6548 p-lang.h: Ditto.
6549 p-valprint.c: Ditto.
6550
6551 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6552
6553 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6554 than LOW. Comment it.
6555 (read_partial_die): Call complaint for inappropriate zero LOWPC or
6556 HIGHPC not strictly higher than LOWPC.
6557
6558 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6559
6560 Fix formatting of function declarations returning a pointer in
6561 previous commit.
6562 * varobj.c (varobj_add_child): Ditto.
6563 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6564 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6565
6566 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6567
6568 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6569 for the "generic" vector ABI used with GCC 4.3 and later.
6570 (ppc64_sysv_abi_return_value): Likewise.
6571
6572 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6573
6574 * infcall.c (call_function_by_hand): Function return value is
6575 always a non_lval, even when using struct_return.
6576
6577 2011-03-15 Pedro Alves <pedro@codesourcery.com>
6578
6579 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6580 (map_display_numbers): New.
6581 (do_delete_display): New.
6582 (undisplay_command): Use map_display_numbers.
6583 (do_enable_disable_display): New.
6584 (enable_disable_display_command): New function.
6585 (enable_display): Delete.
6586 (enable_display_command): New.
6587 (disable_display_command): Reimplement.
6588 (_initialize_printcmd): Adjust "enable display" command to use
6589 `enable_display_command' as callback.
6590
6591 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6592
6593 * NEWS: Add Python breakpoint 'stop' operation.
6594
6595 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6596
6597 * NEWS: Delete duplicate entry. Fix typo.
6598
6599 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6600
6601 Fix ARI warning about function names in first column.
6602 Put prototype declaration on same line as return type.
6603 * objc-exp.y: Ditto.
6604 * p-exp.y: Ditto.
6605 * python/py-stopevent.h: Ditto.
6606 For long function names, split parameters to
6607 allow function name on same line as return type.
6608 * solib-pa64.c: Ditto.
6609 * varobj.c: Ditto.
6610 * varobj.h: Ditto.
6611 For long function declaration, use single line.
6612 * hppa-tdep.h: Ditto.
6613 * inferior.h: Ditto.
6614
6615 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6616
6617 * python/python.h: Declare gdbpy_should_stop and
6618 gdbpy_breakpoint_has_py_cond.
6619 * python/python.c: Add python.h to includes. Remove python.h from
6620 HAVE_PYTHON definition
6621 (gdbpy_should_stop): New dummy function.
6622 (gdbpy_breakpoint_has_py_cond): New dummy function.
6623 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6624 sub-classing capabilities.
6625 (gdbpy_should_stop): New function.
6626 (gdbpy_breakpoint_has_py_cond): New function.
6627 (local_setattro): New function.
6628 * breakpoint.c (condition_command): Add check for Python 'stop'
6629 operation.
6630 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6631 operation function as part of stop/continue tests.
6632
6633 2011-03-14 Tom Tromey <tromey@redhat.com>
6634
6635 PR gdb/12576:
6636 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6637 (needs_frame_dwarf_call): Likewise.
6638
6639 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6640
6641 Fix ARI warning about functions without parameters that do not
6642 use (void).
6643 * breakpoint.c (all_tracepoints): Replace () by (void).
6644 * f-exp.y (match_string_literal): Ditto.
6645 (yylex): Ditto.
6646 * m2-exp.y (yylex): Ditto.
6647 * mep-tdep.c (current_me_module): Ditto.
6648 (current_options): Ditto.
6649 (current_cop_data_bus_width): Ditto.
6650 (current_cr_names): Ditto.
6651 (current_cr_is_float): Ditto.
6652 (current_ccr_names): Ditto.
6653 * objc-exp.y (yylex): Ditto.
6654 * p-exp.y (yylex): Ditto.
6655 * remote.c (send_interrupt_sequence): Ditto.
6656 * tracepoint.c (current_trace_status): Ditto.
6657 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6658 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6659
6660 2011-03-11 Michael Snyder <msnyder@vmware.com>
6661
6662 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6663 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6664 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6665 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6666 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6667
6668 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6669 (delete_async_event_handler): Ditto.
6670
6671 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6672
6673 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6674
6675 * top.c (set_verbose): Assert showcmd was found.
6676
6677 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6678
6679 * xtensa-tdep.c (warning_once): Correct style issues.
6680
6681 2011-03-11 Yao Qi <yao@codesourcery.com>
6682
6683 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6684
6685 2011-03-11 Andreas Schwab <schwab@redhat.com>
6686
6687 * common/aclocal.m4: Remove.
6688
6689 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6690
6691 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6692 (xtensa_write_register, xtensa_read_register): Likewise.
6693 (xtensa_hextochar): Removed.
6694 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6695
6696 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6697
6698 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6699 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6700 (xtensa_alloc_frame_cache): Add initialization for new fields.
6701 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6702 (warning_once): New function.
6703 (xtensa_insn_kind): New item c0opc_and.
6704 (call0_classify_opcode): Add the case for AND instruction.
6705 (call0_track_op): Change arguments. New local variable litbase.
6706 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6707 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6708 in the prologue.
6709 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6710 (call0_analyze_prologue): Update the comments. Change arguments.
6711 Add the variety of updates to handle extended prologues, which now can
6712 conduct dynamic stack adjustments.
6713 (call0_frame_cache): Likewise.
6714 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6715 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6716
6717 2011-03-10 Michael Snyder <msnyder@vmware.com>
6718
6719 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6720 (cmd_qtframe): Ditto.
6721 (cmd_qtbuffer): Ditto.
6722 (cmd_bigqtbuffer): Ditto.
6723
6724 2011-03-10 Tom Tromey <tromey@redhat.com>
6725
6726 * tracepoint.c (trace_actions_command): Update.
6727 * thread.c (thread_apply_command): Update.
6728 * reverse.c (delete_bookmark_command): Update.
6729 (bookmarks_info): Update.
6730 * printcmd.c (undisplay_command): Update.
6731 * memattr.c (mem_enable_command): Update.
6732 (mem_disable_command): Update.
6733 (mem_delete_command): Update.
6734 * inferior.c (detach_inferior_command): Update.
6735 (kill_inferior_command): Update.
6736 (remove_inferior_command): Update.
6737 * cli/cli-utils.h (struct get_number_or_range_state): New.
6738 (init_number_or_range): Declare.
6739 (get_number_or_range): Update.
6740 * cli/cli-utils.c (init_number_or_range): New function.
6741 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6742 static variables.
6743 (number_is_in_list): Update.
6744 * breakpoint.h (get_tracepoint_by_number): Update.
6745 * breakpoint.c (map_breakpoint_numbers): Update for change to
6746 get_number_or_range.
6747 (find_location_by_number): Use get_number, not
6748 get_number_or_range.
6749 (trace_pass_set_count): New function.
6750 (trace_pass_command): Update for change to get_number_or_range.
6751 Rework loop logic.
6752 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6753 'state' parameter.
6754
6755 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6756
6757 * python/py-param.c (add_setshow_generic): Add set/show callback
6758 parameters. Register Python object context.
6759 (get_show_value): New function.
6760 (get_set_value): New function.
6761 (call_doc_function): New function.
6762 (get_doc_string): Move behind get_show_value/get_set_value.
6763
6764 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6765
6766 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6767
6768 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6769
6770 * xtensa-tdep.c (xtensa_read_register): Add comment.
6771 (xtensa_write_register): Likewise.
6772 (xtensa_hextochar): Add comment and update to match coding conventions.
6773 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6774 (execute_l32e, execute_s32e, execute_code): Update comments.
6775 (xtensa_exception_handler_t): Update to match coding conventions.
6776 (xtensa_insn_kind): Likewise.
6777
6778 2011-03-09 Michael Snyder <msnyder@vmware.com>
6779
6780 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6781
6782 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6783
6784 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6785
6786 2011-03-09 Tom Tromey <tromey@redhat.com>
6787
6788 * thread.c (restore_selected_frame): Handle frame_level == -1.
6789 (make_cleanup_restore_current_thread): Use
6790 get_selected_frame_if_set.
6791 * frame.h (get_selected_frame_if_set): Declare.
6792 * frame.c (get_selected_frame_if_set): New function.
6793
6794 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6795
6796 * cli/cli-cmds.c (shell_escape): Use lbasename.
6797 * coffread.c (coff_start_symtab): Constify parameter.
6798 (complete_symtab): Constify `name' parameter.
6799 (coff_symtab_read): Constify `filestring' local.
6800 (coff_getfilename): Constify return and `result' local.
6801 Use lbasename.
6802 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6803 * linux-fork.c (info_checkpoints_command): Use lbasename.
6804 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6805 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6806 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6807 * procfs.c (procfs_make_note_section): Use lbasename.
6808 * tui/tui-io.c (printable_part): Constity return and parameter.
6809 Use lbasename.
6810 (print_filename): Constify parameters, and local `s'.
6811 (tui_rl_display_match_list): Constify local `temp'.
6812
6813 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6814
6815 Revert:
6816 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6817 Fix DWARF-3+ DW_AT_accessibility default assumption.
6818 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6819 cu->header.version >= 3.
6820
6821 2011-03-09 Yao Qi <yao@codesourcery.com>
6822
6823 * common/Makefile.in: Remove.
6824 * common/configure: Remove.
6825 * common/configure.ac: Remove.
6826
6827 2011-03-09 Yao Qi <yao@codesourcery.com>
6828
6829 Revert:
6830 2011-02-11 Yao Qi <yao@codesourcery.com>
6831
6832 * common/Makefile.in: Add copyright header.
6833
6834 2011-02-11 Yao Qi <yao@codesourcery.com>
6835
6836 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6837 libcommon.a.
6838 * configure.ac: Add common to sub dir.
6839 * configure: Regenerate.
6840
6841 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6842
6843 * xtensa-tdep.c (call0_ret): New function.
6844 (xtensa_skip_prologue): Speed up analysis.
6845
6846 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6847
6848 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6849 while executing MI command -data-list-changed-registers.
6850
6851 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6852
6853 * xtensa-tdep.c (xtensa_read_register): New function.
6854 (xtensa_write_register): New function.
6855 (xtensa_find_register_by_name): New function.
6856 (xtensa_windowed_frame_cache): Update comments in type description.
6857 (xtensa_frame_cache): Likewise.
6858 (xtensa_window_interrupt_insn): New function.
6859 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6860 (xtensa_insn_kind): Add new instructions.
6861 (rwx_special_register): New function.
6862 (call0_classify_opcode): Add new instructions to the analysis.
6863 (a0_saved, a7_saved, a11_saved): New variables.
6864 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6865 (execute_l32e): New function.
6866 (execute_s32e): New function.
6867 (xtensa_exception_handler_t): New type.
6868 (execute_code): New function.
6869 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6870 analysis for Xtensa Window Exception handlers.
6871
6872 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6873
6874 * xtensa-tdep.c (TX_PS): New.
6875 (windowing_enabled): Update to count for Call0 ABI.
6876 (xtensa_hextochar): New.
6877 (xtensa_init_reggroups): Make algorithm generic.
6878 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6879
6880 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6881
6882 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6883
6884 2011-03-08 Michael Snyder <msnyder@vmware.com>
6885
6886 * i386-tdep.c (i386_follow_jump): Check return value of
6887 target_read_memory.
6888 (i386_analyze_struct_return): Ditto.
6889 (i386_skip_probe): Ditto.
6890 (i386_match_insn): Ditto.
6891 (i386_skip_noop): Ditto.
6892 (i386_analyze_frame_setup): Ditto.
6893 (i386_analyze_register_saves): Ditto.
6894 (i386_skip_prologue): Ditto.
6895 (i386_skip_main_prologue): Ditto.
6896
6897 * target.c (read_whatever_is_readable): Fix memory leak.
6898
6899 * i386-tdep.c (i386_process_record): Document fall through.
6900
6901 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6902
6903 Fix DWARF-3+ DW_AT_accessibility default assumption.
6904 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6905 cu->header.version >= 3.
6906
6907 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6908
6909 * remote.c (remote_check_symbols): Skip if the target has no
6910 execution.
6911
6912 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6913
6914 * target.c (read_whatever_is_readable): Reformat comment,
6915 with a minor typo fix. Minor reformatting of the code.
6916
6917 2011-03-08 Yao Qi <yao@codesourcery.com>
6918
6919 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6920 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6921 Use cached result instead of calling displaced_in_arm_mode again.
6922 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6923 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6924 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6925 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6926 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6927 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6928 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6929 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6930 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6931 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6932 (arm_catch_kernel_helper_return): Likewise.
6933 * gdb/arm-tdep.h : Update function declarations.
6934
6935 2011-03-07 Michael Snyder <msnyder@vmware.com>
6936
6937 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6938
6939 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6940
6941 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6942
6943 * elfread.c (elf_symtab_read): Stop memory leak.
6944
6945 * main.c (captured_main): Fix memory leak.
6946
6947 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6948
6949 * ada-lang.c (compare_names): Call is_name_suffix with string1
6950 instead of string2.
6951
6952 2011-03-07 Tom Tromey <tromey@redhat.com>
6953
6954 * xcoffread.c (xcoff_sym_fns): Update.
6955 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6956 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6957 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6958 (symbol_file_add_with_addrs_or_offsets): Likewise.
6959 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6960 * somread.c (som_sym_fns): Update.
6961 * psymtab.h (require_partial_symbols): Declare.
6962 * psymtab.c (require_partial_symbols): New function.
6963 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6964 (ALL_OBJFILE_PSYMTABS): Undef.
6965 (ALL_PSYMTABS): Move from psympriv.h.
6966 (lookup_partial_symtab, find_pc_sect_psymtab)
6967 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6968 (find_last_source_symtab_from_partial)
6969 (forget_cached_source_info_partial)
6970 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6971 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6972 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6973 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6974 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6975 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6976 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6977 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6978 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6979 psymtabs.
6980 * mipsread.c (ecoff_sym_fns): Update.
6981 * machoread.c (macho_sym_fns): Update.
6982 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6983 (read_psyms): New function.
6984 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6985 (elf_sym_fns_lazy_psyms): New global.
6986 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6987 dwarf2_build_psymtabs.
6988 * dbxread.c (aout_sym_fns): Update.
6989 * coffread.c (coff_sym_fns): Update.
6990
6991 2011-03-07 Tom Tromey <tromey@redhat.com>
6992
6993 * infrun.c (print_exited_reason): Include inferior id and pid in
6994 message.
6995
6996 2011-03-07 Tom Tromey <tromey@redhat.com>
6997
6998 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6999 parameter.
7000 (target_has_execution_1): Update.
7001 (target_has_execution_current): Declare.
7002 (target_has_execution): Call target_has_execution_current.
7003 (default_child_has_execution): Update.
7004 * target.c (default_child_has_execution): Add 'the_ptid'
7005 parameter.
7006 (target_has_execution_1): Likewise.
7007 (target_has_execution_current): New function.
7008 (add_target): Update.
7009 (init_dummy_target): Update.
7010 * remote-m32r-sdi.c (m32r_has_execution): New function.
7011 (init_m32r_ops): Use it.
7012 * record.c (record_core_has_execution): Now static. Add
7013 'the_ptid' parameter.
7014 * inferior.c (have_live_inferiors): Don't save current thread.
7015 Use target_has_execution_1.
7016
7017 2011-03-07 Yao Qi <yao@codesourcery.com>
7018
7019 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7020
7021 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7022
7023 * elfread.c (elf_symtab_read): Minor reformatting.
7024
7025 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7026
7027 * objc-lang.c (selectors_info): Minor reformatting.
7028
7029 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7030
7031 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7032
7033 2011-03-07 Joel Brobecker <brobecker@adacore.com>
7034 Michael Snyder <msnyder@vmware.com>
7035
7036 * ada-valprint.c (ada_val_print_array): Move the declaration of
7037 "byte_order" and "elttype" inside the block where these variables
7038 are actually used. Remove some special handling for the case
7039 where "elttype" and "eltlen" are null. Replace by a comment
7040 and a couple of assertion checks.
7041
7042 2011-03-05 Michael Snyder <msnyder@vmware.com>
7043
7044 * source.c (add_path): Replace semicolon at end of block.
7045 * dwarf2expr.c (execute_stack_op): Ditto.
7046
7047 2011-03-05 Mike Frysinger <vapier@gentoo.org>
7048
7049 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7050 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7051 (bfin-*-*): Likewise.
7052
7053 2011-03-05 Michael Snyder <msnyder@vmware.com>
7054
7055 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7056 * mdebugread.c (parse_symbol): Ditto.
7057 * parse.c (parse_exp_in_context): Ditto.
7058 * source.c (add_path): Ditto.
7059 * utils.c (gnu_debuglink_crc32): Ditto.
7060 * varobj.c (variable_language): Ditto.
7061
7062 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7063
7064 2011-03-04 Michael Snyder <msnyder@vmware.com>
7065
7066 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7067
7068 * symfile.c (simple_overlay_update): Check for null return value
7069 from lookup_minimal_symbol.
7070
7071 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7072
7073 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7074
7075 * eval.c (parse_and_eval_address_1): Remove function.
7076 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7077 instead of parse_and_eval_address_1.
7078 * value.h (parse_and_eval_address_1): Remove prototype.
7079
7080 2011-03-04 Michael Snyder <msnyder@vmware.com>
7081
7082 * remote.c (putpkt_binary): Document that case stmt falls through.
7083
7084 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7085
7086 * breakpointc (print_it_typical): Move NULL check from here...
7087 (print_bp_stop_message): ... to here.
7088
7089 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7090
7091 * breakpoint.c (enable_command): Use break instead of continue,
7092 and fill in a missing break.
7093 (disable_command): Ditto.
7094
7095 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7096
7097 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7098 (terminal_save_ours): Remove misleading comment.
7099 (inflow_inferior_data_cleanup): Free ttystate.
7100 (inflow_inferior_exit): Likewise.
7101 (copy_terminal_info): Copy ttystate.
7102
7103 * serial.c (serial_copy_tty_state): New function.
7104 * serial.h (serial_copy_tty_state): Add prototype.
7105 (struct serial_ops): Add copy_tty_state callback.
7106 * ser-base.c (ser_base_copy_tty_state): New function.
7107 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7108 * ser-go32.c (dos_copy_tty_state): New function.
7109 (dos_ops): Install copy_tty_state callback.
7110 * ser-mingw.c (_initialize_ser_windows): Likewise.
7111 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7112 * ser-unix.c (hardwire_copy_tty_state): New function.
7113 (_initialize_ser_hardwire): Install it.
7114
7115 2011-03-04 Michael Snyder <msnyder@vmware.com>
7116
7117 * breakpoint.c (create_breakpoint): Add missing break statement.
7118
7119 Reverting this patch:
7120 * infcall.c (call_function_by_hand): Add break statements for lint.
7121
7122 Reverting this patch:
7123 * cli/cli-script.c (script_from_file): Add break for lint.
7124
7125 2011-03-04 Michael Snyder <msnyder@vmware.com>
7126
7127 * solib.c (reload_shared_libraries_1): Close memory leak.
7128
7129 2011-03-03 Tom Tromey <tromey@redhat.com>
7130
7131 PR gdb/12538:
7132 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7133 DW_STRING is NULL.
7134
7135 2011-03-03 Michael Snyder <msnyder@vmware.com>
7136
7137 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7138 fields of struct 'st' to zero.
7139
7140 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7141 sal.pspace before calling set_current_source_symtab_and_line.
7142
7143 2011-03-03 Yao Qi <yao@codesourcery.com>
7144
7145 * Makefile.in (configure-common): Remove. Let Makefile
7146 in dir common to rebuild itself.
7147 (common/Makefile): Likewise.
7148
7149 2011-03-03 Joel Brobecker <brobecker@adacore.com>
7150
7151 * utils.c (parse_escape): Add i18n markup in error message.
7152
7153 2011-03-03 Yao Qi <yao@codesourcery.com>
7154
7155 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7156 ARM_PC_REGNUM.
7157 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7158 (displaced_write_reg, displaced_read_reg): Likewise.
7159 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7160 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7161 (cleanup_branch): Replace magic number 14 and 15 with
7162 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7163
7164 2011-03-02 Michael Snyder <msnyder@vmware.com>
7165
7166 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7167
7168 * cli/cli-script.c (script_from_file): Add break for lint.
7169
7170 * mdebugread.c (parse_partial_symbols): Fix indent.
7171
7172 * target-descriptions.c (tdesc_gdb_type): No need to call
7173 xstrdup, callee saves a copy.
7174
7175 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7176
7177 * infcall.c (call_function_by_hand): Add break statements for lint.
7178
7179 * utils.c (parse_escape): Escape the escape char.
7180
7181 * python/py-inferior.c (build_inferior_list): Error out if
7182 PyList_Append fails.
7183 (gdbpy_inferiors): Error out if build_inferior_list fails.
7184
7185 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7186 a function call.
7187
7188 * record.c (record_restore): Move printf to before error return.
7189
7190 2011-03-02 Yao Qi <yao@codesourcery.com>
7191
7192 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7193 is_thumb and insn_size.
7194 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7195 on both ARM and Thumb mode.
7196 (arm_process_displaced_insn): Set is_thumb and insn_size.
7197 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7198 (arm_displaced_step_fixup): Likewise.
7199
7200 2011-03-01 Michael Snyder <msnyder@vmware.com>
7201
7202 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7203
7204 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7205
7206 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7207
7208 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7209
7210 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7211 with xmalloc.
7212
7213 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7214 which shadows function parameter.
7215
7216 * tracepoint.c (create_tsv_from_upload): Superfluous call
7217 to xstrdup. Callee already calls xstrdup.
7218
7219 * linespec.c (decode_line_1): Remove unnecessary null check.
7220
7221 * tracepoint.c (scope_info): Fix mem leak, remove underused
7222 variable.
7223
7224 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7225 superfluous null check.
7226
7227 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
7228 (value_of_builtin_frame_fp_reg): Ditto.
7229
7230 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7231
7232 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7233 be null.
7234
7235 * linespec.c (decode_line_1): Check for null before dereference.
7236
7237 * reverse.c (record_restore): Move null-check to before pointer
7238 dereference.
7239
7240 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7241
7242 * objc-lang.c (selectors_info): Add explanitory comment.
7243 (classes_info): Ditto.
7244
7245 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7246
7247 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7248 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7249 versions of the trampoline. Handle Thumb vs. ARM addresses.
7250 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7251 (arm_linux_init_abi): Install it.
7252 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7253 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7254
7255 2011-02-28 Michael Snyder <msnyder@vmware.com>
7256
7257 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7258 a little bigger, to avoid possibility of an overflow.
7259
7260 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7261 buffers a little bigger, to avoid possibility of an overflow.
7262
7263 * coffread.c (coff_getfilename): Add check to avoid overflow.
7264
7265 * objc-lang.c (selectors_info): Add a small safety margin to
7266 avoid overflow.
7267 (classes_info): Error out on too long REGEXP.
7268
7269 * infrun.c (handle_inferior_event): Remove unused function call.
7270
7271 * fork-child.c (fork_inferior): Remove ifdef'd code and
7272 unused variable.
7273
7274 * linux-thread-db.c (attach_thread): Discard unused value.
7275
7276 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7277
7278 * remote.c (remote_get_noisy_reply): Discard unused value.
7279 (remote_vcont_resume): Ditto.
7280 (remote_stop_ns): Ditto.
7281
7282 * linespec.c (decode_objc): Delete unused variable.
7283
7284 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7285
7286 * dwarf2read.c (add_partial_symbol): Discard unused values.
7287 (read_base_type): Delete unused variable.
7288
7289 * dbxread.c (read_dbx_symtab): Discard unused value.
7290
7291 * eval.c (evaluate_subexp_standard): Delete unused variable,
7292 and discard unused values.
7293
7294 * infcmd.c (_initialize_infcmd): Discard unused values.
7295
7296 * stabsread.c (rs6000_builtin_type): Missing break statement.
7297
7298 * dbxread.c (process_one_symbol): Discard unused value.
7299
7300 * coffread.c (coff_end_symtab): Delete unused variable.
7301
7302 * dwarf2read.c (dw2_get_file_names): Discard unused value.
7303 (dwarf2_add_typedef): Delete unused variable.
7304 (read_namespace): Ditto.
7305 (dwarf_decode_macros): Ditto.
7306
7307 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7308
7309 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7310
7311 * p-valprint.c (pascal_val_print): Discard unused value.
7312
7313 * utils.c (nquery): Call va_end before return;
7314 (yquery): Ditto.
7315 (query): Ditto.
7316
7317 * proc-service.c (ps_plog): Call va_end before return.
7318
7319 2011-02-28 Tom Tromey <tromey@redhat.com>
7320
7321 * python/python.c (gdbpy_value_cst): New global.
7322 (_initialize_python): Initialize it.
7323 * python/python-internal.h (gdbpy_value_cst): Declare.
7324 * python/py-value.c (convert_value_from_python): Use
7325 gdbpy_value_cst.
7326
7327 2011-02-28 Michael Snyder <msnyder@vmware.com>
7328
7329 * python/py-cmd.c (cmdpy_init): Fix memory leak.
7330
7331 * breakpoint.c (catch_syscall_completer): Free malloced list.
7332
7333 * jv-lang.c (java_primitive_type_from_name): Add missing break.
7334
7335 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
7336 (lval_func_check_synthetic_pointer): Ditto.
7337 (lval_func_free_closure): Fix use-after-free.
7338
7339 2011-02-28 Tom Tromey <tromey@redhat.com>
7340
7341 * psymtab.c (expand_partial_symbol_tables): Use
7342 ALL_OBJFILE_PSYMTABS.
7343
7344 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7345
7346 * objc-lang.c (selectors_info): Error on too long REGEXP.
7347
7348 2011-02-28 Michael Snyder <msnyder@vmware.com>
7349
7350 * python/py-param.c (set_parameter_value): Add missing
7351 break statement.
7352
7353 * linux-record.c (record_linux_system_call): Add missing
7354 break statement.
7355
7356 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7357
7358 * breakpoint.c (print_one_breakpoint_location): Remove unused
7359 argument PRINT_ADDRESS_BITS. Update callers.
7360 (print_one_breakpoint): Likewise.
7361
7362 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7363
7364 * breakpoint.c (wrap_indent_at_field): New function.
7365 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
7366 Allocate ui_stream locally instead of using STB argument.
7367 (print_one_breakpoint_location): Update call.
7368 * ui-out.c (ui_out_query_field): New function.
7369 * ui-out.h (ui_out_query_field): Add prototype.
7370
7371 2011-02-28 Joel Brobecker <brobecker@adacore.com>
7372
7373 From Michael Snyder <msnyder@vmware.com>
7374 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
7375
7376 2011-02-27 Michael Snyder <msnyder@vmware.com>
7377
7378 * objc-lang.c (selectors_info): Prevent string overrun.
7379
7380 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
7381 error in strncpy.
7382
7383 * symtab.c (rbreak_command): Move variable 'file_name' to
7384 outer scope.
7385
7386 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
7387 param with a local variable of the same name.
7388
7389 2011-02-27 Michael Snyder <msnyder@vmware.com>
7390
7391 * value.c (value_from_history_ref): New function.
7392 * value.h (value_from_history_ref): Export.
7393 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
7394 to parse value history references.
7395 * cli/cli-utils.h (get_number_trailer): Update comment.
7396
7397 2011-02-27 Michael Snyder <msnyder@vmware.com>
7398
7399 * inferior.c (detach_inferior_command): Use get_number_or_range.
7400 (kill_inferior_command): Ditto.
7401 (remove_inferior_command): Ditto.
7402 (initialize_inferiors): Make command names plural.
7403 Update help strings.
7404
7405 2011-02-27 Michael Snyder <msnyder@vmware.com>
7406
7407 * darwin-nat-info.c: Fix comment typo.
7408 * dwarf2expr.h: Ditto.
7409 * fbsd-nat.c: Ditto.
7410 * fbsd-nat.h: Ditto.
7411 * frame-unwind.h: Ditto.
7412 * frame.h: Ditto.
7413 * hppa-hpux-tdep.c: Ditto.
7414 * i386-linux-nat.c: Ditto.
7415 * linux-nat.c: Ditto.
7416 * nbsd-nat.c: Ditto.
7417 * nbsd-nat.h: Ditto.
7418 * ppc-linux-tdep.c: Ditto.
7419 * serial.c: Ditto.
7420 * ui-file.h: Ditto.
7421 * tui/tui-winsource.c: Ditto.
7422
7423 2011-02-26 Michael Snyder <msnyder@vmware.com>
7424
7425 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
7426
7427 * maint.c (maintenance_do_deprecate): Plug a memory leak.
7428
7429 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
7430 with a local variable of the same name.
7431
7432 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
7433 param with a local variable of the same name.
7434 (i387_supply_xsave): Ditto.
7435
7436 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
7437 that it does not shadow a function parameter.
7438
7439 * i386-nat.c (i386_length_and_rw_bits): Document that case
7440 statement is meant to fall through.
7441
7442 * expprint.c (dump_subexp_body_standard): Document that case
7443 statement is meant to fall through.
7444
7445 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
7446 dead if statement. Condition can't be false.
7447
7448 2011-02-25 Michael Snyder <msnyder@vmware.com>
7449
7450 * arm-tdep.c: Fix typos in comments.
7451 * bsd-uthread.c: Ditto.
7452 * completer.c: Ditto.
7453 * corelow.c: Ditto.
7454 * cp-namespace.c: Ditto.
7455 * cp-support.c: Ditto.
7456 * cris-tdep.c: Ditto.
7457 * dbxread.c: Ditto.
7458 * dwarf2read.c: Ditto.
7459 * frame.h: Ditto.
7460 * gdbtypes.h: Ditto.
7461 * inferior.h: Ditto.
7462 * mdebugread.c: Ditto.
7463 * mips-tdep.c: Ditto.
7464 * ppc-linux-nat.c: Ditto.
7465 * ppc-linux-tdep.c: Ditto.
7466 * printcmd.c: Ditto.
7467 * sol-thread.c: Ditto.
7468 * solib-frv.c: Ditto.
7469 * solist.h: Ditto.
7470 * sparc64-tdep.c: Ditto.
7471 * spu-tdep.c: Ditto.
7472 * stabsread.c: Ditto.
7473 * symfile.c: Ditto.
7474 * valops.c: Ditto.
7475 * varobj.c: Ditto.
7476 * vax-nat.c: Ditto.
7477 * python/py-block.c: Ditto.
7478 * python/py-symbol.c: Ditto.
7479 * python/py-symtab.c: Ditto.
7480 * python/py-value.c: Ditto.
7481 * tui/tui-win.c: Ditto.
7482
7483 2011-02-25 Michael Snyder <msnyder@vmware.com>
7484
7485 * inferior.c (print_inferior): Accept a string instead of an int
7486 for requested_inferiors, and use get_number_or_range to parse it.
7487 (info_inferiors_command): Pass args string to print_inferior.
7488 (initialize_inferiors): Change help string for info inferiors.
7489 * inferior.h (print_inferior): Export prototype change.
7490
7491 2011-02-25 Tom Tromey <tromey@redhat.com>
7492
7493 * common/ax.def (invalid2): Set to 0x31.
7494
7495 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7496
7497 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7498 L and plongest.
7499 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7500 use L and plongest.
7501 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7502
7503 2011-02-24 Michael Snyder <msnyder@vmware.com>
7504
7505 * Makefile.in (clean): Make clean should remove generated files
7506 observer.h and observer.inc.
7507
7508 2011-02-24 Joel Brobecker <brobecker@adacore.com>
7509
7510 Revert the following patch (not approved yet):
7511 2011-02-21 Hui Zhu <teawater@gmail.com>
7512 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7513 * ax-gdb.c (gen_printf_expr_callback): New function.
7514 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7515 * ax-general.c (ax_memcpy): New function.
7516 (ax_print): Handle "printf".
7517 (ax_reqs): Ditto.
7518 * ax.h (ax_memcpy): Forward declare.
7519 * common/ax.def (invalid2): Removed.
7520 (printf): New entry.
7521 * printcmd.c (printcmd.h): New include.
7522 (string_printf): New function.
7523 (ui_printf): Removed.
7524 (printf_command): Remove static. Call string_printf.
7525 (eval_command): Call string_printf.
7526 * printcmd.h: New file.
7527 * tracepoint.c (validate_actionline,
7528 encode_actions_1): handle printf_command.
7529
7530 2011-02-23 Tom Tromey <tromey@redhat.com>
7531
7532 * ax-general.c (ax_pick): Add missing newline.
7533
7534 2011-02-23 Michael Snyder <msnyder@vmware.com>
7535
7536 * breakpoint.c (breakpoint_1): Change first argument from an int
7537 to a char pointer, so that the function now accepts a list of
7538 breakpoints rather than just one. Use new function
7539 'number_is_in_list' to implement.
7540 (breakpoints_info): Pass char * instead of int to breakpoint_1.
7541 (watchpoints_info): Ditto.
7542 (tracepoints_info): Ditto.
7543 (maintenance_info_breakpoints): Ditto.
7544 (_initialize_breakpoint): Update help strings to reflect the fact
7545 that these functions can now take more than one argument.
7546 * cli/cli-utils.c (number_is_in_list): New function.
7547 * cli/cli-utils.h (number_is_in_list): Export.
7548
7549 2011-02-23 Michael Snyder <msnyder@vmware.com>
7550
7551 * memattr.c (mem_enable_command): Use get_number_or_range.
7552 (mem_disable_command): Ditto.
7553 (mem_delete_command): Ditto.
7554 (_initialize_mem): Tweak usage message to reflect multiple
7555 arguments.
7556
7557 2011-02-22 Doug Evans <dje@google.com>
7558
7559 Add gdb.lookup_global_symbol python function.
7560 * NEWS: Add entry.
7561 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7562 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7563 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7564
7565 2011-02-22 Tom Tromey <tromey@redhat.com>
7566
7567 * language.c (language_class_name_from_physname): Rename
7568 'curr_language' argument to 'lang'; use in body.
7569
7570 2011-02-22 Michael Snyder <msnyder@vmware.com>
7571
7572 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7573
7574 2011-02-22 Pedro Alves <pedro@codesourcery.com>
7575
7576 * frame-unwind.h: Fix comment to mention the this frame, not the
7577 next.
7578
7579 2011-02-22 Tom Tromey <tromey@redhat.com>
7580
7581 * symfile.c (auto_solib_limit): Remove.
7582 * symfile.h (auto_solib_limit): Remove.
7583
7584 2011-02-22 Joel Brobecker <brobecker@adacore.com>
7585
7586 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7587
7588 2011-02-21 Michael Snyder <msnyder@vmware.com>
7589
7590 * gdbthread.h (print_thread_info): Change prototype.
7591 * thread.c (print_thread_info): Accept char* instead of int for
7592 requested_threads argument. Use new function number_is_in_list
7593 to determine which threads to list.
7594 (info_threads_command): Pass char* to print_thread_info.
7595 * cli/cli-utils.c (number_is_in_list): New function.
7596 * cli/cli-utils.h (number_is_in_list): Export.
7597 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7598 print_thread_info.
7599 (print_one_inferior): Ditto.
7600 (mi_cmd_list_thread_groups): Ditto.
7601
7602 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7603
7604 * common/Makefile.in (CFLAGS): New.
7605 (COMPILE): Add $(CFLAGS).
7606
7607 2011-02-21 Tom Tromey <tromey@redhat.com>
7608
7609 * breakpoint.c (catch_syscall_command_1): Fix typo.
7610
7611 2011-02-21 Tom Tromey <tromey@redhat.com>
7612
7613 * reverse.c: Include cli-utils.h.
7614 * printcmd.c: Include cli-utils.h.
7615 (string_printf): Use skip_spaces.
7616 * cli/cli-utils.h: New file.
7617 * cli/cli-utils.c: New file.
7618 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7619 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7620 * breakpoint.h (get_number, get_number_or_range): Move to
7621 cli-utils.h.
7622 * breakpoint.c: Include cli-utils.h.
7623 (get_number_trailer, get_number, get_number_or_range)
7624 (ep_skip_leading_whitespace): Move to cli-utils.c.
7625 (create_breakpoint_sal, find_condition_and_thread)
7626 (decode_static_tracepoint_spec, watch_command_1)
7627 (watch_maybe_just_location, ep_parse_optional_if_clause)
7628 (catch_fork_command_1, catch_exec_command_1)
7629 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7630 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7631 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7632 (HFILES_NO_SRCDIR): Add cli-utils.h.
7633 (cli-utils.o): New target.
7634
7635 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7636
7637 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7638 before calling discard_all_inferiors.
7639
7640 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7641
7642 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7643 (struct builtin_opencl_type): Remove.
7644 (builtin_opencl_type): Change return type to "struct type **".
7645 (lookup_opencl_vector_type): Update caller.
7646 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7647 (build_opencl_types): Install plain array of "struct type *"
7648 instead of "struct builtin_opencl_type".
7649
7650 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7651 Ulrich Weigand <uweigand@de.ibm.com>
7652
7653 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7654 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7655 (struct arm_linux_hwbp_cap): New type.
7656 (arm_linux_get_hwbp_cap): New function.
7657 (arm_linux_get_hw_breakpoint_count): Likewise.
7658 (arm_linux_get_hw_watchpoint_count): Likewise.
7659 (arm_linux_can_use_hw_breakpoint): Likewise.
7660 (arm_hwbp_type): New type.
7661 (arm_hwbp_control_t): Likewise.
7662 (struct arm_linux_hw_breakpoint): Likewise.
7663 (struct arm_linux_thread_points): Likewise.
7664 (arm_threads): New global variable.
7665 (arm_linux_find_breakpoints_by_tid): New function.
7666 (arm_hwbp_control_initialize): Likewise.
7667 (arm_hwbp_control_is_enabled): Likewise.
7668 (arm_hwbp_control_disable): Likewise.
7669 (arm_linux_hw_breakpoint_initialize): Likewise.
7670 (arm_linux_get_hwbp_type): Likewise.
7671 (arm_linux_hw_watchpoint_initialize): Likewise.
7672 (arm_linux_hw_breakpoint_equal): Likewise.
7673 (arm_linux_insert_hw_breakpoint1): Likewise.
7674 (arm_linux_remove_hw_breakpoint1): Likewise.
7675 (arm_linux_insert_hw_breakpoint): Likewise.
7676 (arm_linux_remove_hw_breakpoint): Likewise.
7677 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7678 (arm_linux_insert_watchpoint): Likewise.
7679 (arm_linux_remove_watchpoint): Likewise.
7680 (arm_linux_stopped_data_address): Likewise.
7681 (arm_linux_stopped_by_watchpoint): Likewise.
7682 (arm_linux_watchpoint_addr_within_range): Likewise.
7683 (arm_linux_new_thread): Likewise.
7684 (arm_linux_thread_exit): Likewise.
7685 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7686 related target callbacks. Register arm_linux_new_thread and
7687 arm_linux_thread_exit.
7688 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7689 * arm-tdep.c (arm_pc_is_thumb): Make global.
7690 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7691
7692 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7693
7694 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7695 per-frame locations while within a function epilogue.
7696
7697 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7698
7699 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7700 to GNU coding standards.
7701
7702 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7703
7704 Allow use of mingw native on Windows 95 OS.
7705 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7706 (ser_windows_close): Only call CancelIo if function exists.
7707 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7708 to check for existence of CancelIo function in kernel32 DLL.
7709
7710 2011-02-21 Hui Zhu <teawater@gmail.com>
7711
7712 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7713 * ax-gdb.c (gen_printf_expr_callback): New function.
7714 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7715 * ax-general.c (ax_memcpy): New function.
7716 (ax_print): Handle "printf".
7717 (ax_reqs): Ditto.
7718 * ax.h (ax_memcpy): Forward declare.
7719 * common/ax.def (invalid2): Removed.
7720 (printf): New entry.
7721 * printcmd.c (printcmd.h): New include.
7722 (string_printf): New function.
7723 (ui_printf): Removed.
7724 (printf_command): Remove static. Call string_printf.
7725 (eval_command): Call string_printf.
7726 * printcmd.h: New file.
7727 * tracepoint.c (validate_actionline,
7728 encode_actions_1): handle printf_command.
7729
7730 2011-02-19 Michael Snyder <msnyder@vmware.com>
7731
7732 * reverse.c (delete_one_bookmark): Argument is now bookmark
7733 id rather than pointer to bookmark struct.
7734 (delete_bookmark_command): Use get_number_or_range.
7735 (goto_bookmark_command): Parse with get_number instead of strtoul.
7736 (bookmark_1): New function. Print info for one bookmark.
7737 (bookmarks_info): Use get_number_or_range and bookmark_1.
7738
7739 2011-02-18 Michael Snyder <msnyder@vmware.com>
7740
7741 * thread.c (info_threads_command): Re-implement using
7742 get_number_or_range.
7743 (thread_apply_command): Ditto.
7744
7745 2011-02-18 Tom Tromey <tromey@redhat.com>
7746
7747 * common/ax.def: New file.
7748 * ax.h (enum agent_op): Use ax.def.
7749 * ax-general.c (aop_map): Use ax.def.
7750
7751 2011-02-18 Tom Tromey <tromey@redhat.com>
7752
7753 * ax-general.c (aop_map): Add pick and rot.
7754 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7755 <DW_OP_rot>: Implement.
7756 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7757 (ax_pick): Declare.
7758 * ax-general.c (ax_pick): New function.
7759
7760 2011-02-18 Tom Tromey <tromey@redhat.com>
7761
7762 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7763
7764 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7765 Tom Tromey <tromey@redhat.com>
7766
7767 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7768 make_symbol_overload_list_block with NULL BLOCK.
7769 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7770
7771 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7772
7773 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7774 * breakpoint.h (get_number_or_range): Declare.
7775 * printcmd.c (ALL_DISPLAYS): Declare.
7776 (delete_display): Reimplement taking a display pointer.
7777 (undisplay_command): Accept a range of displays to delete, using
7778 get_number_or_range.
7779
7780 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7781
7782 * c-valprint.c (c_val_print): Add embedded_offset to address
7783 for arrays of unspecified length.
7784 * p-valprint.c (pascal_val_print): Likewise.
7785
7786 2011-02-18 Yao Qi <yao@codesourcery.com>
7787
7788 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7789 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7790 (thumb_process_displaced_insn): New.
7791 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7792 call to arm_process_displaced_insn.
7793 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7794
7795 2011-02-17 Tom Tromey <tromey@redhat.com>
7796
7797 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7798 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7799 compile_dwarf_to_ax. No longer static. Call
7800 dwarf2_compile_cfa_to_ax.
7801 (locexpr_tracepoint_var_ref): Update.
7802 (loclist_tracepoint_var_ref): Update.
7803 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7804 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7805 argument; add 'gdbarch' and 'pc'.
7806 (dwarf2_compile_cfa_to_ax): New function.
7807 (dwarf2_frame_cache): Update.
7808
7809 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7810
7811 * ada-lang.c (ada_type_of_array): Fix the size of the array
7812 in the case of an unconstrained packed array.
7813
7814 2011-02-17 Yao Qi <yao@codesourcery.com>
7815
7816 * common/Makefile.in: Add more targets for make.
7817
7818 2011-02-16 Tom Tromey <tromey@redhat.com>
7819
7820 * dwarf2loc.c (unimplemented): Fix typo.
7821
7822 2011-02-16 Tom Tromey <tromey@redhat.com>
7823
7824 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7825 (compile_dwarf_to_ax) <default>: Use unimplemented.
7826 <DW_OP_deref>: Update.
7827 (disassemble_dwarf_expression): Update.
7828 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7829 (decode_locdesc): Update.
7830 * dwarf2expr.h (dwarf_stack_op_name): Update.
7831
7832 2011-02-16 Tom Tromey <tromey@redhat.com>
7833
7834 * ax.h (struct aop_map) <name>: Now const.
7835
7836 2011-02-16 Tom Tromey <tromey@redhat.com>
7837
7838 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7839 than axs_rvalue.
7840
7841 2011-02-16 Yao Qi <yao@codesourcery.com>
7842
7843 * infrun.c (get_displaced_step_closure_by_addr): New.
7844 * inferior.h: Declare it.
7845 * arm-tdep.c: (arm_pc_is_thumb): Call
7846 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7847 returns non-NULL.
7848
7849 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7850 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 gdb/
7853 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7854
7855 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7856 Jan Kratochvil <jan.kratochvil@redhat.com>
7857
7858 * value.c (value_contents_copy_raw): Extend describing comment.
7859 Assert that the destination contents we're overwriting are wholly
7860 available.
7861 (value_contents_copy): Extend describing comment.
7862
7863 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7864 Jan Kratochvil <jan.kratochvil@redhat.com>
7865
7866 * value.c (value_available_contents_eq): Remove redundant local
7867 variables. Fix available contents comparision.
7868 * value.h (value_available_contents_eq): Extend describing
7869 comment.
7870
7871 2011-02-16 Yao Qi <yao@codesourcery.com>
7872
7873 * thread.c (info_threads_command): Add missing i18n markup and remove
7874 trailing newline.
7875
7876 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7877
7878 * breakpoint.c (longjmp_names): New variable.
7879 (struct breakpoint_objfile_data): New type.
7880 (breakpoint_objfile_key): New variable.
7881 (msym_not_found): New variable.
7882 (msym_not_found_p): New predicate.
7883 (get_breakpoint_objfile_data): New function.
7884 (create_overlay_event_breakpoint): Check per-objfile cache for
7885 symbols first.
7886 (create_longjmp_master_breakpoint): Likewise.
7887 (create_std_terminate_master_breakpoint): Likewise.
7888 (create_exception_master_breakpoint): Likewise.
7889 (_initialize_breakpoint): Register per-objfile data key.
7890
7891 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7892
7893 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7894 parameter value.
7895 (create_longjmp_master_breakpoint): Loop over longjmp names.
7896 (create_std_terminate_master_breakpoint): Const-propagate parameter
7897 value.
7898 (update_breakpoints_after_exec): Adjust.
7899 (breakpoint_re_set): Adjust.
7900
7901 2011-02-15 Michael Snyder <msnyder@vmware.com>
7902
7903 * thread.c (info_threads_command): Process arg as thread id,
7904 or list of thread ids.
7905 (thread_find_command): New command.
7906 (_initialize_thread): Document argument for info threads.
7907 Document 'thread find' command.
7908 * NEWS: Document new command "thread find".
7909
7910 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7911
7912 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7913 * aclocal.m4: Regenerated with aclocal-1.11.1.
7914 * common/configure: Regenerate with autoconf-2.64.
7915
7916 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7917
7918 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7919 bool data type to a size of one byte.
7920
7921 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7922 Jan Kratochvil <jan.kratochvil@redhat.com>
7923
7924 * target.c (memory_xfer_live_readonly_partial): Document where to
7925 look for interface description.
7926
7927 2011-02-15 Yao Qi <yao@codesourcery.com>
7928
7929 PR tdep/12352
7930 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7931 order to store PC value on stack instead of text section.
7932
7933 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7934
7935 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7936 the EFP register set size.
7937 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7938 data from the VMX register.
7939 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7940 and write data from/to the VMX register.
7941
7942 2011-02-14 Michael Snyder <msnyder@vmware.com>
7943
7944 * command.h (enum command_class): New class 'no_set_class', for
7945 "show" commands without a corresponding "set" command.
7946 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7947 * copying.c (_initialize_copying): Ditto for "show copying" and
7948 "show warranty".
7949 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7950 "show version".
7951 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7952 which there is no corresponding "set" command (eg. "show copying").
7953
7954 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7955 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 * exec.c (section_table_available_memory): Change `len' parameter
7958 type to ULONGEST.
7959 * exec.h (section_table_available_memory): Ditto.
7960 * value.h (read_value_memory): Rename the `offset' parameter to
7961 `embedded_offset'.
7962
7963 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7964 Jan Kratochvil <jan.kratochvil@redhat.com>
7965
7966 * memrange.c (compare_mem_ranges): Mention sort order in
7967 describing comment.
7968 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7969 * tracepoint.c (traceframe_available_memory): Extend comment to
7970 mention what happens to RESULT when the target does not support
7971 the query.
7972
7973 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7974 Jan Kratochvil <jan.kratochvil@redhat.com>
7975
7976 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7977 range.
7978
7979 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7980
7981 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7982 No longer handle NULL values.
7983
7984 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7985
7986 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7987 * value.c: Include "exceptions.h".
7988 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7989 generic error.
7990 * cp-abi.c: Include gdb_assert.h.
7991 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7992 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7993 errors.
7994 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7995 parameters. No longer returns -1 on error.
7996 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7997 `val' parameters.
7998 * cp-valprint.c: Include exceptions.h.
7999 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8000 the baseclass_offset. Handle unavailable base classes. Use
8001 val_print_invalid_address.
8002 * p-valprint.c: Include exceptions.h.
8003 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8004 when fetching the baseclass_offset. No longer expect
8005 baseclass_offset returning -1. Handle unavailable base classes.
8006 Use val_print_invalid_address.
8007 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8008 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8009 `embedded_offset' and `val' parameters. Adjust.
8010 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8011 parameter, and change its type to gdb_byte pointer. Add
8012 `embedded_offset' and `val' parameters. Adjust. No longer expect
8013 baseclass_offset returning -1.
8014 (value_dynamic_cast): Use value_contents_for_printing rather than
8015 value_contents. Adjust.
8016 (search_struct_field): No longer expect baseclass_offset returning
8017 -1.
8018 (search_struct_method): If reading memory from the target is
8019 necessary, wrap it in a new value to pass to baseclass_offset. No
8020 longer expect baseclass_offset returning -1.
8021 (find_method_list): No longer expect baseclass_offset returning
8022 -1. Use value_contents_for_printing rather than value_contents.
8023 * valprint.c (val_print_invalid_address): New function.
8024 * valprint.h (val_print_invalid_address): Declare.
8025 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8026 and `val' parameters. No longer expect baseclass_offset returning
8027 -1. Adjust.
8028 * gnu-v2-abi.c: Include "exceptions.h".
8029 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8030 parameters. Handle unavailable memory. Recurse through
8031 gnuv2_baseclass_offset directly, rather than through
8032 baseclass_offset. No longer returns -1 on not found, instead
8033 throw an error.
8034 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8035 `val' parameters. Adjust.
8036
8037 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8038
8039 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8040 almost but not quite adjacent.
8041
8042 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8043
8044 * value.h (value_entirely_available): Declare.
8045 * value.c (value_entirely_available): New function.
8046 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8047 real type if the pointer is unavailable.
8048
8049 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8050
8051 * valops.c (value_repeat): Use read_value_memory instead of
8052 read_memory.
8053
8054 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8055
8056 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8057 * value.c (value_contents_copy_raw, value_contents_copy): New
8058 functions.
8059 (value_primitive_field): Use value_contents_copy_raw instead of
8060 memcpy.
8061 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8062 memcpy.
8063 (value_array, value_slice): Ditto.
8064 * valarith.c (value_subscripted_rvalue): Use
8065 value_contents_copy_raw instead of memcpy.
8066
8067 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8068
8069 <unavailable> references.
8070
8071 * valops.c (get_value_at): Use value_from_contents_and_address,
8072 avoiding read_memory.
8073
8074 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8075
8076 * c-valprint.c (c_val_print): Print a string with unavailable
8077 contents as an array.
8078
8079 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8080
8081 * value.h (unpack_bits_as_long): Delete declaration.
8082 (unpack_value_bits_as_long): Declare.
8083 (unpack_value_field_as_long): Declare.
8084 (value_field_bitfield): Declare.
8085 * value.c (unpack_bits_as_long): Rename to...
8086 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8087 value parameters. Return the extracted result in a new output
8088 parameter. If the value contents are unavailable, return false,
8089 otherwise return true.
8090 (unpack_value_bits_as_long): New.
8091 (unpack_field_as_long): Rename to...
8092 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8093 Add embedded_offset and value parameters. Return the extracted
8094 result in a new output parameter. If the value contents are
8095 unavailable, return false, otherwise return true.
8096 (unpack_value_field_as_long): New.
8097 (unpack_field_as_long_1): New.
8098 (unpack_field_as_long): Reimplement as wrapper around
8099 unpack_value_field_as_long_1.
8100 (value_field_bitfield): New function.
8101 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8102 unpack_value_bits_as_long. Mark the value as unavailable, if it
8103 is unavailable.
8104 * jv-valprint.c (java_print_value_fields): Use
8105 value_field_bitfield.
8106 * p-valprint.c (pascal_object_print_value_fields): Use
8107 value_field_bitfield.
8108 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8109
8110 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8111
8112 * value.c (get_internalvar_integer): Also return the int value of
8113 TYPE_CODE_INT INTERNALVAR_VALUE values.
8114 (set_internalvar): Don't special case TYPE_CODE_INT.
8115
8116 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8117
8118 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8119 INTERNALVAR_POINTER.
8120 <pointer>: Delete.
8121 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8122 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8123 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8124
8125 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8126
8127 * value.h (value_available_contents_eq): Declare.
8128 * value.c (find_first_range_overlap): New function.
8129 (value_available_contents_eq): New function.
8130 * valprint.c (val_print_array_elements): Use
8131 value_available_contents_eq.
8132 * ada-valprint.c (val_print_packed_array_elements): Use
8133 value_available_contents_eq.
8134 * jv-valprint.c (java_value_print): Use
8135 value_available_contents_eq.
8136
8137 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8138
8139 * target.c (target_read_live_memory): New function.
8140 (memory_xfer_live_readonly_partial): New.
8141 (memory_xfer_partial): If reading from a traceframe, fallback to
8142 reading unavailable read-only memory from read-only regions of
8143 live target memory.
8144 * tracepoint.c (disconnect_tracing): Adjust.
8145 (set_current_traceframe): New, factored out from
8146 set_traceframe_number.
8147 (set_traceframe_number): Reimplement to only change the traceframe
8148 number on the GDB side.
8149 (do_restore_current_traceframe_cleanup): Adjust.
8150 (make_cleanup_restore_traceframe_number): New.
8151 (cur_traceframe_number): New global.
8152 (tfile_open): Set cur_traceframe_number to no traceframe.
8153 (set_tfile_traceframe): New function.
8154 (tfile_trace_find): If looking up a traceframe using any method
8155 other than by number, make sure the current tfile traceframe
8156 matches gdb's current traceframe. Update the current tfile
8157 traceframe if the lookup succeeded.
8158 (tfile_fetch_registers, tfile_xfer_partial)
8159 (tfile_get_trace_state_variable_value): Make sure the remote
8160 traceframe matches gdb's current traceframe.
8161 * remote.c (remote_traceframe_number): New global.
8162 (remote_open_1): Set it to -1.
8163 (set_remote_traceframe): New function.
8164 (remote_fetch_registers, remote_store_registers)
8165 (remote_xfer_memory, remote_xfer_partial)
8166 (remote_get_trace_state_variable_value): Make sure the remote
8167 traceframe matches gdb's current traceframe.
8168 (remote_trace_find): If looking up a traceframe using any method
8169 other than by number, make sure the current remote traceframe
8170 matches gdb's current traceframe. Update the current remote
8171 traceframe if the lookup succeeded.
8172 * infrun.c (fetch_inferior_event): Adjust.
8173 * tracepoint.h (set_current_traceframe): Declare.
8174 (get_traceframe_number, set_traceframe_number): Add describing
8175 comments.
8176
8177 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8178
8179 Mark pieces of values as unavailable if the corresponding memory
8180 is unavailable.
8181
8182 * valops.c: Include tracepoint.h.
8183 (value_fetch_lazy): Use read_value_memory.
8184 (read_value_memory): New.
8185 * value.h (read_value_memory): Declare.
8186 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8187 * exec.c (section_table_available_memory): New function.
8188 * exec.h (section_table_available_memory): Declare.
8189
8190 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8191
8192 * Makefile.in (SFILES): Add memrange.c.
8193 (HFILES_NO_SRCDIR): Add memrange.h.
8194 (COMMON_OBS): Add memrange.o.
8195 * memrange.c: New file.
8196 * memrange.h: New file.
8197 * tracepoint.c: Include memrange.h.
8198 (struct mem_range): Delete.
8199 (mem_range_s): Delete.
8200 (traceframe_available_memory): New function.
8201 * tracepoint.h (traceframe_available_memory): Declare.
8202
8203 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8204
8205 * target.h (struct traceframe_info): Forward declare.
8206 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8207 (struct target_ops) <to_traceframe_info>: New field.
8208 (target_traceframe_info): New.
8209 * target.c (update_current_target): Inherit and default
8210 to_traceframe_info.
8211 * remote.c (PACKET_qXfer_traceframe_info): New.
8212 (remote_protocol_features): Register qXfer:traceframe-info:read.
8213 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8214 (remote_traceframe_info): New.
8215 (init_remote_ops): Install it.
8216 (_initialize_remote): Install "set/show remote traceframe-info"
8217 commands.
8218 * tracepoint.h (parse_traceframe_info): Declare.
8219 * tracepoint.c (struct mem_range): New.
8220 (mem_range_s): New typedef.
8221 (struct traceframe_info): New.
8222 (traceframe_info): New global.
8223 (free_traceframe_info): New function.
8224 (clear_traceframe_info): New function.
8225 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8226 info.
8227 (build_traceframe_info): New function.
8228 (tfile_traceframe_info): New function.
8229 (init_tfile_ops): Install tfile_traceframe_info.
8230 (traceframe_info_start_memory, free_result): New functions.
8231 (memory_attributes, traceframe_info_elements): New globals.
8232 (parse_traceframe_info, get_traceframe_info): New functions.
8233 * features/traceframe-info.dtd: New file.
8234 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8235
8236 2011-02-14 Pedro Alves <pedro@codesourcery.com>
8237
8238 Base support for <unavailable> value contents.
8239
8240 * value.h (value_bytes_available): Declare.
8241 (mark_value_bytes_unavailable): Declare.
8242 * value.c (struct range): New struct.
8243 (range_s): New typedef.
8244 (ranges_overlap): New function.
8245 (range_lessthan): New function.
8246 (ranges_contain_p): New function.
8247 (struct value) <unavailable>: New field.
8248 (value_bytes_available): New function.
8249 (mark_value_bytes_unavailable): New function.
8250 (require_not_optimized_out): Constify parameter.
8251 (require_available): New function.
8252 (value_contents_all, value_contents): Require all bytes be
8253 available.
8254 (value_free): Free `unavailable'.
8255 (value_copy): Copy `unavailable'.
8256 * valprint.h (val_print_unavailable): Declare.
8257 * valprint.c (valprint_check_validity): Rename `offset' parameter
8258 to `embedded_offset'. If printing a scalar, check whether the
8259 value chunk is available.
8260 (val_print_unavailable): New.
8261 (val_print_scalar_formatted): Check whether the value is
8262 available.
8263 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8264 pretty-printing unavailable values.
8265
8266 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8267
8268 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8269 * c-typeprint.c (c_type_print_args): Update the function comment. New
8270 variable param_type, initialize it. Remove const/volatile qualifiers
8271 for language_cplus and !show_artificial. Use param_type.
8272
8273 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8274
8275 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8276 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8277 * symtab.h (struct symtab) <next>: Comment extension.
8278
8279 2011-02-12 Yao Qi <yao@codesourcery.com>
8280
8281 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8282
8283 2011-02-11 Yao Qi <yao@codesourcery.com>
8284
8285 * common/Makefile.in: Add copyright header.
8286
8287 2011-02-11 Pedro Alves <pedro@codesourcery.com>
8288
8289 * infrun.c (proceed): Move switching out and in of tfind mode from
8290 here ...
8291 (fetch_inferior_event): ... to here.
8292
8293 2011-02-11 Yao Qi <yao@codesourcery.com>
8294
8295 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8296 libcommon.a.
8297 * configure.ac: Add common to sub dir.
8298 * configure: Regenerate.
8299
8300 2011-02-11 Yao Qi <yao@codesourcery.com>
8301
8302 Build libcommon.a.
8303
8304 * common/Makefile.in: New.
8305 * common/configure.ac: New.
8306 * common/aclocal.m4: New.
8307 * common/configure: Generate.
8308
8309 2011-02-10 Pedro Alves <pedro@codesourcery.com>
8310
8311 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8312 side of the parenthesis.
8313
8314 Merge from GCC:
8315 2010-07-13 Jakub Jelinek <jakub@redhat.com>
8316 * vec.h (VEC_block_remove): Fix comment.
8317
8318 2011-02-08 Michael Snyder <msnyder@vmware.com>
8319
8320 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
8321
8322 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8323
8324 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
8325 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
8326 psubd and paddd.
8327
8328 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8329
8330 PR 12361.
8331 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
8332 phsubsw.
8333 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
8334 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
8335
8336 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8337
8338 * dwarf2read.c (read_subroutine_type): Set special calling
8339 convention flag for functions compiled by IBM XL C for OpenCL.
8340 * ppc-sysv-tdep.c: Include "dwarf2.h"
8341 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
8342 calling convention.
8343 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
8344 IBM OpenCL vector types calling convention.
8345 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
8346 (ppc_sysv_abi_broken_return_value): Likewise.
8347 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
8348 types calling convention.
8349 (ppc64_sysv_abi_return_value): Likewise.
8350 * spu-tdep.c: Include "dwarf2.h"
8351 (spu_return_value): Implement IBM OpenCL vector types calling
8352 convention.
8353
8354 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8355
8356 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
8357 correct ABI for AltiVec vector arguments.
8358
8359 2011-02-07 Pedro Alves <pedro@codesourcery.com>
8360
8361 * valprint.c (val_print): Extend comment.
8362 * ada-valprint.c (ada_valprint): Rewrite comment deferring
8363 interface explanation to val_print.
8364 (ada_val_print_array): Adjust comment to current interface.
8365 (print_field_values): Adjust comment to current interface.
8366 * c-valprint.c (c_val_print): Rewrite comment deferring interface
8367 explanation to val_print.
8368 * f-valprint.c (f_val_print): Ditto.
8369 * jv-valprint.c (java_val_print): Ditto.
8370 * m2-valprint.c (m2_val_print): Ditto.
8371 * p-valprint.c (pascal_val_print): Ditto.
8372
8373 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8374
8375 * breakpoint.c (parse_breakpoint_sals): Fix description.
8376
8377 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
8378 Oguz Kayral <oguzkayral@gmail.com>
8379
8380 * python/py-inferior.c (python_on_normal_stop): New function.
8381 (python_on_resume): New function.
8382 (python_inferior_exit): New function.
8383 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
8384 inferior_exit observers.
8385 * python/py-evtregistry.c: New file.
8386 * python/py-threadevent.c : New file.
8387 * python/py-event.c: New file.
8388 * python/py-evts.c: New file.
8389 * python/py-continueevent.c: New file.
8390 * python/py-bpevent.c: New file.
8391 * python/py-signalevent.c: New file.
8392 * python/py-exetiedevent.c: New file.
8393 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
8394 Move struct breakpoint_object from here...
8395 * python/python-internal.h: ... to here.
8396 * python/py-event.h: New file.
8397 * python/py-events.h: New file.
8398 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
8399 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
8400 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
8401 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
8402 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
8403 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
8404 Add build rules for all the above.
8405
8406 2011-02-04 Tom Tromey <tromey@redhat.com>
8407
8408 * dwarf2read.c (dwarf2_section_empty_p): New function.
8409 (dwarf2_read_section): Use dwarf2_section_empty_p.
8410 (dwarf2_section_size): New function.
8411 (dwarf2_get_section_info): Unconditionally read section.
8412 (dwarf2_read_index): Use dwarf2_section_empty_p.
8413 (partial_read_comp_unit_head): Use dwarf2_section_size.
8414 (dwarf2_symbol_mark_computed): Likewise.
8415
8416 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8417
8418 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
8419
8420 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8421
8422 * mips-linux-tdep.c: Include xml-syscall.h.
8423 (mips_linux_get_syscall_number): New function.
8424 (mips_linux_init_abi): Add calls to
8425 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
8426 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8427 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
8428 * syscalls/mips-n32-linux.xml: New file.
8429 * syscalls/mips-n64-linux.xml: New file.
8430 * syscalls/mips-o32-linux.xml: New file.
8431
8432 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8433
8434 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
8435 Complain about inverted range entries.
8436 (dwarf2_record_block_ranges): Likewise.
8437
8438 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8439
8440 Fix some typos.
8441 * breakpoint.c (update_watchpoint): Fix name of the
8442 update_global_location_list function.
8443 (print_one_breakpoint): Fix typo.
8444 (_initialize_breakpoint): Remove extra space in hbreak help
8445 string.
8446 * breakpoint.h (struct bp_location) <length>: Fix field
8447 description.
8448
8449 2011-02-04 Pedro Alves <pedro@codesourcery.com>
8450
8451 * regcache.c (registers_changed_ptid): Don't explictly always
8452 clear `current_regcache'. Only clear current_thread_ptid and
8453 current_thread_arch when PTID matches. Only reinit the frame
8454 cache if PTID matches the current inferior_ptid. Move alloca(0)
8455 call to ...
8456 (registers_changed): ... here.
8457
8458 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
8459
8460 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
8461 starts with __stack_chk_guard as stack guard symbol.
8462
8463 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
8464
8465 * disasm.c (compare_lines): Handle the end of sequence markers
8466 within the line table to better support disassembling over
8467 compilation unit boundaries.
8468
8469 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8470
8471 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
8472 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
8473 implementation even if no symbols are available.
8474 (thumb_analyze_prologue): Update call to skip_prologue_function.
8475 (arm_analyze_prologue): Likewise.
8476
8477 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8478
8479 * arm-tdep.c: Include "observer.h".
8480 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
8481 (arm_exidx_data_key): New static variable.
8482 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
8483 (struct arm_exidx_data): Likewise.
8484 (arm_exidx_data_free): New function.
8485 (arm_compare_exidx_entries): Likewise.
8486 (arm_obj_section_from_vma): Likewise.
8487 (arm_exidx_new_objfile): Likewise.
8488 (arm_find_exidx_entry): Likewise.
8489 (arm_exidx_fill_cache): Likewise.
8490 (arm_exidx_unwind_sniffer): Likewise.
8491 (arm_exidx_unwind): New global variable.
8492 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
8493 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
8494 observer. Register arm_exidx_data_key as objfile data.
8495
8496 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8497
8498 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8499 due to accessing uninitialized variable. Fix indentation.
8500
8501 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8502
8503 * c-valprint.c (c_value_print): When doing virtual base pointer
8504 adjustment, create a new value with adjusted contents rather than
8505 changing the contents of the value being printed (and getting it
8506 wrong).
8507
8508 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8509
8510 * xml-support.c (xml_find_attribute): New.
8511 (xinclude_start_include): Use it.
8512 * xml-support.h (xml_find_attribute): Declare.
8513 * memory-map.c (memory_map_start_memory)
8514 (memory_map_start_property): Use xml_find_attribute.
8515 * osdata.c (osdata_start_osdata, osdata_start_column): Use
8516 xml_find_attribute.
8517 * remote.c (start_thread): Use xml_find_attribute.
8518 * solib-target.c (library_list_start_segment)
8519 (library_list_start_section, library_list_start_library)
8520 (library_list_start_list): Use xml_find_attribute.
8521 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8522 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8523 (tdesc_start_field): Use xml_find_attribute.
8524
8525 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
8526
8527 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8528 (BUILD_OCL_VTYPES): Update.
8529
8530 2011-02-02 Joel Brobecker <brobecker@adacore.com>
8531
8532 * configure.ac: Work around non-GNU sed limitation when computing
8533 python version number.
8534 * configure: Regenerate.
8535
8536 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8537
8538 Fix debug printing of TYPE_INSTANCE.
8539 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8540 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8541
8542 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8545 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8546 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8547 * ada-operator.inc: Rename the file to ...
8548 * ada-operator.def: ... here, wrap all the entries by macro OP.
8549 * expprint.c (op_name_standard): Remove all the entries. Include
8550 "std-operator.def" instead.
8551 * expression.h (enum exp_opcode): Include "std-operator.def" and
8552 "ada-operator.def". Move all the entries ...
8553 * std-operator.def: ... here, wrap all the entries by macro OP.
8554
8555 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8556
8557 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8558 * breakpoint.c (remove_jit_event_breakpoints): New function.
8559 * jit.c (jit_descriptor_addr): Delete.
8560 (registering_code): Delete.
8561 (clear_int): Delete.
8562 (jit_inferior_data): New variable.
8563 (struct jit_inferior_data): New type.
8564 (get_jit_inferior_data): New function.
8565 (jit_inferior_data_cleanup): New function.
8566 (jit_read_descriptor): Adjust.
8567 (jit_register_code): Adjust.
8568 (jit_breakpoint_re_set_internal): New function; move code here ...
8569 (jit_inferior_init): ... from here.
8570 (jit_breakpoint_re_set): Adjust.
8571 (jit_reset_inferior_data_and_breakpoints): New function.
8572 (jit_inferior_created_observer): Adjust.
8573 (jit_inferior_exit_hook): Adjust.
8574 (jit_executable_changed_observer): New function.
8575 (jit_event_handler): Adjust.
8576 (_initialize_jit): Adjust.
8577
8578 2011-01-31 Michael Snyder <msnyder@vmware.com>
8579
8580 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8581 line.
8582
8583 2011-01-31 Tom Tromey <tromey@redhat.com>
8584
8585 PR python/12216:
8586 * python/python.c (execute_gdb_command): Call
8587 prevent_dont_repeat.
8588 * top.c (suppress_dont_repeat): New global.
8589 (dont_repeat): Use it.
8590 (prevent_dont_repeat): New function.
8591 * command.h (prevent_dont_repeat): Declare.
8592
8593 2011-01-31 Tom Tromey <tromey@redhat.com>
8594
8595 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8596 * python/py-breakpoint.c (bppy_set_silent): Use
8597 breakpoint_set_silent.
8598 (bppy_set_thread): Use breakpoint_set_thread.
8599 (bppy_set_task): Use breakpoint_set_task.
8600 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8601 (breakpoint_set_task): Declare.
8602 (make_breakpoint_silent): Remove.
8603 * breakpoint.c (breakpoint_set_silent): New function.
8604 (breakpoint_set_thread): Likewise.
8605 (breakpoint_set_task): Likewise.
8606 (make_breakpoint_silent): Remove.
8607
8608 2011-01-31 Tom Tromey <tromey@redhat.com>
8609
8610 * breakpoint.h (user_breakpoint_p): Declare.
8611 * breakpoint.c (user_breakpoint_p): New function.
8612 (breakpoint_1): Use it.
8613 (save_breakpoints): Likewise.
8614
8615 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8616
8617 * configure.ac: Add handling of Python distribution on Windows.
8618 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8619 sysconfig variables are not defined, then do not use them.
8620 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8621 instead. On Windows, return all paths using forward-slashes
8622 rather than backslashes.
8623
8624 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8625
8626 * configure.ac: Remove fallback behavior for building
8627 against Python. Remove tweaking of Python include path.
8628 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8629 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8630 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8631 Always restore CPPFLAGS and LIBS after linking test.
8632 * configure: Regenerated.
8633 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8634 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8635 * python/python-internal.h: Adjust includes of Python .h files.
8636
8637 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8638
8639 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8640 in error message.
8641
8642 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8643
8644 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8645 value test.
8646
8647 2011-01-31 Yao Qi <yao@codesourcery.com>
8648
8649 * arm-linux-nat.c: Update calls to regcache_register_status
8650 instead of regcache_valid_p.
8651 * aix-thread.c: Likewise.
8652 * i386gnu-nat.c: Likewise.
8653
8654 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8655
8656 Fix crash.
8657 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8658 touching TYPE_FIELD_ARTIFICIAL.
8659
8660 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8661
8662 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8663 Committers.
8664
8665 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8666
8667 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8668 selected, don't try iterating over the traceframe's blocks.
8669 (tfile_has_stack): If there's no traceframe selected, then there's
8670 no stack.
8671 (tfile_has_registers): If there's no traceframe selected, then
8672 there's no registers.
8673
8674 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8675
8676 * target.c (memory_xfer_partial): No need to restore shadows if we
8677 haven't read anything.
8678
8679 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8680
8681 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8682 and val_print_scalar_formatted.
8683
8684 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8685
8686 * tracepoint.c (tfile_read): New.
8687 (tfile_open): Use it.
8688 (tfile_get_traceframe_address): Use it.
8689 (tfile_trace_find): Use it.
8690 (walk_blocks_callback_func): New typedef.
8691 (match_blocktype): New function.
8692 (traceframe_walk_blocks): New function.
8693 (traceframe_find_block_type): New function.
8694 (tfile_fetch_registers, tfile_xfer_partial)
8695 (tfile_get_trace_state_variable_value): Use
8696 traceframe_find_block_type and tfile_read.
8697
8698 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8699
8700 * remote-mips.c: Add internationalization mark ups. Remove
8701 trailing \n from already marked up strings.
8702
8703 2011-01-26 Tom Tromey <tromey@redhat.com>
8704
8705 * python/py-prettyprint.c (print_string_repr): Clear
8706 'addressprint' option when calling val_print_string.
8707 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8708 option when calling val_print_string.
8709
8710 2011-01-26 Tom Tromey <tromey@redhat.com>
8711
8712 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8713 GDB_PY_LL_ARG.
8714 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8715 macros.
8716 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8717 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8718 (gdb_py_long_as_ulongest): New defines.
8719 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8720 (gdb_py_int_as_long): Declare.
8721 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8722 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8723 (valpy_long): Add comment.
8724 * python/py-utils.c (get_addr_from_python): Use
8725 gdb_py_long_as_ulongest. Handle overflow properly.
8726 (gdb_py_object_from_longest): New function.
8727 (gdb_py_object_from_ulongest): Likewise.
8728 (gdb_py_int_as_long): Likewise.
8729 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8730 * python/py-symtab.c (salpy_get_pc): Use
8731 gdb_py_long_from_ulongest.
8732 (salpy_get_line): Use PyInt_FromLong.
8733 * python/py-param.c (set_parameter_value): Use
8734 gdb_py_int_as_long.
8735 * python/py-lazy-string.c (stpy_get_address): Use
8736 gdb_py_long_from_ulongest.
8737 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8738 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8739 * python/py-breakpoint.c (bppy_set_thread): Use
8740 gdb_py_int_as_long.
8741 (bppy_set_task): Likewise.
8742 (bppy_set_ignore_count): Likewise.
8743 (bppy_set_hit_count): Likewise.
8744 * python/py-block.c (blpy_get_start): Use
8745 gdb_py_object_from_ulongest.
8746 (blpy_get_end): Likewise.
8747 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8748
8749 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8750
8751 PR/symtab 11766:
8752 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8753 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8754 equality test for objfile, initialize addr_low if needed.
8755
8756 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8757
8758 * tui/tui-regs.c (tui_register_format): Remove dead code.
8759
8760 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8761
8762 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8763 instead of print_scalar_formatted.
8764 (print_scalar_formatted): Don't handle 's' format strings here,
8765 and add an assertion that we never see such format here.
8766 * valprint.h (val_print_scalar_formatted): Declare.
8767 * valprint.c (val_print_scalar_formatted): New.
8768 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8769 instead of print_scalar_formatted.
8770 * jv-valprint.c (java_val_print): Ditto.
8771 * p-valprint.c (pascal_val_print): Ditto.
8772 * ada-valprint.c (ada_val_print_1): Ditto.
8773 * f-valprint.c (f_val_print): Ditto.
8774 * infcmd.c (registers_info): Ditto.
8775 * m2-valprint.c (m2_val_print): Ditto.
8776
8777 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8778
8779 * m2-valprint.c (print_unbounded_array): Pass
8780 value_contents_for_printing rather than value_contents, to
8781 m2_print_array_contents. Also pass in the value.
8782
8783 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8784
8785 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8786 (save_gdb_index_command): Switch to .gdb_index version 4.
8787
8788 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8789
8790 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8791 than frame_register, and always pass a valid value to val_print.
8792
8793 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8794
8795 Centralize printing "<optimized out>".
8796
8797 * valprint.h (val_print_optimized_out): Declare.
8798 * cp-valprint.c (cp_print_value_fields): Use
8799 val_print_optimized_out.
8800 * jv-valprint.c (java_print_value_fields): Ditto.
8801 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8802 * printcmd.c (print_formatted): Ditto.
8803 * valprint.c (valprint_check_validity): Ditto.
8804 (value_check_printable): Ditto.
8805 (val_print_optimized_out): New.
8806
8807 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8808
8809 * infcmd.c (default_print_registers_info): Allocate values so to
8810 never pass a NULL value to val_print.
8811
8812 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8813
8814 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8815 boolean. Make sure to always pass a value that matches the
8816 contents buffer to callees. Preserve `address' for following
8817 iterations.
8818 * value.c (value_contents_for_printing_const): New.
8819 (value_address): Constify value argument.
8820 * value.h (value_contents_for_printing_const): Declare.
8821 (value_address): Constify value argument.
8822
8823 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8824
8825 * regcache.c (struct regcache_descr): Rename
8826 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8827 and sizeof_cooked_register_valid_p to
8828 sizeof_cooked_register_status.
8829 (init_regcache_descr): Adjust.
8830 (struct regcache): Rename register_valid_p field to
8831 register_status.
8832 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8833 (do_cooked_read): Adjust.
8834 (regcache_valid_p): Rename to ...
8835 (regcache_register_status): ... this. Adjust.
8836 (regcache_invalidate): Adjust.
8837 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8838 Adjust.
8839 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8840 as unavailable, not valid.
8841 (regcache_dump): Adjust.
8842 * regcache.h (enum register_status): New.
8843 (regcache_register_status): Declare.
8844 (regcache_invalidate): Delete declaration.
8845 * corelow.c (get_core_registers): Adjust.
8846 * tracepoint.c (tfile_fetch_registers): Adjust.
8847 * trad-frame.c (REG_VALUE): Rename to ...
8848 (TF_REG_VALUE): ... this.
8849 (REG_UNKNOWN): Rename to ...
8850 (TF_REG_UNKNOWN): ... this.
8851 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8852 * mi/mi-main.c (register_changed_p): Adjust.
8853
8854 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8855
8856 * regcache.c (struct regcache_descr): Remove outdated comment.
8857 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8858 overallocate hack.
8859 (regcache_xmalloc): Rename to ...
8860 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8861 Allocate the regcache type accordingly.
8862 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8863 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8864 cooked registers, not raw.
8865 (regcache_dup_no_passthrough): Delete.
8866 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8867 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8868 mention obsolete write_register_bytes.
8869 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8870
8871 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8872
8873 Stop remote_read_bytes from handling partial reads itself.
8874
8875 * remote-fileio.c: Include target.h.
8876 (remote_fileio_write_bytes): Delete.
8877 (remote_fileio_func_open, remote_fileio_func_write)
8878 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8879 target_read_memory.
8880 (remote_fileio_func_stat): Use target_read_memory and
8881 target_write_memory.
8882 (remote_fileio_func_gettimeofday): Use target_write_memory.
8883 (remote_fileio_func_system): Use target_read_memory.
8884 * remote.c (remote_write_bytes): Make it static.
8885 (remote_read_bytes): Don't handle partial reads here.
8886 * remote.h (remote_read_bytes): Delete declaration.
8887
8888 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8889
8890 Simplify XML parsing a bit.
8891
8892 * xml-support.h (gdb_xml_parse_quick): Declare.
8893 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8894 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8895 parameter.
8896 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8897 gdb_xml_create_parser_and_cleanup_1.
8898 (gdb_xml_parse_quick): New.
8899 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8900 * osdata.c (osdata_parse): Ditto.
8901 * remote.c (remote_threads_info): Ditto.
8902 * solib-target.c (solib_target_parse_libraries): Ditto.
8903 * xml-syscall.c (syscall_parse_xml): Ditto.
8904 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8905
8906 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8907
8908 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8909 with remote-mips.o added to gdb_target_obs.
8910 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8911
8912 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8913
8914 * ada-valprint.c (val_print_packed_array_elements): Pass the
8915 correct struct value to val_print.
8916 (ada_val_print_1): Ditto.
8917
8918 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8919
8920 Don't lose embedded_offset in printing routines throughout.
8921
8922 * valprint.h (val_print_array_elements): Change prototype.
8923 * valprint.c (val_print_array_elements): Add `embedded_offset'
8924 parameter, and adjust to pass it down to val_print, while passing
8925 `valaddr' or `address' unmodified. Take embedded_offset into
8926 account when checking repetitions.
8927 * c-valprint.c (c_val_print): Pass embedded_offset to
8928 val_print_array_elements instead of adjusting `valaddr' and
8929 `address'.
8930 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8931 embedded_offset to val_print_array_elements instead of adjusting
8932 `valaddr'.
8933 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8934 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8935 val_print_array_elements and pascal_object_print_value_fields
8936 instead of adjusting `valaddr'.
8937 (pascal_object_print_value_fields): Add `offset' parameter, and
8938 adjust to use it.
8939 (pascal_object_print_value): Add `offset' parameter, and adjust to
8940 use it.
8941 (pascal_object_print_static_field): Use
8942 value_contents_for_printing/value_embedded_offset, rather than
8943 value_contents.
8944 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8945 parameter, and adjust to use it. Use
8946 value_contents_for_printing/value_embedded_offset, rather than
8947 value_contents.
8948 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8949 (ada_val_print_array): Add `offset' parameter, and adjust to use
8950 it.
8951 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8952 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8953 Instead work with offsets. Use
8954 value_contents_for_printing/value_embedded_offset, rather than
8955 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8956 and use value_from_pointer to extract a target pointer, rather
8957 than value_from_longest.
8958 (print_variant_part): Add `offset' parameter. Replace
8959 `outer_valaddr' parameter by a new `outer_offset' parameter.
8960 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8961 (ada_value_print): Use
8962 value_contents_for_printing/value_embedded_offset, rather than
8963 value_contents.
8964 (print_record): Add `offset' parameter, and adjust to pass it
8965 down.
8966 (print_field_values): Add `offset' parameter. Replace
8967 `outer_valaddr' parameter by a new `outer_offset' parameter.
8968 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8969 Use value_contents_for_printing/value_embedded_offset, rather than
8970 value_contents.
8971 * d-valprint.c (dynamic_array_type): Use
8972 value_contents_for_printing/value_embedded_offset, rather than
8973 value_contents.
8974 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8975 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8976 (java_print_value_fields): Take `offset' into account. Don't
8977 re-adjust `valaddr'. Instead pass down adjusted offsets.
8978 (java_val_print): Take `embedded_offset' into account. Pass it to
8979 java_print_value_fields.
8980 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8981 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8982 down adjusted offsets.
8983 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8984 (f_val_print): Take `embedded_offset' into account.
8985
8986 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8987
8988 * inflow.c: Include "gdbcmd.h".
8989 (interactive_mode): New static global, moved here from top.c.
8990 (show_interactive_mode): New function, moved here from top.c.
8991 use gdb_has_a_terminal instead of input_from_terminal_p to
8992 determine the current mode.
8993 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8994 setting.
8995 (_initialize_inflow): Add the "set/show interactive-mode"
8996 commands. Moved here from top.c, after having adjusted slightly
8997 the help text.
8998 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8999 to inflow.c.
9000 (input_from_terminal_p): Remove handling of "interactive-mode"
9001 setting, moved to infow.c.
9002 (init_main): Remove creation of the "set/show interactive-mode"
9003 commands, moved to inflow.c.
9004
9005 2011-01-19 Joel Brobecker <brobecker@adacore.com>
9006
9007 * NEWS: Add entry for native ia64-hpux support.
9008
9009 2011-01-19 Tom Tromey <tromey@redhat.com>
9010
9011 PR mi/8618:
9012 * thread.c (free_thread): Free 'name'.
9013 (print_thread_info): Emit thread name. Change CLI output.
9014 (thread_name_command): New function.
9015 (do_captured_thread_select): Emit newline.
9016 (_initialize_thread): Register 'thread name' command.
9017 * target.h (struct target_ops) <to_thread_name>: New field.
9018 (target_thread_name): New macro.
9019 * target.c (update_current_target): Handle to_thread_name.
9020 * python/py-infthread.c (thpy_get_name): New function.
9021 (thpy_set_name): Likewise.
9022 (thread_object_getset): Add "name".
9023 * linux-nat.c (linux_nat_thread_name): New function.
9024 (linux_nat_add_target): Set to_thread_name.
9025 * gdbthread.h (struct thread_info) <name>: New field.
9026
9027 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9028
9029 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9030 (ada_val_print_1): Likewise.
9031
9032 2011-01-18 Joel Brobecker <brobecker@adacore.com>
9033
9034 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9035 upper limit address is not greater than the function end address
9036 when the upper limit could not be computed using the debugging
9037 info.
9038
9039 2011-01-17 Tom Tromey <tromey@redhat.com>
9040
9041 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9042 get_regcomp_error.
9043 * utils.c: Include gdb_regex.h.
9044 (do_regfree_cleanup): New function.
9045 (make_regfree_cleanup): Likewise.
9046 (get_regcomp_error): Likewise.
9047 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9048
9049 2011-01-17 Tom Tromey <tromey@redhat.com>
9050
9051 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9052 re_compile_fastmap.
9053
9054 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9055
9056 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9057 for internal variables.
9058 (last_was_structop): New static variable.
9059 (COMPLETE): New token.
9060 (field_exp): New rule to group all '.' suffix handling.
9061 Add mark_struct_expression calls when approriate to be able
9062 to correctly find fields for completion.
9063 (yylex): Adapt to handle field completion and set INTVAR when
9064 required.
9065
9066 2011-01-14 Yao Qi <yao@codesourcery.com>
9067
9068 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9069 save_reggroup, restore_reggroup and all_reggroup.
9070
9071 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9072
9073 * ada-valprint. (ada_printchar): Use the correct type length
9074 in call to ada_emit_char.
9075 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9076
9077 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9078
9079 * solib-som.h (hpux_major_release): Declare variable here.
9080 * solib-som.c: Remove <sys/utsname.h> header.
9081 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9082 (hpux_major_release): Make global, change default value to
9083 DEFAULT_HPUX_MAJOR_RELEASE.
9084 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9085 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9086 Add "solib-som.h" header.
9087 (set_hpux_major_release): New function.
9088 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9089
9090 2011-01-14 Mike Frysinger <vapier@gentoo.org>
9091
9092 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9093
9094 2011-01-14 Joel Brobecker <brobecker@adacore.com>
9095
9096 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9097 new-line at end of warning message.
9098 (ia64_hpux_store_register): Remove trailing new-line at end of
9099 error message.
9100 * ia64-hpux-tdep.c: Rephrase comment.
9101 * solib-ia64-hpux.c (struct dld_info): Change type of field
9102 dld_flags from "long long" to ULONGEST.
9103
9104 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9105
9106 * target.h (deprecated_child_ops): Delete declaration.
9107 * target.c (deprecated_child_ops): Delete definition.
9108
9109 2011-01-14 Pedro Alves <pedro@codesourcery.com>
9110
9111 * Makefile.in (hpux-thread.o): Delete rule.
9112 * configure.ac: Don't check for HPUX DCE threads support.
9113 * configure, config.in: Regenerate.
9114 * hppa-hpux-nat.c (child_suppress_run): Delete.
9115 (hppa_hpux_child_can_run): Delete.
9116 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9117 * hpux-thread.c: Delete.
9118
9119 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9120
9121 * hpux-thread.c (hpux_pid_to_str): Delete.
9122
9123 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9124
9125 * ada-valprint.c (ada_emit_char): Remove strange code.
9126 Check that c is <= UCHAR_MAX before passing it to isascii.
9127 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9128
9129 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9130
9131 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9132 to the case where instream is stdin.
9133
9134 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9135
9136 * ia64-tdep.h (struct regcache): Forward declare.
9137 (struct ia64_infcall_ops): New struct type.
9138 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9139 and "infcall_ops".
9140 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9141 Renames ia64_find_global_pointer.
9142 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9143 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9144 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9145 methods.
9146 (ia64_infcall_ops): New static global constant.
9147 (ia64_gdbarch_init): Set tdep->infcall_ops.
9148 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9149 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9150 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9151 (ia64_hpux_dummy_code): New static global constant.
9152 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9153 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9154 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9155 New function.
9156 (ia64_hpux_infcall_ops): New static global constant.
9157 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9158 for inferior function calls to work properly on ia64-hpux.
9159
9160 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9161
9162 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9163 * ia64-tdep.h (struct frame_info): forward declaration.
9164 (struct gdbarch_tdep): Add field size_of_register_frame.
9165 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9166 to determine the size of the register frame.
9167 (ia64_size_of_register_frame): New function.
9168 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9169 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9170 (IA64_HPUX_UREG_REASON): New macro.
9171 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9172 New functions.
9173 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9174 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9175 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9176 objects.
9177
9178 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9179
9180 Add support for ia64-hpux.
9181 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9182 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9183
9184 * configure.host: Add handling for ia64-hpux hosts. Add associated
9185 floatformats.
9186 * configure.tgt: Add handling for ia64-hpux targets.
9187 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9188 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9189 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9190
9191 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9192
9193 [ttrace] Compute thread list immediately after attach.
9194 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9195 New subprogram.
9196 (inf_ttrace_attach): Use it.
9197
9198 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9199
9200 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9201 if we could not determine the frame's function address. Instead,
9202 use the frame's PC, and then continue.
9203
9204 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9205
9206 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9207 not already defined.
9208
9209 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9210
9211 * ia64-tdep.c (ia64_struct_type_p): New function.
9212 (ia64_extract_return_value): Handle integral values that are
9213 less than 8 bytes long.
9214 (ia64_push_dummy_call): Likewise.
9215
9216 2011-01-13 Joel Brobecker <brobecker@adacore.com>
9217
9218 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9219 floatformat_ia64_ext.
9220 (floatformat_ia64_ext_big): New static const.
9221 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9222
9223 2011-01-12 Tom Tromey <tromey@redhat.com>
9224
9225 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9226 messages.
9227 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9228 (mi_cmd_thread_list_ids): Likewise.
9229 (mi_cmd_data_list_changed_registers): Likewise.
9230 (mi_cmd_data_list_register_values): Likewise.
9231 (mi_cmd_data_write_register_values): Likewise.
9232 (mi_cmd_data_evaluate_expression): Likewise.
9233 (mi_cmd_data_read_memory): Likewise.
9234 (mi_cmd_data_read_memory_bytes): Likewise.
9235 (mi_cmd_data_write_memory): Likewise.
9236 (mi_cmd_enable_timings): Likewise.
9237 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9238 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9239 (mi_cmd_var_delete): Likewise.
9240 (mi_cmd_var_set_format): Likewise.
9241 (mi_cmd_var_show_format): Likewise.
9242 (mi_cmd_var_info_num_children): Likewise.
9243 (mi_cmd_var_list_children): Likewise.
9244 (mi_cmd_var_info_type): Likewise.
9245 (mi_cmd_var_info_expression): Likewise.
9246 (mi_cmd_var_show_attributes): Likewise.
9247 (mi_cmd_var_assign): Likewise.
9248 (mi_cmd_var_update): Likewise.
9249 (mi_cmd_enable_pretty_printing): Likewise.
9250 (mi_cmd_var_set_update_range): Likewise.
9251 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9252 messages.
9253 (mi_cmd_target_file_put): Likewise.
9254 (mi_cmd_target_file_delete): Likewise.
9255 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9256 messages.
9257 (mi_cmd_stack_info_depth): Likewise.
9258 (mi_cmd_stack_list_locals): Likewise.
9259 (mi_cmd_stack_list_args): Likewise.
9260 (mi_cmd_stack_select_frame): Likewise.
9261 (mi_cmd_stack_select_frame): Likewise.
9262 (mi_cmd_stack_info_frame): Likewise.
9263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9264 messages.
9265 (mi_cmd_file_list_exec_source_files): Likewise.
9266 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9267 (mi_cmd_env_cd): Likewise.
9268 (mi_cmd_env_path): Likewise.
9269 (mi_cmd_env_dir): Likewise.
9270 (mi_cmd_inferior_tty_show): Likewise.
9271 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9272 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9273 (mi_cmd_break_watch): Likewise.
9274
9275 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9276
9277 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9278 (ppc_linux_insert_hw_breakpoint): Likewise.
9279 (ppc_linux_remove_hw_breakpoint): Likewise.
9280 (ppc_linux_insert_watchpoint): Likewise.
9281
9282 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9283 Jan Kratochvil <jan.kratochvil@redhat.com>
9284
9285 PR fortran/11104 and DWARF unbound arrays detection.
9286 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9287 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9288 unspecified upper bound.
9289 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9290 variables array_size_array, tmp_type and offset_item. New variable
9291 array. Remove call to f77_get_upperbound. New variables array_type
9292 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9293 the final call to deprecated_set_value_type.
9294
9295 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 Make value allocations more lazy.
9298 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9299 instead of allocate_value and set_value_lazy when possible.
9300 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
9301 instead of allocate_value and set_value_lazy.
9302 * findvar.c (value_of_register_lazy): Likewise.
9303 (read_var_value): Remove V preallocation, call just check_typedef in
9304 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
9305 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9306 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
9307 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
9308 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
9309 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
9310 the end, remove set_value_lazy there.
9311 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9312 instead of allocate_value and set_value_lazy when possible.
9313 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9314 * value.c (allocate_computed_value): Use allocate_value_lazy instead
9315 of allocate_value and set_value_lazy.
9316 (value_from_contents_and_address): Use allocate_value_lazy instead of
9317 allocate_value and set_value_lazy when possible.
9318
9319 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
9320
9321 * disasm.c (dump_insns): Support dumping opcodes for MI.
9322 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
9323 dumping of instruction opcodes.
9324
9325 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
9326
9327 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
9328 appropiately.
9329
9330 2011-01-11 Tom Tromey <tromey@redhat.com>
9331
9332 * thread.c (do_captured_thread_select): Emit newline before
9333 printing frame.
9334
9335 2011-01-11 Michael Snyder <msnyder@vmware.com>
9336
9337 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
9338 * score-tdep.c: Ditto.
9339 * score-tdep.h: Ditto.
9340 * ser-base.c: Ditto.
9341 * ser-go32.c: Ditto.
9342 * serial.c: Ditto.
9343 * serial.h: Ditto.
9344 * ser-mingw.c: Ditto.
9345 * ser-pipe.c: Ditto.
9346 * ser-tcp.c: Ditto.
9347 * ser-unix.c: Ditto.
9348 * sh64-tdep.c: Ditto.
9349 * shnbsd-nat.c: Ditto.
9350 * sh-tdep.c: Ditto.
9351 * sh-tdep.h: Ditto.
9352 * solib.c: Ditto.
9353 * solib-darwin.c: Ditto.
9354 * solib-frv.c: Ditto.
9355 * solib.h: Ditto.
9356 * solib-irix.c: Ditto.
9357 * solib-osf.c: Ditto.
9358 * solib-pa64.c: Ditto.
9359 * solib-som.c: Ditto.
9360 * solib-spu.c: Ditto.
9361 * solib-sunos.c: Ditto.
9362 * solib-svr4.c: Ditto.
9363 * solist.h: Ditto.
9364 * sol-thread.c: Ditto.
9365 * somread.c: Ditto.
9366 * source.c: Ditto.
9367 * source.h: Ditto.
9368 * sparc64-linux-tdep.c: Ditto.
9369 * sparc64-tdep.c: Ditto.
9370 * sparc-linux-nat.c: Ditto.
9371 * sparc-linux-tdep.c: Ditto.
9372 * sparc-sol2-nat.c: Ditto.
9373 * sparc-sol2-tdep.c: Ditto.
9374 * sparc-tdep.c: Ditto.
9375 * sparc-tdep.h: Ditto.
9376 * spu-tdep.c: Ditto.
9377 * stabsread.c: Ditto.
9378 * stabsread.h: Ditto.
9379 * stack.c: Ditto.
9380 * symfile.c: Ditto.
9381 * symfile.h: Ditto.
9382 * symmisc.c: Ditto.
9383 * symtab.c: Ditto.
9384 * symtab.h: Ditto.
9385 * target.c: Ditto.
9386 * target-descriptions.c: Ditto.
9387 * target-descriptions.h: Ditto.
9388 * target.h: Ditto.
9389 * target-memory.c: Ditto.
9390 * terminal.h: Ditto.
9391 * thread.c: Ditto.
9392 * top.c: Ditto.
9393 * tracepoint.c: Ditto.
9394 * tracepoint.h: Ditto.
9395 * trad-frame.h: Ditto.
9396 * typeprint.c: Ditto.
9397
9398 2011-01-11 Michael Snyder <msnyder@vmware.com>
9399
9400 * ui-file.c: Comment cleanup, mostly periods and spaces.
9401 * ui-file.h: Ditto.
9402 * ui-out.c: Ditto.
9403 * ui-out.h: Ditto.
9404 * utils.c: Ditto.
9405 * v850-tdep.c: Ditto.
9406 * valarith.c: Ditto.
9407 * valops.c: Ditto.
9408 * valprint.c: Ditto.
9409 * valprint.h: Ditto.
9410 * value.c: Ditto.
9411 * value.h: Ditto.
9412 * varobj.c: Ditto.
9413 * varobj.h: Ditto.
9414 * vax-tdep.c: Ditto.
9415 * vec.c: Ditto.
9416 * vec.h: Ditto.
9417 * version.h: Ditto.
9418 * windows-nat.c: Ditto.
9419 * windows-tdep.c: Ditto.
9420 * xcoffread.c: Ditto.
9421 * xcoffsolib.c: Ditto.
9422 * xml-support.c: Ditto.
9423 * xstormy16-tdep.c: Ditto.
9424 * xtensa-tdep.c: Ditto.
9425 * xtensa-tdep.h: Ditto.
9426
9427 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9428
9429 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
9430 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
9431
9432 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9433 Thiago Jung Bauermann <bauerman@br.ibm.com>
9434
9435 Implement support for PowerPC BookE ranged watchpoints.
9436 * breakpoint.h
9437 (struct breakpoint_ops) <resources_needed>: New method.
9438 Initialize to NULL in all existing breakpoint_ops instances.
9439 (struct breakpoint) <exact>: New field.
9440 (target_exact_watchpoints): Declare external global.
9441 * breakpoint.c (target_exact_watchpoints): New global flag.
9442 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
9443 b->enable_state to bp_enabled before calling
9444 hw_watchpoint_used_count.
9445 (hw_watchpoint_used_count): Iterate over all bp_locations in a
9446 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
9447 if available.
9448 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
9449 if the watchpoint is exact.
9450 (resources_needed_watchpoint): New function.
9451 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
9452 (watch_command_1): Set b->exact if the user asked for an exact
9453 watchpoint and one can be set.
9454 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
9455 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
9456 the user asks for an exact watchpoint and one can be set. Return
9457 number of needed debug registers to watch the expression.
9458 * gdbtypes.c (is_scalar_type): New function, based on
9459 valprint.c:scalar_type_p.
9460 (is_scalar_type_recursive): New function.
9461 * gdbtypes.h (is_scalar_type_recursive): Declare.
9462 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
9463 handle regions when ranged watchpoints are available.
9464 (create_watchpoint_request): New function.
9465 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
9466 create_watchpoint_request.
9467 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
9468 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
9469 `set powerpc' and `show powerpc' commands.
9470 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9471 Mention documentation comment in the target macro.
9472 (target_region_ok_for_hw_watchpoint): Document return value.
9473
9474 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9475
9476 * breakpoint.c (update_watchpoint): Decide on using a software or
9477 hardware watchpoint after the bp_locations are created.
9478
9479 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
9480
9481 Convert hardware watchpoints to use breakpoint_ops.
9482 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
9483 <insert_location>: ... this. Return int instead of void.
9484 Accept pointer to struct bp_location instead of pointer to
9485 struct breakpoint. Adapt all implementations.
9486 (breakpoint_ops) <remove>: Rename to...
9487 <remove_location>: ... this. Accept pointer to struct bp_location
9488 instead of pointer to struct breakpoint. Adapt all implementations.
9489 * breakpoint.c (insert_catchpoint): Delete function.
9490 (insert_bp_location): Call the watchpoint or catchpoint's
9491 breakpoint_ops.insert method.
9492 (remove_breakpoint_1): Call the watchpoint or catchpoint's
9493 breakpoint_ops.remove method.
9494 (insert_watchpoint, remove_watchpoint): New functions.
9495 (watchpoint_breakpoint_ops): New structure.
9496 (watch_command_1): Initialize the OPS field.
9497 * inf-child.c (inf_child_insert_fork_catchpoint)
9498 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9499 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9500 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9501 Delete functions.
9502 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9503 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9504 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9505 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9506 * target.c (update_current_target): Change default implementation of
9507 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9508 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9509 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9510 to_set_syscall_catchpoint to return_one.
9511 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9512 (debug_to_insert_exec_catchpoint): Report return value.
9513 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9514 (to_insert_exec_catchpoint): Change declaration to return int instead
9515 of void.
9516
9517 2011-01-11 Michael Snyder <msnyder@vmware.com>
9518
9519 * arm-tdep.c: Internationalization.
9520 * c-lang.c: Ditto.
9521 * charset.c: Ditto.
9522 * fork-child.c: Ditto.
9523 * nto-procfs.c: Ditto.
9524 * ppc-sysv-tdep.c: Ditto.
9525 * procfs.c: Ditto.
9526 * remote-mips.c: Ditto.
9527 * remote.c: Ditto.
9528 * rs6000-nat.c: Ditto.
9529 * rs6000-tdep.c: Ditto.
9530 * target.c: Ditto.
9531 * valops.c: Ditto.
9532 * value.c: Ditto.
9533 * xml-support.c: Ditto.
9534 * mi/mi-cmd-break.c: Ditto.
9535 * mi/mi-cmd-var.c: Ditto.
9536 * mi/mi-interp.c: Ditto.
9537 * mi/mi-main.c: Ditto.
9538
9539 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
9540
9541 * remote-sim.c (gdbsim_store_register): Update API to
9542 sim_store_register to check more error conditions.
9543
9544 2011-01-10 Michael Snyder <msnyder@vmware.com>
9545
9546 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9547 * nto-tdep.c: Ditto.
9548 * nto-tdep.h: Ditto.
9549 * objc-exp.y: Ditto.
9550 * objc-lang.c: Ditto.
9551 * objfiles.c: Ditto.
9552 * objfiles.h: Ditto.
9553 * observer.c: Ditto.
9554 * opencl-lang.c: Ditto.
9555 * osabi.c: Ditto.
9556 * parse.c: Ditto.
9557 * parser-defs.h: Ditto.
9558 * p-exp.y: Ditto.
9559 * p-lang.c: Ditto.
9560 * posix-hdep.c: Ditto.
9561 * ppcbug-rom.c: Ditto.
9562 * ppc-linux-nat.c: Ditto.
9563 * ppc-linux-tdep.c: Ditto.
9564 * ppc-linux-tdep.h: Ditto.
9565 * ppcnbsd-tdep.c: Ditto.
9566 * ppcobsd-tdep.c: Ditto.
9567 * ppcobsd-tdep.h: Ditto.
9568 * ppc-sysv-tdep.c: Ditto.
9569 * ppc-tdep.h: Ditto.
9570 * printcmd.c: Ditto.
9571 * proc-abi.c: Ditto.
9572 * proc-flags.c: Ditto.
9573 * procfs.c: Ditto.
9574 * proc-utils.h: Ditto.
9575 * progspace.h: Ditto.
9576 * prologue-value.c: Ditto.
9577 * prologue-value.h: Ditto.
9578 * psympriv.h: Ditto.
9579 * psymtab.c: Ditto.
9580 * p-typeprint.c: Ditto.
9581 * p-valprint.c: Ditto.
9582 * ravenscar-sparc-thread.c: Ditto.
9583 * ravenscar-thread.c: Ditto.
9584 * ravenscar-thread.h: Ditto.
9585 * record.c: Ditto.
9586 * regcache.c: Ditto.
9587 * regcache.h: Ditto.
9588 * remote.c: Ditto.
9589 * remote-fileio.c: Ditto.
9590 * remote-fileio.h: Ditto.
9591 * remote.h: Ditto.
9592 * remote-m32r-sdi.c: Ditto.
9593 * remote-mips.c: Ditto.
9594 * remote-sim.c: Ditto.
9595 * rs6000-aix-tdep.c: Ditto.
9596 * rs6000-nat.c: Ditto.
9597 * rs6000-tdep.c: Ditto.
9598
9599 2011-01-10 Michael Snyder <msnyder@vmware.com>
9600
9601 * charset.c (validate): Internationalization.
9602 * coffread.c (read_one_sym): Ditto.
9603 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9604 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9605 * inflow.c (new_tty): Ditto.
9606 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9607 * m32c-tdep.c (m32c_return_value): Ditto.
9608 * mep-tdep.c (mep_store_return_value): Ditto.
9609 * score-tdep.c (score7_fetch_insn): Ditto.
9610 * ser-mingw.c (pipe_windows_open): Ditto.
9611 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9612 * spu-tdep.c (spu_register_type): Ditto.
9613 * tracepoint.c (trace_find_command): Ditto.
9614 * valarith.c (value_pos): Ditto.
9615
9616 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9617
9618 * ada-valprint.c (printstr): Minor comment reformatting.
9619
9620 2011-01-08 Michael Snyder <msnyder@vmware.com>
9621
9622 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9623 markup.
9624
9625 2011-01-08 Michael Snyder <msnyder@vmware.com>
9626
9627 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9628 * hppa-hpux-tdep.c: Ditto.
9629 * hppa-linux-nat.c: Ditto.
9630 * hppa-linux-tdep.c: Ditto.
9631 * hppanbsd-tdep.c: Ditto.
9632 * hppa-tdep.c: Ditto.
9633 * hppa-tdep.h: Ditto.
9634 * hpux-thread.c: Ditto.
9635 * i386-cygwin-tdep.c: Ditto.
9636 * i386-darwin-nat.c: Ditto.
9637 * i386gnu-nat.c: Ditto.
9638 * i386-linux-nat.c: Ditto.
9639 * i386-linux-tdep.c: Ditto.
9640 * i386-nat.c: Ditto.
9641 * i386-nat.h: Ditto.
9642 * i386nbsd-tdep.c: Ditto.
9643 * i386-sol2-nat.c: Ditto.
9644 * i386-stub.c: Ditto.
9645 * i386-tdep.c: Ditto.
9646 * i386-tdep.h: Ditto.
9647 * i387-tdep.c: Ditto.
9648 * ia64-linux-nat.c: Ditto.
9649 * ia64-linux-tdep.c: Ditto.
9650 * ia64-tdep.c: Ditto.
9651 * infcall.c: Ditto.
9652 * infcall.h: Ditto.
9653 * infcmd.c: Ditto.
9654 * inferior.c: Ditto.
9655 * inferior.h: Ditto.
9656 * infloop.c: Ditto.
9657 * inflow.c: Ditto.
9658 * infrun.c: Ditto.
9659 * interps.c: Ditto.
9660 * interps.h: Ditto.
9661 * iq2000-tdep.c: Ditto.
9662 * irix5-nat.c: Ditto.
9663 * jit.c: Ditto.
9664 * jit.h: Ditto.
9665 * jv-exp.y: Ditto.
9666 * jv-lang.c: Ditto.
9667 * jv-lang.h: Ditto.
9668 * jv-typeprint.c: Ditto.
9669 * jv-valprint.c: Ditto.
9670 * language.c: Ditto.
9671 * language.h: Ditto.
9672 * linespec.c: Ditto.
9673 * linux-fork.c: Ditto.
9674 * linux-nat.c: Ditto.
9675 * linux-thread-db.c: Ditto.
9676 * lm32-tdep.c: Ditto.
9677
9678 2011-01-08 Michael Snyder <msnyder@vmware.com>
9679
9680 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9681 * m2-lang.c: Ditto.
9682 * m2-typeprint.c: Ditto.
9683 * m2-valprint.c: Ditto.
9684 * m32c-tdep.c: Ditto.
9685 * m32r-linux-nat.c: Ditto.
9686 * m32r-rom.c: Ditto.
9687 * m32r-tdep.c: Ditto.
9688 * m32r-tdep.h: Ditto.
9689 * m68hc11-tdep.c: Ditto.
9690 * m58klinux-nat.c: Ditto.
9691 * m68k-tdep.c: Ditto.
9692 * m88k-tdep.c: Ditto.
9693 * m88k-tdep.h: Ditto.
9694 * machoread.c: Ditto.
9695 * macrocmd.c: Ditto.
9696 * macroexp.c: Ditto.
9697 * macrotab.c: Ditto.
9698 * main.c: Ditto.
9699 * maint.c: Ditto.
9700 * mdebugread.c: Ditto.
9701 * mdebugread.h: Ditto.
9702 * memattr.c: Ditto.
9703 * memattr.h: Ditto.
9704 * memory-map.h: Ditto.
9705 * mep-tdep.c: Ditto.
9706 * microblaze-rom.c: Ditto.
9707 * microblaze-tdep.c: Ditto.
9708 * minsyms.c: Ditto.
9709 * mips-irix-tdep.c: Ditto.
9710 * mips-linux-nat.c: Ditto.
9711 * mips-linux-tdep.c: Ditto.
9712 * mips-linux-tdep.h: Ditto.
9713 * mipsnbsd-nat.c: Ditto.
9714 * mipsnbsd-tdep.c: Ditto.
9715 * mipsread.c: Ditto.
9716 * mips-tdep.c: Ditto.
9717 * mips-tdep.h: Ditto.
9718 * mn10300-linux-tdep.c: Ditto.
9719 * mn10300-tdep.c: Ditto.
9720 * mn10300-tdep.h: Ditto.
9721 * monitor.c: Ditto.
9722 * monitor.h: Ditto.
9723 * moxie-tdep.c: Ditto.
9724 * moxie-tdep.h: Ditto.
9725 * mt-tdep.c: Ditto.
9726
9727 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9728
9729 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9730
9731 2011-01-08 Robert Millan <rmh@gnu.org>
9732
9733 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9734
9735 2011-01-07 Michael Snyder <msnyder@vmware.com>
9736
9737 * charset.c (_initialize_charset): Fix typo in string.
9738
9739 2011-01-07 Michael Snyder <msnyder@vmware.com>
9740
9741 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9742 for i18n.
9743 * tui/tui-layout.c (tui_set_layout_for_display_command):
9744 Split line so that operator goes to beginning of line.
9745 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9746 assignment out of if statement.
9747
9748 2011-01-07 Michael Snyder <msnyder@vmware.com>
9749
9750 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9751 * ada-lang.h: Ditto.
9752 * ada-tasks.c: Ditto.
9753 * ada-valprint.c: Ditto.
9754 * aix-threads.c: Ditto.
9755 * alpha-linux-nat.c: Ditto.
9756 * alpha-linux-tdep.c: Ditto.
9757 * alpha-mdebug-tdep.c: Ditto.
9758 * alpha-nat.c: Ditto.
9759 * alpha-osf1-tdep.c: Ditto.
9760 * alpha-tdep.c: Ditto.
9761 * alphabsd-nat.c: Ditto.
9762 * alphabsd-tdep.c: Ditto.
9763 * amd64-darwin-tdep.c: Ditto.
9764 * amd64-linux-nat.c: Ditto.
9765 * amd64-linux-tdep.c: Ditto.
9766 * amd64-sol2-tdep.c: Ditto.
9767 * amd64-tdep.c: Ditto.
9768 * amd64-fbsd-tdep.c: Ditto.
9769 * amd64-nbsd-tdep.c: Ditto.
9770 * amd64-obsd-tdep.c: Ditto.
9771 * amd64-linux-nat.c: Ditto.
9772 * amd64-linux-tdep.c: Ditto.
9773 * arm-tdep.c: Ditto.
9774 * arm-tdep.h: Ditto.
9775 * armnbsd-nat.c: Ditto.
9776 * avr-tdep.c: Ditto.
9777 * bfin-tdep.c: Ditto.
9778 * bsd-kvm.c: Ditto.
9779 * c-typeprintc: Ditto.
9780 * c-valprint.c: Ditto.
9781 * coff-pe-read.h: Ditto.
9782 * coffreead.c: Ditto.
9783 * cris-tdep.c: Ditto.
9784 * d-lang.c: Ditto.
9785 * darwin-nat-info.c: Ditto.
9786 * darwin-nat.c: Ditto.
9787 * dbug-rom.c: Ditto.
9788 * dbxread.c: Ditto.
9789 * dcache.c: Ditto.
9790 * dcache.h: Ditto.
9791 * dec-thread.c: Ditto.
9792 * defs.h: Ditto.
9793 * demangle.c: Ditto.
9794 * dicos-tdep.c: Ditto.
9795 * dictionary.c: Ditto.
9796 * dictionary.h: Ditto.
9797 * dink32-rom.c: Ditto.
9798 * disasm.c: Ditto.
9799 * doublest.c: Ditto.
9800 * dsrec.c: Ditto.
9801 * dummy-frame.c: Ditto.
9802 * dwarf2-frame.c: Ditto.
9803 * dwarf2expr.c: Ditto.
9804 * dwarf2loc.c: Ditto.
9805 * dwarf2read.c: Ditto.
9806 * elfread.c: Ditto.
9807 * environ.c: Ditto.
9808 * eval.c: Ditto.
9809 * event-top.h: Ditto.
9810 * exceptions.c: Ditto.
9811 * exceptions.h: Ditto.
9812 * exec.c: Ditto.
9813 * expprint.c: Ditto.
9814 * expression.h: Ditto.
9815 * f-exp.y: Ditto.
9816 * f-lang.c: Ditto.
9817 * f-lang.h: Ditto.
9818 * f-typeprint.c: Ditto.
9819 * f-valprint.c: Ditto.
9820 * fbsd-nat.c: Ditto.
9821 * findvar.c: Ditto.
9822 * fork-child.c: Ditto.
9823 * frame.c: Ditto.
9824 * frame.h: Ditto.
9825 * frv-linux-tdep.c: Ditto.
9826 * frv-tdep.c: Ditto.
9827 * gcore.c: Ditto.
9828 * gdb-stabs.h: Ditto.
9829 * gdb_assert.h: Ditto.
9830 * gdb_string.h: Ditto.
9831 * gdb_thread_db.h: Ditto.
9832 * gdb_wait.h: Ditto.
9833 * gdbarch.sh: Ditto.
9834 * gdbcore.h: Ditto.
9835 * gdbthread.h: Ditto.
9836 * gdbtypes.c: Ditto.
9837 * gdbtypes.h: Ditto.
9838 * gnu-nat.c: Ditto.
9839 * gnu-nat.h: Ditto.
9840 * gnu-v2-abi.c: Ditto.
9841 * gnu-v3-abi.c: Ditto.
9842 * go32-nat.c: Ditto.
9843 * gdbarch.c: Regenerate.
9844 * gdbarch.h: Regenerate.
9845
9846 2011-01-07 Michael Snyder <msnyder@vmware.com>
9847
9848 * ax-gdb.c: Adjust some long output strings.
9849 * breakpoint.c: Ditto.
9850 * charset.c: Ditto.
9851 * cp-abi.c: Ditto.
9852 * infcall.c: Ditto.
9853 * infrun.c: Ditto.
9854 * linux-nat.c: Ditto.
9855 * solib-pa64.c: Ditto.
9856 * solib-som.c: Ditto.
9857
9858 2011-01-06 Tom Tromey <tromey@redhat.com>
9859
9860 PR python/12367:
9861 * NEWS: Add item.
9862 * python/python.c (GdbMethods): Add "newest_frame" method.
9863 * python/python-internal.h (gdbpy_newest_frame): Declare.
9864 * python/py-frame.c (gdbpy_newest_frame): New function.
9865
9866 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9867
9868 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9869 * jit.c (jit_debug): New variable.
9870 (show_jit_debug): New function.
9871 (struct target_buffer): Use ULONGEST.
9872 (bfd_open_from_target_memory): Likewise.
9873 (jit_register_code, jit_inferior_init): Add debug output.
9874 (_initialize_jit): Register "debug jit" command.
9875
9876 2011-01-06 Tom Tromey <tromey@redhat.com>
9877
9878 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9879 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9880 and ARCH_FRAME.
9881
9882 2011-01-06 Tom Tromey <tromey@redhat.com>
9883
9884 * python/py-frame.c (frapy_block): Use get_frame_block.
9885
9886 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9887
9888 Do not stop on SIGPRIO signals by default
9889 * infrun.c (_initialize_infrun): Unset signal_stop and
9890 signal_print for TARGET_SIGNAL_PRIO.
9891
9892 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9893
9894 * ada-tasks.c: Fix style violation in comment.
9895
9896 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9897
9898 * linespec.c (decode_compound, find_method): Remove trailing \n
9899 at end of error string.
9900 * solib-irix.c (irix_current_sos): Likewise.
9901 * varobj.c (uninstall_variable): Likewise.
9902
9903 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9904
9905 * copyright.py: New script.
9906 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9907 Launch emacs without exec'ing. Call copyright.py afterwards.
9908
9909 2011-01-05 Michael Snyder <msnyder@vmware.com>
9910
9911 * addrmap.c: Shorten lines of >= 80 columns.
9912 * arch-utils.c: Ditto.
9913 * arch-utils.h: Ditto.
9914 * ax-gdb.c: Ditto.
9915 * ax-general.c: Ditto.
9916 * bcache.c: Ditto.
9917 * blockframe.c: Ditto.
9918 * breakpoint.c: Ditto.
9919 * buildsym.c: Ditto.
9920 * c-lang.c: Ditto.
9921 * c-typeprint.c: Ditto.
9922 * charset.c: Ditto.
9923 * coffread.c: Ditto.
9924 * command.h: Ditto.
9925 * corelow.c: Ditto.
9926 * cp-abi.c: Ditto.
9927 * cp-namespace.c: Ditto.
9928 * cp-support.c: Ditto.
9929 * dbug-rom.c: Ditto.
9930 * dbxread.c: Ditto.
9931 * defs.h: Ditto.
9932 * dfp.c: Ditto.
9933 * dfp.h: Ditto.
9934 * dictionary.c: Ditto.
9935 * disasm.c: Ditto.
9936 * doublest.c: Ditto.
9937 * dwarf2-frame.c: Ditto.
9938 * dwarf2expr.c: Ditto.
9939 * dwarf2loc.c: Ditto.
9940 * dwarf2read.c: Ditto.
9941 * elfread.c: Ditto.
9942 * eval.c: Ditto.
9943 * event-loop.c: Ditto.
9944 * event-loop.h: Ditto.
9945 * exceptions.h: Ditto.
9946 * exec.c: Ditto.
9947 * expprint.c: Ditto.
9948 * expression.h: Ditto.
9949 * f-lang.c: Ditto.
9950 * f-valprint.c: Ditto.
9951 * findcmd.c: Ditto.
9952 * frame-base.c: Ditto.
9953 * frame-unwind.c: Ditto.
9954 * frame-unwind.h: Ditto.
9955 * frame.c: Ditto.
9956 * frame.h: Ditto.
9957 * gcore.c: Ditto.
9958 * gdb-stabs.h: Ditto.
9959 * gdb_assert.h: Ditto.
9960 * gdb_dirent.h: Ditto.
9961 * gdb_obstack.h: Ditto.
9962 * gdbcore.h: Ditto.
9963 * gdbtypes.c: Ditto.
9964 * gdbtypes.h: Ditto.
9965 * inf-ttrace.c: Ditto.
9966 * infcall.c: Ditto.
9967 * infcmd.c: Ditto.
9968 * inflow.c: Ditto.
9969 * infrun.c: Ditto.
9970 * inline-frame.h: Ditto.
9971 * language.c: Ditto.
9972 * language.h: Ditto.
9973 * libunwind-frame.c: Ditto.
9974 * libunwind-frame.h: Ditto.
9975 * linespec.c: Ditto.
9976 * linux-nat.c: Ditto.
9977 * linux-nat.h: Ditto.
9978 * linux-thread-db.c: Ditto.
9979 * machoread.c: Ditto.
9980 * macroexp.c: Ditto.
9981 * macrotab.c: Ditto.
9982 * main.c: Ditto.
9983 * maint.c: Ditto.
9984 * mdebugread.c: Ditto.
9985 * memattr.c: Ditto.
9986 * minsyms.c: Ditto.
9987 * monitor.c: Ditto.
9988 * monitor.h: Ditto.
9989 * objfiles.c: Ditto.
9990 * objfiles.h: Ditto.
9991 * osabi.c: Ditto.
9992 * p-typeprint.c: Ditto.
9993 * p-valprint.c: Ditto.
9994 * parse.c: Ditto.
9995 * printcmd.c: Ditto.
9996 * proc-events.c: Ditto.
9997 * procfs.c: Ditto.
9998 * progspace.c: Ditto.
9999 * progspace.h: Ditto.
10000 * psympriv.h: Ditto.
10001 * psymtab.c: Ditto.
10002 * record.c: Ditto.
10003 * regcache.c: Ditto.
10004 * regcache.h: Ditto.
10005 * remote-fileio.c: Ditto.
10006 * remote.c: Ditto.
10007 * ser-mingw.c: Ditto.
10008 * ser-tcp.c: Ditto.
10009 * ser-unix.c: Ditto.
10010 * serial.c: Ditto.
10011 * serial.h: Ditto.
10012 * solib-frv.c: Ditto.
10013 * solib-irix.c: Ditto.
10014 * solib-osf.c: Ditto.
10015 * solib-pa64.c: Ditto.
10016 * solib-som.c: Ditto.
10017 * solib-sunos.c: Ditto.
10018 * solib-svr4.c: Ditto.
10019 * solib-target.c: Ditto.
10020 * solib.c: Ditto.
10021 * somread.c: Ditto.
10022 * source.c: Ditto.
10023 * stabsread.c: Ditto.
10024 * stabsread.c: Ditto.
10025 * stack.c: Ditto.
10026 * stack.h: Ditto.
10027 * symfile-mem.c: Ditto.
10028 * symfile.c: Ditto.
10029 * symfile.h: Ditto.
10030 * symmisc.c: Ditto.
10031 * symtab.c: Ditto.
10032 * symtab.h: Ditto.
10033 * target-descriptions.c: Ditto.
10034 * target-memory.c: Ditto.
10035 * target.c: Ditto.
10036 * target.h: Ditto.
10037 * terminal.h: Ditto.
10038 * thread.c: Ditto.
10039 * top.c: Ditto.
10040 * tracepoint.c: Ditto.
10041 * tracepoint.h: Ditto.
10042 * ui-file.c: Ditto.
10043 * ui-file.h: Ditto.
10044 * ui-out.h: Ditto.
10045 * user-regs.c: Ditto.
10046 * user-regs.h: Ditto.
10047 * utils.c: Ditto.
10048 * valarith.c: Ditto.
10049 * valops.c: Ditto.
10050 * valprint.c: Ditto.
10051 * valprint.h: Ditto.
10052 * value.c: Ditto.
10053 * varobj.c: Ditto.
10054 * varobj.h: Ditto.
10055 * vec.h: Ditto.
10056 * xcoffread.c: Ditto.
10057 * xcoffsolib.c: Ditto.
10058 * xcoffsolib.h: Ditto.
10059 * xml-syscall.c: Ditto.
10060 * xml-tdesc.c: Ditto.
10061
10062 2011-01-05 Michael Snyder <msnyder@vmware.com>
10063
10064 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10065 * cli/cli-decode.c: Ditto.
10066 * cli/cli-dump.c: Ditto.
10067 * cli/cli-logging.c: Ditto.
10068 * cli/cli-script.c: Ditto.
10069 * cli/cli-setshow.c: Ditto.
10070 * common/signals.c: Ditto.
10071 * mi/mi-cmd-break.c: Ditto.
10072 * mi/mi-cmd-disas.c: Ditto.
10073 * mi/mi-cmd-stack.c: Ditto.
10074 * mi/mi-cmd-var.c: Ditto.
10075 * mi/mi-cmds.c: Ditto.
10076 * mi/mi-common.h: Ditto.
10077 * mi/mi-console.c: Ditto.
10078 * mi/mi-interp.c: Ditto.
10079 * mi/mi-main.c: Ditto.
10080 * osf-share/cma_attr.c: Ditto.
10081 * osf-share/cma_deb_core.h: Ditto.
10082 * osf-share/cma_debug_client.h: Ditto.
10083 * osf-share/cma_handle.h: Ditto.
10084 * osf-share/cma_mutex.h: Ditto.
10085 * osf-share/cma_stack_int.h: Ditto.
10086 * osf-share/cma_tcb_defs.h: Ditto.
10087 * python/py-auto-load.c: Ditto.
10088 * python/py-breakpoint.c: Ditto.
10089 * python/py-cmd.c: Ditto.
10090 * python/py-frame.c: Ditto.
10091 * python/py-objfile.c: Ditto.
10092 * python/py-param.c: Ditto.
10093 * python/py-progspace.c: Ditto.
10094 * python/py-symbol.c: Ditto.
10095 * python/py-value.c: Ditto.
10096 * python/python-internal.h: Ditto.
10097 * python/python.c: Ditto.
10098 * tui/tui-data.c: Ditto.
10099 * tui/tui-disasm.c: Ditto.
10100 * tui/tui-hooks.c: Ditto.
10101 * tui/tui-io.c: Ditto.
10102 * tui/tui-layout.c: Ditto.
10103 * tui/tui-regs.c: Ditto.
10104 * tui/tui-source.c: Ditto.
10105 * tui/tui-stack.c: Ditto.
10106 * tui/tui-win.c: Ditto.
10107 * tui/tui-windata.c: Ditto.
10108 * tui/tui-winsource.c: Ditto.
10109
10110 2011-01-05 Joel Brobecker <brobecker@adacore.com>
10111
10112 * configure.ac, gdb.1: Copyright year update.
10113
10114 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10115
10116 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10117 this_pc_in_block, morestack_msym and morestack_name. Check for
10118 "__morestack" minimal symbol there.
10119
10120 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10121
10122 * symfile.c (find_sym_fns): Add call to dont_repeat.
10123
10124 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10125
10126 Copyright year update in most files (performed by copyright.sh).
10127
10128 2011-01-01 Joel Brobecker <brobecker@adacore.com>
10129
10130 * top.c (print_gdb_version): Update copyright year in version output.
10131
10132 For older changes see ChangeLog-2010.
10133 \f
10134 Local Variables:
10135 mode: change-log
10136 left-margin: 8
10137 fill-column: 74
10138 version-control: never
10139 coding: utf-8
10140 End:
This page took 0.246824 seconds and 5 git commands to generate.