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