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