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