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