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